高通 camera CTS Verify FOV calibration debug

高通 camera CTS Verify FOV calibration debug

背景

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值