views:

25

answers:

1

Hi, 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.

A: 

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.

Pinhassi