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