Skip to content

namdvt/CAPTCHA-Recognition-using-CRNN

Repository files navigation

CRNN for captcha recognition

General

This is a simple PyTorch implementation of OCR system using CNN + RNN + CTC loss for captcha recognition.

Dataset

I used CAPTCHA Images dataset which was downloaded from https://www.kaggle.com/fournierp/captcha-version-2-images

Files

.
├── data
│   └── CAPTCHA Images
│       ├── test
│       ├── train
│       └── val
├── dataset.py
├── model.py
├── output
│   ├── log.txt
│   ├── loss.png
│   └── weight.pth
├── predict.py
├── README.md
├── split_train_val_test.py
├── train.py
└── utils.py

Training

python train.py

Training and validation loss:

Image description

Testing

python predict.py

accuracy = 0.897

About

OCR system using CNN + RNN + CTC loss.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages