I'm trying to load a xml file using a SVM object.
While running this following code:
svmNew = SVM::load<SVM>("Liveness_classifier.xml");
It's showing the following error:
error: expected primary-expression before ‘>’ token
If I change the code like this:
svmNew = SVM::load("Liveness_classifier.xml");
Then it's showing the following error:
(.text+0xa7f): undefined reference to `lbp::OLBP(cv::Mat const&, cv::Mat&)'
collect2: error: ld returned 1 exit status
Does anyone have any solution for this kind of error?
I'm using Ubuntu 16.4 and OpenCV3.4, and this is C++ code.