A mobile app that analyzes sprint form using AI-powered pose estimation, providing real-time feedback on body angles and performance scoring.
- Frontend: Flutter mobile app (iOS/Android)
- Backend: Python Flask server with MediaPipe pose estimation
- Analysis: Real-time biomechanics analysis with scoring
- Record or upload sprint videos
- AI-powered pose estimation using MediaPipe
- Real-time angle analysis (knee, elbow, shin, armpit)
- Sprint detection and timing
- Comprehensive scoring system (0-100)
- Detailed feedback and improvement tips
- Beautiful, modern UI
-
Install Python dependencies:
cd backend pip install -r requirements.txt -
Start the Flask server:
python app.py
The server will run on
http://localhost:5000
-
Install Flutter (if not already installed):
- Follow the official Flutter installation guide for your platform
- Ensure Flutter is in your PATH
-
Navigate to mobile directory:
cd mobile -
Install dependencies:
flutter pub get
-
Run the app:
flutter run
GET /health- Health checkPOST /analyze- Analyze video (basic results)POST /analyze/detailed- Analyze video (detailed results)
The app evaluates sprint form based on:
- Knee Angle (25%): Optimal drive phase angle 90-170°
- Elbow Angle (20%): 90° elbow angle for efficient arm swing
- Shin Angle (20%): Ground contact angle 35-55°
- Armpit Angle (15%): Trunk position and forward lean
- Consistency (20%): Form consistency across frames
- Start the backend server (Python Flask)
- Launch the Flutter app
- Record or upload a sprint video
- View detailed analysis results with scores and feedback
- Flask web framework
- MediaPipe for pose estimation
- OpenCV for video processing
- NumPy for calculations
- Flutter framework
- Camera integration
- File picker for video uploads
- HTTP client for API communication
- Material Design 3 UI
TrackForm AI (app)/
├── backend/
│ ├── app.py # Flask server
│ ├── pose_analyzer.py # MediaPipe pose analysis
│ ├── scoring.py # Scoring algorithm
│ └── requirements.txt # Python dependencies
├── mobile/
│ ├── lib/
│ │ ├── main.dart # App entry point
│ │ ├── models/ # Data models
│ │ ├── screens/ # UI screens
│ │ └── services/ # API service
│ └── pubspec.yaml # Flutter dependencies
└── README.md
- Backend runs on localhost:5000 for MVP
- Videos processed synchronously
- MediaPipe provides fast, accurate pose detection
- Flutter camera plugin enables cross-platform recording
- Add async video processing queue
- Implement user accounts and history
- Add more detailed biomechanics analysis
- Deploy to cloud infrastructure
- Add real-time analysis during recording