Ask Your Question

# How to determine the area covered by vehicles in a road

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 close merge delete

## Comments

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

( 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?

( 2014-11-25 16:23:30 -0600 )edit

## 1 answer

Sort by ยป oldest newest most voted

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

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.

more

Official site

GitHub

Wiki

Documentation

## Stats

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

Seen: 265 times

Last updated: Nov 26 '14