Computer Engineering and Applications ›› 2022, Vol. 58 ›› Issue (20): 286-292.DOI: 10.3778/j.issn.1002-8331.2103-0347

• Engineering and Applications • Previous Articles     Next Articles

Pyramid Iterative Optimization Algorithm for Camera Calibration

LI Congliang, SONG Huansheng, MU Bochen, ZHANG Wentao   

  1. School of Information Engineering, Chang’an University, Xi’an 710064, China
  • Online:2022-10-15 Published:2022-10-15

相机标定的金字塔迭代优化算法

李聪亮,宋焕生,穆勃辰,张文涛   

  1. 长安大学 信息工程学院,西安 710064

Abstract: In current traffic scenes, pan-tilt cameras with variable pose and focal length are being used on a large scale. In the process of solving camera parameters, the existing camera calibration model usually uses the method which uses the prior conditions in the scene to solve the camera at one time. In this method, the calibration results are unstable and inaccurate when the PTZ camera continuously changes the pose and focal length. Among them, the unstable phenomenon of the camera height is particularly obvious. To solve the problem, this paper proposes a pyramid iterative optimization scheme based on focal length and camera height. First it uses the basic camera calibration to obtain a basic calibration result; it sets the optimized comparison content along the road as road markings, and the comparison content is perpendi-
cular to the road as the road width; it sets the focal length and camera height optimization range and initial optimization step length, and uses the pyramid iteration method to optimize the results, finally gets the best optimization results. The experimental results on the highway data set show that this method can effectively improve the accuracy and stability of the camera calibration parameters. Compared with the traditional calibration algorithm, the accuracy in the direction along the road is increased by 8%, and the accuracy in the direction perpendicular to the road is increased by 6.5%, and the overall accuracy is increased by 6.5%; during the process of changing the pose and focal length of the pan-tilt camera, the camera height fluctuation stabilizes within 2%.

Key words: camera calibration, pan-tilt-zoom camera, pyramid iterative optimization, traffic scene, road prior knowledge

摘要: 在当前交通场景中,位姿、焦距均可变的云台相机正在被大规模应用,现有的相机标定模型在求解相机参数的过程中,通常使用先验条件一次性求解相机参数的方法。这种方法在云台相机不断改变位姿和焦距的过程中,标定结果存在不稳定、不精确的情况,其中相机高度的不稳定现象尤为明显。针对这个问题,提出一种基于焦距和相机高度的金字塔迭代优化方案。使用基础的相机标定,得到一个基础标定结果;设定沿道路方向优化对比内容为道路标线,垂直于道路方向上为道路宽度;设定焦距和相机高度优化范围及初始优化步长,并采用金字塔迭代的方式进行结果优化,最终得到最佳优化结果。在高速公路的数据集上的实验结果表明,该方法能够有效提高相机标定参数的精度和稳定性,比之传统标定算法,在沿道路方向上精度提高8%,垂直于道路方向精度提高6.5%,综合精度提高6.5%;在云台相机改变位姿和焦距过程中,相机高度波动稳定在2%以内。

关键词: 相机标定, 云台相机, 金字塔迭代优化, 交通场景, 道路标志物