terminalai / PushUpCounter

A simple program using Mediapipe and OpenCV to count the number of Push Ups done. The main goal is to ensure proper form while doing Push Ups so as to achieve maximum effect.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Push Up Counter

A simple program using Mediapipe and OpenCV to count the number of Push-Ups done. The main goal is to ensure proper form while doing Push-Ups so as to achieve maximum effect.

You may use base.py's BasePoseDetector in your personal projects, changing the variables as necessary. The PoseDetector class in pose.py is using mediapipe's Pose module. Refer to the image below for the different joints in the body that are detected.

alt text

Instructions to Run

To set-up the project, go to the current directory and run the following command:

$ pip install -r requirements.txt

Following this, to run, simply run counter.py via the following function:

$ python counter.py

Or

$ py counter.py

Depending on the situation.

About

A simple program using Mediapipe and OpenCV to count the number of Push Ups done. The main goal is to ensure proper form while doing Push Ups so as to achieve maximum effect.


Languages

Language:Python 100.0%