Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚽ Football Player Detection AI

Real-Time Football Player Detection & Match Analysis using YOLO and Computer Vision


🎯 AI-powered football player detection system trained using YOLO for real-time sports analytics and visual recognition.

🎥 Demo Preview

📌 Overview

This project is a Computer Vision & Deep Learning system designed for detecting football players in match footage using YOLO-based object detection.

The system performs:

  • ⚽ Football player detection
  • 📹 Real-time video inference
  • 📊 Performance evaluation
  • 🧠 Deep learning model training
  • 📈 Match analysis visualization

The project was developed as part of an AI and Computer Vision learning journey focused on sports analytics.


🚀 Features

✅ Real-Time Player Detection
✅ YOLO-Based Training Pipeline
✅ Video Inference Support
✅ Detection Visualization
✅ Performance Metrics & Evaluation
✅ Confusion Matrix Analysis
✅ Precision-Recall Curves
✅ Deep Learning Model Export


🛠️ Technologies Used

Technology Purpose
Python Core Programming
YOLO Object Detection
OpenCV Computer Vision
PyTorch Deep Learning
NumPy Numerical Processing
Matplotlib Visualization
Pandas Data Analysis

📂 Project Structure

football-player-detection-ai/
│
├── assets/
├── demo/
├── models/
├── notebooks/
├── results/
│
├── README.md
├── requirements.txt
└── .gitignore


🧠 Model Performance

Metric Score
mAP@50 0.91
Precision 0.89
Recall 0.87
F1-Score 0.88

Evaluation Metrics

Metric Result
Detection Model YOLO
Training Framework PyTorch
Task Football Player Detection
Inference Type Real-Time Video Detection

📊 Training Results

Confusion Matrix


Precision-Recall Curve


F1 Curve


🖼️ Detection Examples

Prediction Samples


⚙️ Installation

Clone the repository:

git clone https://github.com/YOUR_USERNAME/football-player-detection-ai.git
cd football-player-detection-ai

Install dependencies:

pip install -r requirements.txt

▶️ Usage

Run the notebooks inside:

notebooks/

Or run your detection pipeline directly.


📈 Future Improvements

  • 🧍 Player Tracking
  • 🧠 Team Classification
  • ⚽ Ball Detection
  • 📊 Heatmaps & Analytics
  • 🎯 Tactical Analysis
  • 🏃 Pose Estimation

👨‍💻 Author

Sabry Salah

AI Student & Computer Vision Enthusiast

  • Deep Learning
  • Computer Vision
  • YOLO Systems
  • Sports Analytics

⭐ Support

If you found this project useful, consider giving it a ⭐ on GitHub.


📽️ Project Presentation

🚀 Built with AI, Computer Vision, and Passion for Football Analytics