borakol commited on
Commit
c8c2c86
·
verified ·
1 Parent(s): b278901

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,10 +11,10 @@ def detect_objects(image):
11
  for r in results:
12
  box = r['box']
13
  draw.rectangle(
14
- [(box['xmin'], box['ymin']) , (box['xmax'],box['ymax'])], outline = "blue" , width = 4
15
  )
16
 
17
- draw.text((box['xmin'], box['ymin']), f"{r['label']} {r['score']:.2f}" , fill = "blue")
18
 
19
  for r in results:
20
  print(f"{r['label']} ({r['score']:.2f}) - Box: {r['box']}")
 
11
  for r in results:
12
  box = r['box']
13
  draw.rectangle(
14
+ [(box['xmin'], box['ymin']) , (box['xmax'],box['ymax'])], outline = "green" , width = 3
15
  )
16
 
17
+ draw.text((box['xmin'], box['ymin']), f"{r['label']} {r['score']:.2f}" , fill = "green")
18
 
19
  for r in results:
20
  print(f"{r['label']} ({r['score']:.2f}) - Box: {r['box']}")