Spaces:
Runtime error
Runtime error
Commit
·
448a6a3
1
Parent(s):
b2d7242
Update app.py
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ def detect_Custom(img,boundedImage):
|
|
130 |
if save_img or view_img:
|
131 |
label = f'{names[int(cls)]} {conf:.2f}'
|
132 |
plot_one_box(xyxy, im0, label=label, color=colors[int(cls)], line_thickness=3)
|
133 |
-
|
134 |
box_voc = pbx.convert_bbox(xyxy, from_type="yolo", to_type="voc", image_size=(W,H))
|
135 |
print(box_voc)
|
136 |
if view_img:
|
|
|
130 |
if save_img or view_img:
|
131 |
label = f'{names[int(cls)]} {conf:.2f}'
|
132 |
plot_one_box(xyxy, im0, label=label, color=colors[int(cls)], line_thickness=3)
|
133 |
+
W, H = 300, 300
|
134 |
box_voc = pbx.convert_bbox(xyxy, from_type="yolo", to_type="voc", image_size=(W,H))
|
135 |
print(box_voc)
|
136 |
if view_img:
|