Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Just check up loading before using your svm classifier:

Blockquote

CvSVM *mySVM = new CvSVM;

mySVM->load("mySVM.xml");

int in= mySVM->get_support_vector_count();

if(in)

mySVM->predict(DataRow);

Blockquote

get_support_vector_count() retuns 0 if your resource isn't loaded.