在CamX中,如何查看Sensor设置的曝光时间和增益呢?
打开Log
首先,设置Setting打开Sensor模块的Info和Verbose Log
logInfoMask=0x2
logVerboseMask=0x2
日志输出
复现问题后,在log中搜索:搜索ApplyGains和CalculateExposure
logcat |grep -iE "ApplyGains|CalculateExposure"
示例Log:
11-09 11:09:41.331 6792 6822 I CamX : [ INFO][SENSOR ] camxsensornode.cpp:3156 ExecuteProcessRequest() Sensor[0]: ProcessRequest: ApplyGains: RequestID=1466, ContextTypeID: 0, Gain:ExpTime =41.441280 : 7944333, Middle Gain:ExpTime =0.000000 : 0, Short Gain:ExpTime =0.000000 : 0 LuxIdx = 378.434143, LED Currents = 0 : 0
11-09 11:09:41.331 6792 6822 V CamX : [ VERB][SENSOR ] camximagesensordata.cpp:1075 CalculateExposure() Long (TG:41.441280 AG:15.500000 DG:1.000000 ISPG:2.673631 LC:3051) Middle (TG:0.000000 AG:0.000000 DG:0.000000 ISPG:0.000000 LC:0) Short (TG:0.000000 AG:0.000000 DG:0.000000 ISPG:0.000000 LC:0)
上面的Log表示:
- 曝光时间为7944333ns,也即7.944333ms,转换为的linecount为3051
- 增益为41.441280 ,也即41.44128倍,其中Sensor模拟增益为15.5倍,Sensor 数字增益为1倍,ISP 数字增益为2.673631倍
缩写的全称如下:
- TG: Total Gain
- AG: Analog Gain
- DG: Digital Gain
- ISPG: ISP Gain
- LC: Line Count