-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Python save to disk example #9448
Comments
Hi @chain-tech The link below provides an example of Python scripting for exporting depth and color frames as PNG images using the imwrite instruction. A more advanced example that makes use of alignment is here: |
Thanks @MartyG-RealSense , I have already gone through those links you shared. But was searching a lot to see if there's more better/easier option. I will try to work more with those examples you shared. |
Another approach to color and depth file export is to save the color as a PNG and the depth as an array of scaled matrices in an .npy file, like in the Python script in the link below. An alternative export method is to use the save_single_frameset instruction to save each individual frame as a bag file instead of an image file. |
Hi @chain-tech Do you require further assistance with this case, please? Thanks! |
Hi @MartyG-RealSense , Thanks for your help on this so far. Closing the ticket now. |
Thanks very much @chain-tech for the update! |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
Hi, I have been exploring the node and python examples. I was able to play with node module to capture and save using the available examples.
However, for python wrapper, I don't get a straight forward answer to save depth and color images. I searched a lot in the issues as well but could not get a simple answer.
All i'm looking is a python equivalent of nodejs-save-to-disk.js that can save color and depth image. Please help
The text was updated successfully, but these errors were encountered: