Skip to content

Judging a Calibration: Reprojection Error and Beyond

Current head-worn capture rigs calibrate many cameras at once: stereo is the baseline, and public 2026 rigs such as the six-camera, dual-IMU RoboCap hat and the 12-camera Ego-1K rig calibrate every camera against the others and against their IMUs (see Current Capture Rigs). Each of those calibrations ends with a reprojection error, and that number alone cannot tell you whether the calibration is right.

This page is about the checks that can. The basics of calibration are on Camera Calibration, the recording on Calibration Targets and Calibration Sequences, and where Kalibr prints each number on the Kalibr file reference. Checks specific to stereo pairs are on Calibrating a Stereo or Multi-Camera Rig.

For the field guide’s terms in one place, grouped by topic, see the glossary.

Term Meaning
Reprojection error The distance in pixels between a detected target corner and where the calibrated model predicts it
Training error Reprojection error on the same images the calibration was fitted to
Test (held-out) error Reprojection error on images the calibration never saw, with the intrinsics held fixed and only the target pose solved
Projection uncertainty How far, in pixels, a projected point could move given the noise in the calibration data
Max ERE AprilCal’s “Max Expected Reprojection Error”: the worst expected pixel error over a grid of test points covering the image
Cross-validation Calibrating twice from independent recordings and comparing the two results
Epipolar residual How far a matched point in one camera of a pair lies from the line the calibration says it must lie on

The solver makes the reprojection error as small as it can on the images it was given, so the number it reports is a training error. The AprilCal authors put it directly: tools that use mean reprojection error or mean squared error as the main quality measure are reporting training errors, and they object to them “because these are training errors, rather than testing errors” (Richardson, Strom and Olson, 2013). The mrcal documentation names the flaw: “we can always improve this metric by throwing away some input data” (mrcal, uncertainty).

The training error misses three kinds of fault:

  • Regions the target never reached. The model can be wrong wherever there were no corners, usually the image corners. In the AprilCal user study, novice calibrations with a mean test error of 0.728 px had an average maximum test error of 38.6 px; the study and its table are on the targets page.
  • Errors that leave the residuals unchanged. A target printed at the wrong scale scales every translation by the same factor and leaves every pixel residual exactly as it was (Kalibr file reference).
  • Changes after the calibration. A head-worn rig drifts from its factory values. RoboCap measured 0.2–1.1° of relative rotation drift between paired cameras across its fleet, which the factory report cannot show (Ali et al., 2026).

No calibration tool or paper in our sources gives a universal pass mark; the Kalibr file reference explains what the Kalibr documentation does and does not say. What the sources do give is measured values from real calibrations. Use them for scale, not as thresholds: pixel errors depend on resolution, lens and detector. BabelCalib normalises its comparison figures to a 1000 × 1000 px image for that reason, and AprilCal models corner-detector noise as proportional to image width (Lochman et al., 2021; Richardson, Strom and Olson, 2013).

Quantity Published value Conditions Source
Training reprojection error, well-fitting model 0.127–0.227 px mean Five fisheye and wide-angle lenses, 16 sequences, best models (KB 8, double sphere, EUCM) Usenko, Demmel and Cremers, 2018, Table 1
Training error, poorly fitting model 0.417 and 0.490 px mean, against 0.145 and 0.157 px for the best model 195° lens fitted with the one-parameter FOV model, sequences BF2M2020S23-1 and -2 Usenko, Demmel and Cremers, 2018, Table 1
Test error, guided calibration 0.229 px mean, 1.651 px max (radial model); 0.203 px mean, 1.444 px max (angular model) One 648 × 482 camera, 16 novice users, 65-image test set Richardson, Strom and Olson, 2013, Table I
Held-out test error, fisheye and catadioptric 0.173–0.812 px weighted RMS, 93.6–99.9% inliers, for BabelCalib’s fits of KB, UCM, EUCM and DS models; its FOV-model fits reached 1.356 px and fell as low as 19.3% inliers Seven datasets, intrinsics fixed, pose solved per test image Lochman et al., 2021, Table 5
Camera–IMU time offset, run to run “within a domain of ±0.2 ms” of the expected value FPGA-timestamped lab rig, 40 datasets Furgale, Rehder and Siegwart, 2013
Stereo epipolar residual in the field median 3.8 px with factory calibration, 0.56 px after per-session refinement 150 deployed head-worn devices, front pair Ali et al., 2026
Stereo depth on a known board AbsRel 0.023 with factory calibration, 0.011 after refinement, below 0.8 m One device, seven sessions, 1,277 frames Ali et al., 2026, Table 4
IMU-to-IMU position from Kalibr 3.64 mm RMSE in good light; 119.96 mm in poor light, where only 1 of 21 runs completed Two IMUs and a camera on an optical breadboard Lee, Hanley and Bretl, 2022, Table IX

