Here the code for CNN based approach to Telugu OCR paper is avalilable.
Tested on 64 bit Linux.
git clone https://github.com/GayamTrishal/OCR_Telugu_code.git
cd OCR_Telugu_code/models/vattu_gunintam/ours/
unzip model_v_g_weights.hdf5.zip
cd ../../..
cd OCR_Telugu_code/code
python OCR.py
- Set file name training_testing/main_character/model_code.py, h5_file_location = 'YOURPATH/final_dataset.hdf5'
cd OCR_Telugu_code/training_testing/main_character
python model_code.py
- Set file name in training_testing/vattu_gunintam/model_code.py, h5_file_location = 'YOURPATH/final_dataset.hdf5'
cd OCR_Telugu_code/training_testing/vattu_gunintam
python model_code.py
Information on trained models can be found here.
- Keras
- OpenCV 3.0.0 version (currently only supports this.)
- Skimage
- Numpy
Dataset used can be downloaded here.
Replace img.jpg inside OCR_Telugu_code/code folder with your image and run the code. The result will be stored in OCR_Telugu_code/code/output folder.