google-ar / arcore-android-sdk

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

Depth API: does it use ToF sensor when available ? #1132

Open agGitHub opened 3 years ago

agGitHub commented 3 years ago

Hi,

I use the hello_ar_java project on my Samsung S20+. I wonder if the app uses the device ToF sensor to get the depth map.

Is there a way in the code to disable/enable the use of the ToF sensor for the determination of the depth map ? (so that I can compare the results with and without ToF)

Thanks !

guofengw commented 3 years ago

You can enable/disable the ToF sensor when getting depth map, you can read the config related API. If you open ToF sensor, the depth map is much better than without ToF

vishwah13 commented 3 years ago

Google said this depth api will work using single RGB camera,but only selective devices only supports depth api for know. hope in future all AR Core supported devices use depth api