diff --git a/inference_mp4_2x.py b/inference_mp4_2x.py index c5f4983..18c0b57 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/{}.png'.format(cnt), frame) + cv2.imwrite('output/{:0>8d}.png'.format(cnt), frame) cnt += 1 else: output.write(frame) diff --git a/inference_mp4_4x.py b/inference_mp4_4x.py index a0f4ba2..8362e5a 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/{}.png'.format(cnt), frame) + cv2.imwrite('output/{:0>8d}.png'.format(cnt), frame) cnt += 1 else: output.write(frame)