The last row shows why lighting belongs in the judgement: Kalibr’s camera-based estimate of the IMU positions failed outright in poor light, and the one run that finished was off by about 12 cm.

Check 1: coverage and the shape of the residuals

Section titled “Check 1: coverage and the shape of the residuals”

Look at where the corners landed before looking at any average. Kalibr’s report-cam.pdf draws every detected corner on the image and plots the error against the angle from the optical axis; the Kalibr file reference lists the pages and what each shows. mrcal has the same views as command-line tools, mrcal-show-residuals and mrcal-show-residuals-board-observation among them (mrcal).

Reprojection error A close-up of four squares of a checkerboard. At each inner corner, a cross marks where the corner was detected in the image and a circle marks where the current calibration predicts it should appear. The small gap between them is the reprojection error that the solver minimises. Reprojection error + detected corner ○ predicted Covering the frame with target views The camera's image frame, overlaid with the outlines of the calibration target as seen in many views: near each corner and edge, in the centre, close and far, and tilted at different angles, so that every part of the image and every lens parameter is constrained. Cover the whole frame corners, edges, near, far, tilted
The solver adjusts the parameters until predicted corners land on detected ones. But a low error only means something if the views cover the whole frame, near and far, at many tilts.

Three things to look for:

  1. Corners everywhere. The detections should reach all four edges and corners of every image. AprilCal’s heat maps of the novice calibrations showed where they failed: “it is clear that the OpenCV calibrations fail to capture the lens model in the image corners” (Richardson, Strom and Olson, 2013).
  2. Error flat with angle. On the polar error plot, residuals should stay level out to the widest angle. A rise toward the edge points to a model that does not fit the lens, or to too few views there.
  3. No pattern in the residual vectors. Residuals from detector noise point in random directions. A systematic shift near the edges means the model is wrong, and it shows even when the average is small. The double sphere paper plotted this for six models on a 195° lens: “The UCM and KB 6 model well fit the corners in the middle of the image; however, these models have a small shift close to the edges. Note that imperfections are clearly visible with the FOV model” (Usenko, Demmel and Cremers, 2018). Choosing the model for each lens is covered in Projections and Distortion.

A calibration solver can estimate how well the data pinned down each parameter, and Kalibr prints a standard deviation next to each one in results-cam.txt. Those per-parameter values are hard to read, because the intrinsics and distortion terms trade off against each other. AprilCal’s argument: “the effect of these parameter uncertainties on pixel coordinates can be complex. We argue that worst-case uncertainty in pixels is more relevant for application performance and more natural for the user” (Richardson, Strom and Olson, 2013).

AprilCal’s Max ERE. AprilCal first marginalises out the target poses to get the uncertainty of the camera model alone. It then draws sample calibrations from that distribution, projects “a 5 x 5 grid of test points distributed so their projections will uniformly cover the image” through each, takes the mean pixel error at each point as its ERE, and reports the largest. Because the grid covers the whole image, the number stays high while any region lacks data. The authors checked it against independent test sets: Max ERE “correlates highly with the 99.5th percentile of reprojection errors on an independently captured test set.” They let the user choose the accuracy needed, for example 1 px, and stop when Max ERE falls below it; across six lens and camera configurations from 83° to 146° diagonal field of view this typically took 6–8 images, and in each case “the testing MRE is significantly below one” pixel (Richardson, Strom and Olson, 2013).

