Skip to content

kaustubhdoval/posture-buddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation


Posture Buddy

Real Time Posture Analysis using OpenCV and MediaPipe
Explore the docs »

Report Bug · Request Feature

About The Project

Python Script to provide Real Time Posture Analysis using OpenCV and MediaPipe. Learn more at my Website

For V1: Currently the program only detects BAD/GOOD posture, if Posture is BAD for over a particular time (7 seconds by default) a function called sendWarning() is called. The condition of posture is determined by evaluating two angles - the neck-shoulder and torso-shoulder angles.

I made the project to receieve a TCP Stream from a Raspberry Pi with a camera module. If you want to do the same you can run this script on your RPi:

libcamera-vid -t 0 --width 640 --height 480 --framerate 12 --codec h264 -o - | ffmpeg -i - -c:v copy -f mpegts -listen_timeout 10000 tcp://<RASPBERRY_IP>:5000?listen

The camera stream does not need to be particularly high quality, just ensure that there is enough adequate lighting to assist the CV Models to perform the best they can.

Built With

Python OpenCV Mediapipe Raspberry Pi

Contact

Kaustubh Doval - kaustubhdoval@gmail.com

(back to top)

About

Perform Real Time Posture Analysis of a TCP Stream

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages