Spaces:
Sleeping
Sleeping
YarramsettiNaresh
commited on
Commit
•
13b8932
1
Parent(s):
e2cf29c
init
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ class VideoProcessor:
|
|
33 |
print(f"gradio_video_stream init : {video_file}")
|
34 |
self.g_bags = {}
|
35 |
self.g_fishes = {}
|
36 |
-
self.cap = cv2.VideoCapture(video_file
|
37 |
|
38 |
while True:
|
39 |
frame = self.process_frame()
|
|
|
33 |
print(f"gradio_video_stream init : {video_file}")
|
34 |
self.g_bags = {}
|
35 |
self.g_fishes = {}
|
36 |
+
self.cap = cv2.VideoCapture(video_file) # Open the uploaded video file
|
37 |
|
38 |
while True:
|
39 |
frame = self.process_frame()
|