-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
How to save draw_geometries output as png or jpg #1095
Comments
This tutorial should be helpful: customized visualization then go to "Capture images in a customized animation" |
I have an additional question. Thanks in advance |
Thanks @Nerolf05 .I also stuck in that point. I am able to store the image once I close the visualizer output. I have to deploy my code on server,where I may not able to close the visualizer output manually. I get to know how to hide window by (vis.create_window(visible = False)), but after loading pcd to it, if we run "vis.run()" command terminal gets hang. |
@Nerolf05 Currently I am able to store depth image, but the same logic fails for storing RGB image, it gives current screenshot as a image. I use " ; " for new line, as code is print in wrong format. Sorry for that. |
@rupeshchandgude i use I also tried to close the Visualizer with a second Process, but i wasnt able to do it successfully. |
@Nerolf05 Maybe we should try to find the way to close that window programmatically, so the code will go further to save output. |
@Nerolf05 Following function can be used to store image without visualizer output .
|
Hello, sorry, but i have to repoen this issue, because the proposed method by @Nerolf05 raises following exception:
|
@ArashJavan The following should work on v0.10.0:
|
For anyone that wonders: to get the depth map into a local variable without displaying: vis = o3d.visualization.Visualizer() |
If your screenshots turn out dark/black/without anything, you're probably missing the |
For rendering as an image this is the final version. vis = o3d.visualization.Visualizer() |
Is there any way to save output of draw_geometries as jpg or png format in python?
The text was updated successfully, but these errors were encountered: