chaptcha icon indicating copy to clipboard operation
chaptcha copied to clipboard

Break 2ch CAPTCHA using OpenCV and FANN

chaptcha

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

Demo backend is available at ch.genshiken.org, install userscript to try it out (not tested for compatibility with Dollchan Extension Tools).

Requirements

Usage

# 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

Links

License

CC0.