video.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:learning-blind-motion-deblurring 作者: cgtuebingen 项目源码 文件源码
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))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号