# Geometry: fitted calibration and part poses No camera calibration was recorded and the rig no longer exists. These two files were recovered afterwards from objects of known size in every frame: the conveyor chain (103 mm wide) and the connector, matched against the manufacturer's CAD model of Harting 09 20 010 3101. That model matches the part closely but is not certified to be its exact reference. Both files are **fits, not measurements**. The method and its checks are in the paper's appendix; the scripts are `scripts/geometry/` in . The CAD model is not redistributed here. Download the 3D model of 09 20 010 3101 from Harting, export it as OBJ in millimetres, and apply the seating below. ## Coordinate frame One world frame for all three cameras: the belt frame of `camera_1`, in millimetres. `z` points up from the belt surface (`z = 0` on the belt), `y` points along the direction of travel. ## `calibration.json` ``` { "frame": "...", "focals_px": {"camera_0": 7270.0, "camera_1": 4650.0, "camera_2": 7270.0}, "cameras": { "camera_k": { "K": 3x3, "R": 3x3, "t": [3], # pinhole, full-resolution pixels (2456 x 1842) "centre_mm": [3], # camera centre in the world frame "belt_frame_rotation_deg", "belt_frame_scale", "pose_residual_mm", "yaw_residual_deg" # agreement with camera_1 (0 for camera_1) } } } ``` A world point `X` (mm) projects to pixel `(u, v)` by `x = K (R X + t)`, `(u, v) = x[:2] / x[2]`. No lens distortion is modelled. The principal point is the image centre. `camera_1`'s focal length is not well determined by the fit alone; 4 650 px is the value at which the three cameras' belt-plane scales agree (see the paper). ## `poses.json` Keyed by passage, one entry per passage (46). The key is `{item}/{label}/{condition}/{part_id}/{passage_id}`; for a normal passage, which has no `part_id` level on disk, `part_id` is `-`: - `connector/NOK/closed_shutter/2/exp_20250812_154632` is the folder of the same name; - `connector/OK/with_background_objects/-/exp_20250812_152432` is the folder `connector/OK/with_background_objects/exp_20250812_152432`. ``` { "x": float, # mm, across the belt, constant over the passage "yaw": float, # rad, about z, constant over the passage "y": {"27": float, ...}, # mm, along the belt, per global frame index "iou": {"camera_0": float, "camera_1": float, "camera_2": float}, "measured_disp": bool # false: belt advance not measured, nominal speed assumed } ``` The pose of the part at frame `t` maps CAD vertices `v` (mm, as in the OBJ file) to the world frame in two steps: 1. Seat the part, mating face down: `s = (v_x, -v_y, -v_z + max_z)`, where `max_z` is the largest `v_z` over the mesh. 2. Place it: `X = Rz(yaw) s + (x, y[t], 0)`. `iou` is the silhouette IoU between the rendered CAD and the object masks of each camera, averaged over the passage's frames (on subsampled frames, at reduced resolution). `camera_1` was used for the fit; `camera_0` and `camera_2` are an independent check of pose and calibration together. The three `with_background_objects` passages have `measured_disp: false`.