Skip to main content

Module detector

Module detector 

Source
Expand description

Phase 5 / V5 — multi-object detector pipeline (grid head + NMS).

Honest scope: pure-Rust, fixed-buffer path over a configurable cell grid. Not a neural YOLO head — scores each cell by channel mean / edge energy (same family as CpuReferenceVision) then applies class-agnostic NMS. Replace the cell scorer with a P64 encoder when weights land; keep the pipeline + VisualModel surface.

Structs§

GridMultiObjectDetector
Configurable multi-object grid detector.

Constants§

CLASS_HIGH_EDGE
CLASS_LOW_CONTRAST
CLASS_MOSTLY_BLUE
CLASS_MOSTLY_GREEN
CLASS_MOSTLY_RED
Stable class IRIs (shared taxonomy with cpu_reference).
MAX_GRID
Maximum grid dimension (NxN cells before NMS). 8×8 = 64 = MAX_DETECTIONS.

Functions§

sample_frame_indices
Deterministic frame indices for video sampling (cold path helper). Writes every stride-th frame into out, starting at 0. Returns count written. Overflow: if more indices than out.len(), only first out.len() are kept (deterministic).