testmail-gmail commited on
Commit
448a6a3
·
1 Parent(s): b2d7242

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- H, W = im0.shape[:2]
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: