Inspiration

There are many softwares that help people on their fitness journeys, through various methods such as nutrition, exercise, or statistics, but rarely do they focus on proper form. We decided to work on a software that could track key points on the human body to ensure proper form is achieved for the best results.

What it does

TrueForm tracks up to 12 points across the body and uses live information between those coordinates to identify anomalies in form. It provides feedback, but also counts repititions and calories burned for further motivation.

How We Built It

We used OpenCV, the world’s largest computer vision library, to access the laptop’s camera. We also used Google Gemini’s MediaPipe open framework to identify the points, specifically the MediaPipe Pose Detection Landmarker. From there, we used both NumPy and Math libraries to calculate the angles between vectors. Finally, we used Python to code all the logic together and started a website using HTML and CSS.

Challenges we ran into

Some challenges we ran into was identifying the ideal position for a pushup or exercise, and then adjusting the the angles accordingly. It was difficult because the angles changed depending on the perspective of the camera. We added a threshold to allow different angles to solve the problem.

Accomplishments that we're proud of

We're proud of successfully creating a functional fitness app that accurately counts push-ups and sit-ups using real-time movement detection. We managed to combine OpenCV and MediaPipe effectively, achieving reliable motion tracking and feedback.

What we learned

While building TrueForm, we learned how to integrate OpenCV and MediaPipe to analyze human motion in real-time. We learned human movement detection, computer vision, and how to refine our project to accurately count exercises like push-ups and sit-ups.

What's next for TrueForm

We are hoping to keep developing using the expansive potential of this software. For instance, it could be implemented in offices or schools to ensure proper posture while working, or implemented in gyms as a virtual workout assistant. The possibilities are endless.

Built With

Share this project:

Updates