Long Distance Heterogeneous Face Database (LDHF-DB)

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

Returns a string containing the configuration information.

class bob.db.nivl.Annotation(file_id, le_x, le_y, re_x, re_y)[source]

Bases: sqlalchemy.ext.declarative.api.Base

  • Annotation.id
  • x
  • y
file_id
le_x
le_y
re_x
re_y
class bob.db.nivl.Client(id, group)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Information about the clients (identities) of the LDHF.

id
class bob.db.nivl.Database(original_directory=None, original_extension=None)[source]

Bases: bob.db.base.SQLiteDatabase

Wrapper class for the Near-Infrared and Visible-Light (NIVL) Dataset

protocols()[source]
purposes()[source]
annotations(file, annotation_type='eyes_center')[source]

This function returns the annotations for the given file id as a dictionary.

Parameters

file: bob.db.base.File
The File object you want to retrieve the annotations for,
Return
A dictionary of annotations, for face images usually something like {‘leye’:(le_y,le_x), ‘reye’:(re_y,re_x), …}, or None if there are no annotations for the given file ID (which is the case in this base class implementation).
objects(groups=None, protocol=None, purposes=None, model_ids=None, modality=None, **kwargs)[source]

This function returns lists of File objects, which fulfill the given restrictions.

get_client_by_id(client_id)[source]

Get the client object from its ID

model_ids(protocol=None, groups=None)[source]
groups(protocol=None, **kwargs)[source]

This function returns the list of groups for this database.

clients(protocol=None, groups=None)[source]
zclients(protocol=None)[source]

Returns a set of Z-Norm clients for the specific query by the user.

tclients(protocol=None)[source]

Returns a set of T-Norm clients for the specific query by the user.

zobjects(protocol=None, groups=None)[source]

Returns a set of Z-Norm objects for the specific query by the user.

tobjects(protocol=None, model_ids=None, groups=None)[source]

Returns a set of T-Norm objects for the specific query by the user.

tmodel_ids(groups=None, protocol=None, **kwargs)[source]

This function returns the ids of the T-Norm models of the given groups for the given protocol.

modality_separator
modalities
class bob.db.nivl.File(file_id, image_name, client_id, modality, session, year)[source]

Bases: sqlalchemy.ext.declarative.api.Base, bob.db.base.File

Information about the files of the LDHF database.

Each file includes * the client id

modality_choices = ('VIS', 'NIR')
id
path
client
all_annotations
client_id
modality
session
year
annotations(annotation_type='eyes_center')[source]
class bob.db.nivl.Protocol_File_Association(protocol, group, purpose, file_id)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Describe the protocols

protocol
group
purpose
file_id