Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Question on tracking a moving ball using Kalman filter

I want to learn to track a moving ball using Kalman filter. Although many tutorial are available, I still have some questions.

  1. If we can extract the ball in each frame of the video sequence, we will know the position of the ball. Then, why do we need to use Kalman fiter anymore? What is the job of Kalman filter here?

  2. Kalman filter: x(k+1) = A.x(k) + B.u(k) + noise

                  y(k) = C.x(k) + noise
    

Then, how do we define A, B, C ? suppose we want to track the moving ball?

3 . If we know the previous state x(k-1) and the measurement of the current state y(k), we can compute the estimated state. What is the "measurement" in case of tracking the moving ball?

like image 756
John Avatar asked Jan 17 '11 12:01

John


1 Answers

well basically you use tracking method to follow the ball in your scene. You'd still have to detect the ball in each timestep.

(1)

Assume you come to a point where another ball comes into the scene. So you need to find a method to identify each ball. Make it worse and even let them cross each other or have obstacles in the way which might hide the ball for a little while.

Your tracking method (i.e. Kalman filter) will then continue its movement on the estimated trajectory, based on how the ball has moved before.

So if you just want to know where the ball is in each frame you don't need a tracking method, but if yo uwant to identify and follow one ball you'd need a tracker, i.e. a Kalman filter or for multi-object tracking I'd prefer a Particle Filter (http://en.wikipedia.org/wiki/Particle_Filter).

(2)

Can't help you here right now since I am not too far into the Kalman Filter right now. But basically A should be the transition matrix from step x(t-1) to x(t) and B should be the reference model. But as I've said if its likely you get more than one ball you might wanna have a look at the particle filter.

(3)

The measurement would be the position you measured on you image. Basically the midpoint of your ball. You'd use this measurement to correct the estimated path. So basically you compare the position the ball should be at at current timestep (depending on it's former movement) with it's actual position.

I hope that helps... if not, keep asking...

like image 109
florianbaethge Avatar answered Oct 08 '22 22:10

florianbaethge