CAMERA PROCESSING — EVIDENCE AND METHODS Portfolio collection: 2026-10-25, Asia/Taipei PROJECT AND OWNERSHIP Jerry Chang confirmed that he built and maintained all five repositories in the Perception Stack family. This page concerns camera-processing: the raw detector interface, shared camera geometry, normalized measurements, tracking, occupancy, predictive grids, risk, observations and multi-camera merging. YOLO11n detector architecture/weights, ROS 2 and RViz are upstream components. SOURCE REVISIONS Supplied replay: perception-stack fa1d765d90dfe5648662087342ccfb6cb938f36a Supplied camera runtime: ef5a3a5c3537684b3131f96a78dc00c5bc22db92 Reviewed superproject: 6b85ca7d04895da9c022061bf52bf23f01605f2d Reviewed camera repository: ae35de70b4bf5339788d02e9cb9bac0892deaec3 The camera diff ef5a3a5..ae35de7 contains README and docs/media changes only. The relevant root common/, tools/recorded_bag_regression/ and docker/camera-ml/ paths have no diff from fa1d765 to the reviewed root revision. This collection read source and re-evaluated retained recordings; it did not rerun ROS or execute the detector. Fresh integration checks, if any, are documented by the parent Perception Stack page separately. RECORDING CONTEXT Bag: ros2-all-2025-05-16-14-37-43 Recorded vessel transit: Anping harbour channel, Tainan, May 16, 2025 Supplied material collection: October 21–22, 2026 Regression scenario: anping-channel-2025-05-16 Regression window: bag time 585–715 seconds (130 seconds) Video window: bag time 600–720 seconds (120 seconds, 10 fps, silent) Still images: approximately bag time 650 seconds These are recorded-bag replays, not live October vessel operation. CAMERA INPUT The vessel recording contains a stitched 180-degree panorama. The stack has no calibrated model for that stitching. A cylindrical approximation produces a forward 90-degree virtual pinhole view. Cached YOLO11n boat boxes and the virtual camera intrinsics are replayed at their original image stamps. The replay helper adds a fixed 50 ms delay before publishing each cached frame; this is not a measured live detector latency. It also fills an obstacle mask from the boxes. It does not publish a trained water segmentation mask. The general runtime supports water masks; the displayed replay does not validate that segmenter or real-time model inference. The supplied virtual_camera.py has a 1102 x 1021 virtual camera model, with fx = fy = 550.622528902468 px. Exported camera media uses even image heights for video encoding. Black borders and stitching artifacts are retained. IMPLEMENTATION CLAIMS AND SOURCE REFERENCES Paths below are relative to the camera-processing repository unless noted. 1. Shared waterline geometry: camera_processor/camera_processor/camera_geometry.py CameraModel: raw K/D or rectified P, distortion handling, pixel rays. WaterlineErrorModel (line 246): random and correlated error components. measure_waterline (line 372): mount/attitude/water-plane intersection, truncated-box handling, range and bearing standard deviations. r = H / tan(alpha); angular sensitivity is H / sin(alpha)^2, approximately r^2 / H for distant waterlines. This is the implemented model, not a new empirical accuracy measurement. 2. World tracking and correlated covariance: camera_processor/camera_processor/tracking.py CameraMultiObjectTracker (line 94): constant-velocity Kalman filter, Mahalanobis-gated Hungarian association, timestamp-based lifetime. _make_estimate (line 449): add (1 - 1/hits) times bias covariance to published position covariance; major eigenvalue defines scalar std-dev. polar_covariance (line 581): line-of-sight and cross-range covariance. camera_tracker.py and measurement_contract.py enforce frame contracts. config/camera_pipeline.yaml configures 3 confirmations within 5 frames, 1 second coasting, and 20 m maximum detection range standard deviation. 3. Occupancy and synchronization: camera_occupancy_grid.py and occupancy_utils.py: waterline contacts, unknown-region semantics, stamp-ordered updates, temporal decay. Default max_projection_stddev_m is 3; the README describes about 40 m reach under usv_demo_2026_08. This is not a universal hard range limit. camera_observation_adapter.py: bounded timestamp caches for risk/grids. camera_track_merger.py and camera_occupancy_merger.py: multi-camera alignment and duplicate/grid merging; one camera is shown in this replay. 4. Recorded replay and metric definitions, relative to perception-stack: tools/recorded_bag_regression/replay_detections.py tools/recorded_bag_regression/recording.py tools/recorded_bag_regression/metrics.py, camera_radar_pairs at line 127 tools/recorded_bag_regression/truth.py validation/recorded_bags/anping_channel_2025_05_16.json docs/recorded-bag-regression.md MEASURED RESULTS The supplied data are perception-stack/data/regression/run{1,2}/recording.npz and report.json within the project-materials collection. Run 1 Run 2 Matched camera-radar pairs 523 536 Pairs beyond +/-3 sigma 0 2 Share beyond +/-3 sigma 0% 0.3731343284% Camera observations 567 580 Repeated camera stamps 0 0 PARTIAL camera observations 0 0 STALE camera observations 1 1 Camera HIGH/CRITICAL entries 52 55 Exactly one camera track at AIS 91.7098445596% 92.0918367347% AIS-scored camera batches 386 392 Pooled camera-radar residuals: 2 / 1,059 = 0.1888574127% beyond 3 sigma. The page rounds this to 0.19%; the source chart rounded it to 0.2%. The documented earlier review baseline was 8.6%. That historical number is from the root regression documentation and supplied chart, not independently recomputed here from a pre-fix recording. METRIC INTERPRETATION Every third fused batch is sampled. A pair must already include both camera and radar in fusion. Source batches are at/before that stamp within 0.3 s (camera) and 1.5 s (radar); positions are advanced by their published velocity. The radar centre is moved toward the ego by half its projected extent to approximate the near edge, then compared along the radar line of sight. The denominator is sqrt(camera line-of-sight variance + 2^2 + half_extent^2/3). This includes camera covariance, radar range noise and extent uncertainty. The diagnostic is conditional on fusion matches; it is not detector recall, precision, absolute depth error or an independent calibration benchmark. Adjacent observations are temporally correlated. The normal curve on the histogram is a reference, not a goodness-of-fit claim. Risk values count every published HIGH or CRITICAL entry. They do not count independent objects, unique incidents, collisions, or a per-encounter false positive rate. The broader replay review identifies remaining false alarms on camera-only fused tracks; the count alone does not label every entry. The AIS-track share counts batches with exactly one track within 15 m of the interpolated yacht position. Sparse AIS reports occur about 30 s apart; the truth helper only interpolates between reports at most 45 s apart. The camera measures a waterline contact while radar measures a return centre. The range chart therefore compares different sensing references. AIS shares on this page were read from the supplied reports, not recomputed in this camera audit. VERIFICATION PERFORMED ON OCTOBER 25 scripts/build_camera_media.py loads the retained NPZ files and invokes the current repository's camera_radar_pairs, alarm_counts, observation_metrics. Every camera result exactly matches the retained report. The script also retains individual residuals and checks their sample counts and exceedance fractions against the original metric. It writes camera-metrics.json and matched-residuals.csv, and redraws the residual histogram. This is re-analysis of existing records. No new detector or ROS replay is claimed by this page's data audit. MEDIA PROVENANCE AND TRANSFORMATIONS cover.webp / cover-small.webp <- camera-processing/images/camera_hero.png virtual-camera.webp <- camera-processing/images/camera_virtual_yolo.png panorama.webp <- camera-processing/images/camera_panorama_yolo.jpg birdseye.webp <- camera-processing/images/birdseye_camera_light.png range.webp <- camera-processing/metrics/camera_range_light.png All five are full-frame WebP conversions; cover-small is resized to 960 px. Responsive delivery adds 640 px cover-phone, 800/1280 px panorama previews, and an 800 px virtual-camera-small poster. Originals remain the zoom targets. WebP delivery variants retain quality 88. AVIF delivery variants use quality 75 and 4:4:4 colour sampling to preserve detection labels and diagram text. The mobile hero offers 640/960 px AVIF, while the panorama offers 800/1280/ 2560 px AVIF with matching WebP fallbacks. Video posters use the 960 px hero and 800 px camera AVIF. The site's existing data-poster observer loads posters near their viewport or when replay details open. Native poster attributes have no srcset; these fixed sizes cover the replay display. No new JavaScript was added for this change. residuals.svg/png/webp <- retained regression NPZ, generated by the media script. residuals-mobile.svg/png/webp contains the same samples and bins in a taller layout with fewer tick labels for mobile screens. camera-pipeline.mp4 <- camera-processing/videos/camera_hero.mp4 H.264, CRF 26, 1600 x 528, 10 fps, 120 seconds, fast-start, no audio. virtual-camera.mp4 <- camera-processing/videos/camera_virtual_yolo.mp4 H.264, CRF 26, 800 x 740, 10 fps, 120 seconds, fast-start, no audio. Neither video is cropped, accelerated or generated imagery. Both use native browser controls, no autoplay, and preload=none on the portfolio page. KNOWN LIMITS AND NEXT WORK The approximate panorama geometry still permits metre-scale range drift. The pipeline carries this uncertainty but does not correct that geometry. The two repeats cover one harbour window and the same cached detector input. No detector precision/recall benchmark, unseen-condition validation, trained water-segmentation evaluation or multi-camera field replay is claimed. Calibrated camera/stitching geometry, a tuned maritime detector, and tests across weather, light, waves and sensor timing are the next useful evidence. RELATED CASE STUDIES /projects/perception-stack/ — complete system and replay regression /projects/sensor-fusion/ — association, occupancy and remaining alarms /projects/lidar-processing/ — geometric occupancy and tracks /projects/radar-processing/ — complementary range and Doppler evidence