OpenCV SVM Train -
i using svm.train command (with appropriate parameters defined) opencv. next, instead of using svm.predict, want use algorithm classification purpose. possible? can access support vectors generated while training? if so, how ?
yes can. save support vectors after training in xml file. looks this:
clasificador = new cvsvm(trainingdata, classes, new mat(), new mat(), params); clasificador.save(xml);
now can define own classificador. guess did it. on write method should this
clasificador.load( new file( xml ).getabsolutepath() );
Comments
Post a Comment