Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -211,7 +211,9 @@ def rgb2gray(rgb):
|
|
211 |
return np.dot(rgb[...,:3], [0.33, 0.33, 0.33])
|
212 |
|
213 |
def get_mesh(image, depth, keep_edges=False):
|
214 |
-
|
|
|
|
|
215 |
print('radius from depth - ok')
|
216 |
|
217 |
# Create a trimesh mesh from the points
|
|
|
211 |
return np.dot(rgb[...,:3], [0.33, 0.33, 0.33])
|
212 |
|
213 |
def get_mesh(image, depth, keep_edges=False):
|
214 |
+
gdepth = rgb2gray(depth)
|
215 |
+
print('depth to gray - ok')
|
216 |
+
pts3d = pano_depth_to_world_points(gdepth)
|
217 |
print('radius from depth - ok')
|
218 |
|
219 |
# Create a trimesh mesh from the points
|