def writeOutputFile(self):
self.height,self.width=cv2.imread("/Users/pratikramdasi/Desktop/frames/0 (1).jpg").shape[:2]
out = cv2.VideoWriter("/Users/pratikramdasi/Desktop/vtest.mp4",cv.CV_FOURCC('a','v','c','1'), 30.0, (self.width, self.height))
folder=self.sort_files()
for i in folder:
pic="/Users/pratikramdasi/Desktop/frames/0 ("+str(i)+").jpg"
img=cv2.imread(pic)
out.write(img)
out.release()
评论列表
文章目录