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)
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: 174 times
Last updated: Aug 21 '18
Haar Cascade detecting only faces(no heads)?
How to use CascadeClassifier with a mask
Why this picture is classified to Upperbody? [closed]
multithreaded cascade classifire
latentSVM vs CascadeClassifier
cascade classifier - very few haar cascades are working?