有人知道如何为您的 ios 相机应用设置低光增强功能吗?这是我拥有但无法使其工作的代码。
let backCamera = AVCaptureDevice.defaultDevice(withMediaType: AVMediaTypeVideo)
do {
try backCamera?.lockForConfiguration()
if (backCamera?.isLowLightBoostSupported == true) {
backCamera?.automaticallyEnablesLowLightBoostWhenAvailable = true
}
backCamera?.unlockForConfiguration()
}
catch{
print(error)
}
你不需要那个。把它放在 didMoveToView 中:
captureSession!.sessionPreset = AVCaptureSessionPresetPhoto
关于ios - AVCaptureDevice Low Light Boost swift,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39815330/
欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://jike.in/) | Powered by Discuz! X3.4 |