【发布时间】:2012-12-01 19:00:45
【问题描述】:
我正在编写一个应用程序,我使用 AVCaptureSession 和 AVCaptureVideoDataOutput 来获取样本缓冲区,进行一些点检测并实时显示它。
用户还可以捕获图像。
问题在于,因为我使用的是同一个会话,所以用于捕获静止图像的图像质量与用于视频的图像质量相同。
我使用 captureOutput:didOutputSampleBuffer:fromConnection: 委托方法来捕获帧和 captureStillImageAsynchronouslyFromConnection: 来捕获静止图像
我想知道是否有办法在 AVCaptureSessionPresetMedium 中捕获帧,并在捕获图像时切换到 AVCaptureSessionPresetPhoto?
【问题讨论】:
标签: objective-c ios video camera avfoundation