用于扫描的AVFoundation

时间:2015-10-30 11:04:27

标签: avfoundation

我正在使用AVFoundation扫描PDF417条形码。我比较了扫描仪检测到的速度并将结果返回给某些商业产品。商业产品的速度是原来的两倍。我正在使用以下配置摄像机:

if ([self.device lockForConfiguration:&error])
{
    if (self.device.isAutoFocusRangeRestrictionSupported)
        self.device.autoFocusRangeRestriction = AVCaptureAutoFocusRangeRestrictionNear;
    if ([self.device isFocusModeSupported: AVCaptureFocusModeContinuousAutoFocus])
        self.device.focusMode = AVCaptureFocusModeContinuousAutoFocus;

    if( self.device.isSmoothAutoFocusSupported )
        self.device.smoothAutoFocusEnabled = YES;

    if (self.device.isLowLightBoostEnabled)
        self.device.automaticallyEnablesLowLightBoostWhenAvailable = YES;

    [self.device unlockForConfiguration];
}

我可以使用其他配置来改善扫描吗?将视频设置为最高质量和帧速率是否更好?设置白平衡是否会提高扫描识别能力?

0 个答案:

没有答案