This code records the number of bicep curls, pushups and squats. Videos of the code working are provided in each file with the .mov file
The objective of this project was to learn some computer vision, with OpenCV and Mediapipe, along with applying some linear algebra to calculate the angles of specific exercises.
OpenCV, MediaPipe, NumPy, and Python 3
In this project, I used OpenCV to record the amount of bicep curls I could do; in this project, the stage of my arm and the count is shown.
This is my arm going up
This is my arm going down
By readjusting the angles, it is easy to make a pushup counter using OpenCV and Numpy. Here are screenshots of the results.
This is me in an upstate of a pushup
This is me in the down state of a pushup
A squat counter could be recreated by readjusting the angles again, but this time including the landmarks of the hip, knee, and ankle.
Anyways enjoy the project!