问题描述
ctsVerifier中,Camera FOV Calibration测项failed。
解决方案
在测试手法也正确的情况下,如果测项还是fail,请参考如下方法解决。
1.查看ctsVerifierReport中Camera FOV Calibration测项的details信息,看实测结果是多少?
例如:
- <test title="Camera FOV Calibration" class-name="com.android.cts.verifier.camera.fov.PhotoCaptureActivity" result="fail">
<details>PhotoSphere FOV test result: Resolution:320x240, Measured FOV = 53.0 Resolution:640x480, Measured FOV = 53.0 Resolution:1280x960, Measured FOV = 53.0 Resolution:1600x1200, Measured FOV = 53.0 Resolution:2048x1536, Measured FOV = 53.0 Resolution:2560x1440, Measured FOV = 53.0 Resolution:2560x1920, Measured FOV = 53.0</details>
可以看到实测结果是:53.0
2.继续查看cfg_setting_imgsensor.cpp文件中:getSensorViewAngle 中MainSensorHorFOV的值是多少?
例如:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
SensorViewAngle_T const& getSensorViewAngle() { static SensorViewAngle_T const inst = { MainSensorHorFOV : 63, MainSensorVerFOV : 49, SubSensorHorFOV : 60, SubSensorVerFOV : 40, Main2SensorHorFOV : 0, //not support Main2SensorVerFOV : 0, }; return inst; } |
MainSensorHorFOV 是63,而实测结果是53,而CTS的要求是误差在2以内,所以此项failed。
解决方案:将getSensorViewAngle 中MainSensorHorFOV 改为实测值。