mrcal’s uncertainty maps. mrcal computes the same kind of quantity for any calibration. Its three steps are to “Estimate the noise in the chessboard observations”, “Propagate that noise to the optimal parameters”, and propagate the parameter uncertainty “through the projection function to get uncertainty in the resulting pixel coordinate”. mrcal-show-projection-uncertainty draws the result across the image. The same page notes that “the uncertainty grows without bound as we approach the camera”, and that “The “sweet spot” where the uncertainty is lowest sits at the range where we observed the chessboards” (mrcal, uncertainty). Calibrate at the distances you will work at.

mrcal can convert Kalibr models (mrcal-from-kalibr), but only Kalibr’s pinhole camera with radtan or no distortion: its documentation says “At this time we only support” the pinhole camera model with radtan or no distortion (mrcal-from-kalibr). A Kalibr fisheye calibration therefore cannot be converted this way, and a converted model carries no record of the solve, so its uncertainty cannot be drawn; to use mrcal’s uncertainty maps, calibrate with mrcal itself.

Check 3: error on views the calibration never saw

Section titled “Check 3: error on views the calibration never saw”

If the tool reports no uncertainty, measure generalisation directly. BabelCalib’s evaluation protocol is the standard form: “Pose accuracy for held-out test images from the calibration captures is used to evaluate the calibration of each method. Camera intrinsics are fixed to the calibration”, and only the camera pose is optimised on each test image (Lochman et al., 2021). Its datasets split images roughly 70/30, for example 140 training and 60 test images per camera on the Kalibr datasets.

On your own rig:

  1. Hold back part of the recording, or record a second sweep that again reaches every part of the image.
  2. Calibrate on the rest and freeze the intrinsics (and extrinsics, for a stereo pair).
  3. On each held-out image, detect the corners and solve only for the target pose (OpenCV’s solvePnP, for example).
  4. Report the RMS, a high percentile and the maximum error, and look at where in the image the largest errors sit.

The test error also catches a model with too many parameters. BabelCalib chose the degree of its internal division model by fitting all its calibration captures with even degrees from 2 to 10. The refined error was 0.587 px at degree 4 but 1.020 px at degree 8 and 4.812 px at degree 10, and the authors wrote “that models of degrees eight and ten significantly deviate from the optimal result, suggesting that they are over-fitting” (Lochman et al., 2021, Table 2). BabelCalib’s comparison against Kalibr and OpenCV, including their failure rates on fisheye lenses, is on the stereo calibration page.

A rig that has not changed should calibrate to the same result from two independent recordings. The comparison has to be made in pixels, not parameter by parameter.

Cross-validation in mrcal. The mrcal tour describes the procedure: “We gather not one, but two (or more) sets of chessboard observations”, calibrate each independently, and “use the mrcal-show-projection-diff tool to compute the difference” (mrcal, cross-validation). The diff tool grids the imager, unprojects each point through one model, projects it through the other and maps the pixel difference (mrcal-show-projection-diff). The tour also says what to expect. If the model fits the lens, the difference between two calibrations is about the sum of their two uncertainties, and “if we see a cross-validation sample that’s far above double the uncertainty, either we got really unlucky or we have model errors.” In its example, an eight-parameter OpenCV model failed this test, and the authors “conclude that LENSMODEL_OPENCV8 doesn’t fit well.”

Why parameters alone mislead. The double sphere paper calibrated each of five lenses from three sequences and reported the spread of every parameter (Table 3). Focal lengths repeated closely: within 0.2% for most models and lenses, and at most 0.71% (the double sphere model on the 126° lens). The higher distortion coefficients of the eight-parameter Kannala–Brandt model, whose mean values are close to zero, varied by 741.92% (k3, 183° lens) and 12621.85% (k4, GoPro lens) of those means. Yet KB 8 had the lowest reprojection error of all models (Usenko, Demmel and Cremers, 2018). Large swings in individual coefficients can coexist with nearly identical projections, which is why the comparison belongs in pixel space.

