ROMtrack
A browser app that counts rehabilitation repetitions, measures range of motion, and flags compensations from a webcam. The video stays on the device.
Report from an automated end-to-end test / synthetic pose inputFrom input to output.
- 01Webcam / video
- 02Pose landmarks
- 03Joint angle + filtering
- 04Repetition counter
- 05Physio report
Can a laptop camera give a physiotherapist an objective log of exercises done at home?
The approach
MediaPipe Pose runs in the browser. Each exercise maps landmarks to one joint angle plus compensation checks. A One Euro filter and a hysteresis counter turn that angle stream into repetitions with peak angle, range of motion, and quality. After the first real webcam session logged a phantom 178° repetition on re-entering the frame, a gate now resets the pipeline after tracking gaps and drops physically implausible jumps.
Scope & limitations
Angles from 2D video are approximate and depend on camera position. The counting logic is benchmarked on synthetic trajectories; agreement with a goniometer and accuracy on real patients have not been validated. ROMtrack is a support tool, not a medical device.