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:

Now I want to create a data model from the walls. I already managed to extract them as you can see here:
From that I created the contours:
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:
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.