iOS中的AVCaptureDevice torchLevel的范围是多少?

时间:2018-07-09 18:59:37

标签: ios swift torch avcapturedevice

除了在配置automaticallyEnablesLowLightBoostWhenAvailable和尝试setExposureModeCustom(duration:, iso:)之外,我正在使用一款扫描QR码并改善在弱光条件下阅读的应用程序,我正在将相机闪光灯设置为低强度手电筒使用setTorchModeOn(level:)方法

我在0.1-1.0范围内进行了测试,并且工作正常,我想使用AVCaptureDevice.maxAvailableTorchLevel找出此设置的最大值,得到的结果如下:

do {
    try captureDevice.lockForConfiguration()
    print("Max Torch: \(AVCaptureDevice.maxAvailableTorchLevel)")
    captureDevice.unlockForConfiguration()
} catch {
    print("Error: \(error.localizedDescription)")
}

最大火炬:3.40282e + 38

任何人都知道这个值是什么意思吗?它并不意味着像太阳表面一样发出光:)

... e

0 个答案:

没有答案
相关问题