Exporting point cloud using export_to_ply generates a large .ply file size as compared to exporting the point cloud from the Intel RealSense Viewer
I have exported the 3D point cloud from the D400 stereo camera feed using the RealSense viewer which generates a .ply file of ~3MB. I have selected "Meshing" and "Binary" to reduce file size.
I tried to reproduce the results in my code by using export_to_ply("filename", color) where color is my color video frame. The .ply file generated from this for the same scene has a file size of ~14 MB. I am not sure why there is this much of a difference. I would like the export_to_ply function to generate a smaller file.
Are there any fixes for this? I think saving a texture less frame should fix the issue but I'm not sure how you would do that.
-
Hi Anadig The link below describes a means to use export_to_ply to export colorized depth instead of the color frame. In that particular case though, the RealSense user apparently did not see a noticeable impact on file size by doing so.
https://github.com/IntelRealSense/librealsense/issues/3009#issuecomment-456287835
Another approach was a script that exported with color but excluded vertex normals.
https://github.com/IntelRealSense/librealsense/issues/6194#issuecomment-608371293
-
Hi MartyG,
I have tried both fixes but they don't seem to make any difference.
If it's of any help to you, the number of vertices and faces in the .ply file generated using export_to_ply is individually about 4 times the number of vertices and faces in the .ply file generated by RealSense viewer.
-
A script with a simpler approach that does not use aligned frames is here:
https://github.com/IntelRealSense/librealsense/issues/2832#issuecomment-443823647
Please sign in to leave a comment.
Comments
3 comments