标签:ase argv output utf-8 sorted out video pre nbsp
#encoding=utf-8 import os import cv2 import sys import glob img_root = sys.argv[1] fps = 10 fourcc = cv2.cv.CV_FOURCC(‘M‘,‘J‘,‘P‘,‘G‘) videoWriter = cv2.VideoWriter(‘output.avi‘,fourcc,fps,(1920, 1208)) img_list = glob.glob(img_root + ‘/*.png‘) for img_path in sorted(img_list): print img_path frame = cv2.imread(img_path) videoWriter.write(frame) videoWriter.release()
标签:ase argv output utf-8 sorted out video pre nbsp
原文地址:http://www.cnblogs.com/ymjyqsx/p/7906195.html