From 288c73d5e9f909554ef3c0aeb7a8718a65057f0b Mon Sep 17 00:00:00 2001
From: Vinyzu <50874994+Vinyzu@users.noreply.github.com>
Date: Sun, 12 Jan 2025 10:45:55 +0100
Subject: [PATCH] Update Readme & Requirements
---
README.md | 48 +++++++++++++++++++++++++++++--------------
requirements-test.txt | 4 ++--
2 files changed, 35 insertions(+), 17 deletions(-)
diff --git a/README.md b/README.md
index 1ffd657..3df99ab 100644
--- a/README.md
+++ b/README.md
@@ -3,19 +3,29 @@
[![](https://img.shields.io/pypi/v/recognizer.svg?color=1182C3)](https://pypi.org/project/recognizer/)
[![Downloads](https://static.pepy.tech/badge/recognizer)](https://pepy.tech/project/recognizer)
+
+ 🎠reCognizer
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#### reCognizer is a free-to-use AI based [reCaptcha](https://developers.google.com/recaptcha) Solver.
Usable with an easy-to-use API, also available for Async and Sync Playwright.
You can pass almost any format into the Challenger, from full-page screenshots, only-captcha images and no-border images to single images in a list.
-#### Note: You Should use an undetected browser engine like [Botright](https://github.com/Vinyzu/Botright) to solve the Captchas consistently.
reCaptcha detects normal Playwright easily and you probably wont get any successful solves despite correct recognitions.
-
----
-
-## Sponsors
-[![Capsolver Banner](https://github.com/user-attachments/assets/b39e70da-3011-4743-9e87-e63947bf41b9)](https://docs.capsolver.com/?utm_source=github&utm_medium=banner_github&utm_campaign=recognizer)
-
-[Capsolver.com](https://www.capsolver.com/?utm_source=github&utm_medium=banner_github&utm_campaign=recognizer) is an AI-powered service that specializes in solving various types of captchas automatically. It supports captchas such as [reCAPTCHA V2](https://docs.capsolver.com/guide/captcha/ReCaptchaV2.html?utm_source=github&utm_medium=banner_github&utm_campaign=recognizer), [reCAPTCHA V3](https://docs.capsolver.com/guide/captcha/ReCaptchaV3.html?utm_source=github&utm_medium=banner_github&utm_campaign=recognizer), [hCaptcha](https://docs.capsolver.com/guide/captcha/HCaptcha.html?utm_source=github&utm_medium=banner_github&utm_campaign=recognizer), [FunCaptcha](https://docs.capsolver.com/guide/captcha/FunCaptcha.html?utm_source=github&utm_medium=banner_github&utm_campaign=recognizer), [DataDome](https://docs.capsolver.com/guide/captcha/DataDome.html?utm_source=github&utm_medium=banner_github&utm_campaign=recognizer), [AWS Captcha](https://docs.capsolver.com/guide/captcha/awsWaf.html?utm_source=github&utm_medium=banner_github&utm_campaign=recognizer), [Geetest](https://docs.capsolver.com/guide/captcha/Geetest.html?utm_source=github&utm_medium=banner_github&utm_campaign=recognizer), and Cloudflare [Captcha](https://docs.capsolver.com/guide/antibots/cloudflare_turnstile.html?utm_source=github&utm_medium=banner_github&utm_campaign=recognizer) / [Challenge 5s](https://docs.capsolver.com/guide/antibots/cloudflare_challenge.html?utm_source=github&utm_medium=banner_github&utm_campaign=recognizer), [Imperva / Incapsula](https://docs.capsolver.com/guide/antibots/imperva.html?utm_source=github&utm_medium=banner_github&utm_campaign=recognizer), among others.
-
-For developers, Capsolver offers API integration options detailed in their [documentation](https://docs.capsolver.com/?utm_source=github&utm_medium=banner_github&utm_campaign=recognizer), facilitating the integration of captcha solving into applications. They also provide browser extensions for [Chrome](https://chromewebstore.google.com/detail/captcha-solver-auto-captc/pgojnojmmhpofjgdmaebadhbocahppod) and [Firefox](https://addons.mozilla.org/es/firefox/addon/capsolver-captcha-solver/), making it easy to use their service directly within a browser. Different pricing packages are available to accommodate varying needs, ensuring flexibility for users.
+#### Note: You Should use an undetected browser engine like [Patchright](https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-python) or [Botright](https://github.com/Vinyzu/Botright) to solve the Captchas consistently.
reCaptcha detects normal Playwright easily and you probably wont get any successful solves despite correct recognitions.
---
@@ -50,7 +60,7 @@ accepted_image_types = TypeVar("accepted_image_types", Path, Union[PathLike[str]
# Real Code
from recognizer import Detector
-detector = Detector()
+detector = Detector(optimize_click_order=True)
task_type: str = "bicycle"
images: accepted_image_types = "recaptcha_image.png"
@@ -73,7 +83,7 @@ def run(playwright: Playwright):
browser = playwright.chromium.launch()
page = browser.new_page()
- challenger = SyncChallenger(page)
+ challenger = SyncChallenger(page, click_timeout=1000)
page.goto("https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox-explicit.php")
challenger.solve_recaptcha()
@@ -99,7 +109,7 @@ async def run(playwright: Playwright):
browser = await playwright.chromium.launch()
page = await browser.new_page()
- challenger = AsyncChallenger(page)
+ challenger = AsyncChallenger(page, click_timeout=1000)
await page.goto("https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox-explicit.php")
await challenger.solve_recaptcha()
@@ -118,20 +128,28 @@ asyncio.run(main())
## Copyright and License
© [Vinyzu](https://github.com/Vinyzu/)
-
+
[GNU GPL](https://choosealicense.com/licenses/gpl-3.0/)
(Commercial Usage is allowed, but source, license and copyright has to made available. reCaptcha Challenger does not provide and Liability or Warranty)
---
+## Projects/AIs Used
+[YOLO11m-seg](https://github.com/ultralytics/ultralytics)
+
+[flavour/CLIP ViT-L/14](https://huggingface.co/flavour/CLIP-ViT-B-16-DataComp.XL-s13B-b90K)
+
+[CIDAS/clipseg](https://huggingface.co/CIDAS/clipseg-rd64-refined)
+[]()
+
## Thanks to
[QIN2DIM](https://github.com/QIN2DIM) (For basic project structure)
---
-![Version](https://img.shields.io/badge/reCognizer-v1.4-blue)
+![Version](https://img.shields.io/pypi/v/reCognizer?display_name=release&label=reCognizer)
![License](https://img.shields.io/badge/License-GNU%20GPL-green)
![Python](https://img.shields.io/badge/Python-v3.x-lightgrey)
diff --git a/requirements-test.txt b/requirements-test.txt
index c104acd..8d04f4d 100644
--- a/requirements-test.txt
+++ b/requirements-test.txt
@@ -1,10 +1,10 @@
# This requirements are for development and testing only, not for production.
pytest~=8.3.4
-pytest_asyncio~=0.25.2
+pytest_asyncio~=0.24.0
pytest-rerunfailures~=15.0
mypy~=1.14.1
ruff~=0.9.1
types-setuptools~=75.8.0.20250110
-botright~=0.5.1
+# botright~=0.5.1
playwright~=1.49.1
patchright~=1.49.1
\ No newline at end of file