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
- Host: GitHub
- URL: https://github.com/errlogic/ktp-extractor
- Owner: ErrLogic
- Created: 2022-03-23T17:57:14.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-23T02:54:10.000Z (about 2 years ago)
- Last Synced: 2025-03-04T00:46:05.475Z (about 1 year ago)
- Topics: 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
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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) |