AttributeError: module ‘cv2.cv2’ has no attribute ‘createLBPHFaceRecognizer’

You need to install opencv-contrib

pip install opencv-contrib-python

It should work after that.

Leave a Comment