mirror of
https://github.com/hzwer/ECCV2022-RIFE.git
synced 2026-02-24 04:19:41 +01:00
Set 7 digits
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user