--- name: video-tracker version: 1.4.0 description: > Turns an experiment video into reproducible physics data: CSRT tracking, FFT, consistency probes. metadata: version: 1.4.0 author: Jiaming Shi license: MIT entry_point: python run.py python_requires: '>=3.10' --- # video-tracker Extracts coordinates from a video, derives spectra, and probes physical consistency. It never modifies the raw video and requires every parameter to come from the config. - **Stage:** `ingest` · **Sandbox:** no · **Dependencies:** `numpy`, `opencv-contrib-python-headless` (`matplotlib` optional for figures) ## Quick Execution Run this exact form — do not read the source tree: ```bash python run.py --root --action probe -- --config cfg.json ``` - `probe` verifies the config and the first frame before any tracking starts. - Then `track` → `fft` → `report`; `physics` adds the consistency probes. - Outputs land in `/process/vt_output/` (plus the gate JSON). ## When to use - A recorded experiment must yield position/angle over time. - A periodic signal must be recovered from tracked coordinates (FFT). - Tracked data must be checked for physical plausibility. ## When NOT to use - Low-contrast, heavily occluded or deformable footage — expect failure. - The measurement is available directly from the instrument. ## Actions | `--action` | Does | Extra arguments | | --- | --- | --- | | `probe` | Validate config + first frame | `--config ` | | `track` | Track the declared objects | `--config ` | | `fft` | Amplitude spectrum of the tracked series | `--config ` | | `physics` | Physical-consistency probes | `--config --family ` | | `report` | Markdown report from the products | `--config ` | | `demo` | Run the bundled demo | `--config ` | ## Hard constraints - **Never modify the raw video.** All products go under `process/`. - **No interactive input.** ROI, FPS, scale and parameters all come from the config. - **Deterministic.** Same video + same config → identical bytes. ## Outputs - `/process/vt_output/