Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv2.CV_HAAR_SCALE_IMAGE has been renamed in OpenCV 3. Change this:

flags=cv2.cv.CV_HAAR_SCALE_IMAGE

to:

flags=cv2.CASCADE_SCALE_IMAGE

Also change this:

cv2.createLBPHFaceRecognizer()

to:

faceCascade.cv2.face.LBPHFaceRecognizer_create()