Build an AI/ML Football Analysis system with YOLO, OpenCV, and Python
Skills:
CV Basics53%
In this video, you'll learn how to use machine learning, computer vision and deep learning to create a football analysis system. This project utilizes YOlO a state of the art object detector to detect the players, referees and footballs. It also utilizes trackers to track those object across frames. We also train our own object detector to enhance the output of the state-of-the-art models. Additionally, we will assign players to teams based on the colors of their t-shirts using Kmeans for pixel segmentation and clustering. We will also use optical flow to measure camera movement between frames, enabling us to accurately measure a player's movement. Furthermore, we will implement perspective transformation to represent the scene's depth and perspective, allowing us to measure a player's movement in meters rather than pixels. Finally, we will calculate a player's speed and the distance covered. This project covers various concepts and addresses real-world problems, making it suitable for both beginners and experienced machine learning engineers.
In this video you will learn how to:
1. Use ultralytics and YOLOv8 to detect objects in images and videos.
2. Fine tune and train your own YOLO on your own custom dataset.
3. Use KMeans to cluster pixles and segment players from the background to get the t-shirt color accurately.
4. Use optical flow to measure the camera movement.
5. Use CV2's (opencv) perspective transformation to represent the scene's depth and perspective.
6. Measure player's speed and distance covered in the image.
Datasets:
kaggle Dataset: https://www.kaggle.com/competitions/dfl-bundesliga-data-shootout/data?select=clips
Video link used because Kaggle removed the videos from the kaggle dataset above: https://drive.google.com/file/d/1t6agoqggZKx6thamUuPAIdN_1zR9v9S_/view?usp=sharing
Robowflow Football Dataset: https://universe.roboflow.com/roboflow-jvuqo/football-players-detection-3zvbc/dataset/1
Github Link: https://github.com/abdullahtarek/footb
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
More on: CV Basics
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
Inside SAM 3D: how Meta turns a single image into 3D
Medium · Machine Learning
Inside SAM 3D: how Meta turns a single image into 3D
Medium · Deep Learning
Demystifying CNNs: How Convolutional Filters and Max-Pooling Actually Work
Medium · Data Science
Your "Biometric Age Check" Isn't Verifying Identity — And Defense Lawyers Know It
Dev.to AI
🎓
Tutor Explanation
DeepCamp AI