mirror of
https://github.com/hzwer/ECCV2022-RIFE.git
synced 2026-02-24 04:19:41 +01:00
Release video
This commit is contained in:
@@ -38,6 +38,7 @@ model.device()
|
||||
videoCapture = cv2.VideoCapture(args.video)
|
||||
fps = np.round(videoCapture.get(cv2.CAP_PROP_FPS))
|
||||
tot_frame = videoCapture.get(cv2.CAP_PROP_FRAME_COUNT)
|
||||
videoCapture.release()
|
||||
if args.fps is None:
|
||||
args.fps = fps * args.exp
|
||||
videogen = skvideo.io.vreader(args.video)
|
||||
|
||||
@@ -37,6 +37,7 @@ model.device()
|
||||
|
||||
videoCapture = cv2.VideoCapture(args.video)
|
||||
fps = np.round(videoCapture.get(cv2.CAP_PROP_FPS))
|
||||
videoCapture.release()
|
||||
videogen = skvideo.io.vreader(args.video)
|
||||
success, frame = videoCapture.read()
|
||||
h, w, _ = frame.shape
|
||||
|
||||
Reference in New Issue
Block a user