Git Product home page Git Product logo

jacob-pitsenberger / upper-body-workout-assistant-with-mediapipe Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

This is a Python project that uses the Mediapipe library to perform pose recognition and count repetitions for various upper body workouts. The application utilizes a webcam to capture real-time video and tracks the user's body movements to count repetitions for specific exercises.

License: University of Illinois/NCSA Open Source License

Python 100.00%

upper-body-workout-assistant-with-mediapipe's Introduction

Upper Body Workouts Pose Recognition

This is a Python project that uses the Mediapipe library to perform pose recognition and count repetitions for various upper body workouts. The application utilizes a webcam to capture real-time video and tracks the user's body movements to count repetitions for specific exercises.

Requirements

Before running the application, make sure you have the following installed:

  • Python 3.x
  • OpenCV
  • Mediapipe

You can install the required libraries using pip:

pip install opencv-python mediapipe

Usage

  1. Clone the repository or download the project files.

  2. Open a terminal or command prompt and navigate to the project directory.

  3. Run the main.py script to start the application:

python main.py

The application will open a new window displaying the webcam feed with pose landmarks and the tracked exercise. It will also show the count of repetitions and the current stage (up or down) of the exercise.

By default, the application will track "bicep curls." To track other exercises, modify the workouts list in the main.py file:

workouts = ["bicep_curls", "shoulder_press", "dumbbell_raises", "triceps_extensions"]

Replace the workout name at the desired index to track a different exercise.

To exit the application, press the 'q' key.

Supported Upper Body Workouts

Bicep Curls: Tracks the number of bicep curls performed.

Shoulder Press: Tracks the number of shoulder press movements.

Dumbbell Raises: Tracks the number of dumbbell raises.

Triceps Extensions: Tracks the number of triceps extensions.

How It Works

The application uses the Mediapipe library to detect and track the user's upper body pose. It then calculates the angles between relevant keypoints to determine the exercise movement. The program updates the repetition count based on the specific exercise angle ranges.

Known Issues

Certain lighting conditions or body positions may affect pose recognition accuracy. Contributing If you find any issues or have suggestions for improvement, feel free to open an issue or submit a pull request.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

upper-body-workout-assistant-with-mediapipe's People

Contributors

jacob-pitsenberger avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.