A real-time webcam posture monitor designed for desk and laptop setups. It tracks head height drop and forward hunching, triggering an audio alert when poor posture is maintained.
- Desk Posture Monitoring: Tracks head vertical drop (
Nose Y) and forward lean relative to camera. - Interactive Calibration: 3-second live camera countdown to calibrate upright posture.
- Visual Overlay: Displays baseline and slouch threshold lines on the video feed.
- Audio Alert: Plays a warning sound when slouching lasts longer than 1.5 seconds.
git clone https://github.com/jayesh-cmd/posture-fix.git
cd posture-fix
pip install -r requirements.txtRun the detector:
python main.py- Sit up straight during the initial 3-second calibration window.
- If your head drops past the red threshold line, the alarm will sound.
- Controls:
c: Recalibrate baseline posture.q: Quit the application.