Stay organized with collections
Save and categorize content based on your preferences.
public static final enum
Config.DepthMode
Selects the desired depth mode. Not all devices support all modes. Use Session.isDepthModeSupported(Config.DepthMode) to find whether the current device and the selected camera
supports a particular depth mode.
On supported devices, the best
possible depth is estimated based on hardware and software sources. Available sources of
automatic depth are:
Depth from motion, using the main RGB camera
Hardware depth sensor, such as a time-of-flight sensor (or ToF sensor)
Provides depth estimation for every pixel in the image, and works best for static scenes.
Adds significant computational load.
With this mode enabled, Frame.hitTest(MotionEvent) also returns DepthPoint in the
output List<HitResult>, which are sampled from the generated depth image for the
current frame if available.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eConfig.DepthMode\u003c/code\u003e selects the depth mode for ARCore, with options for automatic, disabled, or raw depth data.\u003c/p\u003e\n"],["\u003cp\u003eAutomatic mode uses hardware/software to estimate depth, providing depth for every pixel but with higher computational load.\u003c/p\u003e\n"],["\u003cp\u003eDisabled mode provides no depth information, and Raw Depth Only mode provides unfiltered depth images on supported devices.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003eSession.isDepthModeSupported()\u003c/code\u003e to check device compatibility for specific depth modes before enabling them.\u003c/p\u003e\n"],["\u003cp\u003eRaw depth data is suitable for understanding environment geometry and is available in both Automatic and Raw Depth Only modes.\u003c/p\u003e\n"]]],["`Config.DepthMode` selects the depth mode, with device support checked via `Session.isDepthModeSupported`. Available modes are `AUTOMATIC`, `DISABLED`, and `RAW_DEPTH_ONLY`. `AUTOMATIC` estimates depth using hardware and software, providing depth for each pixel and supporting `DepthPoint` in `Frame.hitTest` results. `DISABLED` provides no depth information, throwing exceptions when calling `Frame.acquireDepthImage16Bits()`. `RAW_DEPTH_ONLY` offers unfiltered depth and confidence images, with sparse data and 0 value pixels for invalid depths.\n"],null,[]]