FaceSpoofingDetection icon indicating copy to clipboard operation
FaceSpoofingDetection copied to clipboard

Steps to run the program

Open cserezwan opened this issue 7 years ago • 5 comments

Hello. Can you please explain the steps to run this code? Like how to run this program.

cserezwan avatar Apr 09 '18 19:04 cserezwan

While running the train and testing file it's showing the following error: image

Can anyone give me the solution of this error?

cserezwan avatar Apr 20 '18 18:04 cserezwan

Hello, Sorry for the late reply. I modified my code for readability.

First of all, you should down load Database for face spoofing such as CASIA, Idiap and MSU. Folder structure is like below. CASIA -> test_release -> image files -> train_release -> image files

Idiap -> test -> image files -> train -> image files

MSUMFSD-> "each folders of client" -> image files

Secondly, I used LibSVM. So, you have to include libSVM for Matlab.

And, just run "training.m" <--- spend so many time. If you want simple test, just run for a database. After finishing upper step, run "trainingAndTesting_JGP.m"

Following upper step, you can run this program.

kimna4 avatar May 10 '18 08:05 kimna4

Thanks for the reply. I've followed your instructions to run the program. Now I'm having a different problem. While running the "trainingAndTesting_JGP.m" file, I'm getting the following error:

`Undefined function or variable 'getHTER'.

Error in trainingAndTesting_JPG (line 343) [acc HTER ] = getHTER( Idiap_predict_label, Idiap_TestLabel, numFrames);`

image

Can you please give me some instructions to solve this error? Thanks in advance.

cserezwan avatar May 20 '18 17:05 cserezwan

I uploaded the 'getHTER.m' file. You can use it. Thank you.

kimna4 avatar May 21 '18 13:05 kimna4

Thanks for the file.

cserezwan avatar May 21 '18 15:05 cserezwan