0

我们一直在使用 AVCaptureStillImageOutput.CaptureStillImageAsynchronously 在我们的应用程序中捕获 iOS 上的图像。在 iPhone 5、5c、5s 和 6 上,此调用使用 AVCaptureSession.PresetPhoto 设置大约需要 300-400 毫秒才能返回。在 iPhone 6 Plus 上,这需要 800-1250 毫秒。此相机问题仅存在于 iPhone 6 Plus 上。

为什么?我们已经查看了设置,但不清楚我们是否做错了什么。

我们还使用以下像素格式:CVPixelFormatType.CV48RGB

4

1 回答 1

0

iPhone 6 Plus 与其他机型的主要区别在于 OIS(光学防抖)。OIS 的一个关键特性是它需要时间来完成它的工作。

因此,给定一个AVCaptureStillImageOutput被调用的stillImageOutput,您可以将其添加到您的设置中以加快速度(尽管很明显,您会失去图像稳定......):

if (stillImageOutput.stillImageStabilizationSupported)
  stillImageOutput.automaticallyEnablesStillImageStabilizationWhenAvailable = FALSE;
于 2014-10-30T11:37:12.963 回答