Commit f947066f authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Add padfile to label. Useful for deeplearning

parent 663b0f4d
Pipeline #15871 failed with stages
in 4 minutes and 45 seconds
......@@ -6,6 +6,23 @@ from . import evaluation
from . import script
from . import test
def padfile_to_label(padfile):
"""Returns an integer presenting the label of the current sample.
padfile : :any:`bob.pad.base.database.PadFile`
A pad file.
True (1) if it is a bona-fide sample, False (O) otherwise.
return padfile.attack_type is None
def get_config():
"""Returns a string containing the configuration information.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment