jens commited on
Commit
d140d89
·
1 Parent(s): de11d79
Files changed (1) hide show
  1. utils.py +3 -3
utils.py CHANGED
@@ -81,7 +81,7 @@ def create_3d_pc(rgb_image, depth_image, depth=10):
81
  camera_location=np.array([0., 0., 1000.]))
82
 
83
  # Save the point cloud as a PLY file
84
- gltf_path = './image.gltf'
85
- o3d.io.write_point_cloud(str(gltf_path), pcd)
86
 
87
- return str(gltf_path) # Return the file path where the PLY file is saved
 
81
  camera_location=np.array([0., 0., 1000.]))
82
 
83
  # Save the point cloud as a PLY file
84
+ filename = "pc.pcd"
85
+ o3d.io.write_point_cloud(filename, pcd)
86
 
87
+ return filename # Return the file path where the PLY file is saved