From 5ab31380c217137dc379b598d51a034f94f6d7e6 Mon Sep 17 00:00:00 2001 From: hzwer <598460606@163.com> Date: Tue, 17 Nov 2020 13:59:05 +0800 Subject: [PATCH] Set 7 digits --- inference_mp4_2x.py | 2 +- inference_mp4_4x.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inference_mp4_2x.py b/inference_mp4_2x.py index 18c0b57..e963de3 100644 --- a/inference_mp4_2x.py +++ b/inference_mp4_2x.py @@ -45,7 +45,7 @@ cnt = 0 def writeframe(frame): global cnt if args.png: - cv2.imwrite('output/{:0>8d}.png'.format(cnt), frame) + cv2.imwrite('output/{:0>7d}.png'.format(cnt), frame) cnt += 1 else: output.write(frame) diff --git a/inference_mp4_4x.py b/inference_mp4_4x.py index 8362e5a..42b3f87 100644 --- a/inference_mp4_4x.py +++ b/inference_mp4_4x.py @@ -45,7 +45,7 @@ cnt = 0 def writeframe(frame): global cnt if args.png: - cv2.imwrite('output/{:0>8d}.png'.format(cnt), frame) + cv2.imwrite('output/{:0>7d}.png'.format(cnt), frame) cnt += 1 else: output.write(frame)