justin2341 commited on
Commit
417ad6d
·
verified ·
1 Parent(s): e690515

Update demo.py

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