Match data collected from the front of ID cards against the barcode on the back
- Open your project in Xcode
- In the top menu select File -> Swift Packages -> Add Package Dependency ...
- Enter the URL of this repository:
https://github.com/AppliedRecognition/Barcode-Data-Matcher-Apple
- Enter the desired version range, branch or commit hash
- Press the Finish button
- Create an instance of
DocumentFrontPageData
, filling in the values for first name, last name, document number, etc. - Get the raw PDF417 barcode data from a barcode scanner.
- Execute the
match(_:)
method on theDocumentFrontPageData
instance to get a match score. - The score ranges from 0 (not matching at all) to 1 (all elements from the front page match the barcode).