【CV】视频处理-图像视频转换(python)
更新ing
'''
img gen gif
'''
import imageio, os, sys
def png_gif(path):
png_lst = os.listdir(path)
frames = []
for i in png_lst:
frames.append(imageio.imread(path + i))
imageio.mimsave("PEG_fliter_img_video.gif", frames, 'GIF', duration=0.2)
def main():
path = 'D:\JoeOffice\jupyter_notebook\computer_vision\particle_track\PEG\PEG_fliter_img\\'
png_gif(path)
if __name__=="__main__":
main()
[点击并拖拽以移动]