Inspiration
This Application allows users to do their regular exercise with the help of an AI fitness trainer at home. This application is beneficial to some Users to get solved their various health problems such as being overweight or any other health problems.
What it does
We build an AI fitness trainer that can help you perform exercise positions seamlessly by keeping counts of proper and improper positions. The application will also have provisions to perform exercises, along with appropriate feedback.
How we built it
The critical components of the application include the following:
- Calculate angles such as the shoulder-hip, hip-knee, and knee-ankle lines with their corresponding verticals.
- We maintain various states to display appropriate feedback and distinguish between proper and improper exercise.
- Compute inactivity during which the respective counters are reset.
Challenges we ran into
Calculating the offset angle was a bit time-consuming for us. For instance, to calculate the offset angle, we shall find the angle between the nose and the shoulders, with the coordinates of the nose being the reference point.
Accomplishments that we're proud of
We have showcased how to build a simple application to analyze exercise positions using MediaPipe’s Pose solution. The application assumes that the person should maintain a good view of the camera.
What we learned
We learned to use Mediapipe for calculating the body postures and the angles between them.
What's next for Hack Fitness Trainer
One of the critical aspects of performing a proper squat is ensuring that the knees do not collapse during the squat. This check can be made possible only when the person is in front of the camera. This, in turn, requires obtaining a good set of thresholds and calculating various angles across the torso.
Therefore, it is always better to have multiple camera views at your disposal such that we can delve more into such aspects, which in turn can be improved during further experiments.

Log in or sign up for Devpost to join the conversation.