BallTrackr is a video analysis tool designed to detect and track a soccer ball in videos. Combining the powerful object detection capabilities of YOLOv3 with the real-time performance of the KCF (Kernelized Correlation Filters) tracker, this application ensures accurate and efficient soccer ball tracking.
-
Soccer Ball Detection
- Uses the YOLOv3 object detection model to identify the soccer ball in video frames reliably.
-
Object Tracking
- Tracks the soccer ball across frames with the KCF tracker for real-time efficiency.
-
Recovery Mechanism
- Handles scenarios where the tracker loses the ball by automatically switching back to YOLOv3 detection. The tracker resumes once the ball is detected again.
Before starting up, ensure the following dependencies and files are set up:
- Python 3.x Installed
- Required Python packages OpenCV(using
pip install
command):pip install opencv-contrib-python
- Clone the repository or download the project files.
- Ensure all required libraries are installed and the necessary files (YOLOv3 weights and input video) are downloaded.
- Run the application with the following command:
python detect-track.py