GiaoH commited on
Commit
a46b896
·
verified ·
1 Parent(s): 1dc6141

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -14
app.py CHANGED
@@ -48,13 +48,7 @@ def show_preds_image(image_path):
48
  x1, y1, x2, y2 = box.xyxy[0]
49
  x1, y1, x2, y2 = int(x1), int(y1), int(x2), int(y2)
50
 
51
- cv2.rectangle(
52
- image,
53
- (int(x1), int(y1), int(x2), int(y2)),
54
- color=(0, 0, 255),
55
- thickness=2,
56
- lineType=cv2.LINE_AA
57
- )
58
 
59
 
60
  name = yolo_classes[int(cls)]
@@ -103,13 +97,7 @@ def show_preds_webcam(pil_image):
103
  x1, y1, x2, y2 = box.xyxy[0]
104
  x1, y1, x2, y2 = int(x1), int(y1), int(x2), int(y2)
105
 
106
- cv2.rectangle(
107
- image,
108
- (int(x1), int(y1), int(x2), int(y2)),
109
- color=(0, 0, 255),
110
- thickness=2,
111
- lineType=cv2.LINE_AA
112
- )
113
 
114
 
115
  name = yolo_classes[int(cls)]
 
48
  x1, y1, x2, y2 = box.xyxy[0]
49
  x1, y1, x2, y2 = int(x1), int(y1), int(x2), int(y2)
50
 
51
+
 
 
 
 
 
 
52
 
53
 
54
  name = yolo_classes[int(cls)]
 
97
  x1, y1, x2, y2 = box.xyxy[0]
98
  x1, y1, x2, y2 = int(x1), int(y1), int(x2), int(y2)
99
 
100
+
 
 
 
 
 
 
101
 
102
 
103
  name = yolo_classes[int(cls)]