Tracking through kalman filter

asked 2014-02-21 12:07:58 -0600

FLY gravatar image

updated 2014-02-21 12:22:02 -0600

I want to implement Kalman filter in my work of video processing , i am studying about it from different sources but it take me towards question that if i don't know that where my object come in frame mean i don't know about its angle (location in frame) then is it possible that Kalman filter automatically detect its measurements e.g location (as i already applied algorithms for specific object detection , so i only want that detected object tracking) and then track it in other frames ?

Other thing which come to my mind is that two objects (which i want to detect) come in the same frame and in the same measurements to is kalman filter take them as two different objects for tracking ?

edit retag flag offensive close merge delete

Comments

confused question. can you try to clean it up a bit ? ;)

berak gravatar imageberak ( 2014-02-21 12:13:27 -0600 )edit

@berak you still tracking me :P actually i only want to save one frame of object , in video , my object takes 60/70 frames to go through from the eye of live cam , so i want to save only one frame of one object

FLY gravatar imageFLY ( 2014-02-21 12:20:20 -0600 )edit

hey, we both' ve come a long way, no ? (+1 for the nice pun, btw)

but no fear, just trying to help you.

  • what are you trying to track ?
  • how many instances ? are they moving independantly ? (you'll probably need a tracker for each one then)
berak gravatar imageberak ( 2014-02-21 12:23:54 -0600 )edit

I am trying to track a vehicle and there may be 2 different vehicle's in one frame may b 3 etc , if i put a seprate tracker for each then isn't it computationaly expensive for video processing ?

FLY gravatar imageFLY ( 2014-02-21 12:26:52 -0600 )edit
1

no fear, that's pretty cheap. if your measurement vec is x,y, the whole prediction is a few 2x2 matrix /vector multiplications.

berak gravatar imageberak ( 2014-02-21 12:39:57 -0600 )edit

If you are trying to find the location of an object to track, then you need to detect a moving object first. There is backgroundSubtractionMOG followed by findContours(), and other potential solutions

Will Stewart gravatar imageWill Stewart ( 2014-02-21 12:58:25 -0600 )edit

@Will Stewart I mentioned in thread that i applied algorithm for object detection and i am detecting it

FLY gravatar imageFLY ( 2014-02-21 13:03:31 -0600 )edit

Are you then determining it's location by the general centroid of the main contour, if there is a main contour? What are you getting in return that signifies an object?

Will Stewart gravatar imageWill Stewart ( 2014-02-21 16:42:46 -0600 )edit

I am simply getting 1 for my required object when it appear in front of camera/in frame and then that frame proceed for further functionalities . otherwise my application ignores the frame which don't have that object

FLY gravatar imageFLY ( 2014-02-22 03:25:51 -0600 )edit