# 外参标定

外参标定是指估计相机或其他传感器相对于某个参考坐标系或第二个传感器的刚体位姿，从而使来自不同设备的测量能够在同一个坐标系中表达。其输出是一个六自由度变换：一个旋转和一个平移。在机器人世界与[手眼标定](https://www.edgepedia.org/zh/hand-eye-calibration)公式中，未知量为两个变换 \( \mathbf{X} \) 和 \( \mathbf{Y} \in \mathrm{SE}(3) \)，由含噪的逐位姿测量 \( \mathbf{A}_i, \mathbf{B}_i \in \mathrm{SE}(3) \) 恢复得到。<sup>[1](https://arxiv.org/html/2507.23045v1)</sup> 对于激光雷达-相机组合，该变换即激光坐标系与相机坐标系之间的旋转矩阵 \( \mathbf{R}_L^C \) 和平移 \( \mathbf{t}_L^C = [x,y,z]^T \)，其中相机内参假定已由单独的单目标定获得。<sup>[2](https://ar5iv.labs.arxiv.org/html/2007.01959)</sup> 等价地，该变换也可表示为六参数向量 \( \theta = (t_x, t_y, t_z, r_x, r_y, r_z) \)，即一个设备在另一个设备坐标系中的位置与横滚-俯仰-偏航旋转。<sup>[3](https://ar5iv.labs.arxiv.org/html/2101.04431)</sup> 一致的外参是自动驾驶、移动机器人、智能监控和视觉测量中传感器融合的前提条件。<sup>[4](https://www.mdpi.com/1424-8220/24/12/3878)</sup>

| 关键事实 | 详情 |
|---|---|
| 估计量 | 一个或多个 SE(3) 变换：旋转加平移，6 自由度<sup>[1](https://arxiv.org/html/2507.23045v1)</sup> |
| 核心约束 | 手眼方程 \( \mathbf{A} \cdot \mathbf{X} = \mathbf{X} \cdot \mathbf{B} \)，推广为 \( \mathbf{A}_i \cdot \mathbf{X} = \mathbf{Y} \cdot \mathbf{B}_i \)<sup>[5](https://www.robotic.dlr.de/fileadmin/robotic/stroblk/publications/strobl_2006iros.pdf)</sup><sup> • </sup><sup>[1](https://arxiv.org/html/2507.23045v1)</sup> |
| 手眼标定最少数据 | 2 次旋转轴不平行的运动，即至少 3 个位姿；强烈建议使用更多数据<sup>[6](https://docs.opencv.org/4.13.0/d9/d0c/group__calib3d.html)</sup> |
| PnP 最少数据 | 非平面场景 6 个点（DLT），共面 4 个点（单应分解）<sup>[6](https://docs.opencv.org/4.13.0/d9/d0c/group__calib3d.html)</sup> |
| 激光雷达-相机精度 | 使用五个标靶位姿时，与真值偏差在 6.5 mm 和 0.002 rad 以内（HDL-32/HDL-64 配置）<sup>[3](https://ar5iv.labs.arxiv.org/html/2101.04431)</sup> |
| 无标靶精度 | 可微批优化：中位精度 1.6 cm / 0.07°，可零样本迁移至未见过的传感器<sup>[7](https://proceedings.mlr.press/v229/fu23a.html)</sup> |

## 工作原理

经典手眼标定公式为 \( \mathbf{A} \cdot \mathbf{X} = \mathbf{X} \cdot \mathbf{B} \)，其中 \( \mathbf{A} \) 为机器人工具中心点运动，\( \mathbf{B} \) 为由此引起的相机运动，\( \mathbf{X} \) 为待求的手眼变换。<sup>[5](https://www.robotic.dlr.de/fileadmin/robotic/stroblk/publications/strobl_2006iros.pdf)</sup> 每次机器人运动产生相应的相机运动，未知的安装变换必须使该回路保持一致。大多数解法通过在两个时刻 \( i \) 和 \( j \) 写出方程来消去平移，从而得到著名的手眼方程。<sup>[5](https://www.robotic.dlr.de/fileadmin/robotic/stroblk/publications/strobl_2006iros.pdf)</sup>

机器人世界与手眼标定（RWHEC）将其推广为 \( \mathbf{A}_i \cdot \mathbf{X} = \mathbf{Y} \cdot \mathbf{B}_i \)（\( i = 1, \ldots, N \)），从含噪 SE(3) 测量中同时估计传感器安装变换 \( \mathbf{X} \) 和基座到标靶的变换 \( \mathbf{Y} \)。<sup>[1](https://arxiv.org/html/2507.23045v1)</sup> 一种相关公式 \( \mathbf{M} \cdot \mathbf{Y} = \mathbf{M}' \cdot \mathbf{Y} \cdot \mathbf{B} \) 直接使用 \( 3 \times 4 \) 透视矩阵，因此无需显式给出相机内外参；该公式允许闭式四元数旋转解，以及同时求解旋转和平移的非线性技术。<sup>[8](https://arxiv.org/html/2311.12655)</sup> 两步法利用只需部分解的特性，先通过最小二乘求解过约束系统。<sup>[9](https://www.iri.upc.edu/files/scidoc/2525-Hand-Eye-Calibration-Made-Easy-through-a-Closed-Form-Two-Stage-Method.pdf)</sup>

## 操作方法

标准相机标定流程为：估计初始内参，用 solvePnP 估计初始位姿，然后运行全局 Levenberg-Marquardt 优化，最小化重投影误差平方和。<sup>[10](https://docs.opencv.org/5.0/main_modules/calib.html)</sup> 具体到眼在手上的外参标定，操作者采集机器人末端执行器位姿与棋盘格图像的对应组及相机内参，从图像计算棋盘格位姿，再从位姿对应组估计末端执行器到相机的变换。<sup>[11](https://visp-doc.inria.fr/doxygen/visp-daily/tutorial-calibration-extrinsic-eye-in-hand.html)</sup> 眼对手的变体遵循同样的三步流程。<sup>[12](https://visp-doc.inria.fr/doxygen/visp-daily/tutorial-calibration-extrinsic.html)</sup>

数据采集比求解器选择更重要。指导原则是使用多个倾斜角度显著的标板位姿，避免在单一工作距离采集所有视图，并覆盖预期的工作距离范围。<sup>[10](https://docs.opencv.org/5.0/main_modules/calib.html)</sup> 实际操作中通常需要来自工作空间各处的数十张图像，采集时相机保持静止，图像需校正，标靶应占据图像的大部分区域。<sup>[13](https://ros-industrial.github.io/industrial_calibration/page_extrinsic_hand_eye_calibration.html)</sup>

数据需求原则上并不高。手眼标定要求至少 2 次旋转轴不平行的运动，即至少 3 个不同位姿，但强烈建议使用更多数据。<sup>[6](https://docs.opencv.org/4.13.0/d9/d0c/group__calib3d.html)</sup><sup> • </sup><sup>[10](https://docs.opencv.org/5.0/main_modules/calib.html)</sup> 对于位姿求解，非平面初始解通过 DLT 至少需要 6 个点，平面解通过单应分解至少需要 4 个点。<sup>[6](https://docs.opencv.org/4.13.0/d9/d0c/group__calib3d.html)</sup> 对于激光雷达-相机标定，点到面优化理论上至少需要 3 个非共面视图；实验中每对激光雷达-相机使用了约 30 次观测。<sup>[2](https://ar5iv.labs.arxiv.org/html/2007.01959)</sup>

## 起源

被称为 Tsai-Lenz 的闭式手眼标定方法由 R.Y. Tsai 和 R.K. Lenz 于 1989 年发表在《IEEE 机器人与自动化汇刊》上。<sup>[14](https://doi.org/10.1109/70.34770)</sup> 后来的公式利用螺旋理论表示消除了旋转与平移的解耦：对偶四元数从代数上描述运动，并在线性公式内实现基于 SVD 的旋转与平移快速联合求解。<sup>[5](https://www.robotic.dlr.de/fileadmin/robotic/stroblk/publications/strobl_2006iros.pdf)</sup> 在位姿估计方面，A. Penate-Sanchez、J. Andrade-Cetto 和 F. Moreno-Noguer 于 2013 年在《IEEE 模式分析与机器智能汇刊》上发表了《用于鲁棒相机位姿与焦距估计的穷举线性化》，一种鲁棒的相机位姿与焦距估计器<sup>[15](https://doi.org/10.1109/tpami.2013.36)</sup>；Toby Collins 和 Adrien Bartoli 于 2014 年在《[国际计算机视觉杂志](https://www.edgepedia.org/zh/international-journal-of-computer-vision)》上发表了《基于平面的无穷小位姿估计》（IPPE）<sup>[16](https://doi.org/10.1007/s11263-014-0725-5)</sup>；Tong Ke 和 Stergios Roumeliotis 于 2017 年发表了透视三点问题的高效代数解。<sup>[17](https://doi.org/10.48550/arxiv.1701.08237)</sup>

## 变体

**基于标靶的标定**使用人工共视标靶（如棋盘格、ARUCO 标签、专用标定板、反光标记和激光标定卡）建立点云到图像的对应关系。<sup>[4](https://www.mdpi.com/1424-8220/24/12/3878)</sup> **基于运动的传感器间标定**则将问题表述为手眼标定 \( \mathbf{A} \cdot \mathbf{X} = \mathbf{X} \cdot \mathbf{B} \)，其中 \( \mathbf{A} \) 和 \( \mathbf{B} \) 分别为各传感器轨迹中位姿之间的相对变换；该方法无需标定标靶、无需共享视场，且适用于多模态传感器。<sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC10098754/)</sup> 一种在线变体利用对偶四元数从各传感器自运动估计外参，由 Markus Horn 及其同事于 2021 年发表。<sup>[19](https://doi.org/10.48550/arxiv.2101.11440)</sup>

**基于学习的激光雷达-相机标定**按估计原理分为两类：精确外参估计（AEPE）和相对外参预测（REPP）。<sup>[4](https://www.mdpi.com/1424-8220/24/12/3878)</sup>

## 应用

在公共参考坐标系中估计激光雷达到相机的变换，是自动驾驶、移动机器人、智能监控和视觉测量中有效且准确的数据融合的前提条件。<sup>[4](https://www.mdpi.com/1424-8220/24/12/3878)</sup> 手眼标定为机器人操作奠定基础，通过定位相机相对于末端执行器的位置来实现。<sup>[11](https://visp-doc.inria.fr/doxygen/visp-daily/tutorial-calibration-extrinsic-eye-in-hand.html)</sup> 基于运动的标定将外参估计扩展到无视场重叠的传感器组合，适用于多传感器车辆和平台装置。<sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC10098754/)</sup>

精度随标靶位姿数量急剧提升：五个位姿使平均误差降低 85.42%（线性）和 87.01%（角度），对于 HDL-32/HDL-64 配置，最终标定与真值偏差 6.5 mm 和 0.002 rad。<sup>[3](https://ar5iv.labs.arxiv.org/html/2101.04431)</sup> 使用 \( N = 30 \) 个数据帧提取参考点可在精度与时间之间取得良好折中，且异常值极为罕见。<sup>[3](https://ar5iv.labs.arxiv.org/html/2101.04431)</sup> 一种无标靶的可微批优化方法在迁移到未见过的传感器时达到 1.6 cm / 0.07° 的中位精度。<sup>[7](https://proceedings.mlr.press/v229/fu23a.html)</sup>

## 局限与替代方案

**退化运动。** 当车辆运动仅绕单一轴（偏航）旋转时，基于里程计和手眼的方法会失效；在纯偏航运动下，外参旋转的横滚和俯仰受观测旋转轴对齐的约束，且对于平面轮式车辆运动，传感器高度可能不可观测。<sup>[20](https://openaccess.thecvf.com/content/WACV2024/papers/Borer_From_Chaos_to_Calibration_A_Geometric_Mutual_Information_Approach_To_WACV_2024_paper.pdf)</sup><sup> • </sup><sup>[21](https://personalpages.surrey.ac.uk/s.hadfield/papers/Walters19.pdf)</sup>

**模型误差。** 手眼算法假设机器人位姿测量完全准确，但机器人并非完全刚性，模型也不能完美匹配实际硬件。<sup>[13](https://ros-industrial.github.io/industrial_calibration/page_extrinsic_hand_eye_calibration.html)</sup> 可分离解法将方向和平移分两个线性阶段求解，更简单但更易出错，因为旋转误差会传播到平移；联合求解的非线性方法、[因子图优化](https://www.edgepedia.org/zh/factor-graph-optimization)和神经网络是更新的替代方案。<sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC10098754/)</sup> 在仿真和 KITTI 验证中，参考坐标系选择带来的性能提升大于算法选择带来的提升，且常用的参考坐标系在真实噪声下劣于其他选项。<sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC10098754/)</sup>

**基于学习和可微的替代方案。** 基于学习的标定具有速度快、精度高、在复杂条件下鲁棒性强的特点，已在几年内从理论模型走向实际应用。<sup>[4](https://www.mdpi.com/1424-8220/24/12/3878)</sup> 无标靶的可微优化使得部署后无需标定标靶即可重新标定。<sup>[7](https://proceedings.mlr.press/v229/fu23a.html)</sup>

## References

1. [A Certifiably Correct Algorithm for Generalized Robot-World and Hand-Eye Calibration](https://arxiv.org/html/2507.23045v1)
2. [Experimental Evaluation of 3D-LIDAR Camera Extrinsic Calibration](https://ar5iv.labs.arxiv.org/html/2007.01959)
3. [Automatic Extrinsic Calibration Method for LiDAR and Camera Sensor Setups](https://ar5iv.labs.arxiv.org/html/2101.04431)
4. [A Review of Deep Learning-Based LiDAR and Camera Extrinsic Calibration](https://www.mdpi.com/1424-8220/24/12/3878)
5. [Optimal Hand-Eye Calibration (Strobl & Hirzinger, IROS 2006)](https://www.robotic.dlr.de/fileadmin/robotic/stroblk/publications/strobl_2006iros.pdf)
6. [OpenCV: Camera Calibration and 3D Reconstruction](https://docs.opencv.org/4.13.0/d9/d0c/group__calib3d.html)
7. [Batch Differentiable Pose Refinement for In-The-Wild Camera/LiDAR Extrinsic Calibration](https://proceedings.mlr.press/v229/fu23a.html)
8. [Hand-Eye Calibration (arXiv 2311.12655)](https://arxiv.org/html/2311.12655)
9. [Hand-Eye Calibration Made Easy through a Closed-Form Two-Stage Method](https://www.iri.upc.edu/files/scidoc/2525-Hand-Eye-Calibration-Made-Easy-through-a-Closed-Form-Two-Stage-Method.pdf)
10. [Camera Calibration, OpenCV Tutorials](https://docs.opencv.org/5.0/main_modules/calib.html)
11. [ViSP tutorial: Camera eye-in-hand extrinsic calibration](https://visp-doc.inria.fr/doxygen/visp-daily/tutorial-calibration-extrinsic-eye-in-hand.html)
12. [Visual Servoing Platform: Tutorial: Camera eye-to-hand extrinsic calibration](https://visp-doc.inria.fr/doxygen/visp-daily/tutorial-calibration-extrinsic.html)
13. [Industrial Calibration: Extrinsic Hand Eye Calibration GUI Application](https://ros-industrial.github.io/industrial_calibration/page_extrinsic_hand_eye_calibration.html)
14. [R.Y. Tsai, R.K. Lenz (1989). A new technique for fully autonomous and efficient 3D robotics hand/eye calibration. IEEE Transactions on Robotics and Automation.](https://doi.org/10.1109/70.34770)
15. [A. Penate-Sanchez, J. Andrade-Cetto, F. Moreno-Noguer (2013). Exhaustive Linearization for Robust Camera Pose and Focal Length Estimation. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/tpami.2013.36)
16. [Toby Collins, Adrien Bartoli (2014). Infinitesimal Plane-Based Pose Estimation. International Journal of Computer Vision.](https://doi.org/10.1007/s11263-014-0725-5)
17. [Ke, Tong, Roumeliotis, Stergios (2017). An Efficient Algebraic Solution to the Perspective-Three-Point Problem. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1701.08237)
18. [Motion-Based Extrinsic Sensor-to-Sensor Calibration: Effect of Reference Frame Selection for New and Existing Methods](https://pmc.ncbi.nlm.nih.gov/articles/PMC10098754/)
19. [Horn, Markus and colleagues (2021). Online Extrinsic Calibration based on Per-Sensor Ego-Motion Using Dual Quaternions. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2101.11440)
20. [From Chaos to Calibration: A Geometric Mutual Information Approach To Target-Free Camera LiDAR Extrinsic Calibration (WACV 2024)](https://openaccess.thecvf.com/content/WACV2024/papers/Borer_From_Chaos_to_Calibration_A_Geometric_Mutual_Information_Approach_To_WACV_2024_paper.pdf)
21. [personalpages.surrey.ac.uk](https://personalpages.surrey.ac.uk/s.hadfield/papers/Walters19.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 语言与视觉人工智能 › 计算机视觉 › 视觉方法与几何 › 几何、相机模型与标定

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/extrinsic-calibration

English original: https://www.edgepedia.org/extrinsic-calibration
