module = cv2.face.LBPHFaceRecognizer_create() AttributeError: module 'cv2.cv2' has no attribute 'face' code example
Example 1: AttributeError: module 'cv2.cv2' has no attribute 'face'
pip install --force-reinstall opencv-contrib-python
#if you use anaconda execute this command after the first
conda activate
Example 2: cv2.cv2' has no attribute 'face_lbphfacerecognizer'
pip install opencv-contrib-python