# Calibrating a Stereo or Multi-Camera Rig

> How a stereo pair or a multi-camera head is calibrated: the extrinsic chain and its conventions, why cameras must share target views, what Kalibr, OpenCV and mrcal each do, when to rectify and when to work in rays, how public rigs check and refine their calibration per session, and the common failures.

Page: https://egocam.ai/calibration/stereo-and-multi-camera-calibration/

Stereo is the baseline on current head-worn capture rigs, and several public 2026 rigs go further, building their heads from more than one stereo pair (see [Mono vs Stereo](https://egocam.ai/camera-design/mono-vs-stereo/) and [Current Capture Rigs](https://egocam.ai/hardware/current-capture-rigs/)). Every one of those cameras has to be calibrated on its own and relative to the others, and the relative part is what this page is about.

The basics are on the [camera calibration page](https://egocam.ai/calibration/camera-calibration/), the target and how to move it on [Calibration Targets and Calibration Sequences](https://egocam.ai/calibration/targets-and-calibration-sequences/), Kalibr's files and commands on the [Kalibr file reference](https://egocam.ai/kalibr/kalibr-file-reference/) and [Kalibr workflow](https://egocam.ai/kalibr/kalibr-workflow/), and general quality checks on [Judging a Calibration](https://egocam.ai/calibration/judging-a-calibration/). This page covers what is specific to more than one camera.

## Terms used on this page

For the field guide's terms in one place, grouped by topic, see the [glossary](https://egocam.ai/reference/glossary/).

| Term | Meaning |
|---|---|
| Extrinsics | The rotation R and translation t that take points from one camera's coordinate frame to another's |
| Baseline | The distance between two cameras' optical centres, the length of t |
| Camera chain | The set of extrinsics linking every camera to the others, usually each to the previous one or to a reference camera |
| Shared view | A frame in which two cameras see the same target at the same instant |
| Epipolar line | For a point in one image, the line in the other image on which its match must lie, given the calibration |
| Epipolar residual | How far a matched point lies from its epipolar line, in pixels; a direct measure of extrinsic error |
| Rectification | Re-projecting both images of a pair so that epipolar lines become the same image rows |
| Online (per-session) calibration | Refining some calibration parameters from the recording itself, without a target |

## What the calibration contains

For each camera, a calibration holds its intrinsics: the projection model and its parameters (see [Projections and Distortion](https://egocam.ai/lens-physics/projections-and-distortion/)). Between cameras, it holds the extrinsics. Tools differ in how they write them down, and mixing up the direction is a classic error:

- **Kalibr** stores, for each camera after the first, `T_cn_cnm1`, which maps the previous camera's coordinates into this camera's (for cam1, cam0 into cam1). Each camera is expressed relative to the previous one in the chain, and the norm of the translation is the baseline ([Kalibr file reference](https://egocam.ai/kalibr/kalibr-file-reference/#t_cn_cnm1)).
- **OpenCV's** `stereoCalibrate` returns R and T where "this matrix brings points given in the first camera's coordinate system to points in the second camera's coordinate system" ([OpenCV calib3d reference](https://docs.opencv.org/4.x/d9/d0c/group__calib3d.html)).

Two more things belong to the calibration on a multi-camera rig. One is time: the cameras must expose together, or the offset between them must be known (see [Why Synchronisation Matters](https://egocam.ai/sync/why-sync-matters/)). The other is scope. Only cameras rigidly mounted to the same frame share a fixed chain. A wrist camera moves relative to the head, so its pose has to be tracked frame by frame, not calibrated once ([Head-Plus-Wrist Capture](https://egocam.ai/hardware/head-plus-wrist-capture/)).

## How public rigs calibrate

These are the published procedures of current public rigs, as each paper describes them.

| Rig (year) | Cameras, as published | Calibration | Refined per session |
|---|---|---|---|
| [RoboCap](https://arxiv.org/abs/2610.07217) (2026), head-worn hat | Six global-shutter cameras: two fisheye stereo pairs (86.8 mm and 106.2 mm baselines) and two lateral wide-angle cameras | Each unit at the factory: an operator sweeps the device against a stationary 6 × 6 AprilGrid with 55 mm tags; pinhole + Kannala–Brandt (KB-4) intrinsics; continuous-time batch optimisation; per-parameter tolerance gates | Relative rotations of each pair, from natural correspondences |
| [Ego-1K](https://arxiv.org/abs/2603.13741) (2026), head-worn research rig | 12 global-shutter RGB fisheye cameras around a Quest 3 headset with 4 cameras | In a lab, "using five large planar Calibu targets", moving the rig "through a series of predefined positions"; recalibrated periodically during collection | Camera rotations and focal lengths |
| [Aria Gen 2 Pilot Dataset](https://arxiv.org/html/2510.16134) (2025), glasses | RGB camera and four computer-vision (CV) cameras | Factory calibration | SLAM cameras and IMUs, by Meta's processing services; RGB stays at factory values |
| [HOT3D](https://arxiv.org/abs/2411.19167v2) (2025), Quest 3 recordings | Two of the headset's four monochrome fisheye cameras | "calibrated with a ChArUco board", with headset and board both tracked by motion capture | Not stated for Quest 3; Aria recordings use Meta's time-varying online calibration |
| [Ego-OSCAR](https://arxiv.org/abs/2608.08285) (2026), open-hardware headset | Global-shutter stereo pair, 42 mm baseline | Per device, "every device shipping its own stereo calibration" | Not stated |
| [TUM VI](https://arxiv.org/abs/1804.06120) (2018), handheld benchmark | Global-shutter fisheye stereo pair, 195° lenses | A dedicated `calib-cam` sequence for intrinsics and stereo extrinsics, then a `calib-imu` sequence with the intrinsics held fixed; Kalibr calibration files released | Not applicable |

The rigs built in numbers (RoboCap, Ego-OSCAR, Aria) calibrate every unit individually, and the rigs that publish drift figures all refine part of the calibration per session (below).

## Before recording: what must be fixed in hardware

A multi-camera calibration assumes that every set of frames was captured at the same instant and that nothing in the optics moves afterwards.

- **Exposure together.** On [RoboCap](https://arxiv.org/abs/2610.07217), "All six cameras are exposure-triggered from a single PWM frame-synchronization signal generated by the main controller and fanned out through a 1-to-6 clock buffer". TUM VI also gives both cameras "the same exposure time of corresponding images". Methods are on [Hardware Sync](https://egocam.ai/sync/hardware-sync/).
- **Global shutter, or a rolling-shutter model.** All the head rigs above use global-shutter cameras. Kalibr has a separate rolling-shutter calibration, based on [Oth et al. (2013)](https://openaccess.thecvf.com/content_cvpr_2013/html/Oth_Rolling_Shutter_Camera_2013_CVPR_paper.html); see [Global vs Rolling Shutter](https://egocam.ai/hardware/global-vs-rolling-shutter/).
- **Fixed focus and lens positions**, as for any calibration ([Lens Effects That Break a Calibration](https://egocam.ai/lens-physics/lens-effects-that-break-calibration/)).

## Choosing a camera model for each camera

The models are described in the [Kalibr models section](https://egocam.ai/kalibr/kalibr-file-reference/#the-camera-models) and [Projections and Distortion](https://egocam.ai/lens-physics/projections-and-distortion/). For wide stereo heads, the double sphere paper ([Usenko, Demmel and Cremers, 2018](https://arxiv.org/abs/1807.08957v1)) gives the three findings that matter:

- Pinhole models give out early: "in practice, even when distortion model is added the pinhole camera demonstrates suboptimal performance for a field-of-view greater than 120°".
- Kannala–Brandt implemented as a pinhole projection followed by distortion, as in OpenCV's fisheye module and Kalibr's `pinhole-equi`, has a singularity at z = 0, "which makes it unsuitable for fisheye lenses with field-of-view close to 180°".
- On 16 sequences from lenses of 122° to 195°, the double sphere model had "less than 1% greater reprojection error compared to KB 8 on all sequences", and the paper's timing table makes its projection about 5.6 times faster (55.0 µs against 305.8 µs per 10,000 projections).

Kalibr allows a different model per camera in one run, which suits rigs like RoboCap whose stereo and lateral cameras carry different lenses.

**When the solver does not converge.** On their fisheye and catadioptric test sets, the BabelCalib authors report that "Kalibr and OpenCV have both a 24% failure rate for the Kannala-Brandt model, and Kalibr has a 34% failure rate for FOV and 51% failure rate for EUCM", while BabelCalib "has no calibration failures", because it first fits a back-projection model that needs no initial guess and then regresses the requested model's parameters ([Lochman et al., 2021](https://arxiv.org/pdf/2109.09704)). Kalibr's own advice for a run that diverges early is to "just try to restart the calibration as the initial guesses are based on a random pick of images" ([Kalibr workflow](https://egocam.ai/kalibr/kalibr-workflow/#5-calibrate-the-cameras)).

## Shared views: how cameras get linked

The extrinsics between two cameras come from frames in which both see the target at the same instant. If camera i sees the target at pose `T_i_target` and camera j at `T_j_target`, then `T_i_j = T_i_target · T_j_target⁻¹`. The solver refines all of these together, with every view of every camera.

This is why the shared views must be synchronised. The formula assumes the board was in one place for both images. If it moved between the two exposures, `T_j_target` describes a different board pose from `T_i_target`, and the board's motion in that interval is absorbed into `T_i_j` as if it were part of the rig. mrcal's [how-to-calibrate guide](https://mrcal.secretsauce.net/how-to-calibrate.html) states the requirement directly: "the images must be synchronized across all the cameras".

What that requires in practice:

- **Overlap.** Kalibr's [multiple-camera calibration](https://github.com/ethz-asl/kalibr/wiki/multiple-camera-calibration) estimates "the intrinsic and extrinsic parameters of a multiple camera-system with the requirement that neighbouring cameras have overlapping fields of view." Cameras that do not overlap directly can be linked through a chain of cameras that do.
- **Enough shared frames.** Kalibr records which cameras saw the target together (`cam_overlaps`) and stops with an error that the cameras are not connected through mutual observations if the graph is broken ([Kalibr file reference](https://egocam.ai/kalibr/kalibr-file-reference/#cam_overlaps)).
- **A target that works when partly visible.** Where two wide cameras overlap, the target is often cut off by the edge of one image. Fiducial targets such as Aprilgrids and ChArUco boards identify every corner, so partial views still count; see [Calibration Targets](https://egocam.ai/calibration/targets-and-calibration-sequences/).
- **The rig still, the target moving**, for Kalibr's camera calibration: "The camera system is fixed and the calibration target is moved in front of the cameras". Kalibr also recommends lowering the camera rate "to around 4 Hz while capturing the calibration data".

Public rigs with more cameras solve the coverage problem in different ways: RoboCap uses one sweep that covers "all camera groups and both IMUs" at once, Ego-1K moves the rig through predefined positions in a room with five large targets, and [HOT3D](https://egocam.ai/datasets/hand-object-datasets/) tracks both headset and board with motion capture. The motion itself, distances, tilts and coverage, is described on the [targets and sequences page](https://egocam.ai/calibration/targets-and-calibration-sequences/).

## The tools

| Tool | What it calibrates | Notes from its documentation |
|---|---|---|
| Kalibr `kalibr_calibrate_cameras` | Any number of cameras: intrinsics and the camera chain | Neighbouring cameras must overlap; different models per camera allowed; output `camchain.yaml` ([workflow](https://egocam.ai/kalibr/kalibr-workflow/)) |
| Kalibr `kalibr_calibrate_imu_camera` | Camera–IMU extrinsics and time offsets, given a camera chain | Keeps the camera chain from the previous step unless told otherwise ([workflow](https://egocam.ai/kalibr/kalibr-workflow/#8-calibrate-camera-to-imu)) |
| OpenCV `stereoCalibrate` | One pair: both cameras' intrinsics (optional) and R, T, E, F | Recommends calibrating each camera first and fixing its intrinsics |
| OpenCV `stereoRectify` | Rectifying rotations and projection matrices for a calibrated pair | Pinhole rectification only |
| mrcal | Any number of cameras; stereo processing with `mrcal-stereo` | Reports calibration uncertainty; rectifies fisheye pairs without a pinhole ([mrcal](https://mrcal.secretsauce.net/)) |

On order, OpenCV warns that estimating everything at once "can diverge from the correct solution", and advises: "If the intrinsic parameters can be estimated with high accuracy for each of the cameras individually (for example, using calibrateCamera ), you are recommended to do so and then pass CALIB_FIX_INTRINSIC flag to the function along with the computed intrinsic parameters." TUM VI follows the same order across sensors: cameras and stereo extrinsics first, then the IMU with the camera intrinsics fixed.

## Rectify, or work in rays

What happens after calibration depends on what consumes it.

### Rectify for dense stereo

Dense stereo matchers search along image rows, so they need rectified pairs. OpenCV's `stereoRectify` "computes the rotation matrices for each camera that (virtually) make both camera image planes the same plane. Consequently, this makes all the epipolar lines parallel and thus simplifies the dense stereo correspondence problem." Its `alpha` parameter runs from 0, where every output pixel is valid, to 1, where every source pixel is kept.

> **Diagram:** A match for a left-image point must lie on one line in the right image, the epipolar line. Rectification virtually rotates both cameras onto one plane so that line becomes the same image row, which is what dense stereo matchers search. The epipolar residual, a match's distance from its line, is the everyday check that a stereo calibration still holds. Standard two-view geometry.

A pinhole rectification cannot hold a full fisheye view. The mrcal documentation notes that for fisheye images "the usual pinhole rectification would pull the corners out towards infinity", and `mrcal-stereo` therefore "uses the transverse equirectangular projection for rectification by default", which "samples the azimuth and elevation angles evenly" ([mrcal stereo tour](https://mrcal.secretsauce.net/tour-stereo.html)).

Public rigs rectify a cropped view, using their refined calibration. The Aria Gen 2 team "scan-line rectify the front left and front right CV camera images" for Foundation Stereo, using "Aria Gen 2's accurate online calibration" to convert to depth. Ego-1K dewarps at "a resolution of 1280 × 1280 and a horizontal field of view of 130°", which "provides a wide field of view while avoiding out-of-bounds regions", and uses "the refined online calibration when dewarping".

### Work in rays for SLAM and tracking

Feature-based tracking does better on the raw fisheye images. The ORB-SLAM3 authors: "Image rectification is not an option as objects in the periphery get enlarged and objects in the center loose resolution, hindering feature matching." Instead, the pipeline uses the camera model directly, and "If both cameras have an overlapping area in which we have stereo observations, we can triangulate true scale landmarks the first time they are seen" ([Campos et al., 2021](https://arxiv.org/abs/2007.11898)). RoboCap's SLAM works the same way across its cameras: "Cameras with overlapping fields of view form a stereo pair, giving landmarks metric depth from their first frame; on RoboCap this is the front pair, while the lateral cameras track their own landmarks monocularly and keep the estimator constrained when the hands cover the front pair."

## Checking a multi-camera calibration

Reprojection error alone does not prove a calibration; the general checks are on [Judging a Calibration](https://egocam.ai/calibration/judging-a-calibration/). For stereo and multi-camera rigs, these checks are used in the sources:

| Check | How | Source |
|---|---|---|
| Baseline and rotation against the hardware | Compare `T_cn_cnm1` with the mechanical design or a measurement: "Sanity check your final rotation and translation with hand-measured values." | [Kalibr RealSense tutorial](https://github.com/ethz-asl/kalibr/wiki/Calibrating-Intel-RealSense-Cameras) |
| Epipolar residual on real scenes | Match features between the two cameras and measure the distance to the epipolar line; RoboCap uses the Sampson epipolar distance | [RoboCap](https://arxiv.org/abs/2610.07217) |
| Depth on a known target | Compare stereo depth with depth from the board's own pose. RoboCap recorded "a ChArUco board over seven sessions on one device"; [EgoLive](https://egocam.ai/datasets/robot-learning-datasets/) measured its stereo depth against "a stepped array with known depth gradients and a ChArUco calibration board" from 0.5 m to 3.5 m, with a mean error of 3.059 mm at 500 mm | [RoboCap](https://arxiv.org/abs/2610.07217), [EgoLive](https://arxiv.org/pdf/2604.23570) |
| Agreement between pairs | With several overlapping pairs, compare their depth for the same points: "If the calibration is not accurate, different camera pairs will yield inconsistent depth estimates for the same scene point" | [Ego-1K](https://arxiv.org/abs/2603.13741) |
| Per-unit acceptance | "Units are accepted only within per-parameter tolerance gates for each of camera extrinsics and intrinsics reprojection, gyroscope, and accelerometer–and units failing any gate are reworked rather than shipped." (The paper does not publish the gate values.) | [RoboCap](https://arxiv.org/abs/2610.07217) |

Why the baseline matters: stereo depth is `z = f·b / d`, so a baseline that is 1% wrong makes every depth 1% wrong, and a disparity error `Δd` costs about `z² / (f·b) · Δd`. On RoboCap's front pair (`b` = 86.8 mm, `f` about 610 px), one pixel at 0.65 m is about 8 mm, in line with the paper's "a pixel of disparity error translates to roughly a centimeter of depth". The worked example is on [Mono vs Stereo](https://egocam.ai/camera-design/mono-vs-stereo/#what-a-second-camera-measures-depth-at-the-hands).

## Keeping it calibrated: per-session refinement

Head-worn rigs drift from their factory calibration, mostly in rotation: 0.2–1.1° between paired cameras across the RoboCap fleet, 0.1–0.2° on Ego-1K, whose focal lengths also "change with temperature". The drift figures are collected on [Mono vs Stereo](https://egocam.ai/camera-design/mono-vs-stereo/#calibration-drift-on-a-head). The published refinement procedures:

- **RoboCap: rotations only, per pair, with a safety gate.** "Drift is dominated by rotation, so we only estimate the residual rotations once per recording session from natural correspondences" with no target. "The left-front camera is the anchor and is never moved. Each pair is constrained by its own correspondences and fit independently against the Sampson epipolar distance rather than the vertical residual of a rectified pair." Corrections are accepted only if they improve a held-out residual and stay within about 1° of the device's factory value. Across 150 deployed devices, "factory calibration leaves a median front-pair epipolar residual of 3.8 px, which online calibration reduces to 0.56 px". In the separate ChArUco test on one device, it halved stereo depth error within reach (AbsRel 0.023 to 0.011 below 0.8 m).
- **Ego-1K: rotations and focal lengths, per recording.** "Our online calibration refines camera rotations and focal lengths, but keeps other extrinsics and intrinsics fixed." It assumes "the calibration remains constant over a full recording", matches features across all cameras, and optimises orientations and focal lengths "to jointly minimize reprojection errors of all detected feature points". It "lowers the median MAD score by 35%".
- **Aria: refinement by Meta's processing services (MPS).** In HOT3D, "tiny deformations due to temperature changes or stress applied to the glasses frame are further corrected by time-varying online calibration from MPS".

In all three, the factory calibration is the starting point and only the parameters known to drift are re-estimated.

## Common failures

| Symptom | Likely cause | What to do |
|---|---|---|
| Kalibr: "Cameras are not connected through mutual observations" | Too few frames with the target in both cameras, or unsynchronised cameras | Record more shared views; check sync ([Kalibr workflow](https://egocam.ai/kalibr/kalibr-workflow/#common-failures)) |
| Every translation off by the same few per cent | Target dimensions do not match the print | Measure the printed target ([Kalibr file reference](https://egocam.ai/kalibr/kalibr-file-reference/#measuring-a-printed-target)) |
| Large errors at the image edges on a wide lens | Pinhole model on a lens wider than about 120°, or no target coverage at the edges | Use a fisheye model; cover the edges ([targets page](https://egocam.ai/calibration/targets-and-calibration-sequences/)) |
| Solver diverges or fails on a fisheye camera | Poor initial values for a non-linear model | Restart (Kalibr's advice) or initialise with a method such as BabelCalib |
| `stereoCalibrate` gives implausible intrinsics | Too many parameters estimated at once | Calibrate each camera first, then use `CALIB_FIX_INTRINSIC` (OpenCV's advice) |
| Rectified images have stretched or empty corners | Pinhole rectification of a fisheye view | Crop the field of view (Ego-1K uses 130°), or use mrcal's equirectangular rectification |
| Factory calibration was good, field depth is biased | Rotation drift between the cameras | Per-session rotation refinement, with a held-out check |
| Transform has the right size but points the wrong way | Direction convention mixed up between tools | Check which frame each transform maps from and to ([how Kalibr names transforms](https://egocam.ai/kalibr/kalibr-file-reference/#how-kalibr-names-transforms)) |

## Prompts you can give an AI

```text
Here is my Kalibr camchain.yaml for a stereo (or multi-camera) head rig, and the
mechanical baseline and relative angles from the design:
[paste camchain.yaml and design values]

Write a Python script that:
1. Parses each T_cn_cnm1, prints the baseline in millimetres and the relative
   rotation (axis-angle, degrees) for every camera relative to cam0.
2. Compares them with my design values and flags any difference larger than
   tolerances I set on the command line.
3. Explains which direction each transform maps, following Kalibr's convention
   that T_cn_cnm1 takes camera n-1 coordinates to camera n coordinates.
```

## Sources

- Ali, Q. et al. (2026). [RoboCap: A New Platform for Egocentric Robot Learning](https://arxiv.org/abs/2610.07217). arXiv:2610.07217.
- Lee, J. Y. et al. (2026). [Ego-1K – A Large-Scale Multiview Video Dataset for Egocentric Vision](https://arxiv.org/abs/2603.13741). CVPR 2026.
- Kong, C. et al. (2025). [Aria Gen 2 Pilot Dataset](https://arxiv.org/html/2510.16134). arXiv:2510.16134.
- Banerjee, P. et al. (2025). [HOT3D: Hand and Object Tracking in 3D from Egocentric Multi-View Videos](https://arxiv.org/abs/2411.19167v2). CVPR 2025.
- Palanisamy, S. et al. (2026). [Ego-OSCAR: Egocentric Open source Stereo CAptuRe System](https://arxiv.org/abs/2608.08285). arXiv:2608.08285.
- Schubert, D. et al. (2018). [The TUM VI Benchmark for Evaluating Visual-Inertial Odometry](https://arxiv.org/abs/1804.06120). IEEE/RSJ IROS.
- [EgoLive: A Large-Scale Egocentric Dataset from Real-World Human Tasks](https://arxiv.org/pdf/2604.23570) (2026). arXiv:2604.23570.
- Usenko, V., Demmel, N. and Cremers, D. (2018). [The Double Sphere Camera Model](https://arxiv.org/abs/1807.08957v1). 3DV.
- Lochman, Y. et al. (2021). [BabelCalib: A Universal Approach to Calibrating Central Cameras](https://arxiv.org/pdf/2109.09704). ICCV.
- Campos, C. et al. (2021). [ORB-SLAM3: An Accurate Open-Source Library for Visual, Visual-Inertial and Multi-Map SLAM](https://arxiv.org/abs/2007.11898). *IEEE Transactions on Robotics*.
- Oth, L., Furgale, P., Kneip, L. and Siegwart, R. (2013). [Rolling Shutter Camera Calibration](https://openaccess.thecvf.com/content_cvpr_2013/html/Oth_Rolling_Shutter_Camera_2013_CVPR_paper.html). CVPR.
- Kalibr wiki, ETH Zurich ASL: [Multiple camera calibration](https://github.com/ethz-asl/kalibr/wiki/multiple-camera-calibration) and [Calibrating Intel RealSense cameras](https://github.com/ethz-asl/kalibr/wiki/Calibrating-Intel-RealSense-Cameras).
- OpenCV [calib3d module reference](https://docs.opencv.org/4.x/d9/d0c/group__calib3d.html) (`stereoCalibrate`, `stereoRectify`).
- [mrcal](https://mrcal.secretsauce.net/), its [stereo tour](https://mrcal.secretsauce.net/tour-stereo.html) and its [how-to-calibrate guide](https://mrcal.secretsauce.net/how-to-calibrate.html).
