I am trying to run some face detect and face recognition code. But while I try to run the code for training data it shows some error. I am using Python 3.6 version and OpenCV module in Windows platform. I am adding code to first and error later.
and it shows following error:
C:\Users\MAN\AppData\Local\Programs\Python\Python36\python.exe C:/Users/MAN/PycharmProjects/facerecognition/Train/train.py
Traceback (most recent call last): File "C:/Users/MAN/PycharmProjects/facerecognition/Train/train.py", line 5, in <module> recognizer = cv2.createLBPHFaceRecognizer()
AttributeError: module 'cv2.cv2' has no attribute 'createLBPHFaceRecognizer'
Process finished with exit code 1