校准最佳实践

准确校准对于大多数机器和计算机视觉任务的性能至关重要。以下列出了我们通过大量实验和理论思考发现的最佳实践。

  1. 选择正确尺寸的校准目标。足够大以正确约束参数。理想情况下,当在相机图像中正面平行时,它应该覆盖至少一半的总面积。
  2. 在最终应用的近似工作距离 (WD) 处进行校准。相机应在此距离处对焦,并且在校准期间或之后不得改变镜头焦距和光圈。
  3. 目标应具有较高的特征数。最好使用精细图案。但是,有时检测稳健性会受到影响。我们建议,如果照明可控且良好,则对于 3MPx 以上的相机使用精细图案数。
  4. 收集不同区域和倾斜度的图像。移动目标以完全覆盖图像区域并力求均匀覆盖。镜头失真可以从正面平行图像中正确确定,但焦距和主点估计取决于观察透视缩短。包括正面平行图像和板在水平和垂直方向上倾斜 +/- 45 度时拍摄的图像。倾斜更多通常不是一个好主意,因为特征定位精度会受到影响并且可能会出现偏差。
  5. 使用良好的照明。这一点经常被忽视,但却非常重要。最好通过受控的摄影照明来漫射校准目标。强点光源会导致照明不均匀,可能导致检测失败,并且不能很好地利用相机的动态范围。阴影也会产生同样的效果。
  6. 有足够的观测值。通常,校准应至少对校准目标的 6 个观测值(图像)进行。如果使用更高阶的相机或失真模型,则更多的观测值是有益的。
  7. 考虑使用 CharuCo 板等唯一编码目标。这些目标可让您从相机传感器和镜头的边缘收集观测数据,从而很好地限制失真参数。此外,即使某些特征点不满足其他要求,它们也允许您收集数据。
  8. 校准的准确性取决于所使用的校准目标。仅使用激光或喷墨打印的目标进行验证和测试。
  9. 正确安装校准目标和相机。为了最大限度地减少较大目标的扭曲和弯曲,请将其垂直安装或平放在刚性支架上。在这些情况下,请考虑移动相机而不是目标。使用优质三脚架,并避免在采集过程中触摸相机。
  10. 删除错误的观察结果。仔细检查重新投影错误。每个视图和每个特征都应如此。如果其中任何一个显示为异常值,请将其排除并重新校准。
  11. 获得较低的再现误差并不等于良好的相机校准,而仅仅表明所提供的数据/证据可以用所用的模型来描述。这可能是由于过度拟合造成的。参数不确定性表明所选相机模型的约束效果如何。
  12. 分析单个重投影误差。它们的方向和大小不应与位置相关,即它们应该混乱地指向所有方向。Calib.io 的相机校准器软件提供了强大的可视化功能来调查重投影误差。

遵循这些做法应能确保尽可能最准确和精确的校准。

有任何问题、评论或其他见解?请在下面发表。


14条评论

  • @Tim: Yes, the distance does play a role. As mentioned under point 2, you should place the calibration target at the approximate working distance of your final application. This is to have acceptable sharpness of features while calibrating. You cannot change focus after calibration as that will affect the lens parameters.
    Now in your application, objects are quite far away. Depending on your aperture, focal length and accuracy requirements, you might get away with setting the lens focus to its hyper-focal distance and then perform the calibration. A new option for large FOV calibration is network calibration, available in the Camera Calibrator software.

    Jakob
  • @ Raphael: For ChAruCo boards, the number of rows and cols can both be even or odd, it does not matter. Only for regular checkerboards and stereo calibration it is important to have one dimension even and the other odd to avoid a 180degree ambiguity for the board orientation.

    Jakob
  • Hello,
    I appreciate for your good job. And I have a quesion here. Does distance from camera to calibration pattern affect calibration parameters? And for a fisheye camera of FOV 180 degrees. The actual application distance is about 10 meters. But I do the calibration with the distance from camera to checkerboard calibration pattern is about less than 2 meters. Is it OK? Thank you in advance. I am looking forward to your reply.

    Best regards,
    Tim

    Tim
  • Hello,
    I really like the descriptions on your site. Good job.

    I have one more question for charuco boards. Is it recommended to use different number of rows and columns? As for the regular chessboards?

    Best,
    Raphael

    Raphael

发表评论

请注意,评论必须经过批准才能发布