BlinkID / blinkid-android

Everything you need to add AI-driven ID scanning into your native Android app.
https://microblink.com/identity/identity-document-scanning/
438 stars 153 forks source link

BlinkId Recognizer unable to retrieve a Passport Document Number #230

Closed ahshingx95 closed 3 years ago

ahshingx95 commented 3 years ago

Hi,

I was trying to scan a Singaporean Passport found in Google as a test sample, but it doesn't get the Document Number, "K0000000E". I have tried getMrzResult().getDocumentNumber(), result.getVizResult().getDocumentNumber(), and result.getDocumentNumber(). Returns empty.

I have tried on another Passport sample found in Google as well but able to get the Document Number.

This is the link of the Passport Image which cannot get the Document Number. https://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Biodata_page_of_Singapore_Passport.jpg/440px-Biodata_page_of_Singapore_Passport.jpg

Please advice me on how to get the Document Number, I testing a lots of results but failed.

Thanks and Regards, Shing

SandraZiv commented 3 years ago

Hi @ahshingx95

by default, this field is currently anonymized which means we don't extract it. You can disable result anonymization by setting anonymizationMode in BlinkIdRecognizer to AnonymizationMode.None or AnonymizationMode.ImageOnly.

More info about anonymization can be found here.

Best regards, Sandra

ahshingx95 commented 3 years ago

Thank you for your reply, I have received your email too. It works with AnonymizationMode.None. Thanks!