An open API service indexing awesome lists of open source software.

https://github.com/luandersonalvesdev/workout-with-body-tracking

Some body tracking scripts for home workouts
https://github.com/luandersonalvesdev/workout-with-body-tracking

body-tracking mediapipe opencv python workout

Last synced: about 1 month ago
JSON representation

Some body tracking scripts for home workouts

Awesome Lists containing this project

README

        

# 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](./assets/squat_counter_preview.gif)

## 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`
```bash
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

```bash
git clone [email protected]:luandersonalvesdev/workout-with-body-tracking.git
cd workout-with-body-tracking
```

2. Create a separate virtual environment with `venv`

```bash
python3 -m venv environment_name
```

3. Activate the virtual environment

```bash
source environment_name/bin/activate
```

4. Install dependencies from `dev-requirements.txt`
```bash
pip install -r dev-requirements.txt
```

6. Ready! Just run any script
```bash
python exercise_one/exercise_one.py
```

WINDOWS

1. Close all CMDs that are open.

2. Download and install [Python 3.8.10](https://www.python.org/downloads/release/python-3810/).

3. Go to the project directory and create a development environment.
```bash
python -m venv nome_do_ambiente
```

4. Activate the development environment:
```bash
.\nome_do_ambiente\Scripts\activate
```

5. Install `opencv` and `mediapipe` separately:

```bash
pip install opencv-python
```
```bash
pip install mediapipe
```

6. Execute:
```bash
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 **[[email protected]]** or you can also find me on [Linkedin](https://www.linkedin.com/in/luandersonalvesdev/).*