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?
Asked
Active
Viewed 1,738 times
2 Answers
0
-
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