Hi Guys,
I am trying to train my model using LBPHFaceRecognizer, so that it can detect my face. But I am getting this below error.
AttributeError Traceback (most recent call last)
<ipython-input-3-93a512c7e667> in <module>
24 # Create a numpy array for both training data and labels
25 Labels = np.asarray(Labels, dtype=np.int32)
---> 26 model=cv2.face_LBPHFaceRecognizer.create()
27 # Initialize facial recognizer
28 # model = cv2.face_LBPHFaceRecognizer.create()
AttributeError: module 'cv2.cv2' has no attribute 'face_LBPHFaceRecognizer'
How can I solve this error?