A gentle companion that watches your posture and sends system-wide overlay alerts, no matter what you're doing.
If you don't have Python installed:
- Windows: Download from https://www.python.org/downloads/ (get Python 3.10 or newer)
- Mac: Python usually comes pre-installed, or use
brew install python3 - Linux: Usually pre-installed, or use
sudo apt install python3 python3-pip
Open Terminal (Mac/Linux) or Command Prompt (Windows) and run:
pip install -r requirements.txtOr install individually:
pip install opencv-python mediapipe numpy Pillowpython posture_guardian.py- Launch the app - A window will open showing your webcam feed
- Calibrate - Sit with perfect posture and click "Calibrate Good Posture"
- Wait 3 seconds - The app captures your good posture
- Work freely - The app now monitors you in the background
- Get alerts - When you slouch, a red overlay appears over EVERYTHING
- โจ System-wide alerts - Overlay appears over any application
- ๐ฏ Smart detection - Uses AI to track your shoulders, neck, and head position
- โ๏ธ Adjustable sensitivity - Make it stricter or more lenient
- โฑ๏ธ Custom alert duration - Control how long warnings stay visible
- ๐ช Mirror view - Camera feed is flipped for natural viewing
- Alert Sensitivity: Lower numbers = stricter posture requirements (5-20ยฐ) default = 8ยฐ
- Alert Duration: How long the warning stays visible (1-10 seconds) default = 3 seconds
- Keep the app window open (you can minimize it after calibration)
- Calibrate in your normal working position
- Adjust sensitivity if you get too many or too few alerts
- The app works best with good lighting
Camera not working?
- Make sure no other app is using your webcam
- Grant camera permissions when prompted
- Try unplugging/replugging external webcams
No alerts appearing?
- Make sure you clicked "Calibrate Good Posture" first
- Try lowering the sensitivity setting
- Check that you're slouching noticeably
App won't start?
- Make sure all dependencies are installed
- Check that you have Python 3.10 or newer:
python --version
Made with ๐ for your wellbeing