Real Time Posture Analysis using OpenCV and MediaPipe
Explore the docs »
Report Bug
·
Request Feature
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?listenThe 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.
Kaustubh Doval - kaustubhdoval@gmail.com