My reference implementation of a 2D tracking KF in Python with OpenCV.
For demo, simply run 'circleTracker.py'.
A ball will be show to be tracked by a KF, with measurements, predictions, and KF estimates of the 2D position of the ball (u,v coordinates) visualized.