From af91bf694008148ff455386134f974a3a103cfd0 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Fri, 11 Apr 2014 10:26:19 -0400 Subject: [PATCH] minor SVM bug fix --- openbr/plugins/svm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbr/plugins/svm.cpp b/openbr/plugins/svm.cpp index 97156ca..a6ff7b9 100644 --- a/openbr/plugins/svm.cpp +++ b/openbr/plugins/svm.cpp @@ -74,7 +74,7 @@ static void trainSVM(SVM &svm, Mat data, Mat lab, int kernel, int type, float C, svm.train_auto(data, lab, Mat(), Mat(), params, 5); } catch (...) { qWarning("Some classes do not contain sufficient examples or are not discriminative enough for accurate SVM classification."); - svm.train(data, lab); + svm.train(data, lab, Mat(), Mat(), params); } } else { params.C = C; -- libgit2 0.21.4