Alessio Grancini
commited on
Update app.py
Browse files
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 |
})
|