Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from ultralytics import YOLO
|
|
| 7 |
# Load the YOLO model
|
| 8 |
model = YOLO("best.pt") # Ensure the path to your model is correct
|
| 9 |
|
| 10 |
-
webcamera = cv2.VideoCapture(
|
| 11 |
# # webcamera.set(cv2.CAP_PROP_FRAME_WIDTH, 1920)
|
| 12 |
# # webcamera.set(cv2.CAP_PROP_FRAME_HEIGHT, 1080)
|
| 13 |
|
|
|
|
| 7 |
# Load the YOLO model
|
| 8 |
model = YOLO("best.pt") # Ensure the path to your model is correct
|
| 9 |
|
| 10 |
+
webcamera = cv2.VideoCapture()
|
| 11 |
# # webcamera.set(cv2.CAP_PROP_FRAME_WIDTH, 1920)
|
| 12 |
# # webcamera.set(cv2.CAP_PROP_FRAME_HEIGHT, 1080)
|
| 13 |
|