BiosecurId Database¶
The BiosecurID database
-
bob.db.biosecurid.face.
get_config
()[source]¶ Returns a string containing the configuration information.
-
class
bob.db.biosecurid.face.
Client
(id, group)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
Database clients, marked by an integer identifier and the group they belong to
-
group_choices
= ('world', 'clientDev', 'impostorDev', 'clientEval', 'impostorEval')¶
-
id
¶
-
sgroup
¶
-
-
class
bob.db.biosecurid.face.
Database
(original_directory=None, original_extension='.bmp')[source]¶ Bases:
bob.db.base.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.
-
client
(id)[source]¶ Returns the client object in the database given a certain id. Raises an error if that does not exist.
-
client_groups
()[source]¶ Returns the names of the XM2VTS groups. This is specific to this database which does not have separate training, development and evaluation sets.
-
clients
(protocol=None, groups=None)[source]¶ Returns a list of
Client
for the specific query by the user.Keyword Parameters:
- protocol
- Ignored.
- groups
- The groups to which the clients belong either from (‘dev’, ‘eval’, ‘world’) or the specific XM2VTS ones from (‘client’, ‘impostorDev’, ‘impostorEval’) Note that ‘dev’, ‘eval’ and ‘world’ are alias for ‘client’. If no groups are specified, then both clients are impostors are listed.
Returns: A list containing all the clients which have the given properties.
-
model_ids
(protocol=None, groups=None)[source]¶ - Returns a list of model ids for the specific query by the user.
- Models correspond to Clients for the XM2VTS database (At most one model per identity).
Keyword Parameters:
- protocol
- Ignored.
- groups
- The groups to which the subjects attached to the models belong (‘dev’, ‘eval’, ‘world’) Note that ‘dev’, ‘eval’ and ‘world’ are alias for ‘client’. If no groups are specified, then both clients are impostors are listed.
- Returns: A list containing all the model ids (model <-> client in XM2VTS) belonging
- to the given group.
-
models
(protocol=None, groups=None)[source]¶ - Returns a list of
Client
for the specific query by the user. - Models correspond to Clients for the XM2VTS database (At most one model per identity).
Keyword Parameters:
- protocol
- Ignored.
- groups
- The groups to which the subjects attached to the models belong (‘dev’, ‘eval’, ‘world’) Note that ‘dev’, ‘eval’ and ‘world’ are alias for ‘client’. If no groups are specified, then both clients are impostors are listed.
- Returns: A list containing all the models (model <-> client in BiosecurID) belonging
- to the given group.
- Returns a list of
-
objects
(protocol=None, purposes=None, model_ids=None, groups=None, classes=None)[source]¶ Returns a list of
File
for the specific query by the user.Keyword Parameters:
- protocol
- One of the Biosecurid protocols (‘A’).
- purposes
- The purposes required to be retrieved (‘enrol’, ‘probe’) or a tuple with several of them. If ‘None’ is given (this is the default), it is considered the same as a tuple with all possible values. This field is ignored for the data from the “world” group.
- model_ids
- Only retrieves the files for the provided list of model ids (claimed client id). The model ids are string. If ‘None’ is given (this is the default), no filter over the model_ids is performed.
- groups
- One of the groups (‘dev’, ‘eval’, ‘world’) or a tuple with several of them. If ‘None’ is given (this is the default), it is considered the same as a tuple with all possible values.
- classes
- The classes (types of accesses) to be retrieved (‘client’, ‘impostor’) or a tuple with several of them. If ‘None’ is given (this is the default), it is considered the same as a tuple with all possible values.
Returns: A list of
File
objects.
-
-
class
bob.db.biosecurid.face.
File
(client_id, path, session_id, shot_id)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
,bob.db.base.File
Generic file container
-
client
¶
-
client_id
¶
-
id
¶
-
path
¶
-
session_id
¶
-
shot_id
¶
-