Player_detection, Ball_detection, Machine Learning, Annotations, Python
Python3, tensorflow, numpy, opencv3, pillow, sklearn
-
https://github. com/thtrieu/darkflow - darkflow is used for ball_tracking by own annotated dataset.
-
https://github.com/Qidian213/deep_sort_yolov3 - deep_sort_yolov3 is used for the player_detection
-
Filed Detection - python
There are multiple ways to detect players in any sports videos.Here I have used simple image processing techniques to detect players by only using opencv.
If the Dataset is clear there are the possibilities of implementing many features.
The abbove method detects first the green ground and make everything other then green color into black.After converting into greyscale I have found contours on the ground.By using some parameters we will detect players.
Here I have used the video of France VS Belgium match.So for further detection, I have used the color of their jersy to segment them.For france We will detect the blue jersy and then for belgium we will detect the red jersy.
Algorithm: First we will read the video. Detect the Green ground. Use morphological operation for better detection. Find contours. Detect players. Segment them by France or Belgium. Detect the soccer ball.
You can see the code in player_detection.py