0

I have a project that I have to calculate speed of vehicle in a camera traffic. I used Background subtraction algorithm to get the foreground (moving object). after I got foreground, centroid, boudaries of each object, I have to calculate the speed of each object. to do that, I will calculate the distance the each vehicle moved in a time. but the problem is in next frame I don't know what is the object in previous frame. I can not identify exactly 1 vehicle for 2 consecutive frames. who can help me?

user3725204
  • 33
  • 1
  • 8

2 Answers2

1

You can use mean shift algorithm:

http://en.m.wikipedia.org/wiki/Mean-shift

Image Segmentation using Mean Shift explained

Community
  • 1
  • 1
shoham
  • 293
  • 1
  • 9
0

You probably find this useful for your purposes, also you can do with SURF features.

Dinl
  • 83
  • 1
  • 7
  • yes, thanks so much Dinl but It is using computervision tool and I can't control that code. if I write that code into a m file, It run good. but when I write each part of that program (Create System Objects, Initialize Tracks, ....) to a m file separately. (such as a subfunction) then I run main function (multiObjectTracking()), It is Error. may you help me? – user3725204 Sep 07 '14 at 01:29