Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ model = YOLO("yolov8s.pt")
|
|
12 |
|
13 |
@spaces.GPU
|
14 |
def stream_object_detection(video):
|
|
|
15 |
cap = cv2.VideoCapture(video)
|
16 |
# This means we will output mp4 videos
|
17 |
video_codec = cv2.VideoWriter_fourcc(*"mp4v") # type: ignore
|
|
|
12 |
|
13 |
@spaces.GPU
|
14 |
def stream_object_detection(video):
|
15 |
+
SUBSAMPLE=1
|
16 |
cap = cv2.VideoCapture(video)
|
17 |
# This means we will output mp4 videos
|
18 |
video_codec = cv2.VideoWriter_fourcc(*"mp4v") # type: ignore
|