Beasto commited on
Commit
3752c67
·
verified ·
1 Parent(s): a620eaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -11,9 +11,6 @@ if img is not None:
11
  results = model(img)
12
  for result in results:
13
  for i in range(len(result.boxes.cls)):
14
- cls = result.boxes.cls[i]
15
- cls = arr[int(cls)]
16
- lbl = result.boxes.conf[i]
17
  boxes = result.boxes.xyxy[i]
18
  draw = ImageDraw.Draw(img)
19
  draw.rectangle([boxes[0], boxes[1], boxes[2], boxes[3]], outline="black", width=5)
 
11
  results = model(img)
12
  for result in results:
13
  for i in range(len(result.boxes.cls)):
 
 
 
14
  boxes = result.boxes.xyxy[i]
15
  draw = ImageDraw.Draw(img)
16
  draw.rectangle([boxes[0], boxes[1], boxes[2], boxes[3]], outline="black", width=5)