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

outdated

MNC Flutter plugin KTP scanner for iOS and Android.

MNC Identifier OCR #

banner_ocr

A Flutter plugin for Android and iOS for scanning KTP

Installation #

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 11.0 or higher.

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');
    }
  }

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

28
likes
0
points
98
downloads

Publisher

verified publishermobile.mncinnovation.id

Weekly Downloads

MNC Flutter plugin KTP scanner for iOS and Android.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on mnc_identifier_ocr