Drive Folder Structure:
PLAYER_TRACKING/
├── README.md (This file)
├── Technical_Report.pdf
├── Code/
│ ├── main.py (Main program)
│ ├── detector.py (YOLO detection)
│ └── tracker.py (Re-ID logic)
├── Models/
│ └── best.pt (Pre-trained weights)
├── data/
│ ├── input_videos.mp4 (Sample input)
├── output/ (Processed result)
└── requirements.txt (Dependencies)
- Download the entire folder from Google Drive
- Preserve the folder structure exactly as shown above
pip install -r requirements.txt- Pro Tip: Use Python 3.8+ and a virtual environment*
python Code/main.py▶ Expected Output:
- Processed video saved to
Videos/output.mp4 - Terminal will show real-time progress:
Processing Frame 45: 12 players tracked (1.3s/frame)
- Replace
Videos/input.mp4with your video - Edit these paths in
Code/main.py:INPUT_VIDEO = "Videos/your_video.mp4" OUTPUT_VIDEO = "Videos/custom_output.mp4"
- Frame Extraction → Reads video at 30 FPS
- Player Detection → YOLOv11 model
- Feature Storage → Saves jersey color/position
- Re-Identification → Matches players across frames
Common Issues:
- "Missing model weights" → Ensure
yolov11.ptis in ⚙️ Models/ - Slow performance → Try reducing resolution in
detector.py - Video playback issues → Use VLC Player
Contact Support: [email protected] (mailto:)