Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Scan MRZ (Machine Readable Zone) from identity documents (passport, id, visa) using iPhone/iPad (iOS)

License

NotificationsYou must be signed in to change notification settings

Mattijah/QKMRZScanner

Repository files navigation

SwiftPackageSupportSwift 5Git

QKMRZScanner

Scans MRZ (Machine Readable Zone) from identity documents.

scanning_preview

Installation

Swift Package Manager

For better M1 & SPM support please seemaster-spm.

CocoaPods

QKMRZScanner is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod'QKMRZScanner'

Please note:Xcode 12 andCocoaPods >= 1.10.0.rc.1 is recommended. More infohere.

Setup

AssignQKMRZScannerView to the component responsible for displaying the camera view.

storyboard_setup

Subsequently connect this component to your UIViewController.

@IBOutlet weakvarmrzScannerView:QKMRZScannerView!

Start scanning

overridefunc viewWillAppear(_ animated:Bool){    super.viewWillAppear(animated)    mrzScannerView.startScanning()}

Stop scanning

overridefunc viewWillDisappear(_ animated:Bool){    super.viewWillDisappear(animated)    mrzScannerView.stopScanning()}

Scanning Result

In order to retrieve the scanning results you need to implementQKMRZScannerViewDelegate.

classMRZScannerViewController:UIViewController,QKMRZScannerViewDelegate{@IBOutlet weakvarmrzScannerView:QKMRZScannerView!overridefunc viewDidLoad(){        super.viewDidLoad()        mrzScannerView.delegate=self}func mrzScannerView(_ mrzScannerView:QKMRZScannerView, didFind scanResult:QKMRZScanResult){print(scanResult)}}

License

This project is licensed under the MIT License - see theLICENSE file for details

About

Scan MRZ (Machine Readable Zone) from identity documents (passport, id, visa) using iPhone/iPad (iOS)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp