glenn-jocher commited on
Commit
e086347
·
unverified ·
1 Parent(s): d9f23ed

Update plots.py (#4407)

Browse files
Files changed (1) hide show
  1. utils/plots.py +1 -1
utils/plots.py CHANGED
@@ -79,7 +79,7 @@ def plot_one_box(x, im, color=(128, 128, 128), label=None, line_thickness=3):
79
  cv2.putText(im, label, (c1[0], c1[1] - 2), 0, tl / 3, [225, 255, 255], thickness=tf, lineType=cv2.LINE_AA)
80
 
81
 
82
- def plot_one_box_PIL(box, im, color=(128, 128, 128), label=None, line_thickness=None):
83
  # Plots one bounding box on image 'im' using PIL
84
  im = Image.fromarray(im)
85
  draw = ImageDraw.Draw(im)
 
79
  cv2.putText(im, label, (c1[0], c1[1] - 2), 0, tl / 3, [225, 255, 255], thickness=tf, lineType=cv2.LINE_AA)
80
 
81
 
82
+ def plot_one_box_PIL(box, im, color=(128, 128, 128), label=None, line_thickness=3):
83
  # Plots one bounding box on image 'im' using PIL
84
  im = Image.fromarray(im)
85
  draw = ImageDraw.Draw(im)