Skip to content

Commit

Permalink
text label fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryoo72 authored and shoumikchow committed Jul 8, 2023
1 parent db8f331 commit a24b6fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bbox_visualizer/bbox_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ def draw_multiple_rectangles(img,
def add_multiple_labels(img,
labels,
bboxes,
size=1,
thickness=2,
draw_bg=True,
text_bg_color=(255, 255, 255),
text_color=(0, 0, 0),
Expand Down Expand Up @@ -290,9 +292,8 @@ def add_multiple_labels(img,
ndarray
the image with the labels written
"""

for label, bbox in zip(labels, bboxes):
img = add_label(img, label, bbox, draw_bg, text_bg_color, text_color,
img = add_label(img, label, bbox, size, thickness, draw_bg, text_bg_color, text_color,
top)

return img
Expand Down

0 comments on commit a24b6fc

Please # to comment.