Detecting/ tracking the ball in a tennis match video

1.4k views Asked by At

What algorithm should I use for detecting/tracking a tennis ball in a video of a tennis match? I was thinking of training a custom YOLOv3 model but since I am dealing with a small and fast moving object I think it wouldn't make sense.

2

There are 2 answers

2
AbdelAziz AbdelLatef On

Try it, it may work. I detected cars less than 100 pixels using YOLOv3.

1
Jean-Marc Volle On

You can also use opencv circle detection algorithm (Hough circles) but it requires a bit to tweaking. At least testing it on your test set should be quite straighforward. See here for an introduction: https://www.pyimagesearch.com/2014/07/21/detecting-circles-images-using-opencv-hough-circles/

Provided you know in advance the balls colors you could also do color based segmentation, blobs detection and circularity estimation on found objects. This is the cheapest way (in terms of processing complexity) but again nothing beats trying.