Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appintheair/MRZScanner
Library for scanning documents via MRZ (Machine Readable Zones) using Vision API
https://github.com/appintheair/MRZScanner
document-scanner mrz mrz-scanner swift
Last synced: 3 months ago
JSON representation
Library for scanning documents via MRZ (Machine Readable Zones) using Vision API
- Host: GitHub
- URL: https://github.com/appintheair/MRZScanner
- Owner: appintheair
- License: mit
- Created: 2021-06-29T13:36:13.000Z (over 3 years ago)
- Default Branch: develop
- Last Pushed: 2022-10-19T14:54:15.000Z (about 2 years ago)
- Last Synced: 2024-06-26T00:39:25.324Z (5 months ago)
- Topics: document-scanner, mrz, mrz-scanner, swift
- Language: Swift
- Homepage:
- Size: 10.3 MB
- Stars: 60
- Watchers: 12
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build and test](https://github.com/appintheair/MRZScanner/actions/workflows/Build%20and%20test.yml/badge.svg?branch=develop)](https://github.com/appintheair/MRZScanner/actions/workflows/Build%20and%20test.yml)
[![SPM](https://img.shields.io/badge/SPM-compatible-brightgreen.svg)](https://github.com/appintheair/MRZParser/blob/develop/Package.swift)
[![codecov](https://codecov.io/gh/appintheair/MRZScanner/branch/develop/graph/badge.svg?token=BAvvoujCum)](https://codecov.io/gh/appintheair/MRZScanner)# MRZScanner
Library for scanning documents via [MRZ](https://en.wikipedia.org/wiki/Machine-readable_passport) using [ Vision API](https://developer.apple.com/documentation/vision/vnrecognizetextrequest).## Example
The example project is located inside the [Example](https://github.com/appintheair/MRZScanner/tree/develop/Example) folder.![gif](https://github.com/appintheair/MRZScanner/blob/develop/docs/img/example.gif)
*To run it, you need a device with the [minimum required OS version](https://github.com/appintheair/MRZScanner#requirements).*
## Requirements
* iOS 13.0+
* macOS 10.15+
* Mac Catalyst 13.0+
* tvOS 13.0+## Installation guide
### Swift Package Manager
```swift
dependencies: [
.package(url: "https://github.com/appintheair/MRZScanner.git", .upToNextMajor(from: "0.0.1"))
]
```
*The library has an SPM [dependency](https://github.com/appintheair/MRZParser) 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](https://opensource.org/licenses/MIT).