Skip to content

Gates First: Acceptance Limits for a Calibration Cell, and What Happened to Them

The first step of the case study produced no code. It produced a table of limits that every later result would be held to, written before any result existed. The general checks behind such a table are on Judging a Calibration; this page is about choosing limits for one production cell and about what the first eleven cameras did to them.

Gate Limit Kind
Mean reprojection error per lens, on images held out of the fit at most 0.5 px, and the same limit inside the outer band of the lens, 80 to 95 degrees off axis fail
Stereo translation against the board design within 1 mm fail
Stereo rotation against the design above 2 degrees warn only

In our experience, the clause “and the same limit inside the outer band” was the most valuable sentence of the project. The first real calibrations had a centre at 0.3 px and an edge at 1 to 2 px; a whole-image mean would have passed them. The edge gate forced the re-planned path, the corner refinement and the second solver described on The solve.

Gate as first written What the cameras did to it
Edge band at most 0.5 px, fail Met on most cameras and not on all. Two cameras with a soft lens stayed above it on a second recording. The person responsible for the product decided the edge cannot be guaranteed on every lens, and that such a camera ships with its measured calibration. The gate became a note to look again
A red FAIL on screen Replaced by an amber CHECK with one line of reason. A verdict word alarmed the technician about cameras that would ship, and verdict words are kept out of everything a customer receives
Frame rate equals 60 A floor: at least 50 frames and 500 IMU samples per second in the report, and the robot is not started below 58 frames per second. A difference of one frame per second is not a fault
Repeatability: two halves of one run agree Kept as a report line, no longer read as the uncertainty: halves that share their poses agreed to 0.006 mm where a bootstrap over stills gave 0.06 mm
Edge band for every camera Not applied to a lens that does not reach it. A lens of about 136 degrees has no corners at 80 degrees; the gate is listed as not applicable for that model instead of passing on no data
Gate Limit as run The failure behind it
Corner quality: share of predicted corners the image did not confirm, per lens at most 35 % A soft lens lost a third of its corners and the solve ran on what was left
The lens matches the camera model: the calibrated focal length against the model’s lens within the model’s tolerance (8 to 15 px) Models with different lenses share a case, and the serial number’s format did not always tell them apart
The expected robot program ran, once from the joint log The robot ran two other programs and the station reported a clean run
Largest gap between IMU samples at most 5 ms Samples lost at frame boundaries

Most limits in the first table said “set from the first units”. In our experience, that was the right call for all of them, and three numbers from the first cameras did the setting:

  • held-out mean error of 0.20 to 0.36 px on a camera with good lenses, so 0.5 px separates good from soft without touching good cameras;
  • a baseline between 59.6 and 60.4 mm across eleven cameras with a bootstrap uncertainty of 0.06 mm each, so the 1 mm limit is far from both the spread and the noise;
  • 13 to 27 % of predicted corners dropped by refinement on good lenses and 36 to 39 % on soft ones, which put the corner-quality limit at 35 %.
  • Inputs: a description of the camera and the cell, and the gates you already know you want.
  • How to check: every limit that is a number has a reason or says what will set it; the table separates what rejects a recording, a camera and the cell; two calibrations are compared in pixels; the held-out error is there, split by angle.
I am setting up a robot cell that calibrates stereo cameras with a built-in IMU, one camera after
another. Before any calibration work, write the acceptance gates the results will be judged by. I
want this first because every later step (the robot path, the solver, the report) is tuned against
these gates, and a gate invented after seeing the results is not a gate.
About the camera: [two global-shutter sensors of 1920 x 1200 pixels and one IMU soldered to one PCB;
one wide-angle lens per sensor, about 190 degrees; design baseline 60 mm, optical axes parallel; 60
frames and 600 IMU samples per second on one clock].
About the cell: [a robot arm holds the camera and stops at about 100 poses in front of a fixed
AprilGrid target, one still per stop, then swings it continuously for the camera-to-IMU part; one
recording per camera; target throughput one camera every few minutes].
Fixed by me, do not change:
- [Mean reprojection error per lens at most 0.5 px: the mean of the per-corner distance in pixels
(not RMS), on images held out of the fit, with no statistical rejection after the fit. The same
limit must also hold in the outer band of the lens (80 to 95 degrees off axis), so a good centre
cannot hide bad edges.]
- [Stereo translation within 1 mm of the PCB design: the length of the difference between the
measured and the design translation vectors.]
- [Stereo rotation: warn above 2 degrees from design, do not fail.]
Propose the remaining gates as one table: gate, what is measured, limit, fail or warn, what input it
needs, why it exists. Cover: the recording itself (dropped frames, IMU samples per frame,
timestamps, frame rate), corner coverage of the image including the edges, error on images that were
held out of the fit, error by angle from the axis, a check against known geometry (the target's real
size), camera to IMU (rotation, position, time offset, residuals), repeatability between two runs of
the same camera, and cycle time.
Rules for the table:
- Where a limit cannot be justified before the first cameras are measured, write "set from the first
units" and say what measurement will set it. Do not invent a number: a guessed limit either fails
good cameras or passes bad ones, and nobody remembers it was a guess.
- Compare two calibrations in pixels across the image (project the same rays through both), never
parameter by parameter: lens parameters trade off against each other, so two good fits can have
different numbers.
- Say for each gate what a failure rejects: the RECORDING (record again), the CAMERA (it does not
ship as it is), or the CELL (something in the station is wrong and no camera should be judged
until it is fixed). Say whether it stops (fail) or only asks a person to look (warn), and keep the
two apart.
- Bin sizes, the share of images held out and the size of the first lot are procedure, not limits:
choose them, and list them as choices I should confirm.
- Mark the gates that must exist on day one (at most twelve). The rest can wait for the first units.
- Add a short list of the inputs I must supply before the gates can run (for example the design
positions of the sensors and the IMU).
Finish with the three gates you are least sure of and what would settle each.

A fresh AI session with no knowledge of our cell got an earlier wording of this prompt. It returned 44 gates in seven groups, 29 of them with the limit deferred to the first units together with the measurement that would set it. It separated on its own what rejects a recording, a camera and the cell, which the prompt now asks for. Its three least-certain gates were the corner count in the outer band of the lens, the IMU’s position, and the check against known geometry. Those were, in that order, the problem that took the most work on the real cell, the result we still trust least, and a check we had to design twice.

Its notes also found the prompt’s weak points: the fixed gates did not say mean or RMS, fitted or held-out images, vector or baseline length. The wording above answers them.