Ask Your Question

Detect roads and their connections

asked 2013-05-01 03:22:38 -0500

AroXar gravatar image

image description

I am a newbie to opencv (I started using it like yesterday..) the image of the roads is as below. (I took it from google maps and editing in opencv) however the problem is that i have to detect all the points where the roads "pass" each other. Can someone help please?

edit retag flag offensive close merge delete


Hi Aro, are you trying to find out the crossings of two roads?

baila gravatar imagebaila ( 2013-05-01 10:02:03 -0500 )edit

yes, basically, i want to read the whole map so the starting point for this task is to detect the road crossings and start building up the map from there

any suggestions are welcome

AroXar gravatar imageAroXar ( 2013-05-02 02:23:43 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-05-02 03:18:16 -0500

I think you have two solution:

  1. if all road are line: use the Hough transform (here) and find intersections analytically.
  2. if you are in the more general and complex case (''the real one'') where road are anything: lines, circle, curves, ... the first thing to try is thinning algorithm from this post which is related to finger print detection (quite close to your subject) and after you can either find intersections with detector inspired from fingerprint (no ref, but I'm looking) or build a graph from each line (just follow the line and look at the neighborhood) to make a road graph.


edit flag offensive delete link more

Question Tools


Asked: 2013-05-01 03:22:38 -0500

Seen: 2,209 times

Last updated: May 02 '13