Ask Your Question

Comparing Images by getting Percentage in open cv

asked 2013-02-26 09:01:10 -0500

Ashwin gravatar image

updated 2013-02-26 09:04:00 -0500

Hi Guys.. I want to calculate the Average Speed of the vehicles which is flowing on the Road. Please suggest me if there`s any method using which I can do the same.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-02-26 10:06:17 -0500

If you are orthogonal to the road, and you know the distance of the road part you see, it's obvious... Otherwise, the general case is very difficult. You have to estimate the motion of cars according to the point of view, maybe with size difference:

  1. extract the size at first point: a size of XXX means you are in point 1 of the road.
  2. extract size of the car at the end: a size of YYY < XXX or YYY > XXX (depending on your camera orientation) means you are in point 2 of the road.
  3. calculate time between two estimations

=> if you know the distance, you know the speed. Step 1 & 2 aren't easy... Good luck.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2013-02-26 09:01:10 -0500

Seen: 493 times

Last updated: Feb 26 '13