Indonesian ID Card OCR using tesseract OCR

KTP OCR is python-flask with tesseract web application to convert Indonesian ID Card to text / JSON Data

  • convert KTP to JSON
  • text preprocessing for enhance the quality of result (in progres)

Installation (UBUNTU)

KTP OCR needs Python 3+ and tesseract OCR. Currently i’m using Ubuntu 20.0 and its running normaly.

To install tesseract OCR Click here

  1. Clone GIT Repository

    git clone https://github.com/revanmd/KTP-OCR.git
  2. Go root directory of this project

    cd KTP-OCR
  3. Optionally to use Virtual ENV (You can skip this step if you want install dependencies globaly)

    virtualenv venv
    source venv/bin/activate
  4. Install dependencies

    pip install -r requirement.txt
  5. running the server, this is for development server

    python wsgi.py


You can use gunicorn if using virtual env using this command

venv/bin/gunicorn -b -w 5 wsgi:app


View Github