AttributeError: module 'cv2.cv2' has no attribute 'CV_FOURCC' code example
Example: module 'cv2.cv2' has no attribute 'videowriter'
#for opencv3 do this
cv2.VideoWriter_fourcc(*'MJPG')
#for opencv3 do this
cv2.VideoWriter_fourcc(*'MJPG')