How fast can iPhone to be programmed take 2 pictures at one time? [closed]

倖福魔咒の 提交于 2019-12-10 00:48:05

问题


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.


回答1:


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.043s

  • AVCaptureSessionPresetPhoto, back camera (8MP): about 0.3s

  • AVCaptureSessionPresetPhoto, front camera (640x480): about 0.027s



来源:https://stackoverflow.com/questions/10163944/how-fast-can-iphone-to-be-programmed-take-2-pictures-at-one-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!