Break CAPTCHA at 2ch.hk using OpenCV and FANN. Just for fun (UWBFTP).
CAPTCHA WAS CHANGED, THIS CODE IS LEFT JUST FOR HISTORIC PURPOSES. Maybe I'll update it for the new one some day.
Demo backend is available at ch.genshiken.org
, install userscript to try it out (not tested for compatibility with Dollchan Extension Tools).
- Python 2.7+ or 3.2+
- NumPy 1.7+
- OpenCV 2.4+ with Python bindings
- FANN 2.1+ with Python bindings
- requests 2+
- bottle 0.10+
# Visualize preprocess/segmentation steps
python chaptcha.py vis -i captcha.png
# Collect training data
python chaptcha.py collect -o captchas/ -k ag.txt
# Train neural network
python chaptcha.py train -i captchas/ -o my.net
# Recognize CAPTCHA
python chaptcha.py ocr -i captcha.png -n my.net
# Host OCR backend (for chaptcha.user.js)
python chaptcha.py serve -n my.net