The SCFace database
Bases: sqlalchemy.ext.declarative.api.Base
Annotations of the SC face database consists of the left and right eye positions as well as the nose tip and the center of the mouth. There is exactly one annotation for each file.
Bases: sqlalchemy.ext.declarative.api.Base
Database clients, marked by an integer identifier and the group they belong to
Bases: bob.db.verification.utils.database.SQLiteDatabase, bob.db.verification.utils.database.ZTDatabase
The dataset class opens and maintains a connection opened to the Database.
It provides many different ways to probe for the characteristics of the data and for the data itself inside the database.
Returns the list of all File objects that satisfy your query. For possible keyword arguments, please check the implementation of the derived class Database.objects() function.
Returns the annotations for the image with the given file id.
Keyword Parameters:
Returns: the eye annotations as a dictionary {‘reye’:(y,x), ‘leye’:(y,x), ‘mouth’:(y,x), ‘nose’:(y,x)}.
Raise a RuntimeError if the database back-end is not available.
Checks the given parameter for validity, i.e., if it is contained in the set of valid parameters. If the parameter is ‘None’ or empty, the default_parameter will be returned, in case it is specified, otherwise a ValueError will be raised.
This function will return the parameter after the check tuple or list of parameters, or raise a ValueError.
Keyword parameters:
Checks the given parameters for validity, i.e., if they are contained in the set of valid parameters. It also assures that the parameters form a tuple or a list. If parameters is ‘None’ or empty, the default_parameters will be returned (if default_parameters is omitted, all valid_parameters are returned).
This function will return a tuple or list of parameters, or raise a ValueError.
Keyword parameters:
Returns the Client object in the database given a certain id. Raises an error if that does not exist.
Returns a set of Clients for the specific query by the user.
Keyword Parameters:
Returns: A list containing all the clients which have the given properties.
Returns the list of enrollment File objects from the given model id of the given protocol for the given groups that satisfy your query. If the model_id is None (the default), enrollment files for all models are returned. For possible keyword arguments, please check the implementation of the derived class Database.objects() function.
This function returns the list of original file names for the given list of File objects.
Keyword parameters:
Returns a list of File objects with the given file ids
Keyword Parameters:
Returns a list (that may be empty) of File objects.
Returns the list of genders: ‘m’ for male and ‘f’ for female
Returns the client_id attached to the given model_id
Keyword Parameters:
Returns: The client_id attached to the given model_id
Returns the names of all registered groups
Returns True if we have a client with a certain integer identifier
Tells if a certain protocol is available
Tells if a certain subworld is available
Returns if a valid session has been opened for reading the database.
Returns a set of models ids for the specific query by the user.
Keyword Parameters:
Returns: A list containing the ids of all models belonging to the given group.
Returns a set of models for the specific query by the user.
Keyword Parameters:
Returns: A list containing all the models belonging to the given group.
Returns a set of Files for the specific query by the user.
Keyword Parameters:
Returns: A list of Files with the given properties
This function returns the original file name for the given File object.
Keyword parameters:
This function returns the list of original file names for the given list of File objects.
Keyword parameters:
Returns a full file paths considering particular file ids, a given directory and an extension
Keyword Parameters:
Returns a list (that may be empty) of the fully constructed paths given the file ids.
Returns the list of probe File objects to probe the model with the given model id of the given protocol for the given groups that satisfy your query. If the model_id is None (the default), all possible probe files are returned. For possible keyword arguments, please check the implementation of the derived class Database.objects() function.
Returns the protocol object in the database given a certain name. Raises an error if that does not exist.
Returns all registered protocol names
Returns all registered protocol purposes
Returns all registered protocols
Returns True if the given protocol specifies file sets for probes, instead of a single probe file. In this default implementation, False is returned, throughout. If you need different behavior, please overload this function in your derived class.
Returns the list of allowed purposes
Creates a query to the database using the given arguments.
Reverses the lookup: from certain paths, return a list of File objects
Keyword Parameters:
Returns a list (that may be empty).
Returns all registered subworld names
Returns the list of subworlds
Returns the list of T-Norm model enrollment File objects from the given model id of the given protocol for the given group that satisfy your query. For possible keyword arguments, please check the implementation of the derived class Database.objects() function.
Returns the list of model ids used for T-Norm of the given protocol for the given group that satisfy your query. For possible keyword arguments, please check the implementation of the derived class Database.objects() function.
Returns a set of T-Norm clients for the specific query by the user.
Keyword Parameters:
Returns: A list containing all the clients belonging to the given group.
Returns the list of all test File objects of the given groups that satisfy your query. Test objects are all File objects that serve either for enrollment or probing. For possible keyword arguments, please check the implementation of the derived class Database.objects() function.
Returns a set of T-Norm model ids for the specific query by the user.
Keyword Parameters:
Returns: A list containing the ids of all T-Norm models.
Returns a set of T-Norm models for the specific query by the user.
Keyword Parameters:
Returns: A list containing all the T-Norm models.
Keyword Parameters:
Returns: A set of Files with the given properties
Returns the list of all training (world) File objects that satisfy your query. For possible keyword arguments, please check the implementation of the derived class Database.objects() function.
Sorts the given list of File objects and removes duplicates from it.
Keyword parameters:
Returns the list of Z-Norm probe File objects to probe the model with the given model id of the given protocol for the given group that satisfy your query. For possible keyword arguments, please check the implementation of the derived class Database.objects() function.
Returns a set of Z-Norm clients for the specific query by the user.
Keyword Parameters:
Returns: A list containing all the models belonging to the given group.
Returns a set of Files to perform Z-norm score normalization.
Keyword Parameters:
Returns: A set of Files
Bases: sqlalchemy.ext.declarative.api.Base, bob.db.verification.utils.file.File
Generic file container
Wraps the current path so that a complete path is formed
Keyword parameters:
Returns a string containing the newly generated file path.
Saves the input data at the specified location and using the given extension.
Keyword parameters:
Bases: sqlalchemy.ext.declarative.api.Base
SCface protocols
Bases: sqlalchemy.ext.declarative.api.Base
SCface protocol purposes