Skip to content

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.

Notifications You must be signed in to change notification settings

KunalMehra075/AI-Gym-Trainer-OpenCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AI GYM TRAINER OPENCV PROJECT ๐Ÿ’ช

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.

๐Ÿ–ผ Demo

Demo

How to run:

  1. Install the required dependencies, globlally or by creating a virtual environment:

    pip install -r requirements.txt
  2. Run the application:

    python virtualsGymTrainer.py

Project Description

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 ๐Ÿš€.

Features

  • Real-time repetition counting for exercises.
  • OpenCV and MediaPipe integration.
  • Calculates repetitions based on exercise angle.
  • Supports partial repetition counting.

Dependencies

  • OpenCV
  • MediaPipe
  • Numpy

Buy me a coffee ๐Ÿฅน:

Buy Me A Coffee

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! ๐Ÿคฉ

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages