Update README.md
Browse files
README.md
CHANGED
|
@@ -7,4 +7,101 @@ datasets:
|
|
| 7 |
- DannyLuna/recaptcha-57k-images-dataset
|
| 8 |
tags:
|
| 9 |
- code
|
| 10 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
- DannyLuna/recaptcha-57k-images-dataset
|
| 8 |
tags:
|
| 9 |
- code
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# recaptcha-classification-57k
|
| 13 |
+
|
| 14 |
+
YOLO based image classification model for reCAPTCHA images. This
|
| 15 |
+
model is used by [`vision-ai-recaptcha-solver`](https://github.com/DannyLuna17/VisionAIRecaptchaSolver) to solve reCAPTCHA challenges.
|
| 16 |
+
|
| 17 |
+
## Model summary
|
| 18 |
+
|
| 19 |
+
- Task: image classification
|
| 20 |
+
- Format: ONNX (`recaptcha_classification_57k.onnx`) and PyTorch (`recaptcha_classification_57k.pt`)
|
| 21 |
+
- Architecture: Ultralytics YOLO classification
|
| 22 |
+
- Labels: 14 classes (13 target classes + `other`)
|
| 23 |
+
- Trained on a [57k images dataset](https://huggingface.co/datasets/DannyLuna/recaptcha-57k-images-dataset).
|
| 24 |
+
|
| 25 |
+
## Labels
|
| 26 |
+
|
| 27 |
+
Target classes in this model:
|
| 28 |
+
|
| 29 |
+
- bicycle
|
| 30 |
+
- bridge
|
| 31 |
+
- bus
|
| 32 |
+
- car
|
| 33 |
+
- chimney
|
| 34 |
+
- crosswalk
|
| 35 |
+
- fire hydrant
|
| 36 |
+
- motorcycle
|
| 37 |
+
- mountain
|
| 38 |
+
- palm tree
|
| 39 |
+
- stairs
|
| 40 |
+
- tractor
|
| 41 |
+
- traffic light
|
| 42 |
+
|
| 43 |
+
The `other` class represents non-target/background tiles and is intentionally
|
| 44 |
+
not treated as a match by the solver.
|
| 45 |
+
|
| 46 |
+
## Intended use
|
| 47 |
+
|
| 48 |
+
- Classifying individual reCAPTCHA tile images as part of research or testing
|
| 49 |
+
workflows.
|
| 50 |
+
- Integrated use with the [`vision-ai-recaptcha-solver`](https://github.com/DannyLuna17/VisionAIRecaptchaSolver) package.
|
| 51 |
+
|
| 52 |
+
## Training data
|
| 53 |
+
|
| 54 |
+
Trained on the dataset:
|
| 55 |
+
[`DannyLuna/recaptcha-57k-images-dataset`](https://huggingface.co/datasets/DannyLuna/recaptcha-57k-images-dataset).
|
| 56 |
+
|
| 57 |
+
## Training procedure
|
| 58 |
+
|
| 59 |
+
Trained with Ultralytics YOLO classification and exported to ONNX with dynamic
|
| 60 |
+
input shapes.
|
| 61 |
+
|
| 62 |
+
## How to use
|
| 63 |
+
|
| 64 |
+
### Ultralytics (recommended)
|
| 65 |
+
|
| 66 |
+
```python
|
| 67 |
+
from ultralytics import YOLO
|
| 68 |
+
|
| 69 |
+
model = YOLO("recaptcha_classification_57k.onnx", task="classify")
|
| 70 |
+
results = model("tile.jpg")
|
| 71 |
+
|
| 72 |
+
probs = results[0].probs
|
| 73 |
+
top1_idx = int(probs.top1)
|
| 74 |
+
print(model.names[top1_idx], float(probs.top1conf))
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
### vision-ai-recaptcha-solver
|
| 78 |
+
|
| 79 |
+
```python
|
| 80 |
+
from vision_ai_recaptcha_solver import RecaptchaSolver, SolverConfig
|
| 81 |
+
|
| 82 |
+
with RecaptchaSolver(SolverConfig()) as solver:
|
| 83 |
+
result = solver.solve(
|
| 84 |
+
website_key="your_site_key",
|
| 85 |
+
website_url="https://example.com/your-page-with-recaptcha",
|
| 86 |
+
)
|
| 87 |
+
print(result.token)
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
## Model files
|
| 91 |
+
|
| 92 |
+
- `recaptcha_classification_57k.onnx`
|
| 93 |
+
- `recaptcha_classification_57k.pt`
|
| 94 |
+
|
| 95 |
+
## Limitations
|
| 96 |
+
|
| 97 |
+
- The reCAPTCHA system changes over time; accuracy may degrade on new variants.
|
| 98 |
+
- False positives are possible on visually similar objects.
|
| 99 |
+
|
| 100 |
+
## Ethical considerations
|
| 101 |
+
|
| 102 |
+
Use this model only for lawful, authorized purposes such as research, benchmarking, or
|
| 103 |
+
testing in controlled environments.
|
| 104 |
+
|
| 105 |
+
## License
|
| 106 |
+
|
| 107 |
+
MIT License. See the repository `LICENSE` file for details.
|