AVCaptureDepthDataOutput
A capture output that records scene depth information on compatible camera devices.
Declaration
class AVCaptureDepthDataOutputOverview
This output type captures AVDepthData objects containing per-pixel depth or disparity information, following a streaming delivery model similar to that used by AVCaptureVideoDataOutput. Alternatively, you can capture depth data alongside photos using AVCapturePhotoOutput (see the AVCapturePhotoSettings isDepthDataDeliveryEnabled property).
This object always provides depth data in the format expressed by the source AVCaptureDevice object’s activeDepthDataFormat property. If you wish to receive depth data in another format, choose a new value for that property from those listed in the supportedDepthDataFormats array of the device’s activeFormat object.