google-ar / arcore-android-sdk

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

depthPercentage always equals to 1 with Depth API ? #1152

Open agGitHub opened 3 years ago

agGitHub commented 3 years ago

SPECIFIC ISSUE ENCOUNTERED

On my Samsung S20+, it seems that the depthPercentage is always equal to 1.

This value should vary ? Is it normal that it is constant ?

Thanks.

sandyfriend commented 3 years ago

https://developer.android.com/reference/android/graphics/ImageFormat#DEPTH16 1.f representing maximum confidence, in S20+ case, it seem like all 1.

ameliaholcomb commented 3 years ago

Though it would be ideal if ARCore could populate those three bits with a real confidence value, the documentation does state that they are currently expected to be set to 000 in all cases. (000 -> 1.f confidence) https://developers.google.com/ar/reference/java/com/google/ar/core/Frame#acquireDepthImage()