检测相机何时自动对焦

5 video-capture autofocus ios ios7

我正在从事视频应用.我想在相机自动对焦时丢弃视频帧.在自动聚焦期间,捕获的图像变得模糊,并且该帧的图像处理变差,但是一旦完成自动聚焦,图像处理就变得极好.有人给我解决方案吗?

Alb*_*haw 2

adjustingFocus财产。
指示设备当前是否正在调整其焦点设置。(只读)

*注意:您可以使用键值观察来观察该属性值的变化。

iOS 4.0 及更高版本


https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVCaptureDevice_Class/Reference/Reference.html#//apple_ref/occ/instp/AVCaptureDevice/ adjustmentFocus