Ask Your Question

How to determine the area covered by vehicles in a road

asked 2014-11-23 23:20:36 -0600

jumzzz gravatar image

updated 2020-09-22 19:09:29 -0600

I'm a beginner in OpenCV and I'm having a slight idea on where to start. In my project I do have an IP Camera that is monitoring the road and I want to determine how much clogged the road is so basically what I want to determine is this ( Area covered by vehicles )/ (Total Area of the Road). My question is that, which OpenCV topic I need to learn/study in order to achieve this?

edit retag flag offensive close merge delete


If your camera doesn't move, a simple image segmentation can solve this.

Rodrigo Berriel gravatar imageRodrigo Berriel ( 2014-11-24 09:00:07 -0600 )edit

I am a little confused on the goal you are trying to achieve. Is the task to find the distance traveled?

Messina Vision Systems gravatar imageMessina Vision Systems ( 2014-11-25 16:23:30 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-26 07:07:02 -0600

FLY gravatar image

If the image of the road is constant or the size of the road is constant then what about this image

image description

When you detect the edges of road , then between those edges can you check how many vehicles (rectangle's) cover on the road like in the last image it clearly shows that two vehicles (rectangles) can cover approximately whole road or you can say 2.5 rectangles can cover the whole road , so what about using this technique like how many rectangles are in a row ? If its 3 rectangles then road is full , if 2 then 33% space is remaining , if only one row is in line then 66% road is empty , if no rectangle then 100% road is empty. This is just runtime logic , you may get some authentic answers soon as well.

edit flag offensive delete link more

Question Tools


Asked: 2014-11-23 23:20:36 -0600

Seen: 251 times

Last updated: Nov 26 '14