标签: opencv python-2.7 fourcc
fourcc = cv2.VideoWriter_fourcc('X','2','6','4') AttributeError: 'module' object has no attribute 'VideoWriter_fourcc'
使用fourcc时我一直收到此错误。任何帮助将不胜感激。
答案 0 :(得分:7)
您应该使用fourcc = cv2.cv.CV_FOURCC(*'X264')
fourcc = cv2.cv.CV_FOURCC(*'X264')