搜尋套件、儲存庫與 APP 分類

mnc_identifier_ocr 封面
套件詳情v1.0.23

mnc_identifier_ocr

跨平台的KTP掃描,可在iOS和Android上實現快速、準確的身份驗證。

AndroidiOS
近 30 天下載
53
喜歡數
30
Pub 分數
130

安裝套件

flutter pub add mnc_identifier_ocr

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個跨平台的 Flutter 套件,可在 Android 與 iOS 上掃描印尼 KTP(國民身分證)文件。透過 OCR 技術從 KTP 圖像中提取關鍵個人資料,實現快速且精確的身份驗證。專為需要安全使用者認證或註冊流程的行動應用程式設計,可無縫整合。此套件支援兩個平台,並針對現實環境中的效能與可靠性進行最佳化。

適用情境

  • 開戶時的身份驗證
  • 自動化KTP數據提取
  • 安全的使用者驗證
  • 數位KYC流程
  • 基於文件的身份驗證
  • 行動應用程式入門工作流程

主要特色

  • 對 Android 和 iOS 的跨平台支援
  • 高精度印尼身分證OCR
  • 快速文件掃描和數據提取
  • 無縫的 Flutter 集成
  • 針對現實世界的光照和角度進行了優化
  • 所需設定最少

適合對象

  • 需要身份驗證的移動應用
  • 金融服務和金融科技平台
  • 政府數位服務
  • 具備KYC合規性的入職系統
  • 面向印度尼西亞用戶的應用

使用建議

  • 兩個平台都需要相機權限
  • 在光線較差的環境下,效能可能會有所不同
  • 使用清晰、光線充足的KTP圖像可獲得最佳效果
  • 僅限印度尼西亞身分證格式
  • 可能需要額外的驗證邏輯才能用於生產環境

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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.

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。