BlinkID / blinkid-ui-android

Customizable UI library that includes camera management, scanning screen, and document selection module.
35 stars 10 forks source link

Passport scanned image cropped #51

Open samirpramanik opened 5 years ago

samirpramanik commented 5 years ago

Hello,

At times the scanned passport image is cropped. To avoid this, we tried the following :

mrtdRecogniezr.setReturnFullDocumentImage(true);
            ImageExtensionFactors passportImageExtFactors = new ImageExtensionFactors(0.2f, 0.2f,0.2f,0.2f);
            mrtdRecogniezr.setFullDocumentImageExtensionFactors(passportImageExtFactors);

as suggested in the documentation. But even after this, the image is coming the same. Please help resolve this.

matvidako commented 5 years ago

Hi,

where does this mrtdRecogniezr come from? If you are trying to modify BlinkID UI, note that we now use the new PassportRecognizer instead of MrtdRecognizer for scanning passports.

samirpramanik commented 5 years ago

Hi,

The declaration is as follows : MrtdRecognizer mrtdRecogniezr = new MrtdRecognizer();

I believe the API works on MrtdRecognizer instances. Could you please help as to why this is not working in our case.

Regards!

matvidako commented 5 years ago

Hi,

so you're not using BlinkID UI, you're working with BlinkID directly? Are you using the latest version?

samirpramanik commented 5 years ago

No i am using Blink ID UI 4.8.0.1. I understand there is a new version 4.9.1 where passport recognizer is used, but is there a way to fix this in MRTD recognizer in 4.8.0.1?

matvidako commented 5 years ago

I've checked and MrtdRecognizer works fine with image extension factors set. Can you show your code that starts scanning?