Skip to content

๐ŸŒฟ Desktop app that monitors your posture via webcam and shows system-wide overlay alerts when you slouch. Built with Python, OpenCV, and MediaPipe.

Notifications You must be signed in to change notification settings

marisombra-dev/Posture-Guardian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Posture Guardian Desktop App ๐ŸŒฟ

A gentle companion that watches your posture and sends system-wide overlay alerts, no matter what you're doing.

Installation

Step 1: Install Python

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

Step 2: Install Dependencies

Open Terminal (Mac/Linux) or Command Prompt (Windows) and run:

pip install -r requirements.txt

Or install individually:

pip install opencv-python mediapipe numpy Pillow

Step 3: Run the App

python posture_guardian.py

How to Use

  1. Launch the app - A window will open showing your webcam feed
  2. Calibrate - Sit with perfect posture and click "Calibrate Good Posture"
  3. Wait 3 seconds - The app captures your good posture
  4. Work freely - The app now monitors you in the background
  5. Get alerts - When you slouch, a red overlay appears over EVERYTHING

Features

  • โœจ 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

Settings

  • 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

Tips

  • 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

Troubleshooting

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

๐Ÿ’ซ Let's connect

About

๐ŸŒฟ Desktop app that monitors your posture via webcam and shows system-wide overlay alerts when you slouch. Built with Python, OpenCV, and MediaPipe.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages