Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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="
|
| 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 |
|