搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目

暂无相关数据。