A computer vision-based system that automatically detects and tracks soccer players in a match video, reads their jersey numbers using OCR, and stores analytics data for further tactical analysis.
- 👥 Player Detection & Tracking using YOLOv5 + Deep SORT
- 🔢 Jersey Number Recognition via Tesseract OCR
- 📊 Real-Time Match Analysis with unique player IDs
- 💾 CSV Logging of jersey numbers for each frame
- 🔍 Debug Visualizations for crop inspections and OCR tuning
- Detect Players: YOLOv5 detects players as
person
class. - Track Them: Deep SORT assigns a consistent ID to each player across frames.
- Read Jersey Numbers: Tesseract OCR extracts digits from bounding boxes.
- Save Analysis: Logs frame ID, player ID, and jersey number to a CSV.
- git clone https://github.com/Sarthak1311/soccerAnalysisSystem.git
- cd soccerAnalysisSystem
- pip install -r requirements.txt
- Tactical player heatmaps based on movement
- Player performance analytics via jersey number
- Automated highlight generation
- Real-time scoreboard overlay systems
- Pose estimation for more accurate jersey region detection
- Better OCR preprocessing tuned for soccer videos
- Automatic team detection (home/away color)
- Web dashboard for visualizing analytics
Sarthak Tyagi 📍 Gurgaon, India ML Engineer | CV & NLP | GitHub