Skip to content

luandersonalvesdev/workout-with-body-tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workouts with Body Tracking

The workouts-with-body-tracking project is designed to enhance the experience of physical exercise through the use of body tracking techniques. Each directory in this repository contains specific README.md information about configurations and scripts related to body tracking, facilitating the integration of these tools into your fitness routine.

Squat Counter Preview

GIF 📹

db_er

Repository Structure

workouts-with-body-tracking/
── exercise_one/
│ ├── README.md
│ ├── exercise_one.py
│ └── ...
├── exercise_two/
│ ├── README.md
│ ├── exercise_two.py
│ └── ...
└── ...

Cada pasta contém os seguintes elementos:

How to use

To use a script, see the README.md file in the corresponding exercise folder. README.md will provide instructions for what it is for and step-by-step instructions on how to configure and run the script.

Get started

LINUX Make sure you have Python 3.3 or later and pip installed on your machine
  • To check if you have python and pip
    python3 --version && pip --version
  • The output should be similar to something like this
    Python 3.8.10
    pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
    

  1. Make a clone of the repository and enter it

    git clone git@github.com:luandersonalvesdev/workout-with-body-tracking.git
    cd workout-with-body-tracking
  2. Create a separate virtual environment with venv

    python3 -m venv environment_name
  3. Activate the virtual environment

    source environment_name/bin/activate
  4. Install dependencies from dev-requirements.txt

    pip install -r dev-requirements.txt
  5. Ready! Just run any script

    python exercise_one/exercise_one.py
WINDOWS
  1. Close all CMDs that are open.

  2. Download and install Python 3.8.10.

  3. Go to the project directory and create a development environment.

    python -m venv nome_do_ambiente
  4. Activate the development environment:

    .\nome_do_ambiente\Scripts\activate
  5. Install opencv and mediapipe separately:

    pip install opencv-python
    pip install mediapipe
  6. Execute:

    python squat_counter\squat_counter.py

Contributions

This project welcomes contributions from the community. If you want to add a new script not included or enhance an existing script, feel free to fork this repository, make the necessary changes, and submit a pull request.


This project is maintained by Luanderson Alves and contributors. To contact me, send an email to [luaoderson@gmail.com] or you can also find me on Linkedin.

About

Some body tracking scripts for home workouts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages