Spaces:
Runtime error
Runtime error
yiyixuxu
commited on
Commit
·
c7d5df4
1
Parent(s):
c6b3ab7
test
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ def vid2frames(url, sampling_interval=1, ext='mp4'):
|
|
90 |
n_workers = os.cpu_count()
|
91 |
# testing..
|
92 |
cap = cv2.VideoCapture(video)
|
93 |
-
print(f'video: {video}; isOpen? : {cap.
|
94 |
|
95 |
#with Pool(n_workers) as pool:
|
96 |
# pool.map(partial(process_video_parallel, video, skip_frames, dest_path, n_workers), range(n_workers))
|
|
|
90 |
n_workers = os.cpu_count()
|
91 |
# testing..
|
92 |
cap = cv2.VideoCapture(video)
|
93 |
+
print(f'video: {video}; isOpen? : {cap.isOpened()}')
|
94 |
|
95 |
#with Pool(n_workers) as pool:
|
96 |
# pool.map(partial(process_video_parallel, video, skip_frames, dest_path, n_workers), range(n_workers))
|