BhumikaMak commited on
Commit
5de67ef
·
1 Parent(s): 5f61be0

Fix: version dependency

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def parse_detections(results, yolo_version):
47
  # Draw bounding boxes and labels
48
  def draw_detections(boxes, colors, names, img):
49
  for box, color, name in zip(boxes, colors, names):
50
- xmin, ymin, xmax, ymax = map(int, box)
51
  cv2.rectangle(img, (xmin, ymin), (xmax, ymax), color.tolist(), 2)
52
  cv2.putText(img, name, (xmin, ymin - 5),
53
  cv2.FONT_HERSHEY_SIMPLEX, 0.8, color.tolist(), 2,
 
47
  # Draw bounding boxes and labels
48
  def draw_detections(boxes, colors, names, img):
49
  for box, color, name in zip(boxes, colors, names):
50
+ xmin, ymin, xmax, ymax = map(int, box[0])
51
  cv2.rectangle(img, (xmin, ymin), (xmax, ymax), color.tolist(), 2)
52
  cv2.putText(img, name, (xmin, ymin - 5),
53
  cv2.FONT_HERSHEY_SIMPLEX, 0.8, color.tolist(), 2,