How the Webcam Exercise Counter Works
AnyTool Webcam Exercise Counter is a camera-based rep counter that runs entirely in the browser with no machine-learning pose model. Each frame of the webcam is drawn to a tiny 96×72 in-memory canvas, converted to luma, and compared pixel-by-pixel to the previous frame — the classic "frame differencing" technique. Only pixels inside a user-positioned region of interest are counted, and only absolute brightness changes above a small noise floor contribute, giving a per-pixel motion-energy value that is independent of region size. That signal is smoothed with an exponential moving average and normalised against a slow adaptive baseline (the resting/background energy). A repetition is detected as one full motion cycle: the normalised signal rises above a sensitivity-set trigger threshold and then falls back below a lower release threshold (hysteresis), with a refractory window of a few hundred milliseconds blocking double-counts. The tool reports reps, reps per minute, elapsed time and completed sets, and supports a rep goal plus an optional AMRAP set timer.
- Frame differencing on a tiny 96×72 offscreen canvas — no ML pose model
- Per-pixel luma change above a noise floor, summed inside a user-positioned region
- Rise-above-then-fall-below one trigger threshold equals one rep (hysteresis)
- Refractory window (~320 ms) prevents double-counting jitter
- Goal, AMRAP set timer, reps-per-minute and set tracking
