Alessio Grancini
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -280,7 +280,7 @@ def get_detection_data(image_data):
|
|
280 |
"bounding_box": {
|
281 |
"vertices": get_box_vertices([x1, y1, x2, y2])
|
282 |
},
|
283 |
-
"center_2d":
|
284 |
"distance": depth_value, # Depth in meters
|
285 |
"color": color_rgb,
|
286 |
"confidence": float(confidence)
|
|
|
280 |
"bounding_box": {
|
281 |
"vertices": get_box_vertices([x1, y1, x2, y2])
|
282 |
},
|
283 |
+
"center_2d": center, # Add 2D center in screen space
|
284 |
"distance": depth_value, # Depth in meters
|
285 |
"color": color_rgb,
|
286 |
"confidence": float(confidence)
|