Repeat the camera–IMU calibration too. Furgale’s 40 datasets kept the time offset within ±0.2 ms of its expected value. On a consumer sensor, Qin and Shen measured run-to-run standard deviations of 0.071–0.16 ms for their online estimate and 0.13–0.27 ms for Kalibr, across five exposure settings (Qin and Shen, 2018). The camera–IMU time offset page covers where the offset comes from.

Some errors only show against something measured independently.

  • Straight lines. After undistortion to a pinhole view, straight edges in the scene must be straight. AprilCal shows the user the rectified live video at the end, “This allows the user to qualitatively verify that the calibration is accurate, primarily by checking for straightness of projected lines” (Richardson, Strom and Olson, 2013). Look near the image edges, where errors are largest.
  • Translations against the mechanical design. Compare the stereo baselines and camera-to-IMU translations with CAD or a caliper. The Kalibr wiki’s RealSense tutorial says: “Sanity check your final rotation and translation with hand-measured values.” If every translation is off by the same percentage, suspect the printed target size (Kalibr workflow).
  • A certified length bar. A ball-bar is two spheres held a certified distance apart. EgoDepth-Bench checks its recovered metric depth this way: “A calibrated ball-bar confirms millimeter-level geometric accuracy, with a median error of 1.27 mm on a known sphere spacing” (Gao et al., 2026). Its bar has a certified centre spacing of 499.9903 ± 0.005 mm and spheres of about 25 mm radius. It was captured static and moving, at several distances and image positions, with the spheres at different depths. The sphere centres are fitted to back-projected depth pixels with the radii held fixed, and the fitted spacing is compared with the certified length. Fit-quality checks kept 1,220 measurements (38.8% of localised frames), with a 95th-percentile error of 6.66 mm.
  • Per-unit gates. For a fleet, these checks become automatic pass-or-fail limits. RoboCap: “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” (Ali et al., 2026). The paper does not publish the gate values.

A calibration that passed at the bench can still be wrong in the recording, because head-worn rigs flex and warm up. For stereo pairs, two field measurements matter.

Epipolar residual on natural features. Match features between the two cameras of a pair and measure their distance from the epipolar lines. RoboCap does this with the Sampson epipolar distance and gives the scale of the problem: 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” (Ali et al., 2026). How RoboCap, Ego-1K and Aria refine their calibration per session is on the stereo calibration page.

Depth on a known target. Record a board whose pose each camera can solve on its own and compare it with stereo depth. A wrong calibration does not look wrong in a depth map. RoboCap: “Factory calibration does not visibly degrade FFS depth maps: they remain sharp and complete, but are systematically distorted in scale and shape. Online calibration leaves the maps’ appearance unchanged while removing this distortion, halving depth error within reach.” The size of the effect follows from the stereo depth relation, depth error ≈ z² / (f · b) × disparity error:

RoboCap front pair: b = 86.8 mm, f = 590–630 px (fleet range), z = 0.65 m
depth error per pixel of disparity = 0.65² / (610 × 0.0868) ≈ 0.008 m ≈ 8 mm

That matches the paper’s statement that “a pixel of disparity error translates to roughly a centimeter of depth” at 0.65 m. The worked example is on Mono vs Stereo.

Here are my Kalibr results-cam.txt, results-imucam.txt and target.yaml, and the CAD
distances between my cameras and IMU. Check: (1) whether the reprojection error means are
close to zero and the standard deviations similar for every camera; (2) whether each
baseline and camera-to-IMU translation matches the CAD distance, and whether all of them
are off by the same percentage, which would point to a wrong target size; (3) which
parameters have large standard deviations relative to their values. Do not apply pass/fail
thresholds; list what looks inconsistent and why.
Write a Python script with OpenCV and NumPy that takes a calibrated camera model and a folder
of held-out images of an Aprilgrid or ChArUco board. Keep the intrinsics fixed, solve only the
board pose in each image, and report the RMS, 99th-percentile and maximum corner error, plus a
5 x 5 grid over the image giving the corner count and mean and maximum error in each cell.
Write a Python script that compares two camera calibrations of the same camera in pixel space:
grid the image, unproject each grid point with model A, project with model B, and plot a heat
map of the pixel difference. Accept OpenCV pinhole/fisheye models or Kalibr camchain.yaml.