Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layout 3d #19

Open
rshivansh opened this issue Jan 5, 2021 · 2 comments
Open

layout 3d #19

rshivansh opened this issue Jan 5, 2021 · 2 comments

Comments

@rshivansh
Copy link

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

@cfernandezlab
Copy link
Owner

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 :)

@rshivansh
Copy link
Author

rshivansh commented Jan 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants