Beasto commited on
Commit
3b01bb8
·
verified ·
1 Parent(s): 8c1fa71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ if img is not None:
19
  lbl = result.boxes.conf[i]
20
  boxes = result.boxes.xyxy[i]
21
  draw = ImageDraw.Draw(img)
22
- draw.rectangle([boxes[0], boxes[1], boxes[2], boxes[3]], outline="white", width=5)
23
  text_position = (boxes[0]+boxes[2])/2, boxes[1]-10
24
  draw.text(text_position, f'{cls} {lbl}', fill="red", font=font)
25
 
 
19
  lbl = result.boxes.conf[i]
20
  boxes = result.boxes.xyxy[i]
21
  draw = ImageDraw.Draw(img)
22
+ draw.rectangle([boxes[0], boxes[1], boxes[2], boxes[3]], outline="black", width=5)
23
  text_position = (boxes[0]+boxes[2])/2, boxes[1]-10
24
  draw.text(text_position, f'{cls} {lbl}', fill="red", font=font)
25