An AI-powered Virtual Gym Trainer ๐๏ธ using OpenCV and MediaPipe that counts your exercise repetitions (e.g., bicep curls) by analyzing your form. It provides feedback by counting full reps when the full angle is reached and partial reps (e.g., 0.5) for halfway movements.
-
Install the required dependencies, globlally or by creating a virtual environment:
pip install -r requirements.txt
-
Run the application:
python virtualsGymTrainer.py
This project utilizes computer vision techniques ๐ to track body movements during exercises. It uses OpenCV for video processing ๐น and MediaPipe for pose estimation, allowing it to identify key body points and calculate angles. This enables the application to:
- Count exercise repetitions in real-time โฑ๏ธ.
- Differentiate between full and partial repetitions.
- Provide a foundation for more advanced form analysis in the future ๐.
- Real-time repetition counting for exercises.
- OpenCV and MediaPipe integration.
- Calculates repetitions based on exercise angle.
- Supports partial repetition counting.
- OpenCV
- MediaPipe
- Numpy
Contributions are welcome! ๐ If you have any ideas for improvements, feel free to submit a pull request.
Follow me for more exciting projects like this! ๐คฉ