Face-Spoofing-Detection-or-Face-Liveness-Detection icon indicating copy to clipboard operation
Face-Spoofing-Detection-or-Face-Liveness-Detection copied to clipboard

Pre-trained models?

Open ingjieye opened this issue 7 years ago • 3 comments

Hello, great work out there. Could you please provide the pre-trained models? Thanks a lot!

ingjieye avatar Nov 13 '18 09:11 ingjieye

i need too,please supply it. We have more confidence to train our own models.

sunjunlishi avatar Nov 14 '18 09:11 sunjunlishi

cv::Ptrcv::ml::SVM svm = cv::ml::SVM::create(); svm->setType(cv::ml::SVM::Types::C_SVC); svm->setKernel(cv::ml::SVM::KernelTypes::LINEAR); svm->setC(10); svm->setTermCriteria(cv::TermCriteria(cv::TermCriteria::MAX_ITER, 100, 1e-6)); // params.termCrit = TermCriteria(TermCriteria::MAX_ITER, 100, 1e-6); cout << "training SVM......" << endl; try { svm->train(train_feature, cv::ml::SampleTypes::ROW_SAMPLE, train_label); cout << "training finished......" << endl; svm->save("color_texture_svm.xml"); } catch (cv::Exception& e) { cout << e.msg; }

sunjunlishi avatar Nov 14 '18 09:11 sunjunlishi

@wuyongchn

youthM avatar Sep 08 '19 11:09 youthM