Opencv Error Module 'cv2.face' Has No Attribute 'createeigenfacerecognizer'
I am using python 3.7 and latest version of openCV. When i try to create an EigenFaceRecognizer. This error pops up 'module 'cv2.face' has no attribute createEigenFaceRecognizer. I
Solution 1:
I believe the face
module is in the opencv-contrib
library. You can install it with
pip uninstall opencv-contrib-python
pip install opencv-contrib-python --no-cache-dir
Also the function got changed to this. load
was replaced with read
importcv2recognise= cv2.face.EigenFaceRecognizer_create()
recognise.read("Recogniser/trainingDataEigan.xml")
Post a Comment for "Opencv Error Module 'cv2.face' Has No Attribute 'createeigenfacerecognizer'"