Can anyone provide me a sample code or some sort of example of Kalman filter implementation in python 2.7 and openCV 2.4.13
I want to implement it in a video to track a person but, I don't have any reference to learn and I couldn't find any python examples.
I know Kalman Filter exists in openCV as cv2.KalmanFilter but I have no idea how to use it. Any guidance would be appreciated
The
kalman.py
code below is the example included in OpenCV 3.2 source in github. It should be easy to change the syntax back to 2.4 if needed.Here is the OpenCV 2.4 Doc on Kalman Filter. Hope this help.