How to add more data in previously stored trained data file?
I have trained.xml file saved previously. now I want to add more training data in this file. Is there any method to do that? I have a scenario- I have trained Face recognition algorithm with some faces and saved the data in file trained.xml. now I want to add data of one more person in that file. I tried to train the algorithm with the images of that person saperately but it gives error-
Atleast two classes are required for LDA but only one class is provided.
I have no idea what to do now.
only the LBPHFaceRecognizer supports the update method, where you just can add new faces, and save them again ( but again, no idea about javacv, sorry )
Can you please describe how it is done in LBPHFaceRecognizer .
you train your model using some faces, save it. after that, you load the xml, and for adding new faces, you call update() instead of train() for the new data (and then save it again).
yeah it's working. thanks
Hi I'm facing the same situation. look my post please: http://answers.opencv.org/question/33363/how-to-createupdatedelete-an-face-stored-xml/