Work · Barbell Lab
image-tracker
Bar path, velocity in m/s and per-rep metrics from an ordinary phone video of a squat.
Velocity-based training devices are accurate but expensive, and phone apps lock your lifting data behind subscriptions. The physics is simple: a fixed camera, a known length in frame (a competition plate is 450 mm) and decent tracking.
image-tracker takes an MP4 of a squat, follows the bar frame by frame, and gives you:
- Bar path drawn over your video
- Velocity in m/s, calibrated from the plate diameter
- Rep breakdown — eccentric/concentric phases, depth, peak and mean concentric velocity
- CSV/JSON export for your spreadsheet or your coach
It’s a Rust workspace: a dependency-free core crate plus an egui desktop app, with template (ZNCC) and colour tracking. No special hardware — a tripod, your phone and ffmpeg.
- Rust
- egui
- ffmpeg