Closed frankkim1108 closed 2 years ago
Hi @frankkim1108!
Thanks for testing the project.
This is a great contribution! The proposed solution really is an improvement!
Do you want me to make an update when I have time or would you like to create a merge request?
Cheers, @grebtsew
Thank you for the compliment !
I would like to create a merge request please!
Hello,
This issue is solved with pull request #21.
Cheers, @grebtsew
Hi @grebtsew !!
I have been testing your project for creating a 3D model of a house with a 2D floor plan image. While I was testing your code, I tried all the example floorplan images that was in your Repo.
However, when I ran the code on example5.png image, the output blender file had some missing wall. I started looking for reasons why the walls were missing. After following every line of code, it seemed like
was removing some walls close to the outer contour.
The code shown in the
remove_walls_not_int_contour
is using cv2.pointPolygonTest() to see if the wall is inside the outer contour or not. However, some floorplan's outer contour was too tight for the wall bounding rectangle box that it detected some walls as if it was outside of the outer contour.So one way I tried fixing this issue was instead of doing a pointPolygonTest with a outer contour of the house , which is an output from
I tried it with a bounding rectangle box of a outer contour of a house.
the code below is what I did.
The image below is before and after the fix