Opencv: Convert floorplan image into data model

Viewed 4307

my plan is to extract information out of a floor plan drawn on a paper. I already managed to detect 70-80% of the drawn doors:

Detecting doors in a floorplan

Now I want to create a data model from the walls. I already managed to extract them as you can see here:

extracted walls From that I created the contours:

extracted wall lines My idea now was to get the intersections of the lines from that image and create a data model from that. However if I use houghlines algorithm I get something like this:

enter image description here Does somebody have a different idea of how to get the intersections or even another idea how to get a model? Would be very nice.

PS: I am using javacv. But an algorithm in opencv would also be alright as I could translate that.

4 Answers
Related