What are proper SVMParams to use for texture analysis? [closed]

asked 2014-10-29 14:09:11 -0600

FR gravatar image

updated 2020-10-27 05:25:46 -0600

I'm working on a face spoof detector using the research in the article called: "Face spoofing detection from single images using micro-texture analysis"

It's based on training an SVM using a uniform 59-bin LBP histogram of the face, with training database from http://parnec.nuaa.edu.cn/xtan/NUAAImposterDB_download.html. I made a simpler implementation just using 3x3 neighborhood of the entire face, because other research shows that simpler analysis works better when used in conjunction with other classifiers, which I am doing.

The problem I have now is that the predictor is not working at all; it always return 1 (i.e., real face), even for fake photos from the training database itself!

My suspicion is maybe the SVMParams are not correct. What are the proper params in this implementation? This is what I have now:

svmParams.svm_type = cv::SVM::C_SVC;
svmParams.kernel_type = cv::SVM::RBF;
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-27 05:25:15.447031