Skip to content

Commit a24b6fc

Browse files
Ryoo72shoumikchow
authored andcommitted
text label fix
1 parent db8f331 commit a24b6fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bbox_visualizer/bbox_visualizer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ def draw_multiple_rectangles(img,
262262
def add_multiple_labels(img,
263263
labels,
264264
bboxes,
265+
size=1,
266+
thickness=2,
265267
draw_bg=True,
266268
text_bg_color=(255, 255, 255),
267269
text_color=(0, 0, 0),
@@ -290,9 +292,8 @@ def add_multiple_labels(img,
290292
ndarray
291293
the image with the labels written
292294
"""
293-
294295
for label, bbox in zip(labels, bboxes):
295-
img = add_label(img, label, bbox, draw_bg, text_bg_color, text_color,
296+
img = add_label(img, label, bbox, size, thickness, draw_bg, text_bg_color, text_color,
296297
top)
297298

298299
return img

0 commit comments

Comments
 (0)