google-ar / arcore-android-sdk

ARCore SDK for Android Studio
https://developers.google.com/ar
Other
4.91k stars 1.2k forks source link

Regression on Augmented Images with latest version of Google Play Services for AR #1623

Open SimonMarquis opened 7 months ago

SimonMarquis commented 7 months ago

SPECIFIC ISSUE ENCOUNTERED

A recent version of Google Play Services for AR introduced a regression on one of my application using AR Core:

In this application, AugmentedImageDatabase.addImage(name: String, bitmap: Bitmap) throws an uncaught ImageInsufficientQualityException and therefore crashes when used with this image, while it everything worked fine on previous versions of the Play Services for AR versions.

VERSIONS USED

STEPS TO REPRODUCE THE ISSUE

  1. Install the latest app-release.apk or install it directly from the Play Store
  2. Run the app
  3. Expect a crash with the current 1.40 release of Play Services for AR

WORKAROUNDS (IF ANY)

ADDITIONAL COMMENTS

The "image quality" reported by arcoreimg.exe eval-img --input_image_path=augmented_image_target.png is 50. Even though the documentation states that We recommend a quality score of at least 75, a lower bound has never been documented and obviously the image did not changed since.