MovidMovid
ENGINEERING GUIDE · CALIBRATION7 min read

Camera Calibration Targets: Checkerboard, Circles, ChArUco & Kalibr AprilGrid

Accurate camera intrinsics and multi-sensor extrinsics depend as much on target geometry and print metrology as on the optimizer. This guide compares all five targets generated by Movid and documents the five failure modes that break calibration pipelines.

1. Five-Target Engineering Decision Matrix

Choose your calibration pattern according to occlusion tolerance, field-of-view coverage, and target software stack:

Target PatternPartial View180° AmbiguityPrimary EcosystemBest Use Case
CheckerboardNo (full board required)None if odd×even squaresOpenCV / MATLAB / ROSQuick benchtop monocular calibration
Symmetric CirclesNo (full grid required)Symmetric unless asymmetric countOpenCV / HalconSlightly defocused or thermal/IR optics
Asymmetric CirclesNo (full grid required)None (staggered rows)OpenCV findCirclesGridHigh-precision sub-pixel center estimation
ChArUco BoardYes (corner interpolation)None (unique ArUco IDs)OpenCV >= 4.6 / RoboticsWide-angle lenses, corners near image edge
ETH Kalibr AprilGridYes (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:

ChArUco 6×4 · legacyPattern=False (OpenCV >= 4.6)
ETH Kalibr AprilGrid 4×3 · borderBits=2 · ID 0 bottom-left

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:

OpenCV 4.13 — ChArUco Inner Corner Verification
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")
OpenCV 4.13 — Kalibr AprilGrid (borderBits=2) Verification
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:

1
Reprojection error > 1.0 px despite crisp focus

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.

2
ChArUco finds markers but 0 inner corners

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.

3
Kalibr crashes on aprilgrid.yaml or detects 0 tags

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.

4
Checkerboard pose flips 180° between frames

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.

5
Distortion coefficients diverge at image edges

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