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
- Host: GitHub
- URL: https://github.com/luandersonalvesdev/workout-with-body-tracking
- Owner: luandersonalvesdev
- Created: 2024-01-22T18:26:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-27T21:01:27.000Z (about 1 year ago)
- Last Synced: 2025-03-27T16:21:46.883Z (about 2 months ago)
- Topics: body-tracking, mediapipe, opencv, python, workout
- Language: Python
- Homepage:
- Size: 10.1 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 πΉ
## 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/).*