Last active
June 11, 2016 09:50
-
-
Save bikz05/0148dc9451e5f107ddb0 to your computer and use it in GitHub Desktop.
Face Detection using OpenCV
If the faces are detected then detectMultiScale
returns the ndarray
else it returns an empty tuple
. So faces.shape[0]
throws the error when no faces are detected. Instead len(faces)
can be used to get the number of faces detected.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
When I run this face detection notebook, I get error in the 5th cell : 'tuple' object has no attribute 'shape' in some of the images. Do you know how to resolve this error.
BTW thanks for the notebook!!