google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 604 forks source link

ImageInsufficientQualityException found in augmented images #502

Open keval02 opened 5 years ago

keval02 commented 5 years ago

I am working with augmented images and have added one plane orange image to detect but it throws me an exception "com.google.ar.core.exceptions.ImageInsufficientQualityException". Any idea to resolve this problem?

TareqAmenah commented 4 years ago

Hi @keval02 Generally I advice you to check your arguments before you call the method. I had this exception before in this line of code: int index = augmentedImageDatabase.addImage("qrcode",bitmap); and I was reading the bitmap from a file.

I solved it by check the bitmap if it is null or not.