Skip to main content

Module vision

Module vision 

Source
Expand description

Guest-screen vision: capture, classify, motion, cadence. Everything between pixels and verdicts lives here; commands orchestrates (run flows, SSH waits, reporting composition) and never touches a frame directly.

Layers, innermost first: screen_knn (embeddings + cluster centers) → classify_screen (nearest center to ScreenState) → ScreenSampler (frames, motion, phase clocks on a SamplingProfile) → capture_frame/take_screenshot (frame acquisition). report_sample stays with the orchestrator: it composes vision with ActivityMonitor, and composition belongs there.

Structs§

SamplingProfile
Cadence policy: answers “how often”, owns no state, no I/O, no ticker. The loops tick on SamplingProfile::tick and gate each layer on its own due-check — one scheduler, three rates, zero alternate capture paths.