我们使用下面的代码来设置AVCaptureDevice的曝光点。它大部分时间都很好用。
但是,如果点x和y都是0.5,这个值接缝将重置配置,暴露行为也会有所不同。目前,我们通过检测参数来解决这个问题,如果是0.5,则为本例传递0.501而不是0.5。
我们不知道为什么会这样?有关于那件事的文件吗?
314 if([device lockForConfiguration:&err]) {
315 [device setExposurePointOfInterest:CGPointMake(x, y)];
316 device.exposureMode = device.exposureMode;
317 [device unlockForConfiguration];
318 }发布于 2016-03-28 08:54:02
我猜你看到的是默认行为检查AVFoundation编程指南 ->寻找暴露模式
如果更改公开设置,可以将它们返回到默认配置,如下所示: if ( isExposureModeSupported:AVCaptureExposureModeContinuousAutoExposure){CGPoint exposurePoint = CGPointMake(0.5f,0.5f);currentDevice exposurePoint}
https://stackoverflow.com/questions/36257605
复制相似问题