iPhone可以多快能编程一次拍摄2张照片? [英] How fast can iPhone to be programmed take 2 pictures at one time?

查看:170
本文介绍了iPhone可以多快能编程一次拍摄2张照片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写一个iphone应用程序,让你在一个非常短的时间内连续拍摄2张照片,我不知道这是否可以实现。市场上的应用程序似乎只能从视频流中获取低分辨率的静止帧,因此我想知道是否可以快速捕获全分辨率的图片。

解决方案

这取决于您的时间和照片分辨率要求。
拍摄时间取决于硬件和所需的分辨率。



使用AVFoundation中的API来异步拍摄照片。特别是方法 captureStillImageAsynchronfullyFromConnection:



请参阅这里了解详情



我测量了不同配置的iPhone 4S上的2张照片之间的最短时间:




  • AVCaptureSessionPresetMedium ,后置摄像头:约0.043秒


  • AVCaptureSessionPresetPhoto ,后置摄像头(8MP):约0.3秒


  • AVCaptureSessionPresetPhoto ,前置摄像头(640x480):约0.027秒 >



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.

解决方案

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

这篇关于iPhone可以多快能编程一次拍摄2张照片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