A computer vision application that analyzes running gait and form in real-time or from video footage.
- Real-time pose detection - Track 33 body keypoints using MediaPipe
- Gait analysis - Analyze stride length, cadence, and body alignment
- Form feedback - Provide real-time feedback on running technique
- Video processing - Analyze pre-recorded running videos
- Data visualization - Generate charts and reports of running metrics
form-analyzer/
├── src/
│ ├── __init__.py
│ ├── pose_detector.py # Core pose detection logic
│ ├── gait_analyzer.py # Running form analysis
│ ├── video_processor.py # Video input/output handling
│ └── utils.py # Helper functions
├── tests/
│ └── __init__.py
├── data/ # Sample videos and output
├── requirements.txt
└── main.py # Main application entry point
- Create and activate virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate- Install dependencies:
pip install -r requirements.txtpython main.py --mode realtimepython main.py --mode video --input path/to/video.mp4The application follows a modular architecture:
- Input Layer: Camera feed or video file
- Pose Detection Layer: MediaPipe for real-time pose estimation
- Analysis Layer: Custom algorithms for gait analysis
- Output Layer: Real-time feedback and data visualization
- MediaPipe: Google's ML framework for pose detection
- OpenCV: Computer vision operations and video processing
- TensorFlow: Deep learning models for enhanced pose estimation
- NumPy/SciPy: Numerical computations and signal processing