This directory contains the desktop version of PosturePro built with Python, OpenCV, and MediaPipe.
- Python 3.8 or higher
- Webcam
- Operating System: Windows/Linux/macOS
- Navigate to the Python app directory
cd python-app
- Create a virtual environment (recommended)
python -m venv venv
# For Windows
venv\Scripts\activate
# For Unix or MacOS
source venv/bin/activate
- Install Required Packages
pip install -r requirements.txt
- Start the application
python posture_detection.py
- Using the Application
- Allow camera access when prompted
- Position yourself so that your upper body is visible in the frame
- The application will begin tracking your posture automatically
- Follow the on-screen instructions for optimal posture detection
If you encounter any issues:
- Camera not detected
- Ensure your webcam is properly connected
- Check if other applications are using the camera
- Try running the script with administrator privileges
- Dependencies Issues
pip install --upgrade pip
pip install -r requirements.txt --force-reinstall
- Recommended to use in well-lit conditions
- Keep your face and upper body clearly visible
- Maintain a reasonable distance from the camera (approximately arm's length)
For more details about the project, visit the main README.