Asaf Pinhassi
Asaf Pinhassi

Reputation: 15573

How to set iPhone video output image size

I'm trying to do some image processing on iPhone. I'm using http://developer.apple.com/library/ios/#qa/qa2010/qa1702.html to capture the camera frames. I saw that I can set AVCaptureVideoDataOutput image format using setVideoSettings, but is it possible to get the images in lower resolution? If not, is the an efficient way to downscale the resulted image?

Thanks, Asaf.

Upvotes: 2

Views: 1375

Answers (1)

Asaf Pinhassi
Asaf Pinhassi

Reputation: 15573

This is how we can get a lower resolution output so we get a higher FPS when manipulating the image:

//  sessionPreset governs the quality of the capture. we don't need high-resolution images,
//  so we'll set the session preset to low quality. 
self.captureSession.sessionPreset = AVCaptureSessionPresetLow;

Asaf Pinhassi.

Upvotes: 3

Related Questions