The Biosecure database
Bases: sqlalchemy.ext.declarative.api.Base
Annotations of the BioSecure database consists only of the left and right eye positions. 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
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)}.
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 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
Returns if a valid session has been opened for reading the database.
Returns a list of model 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 filenames for the specific query by the user. WARNING: Files used as impostor access for several different models are only listed one and refer to only a single model
Keyword Parameters:
Returns: A list of files which have 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 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 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:
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
Biosecure protocols
Bases: sqlalchemy.ext.declarative.api.Base
Biosecure protocol purposes