mnc_identifier_ocr 1.0.22 copy "mnc_identifier_ocr: ^1.0.22" to clipboard
mnc_identifier_ocr: ^1.0.22 copied to clipboard

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

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
copied to clipboard

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

dependencies:
  mnc_identifier_ocr: ^replace-with-latest-version
copied to clipboard

The latest version is: 1.0.20

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" />
copied to clipboard

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.toString()}');
    } catch (e) {
      debugPrint('something goes wrong $e');
    }
  }
copied to clipboard

Note: on iOS, this plugin only works on real device

28
likes
150
points
151
downloads

Publisher

verified publishermobile.mncinnovation.id

Weekly Downloads

2024.09.26 - 2025.04.10

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on mnc_identifier_ocr