Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 885 Bytes

README.md

File metadata and controls

55 lines (36 loc) · 885 Bytes

KTP Extractor Using Python and Tesseract

Installation

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

Endpoint Documentation

URL Parameter Type
/extract_ktp img image (jpg, jpeg, png)