Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -82,8 +82,8 @@ label_id_offset = 0
|
|
| 82 |
samples_folder = 'test_samples'
|
| 83 |
# image_path = 'test_samples/image489.png'
|
| 84 |
|
| 85 |
-
def video_fn(
|
| 86 |
-
|
| 87 |
|
| 88 |
nb_frames = int(video_reader.get(cv2.CAP_PROP_FRAME_COUNT))
|
| 89 |
frame_h = int(video_reader.get(cv2.CAP_PROP_FRAME_HEIGHT))
|
|
|
|
| 82 |
samples_folder = 'test_samples'
|
| 83 |
# image_path = 'test_samples/image489.png'
|
| 84 |
|
| 85 |
+
def video_fn(video_in_filepath):
|
| 86 |
+
video_reader = cv2.VideoCapture(video_in_filepath)
|
| 87 |
|
| 88 |
nb_frames = int(video_reader.get(cv2.CAP_PROP_FRAME_COUNT))
|
| 89 |
frame_h = int(video_reader.get(cv2.CAP_PROP_FRAME_HEIGHT))
|