Skip to content

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.

Notifications You must be signed in to change notification settings

terminalai/PushUpCounter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%