Python API¶
This is the Bob database entry for the PUT Vein database
-
class
bob.db.putvein.
Database
[source]¶ Bases:
object
-
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.
-