freealise commited on
Commit
2e36d14
1 Parent(s): 4fdc6b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -208,10 +208,10 @@ def pano_depth_to_world_points(depth):
208
  return pts3d
209
 
210
  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
- gdepth = rgb2gray(depth)
215
  print('depth to gray - ok')
216
  pts3d = pano_depth_to_world_points(gdepth)
217
  print('radius from depth - ok')
 
208
  return pts3d
209
 
210
  def rgb2gray(rgb):
211
+ return np.dot(rgb[...,:3], [0.333, 0.333, 0.333])
212
 
213
  def get_mesh(image, depth, keep_edges=False):
214
+ gdepth = rgb2gray(depth) / 255.0
215
  print('depth to gray - ok')
216
  pts3d = pano_depth_to_world_points(gdepth)
217
  print('radius from depth - ok')