This is a Computer Vision application developed in Python, which tracks the posture whilst doing a squatting movement.
- 📝 | Table of Contents
- 📸 | Demo
- 🧰 | Languages & Tools
- 🏁 | Getting Started
- 🫂 | Credits and Acknowledgments
- ⚖ | License
The snippet below shows the application in action. The application tracks the posture of the person in the video, and displays the results in real time. It displays the following information:
- The number of repetitions completed
- Depth angle of the squat
- The current stage of the movement
- The tilt position of the shoulders
- The stance of the feet
The application was built using Python, alongside the use of OpenCV and Media Pipe libraries.
These instructions will get you a copy of the project up and running on your local machine.
- Python 3.11 or higher
- The following dependencies:
numpy == 1.23.5opencv-python == 4.9.0mediapipe == 0.10.9
- Download and install Python
- Clone the repository
- Open the repository using the IDE of your choice
- Install the required dependencies using
pip install -r requirements.txt - Configure the
video_pathvariable in themain.pyfile to the path of the video you want to use. (Use0if you want to use your webcam) - Run the
main.pyfile
The video used for the demo and in the repository is not mine, and serves to demonstrate how the application works. The original video was taken from here.
This repository is under the MIT license.
