How increment filename in python(openCV) [duplicate]

我只是一个虾纸丫 提交于 2020-04-18 05:42:31

问题


for example. after write the video

 out = cv2.VideoWriter('video.avi', fourcc, fps, (int(width), int(height))) 

it saves a file with the name "video", I wanted that the next time I run it save the next video as video1 etc ...

来源:https://stackoverflow.com/questions/60907884/how-increment-filename-in-pythonopencv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!