def writeOutputFile(self,output):
self.height,self.width=cv2.imread("Frames/1.jpg").shape[:2]
out = cv2.VideoWriter(output,cv.CV_FOURCC('a','v','c','1'), 30.0, (self.width, self.height))
folder=self.sort_files()
for i in folder:
pic="Frames/"+str(i)+".jpg"
img=cv2.imread(pic)
out.write(img)
out.release()
# Method to sort the files (here, frames!)
评论列表
文章目录