This is a pytorch implementation of Gated Recurrent Convolution Neural Network for OCR.
A CRNN implementation is in https://github.com/jingjing-you/CRNN_OCR.pytorch.
- Pytorch >= 0.4.0
- opencv
- warp_ctc_pytorch
- tqdm
The names of train and val data are constructed as bellow:
img_xxx_$$$.jpg
where 'xxx' represents the number of this image and '$$$' represents the label of this image. For example,‘img_0_WHLU.jpg’.
Other examples are in data_sample/
directory.
You can run python train.py
to train your model.
You can run python eval.py
to test your model.