Alessio Grancini commited on
Commit
6c52e09
·
verified ·
1 Parent(s): fc77043

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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": center_2d, # Add 2D center in screen space
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)