Каково решение AttributeError: модуль «cv2.face» не имеет атрибута «LBPHFaceRecouncer_create»?Python

Программы на Python
Гость
Каково решение AttributeError: модуль «cv2.face» не имеет атрибута «LBPHFaceRecouncer_create»?

Сообщение Гость »


face_cascade = cv2.CascadeClassifier("data/haarcascade_frontalface_default.xml") clf = cv2.face.LBPHFaceRecognizer_create() clf.read("train_data.xml")

This is my code...I think that is 100% right ...But the error shows that

AttributeError: module 'cv2.face' has no attribute 'LBPHFaceRecognizer_create'

I already tried many ways from Google, YouTube, StackOverflow, etc. But nothing solves the error.

I change the Python version

pip install opencv-python

also

pip install opencv-contrib-python

I have done this many times but no solution


Источник: https://stackoverflow.com/questions/781 ... ibute-lbph

Вернуться в «Python»