Library for scanning documents via MRZ using Vision API.
The example project is located inside the Example folder.
To run it, you need a device with the minimum required OS version.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
dependencies: [
.package(url: "https://github.com/appintheair/MRZScanner.git", .upToNextMajor(from: "0.0.1"))
]
The library has an SPM dependency for MRZ code parsing.
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.
The library is distributed under the MIT LICENSE.