-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to scan the MRZ of an ID card #5
Comments
Hi can I talk to u about the programe |
@sahar12345 sure |
I want to make programe in phone app like netbeans and xamrine must make iOS and android separate and I want connect to server can u the programe read I don't understand good to the folder code u put and how communicate with server that make confused |
Netbeans in java programe |
If that reading for national I'd card like Japan or negirea national card like this programe of passport |
And so thank you so much |
Passport scanner is a complete native iOS only solution. There is no support for Android. There is no server required. The OCR is done on the phone itself. If you want to make an iOS app that sends the result of a scan to your own server, then you have to create your own logic for that. In the demo app you will have the file ViewController.swift which calls the PassportScanner interface. There in the function processMRZ you can add logic for handling the MRZ information. |
Thank you but in my opinion that netbeans can make programe to all kinds iOS and android and its supported,that idea of logic server I will make today and show you and am glad if reply on results that from ur kind,thnx to u. |
Any news for this topic? |
@punto2018 |
Thanks for your reply. I'm using the official specifications document for a better parsing (https://www.icao.int/publications/Documents/9303_p5_cons_en.pdf). Thanks |
Good news, resolving the camera issues it seem that the parsing is working fine. If you agree I can share my changes and generate a pull request. The idea is to add a property in order to easily switch MRZ parsing type (2 lines or 3 lines), using the 2 lines as default for retrocompatibility reasons. |
A PR for that is definitely welcome! |
This approach can be used, my only concern is in the performance in trying both parsers. What do you think? |
Sounds good |
@evermeer, @punto2018, @sahar12345. Here is a MRZ parser with support of all official documents. On top of that it does some OCR cleaning too. All you need to do is just set it up as a pod. Enjoy |
The PR has been merged, pushed and published. There is now support for 3 line MRZ. Thanks @punto2018 ! |
As reported by @jrodriguezq there is no support for the MRZ for an ID card. I will add this as an enhanecment later.
Original question:
The last commit fixes the issue that I had with the camera, now it looks like this:
The OCR it's working, but I'm not able to correctly read the MRZ. As you can see, the image appears to be clear enough.
The usual case of the mrz captured it's something like this:
INCHL1D41230409D26<<<<<<<<<<<<
9002063M2002064CHL17409866<2<6
CORTES<CONTRERAS<<SERGIO<JAV ll 12
This appears to be almost correct, but some numbers and blank characters usually stand in the way and I'm not able to scan the MRZ.
Is there any configuration that I'm missing?
Again, many thanks for the library.
The text was updated successfully, but these errors were encountered: