I am reading an avi file usinh python 2.7 and opencv2.4.I am using windows 10.My sample code is
import numpy as np import cv2 cap = cv2.VideoCapture(\'videos
You took the tutorial from here: Playing Video from file
This question adresses your error: open cv error: (-215) scn == 3 || scn == 4 in function cvtColor
Two things may work:
cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)