capturedDepthData
Depth data captured in front-camera experiences.
Declaration
var capturedDepthData: AVDepthData? { get }Discussion
Frames vended by the session contain a depth map captured by the depth sensor in addition to the color pixel buffer (see capturedImage) captured by the color camera. The depth-sensing camera provides data at a different frame rate than the color camera, so this property’s value can be nil if no depth data was captured at the same time as the current color image.
This depth data is available only in face-based experiences (see ARFaceTrackingConfiguration) using the device’s front TrueDepth camera. This property’s value is nil when running other AR configurations.