This small project provides Mail.ru Captcha Generator with using NumPy and SciPy for model training purposes
Original | Generated |
---|---|
- Clone repo
git clone -b main https://github.com/sidel-meril/captcha-generator.git
- Install NumPy and SciPy
python3.9 -m pip install numpy
python3.9 -m pip install scipy
- Generate samples
- Captcha generation
import MRCaptcha
# Count specifies number of generated captcha samples
MRCaptcha.generate_captcha(count=10)
Note: This method saves all images during generation steps. All samples is saved into separated folders. Final results is saved into /lined
- Distorted symbols generation
import MRCaptcha
# Count specifies number of generated symbols for each from list
MRCaptcha.generate_symbols(count=10)