Skip to content

opencv2-posture-corrector leverages OpenCV's powerful computer vision capabilities and MediaPipe's pose detection to create an intelligent posture monitoring system. Running discreetly in your system tray, it provides real-time feedback and gentle reminders when your posture needs attention.

License

Notifications You must be signed in to change notification settings

wtbates99/opencv2-posture-corrector

Repository files navigation

opencv2-posture-corrector

A real-time posture monitoring application that helps prevent poor posture while working at your computer. The application runs in your system tray and uses computer vision to analyze your posture through your webcam.

Interface Preview

System Tray Icon

Toolbar Icon System tray icon indicating posture status

Menu Options

Toolbar Menu Available options in the toolbar menu

Notifications

Notification Poor posture alert notification

Features

  • System tray integration for unobtrusive monitoring
  • Real-time posture scoring from 0-100
  • Visual feedback through color-coded score display
  • Configurable tracking intervals (continuous to 4-hour intervals)
  • Optional video window showing posture analysis
  • Automatic notifications when poor posture is detected
  • Cross-platform support (Windows, macOS, Linux)
  • Privacy-focused: All processing happens locally on your machine

Technical Stack

The application leverages:

  • MediaPipe - Pose detection and landmark tracking
  • OpenCV - Video processing and visualization
  • PyQt6 - System tray interface
  • Platform-specific notification systems

Getting Started

Windows Guide

Requires python3.10

Can use py -3.10 -m pip install -r requirements.txt

Make sure that you have the Visual C++ Redistributable

If still having issues, may need to py -3.10 -m pip install msvc-runtime

Linux Dependencies

Required packages:

sudo apt install -y \
    libxcb1 \
    libxcb-xinerama0 \
    libxcb-cursor0 \
    libxkbcommon-x11-0 \
    libxcb-render0 \
    libxcb-render-util0

Optional packages for additional features:

sudo apt install -y \
    qt6-base-dev \
    qt6-wayland \
    libqt5x11extras5

General Dependencies

  1. Install dependencies:

    pip install -r requirements.txt
  2. Launch the application:

    python src/main.py
  3. Basic Usage:

    • Click the tray icon to access the menu
    • Select "Start Tracking" to begin monitoring
    • Enable video window (optional) to view pose detection
    • Select your preferred tracking interval
    • Monitor your posture score (0-100) via the tray icon

The application will provide notifications when posture correction is needed, helping maintain proper ergonomics throughout your workday.

Note: Optional database logging is available for posture data tracking, which will support future features including posture history and modeling.

Privacy Statement

Your privacy is our priority. All video processing occurs locally on your machine, and no video data is ever stored or transmitted over the internet.

About

opencv2-posture-corrector leverages OpenCV's powerful computer vision capabilities and MediaPipe's pose detection to create an intelligent posture monitoring system. Running discreetly in your system tray, it provides real-time feedback and gentle reminders when your posture needs attention.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages