背景
CTS 手动测试中 有Camera FOV calibration的测试。 MTK平台问题介绍的比较多
在这里介绍一下高通FOV问题的解决思路
分析
如何测试FOV calibration 不多做介绍 请确认测试环境与步骤的正确
如何修改
高通平台的解决 基于高通的文档指导
与之相关的参数如下所示
<!--Focal length of the lens in millimeters. -->
<focalLength>2.79</focalLength>
<!--Pixel size in micro meters -->
<pixelSize>1.12</pixelSize>
<!--Width and height of the frame or subframe -->
<activeDimension>
<width>2592</width>
<height>1944</height>
</activeDimension>
通过了解算法 可以更快的解决问题
status_t Parameters::calculatePictureFovs(float *horizFov, float *vertFov)
const {
...
/**
* Basic field of view formula is:
* angle of view = 2 * arctangent ( d / 2f )
* where d is the physical sensor dimension of interest, and f is
* the focal length. This only applies to rectilinear sensors, for focusing
* at distances >> f, etc.
*/
if (horizFov != NULL) {
*horizFov = 180 / M_PI * 2 *
atanf(horizCropFactor * sensorSize.data.f[0] /
(2 * fastInfo.defaultFocalLength));
}
...
};
总结
一般来讲 模组厂给的安装角度FOV是准的 基于这个计算focallength.
高通文档涉及的参数 以sensor的datasheet为准 可调整的也就剩focallength值了
BR