Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/111.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 增加.continuousAutoExposure模式的亮度级别_Ios_Swift_Avfoundation_Avcapturesession_Ios Camera - Fatal编程技术网

Ios 增加.continuousAutoExposure模式的亮度级别

Ios 增加.continuousAutoExposure模式的亮度级别,ios,swift,avfoundation,avcapturesession,ios-camera,Ios,Swift,Avfoundation,Avcapturesession,Ios Camera,我用AVCaptureDevice.Preset.HighPreset实现了一个定制相机,我正在使用.continuousAutoExposure。一切正常,然而,图片的亮度有时很低 我研究了官方文档,发现我可以使用setExposureModeCustomWithDuration设置自定义ISO。不幸的是,这样做会导致失去预期的曝光自动化 我现在的问题是,有没有办法提高.continuousAutoExposure模式的整体亮度百分比?我只需要它将曝光量增加到5%左右,但我还需要坚持使用.co

我用
AVCaptureDevice.Preset.High
Preset实现了一个定制相机,我正在使用
.continuousAutoExposure
。一切正常,然而,图片的亮度有时很低

我研究了官方文档,发现我可以使用
setExposureModeCustomWithDuration
设置自定义ISO。不幸的是,这样做会导致失去预期的曝光自动化


我现在的问题是,有没有办法提高
.continuousAutoExposure
模式的整体亮度百分比?我只需要它将曝光量增加到5%左右,但我还需要坚持使用
.continuousAutoExposure
模式。

您是否尝试过在可用时使用AutomaticallyEnablesLowlightBoost,

诀窍是设置
AVCaptureDevice
实例的
exposureTargetOffset
属性。您需要使用KVO观察captureDevice.exposureTargetOffset的值的变化,并将其更改为所需的曝光级别。有关详细信息,请勾选此项。

这是答案的解决方案。不幸的是,我没有完全实现它,因为我缺乏开发技能。非常感谢你提供的资源,赏金已经分发了。