1 | initial version |
you can save your train input as csv, like:
1, 0.2324
0, 0.1487
^ ^
label EAR value
and later use loadFromCSV() to feed your SVM:
Ptr<svm> svm = SVM::create(); Ptr<traindata> tdata = TrainData::loadFromCSV("my.csv",0,0,1); svm->train(tdata);
2 | No.2 Revision |
you can save your train input as csv, like:
1, 0.2324
0, 0.1487
^ ^
label EAR value
and later use loadFromCSV() to feed your SVM:
Ptr<svm>
Ptr<SVM>
svm = SVM::create();