justin2341 commited on
Commit
e4c24be
·
verified ·
1 Parent(s): 1974055

Update demo.py

Browse files
Files changed (1) hide show
  1. demo.py +1 -1
demo.py CHANGED
@@ -20,7 +20,7 @@ def plot_one_box(x, img, color=None, label=None, score=None, line_thickness=3):
20
  cv2.putText(img, label, (c1[0], c1[1] - 2), 0, tl / 3, [0, 0, 0], thickness=tf, lineType=cv2.LINE_AA)
21
 
22
  c1 = c2
23
- c2 = c1[0] + t_size[0], c1[1] - t_size[1] - 3
24
  cv2.rectangle(img, c1, c2, [0, 0, 255], -1, cv2.LINE_AA) # filled
25
  return img
26
 
 
20
  cv2.putText(img, label, (c1[0], c1[1] - 2), 0, tl / 3, [0, 0, 0], thickness=tf, lineType=cv2.LINE_AA)
21
 
22
  c1 = c2
23
+ c2 = c1[0] + t_size[0], c1[1] + t_size[1] + 3
24
  cv2.rectangle(img, c1, c2, [0, 0, 255], -1, cv2.LINE_AA) # filled
25
  return img
26