def __init__(self, fn, height, width, channels=3, fps=30):
super(Writer, self).__init__()
self.width = width
self.height = height
self.channels = channels
self.fn = fn
print("writing to %s with shape (%i, %i, %i)" % (fn, height, width, channels))
cc4 = cv2.VideoWriter_fourcc('m', 'p', '4', 'v')
self.out = cv2.VideoWriter(fn, cc4, fps, (width, height), isColor=(channels == 3))
video.py 文件源码
python
阅读 30
收藏 0
点赞 0
评论 0
评论列表
文章目录