Attributeerror: 'module' Object Has No Attribute 'createlbphfacerecognizer'
From this question in SO I understand the error should be solved by having opencv contrib, but the thing is that when I first built opencv using cmake using this guide by pyimagese
Solution 1:
After searching high and low, I found that using cv2.face.LBPHFaceRecognizer_create()
just do the trick for opencv 3.3.0 with opencv contrib. Hope you find it useful.
Solution 2:
createLBPHFaceRecognizer() is in the sub-module cv2.face in python. To access it you should use cv2.face.createLBPHFaceRecognizer().
Post a Comment for "Attributeerror: 'module' Object Has No Attribute 'createlbphfacerecognizer'"