Skip to content

ErrLogic/ktp-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)