Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you're misspelled CascadeClassifier . Change this:

face_cascade=cv2.CascadeClassfier('haarcascade_frontalface_default.xml')

to

face_cascade=cv2.CascadeClassifier('haarcascade_frontalface_default.xml')

you're misspelled CascadeClassifierCascadeClassfier . Change this:

face_cascade=cv2.CascadeClassfier('haarcascade_frontalface_default.xml')

to

face_cascade=cv2.CascadeClassifier('haarcascade_frontalface_default.xml')