有人知道如何为您的 ios 相机应用设置低光增强功能吗?这是我拥有但无法使其工作的代码。
let backCamera = AVCaptureDevice.defaultDevice(withMediaType: AVMediaTypeVideo)
do {
try backCamera?.lockForConfiguration()
if (backCamera?.isLowLightBoostSupported == true) {
backCamera?.automaticallyEnablesLowLightBoostWhenAvailable = true
}
backCamera?.unlockForConfiguration()
}
catch{
print(error)
}
Best Answer-推荐答案 strong>
你不需要那个。把它放在 didMoveToView 中:
captureSession!.sessionPreset = AVCaptureSessionPresetPhoto
关于ios - AVCaptureDevice Low Light Boost swift,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/39815330/
|