Set 7 digits

This commit is contained in:
hzwer
2020-11-17 13:59:05 +08:00
parent b52ff4ddf8
commit 5ab31380c2
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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)