freealise commited on
Commit
6a6ab7b
1 Parent(s): c69d12f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -222,7 +222,8 @@ def pano_depth_to_world_points(depth):
222
  latitude : -pi/2 to pi/2
223
  """
224
 
225
- depth[int(depth.shape[0]/8*7):depth.shape[0]-1, 0:depth.shape[1]] = 192
 
226
 
227
  # Convert depth to radius
228
  radius = (255 - depth.flatten())
 
222
  latitude : -pi/2 to pi/2
223
  """
224
 
225
+ depth[int(depth.shape[0]/8*7):depth.shape[0]-1, 0:depth.shape[1]][cv2.inRange(depth, 192, 255)>0] = 192
226
+ depth[depth.shape[0]-1:depth.shape[0], 0:depth.shape[1]] = 255
227
 
228
  # Convert depth to radius
229
  radius = (255 - depth.flatten())