Search packages, repositories and app categories

Package detailsv2.3.0

flutter_mrz_scanner

Scans MRZ (Machine Readable Zone) from identity documents for iOS and Android.

AndroidiOS
30-day downloads
227
Likes
42
Pub points
160

Install package

flutter pub add flutter_mrz_scanner

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that enables scanning of Machine Readable Zones (MRZ) from identity documents on both Android and iOS. It leverages native camera APIs to detect and extract data such as passport numbers, names, and expiration dates from MRZ lines. Designed for secure and accurate document verification in applications requiring identity authentication. The package integrates seamlessly with Flutter projects and supports real-time scanning with minimal configuration.

Use cases

  • Passport verification in travel apps
  • Identity validation for banking services
  • Automated check-in systems
  • Document authentication in government services
  • Secure user onboarding workflows

Key features

  • Real-time MRZ detection
  • Supports both iOS and Android
  • Extracts structured identity data
  • Minimal setup required
  • High accuracy with low latency

Suitable for

  • Travel and immigration apps
  • Financial institutions
  • Government digital services
  • Onboarding platforms
  • Security-focused applications

Considerations

  • Requires camera permissions
  • Performance depends on lighting conditions
  • May need manual alignment for optimal results
  • Limited to MRZ-compliant documents
  • No support for offline processing

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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: <latest_version_here>
For iOS

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>
For Android

Camera permission will be automatically added to your AndroidManifest.xml. Do not forget to request this permission.

Use the widget

Use MRZScanner widget:

MRZScanner(
  withOverlay: true, // optional overlay
  onControllerCreated: (controller) =>
    onControllerCreated(controller),
  )

Refer to example project for the complete app sample.

Acknowledgements

License

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

Categories

Dependencies

Dependency list 1 items

  • mrz_parser^2.0.1

Source repository

Projects using this package

No data available yet.