Python API

This is the Bob database entry for the PUT Vein database

bob.db.putvein.get_config()[source]

Returns a string containing the configuration information.

class bob.db.putvein.Database[source]

Bases: object

check_ids_validity(ids, max_value)[source]

Checks validity of client ids

check_validity(l, obj, valid, default)[source]

Checks validity of user input data against a set of valid values

objects(protocol=None, purposes=None, ids=None, groups=None, kinds=None)[source]

Returns a set of Files for the specific query by the user.

Keyword Parameters:

protocol
One of the PUT protocols (‘L’, ‘R’, ‘LR’, ‘RL’).
purposes
The purposes required to be retrieved (‘enroll’, ‘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 “train” group.
ids
Only retrieves the files for the provided list of client ids. If ‘None’ is given (this is the default), no filter over the ids is performed.
groups
One of the groups (‘train’, ‘dev’, ‘eval’) 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.
kinds
One of the protocolar kinds of data (‘palm’, ‘wrist’), 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.putvein.File(filename, id, mirrored=False)[source]

Bases: object

Generic file container

get_client_id()[source]
is_mirrored()[source]
load(directory=None)[source]

Loads the data at the specified location.

Keyword parameters:

directory
[optional] If not empty or None, this directory is prefixed to the final file destination
make_path(directory=None)[source]

Wraps this files’ filename so that a complete path is formed

Keyword parameters:

directory
An optional directory name that will be prefixed to the returned result.

Returns a string containing the newly generated file path.