jens commited on
Commit
de11d79
·
1 Parent(s): b7a1e25
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
- ply_path = "image".with_suffix('.ply')
85
- o3d.io.write_point_cloud(str(ply_path), pcd)
86
 
87
- return str(ply_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
+ 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