Skip to content

This code records the amount of bicep curls, pushups, and squats

Notifications You must be signed in to change notification settings

ethanwongca/AIPersonalTrainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI Personal Trainer

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

Objectives

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.

Libraries and Languages

OpenCV, MediaPipe, NumPy, and Python 3

Different Projects

Bicep Curls

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
Screenshot 2023-06-01 at 4 27 48 PM
This is my arm going down
Screenshot 2023-06-01 at 4 28 47 PM

Push Up Counter

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
Screenshot 2023-06-01 at 5 26 35 PM
This is me in the down state of a pushup
Screenshot 2023-06-01 at 5 26 56 PM

Squat Counter

A squat counter could be recreated by readjusting the angles again, but this time including the landmarks of the hip, knee, and ankle.

Squat_down Squat Up

Anyways enjoy the project!

About

This code records the amount of bicep curls, pushups, and squats

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published