Google is committed to advancing racial equity for Black communities. See how.

Config.DepthMode

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.

Inherited Methods

Enum Values

public static final Config.DepthMode AUTOMATIC

On supported devices, the best possible depth is estimated based on hardware and software sources. Available sources of automatic depth are:

  • Depth from motion
  • Active depth cameras
Provides depth estimation for every pixel in the image, and works best for static scenes. Adds significant computational load.

public static final Config.DepthMode DISABLED

No depth information will be provided. Calling Frame.acquireDepthImage() throws IllegalStateException.