Hi,
I have troubles getting the cameraCalibrationData from AVCapturePhoto.
I take photos with the AVCaptureDeviceTypeBuiltInDualCamera. Before capturing the photo, I switch on cameraCalibrationDataDeliveryEnabled and dualCameraDualPhotoDeliveryEnabled:
AVCapturePhotoSettings* photoSettings = [AVCapturePhotoSettings photoSettings];
photoSettings.cameraCalibrationDataDeliveryEnabled = TRUE;
photoSettings.dualCameraDualPhotoDeliveryEnabled = TRUE;
[_avCaptureOutput capturePhotoWithSettings:photoSettings delegate:self];
The delegate
-(void)captureOutput:(AVCapturePhotoOutput *)captureOutput didFinishProcessingPhoto:(nonnull AVCapturePhoto *)photo error:(nullable NSError *)error
correctly fires twice and delivers the photo data from both cameras.
However, (AVCapturePhoto *)photo.cameraCalibrationData always returns NULL.... What am I doing wrong. (AVCapturePhotoOutput *)captureOutput.cameraCalibrationDataDeliverySupported returns TRUE, so all should be good ??
Please help..
Thanks
Appears to be captured and marked as a Known Issue in the iOS11 beta 4:
The cameraCalibrationDataproperty of AVCapturePhoto returns nil when cameraCalibrationDataDeliveryEnabled is set to true, unless you also set depthDataDeliveryEnabled to true. In a future beta, you’ll be able to request dual photo capture and camera calibration data capture and receive wide and telephoto buffers plus the camera calibration data for both (without being zoomed to 2x and delivering depth data to the photo). (32209427)