Install Tesseract and Indonesian Tesseract Language Model on your machine
See : https://tesseract-ocr.github.io/tessdoc/Data-Files-in-different-versions.html
Clone this repository and enter the folder:
cd ktp-extractor
Create virtual environment:
python -m venv env
Run virtual environment (for Windows user):
env\Scripts\activate.bat
Run virtual environment (for Unix user):
source ./env/bin/activate
Install dependencies:
pip install -r requirements.txt
Set FLASK_APP (for Windows user only):
set FLASK_APP=app.py
Run project:
python -m flask run
URL | Parameter | Type |
---|---|---|
/extract_ktp | img | image (jpg, jpeg, png) |