Spaces:
Runtime error
Runtime error
jens
commited on
Commit
·
de11d79
1
Parent(s):
b7a1e25
fix
Browse files
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 |
-
|
85 |
-
o3d.io.write_point_cloud(str(
|
86 |
|
87 |
-
return str(
|
|
|
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
|