As part of a free time project to develop a low-cost golf simulator, this ball tracker was developed to accurately detect spheres without the use of computationally intensive algorithms. It works using a series of thresholding operations combined with morphological transformations to obtain a mask of the balls. It then keeps track of what ball is what using a simple kinematic model that can confidently maintain temporal coherence in between frames.
I am always looking to take on a new challenge. Message me on LinkedIn or send me an email below and let's get started!