I am trying to train face recognizer but I don't want to train every time a new user data is entered in face database so I want to train new user data and then concatenate with previous trained recognizer. I have two trained recognizer I want to concatenate these two.
Any help in this regard would be appreciated.
This is my code I am reading from three recognizer and want to save them to one:
face_recognizer1=my.facerecognizer(cv2.face_LBPHFaceRecognizer.create())
face_recognizer1.read("trainer"+"/"+"s1"+".xml")
face_recognizer1.read("trainer"+"/"+"s2"+".xml")
face_recognizer1.read("trainer"+"/"+"s3"+".xml")
face_recognizer1.save("trainer"+"/"+"s11"+".xml")
i have found a solution, use update to update recognizer. more details at opencv docs facerecognizer
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.