Webcam-first coarse attention primitives for Linux gaze experiments
- Python 100%
- calibrate.py: interactive 9-target calibration with profile generation - Collects per-target samples, computes offsets/means/std - Saves/loads JSON profiles, supports --preview crosshair display - hud.py: rich OpenCV diagnostic overlay - AOI grid, gaze dot with crosshair, confidence bar - Event ticker, face status, coords, FPS counter - Fully configurable HUDConfig - run_session.py: preview mode now uses HUDRenderer instead of bare text - Tests: 32 total (calibrate + HUD + session + x11 + primitives + capture) |
||
|---|---|---|
| src/webcam_gaze_poc | ||
| tests | ||
| .gitignore | ||
| pyproject.toml | ||
| README.md | ||
Webcam Gaze POC
Local-only Linux webcam gaze experiment.
Initial scope: coarse attention primitives plus a detector-neutral capture adapter and pure session runner. No persistence by default.
Current modules:
webcam_gaze_poc.primitives: AOIs, observations, attention events, engine state.webcam_gaze_poc.capture: fake-detector-friendly adapter plus optional MediaPipe FaceLandmarker factory.webcam_gaze_poc.session: frame-source/sampler/engine loop with an event sink.
Run tests:
python -m pytest
Real webcam capture still needs optional dependencies (opencv-python, mediapipe) and the local FaceLandmarker model file.