I applied kalman filter where I lost the position of object while tracking. I have taken velocity model of kalman implementation (x,y,vx,vy).when detected object is lost in the frame, kalman prediction is started but it's predicting in random direction with high change in state(predicted box is not covering body part of object). What could be the reason for this?
Note: My detected box is random(at different part of body of object in random size ) as I'm using optical flow.
Using this I implemented the code for object tracking. But I took kalman-velocity model using this reference. While calculating velocity I took pixel change (centroid of object location) over processing frame difference (here not taking time due to some uncertainty in my case) assigning it to state vector and passing it to measurement with detected object centroid location (x,y)
I tried to tune the parameter of kalman (eg: processNoiseCovariance = 1e-5
and measurementNoiseCovariance = 1e-1
) init value but still not getting proper result.
Can anyone suggest these value with explanation?
Second thing...how to handle the case when object is turning that time how can I use kalman for tracking because it's not working in this condition.
Any suggestion will be appreciated. Thanks in advance, :)