Skip to content


Build Status pypi pyversions codecov


Source Code:

Meaningful Optical Character Recognition from identity cards with Deep Learning.

mocr is a library that can be used to detect meaningful optical characters from identity cards. Code base is pure Python and works with 3.x versions. It has some low level dependencies such as Tesseract. mocr uses a pre-trained east detector with OpenCV and applies it's Deep Learning techniques.

It has a pre-trained east detector inside the module and a custom trained model can be given as a parameter.


  • Tessaract must be installed on your computer before using OCR. Please check installation link for details.
  • The other dependencies are listed on requirements.txt and will be installed when you install with pip.