BlinkID / blinkid-android

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

BlinkIDImageListenerDemo immediately crashes #15

Closed tonyteate closed 7 years ago

tonyteate commented 7 years ago

We also filed a support ticket, but opening an issue here as well out of urgency. From the support ticket:

We are having trouble integrating the BlinkID Android SDK into our project.

Specifically, we are unable to integrate the ability to scan MRTD documents into our application. The demo project, BlinkIDImageListenerDemo [1], included in the GitHub repository continuously crashes before any scanning can be completed.

Attached is a log file from a session of attempting to run the aforementioned project. [1]

We sincerely appreciate any immediate help you can offer towards this integration issue, as we are short on time to complete this integration.

Specifically, when I run the BlinkIDImageListenerDemo, the launch screen has a single button on it that says "Scan MRTD". Upon clicking that button, the ScanCard Activity is started and, after a few seconds of seemingly trying to autofocus, just closes (taking me back to the first screen). The app does not crash completely, but there do appear to be error related messages in the log output file that I attached.

Also, Info on the device we are having issues with (from the suggested app [2]):

Manufacturer - Motorola Model - XT1096 Hardware - qcom Board - MSM8974 Device - victara

[1] https://play.google.com/store/apps/details?id=com.jphilli85.deviceinfo&hl=en [2] https://microblink.zendesk.com/attachments/token/3xtobspIZ7TbcAXOncdTTRywB/?name=logs_201611080229.txt

tonyteate commented 7 years ago

Video of the problem for reference

If anyone else is running into this similar issue, turning off frame quality estimation is a stopgap, but still awaiting a fix. If settings is an instance of RecognitionSettings:

settings.setFrameQualityEstimationMode(RecognitionSettings.FrameQualityEstimationMode.ALWAYS_OFF);

DoDoENT commented 7 years ago

Hi @tonyteate. We managed to reproduce the problem on HTC One SV and are still looking out what went wrong. It appears that on most devices crash does not happen at all.

Also thank you for the frame quality estimation tip. It will help us track down the problem.

DoDoENT commented 7 years ago

Hi @tonyteate!

Good news! We managed to fix the problem internally. The fix will be released with new version of BlinkID.

tonyteate commented 7 years ago

@DoDoENT Great to hear! Looking forward to updating to the new version soon.

DoDoENT commented 7 years ago

Hi @tonyteate,

please check if the issue has been solved in v3.2.0.

If the issue is solved, please close it.