1.1.1
Browse files
app.py
CHANGED
|
@@ -139,7 +139,7 @@ def find_bottommost_footpath_pixel(mask, topmost_pixel):
|
|
| 139 |
def estimate_real_world_distance(depth_map, topmost_pixel, mask):
|
| 140 |
"""Estimate real-world distance between two pixels using depth information"""
|
| 141 |
|
| 142 |
-
|
| 143 |
return None
|
| 144 |
|
| 145 |
# Find the bottommost pixel perpendicular to the topmost pixel
|
|
|
|
| 139 |
def estimate_real_world_distance(depth_map, topmost_pixel, mask):
|
| 140 |
"""Estimate real-world distance between two pixels using depth information"""
|
| 141 |
|
| 142 |
+
if topmost_pixel is None or depth_map is None:
|
| 143 |
return None
|
| 144 |
|
| 145 |
# Find the bottommost pixel perpendicular to the topmost pixel
|