BlinkID / blinkid-flutter

ID scanning plugins for cross-platform apps built with Flutter.
80 stars 23 forks source link

[question/enhancement] Country code in ISO format #63

Closed omartinma closed 5 months ago

omartinma commented 5 months ago

Hi,

Currently, I'm working on getting the nationality for a scanned passport and I would like to know if possible to get those in ISO format.

This would be beneficial since the result String would not be linked to any language, and ISO code is universally used for any API.

Also trying with a USA passport it gives me the wrong result on the nationality, so without that code, I can not even try to parse by String

image

Thanks!

mparadina commented 5 months ago

Hi @omartinma!

If you're interested in getting the ISO format of the nationality of the document owner, you can obtain it from the MrzResult class, to be more specific with the nationality, santiziedNationality values.

So the code to obtain it would look like this:

result.mrzResult.santiziedNationality;
result.mrzResult.nationality;

Let me know if this helped.

omartinma commented 5 months ago

@mparadina great, that will help for Nationality and Issuing Country of the passport. What about place of birth? Thanks!

mparadina commented 5 months ago

Hi @omartinma

The 'Place of birth' field depends if the field is present, and how it is displayed on the document. You can check if this field is present on each document you're scanning here in our documentation. You can also see which information we always read from the MRZ here.

So, for example, if the place of birth field on the document contains the information 'California', then we will extract this information exactly as it is written.

Let me know if you have any additional questions.

mparadina commented 5 months ago

Hi @omartinma

Just wanted to check in to see if the issue can be closed?

mparadina commented 5 months ago

@omartinma closing the issue as it is inactive. Feel free to reopen it if anything comes up!

omartinma commented 4 months ago

@mparadina sorry, i was pending on this issue and now i am coming back to this feature.

So for example in the case of California, will it return the country code associated?