mrz_parser 1.1.0 copy "mrz_parser: ^1.1.0" to clipboard
mrz_parser: ^1.1.0 copied to clipboard

outdated

Parse MRZ (Machine Readable Zone) from identity documents.

mrz_parser (Dart/Flutter) #

Build Status Coverage Status

Parse MRZ (Machine Readable Zone) from identity documents. Heavily inspired by QKMRZParser.

Supported formats: #

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

Usage #

Import the package #

Add to pubspec.yaml

dependencies:
    mrz_parser: ^1.1.0

Parse MRZ #

final mrz = <String>[
  'P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<',
  'L898902C36UTO7408122F1204159ZE184226B<<<<<10'
];

final result = MRZParser.tryParse(mrz);

// Alternatively use parse and catch MRZException descendants
try {
  final result = MRZParser.parse(mrz);
} on MRZException catch(e) {
  print(e);
}

Authors #

License #

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

13
likes
0
pub points
89%
popularity

Publisher

verified publisherleushchenko.com

Parse MRZ (Machine Readable Zone) from identity documents.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on mrz_parser