Read svm data and re-train with more data
I am implementing a facial expression recognition and am using SVM to classify given expression. When I train, I use this command line
svm.train(myFeatureVector,myLabels,Mat(),Mat(), myParameters);
svm.save("myClassifier.yml");
which will later when I will predict using
response = svm.predict(incomingFeatureVector);
But then when I want to train more than once (exited the program and start again), it seems to have overwritten my previous svm file. Is there any way I could do read previous svm file and add more data into it (and then resave it ,etc) ? I looked up on this openCV documentation and found nothing. However, when I read on this page; there is a method called CvSVM::read. I don't know what that does/how to implement it.
Hope anyone can help me :(
since your data does not really change, i don't understand, why you want to retrain this at all.
wouldn't it be sufficient, to train this once on a significantly large db, and leave it at that ?
( then, instead of calling svm.train(), and svm.save() you'd just call svm.read("myClassifier.yml"); )