Skip to content

Scans MRZ (Machine Readable Zone) from identity documents.

License

Notifications You must be signed in to change notification settings

Kimpav/flutter_mrz_scanner

 
 

Repository files navigation

flutter_mrz_scanner

Scan MRZ (Machine Readable Zone) from identity documents (passport, id, visa) using iOS and Android. Heavily insipred by QKMRZScanner.

To plugin users

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!

Supported formats:

  • TD1
  • TD2
  • TD3
  • MRV-A
  • MRV-B

Usage

Import the package

Add to pubspec.yaml

dependencies:
  flutter_mrz_scanner: ^1.0.0

For iOS

The plugin use native view, which is not yet supported by default. To make it work add the following code to Info.plist:

    <key>io.flutter.embedded_views_preview</key>
    <string>YES</string>

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>

Set iOS deployment target to 12.

For Android

Add

<uses-permission android:name="android.permission.CAMERA" />

to AndroidManifest.xml

Use the widget

Refer to example project for the complete app sample.

Acknowledgements

License

flutter_mrz_scanner is released under a MIT License. See LICENSE for details.

About

Scans MRZ (Machine Readable Zone) from identity documents.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 44.4%
  • Dart 22.4%
  • Kotlin 20.7%
  • Ruby 9.4%
  • Objective-C 3.1%