Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -196,7 +196,7 @@ def process_video(video_path):
|
|
| 196 |
|
| 197 |
depth_value = depth_np[center_y, center_x]
|
| 198 |
|
| 199 |
-
text = f"
|
| 200 |
font = cv2.FONT_HERSHEY_SIMPLEX
|
| 201 |
font_scale = 0.8 # Giảm kích thước font để phù hợp
|
| 202 |
font_thickness = 2
|
|
|
|
| 196 |
|
| 197 |
depth_value = depth_np[center_y, center_x]
|
| 198 |
|
| 199 |
+
text = f"Depth: {depth_value:.2f} m"
|
| 200 |
font = cv2.FONT_HERSHEY_SIMPLEX
|
| 201 |
font_scale = 0.8 # Giảm kích thước font để phù hợp
|
| 202 |
font_thickness = 2
|