SkillAgentSearch skills...

QKMRZParser

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

Install / Use

/learn @Mattijah/QKMRZParser
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

SwiftPackageSupport Swift 5.0 Git

QKMRZParser

Parses MRZ (Machine Readable Zone) from identity documents.

Supported formats:

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

Installation

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'

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
  • [x] 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

View on GitHub
GitHub Stars26
CategoryDevelopment
Updated6mo ago
Forks24

Languages

Swift

Security Score

82/100

Audited on Sep 7, 2025

No findings