Commit 29073826 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Merge branch 'label' into 'master'

Add padfile to label. Useful for deeplearning

See merge request !25
parents 925411b9 f947066f
Pipeline #16418 passed with stages
in 23 minutes and 49 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
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment