如何从 CameraCharacteristics 测量 ISO(传感器灵敏度) [英] How to measure the ISO (sensor sensitivity) from CameraCharacteristics
本文介绍了如何从 CameraCharacteristics 测量 ISO(传感器灵敏度)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何测量 CameraDevice ISO 值,我的意思是我需要类似的东西:
How to measure the CameraDevice ISO value, I mean I need something like:
cameraCharacteristics.get(SENSOR_SENSITIVITY)
在这种情况下,此函数将返回传感器 ISO 的值.
In this case this function will return the value of the sensor ISO.
我知道直接从 CameraManager 创建的 cameraCharacteristics 实例不会有这个值,我要问的是如何知道当前活动相机的 iso
I know that the cameraCharacteristics instance created directly from CameraManager is not going to have this value, what I am asking for is how to know the iso for the currently active camera
推荐答案
使用
val range: Range<Int> = cameraManager.getCameraCharacteristics(cameraId)
.get(CameraCharacteristics.SENSOR_INFO_SENSITIVITY_RANGE)!!
val max1: Int = range.upper
val min1: Int = range.lower
您可以获得相机的最小和最大 ISO 范围.
you can get min and max ISO range of your camera.
这篇关于如何从 CameraCharacteristics 测量 ISO(传感器灵敏度)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文