Kalman filters for Multiple Object Tracking in videos
Asked Answered
V

1

6

From what I've understood, tracking algorithms predict where a given object will be in the next frame (after object detection is already performed). The object is then again recognized in the next frame. What isn't clear is how the tracker then knows to associate the object in the 2nd frame as the same as the one in the 1st, especially when there are multiple objects in the frame.

I've seen in a few places that a cost matrix is created using Euclidean distance between the prediction and all detections, and the problem is framed as an assignment problem (Hungarian algorithm).

Is my understanding of tracking correct? Are there other ways of establishing that an object in one frame is the same as an object in the next frame?

Virtu answered 8/9, 2015 at 12:31 Comment(0)
P
6

Your understanding is correct. You have described a simple cost function, which is likely to work well in many situations. However, there will be times when it fails.

Assuming you have the computational resources, you can try to make your tracker more robust, by making the cost function more complicated.

The simplest thing you can do is take into account the error covariance of the Kalman filter, rather than just using the Euclidean distance. See the distance equation in the documentation for the vision.KalmanFilter object in MATLAB. Also see the Motion-based Multiple Object Tracking example.

You can also include other information in the cost function. You could account for the fact that the size of the object should not change too much between frames, or that the object's appearance should stay the same. For example, you could compute color histograms of your detections, and define your cost function as a weighted sum of the "Kalman filter distance" and some distance between color histograms.

Parrie answered 8/9, 2015 at 15:8 Comment(3)
I've actually seen that page before. It was the first thing that tipped me off to framing it as an assignment problem. What I didn't notice was that they actually provide a formula for distance. Thanks!Virtu
Any links, papers on better cost functions?Virtu
Search for "appearance-based tracking". You should find a lot of papers.Parrie

© 2022 - 2024 — McMap. All rights reserved.