Developer Guide¶
This guide is for contributors and plugin authors who want to understand how MindSight works internally or extend it with new functionality. It covers the core architecture, each processing module, the plugin system, and the test suite.
-
High-level data flow, threading model, and module boundaries.
-
The per-frame data structure passed through every pipeline stage.
-
How detections are produced, filtered, and attached to FrameContext.
-
Face crop extraction, backend dispatch, ray geometry, and gaze target resolution.
-
Tracker lifecycle, the
update()contract, and built-in detector internals. -
CSV writer, heatmap generator, video overlay renderer, and dashboard hooks.
-
Discovery, registration, base classes, and the argument injection mechanism.
-
Step-by-step instructions for creating a plugin from scratch.
-
Worked examples for all four plugin types: Phenomena, Gaze, Object Detection, Data Collection.
-
Pipeline YAML: Loader Internals
How the YAML loader maps keys to argparse, resolves precedence, and flows plugin flags into
from_args. -
Running the test suite and writing tests for new code and plugins.