/ocr-captchas

A pratice of OCR model for reading Captchas

Primary LanguagePythonMIT LicenseMIT

ocr-captchas

A pratice of OCR model for recognition Captchas by Tensorflow.Keras

Data

Example Dataset is from Kaggle's CAPTCHA Images.

Link

Usage

  • Prepare your data and name the folder captcha_images

    • notice that the label of captchas should be the filename of image just like example data
  • Train and save the model

python ocr_captcha.py
  • Inference with single image named test.png
python predict_example.py

Result

result

Learning curve

learning_curve

model

CRNN + CTC loss

model_structure