labels or label isn't an existing parameter for box_annotate() #1634
-
Search before asking
Buglabels or label isn't an existing parameter for box_annotate(), what do we replace this with? is it needed I just removed it? box_annotator = sv.BoxAnnotator() mask_annotator = sv.MaskAnnotator() annotated_image = mask_annotator.annotate( images = [] As you can see here the options (method) def annotate( Environmentsupervision==0.24.0 Minimal Reproducible ExampleNo response AdditionalNo response Are you willing to submit a PR?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hi @Jarradmorden 👋 The supervision version there is indeed very old. Here's how you'd use the annotators right now: mask_annotator = sv.MaskAnnotator()
box_annotator = sv.BoxAnnotator()
label_annotator = sv.LabelAnnotator()
images = []
for image_name, image, annotations in dataset:
annotated_image = image.copy()
annotated_image = mask_annotator.annotate(
scene=annotated_image,
detections=annotations)
annotated_image = box_annotator.annotate(
scene=annotated_image,
detections=annotations)
annotated_image = label_annotator.annotate(
scene=annotated_image,
detections=annotations,
)
images.append(annotated_image) The |
Beta Was this translation helpful? Give feedback.
-
Converting to Q&A since this is not a bug |
Beta Was this translation helpful? Give feedback.
Hi @Jarradmorden 👋
The supervision version there is indeed very old. Here's how you'd use the annotators right now:
The
Lab…