Skip to content

Commit ea2a413

Browse files
nefeliparshoumikchow
authored andcommitted
In the parameters I have put default values for the size (=1) and thickness (=2) of the label. If the user wants to change these values, when the function he wants is called, he will put the values he wants after the bbox, first for the size and then for the thickness.
1 parent 7e726af commit ea2a413

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

bbox_visualizer/bbox_visualizer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import cv2
22

3-
43
font = cv2.FONT_HERSHEY_SIMPLEX
54

65

@@ -32,7 +31,6 @@ def draw_rectangle(img,
3231
ndarray
3332
the image with the bounding box drawn
3433
"""
35-
3634
output = img.copy()
3735
if not is_opaque:
3836
cv2.rectangle(output, (bbox[0], bbox[1]), (bbox[2], bbox[3]),

0 commit comments

Comments
 (0)