Camera Calibration: Intrinsics, Extrinsics and How It Is Automated
A camera that has not been calibrated takes pictures. A calibrated camera measures. Calibration is the set of numbers that says exactly how each pixel relates to a direction in the world, and where each sensor sits relative to the others.
Almost everything an egocentric pipeline does depends on it. Stereo depth, 3D hand positions, tracking the head through a room and lining up a camera with its IMU all assume the calibration is right. When it is wrong, nothing crashes. The numbers just quietly become wrong, which is worse.
There are two halves: intrinsics and extrinsics. Then there is the question every team building more than a handful of cameras has to answer: how to calibrate them all, reliably, without an expert at every station.
Intrinsics: the camera on its own
Section titled “Intrinsics: the camera on its own”Intrinsics describe the camera on its own: how a direction in the world becomes a pixel on its sensor. The starting point is the pinhole model, which treats the camera as a single point that every ray passes through.
- Focal length, measured in pixels. It sets how much of the world each pixel covers. Two numbers, one per axis, because pixels are not always perfectly square.
- Principal point. Where the optical axis meets the sensor. It is rarely the exact centre of the image, because lenses and sensors are never assembled perfectly.
- Distortion. Real lenses bend straight lines. The OpenCV calibration tutorial describes the two classic kinds: radial distortion, which “causes straight lines to appear curved” and grows toward the edge of the image, and tangential distortion, from a lens that is not perfectly parallel to the sensor.
Wide and fisheye lenses, which egocentric cameras need to keep the hands in frame, bend so much that the classic distortion model breaks down. They need a model built for them. The best known is from Kannala and Brandt (2006), a generic model for “conventional, wide-angle, and fish-eye lenses”. You will meet it in practice: Build AI’s dataset card states that its head camera is calibrated with this fisheye model, with four distortion coefficients. Meta’s Aria Gen 2 calibration docs list a Kannala–Brandt model for its eye-tracking cameras and a fisheye model with extra tangential and thin-prism terms for its RGB and SLAM cameras (SLAM: simultaneous localisation and mapping, the tracking that works out where the device is).
One rule follows from all this: intrinsics belong to a lens at one focus setting. Autofocus, optical image stabilisation and electronic stabilisation all change the mapping from frame to frame, so a measuring camera locks them or does without them. If someone turns a focus ring after calibration, the calibration is gone.
Extrinsics: where each sensor sits
Section titled “Extrinsics: where each sensor sits”Extrinsics describe where a sensor sits relative to something else: a rotation and a translation, often written R and t. On a capture rig, the ones that matter are:
- Camera to camera. The left and right cameras of a stereo pair. Depth comes straight from this, so it needs to be exact.
- Camera to IMU. The IMU measures motion in its own frame. Before its readings can help track the camera, the software has to know how the two are mounted relative to each other.
- Camera to the world or the robot. Sometimes needed to relate the rig to a fixed setup, a capture room or a robot.
On a rigid head unit, these are fixed by the mechanics and calibrated in the factory (and, as below, refined later). A wrist camera is different: its position relative to the head changes every time the wearer moves their arm. That is not a calibration at all; it has to be tracked, frame by frame.
There is a third quantity that is easy to forget: time. Each sensor’s timestamps are slightly offset from the others, and the offset has to be known as precisely as the position. Tools such as Kalibr treat it as part of the calibration: its camera–IMU calibration estimates the time offset alongside the rotation and translation, following Furgale, Rehder and Siegwart (2013), “Unified temporal and spatial calibration for multi-sensor systems”. Keeping clocks in step gets its own article in this series.
How calibration works
Section titled “How calibration works”The standard method is Zhang’s (2000). Show the camera a flat pattern whose geometry is known exactly, a checkerboard for example, at several orientations. Zhang’s paper needs only “a few (at least two) different orientations”. The method works in two steps:
- A closed-form first guess. Each view of a flat pattern gives a set of equations, and together they give a rough estimate of the intrinsics and of each board pose.
- Refinement. A non-linear optimisation adjusts every parameter together, distortion included, until the corners the model predicts land as close as possible to the corners detected in the images.
The gap between predicted and detected corners is the reprojection error. It is what the solver minimises, and it is the number every calibration tool reports.
Zhang’s method needs a minimum of two views; OpenCV’s tutorial says “For better results, we need at least 10 test patterns.” In practice, count is not enough: where the views are matters too. The mrcal authors’ study of capture choreography concludes that “Closeups are extremely important” and “Tilted views are good”. Every part of the image, especially the corners where distortion is strongest, should see the target, at different distances and tilts. Ten views all in the middle of the frame calibrate the middle of the frame.
A low reprojection error does not prove a good calibration. A model can fit its own images beautifully and still be wrong everywhere the target never went. mrcal, a calibration toolkit “originally built at NASA/JPL to generate the high-accuracy calibrations demanded by long-range stereo”, goes as far as stating that “reprojection error is not used as a gauge of calibration quality”; it computes the uncertainty of the calibration and cross-validates instead.
Calibration targets
Section titled “Calibration targets”- Checkerboards are the classic target, but the whole board must be visible, and a symmetric board can be read upside down: Kalibr’s camera–IMU guide warns that targets with symmetries can cause “flips in the target pose estimates”.
- Fiducial-marker boards put a uniquely coded marker in every square: ChArUco boards in OpenCV, or Kalibr’s Aprilgrid, built on AprilTag markers (Olson, 2011). Every corner knows which corner it is. Kalibr’s calibration-target docs list the two practical benefits: “partially visible calibration boards can be used”, and the “pose of the target is fully resolved (no flips)”. For wide lenses, where the board is often cut off by the edge of the frame, that matters.
Camera-to-IMU calibration
Section titled “Camera-to-IMU calibration”Here the target stays still and the rig moves. Kalibr’s camera–IMU guide gives the recipe in a few lines: move the rig in front of the target to “excite all IMU axes (rotation and translation)”, “keep the motion blur low” with short shutter times and good light, “avoid shocks” at the start and end, and “ensure low jitter timestamps in same clock”.
How people automate it
Section titled “How people automate it”One engineer waving a board can calibrate one camera well. Calibrating every unit off a production line, or every rig in a fleet, needs the expertise built into the process.
Guided capture
Section titled “Guided capture”The first step is to stop relying on the operator’s judgement about where to hold the board. AprilCal (Richardson, Strom and Olson, 2013) starts from the observation that good calibration “usually requires an expert intuition”. It uses the calibration so far to suggest where the target should go next, and checks whether the result meets the accuracy the user asked for. In the authors’ trials it “consistently yields more accurate camera calibrations than standard tools”.
Scripted stations
Section titled “Scripted stations”To the best of our knowledge, production lines use a robot arm or a motorised fixture to move the device, or the target, through the same scripted set of poses for every unit. Every camera gets the same coverage, so every calibration can be judged against the same standard. When a robot does the moving, its own known motion is also useful: the classic hand–eye problem, solving for the fixed transform between a robot’s gripper and a camera it carries, goes back to Tsai and Lenz (1989), and OpenCV’s calibrateHandEye implements it alongside four later methods.
Then the judgement can be automated too. Instead of an engineer eyeballing a reprojection error, the station can compute the calibration’s uncertainty, mrcal-style, and pass or fail the unit. Each unit’s calibration can then be stored against its serial number and travel with every recording that unit makes. Meta calibrates each pair of its research glasses: its calibration docs say “Each Aria Gen2 device is individually calibrated in the factory”. The open-hardware Ego-OSCAR stereo rig ships each device’s calibration “with every session it recorded, so that downstream users never fall back on nominal factory intrinsics.”
Calibration that keeps running
Section titled “Calibration that keeps running”Factory values do not stay true. Meta’s documentation for its Aria glasses is unusually candid about why: “Device calibration parameters can drift from their factory values”, and the first cause it lists is “mechanical deformation when worn by different users”. The other causes it lists are temperature, “accumulated wear from shocks or thermal cycles” and IMU bias drift: a head-worn rig flexes when it is put on, warms up while it runs, and takes knocks.
So the last stage of automation is online calibration: refining the calibration from the recording itself, every session. Aria’s processing services re-optimise the intrinsics and extrinsics of its SLAM cameras and IMUs per session, and Meta’s advice is blunt: “For any task requiring accurate geometric understanding of the world, use online calibration by default.” Open-source estimators such as OpenVINS (Geneva et al., 2020) include camera intrinsics, the camera-to-IMU transform and the camera-to-IMU time offset in what they calibrate.
Online calibration does not replace the factory. It needs a good starting point to refine, and the factory provides it.
What this means for a capture rig
Section titled “What this means for a capture rig”- Design for calibration. A rigid frame between the cameras and the IMU, and lenses that cannot be refocused, keep the calibration true for longer.
- Lock what moves. Autofocus off, stabilisation off, exposure under control.
- Calibrate every unit, with scripted coverage and an automated pass or fail, not a reprojection number someone glanced at. Units of one model do not share one set of numbers; the reasons are below.
- Ship the calibration with the data, versioned and tied to the serial number, so a pipeline never processes footage with the wrong unit’s numbers.
- Expect drift, and plan for per-session refinement.
Why every unit needs its own calibration
Section titled “Why every unit needs its own calibration”Each unit is assembled within tolerances, not to the exact drawing, and the calibration measures the result. Three parts of the pinhole model depend on how a unit was put together (textbook geometry):
- Focal length. The calibrated focal length in pixels is the distance from the lens to the sensor divided by the pixel pitch. A lens that is threaded into its holder and locked by hand, as small M12 lenses are, ends up slightly further in or out on each unit, and small travels matter: on the field guide’s 2.0 mm example lens, 8 µm of travel changes the focal length by 0.4% and moves an edge point by 2.6 px (Focus changes the intrinsics).
- Principal point. This is where the lens’s optical axis meets the sensor. A lens seated slightly off-centre over the sensor, or a sensor placed slightly off-centre under the lens, moves it by that offset divided by the pixel pitch. A sensor that is not quite square to the axis adds a small perspective tilt (Sensor tilt).
- Extrinsics. Every camera and IMU sits at a slightly different position and angle on each unit. Lee, Hanley and Bretl put it plainly: “It is commonly the case that engineering drawings dictate a reasonable initial guess for the (nominal) position and orientation of a set of sensors, but manufacturing tolerances place the sensors at different locations and orientations” (Lee, Hanley and Bretl, 2022).
Published rigs calibrate per unit for this reason. Ego-OSCAR: “Calibration is performed per device rather than per device model, which matters for a fleet of hand-assembled units whose optical alignment differs from unit to unit” (Palanisamy et al., 2026). RoboCap’s recovered focal lengths span 590–630 px across its fleet, and units that fail its per-parameter tolerance gates are reworked rather than shipped (Ali et al., 2026). The paper attributes that spread to calibrating its two lens types against one target sweep and does not split it further; the figure, and what a focal-length error does to metric depth, are on Nominal versus per-unit calibration.
Sources
Section titled “Sources”- Zhang, Z. (2000). A flexible new technique for camera calibration. IEEE Transactions on Pattern Analysis and Machine Intelligence, 22(11).
- Kannala, J. and Brandt, S. S. (2006). A generic camera model and calibration method for conventional, wide-angle, and fish-eye lenses. IEEE Transactions on Pattern Analysis and Machine Intelligence.
- Tsai, R. Y. and Lenz, R. K. (1989). A new technique for fully autonomous and efficient 3D robotics hand/eye calibration. IEEE Transactions on Robotics and Automation.
- Olson, E. (2011). AprilTag: A robust and flexible visual fiducial system. IEEE ICRA.
- Furgale, P., Rehder, J. and Siegwart, R. (2013). Unified temporal and spatial calibration for multi-sensor systems. IEEE/RSJ IROS.
- Richardson, A., Strom, J. and Olson, E. (2013). AprilCal: Assisted and repeatable camera calibration. IEEE/RSJ IROS.
- Geneva, P., Eckenhoff, K., Lee, W., Yang, Y. and Huang, G. (2020). OpenVINS: A research platform for visual-inertial estimation. IEEE ICRA.
- OpenCV camera calibration tutorial.
- Kalibr and its camera–IMU calibration guide, ETH Zurich ASL.
- mrcal, originally built at NASA/JPL.
- Meta Project Aria: Gen 2 device calibration and online calibration.
- mrcal: optimal choreography, on how capture choices affect calibration quality.
- Kalibr calibration targets (Aprilgrid and checkerboards).
- OpenCV calib3d module reference, including
calibrateHandEye. - Build AI. Egocentric-10K dataset card, Hugging Face (camera intrinsics section).
- Lee, J., Hanley, D. and Bretl, T. (2022). Extrinsic Calibration of Multiple Inertial Sensors from Arbitrary Trajectories. arXiv:2205.14724.
- Ali, Q. et al. (2026). RoboCap: A New Platform for Egocentric Robot Learning. arXiv:2610.07217.
- Palanisamy, S. et al. (2026). Ego-OSCAR: Egocentric Open source Stereo CAptuRe System. arXiv:2608.08285.