[ITS]scene1:test_raw_sensitivity.py fail

问题描述

 有两种错误.
1. test_raw_sensitivity_stderr.txt 显示 assert variances[i] < variances[i+1] / VAR_THRESH
2. test_raw_sensitivity_stderr.txt 不显示上述错误, 但有如下错误:
File "C:\ITS\data\CameraITS\pymodules\its\device.py", line 284, in __close_camera
data,_ = self.__read_response_from_socket()
File "C:\ITS\data\CameraITS\pymodules\its\device.py", line 244, in __read_response_from_socket
ch = self.sock.recv(1)
socket.error: [Errno 10053]

解决方案

 对case1:
#1 先举例说明吧, 在test_raw_sensitivity_stdout.txt 中
会搜到
Line 10: s=100, e=69897670, var=1.107978e-04
Line 19: s=390, e=17922479, var=2.451407e-04
Line 28: s=680, e=10279069, var=3.514221e-04
Line 37: s=970, e=7205945, var=3.529375e-04
Line 46: s=1260, e=5547434, var=4.240581e-04
找var 递增范围最新的值, 如上标红区域.
卡死原因是因为如下两组shutter gain 的配置统计平均值不满足variances[i] < variances[i+1] / VAR_THRESH
s=680, e=10279069, var=3.514221e-04
s=970, e=7205945, var=3.529375e-04
这个是raw的测试项目, 故与isp color无关.
找sensor fae 请教一下 "为什么上述两组配置中统计值noice 没有增加呢"
#2 若觉得上述信息不明显, 可以仿照run test_raw_sensitivity.py 的方法把itsMetaCheck\orginCode\testCode\pengtao_test_raw_sensitivity.py复制到test_raw_sensitivity.py 对应目录下运行.
会打印如下的code, 中间的es[i], es[i+1]即为异常的sensor ae 配置, 拿这两组配置找sensor driver/ fae 请教
print "ERRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR"
print "the flowing two (gain(100X),shutter(us)) noice is not linear increase obvious:"
print es[i]
print es[i+1]
print "please contract you sensor driver owner with cct to test the noice increase obvious."
#3 demo: 如下, 因为客户的gain step 太小, 这个sensor来说,从680->970 , gain step 90, 太小, 导致测试fail.要么找sensor 想办法解决, 要么把最大gain拉大来使gain step 增加.
卡死原因是因为如下两组shutter gain 的配置统计平均值不满足variances[i] < variances[i+1] / VAR_THRESH
s=680, e=10279069, var=3.514221e-04
s=970, e=7205945, var=3.529375e-04
这个是raw的测试项目, 故与isp color无关.
找sensor fae 请教一下 "为什么上述两组配置中统计值noice 没有增加呢"
是否可以把gain max 加大些,这样来提高gain step 来满足条件?

作者: RESSRC

个人资源站

发表评论

邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据