I am using rpi3 for face detection but error it is giving
OpenCV error : error: (-215) scn == 3 || scn == 4 in function cvtColor (fixed - need confirmation)
your image is empty or invalid. you have to check the output of imread()
or cap.read()
. (no idea, why python users never get this) so:
im = cv2.imread("some.png")
if im is None: # load fail
break
Asked: 2018-08-21 05:24:22 -0600
Seen: 157 times
Last updated: Aug 21 '18