I wish to write an iphone app that allows your to take 2 consecutive pictures in a very short time, and I wonder if it is achievable. May apps in the market seems to only take low resolution still frames out of video stream, so I wonder if fast capturing full resolution photo is feasible.
Asked
Active
Viewed 1,486 times
0
-
2[What have you tried?](http://mattgemmell.com/2008/12/08/what-have-you-tried/) – CodaFi Apr 15 '12 at 16:43
1 Answers
7
It depends on what your timing and photo resolution requirements are. The time to take pictures depends on the hardware and the desired resolution.
Use the API in AVFoundation to take pictures asynchronously. In particular the method captureStillImageAsynchronouslyFromConnection:
.
See here for details
I've measured the minimum time between 2 photos on an iPhone 4S with different configurations:
AVCaptureSessionPresetMedium
, back camera: about 0.043sAVCaptureSessionPresetPhoto
, back camera (8MP): about 0.3sAVCaptureSessionPresetPhoto
, front camera (640x480): about 0.027s