CFL icon indicating copy to clipboard operation
CFL copied to clipboard

layout 3d

Open rshivansh opened this issue 4 years ago • 2 comments

Hello, thanks for the code!

a small doubt, I followed the 2Dto3D python notebook and understood how to get the wireframe. can you please tell me what to change to get the room layouts in 3D like the teaser gif you have in this repo?

Thanks

rshivansh avatar Jan 05 '21 18:01 rshivansh

Hi! Thanks for your comment!

In the provided python notebook you see how to get the room corners in 2D and 3D respectively. Using the corners, you can easily define the room planes (walls, ceiling and floor).

For every pixel in the image, you need to intersect its corresponding 3D ray with the room plane it belongs to in order to get the actual 3D point. For the color, you just use the RGB value of the pixel. Then, you can create a point cloud using your favorite library (eg. trimesh) and visualize it.

I hope it helps :)

cfernandezlab avatar Jan 05 '21 20:01 cfernandezlab

thanks, it helps! I am also following your scene understanding repo for more details. do you have the code for the color part?

rshivansh avatar Jan 06 '21 02:01 rshivansh