Posts

Post not yet marked as solved
1 Replies
1.3k Views
I am trying to save depth images from the iPhoneX TrueDepth camera. Using the AVCamPhotoFilter sample code, I am able to view the depth, converted to grayscale format, on the screen of the phone in real-time. I cannot figure out how to save the sequence of depth images in the raw (16 bits or more) format.I am looking at line 1030 of CameraViewController.swift of the sample code.let depthData = syncedDepthData.depthDataNow, depthData.depthDataMap is the object of type CVPixelBuffer and image format type kCVPixelFormatType_DisparityFloat16. Is there a way to save it to the phone?
Posted
by dustymax.
Last updated
.