flutter_mrz_scanner
从身份证明文件中扫描机器可读区域(MRZ)以支持 iOS 和 Android。
从身份文件中扫描机器可读区域 (MRZ)。
{"sdk":"flutter"}^2.0.1以下为英文项目原文快照,最新内容请访问 GitHub。
Scan MRZ (Machine Readable Zone) from identity documents (passport, id, visa) using iOS and Android. Heavily insipred by QKMRZScanner.
Hello,
Sorry that the plugin didn’t work well for all of you. Unfortunately, I don’t have testing devices and time for investigations and fixing issues at the moment. Please feel free to create new tickets. I would be even more grateful for pull requests. I’m not abandoning the plugin and promise to merge contributions with fixes and new functionality, hence I would kindly ask for help with the development 🙂
Thanks in advance!
Add to pubspec.yaml
dependencies:
flutter_mrz_scanner: <latest_version_here>
Set iOS deployment target to 12.
The plugin uses the device camera, so do not forget to provide the NSCameraUsageDescription. You may specify it in Info.plist like that:
<key>NSCameraUsageDescription</key>
<string>May I scan a MRZ please?</string>
Camera permission will be automatically added to your AndroidManifest.xml. Do not forget to request this permission.
Use MRZScanner widget:
MRZScanner(
withOverlay: true, // optional overlay
onControllerCreated: (controller) =>
onControllerCreated(controller),
)
Refer to example project for the complete app sample.
flutter_mrz_scanner is released under a MIT License. See LICENSE for details.