AttributeError: module 'cv2.cv2' has no attribute 'face_LBPHFaceRecognizer'

in Machine Learning
Machine Learning Tutorials
2 Answers to this question

There is a module called LBPHFaceRecognizer module that comes from a package called opencv-contrib-python. Hence, you will need to install this package. Then restart the program which would hopefully resolve the issue. Here is the installation code.

$ pip install opencv-contrib-python

You should install opencv-contrib using the following command.


pip install opencv-contrib-python

If you want to unleash your potential in this competitive field, please visit the Machine Learning Training page for more information, where you can find the       and       as well.

For more updates on the latest courses stay tuned to HKR Trainings.

To Top