drumaddict
drumaddict

Reputation: 121

Detecting/ tracking the ball in a tennis match video

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.

Upvotes: 1

Views: 1744

Answers (2)

Jean-Marc Volle
Jean-Marc Volle

Reputation: 3323

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.

Upvotes: 2

AbdelAziz AbdelLatef
AbdelAziz AbdelLatef

Reputation: 3744

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

Upvotes: 1

Related Questions