Football match video analysis tool using AI and computer vision. Tracks players, analyzes team tactics, and generates performance insights. Built with Python, YOLOv8, and Flask.
- Player & Ball & Pitch Tracking: Precise detection using Roboflow models
- DeepSORT Tracking: Consistent object identification across video frames
- Team Classification: Intelligent player team segregation using SigLIP - Sigmoid Loss for Language Image Pretraining
- Player Speed Calculation: Real-time movement velocity estimation
- 2D Pitch Projection: Intuitive field representation
- Voronoi Diagram Generation: Visualize player control zones
- Deep Learning: Hugging Face, Ultralytics YOLOv8
- Web Framework: Flask
- Object Detection: Roboflow
- Classification: SigLIP
- Python 3.11.0
- GPU recommended for optimal performance
# Clone Repository
git clone https://github.com/AkbarSheikh-debug/FootBall_AI.git
cd FootBall_AI
# Create Virtual Environment
conda create -p venv python==3.11.0 -y
conda activate venv/ # Activate the virtual environment
# Install Dependencies
pip install -r requirements.txt-
Start the Flask server:
python -u server.py
-
Access web interface:
http://127.0.0.1:5000/ -
Upload football match video (
.mp4or.avi) -
Process and analyze video
| Directory/File | Purpose |
|---|---|
main.py |
Core video processing logic |
server.py |
Web application backend |
functions/ |
Annotation and processing utilities |
sports/ |
Sports-specific modules |
static/ |
Web assets and processed videos |
- Use high-quality input videos
- Prefer GPU-enabled machines
- Expect longer processing times for extended videos