Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ def detect_objects(frame):
|
|
| 56 |
|
| 57 |
return detections
|
| 58 |
|
| 59 |
-
def display_detections(
|
| 60 |
for det in detections:
|
| 61 |
x1, y1, x2, y2, conf, detected_name = det
|
| 62 |
color = colors.get(detected_name, (255, 255, 255))
|
|
|
|
| 56 |
|
| 57 |
return detections
|
| 58 |
|
| 59 |
+
def display_detections(image, detections):
|
| 60 |
for det in detections:
|
| 61 |
x1, y1, x2, y2, conf, detected_name = det
|
| 62 |
color = colors.get(detected_name, (255, 255, 255))
|