ScoutAI is a computer vision-based analytics system for tracking football drills. It detects the ball, cones, player movement, speed, body lean, and ball touches using YOLO and MediaPipe.
- Real-time Speed Tracking: Measures velocity using calibrated cone distances.
- Body Lean Analysis: Uses MediaPipe to detect agility angles and posture.
- Touch Detection: Detects contact between the player’s feet and the ball.
- Player Heatmap Visualization: Tracks all player positions and overlays a heatmap on a stadium image to show where the player spends most time.
Create a virtual environment (you can choose your own name for it):
python -m venv venv_<your_custom_name>
Activate the virtual environment:
Windows:
.\venv_<your_custom_name>\Scripts\Activate
Linux / MacOS:
source venv_<your_custom_name>/bin/activate
Install required packages:
pip install -r requirements.txt
Install PyTorch (CPU version) if not included in requirements.txt:
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
python main.py