Skip to content

AmarKoonar/posture_corrector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Posture Correction Application

This is a lightweight desktop application that uses MediaPipe and a built-in GUI to monitor and help correct your posture using your webcam. The app is built with Python, Flask, and PyWebview and must be compiled locally using PyInstaller.

Features

  • Real-time posture detection using webcam
  • Alerts for poor posture
  • Simple web-based UI embedded in a desktop window
  • Built with Python, Flask, MediaPipe, and PyWebview
  • Can be compiled into a single executable

How to Run

Since the dist/ folder is not included, you need to compile the application yourself:

1. Install dependencies

pip install -r requirements.txt

2. Build the executable

pyinstaller --onefile --add-data "app:app" run.py

🔧 Make sure you have pyinstaller installed (pip install pyinstaller).

3. Run the app

Navigate to the dist/ folder created by PyInstaller and run the generated run file.

Built With

File Structure

 app/
 └── app.py, templates/, static/  <- Flask + posture logic
run.py         <- Main launcher script
requirements.txt
README.md

🧠 How It Works

MediaPipe tracks posture via key body points using your webcam. Flask serves the posture visualization and logic, and PyWebview wraps it into a native desktop app.

📝 License

This project is for educational and personal use.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors