Kalman Filter Explained With Python Code From Scratch

This snippet shows tracking mouse cursor with Python code from scratch and comparing the result with OpenCV. The CSV file that has been used are being created with below c++ code. A sample could be downloaded from here 1, 2, 3.

Python Kalman Filter

C++ and OpenCV Kalman Filter

Rapidcsv has been downloaded from here

 

5
Leave a Reply

avatar
4 Comment threads
1 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
4 Comment authors
djamila_stArdianadminjohn Recent comment authors

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
newest oldest most voted
Notify of
john
Guest

Thanks for sharing.keep up the good work.

djamila_st
Guest

good article

Ardian
Guest
Ardian

Hi,

Thanks for the tutorial. I try the code and compare all the errors (RMSE) w.r.t the given ground truth. Here is the result:
1. Meassurement error: 1.145
2. opencv kalman error: 5.80
3. your code of kalman error: 7.92

Why do we have larger error on estimated kalman than the measurement? Thanks.

djamila_st
Guest

Thank you and thank you for sharing