Latest 1.0.1
Homepage https://github.com/Mattijah/QKMRZParser
License MIT
Platforms ios 9.0
Frameworks Foundation
Authors

Swift 4.0
Git

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

Latest podspec

{
    "name": "QKMRZParser",
    "version": "1.0.1",
    "summary": "Parses MRZ (Machine Readable Zone) from identity documents.",
    "authors": {
        "Matej Dorcak": "[email protected]"
    },
    "homepage": "https://github.com/Mattijah/QKMRZParser",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "source": {
        "git": "https://github.com/Mattijah/QKMRZParser.git",
        "tag": "v1.0.1"
    },
    "source_files": "QKMRZParser/**/*.{swift}",
    "frameworks": "Foundation",
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This