Commit ·
4c87af3
1
Parent(s): 4f3cdcd
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,6 +29,13 @@ def snap(image, model, conf, iou):
|
|
| 29 |
probs = result.boxes.conf.cpu().numpy()
|
| 30 |
boxes = result.boxes.xyxy.cpu().numpy()
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
x1, y1, x2, y2 = boxes
|
| 33 |
x1, y1, x2, y2 = int(x1), int(y1), int(x2), int(y2)
|
| 34 |
cv2.rectangle(image, (x1, y1), (x2, y2), (0, 255, 0), 2)
|
|
|
|
| 29 |
probs = result.boxes.conf.cpu().numpy()
|
| 30 |
boxes = result.boxes.xyxy.cpu().numpy()
|
| 31 |
|
| 32 |
+
print("-------------------")
|
| 33 |
+
print(classes)
|
| 34 |
+
print("-------------------")
|
| 35 |
+
print(probs)
|
| 36 |
+
print("-------------------")
|
| 37 |
+
print(boxes)
|
| 38 |
+
|
| 39 |
x1, y1, x2, y2 = boxes
|
| 40 |
x1, y1, x2, y2 = int(x1), int(y1), int(x2), int(y2)
|
| 41 |
cv2.rectangle(image, (x1, y1), (x2, y2), (0, 255, 0), 2)
|