【问题标题】:How to set iPhone video output image size如何设置 iPhone 视频输出图像大小
【发布时间】:2010-10-25 15:05:06
【问题描述】:

我正在尝试在 iPhone 上进行一些图像处理。 我正在使用http://developer.apple.com/library/ios/#qa/qa2010/qa1702.html 来捕获相机帧。 我看到我可以使用 setVideoSettings 设置 AVCaptureVideoDataOutput 图像格式,但是是否可以获得较低分辨率的图像? 如果不是,是缩小结果图像的有效方法吗?

谢谢, 阿萨夫。

【问题讨论】:

    标签: iphone objective-c ios camera


    【解决方案1】:

    这就是我们如何获得较低分辨率的输出,从而在处理图像时获得更高的 FPS:

    //  sessionPreset governs the quality of the capture. we don't need high-resolution images,
    //  so we'll set the session preset to low quality. 
    self.captureSession.sessionPreset = AVCaptureSessionPresetLow;
    

    阿萨夫·平哈西。

    【讨论】:

    • 基于此,我可以设置高分辨率拍照,用 [session setSessionPreset:AVCaptureSessionPresetPhoto];
    猜你喜欢
    • 1970-01-01
    • 2014-10-30
    • 2020-08-29
    • 1970-01-01
    • 2011-06-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-30
    相关资源
    最近更新 更多