back soft

مطالب مرتبط با «feature class» در back soft | نویسنده: استخدام کار

SVM classifier after eigenfaces feature extraction. i am having an error saying assertation failed. Can anyone help? Putting my sample code below

Vote count: 0 Error seems to be on this line: Ptr tData = ml::TrainData::create(_projections, ml::SampleTypes::ROW_SAMPLE, _labels); From this code: Ptr svm = ml::SVM::create(); svm->setType(ml::SVM::C_SVC); svm->setKeel(ml::SVM::LINEAR); svm->setGamma(3); svm->setTermCriteria(TermCriteria(TermCriteria::MAX_ITER, 100, 1e-6)); Ptr tData = ml::TrainData::create(_projections, ml::SampleTypes::ROW_SAMPLE, _labels); cout predict(q); cout...

ادامه مطلب