Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I read machine-readable passport (MRP) using android camera

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?

enter image description here

like image 868
Omar Abdan Avatar asked Dec 13 '17 14:12

Omar Abdan


People also ask

How do you read a passport MRZ?

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.

Is machine-readable code in Indian passport?

"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.

What is machine readable zone in Indian passport?

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.

What is the number at bottom of passport?

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.


2 Answers

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

like image 83
Ali Mert Özdemir Avatar answered Oct 22 '22 17:10

Ali Mert Özdemir


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.

like image 1
Maxim Volgin Avatar answered Oct 22 '22 17:10

Maxim Volgin