ARDepthData
An object that describes the distance to regions of the real world from the plane of the camera.
Declaration
class ARDepthDataOverview
This object contains the following depth information that the LiDAR scanner captures at runtime:
Every pixel in the depthMap maps to a region of the visible scene (capturedImage), where the pixel value defines that region’s distance from the plane of the camera in meters.
The confidenceMap property measures the accuracy of the corresponding depth data in depthMap, and is useful in filtering out lower-accuracy depth values if an app’s algorithm required it.
ARWorldTrackingConfiguration exposes this depth information in the sceneDepth property which it updates every frame. To enable scene depth, add the sceneDepth frame semantic to a world-tracking configuration’s frameSemantics and frames vended by the session contain ARDepthData captured by the LiDAR scanner.