-
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
depth images convert to point cloud #8893
Comments
Hi @xunyi-yin Are you aiming to create a point cloud from live depth and RGB data streamed from the camera, please? Or are you using pre-made depth and color image files such as PNG format images? Can you also confirm please whether you want to save the point cloud data as a ply file. Thank you very much. |
Hi @MartyG-RealSense I want to use pre-made PNG depth images only or PNG depth images and JPG color images to create point cloud. I think ply file is OK My computer system version is Ubuntu16.04 |
I looked carefully at what you want to achieve. It may be difficult to implement though, with a number of problems involved. The best reference available for aligning pre-made depth and color image files in Python is the recent discussion in the link below. This information does not cover the process of deprojecting 2D pixel information to 3D world coordinates to generate a point cloud. It may be best to approach this project in stages and achieve the 2D depth / color alignment first before subsequently looking at how to deproject it to 3D and export it to ply. |
Hi @MartyG-RealSense Do you know how to get the depth image and color image together? My device is RealSense D455. My system is Ubuntu16.04 |
Could you confirm your meaning when you ask about "getting the depth image and color image together", please? If you are aligning pre-made depth and color image files in Python, information about doing this was provided in #8756 |
I mean I have D455 camera and my system is ubuntu16.04. how can i get depth images. i ever used 'rosbag record' but i can not extract the depth images from the .bag files. I want to know if i can use python code to do this or other methods. I do not want to use c++ code @MartyG-RealSense |
If you are asking about extracting depth frames from a bag file and saving them as PNG images with Python then the script in the link below may suit your needs. If you wanted to play back depth frames from a bag but not save them as image files then the SDK's read_bag_example Python example program may be helpful. Intel's Python tutorial distance_to_object.py demonstrates how to align depth and color data from a bag. https://github.com/IntelRealSense/librealsense/blob/jupyter/notebooks/distance_to_object.ipynb |
Thank you! I have solved it @MartyG-RealSense |
Excellent news that you found a solution, @xunyi-yin :) |
Case closed due to solution achieved and no further comments received. |
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
<Describe your issue / question / feature request / etc..>
I have rgb images and depth images, how can i get the point cloud files with a python code?
The text was updated successfully, but these errors were encountered: