Inspiration
Correct posture is the key to the overall well-being of a person. It keeps us healthy, energetic, and more active. People who make it a habit to maintain good posture are less likely to get back pain, migraine, and related issues. Good posture is a sign of solid interpersonal discipline. It also helps leave a good impression. However, maintaining a correct posture can be difficult as we often forget it.
What it does
Our System detects a person from a perfect side view and measures the neck and torso inclination to some reference axis. By monitoring the inclination angle when the person bends below a certain threshold angle. Other features include measuring the time of a particular posture.
Our system is deployed in a Raspberry Pi and it can be used portably as the Flask server runs on WiFi and can be connected by any smartphone or
How we built it
We built it using Python, OpenCV, and Mediapipe.
Challenges we ran into
We faced a lot of difficulty in calculating the angle of the neck and torso. It was taking time to figure out the correct way but finally, we did it.
Accomplishments that we're proud of
As one can see, our system is able to detect the angles of the neck and torso and display the results in the live video. the system runs on a Raspberry Pi 4.

What we learned
We learned a lot of things like using OpenCV with Flask and also learned to convert a mathematical formula to direct python code. We used linear algebra to calculate the angles of the neck and torso. It was fun writing the code again and again and finally getting it correct.
What's next for Body Posture Analyzer
We will try to implement a way to send a detailed analysis to the user every 30 mins. The report would contain the total time and the bad and good posture time.
Built With
- flask
- mediapipe
- opencv
- python
- raspberry-pi


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