Alessio Grancini commited on
Commit
87e1f5f
·
verified ·
1 Parent(s): c36344c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -270,7 +270,7 @@ def get_detection_data(image_data):
270
  "vertices": get_box_vertices([x1, y1, x2, y2])
271
  },
272
  "position_3d": get_3d_position(center, depth_value, get_camera_matrix(depth_estimator)),
273
- "distance": depth_value
274
  "color": color_rgb,
275
  "confidence": float(objects_data[idx][5]) # Add confidence score
276
  })
 
270
  "vertices": get_box_vertices([x1, y1, x2, y2])
271
  },
272
  "position_3d": get_3d_position(center, depth_value, get_camera_matrix(depth_estimator)),
273
+ "distance": depth_value,
274
  "color": color_rgb,
275
  "confidence": float(objects_data[idx][5]) # Add confidence score
276
  })