line to sv_xyxy = sv.Detections(roboflow_xyxy).from_inference(predictions_json) line. After making this change, I ran my code and it worked.
However, I’ve run into an unexpected issue where only the label for the first bounding box is displayed correctly, and all subsequent bounding boxes appear without any labels.
did anyone have a similar issue, or does anyone know what might be causing this?
As for the visualization, could you share the code you used for the annotators? Using the example you linked, with the latest changes in Supervision, it should look something like this:
# def draw_boxes_and_labels(image, sv_xyxy, class_ids, add_labels):
# print(class_ids)
# #set add_labels to True to show the label for each object
# image_with_boxes = sv.BoxAnnotator().annotate(image, sv_xyxy, labels=class_ids, skip_label=add_labels)
# return image_with_boxes