AI posture coach for shoulder raise analysis.
rep_counter.py- counts shoulder raise repetitions by tracking smoothed shoulder elevation over time.latency_profiler.py- profiles MediaPipe latency across resolutions (480p, 360p, 240p).test_on_videos.pynow supports--count-reps/-rand JSON summary output includesrep_count.
Analyze a video and count reps:
venv/bin/python test_on_videos.py data/test_videos/good_form.mp4 -rProfile latency:
venv/bin/python latency_profiler.py data/test_videos/good_form.mp4 --resolutions 480,360,240 --frames 120Generate JSON output:
venv/bin/python test_on_videos.py data/test_videos/good_form.mp4 -jvenv/bin/python -m pytest -qvenv/bin/python test_on_videos.py data/test_videos/good_form.mp4 -rvenv/bin/python latency_profiler.py data/test_videos/good_form.mp4 --resolutions 480,360,240 --frames 120