Quickstart: CLI¶
This guide walks through MindSight's command-line interface with progressive examples, from basic usage to full-featured tracking runs.
1. Basic Usage¶
Webcam (live):
Video file:
Single image:
Press Q to quit webcam or video playback. For images, press any key to close the window.
2. Adding Object Detection Classes¶
Filter detections to specific classes:
Or blacklist classes you want to ignore:
3. Enabling Phenomena¶
Enable a single phenomenon:
Enable all phenomena at once:
Add temporal confirmation windows to reduce false positives:
4. Saving Output¶
Save annotated video:
Log per-frame events to CSV:
Post-run summary CSV:
Generate gaze heatmaps:
Anonymize faces in the output video:
Generate charts:
5. Choosing a Gaze Backend¶
The default backend is MobileGaze (--mgaze-model). To use an alternative:
Gaze-LLE:
6. Using Visual Prompts¶
Supply a visual prompt file and a YOLOE model for open-vocabulary detection:
7. Tuning Gaze Parameters¶
Ray length (multiplier for the rendered gaze ray):
Adaptive snap (snap the ray endpoint to the nearest object):
Gaze lock (hold gaze target for a dwell duration):
Gaze cone (widen the gaze hit-test angle, in degrees):
8. Pipeline Configs¶
Load a full pipeline configuration from a YAML file:
Pipeline configs let you define sources, detection settings, phenomena, gaze parameters, and outputs in a single file. For batch-processing whole studies, point --project at a project directory (see Your First Project) and use --preflight to check the project is ready before running.
9. Full Example¶
A complete command combining several features: