An open API service indexing awesome lists of open source software.

https://github.com/errlogic/ktp-extractor

KTP Extractor Using Python and Tesseract
https://github.com/errlogic/ktp-extractor

api flask flask-api ktp ktp-checker-android ktp-extractor ktp-ocr ocr ocr-ktp ocr-python ocr-recognition ocr-tesseract python tesseract tesseract-4 tesseract-engine tesseract-ocr tesseract-ocr-api tesseract-python

Last synced: 7 months ago
JSON representation

KTP Extractor Using Python and Tesseract

Awesome Lists containing this project

README

          

# 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:

```sh
cd ktp-extractor
```

Create virtual environment:

```sh
python -m venv env
```

Run virtual environment (for Windows user):

```sh
env\Scripts\activate.bat
```

Run virtual environment (for Unix user):

```sh
source ./env/bin/activate
```

Install dependencies:

```sh
pip install -r requirements.txt
```

Set FLASK_APP (for Windows user only):

```sh
set FLASK_APP=app.py
```

Run project:

```sh
python -m flask run
```

## Endpoint Documentation

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