1. Five-Target Engineering Decision Matrix
Choose your calibration pattern according to occlusion tolerance, field-of-view coverage, and target software stack:
| Target Pattern | Partial View | 180° Ambiguity | Primary Ecosystem | Best Use Case |
|---|---|---|---|---|
| Checkerboard | No (full board required) | None if odd×even squares | OpenCV / MATLAB / ROS | Quick benchtop monocular calibration |
| Symmetric Circles | No (full grid required) | Symmetric unless asymmetric count | OpenCV / Halcon | Slightly defocused or thermal/IR optics |
| Asymmetric Circles | No (full grid required) | None (staggered rows) | OpenCV findCirclesGrid | High-precision sub-pixel center estimation |
| ChArUco Board | Yes (corner interpolation) | None (unique ArUco IDs) | OpenCV >= 4.6 / Robotics | Wide-angle lenses, corners near image edge |
| ETH Kalibr AprilGrid | Yes (tag-level corners) | None (unique t36h11 IDs) | ETH Kalibr (VIO / multi-cam) | Camera-IMU & overlapping multi-camera rigs |
2. Three Geometric Details That Silently Break Pipelines
Most calibration failures happen before a single optimization iteration runs — caused by mismatching printed geometry against software conventions:
A. ChArUco OpenCV <4.6 vs >=4.6 (legacyPattern)
When squaresY is even, OpenCV 4.6+ flipped the top-left square from white (containing marker ID 0) to black. Passing the wrong board.setLegacyPattern() flag makes detectBoard() silently fail or scramble corner IDs. Movid exposes the toggle explicitly and cross-tests both even/odd modes in CI.
B. Asymmetric Circles Spacing Formula (s vs 2s vs √2·s)
In OpenCV CALIB_CB_ASYMMETRIC_GRID, coordinates are x = (2j + i%2)·s and y = i·s. The horizontal pitch between adjacent circles in the same row is 2·s, while the nearest diagonal center distance is √2·s. Passing 2·s as s doubles your focal length / translation scale!
C. ETH Kalibr AprilGrid (borderBits=2, Bottom-Left ID 0 & Float YAML)
Kalibr’s AprilGrid does NOT use standard 8×8 AprilTags: it renders 10×10 borderBits=2 t36h11 tags with symmetric black auxiliary corner squares of size g = tagSpacing·tagSize and places ID 0 at the bottom-left. Furthermore, Kalibr’s Python ConfigReader strictly requires tagSize and tagSpacing to parse as YAML floats (e.g. 0.02, 0.3) and tagCols/tagRows >= 3.
3. CI-Verified OpenCV 4.13 Pre-Flight Scripts
Always verify your printed board with a quick pre-flight detection script before collecting 50+ calibration poses:
import cv2
# ChArUco 7x6 board (OpenCV >= 4.6 default layout: legacyPattern=False)
img = cv2.imread("captured_charuco.png", cv2.IMREAD_GRAYSCALE)
dictionary = cv2.aruco.getPredefinedDictionary(cv2.aruco.DICT_4X4_50)
board = cv2.aruco.CharucoBoard((7, 6), 0.030, 0.022, dictionary)
board.setLegacyPattern(False) # Match printed board layout!
detector = cv2.aruco.CharucoDetector(board)
charuco_corners, charuco_ids, _, _ = detector.detectBoard(img)
n = 0 if charuco_ids is None else len(charuco_ids)
print(f"Detected {n} ChArUco inner corners")
import cv2
# Verify ETHZ-ASL Kalibr AprilGrid (t36h11 with borderBits=2)
img = cv2.imread("captured_kalibr.png", cv2.IMREAD_GRAYSCALE)
dictionary = cv2.aruco.getPredefinedDictionary(cv2.aruco.DICT_APRILTAG_36h11)
params = cv2.aruco.DetectorParameters()
params.markerBorderBits = 2 # Critical: Kalibr uses 2-bit black borders (10x10 cells)
detector = cv2.aruco.ArucoDetector(dictionary, params)
corners, ids, _ = detector.detectMarkers(img)
n = 0 if ids is None else len(ids)
print(f"Detected {n} Kalibr AprilGrid tags (borderBits=2)")
4. Five Calibration Failure Debugging SOPs
Use this diagnostic checklist when reprojection error exceeds 0.5 px or detection drops frames:
Paper flex / non-planar mounting or printer anisotropic X/Y scaling (e.g. 99.1% X vs 100.4% Y).
Bond print flat onto rigid aluminum/foamboard/glass and measure Movid’s X and Y check rulers separately.
Mismatch in legacyPattern on even squaresY, or markerLength too close to squareLength leaving thin white contrast.
Verify top-left cell matches setLegacyPattern() and keep markerLength around 70%–75% of squareLength.
Integer YAML values (e.g. tagSize: 1 instead of 1.0) or printed standard borderBits=1 AprilTags.
Export directly from Movid’s Kalibr AprilGrid mode so borderBits=2, corner blocks, and float YAML stay synchronized.
Symmetric even×even or odd×odd square dimensions produce ambiguous origin corners.
Use asymmetric parity (e.g. 9×6 inner corners -> 10×7 squares) or upgrade to ChArUco / Kalibr AprilGrid.
All captured views keep the full board centered with shallow tilt angles.
Switch to ChArUco or Kalibr AprilGrid so partial boards can touch all four corners of the frame at 30°–45° tilt.
Open Ready-to-Print Calibration Presets
Kalibr AprilGrid 6×6 (20 mm, 0.30)
Vector PDF + strict float aprilgrid.yaml verified against Kalibr ConfigReader.
ChArUco 7×5 (30 mm / 22 mm)
Partial-view occlusion-tolerant board with OpenCV 4.13 CharucoDetector snippet.
Asymmetric Circles 4×11 (s = 20 mm)
Exact 2s horizontal / √2·s diagonal readout with findCirclesGrid snippet.