Spaces:
Runtime error
Runtime error
Bhaskar Saranga
commited on
Commit
•
5f086ec
1
Parent(s):
86967c6
Cosistance bbox thickness
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def detectv7(img,model,device,iou_threshold=0.45,confidence_threshold=0.25):
|
|
112 |
# Write results
|
113 |
for *xyxy, conf, cls in reversed(det):
|
114 |
label = f'{names[int(cls)]} {conf:.2f}'
|
115 |
-
plot_one_box(xyxy, imgs, label=label, color=colors[names[int(cls)]], line_thickness=
|
116 |
|
117 |
return imgs,fps_inference
|
118 |
|
|
|
112 |
# Write results
|
113 |
for *xyxy, conf, cls in reversed(det):
|
114 |
label = f'{names[int(cls)]} {conf:.2f}'
|
115 |
+
plot_one_box(xyxy, imgs, label=label, color=colors[names[int(cls)]], line_thickness=1)
|
116 |
|
117 |
return imgs,fps_inference
|
118 |
|