Retrieving High Resolution Photos from captureStillImageAsynchronouslyFromConnection

Currently captureStillImageAsynchronouslyFromConnectionreturns an image with a resolution of 640x480 pixels AVCaptureSessionfrom AVCaptureSessionPreset640x480.

The reason for the relative low resolution of AVCaptureSessionPreset640x480 is the need for video processing. Lower resolution provides better speed.

At some point, when I want to take a picture, I need a high resolution image. How can I say captureStillImageAsynchronouslyFromConnectionreturn an image above 640x480?

+3
source share
1 answer

You tell me captureStillImageAsynchronouslyFromConnectionto return the image with a higher resolution by setting a preset with a higher resolution.

4.2, AVCaptureVideoDataOutput AVCaptureSessionPresetPhoto, , -, . OTOH, 4.1 . 4.1 , .

+6

All Articles