From 117f0161928c8fb7cedd38cd8cdd17384b16c474 Mon Sep 17 00:00:00 2001 From: hzwer <598460606@163.com> Date: Sun, 15 Nov 2020 18:27:00 +0800 Subject: [PATCH] Fix 4x --- inference_mp4_4x.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inference_mp4_4x.py b/inference_mp4_4x.py index 5837444..ea52f75 100644 --- a/inference_mp4_4x.py +++ b/inference_mp4_4x.py @@ -35,9 +35,9 @@ tot_frame = videoCapture.get(cv2.CAP_PROP_FRAME_COUNT) print('{}.mp4, {} frames in total, {}FPS to {}FPS'.format(args.video[:-4], tot_frame, fps, 4*fps)) pbar = tqdm(total=tot_frame) if args.montage: - output = cv2.VideoWriter('{}_2x.mp4'.format(args.video[:-4]), fourcc, fps*4, (2*w, h)) + output = cv2.VideoWriter('{}_4x.mp4'.format(args.video[:-4]), fourcc, fps*4, (2*w, h)) else: - output = cv2.VideoWriter('{}_2x.mp4'.format(args.video[:-4]), fourcc, fps*4, (w, h)) + output = cv2.VideoWriter('{}_4x.mp4'.format(args.video[:-4]), fourcc, fps*4, (w, h)) frame = frame while success: lastframe = frame