Captcha Breaker

A library to break captchas using a deep learning model.
Provenance
This project's inference code is adapted from the Hugging Face Space by docparser.
The underlying model is a copy of DocParser/captcha, licensed under CC BY 4.0.
A local copy of the model is hosted in this repository for convenience https://github.com/ramSeraph/captchabreaker/releases/tag/model.
Installation
To install the necessary dependencies, run:
pip install captchabreaker
Usage
To use the captcha breaker, you can use the captchabreaker.solve() function.
It takes a PIL Image object as input and returns the predicted text.
Here is an example:
from PIL import Image
import captchabreaker
if __name__ == '__main__':
# This is an example of how to use the captchabreaker package.
# You need to have a captcha image file (e.g., captcha.png) in the same directory.
try:
img = Image.open("sample.png")
text = captchabreaker.solve(img)
print(f"Predicted text: {text}")
except FileNotFoundError:
print("Error: captcha.png not found. Please provide a captcha image.")
Metadata
Release files for captchabreaker 0.1.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 | |
|---|---|---|---|
| captchabreaker-0.1.1.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| captchabreaker-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / captchabreaker-0.1.1.tar.gz
| Download URL | captchabreaker-0.1.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5df632f3e333f723b489328f01e70f19822f8a94496b755e0681484f9b7da425
|
|
BLAKE2b-256 checksum How to use checksums |
bab13bd6f8cd6c340dd323b2f0a8f1e91abce74b835e3e294c848a88d6894cd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / captchabreaker-0.1.1-py3-none-any.whl
| Download URL | captchabreaker-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29f4d5fbed161ff7445d7b6db5fa5e95a4f43a28cf72b2e23a0df79dc1598533
|
|
BLAKE2b-256 checksum How to use checksums |
e2d2cbf07fc06117f8b36867b0d7f72c4ecc2492ba2841859a1ebbaf9581d36f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|