Introduce video manager to handle broken videos
This commit is contained in:
@@ -13,8 +13,6 @@ def get_video_capture(video_path : str) -> cv2.VideoCapture:
|
||||
|
||||
|
||||
def clear_video_pool() -> None:
|
||||
global VIDEO_POOL_SET
|
||||
|
||||
for video_capture in VIDEO_POOL_SET.values():
|
||||
video_capture.release()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user