RepCoach is an AI-powered exercise tracking web application that uses computer vision and machine learning to analyze human posture in real time, count repetitions, and provide feedback for exercises using a webcam.
This project acts as a virtual AI fitness coach, helping users perform exercises with correct form at home.
- 📷 Real-time webcam-based pose detection
- 🧠 AI-powered exercise recognition
- 🔢 Automatic repetition counting
- 📊 Live exercise statistics & feedback
- 🌐 Web-based interface
- 🔄 Real-time updates using Socket.IO
- HTML
- CSS
- JavaScript
- Python
- Flask
- Flask-SocketIO
- OpenCV
- MediaPipe (Pose Estimation)
- NumPy
- Scikit-learn (Random Forest)
RepCoach/
├── app.py # Main Flask application
├── pose_model.py # Pose detection & exercise logic
├── pose2.py / pose3.py # Model training & experiments
├── exercise_feedback_system_fixed.py
│
├── templates/
│ └── index.html # Web UI
│
├── static/
│ ├── script.js # Frontend logic
│ └── style.css # Styling
│
├── exercise_data.csv # Dataset (optional)
├── .gitignore # Ignored files
├── README.md # Project documentation
⚠️ Note: Generated files like.pkl,.pyc, and__pycache__are intentionally ignored.
git clone https://github.com/nocapgaurav/RepCoach.git
cd RepCoachpython3 -m venv venv
source venv/bin/activate # macOS / Linuxpip install flask flask-socketio opencv-python mediapipe numpy scikit-learnpython app.pyhttp://127.0.0.1:5000
Allow camera access when prompted.
- 💪 Bicep Curls
- 🦵 Squats
- 🤸 Lateral Raises
The system tracks:
- Repetitions
- Exercise state
- Live feedback
- Accuracy metrics
- Personal fitness tracking
- Home workout assistance
- AI & Computer Vision learning
- Final-year / portfolio project
Gaurav Pandit
AI & Software Engineering Enthusiast
GitHub: https://github.com/nocapgaurav
- MediaPipe by Google
- OpenCV community
- Flask & Python open-source ecosystem