Dataset Viewer
Auto-converted to Parquet Duplicate
metric
stringlengths
20
41
value
float64
0.37
29
note
stringlengths
22
51
angular_epipolar_median_px
0.408
mode-matched calibration, 19,386 unfiltered matches
angular_epipolar_p90_px
1.685
mode-matched calibration
mismatched_mode_calibration_median_px
1.835
same matches, calibration from a 16:9 capture mode
mismatched_mode_calibration_p90_px
4.165
same matches, calibration from a 16:9 capture mode
stereo_pairs_sampled
29
every 4 s across 120 s
heldout_median_as_supplied_px
0.399
alternate-pair held-out evaluation
heldout_median_after_3dof_fit_px
0.374
fitted correction about -0.011/-0.008/-0.006 deg
heldout_median_with_0p1deg_pitch_error_px
0.759
deliberate perturbation
rectified_vertical_median_0_20deg_px
0.503
rectified metric, centre
rectified_vertical_median_75_90deg_px
4.049
rectified metric, periphery
angular_median_75_90deg_px
0.461
angular metric, periphery
opencv_fisheye_roundtrip_error_80deg
4.45
degrees; OpenCV 5.0 defaults
opencv_fisheye_roundtrip_error_85deg
8.04
degrees; OpenCV 5.0 defaults

Checking a Stereo Calibration on Ordinary Footage

Origin Data Lab · Technical Field Note #04 · 23 October 2026

Field Note Python License

Short answer. You can check whether a stereo calibration fits a device and capture mode using ordinary footage, without a target. On a 120 s, 1600×1200 head-mounted stereo recording, a Kalibr calibration from the same capture mode gave a median angular epipolar error of 0.41 px on 19,386 unfiltered matches; a calibration of the same camera family from a different (16:9) mode gave 1.83 px. Two common checks can mislead on wide-angle lenses (see below).

Code and issues: GitHub — origin-data-lab/stereo-calibration-validation

Full article: Technical Field Note #04 — Checking a Stereo Calibration on Ordinary Footage


Key results

Result Value
Median angular epipolar error, mode-matched calibration, no adjustment 0.41 px (19,386 matches, 29 frame pairs)
Same matches, calibration from a different capture mode 1.83 px
Stereo-rotation correction requested by the data < 0.02° per axis
Deliberate 0.1° pitch error median rises to 0.76 px
Rectified vertical residual, 0–20° vs 75–90° field angle 0.50 px → 4.05 px (angular metric stays 0.46 px)
cv2.fisheye.undistortPoints (OpenCV 5.0, defaults) exact to ~74°; 4.5° wrong at 80°, 8.0° at 85° for this lens

All values are from the evaluated recording and configuration; they are not universal guarantees.

Two traps on wide-angle stereo

1. Rectified vertical residuals inflate toward the image edge. Projecting wide-angle rays onto a flat rectified image stretches the periphery (roughly 1/cos² of the angle), so a correct calibration looks wrong at the edges. Use an angular metric, or restrict rectified checks to the central field of view.

2. OpenCV's default fisheye un-projection clamps the distorted angle at π/2. With a positive k₁, θd reaches π/2 before the true ray angle reaches 90°, and every point beyond returns at the wrong angle. Run tools/fisheye_roundtrip_check.py with your own coefficients to see where this happens for your lens.

Tools

pip install opencv-python numpy scipy pyyaml

# 1. Validate a Kalibr pinhole-equidistant stereo calibration on ordinary stereo footage
python tools/validate_stereo_calib.py --left left.mp4 --right right.mp4 \
    --camchain camchain.yaml --scale 2 --out result.json
#   --scale = video resolution / calibration resolution

# 2. Find where OpenCV's fisheye un-projection breaks for your coefficients
python tools/fisheye_roundtrip_check.py --camchain camchain.yaml --cam cam0 --scale 2
python tools/fisheye_roundtrip_check.py --k 0.12 0 0 0 --f 480 --cx 800 --cy 600

Repository contents

Path Contents
tools/validate_stereo_calib.py Target-free stereo calibration check (angular epipolar error, field-angle breakdown, held-out rotation fit)
tools/fisheye_roundtrip_check.py OpenCV fisheye round-trip test
results/ Measured results behind the article (JSON)
data/evaluation_summary.csv Key numbers as a table (shown in the Dataset Viewer)
figures/ Figures used in the article

The device calibration parameters and the source recording are not published in this repository.

What this check does not verify

  • Baseline length / metric scale — absent from the epipolar constraint.
  • Metric depth accuracy — requires targets at measured distances.
  • Camera–IMU calibration — time shift and extrinsics need a separate test.

Cite

@misc{origindatalab2026fieldnote04,
  author       = {{Origin Data Lab}},
  title        = {Checking a Stereo Calibration on Ordinary Footage},
  howpublished = {Technical Field Note \#04},
  year         = {2026},
  url          = {https://origindatalab.io/technical-field-notes/stereo-calibration-check.html}
}

Or:

Origin Data Lab (2026). Checking a Stereo Calibration on Ordinary Footage. Technical Field Note #04.
https://origindatalab.io/technical-field-notes/stereo-calibration-check.html

License

  • Code in tools/: MIT
  • Text, results and figures: CC BY-NC 4.0 — free to share and adapt for non-commercial use with attribution to Origin Data Lab.

Related


Origin Data Lab — real-world data production for Physical AI and robotics · origindatalab.io · contact@origindatalab.io

Need per-device, per-capture-mode stereo calibration validated on your own footage? Contact us.

Downloads last month
170