keras-ocr provides out-of-the-box OCR models and an end-to-end training pipeline to build new OCR models. Please see the examples for more information.


keras-ocr supports Python >= 3.6 and TensorFlow >= 2.0.0.

# To install from master
pip install git+

# To install from PyPi
pip install keras-ocr


  • This package is installing opencv-python-headless but I would prefer a different opencv flavor. This is due to aleju/imgaug#473. You can uninstall the unwanted OpenCV flavor after installing keras-ocr. We apologize for the inconvenience.