Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -123,11 +123,11 @@ def main(share=True):
|
|
| 123 |
shutil.rmtree(output_path, ignore_errors=True)
|
| 124 |
output_path.mkdir(exist_ok=True, parents=True)
|
| 125 |
|
| 126 |
-
|
| 127 |
|
| 128 |
# save pcd to temporary .ply
|
| 129 |
-
tmp_ply = tempfile.NamedTemporaryFile(suffix='.ply', delete=False)
|
| 130 |
-
o3d.io.write_point_cloud(
|
| 131 |
|
| 132 |
vertices = np.asarray(pcd.points)
|
| 133 |
vertex_colors = (np.asarray(pcd.colors) * 255).astype(np.uint8)
|
|
|
|
| 123 |
shutil.rmtree(output_path, ignore_errors=True)
|
| 124 |
output_path.mkdir(exist_ok=True, parents=True)
|
| 125 |
|
| 126 |
+
ply_path = os.path.join(output_path, 'pointcloud.ply')
|
| 127 |
|
| 128 |
# save pcd to temporary .ply
|
| 129 |
+
# tmp_ply = tempfile.NamedTemporaryFile(suffix='.ply', delete=False)
|
| 130 |
+
o3d.io.write_point_cloud(ply_path, pcd)
|
| 131 |
|
| 132 |
vertices = np.asarray(pcd.points)
|
| 133 |
vertex_colors = (np.asarray(pcd.colors) * 255).astype(np.uint8)
|