# Kalman Filter simple tracking example.

> This is a simple tracking example of moving object. The basic concept is simple as following the steps Use background subtraction Code Here Draw a…

- Canonical URL: https://www.funvisiontutorials.com/blog/kalman-filter-tracking-example/
- Author: Vladimir Kucera
- Published: 2015-11-17
- Updated: 2023-09-13
- Topics: Object tracking, Image processing, Computer vision
- Videos: https://www.youtube.com/watch?v=SydJyVPIQ4c

This is a simple tracking example of moving object.  The basic concept is simple as following the steps

1.  Use background subtraction   [Code Here](/blog/opencv-4-cpp-tutorial-background-subtraction/)
2.  Draw a Rectangle over the object  (blue) (Use coordinates of center (X,Y))
3.  Init Kalman filter (red object) with detected (X,Y) coordinates
4.  If the measured position of the object is available update the Kalman filter.
5.  If the measured position is not available just read the predicated state of the kalam filter

Video: https://www.youtube.com/watch?v=SydJyVPIQ4c
