Swiftpack.co - Mattijah/QKMRZParser as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Mattijah.
Mattijah/QKMRZParser v2.0.0
Parse MRZ (Machine Readable Zone) from identity documents using Swift.
⭐️ 15
🕓 26 weeks ago
.package(url: "https://github.com/Mattijah/QKMRZParser.git", from: "v2.0.0")

SwiftPackageSupport Swift 5.0 Git


Parses MRZ (Machine Readable Zone) from identity documents.

Supported formats:

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


QKMRZParser is available through CocoaPods and the Swift Package Manager. To install it via CocoaPods simply add the following line to your Podfile:

pod 'QKMRZParser'


import QKMRZParser

let mrzLines = [

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



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


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


Stars: 15
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics