cheng-hust commited on
Commit
b0b07fc
·
verified ·
1 Parent(s): b4ea8c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -119,7 +119,7 @@ def detect(img,thr=0.2,trained_dataset='aitod'):
119
  for idx,b in enumerate(box):
120
  label_i = lab[idx].item()
121
  draw.rectangle(list(b), outline=label_color_dict[label_i%8+1], )
122
- draw.text((b[0], b[1]), text=coco_dict[label_i], fill='blue', )
123
 
124
  #save_path = Path('./output') / img_path.name
125
  return img
 
119
  for idx,b in enumerate(box):
120
  label_i = lab[idx].item()
121
  draw.rectangle(list(b), outline=label_color_dict[label_i%8+1], )
122
+ draw.text((b[0], b[1]), text=coco_dict[label_i+1], fill='blue', )
123
 
124
  #save_path = Path('./output') / img_path.name
125
  return img