Skip to content

Commit

Permalink
updating text when detecting new class
Browse files Browse the repository at this point in the history
  • Loading branch information
yassine-rd committed Nov 29, 2022
1 parent 6c1bbcb commit e4652eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def draw_bbox(image, bboxes, info = False, counted_classes = None, show_label=Tr
height_ratio = int(image_h / 25)
offset = 15
for key, value in counted_classes.items():
cv2.putText(image, "{}s detected: {}".format(key, value), (5, offset),
cv2.putText(image, "{} detected: {}".format(key, value), (5, offset),
cv2.FONT_HERSHEY_COMPLEX_SMALL, 1, (0, 255, 0), 2)
offset += height_ratio
return image
Expand Down

0 comments on commit e4652eb

Please sign in to comment.