Spaces:
Runtime error
Runtime error
jens
commited on
Commit
·
d140d89
1
Parent(s):
de11d79
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(
|
| 86 |
|
| 87 |
-
return
|
|
|
|
| 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
|