I want to read passports information using the android camera. please note that I'm not talking about the ePassports reading using NFC.
what I'm thinking to do is reading the text using google text recognition and after that parse the info from the text. but is there any implementation for the MRZ standards in java to parse the text?
With ID cards, the first character in the MRZ indicates the type of document – I for ID card, P for passport, V for visa. Next is the country code and the three characters that indicate the country that issued the document. The country code is in accordance with International Organization for Standardization standards.
"Machine Readable Zone (MRZ) has been included in the passports. Details available in MRZ are proving instrumental in detection of forgery in passports," he said.
The machine-readable zone allows you to access an RFID (Radio-frequency identification) placed inside a biometric passport. The chip encloses detailed information about the ID holder. This process is several times faster than the manual method.
Your passport number is a nine digit number that identifies the issuing passport office as well as your unique series of numbers that connect to your passport application.
If you want to read MRZ data on passport you have to recognize MRZ text data with OCR. I have made a sample app read MRZ data with Google MLKit on camera.
MLKit recognize the passport / id card MRZ data and application parse and check read mrz data is valid. If it is valid, then it sends documentNumber, expiryDate and birthDate info to biometric chip via NFC. Biometric chip responds some group of personal data of passport / id card holder.
If you are looking for a simple example of reading MRZ with MLKit on Android, here is the link: https://github.com/alimertozdemir/EPassportNFCReader
Parsing MRZ is easy: MRZ format for passports, id cards and visas is publicly available.
But you will definitely have a hard time doing the OCR. There are many ways of doing it, none is perfect or easy.
There are also commercial SDKs to do both.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With