Search packages, repositories and app categories

mnc_identifier_ocr cover
Package detailsv1.0.23

mnc_identifier_ocr

Cross-platform KTP scanning for fast, accurate identity verification on iOS and Android.

AndroidiOS
30-day downloads
53
Likes
30
Pub points
130

Install package

flutter pub add mnc_identifier_ocr

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A cross-platform Flutter package for scanning Indonesian KTP (National Identity Card) documents on Android and iOS. It enables fast, accurate identity verification by leveraging OCR technology to extract key personal data from KTP images. Designed for seamless integration into mobile applications requiring secure user authentication or onboarding processes. The package supports both platforms and is optimized for performance and reliability in real-world conditions.

Use cases

  • Identity verification during onboarding
  • Automated KTP data extraction
  • Secure user authentication
  • Digital KYC processes
  • Document-based identity validation
  • Mobile app onboarding workflows

Key features

  • Cross-platform support for Android and iOS
  • High-accuracy OCR for Indonesian KTP
  • Fast document scanning and data extraction
  • Seamless Flutter integration
  • Optimized for real-world lighting and angles
  • Minimal setup required

Suitable for

  • Mobile apps requiring ID verification
  • Financial services and fintech platforms
  • Government digital services
  • Onboarding systems with KYC compliance
  • Apps targeting Indonesian users

Considerations

  • Requires camera permissions on both platforms
  • Performance may vary under poor lighting
  • Best results with clear, well-lit KTP images
  • Limited to Indonesian KTP format
  • May require additional validation logic for production use

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

MNC Identifier OCR

banner_ocr

A Flutter plugin for Android and iOS for scanning KTP

Installation

Add dependency

You can use the command to add MNC Identifier OCR as a dependency with the latest stable version:

$ dart pub add mnc_identifier_ocr

Or you can manually add MNC Identifier OCR into the dependencies section in your pubspec.yaml:

dependencies:
  mnc_identifier_ocr: ^replace-with-latest-version

The latest version is: 1.0.22

Additional Steps

Android

This plugin requires Android SDK 21 or higher.

Add CaptureOCRActivity into your AndroidManifest.xml

<activity android:name="id.mncinnovation.ocr.CaptureOCRActivity" android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
iOS

This plugin requires iOS 12.0 or higher and only working on real device.

Add NSCameraUsageDescription key to your info.plist file. Describe why your app needs access to the camera. This is called Privacy - Camera Usage Description in the visual editor.

Usage

import 'package:mnc_identifier_ocr/mnc_identifier_ocr.dart';
import 'package:mnc_identifier_ocr/model/ocr_result_model.dart';

Future<void> scanKtp() async {
  try {
    OcrResultModel res = await MncIdentifierOcr.startCaptureKtp(
      withFlash: true,
      cameraOnly: true,
    );
    debugPrint('result: ${res.toJson()}');
    debugPrint('KTP image path: ${res.imagePath}');
    debugPrint('Face image path: ${res.faceImagePath}');
    // Access KTP data fields
    debugPrint('NIK: ${res.ktp?.nik}');
    debugPrint('Nama: ${res.ktp?.nama}');
    // ...and so on
  } catch (e) {
    debugPrint('something goes wrong $e');
  }
}
  • imagePath contains the path to the full KTP image.
  • faceImagePath contains the path to the cropped face image.
  • ktp contains the extracted KTP data fields.

Note: On iOS, this plugin only works on a real device.

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

No data available yet.