def add_from_db(self, database, files):
    """Adds images and bounding boxes for the given files of a database that follows the :py:ref:`bob.bio.base.database.BioDatabase <bob.bio.base>` interface.

    **Parameters:**

    ``database`` : a derivative of :py:class:`bob.bio.base.database.BioDatabase`
      The database interface, which provides file names and annotations for the given ``files``

    ``files`` : :py:class:`bob.bio.base.database.BioFile` or compatible
      The files (as returned by :py:meth:`bob.bio.base.database.BioDatabase.objects`) which should be added to the training list
    """
    for f in files:
      annotation = database.annotations(f)
      image_path = database.original_file_name(f)
      self.add_image(image_path, [annotation])
def add_from_db ( self , database , files ) : for f in files : annotation = database . annotations ( f ) image_path = database . original_file_name ( f ) self . add_image ( image_path , [ annotation ] )
Adds images and bounding boxes for the given files of a database that follows the :py:ref:`bob.bio.base.database.BioDatabase <bob.bio.base>` interface.

    **Parameters:**

    ``database`` : a derivative of :py:class:`bob.bio.base.database.BioDatabase`
      The database interface, which provides file names and annotations for the given ``files``

    ``files`` : :py:class:`bob.bio.base.database.BioFile` or compatible
      The files (as returned by :py:meth:`bob.bio.base.database.BioDatabase.objects`) which should be added to the training list