Py学习  »  attwad  »  全部回复
回复总数  1
16 年前
回复了 attwad 创建的主题 » 在Python中将png文件转换为动画gif

opencv ,

#load your frames
frames = ...
#create a video writer
writer = cvCreateVideoWriter(filename, -1, fps, frame_size, is_color=1)
#and write your frames in a loop if you want
cvWriteFrame(writer, frames[i])