Spaces:
Running
Running
Update app.py
Browse files
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())
|