Loading repository dataβ¦
Loading repository dataβ¦
NYN-05 / repository
ποΈ AI Fitness Monitor - Real-time pose detection for exercise analysis. Android app streams camera to Flask server using MediaPipe for instant squat counting & jump height measurement with skeleton overlay feedback. Built with Python, Kotlin, CameraX & OpenCV.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Real-time AI-powered fitness monitoring system using pose estimation
Features β’ Installation β’ Usage β’ API β’ Architecture β’ Contributing
AI Fitness Monitor is a comprehensive fitness tracking system that uses computer vision and machine learning to analyze exercise form in real-time. The system consists of a Python server with pose detection capabilities and an Android mobile application for user interaction.
SIH_SPORTS_proj/
βββ server/ # Python backend server
β βββ src/
β β βββ analyzers/ # Exercise analysis modules
β β β βββ squat_analyzer.py
β β β βββ jump_analyzer.py
β β βββ api/ # Flask API routes
β β β βββ routes.py
β β βββ utils/ # Utility modules
β β βββ camera_manager.py
β β βββ frame_processor.py
β βββ config/ # Configuration files
β β βββ settings.py
β βββ templates/ # HTML templates
β βββ tests/ # Unit & integration tests
β βββ requirements.txt # Python dependencies
β βββ run.py # Main entry point
β
βββ android_app/ # Android mobile application
β βββ app/src/main/
β β βββ java/ # Kotlin source code
β β βββ res/ # Android resources
β βββ build.gradle.kts # Gradle build config
β βββ USER_MANUAL.md # User documentation
β
βββ builds/ # Pre-built APK files
β βββ FitnessMonitor.apk
β
βββ docs/ # Additional documentation
β βββ API.md # API reference
β βββ ARCHITECTURE.md # System architecture
β
βββ README.md # This file
Clone the repository
git clone https://github.com/your-repo/ai-fitness-monitor.git
cd ai-fitness-monitor
Create virtual environment
python -m venv venv
# Windows
venv\Scripts\activate
# Linux/macOS
source venv/bin/activate
Install dependencies
cd server
pip install -r requirements.txt
Run the server
python run.py
The server will start at http://0.0.0.0:5000
Install pre-built APK
builds/FitnessMonitor.apk to your Android deviceOr build from source
cd android_app
./gradlew assembleDebug
| Method | Endpoint | Description |
|---|---|---|
| GET | / | Web interface |
| GET | /squat_feed | MJPEG squat analysis stream |
| GET | /jump_feed | MJPEG jump analysis stream |
| POST | /process_frame | Process mobile camera frame |
| POST | /reset_analyzer | Reset analyzer state |
Request:
{
"image": "base64_encoded_jpeg",
"type": "squat" | "jump"
}
Response:
{
"image": "base64_encoded_result",
"count": 5,
"stage": "UP",
"feedback": "Good form!"
}
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β Android ββββββΆβ Flask ββββββΆβ MediaPipe β
β App βββββββ Server βββββββ Pose β
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β β β
β HTTP/WebSocket β Pose Detection β
β β β
βΌ βΌ βΌ
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β Camera β β OpenCV β β Numpy β
β Frame β β Processing β β Arrays β
βββββββββββββββ βββββββββββββββ βββββββββββββββ
cd server
# Run all tests
pytest
# Run with coverage
pytest --cov=src tests/
# Run specific test file
pytest tests/test_analyzers.py -v
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
Made with β€οΈ for SIH 2025