blinkid-ui-android icon indicating copy to clipboard operation
blinkid-ui-android copied to clipboard

Passport scanned image cropped

Open samirpramanik opened this issue 5 years ago • 5 comments

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.

samirpramanik avatar May 22 '19 11:05 samirpramanik

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.

matvidako avatar May 22 '19 12:05 matvidako

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!

samirpramanik avatar May 23 '19 07:05 samirpramanik

Hi,

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

matvidako avatar May 23 '19 07:05 matvidako

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?

samirpramanik avatar May 23 '19 07:05 samirpramanik

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

matvidako avatar May 23 '19 10:05 matvidako