Check old video here: • Tracking the ball using Kalman Filter
In this video, ball is detected using template matching and as it can be seen detection is not stable. Using kalman filter smoothens the detection result.
In this video,
Black rectangle is detection using template matching.
White dot is the tracking done by kalman filter.
Blue dot is redundant and it is centroid for the black rectangle.
Will upload the code later.