captcha-url-reader
Simple package: user passes captcha image URL, package reads and returns text.
Install
pip install -e .
Usage
from captcha_image_reader import read_captcha_from_url
# Default mode (recommended for Amazon-style captchas)
captcha_text = read_captcha_from_url("https://images-na.ssl-images-amazon.com/captcha/sgkknrsj/Captcha_iwrdailhkf.jpg")
if captcha_text:
print(f"CAPTCHA text extracted: {captcha_text}")
else:
print("No text extracted from image URL.")
Overlap-heavy captcha mode
Use forced overlap mode only when text is merged/overlapping and default mode is not accurate.
from captcha_image_reader import read_captcha_from_url
captcha_text = read_captcha_from_url(
"https://2captcha.com/dist/web/assets/captcha-rn1S3orp.jpg",
force_overlap_risk=True,
)
When to use which mode
- Use default mode for clean or mostly non-overlapping text (for example, most Amazon captchas).
- Use
force_overlap_risk=Trueonly when characters are merged and default extraction is wrong.
Example scripts
- Default/Amazon style:
examples/read_amazon_default.py - Overlap-heavy style:
examples/read_overlap_captcha.py
Run them directly:
./.venv/bin/python examples/read_amazon_default.py
./.venv/bin/python examples/read_overlap_captcha.py
GPU behavior
- Uses GPU first by default.
- If GPU is not available or fails, automatically falls back to CPU.
Release files for captcha-url-reader 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| captcha_url_reader-1.0.1.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| captcha_url_reader-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.6 kB
Release files / captcha_url_reader-1.0.1.tar.gz
| Download URL | captcha_url_reader-1.0.1.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9ea81ee131cd87707072505b1e6be95a358398eae3151ec8d795693ef09d083
|
|
BLAKE2b-256 checksum How to use checksums |
b4f431442ff90a47c4d94ac5d070fa3fe9b39e614573ac67e5ae31634692552f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Release files / captcha_url_reader-1.0.1-py3-none-any.whl
| Download URL | captcha_url_reader-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86392cca147ee5200928a5e86a40581d20d4edd4b4c74f7c79636aedaf9661e8
|
|
BLAKE2b-256 checksum How to use checksums |
a7ab8887f807894fcdad7777e514ff0960fc30a85eddb7bcbd8291cd5cc96cc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|