appintheair / MRZScanner

Library for scanning documents via MRZ (Machine Readable Zones) using  Vision API
MIT License
60 stars 11 forks source link
document-scanner mrz mrz-scanner swift

Build and test SPM codecov

MRZScanner

Library for scanning documents via MRZ using  Vision API.

Example

The example project is located inside the Example folder.

gif

To run it, you need a device with the minimum required OS version.

Requirements

Installation guide

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/appintheair/MRZScanner.git", .upToNextMajor(from: "0.0.1"))
]

The library has an SPM dependency for MRZ code parsing.

Usage

Currently there are 2 scanners available, LiveMRZScanner and ImageMRZScanner. The first is used to scan the MRZ code on a single image, and the second in real-time scanning.

To scan, you need to call the scanFrame / scan method of the scanner.

License

The library is distributed under the MIT LICENSE.