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