Fourcc in cv2问题

时间:2014-03-18 14:35:47

标签: opencv python-2.7 fourcc

fourcc = cv2.VideoWriter_fourcc('X','2','6','4')
AttributeError: 'module' object has no attribute 'VideoWriter_fourcc'

使用fourcc时我一直收到此错误。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:7)

您应该使用fourcc = cv2.cv.CV_FOURCC(*'X264')