how to solve cv2.face_LBPHFaceRecognizer object has no attribute 'load' ? [closed]
I used the attribute read() instead of load() to bring .yml file into my project. How con I create a recognizer with opencv 3.4.0 in python 3.6.4 64bit ?
please use read/write OR save/load consistantly (both write different files)
I used this line in trainer to create the file recognizer.save('trainer/trainer.yml') and this two lines to create a recognzer and load the file created in the code:
self.recognizer.load("trainer/trainer.yml") #raises the error of the question here Hope you can help me sorry if I don't understood well what you said
again, please use read() and write() instead
I am probably facing a similar error which involves the usage of this function,please help! The code is->
I am using python 3.6 and opencv_3.4.3. I am a beginner. Please help!
Try updating cv2 to 4.2.0 Try installing opencv-contrib-python changing the line of code as:
It worked for me. Hope it also works for you.😊