freealise commited on
Commit
4fdc6b1
1 Parent(s): 893bff0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- pts3d = pano_depth_to_world_points(rgb2gray(depth))
 
 
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