Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def process_frame(image):
|
|
53 |
depth_map = (depth_map * 255).byte()
|
54 |
|
55 |
# Apply color map
|
56 |
-
depth_map_colored = color_map[depth_map
|
57 |
|
58 |
return cv2.cvtColor(depth_map_colored.cpu().numpy(), cv2.COLOR_BGR2RGB)
|
59 |
|
|
|
53 |
depth_map = (depth_map * 255).byte()
|
54 |
|
55 |
# Apply color map
|
56 |
+
depth_map_colored = color_map[depth_map.long()]
|
57 |
|
58 |
return cv2.cvtColor(depth_map_colored.cpu().numpy(), cv2.COLOR_BGR2RGB)
|
59 |
|