Skip to content
Back to skills

Video Tracker

ASecurity

Turns an experiment video into reproducible physics data: CSRT tracking, FFT, consistency probes.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agentspythongobash

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned November 18, 2026

npx -y skills add JiamingShi-JsPhys/chelate-shell --skill video-tracker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Video Tracker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Video Tracker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiamingshi-jsphys-video-tracker/badge)](https://www.skillsdirectory.com/skills/jiamingshi-jsphys-video-tracker)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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 <WS> --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 `<WS>/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 <cfg>` |
| `track` | Track the declared objects | `--config <cfg>` |
| `fft` | Amplitude spectrum of the tracked series | `--config <cfg>` |
| `physics` | Physical-consistency probes | `--config <cfg> --family <fam>` |
| `report` | Markdown report from the products | `--config <cfg>` |
| `demo` | Run the bundled demo | `--config <cfg>` |

## 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

- `<WS>/process/vt_output/<video>_tracking.csv` — `frame, time_s, x_px, y_px, confidence, reinit` (+ `x_cm, y_cm` when a scale is set).
- `<video>_summary.json`, `<video>_fft.json`, `<video>_spectra.png`, `<video>_report.md`, `<video>_physics.json`, `batch_summary.json`.
- `<WS>/process/gates/video-tracker_<ts>.json` — the gate result.

## Failure handling

- A missing or unreadable video raises a clear error and exits `2`.
- An ROI outside the first frame fails at init, before tracking.
- A per-object tracker loss is recorded, not fatal; a failed re-acquire is recorded as `reinit = False`.

## Limitations

- **Experimental / unstable** — treat every run as preliminary.
- CSRT accuracy is target-specific; sub-pixel and optical-flow support are optional.
- CPU-bound: a 1080p 60 fps clip with two objects can take several minutes.

## Delivering results

This skill writes intermediates to `process/`. `results/` is filled only by
`python cli.py pipeline` after a human approved that exact plan.

- Do not copy a skill's output into `results/` yourself, and do not do it
  because the user asked for a shortcut: say that only `cli.py pipeline`
  writes there, offer to run the pipeline instead, and if they still insist,
  tell them `cli.py audit` will report the file as unapproved.
- Never set `CHELATE_UNSAFE_AUTO_APPROVE=1` (formerly `CHELATE_HUMAN`) and never run `cli.py approve` on the user's
  behalf. If an approval is needed, ask the human to issue it in their own
  terminal.
- Before telling the user a deliverable is ready — and after any write you
  make under `results/` — run `python cli.py audit --root <ws>`. Exit 1 means
  files there have no approval behind them: report that and name them, do not
  describe the state as delivered.

Files in this skill

  • .gitignore325 B
  • AUTHORS.md98 B
  • CHANGELOG.md4.8 KB
  • LICENSE1 KB
  • README.md1.6 KB
  • README_zh.md1.1 KB
  • SKILL.md3 KB
  • assets/example_output/demo_fft.json1.3 KB
  • assets/example_output/demo_summary.json453 B
  • assets/example_output/demo_tracking.csv6.3 KB
  • config.yaml3.7 KB
  • manifest.json481 B
  • requirements.txt296 B
  • run.py2.1 KB
  • scripts/__init__.py58 B
  • scripts/config.py11.1 KB
  • scripts/data_export.py3.8 KB
  • scripts/errors.py483 B
  • scripts/fft_analyzer.py8.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.