8000 GitHub - jlab13/QKMRZParser: Parse MRZ (Machine Readable Zone) from identity documents using Swift.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jlab13/QKMRZParser

 
 

Repository files navigation

Swift 4.0 Git

QKMRZParser

Parses MRZ (Machine Readable Zone) from identity documents.

Supported formats:

  • TD1
  • TD2
  • TD3
  • MRV-A
  • MRV-B

Installation

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

pod 'QKMRZParser'

Usage

import QKMRZParser

let mrzLines = [
    "P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<",
    "L898902C36UTO7408122F1204159ZE184226B<<<<<10"
]

let mrzParser = QKMRZParser(ocrCorrection: true)
let result = mrzParser.parse(mrzLines: mrzLines)

print(result)

TODO

  • Tests
  • Documentation
  • Support Swiss Driving License
  • Support French national ID
  • Improve OCR correction
  • Latin transliteration
  • Arabic transliteration
  • Cyrillic transliteration

License

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

About

Parse MRZ (Machine Readable Zone) from identity documents using Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 95.1%
  • Ruby 2.8%
  • Objective-C 2.1%
0