Skip to content
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

Passport scanned image cropped #51

Open
samirpramanik opened this issue May 22, 2019 · 5 comments
Open

Passport scanned image cropped #51

samirpramanik opened this issue May 22, 2019 · 5 comments

Comments

@samirpramanik
Copy link

samirpramanik commented May 22, 2019

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

Hi,

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

@samirpramanik
Copy link
Author

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants