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.
- 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
Since the dist/ folder is not included, you need to compile the application yourself:
pip install -r requirements.txtpyinstaller --onefile --add-data "app:app" run.py🔧 Make sure you have
pyinstallerinstalled (pip install pyinstaller).
Navigate to the dist/ folder created by PyInstaller and run the generated run file.
app/
└── app.py, templates/, static/ <- Flask + posture logic
run.py <- Main launcher script
requirements.txt
README.md
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.
This project is for educational and personal use.