Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ model = YOLO("models/best.pt")
|
|
| 13 |
|
| 14 |
def draw(image_for_drawing):
|
| 15 |
#detections = []
|
| 16 |
-
results = model.predict(image_for_drawing, conf=0.
|
| 17 |
#Перебираем результаты
|
| 18 |
for result in results:
|
| 19 |
# Получаем bounding boxes в формате [x1, y1, x2, y2, conf, class_id]
|
|
|
|
| 13 |
|
| 14 |
def draw(image_for_drawing):
|
| 15 |
#detections = []
|
| 16 |
+
results = model.predict(image_for_drawing, conf=0.25)
|
| 17 |
#Перебираем результаты
|
| 18 |
for result in results:
|
| 19 |
# Получаем bounding boxes в формате [x1, y1, x2, y2, conf, class_id]
|