A lightweight and efficient real-time squat detection and repetition counter built using pose estimation and knee angle tracking. Designed for edge devices, this system provides live feedback on workout performance.
-
Pose Estimation
Detects human keypoints (hips, knees, ankles) using a lightweight model. -
Angle Calculation
Computes the knee joint angle using 3 keypoints:- Hip
- Knee
- Ankle
-
Rep Counting Logic
- Detects downward motion (squat)
- Detects upward motion (standing)
- Counts one full rep per cycle
-
Posture Analysis
- Ensures correct squat depth
- Flags improper form (e.g., shallow squats)
