Failed to load OpenCL runtime
Most likely there are some problems with your installation. If you are not working with the GPU, I recommend that you disable all CUDA / OpenCL modules in OpenCV at compile time.
error: (-215) scn == 3 || scn == 4 in the cvtColor function
, 3 (BGR/ ) 4 ( RGBA). , , frame, print frame.shape.
, , , . print frame.shape , NoneType.
, . OpenCL , , , . , VideoCapture. , :
cap . , . , . cap.isOpened(). , .