def writeVideo(self):
height,width=cv2.imread("Frames/1.jpg").shape[:2]
out = cv2.VideoWriter("changedOutput.ogv",cv.CV_FOURCC('t','h','e','0'), 25.0, (width,height))
folder=self.sort_files()
for i in folder:
pic="Frames/"+str(i)+".jpg"
img=cv2.imread(pic)
out.write(img)
out.release()
评论列表
文章目录