Skip to content

wxh06/php-captcha-recognition

Repository files navigation

php-captcha-recognition

Code style: black

Train OCR model for reading Gregwar/Captcha

Python dependencies

pip install -r requirements.txt

PHP dependencies

Ubuntu

sudo apt-get install php php-curl php-gd php-mbstring

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"

php composer.phar update

macOS

brew install php composer

composer update

Generating data

for _ in {0..3}; do uuidgen; done | parallel --termseq INT python3 generate.py

Training

python3 train.py