Learning Eye-in-Hand Camera Calibration from a Single Image

Eugene Valassakis, Kamil Dreczkowski, Edward Johns

Abstract

Eye-in-hand camera calibration is a fundamental and long-studied problem in robotics. We present a study on using learning-based methods for solving this problem online from a single RGB image, whilst training our models with entirely synthetic data. We study three main approaches: one direct regression model that directly predicts the extrinsic matrix from an image, one sparse correspondence model that regresses 2D keypoints and then uses PnP, and one dense correspondence model that uses regressed depth and segmentation maps to enable ICP pose estimation. In our experiments, we benchmark these methods against each other and against well-established classical methods, to find the surprising result that direct regression outperforms other approaches, and we perform noise-sensitivity analysis to gain further insights into these results.

1. Introduction

In robotics, "eye-in-hand" configurations—where a camera is mounted on the robot's wrist—are critical for high-precision manipulation. To effectively use visual feedback, the robot must know the exact 3D transformation between the camera and its end-effector, a process known as extrinsic calibration. Traditionally, this is an offline, manual procedure involving calibration targets like checkerboards or AprilTags. If the camera is moved or bumped, the process must be repeated.

This research explores a "plug-and-play" alternative: calibrating the camera online from a single RGB image of the robot's own gripper. By training models entirely on synthetic data with heavy domain randomization, the goal is to enable a robot to calibrate itself "in the wild" without external targets or expert intervention.

Overview of the sim-to-real extrinsic camera calibration framework and domain randomization.

2. Methodology

The study evaluates three distinct deep-learning architectures, each representing a different philosophy for pose estimation. All models are trained using synthetic data generated in simulation (CoppeliaSim) with domain randomization to bridge the reality gap.

The three evaluated architectures: Direct Regression, Sparse Correspondence, and Dense Correspondence models.

2.1 Direct Regression (DR)

An end-to-end model that maps an RGB image directly to a 6D pose. It utilizes a 6D rotation encoding to ensure continuity and improve learning stability.

2.2 Sparse Correspondence (SC)

This model predicts 2D keypoints on the gripper using a U-Net. These points are then matched to a known 3D CAD model of the gripper, and the pose is solved using the Perspective-n-Point (PnP) algorithm with RANSAC.

2.3 Dense Correspondence (DC)

A multi-task network predicts both a segmentation mask and a depth map. The resulting predicted point cloud is aligned to the gripper's CAD model using the Iterative Closest Point (ICP) algorithm.

To improve stability, the researchers also implemented a temporal fusion method to aggregate estimates from multiple images.

3. Results and Discussion

The experimental results yielded several surprising insights, most notably that the simplest approach—Direct Regression—outperformed the more geometrically complex methods.

3.1 The Geometric Sensitivity Trap

In many computer vision tasks, geometric constraints like PnP improve accuracy. However, in eye-in-hand setups where the camera is very close to the object, these methods become hyper-sensitive to noise. A minor error in 2D keypoint prediction (SC model) translates into a massive 3D pose error. In real-world tests, the SC model's error often exceeded 290mm.

3.2 Challenges in Dense Estimation

The Dense Correspondence model struggled with depth discontinuities. Neural networks tend to smooth out depth predictions, but the gripper-to-background transition is sharp. This lack of edge precision hindered the ICP alignment process.

3.3 Performance Benchmarks

In real-world evaluations on a Sawyer robot, the Direct Regression model achieved a translation error of approximately 10.4mm (with fusion). Crucially, this outperformed classical analytical methods like Tsai-Lenz, which showed errors between 14.7mm and 17.5mm. This suggests that a learned model can be more robust than manual calibration procedures which are prone to human error during data collection.

4. Conclusion

This work demonstrates that eye-in-hand calibration can be learned effectively from synthetic data alone. The superior performance of direct regression over geometric methods highlights the challenges of noise sensitivity in close-range pose estimation. While the current models are dependent on specific CAD models and gripper visibility, they pave the way for more flexible, self-calibrating robotic systems. Future work will focus on improving depth prediction at discontinuities and developing more universal calibration models.

Summary updated

BibTeX
@inproceedings{valassakis2021learning,
  author = {Eugene Valassakis and Kamil Dreczkowski and Edward Johns},
  title = {{Learning Eye-in-Hand Camera Calibration from a Single Image}},
  booktitle = {CoRL},
  year = {2021},
  url = {https://openreview.net/forum?id=0CE82_hBPzA},
}
Figure