Swift 3 - How to use "AVFCapturePhotoOutput" - unrecognized raw format BGRA

Detection score: 6.0

<p>To capture raw images, I am setting this AVCapturePhotoSettings(rawPixelFormatType: kCVPixelFormatType_24RGB). But i am getting an invalid argument exception like  as
<strong>* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*</strong> +[AVCapturePhotoSettings photoSettingsWithRawPixelFormatType:] Unrecognized raw pixel format type'</p>

<p>How do i set the capture settings to capture raw images?</p>
Posted 11 days ago | reported 11 days ago
Posted by Ash (1)

Caught by 5 reasons: