Direction of Vehicle [closed]

asked 2014-04-22 01:53:51 -0600

Amit gravatar image

How to Identify the direction of vehicle in up or down direction,

(1) i am able to detect vehicle with its centriod. image description

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by StevenPuttemans
close date 2014-04-25 02:06:54.168019

Comments

Seriously ... I think people should put some effort into their problems ... the solution is as simple as your question ...

StevenPuttemans gravatar imageStevenPuttemans ( 2014-04-22 04:59:49 -0600 )edit

Vow! how u do that(Nice Animation), but i already using optical flow with Lucas-Kanade method, in this i stuck on multiple vehicle. Can we find the direction using centriod (on multiple vehicle)....

Amit gravatar imageAmit ( 2014-04-22 09:19:12 -0600 )edit

Yes you can, just keep track of the centroid Y and X coordinate. The change in direction gives you movement ...

StevenPuttemans gravatar imageStevenPuttemans ( 2014-04-22 09:29:55 -0600 )edit

Yes, i done that, but inbetween with multiple vehicle (in same direction) the centroid will overlab.. Y:125 Y:129 Y:135 Y:75 Y:59 Y:62

Amit gravatar imageAmit ( 2014-04-22 23:21:56 -0600 )edit

That is why you assign a tracker like kalman or optical flow for each position, to track the correct centroid instead of switching between them.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-04-23 01:32:09 -0600 )edit
1

@steven i successfully implemented the KLTTracking, & able to track each vehicle. There are some minor issue but i handle them, Thanks for reply and good luck..

Amit gravatar imageAmit ( 2014-04-24 08:21:50 -0600 )edit