Skip to content

Open Source KTP Extractor (Express, Tesseract.js)

Notifications You must be signed in to change notification settings

ganeshaampuh/ktp-ocr

Repository files navigation

OCR Kartu Tanda Penduduk (KTP)

OCR application to extract information from Indonesian ID Card (KTP) using Tesseract.js

Features

  • Extract text from KTP images
  • Parse extracted text into structured data
  • Support for common KTP fields (NIK, Name, Address, etc.)
  • Image preprocessing for better OCR accuracy

Prerequisites

  • Node.js (v12 or higher)
  • GraphicsMagick or ImageMagick installed on your system

Installation

  1. Clone the repository:
git clone https://github.com/ganeshaampuh/ocr-ktp.git
  1. Install dependencies:
npm install
  1. Start the server:
npm start

Usage

  • Upload an image of a KTP card
  • The application will extract the text and parse it into structured data
  • The structured data will be displayed in the response

License

This project is licensed under the MIT License. See the LICENSE file for details.

Releases

No releases published

Packages

No packages published