Commit b52f318b authored by Yannick DAYER's avatar Yannick DAYER
Browse files

[py] Adaptation of the databases to bob pipelines.

parent 3e85cbc9
...@@ -11,17 +11,28 @@ the link. ...@@ -11,17 +11,28 @@ the link.
""" """
from bob.extension import rc
from ..database.fv3d import Database from ..database.fv3d import Database
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
_fv3d_directory = "[YOUR_FV3D_DIRECTORY]" _fv3d_directory = rc["bob.db.fv3d.directory"]
"""Value of ``~/.bob_bio_databases.txt`` for this database""" """Value in ``~/.bobrc`` for this dataset directory"""
database = Database( legacy_database = Database(
original_directory = _fv3d_directory, original_directory = _fv3d_directory,
original_extension = '.png', original_extension = '.png',
) )
"""The :py:class:`bob.bio.base.database.BioDatabase` derivative with fv3d """The :py:class:`bob.bio.base.database.BioDatabase` derivative with fv3d
database settings database settings
"""
database = DatabaseConnector(
legacy_database,
annotation_type=None,
fixed_positions=None
)
"""
The database interface wrapped for vanilla-biometrics
.. warning:: .. warning::
...@@ -29,16 +40,10 @@ database settings ...@@ -29,16 +40,10 @@ database settings
manner, respecting usage protocols. It does **not** contain the raw manner, respecting usage protocols. It does **not** contain the raw
datafiles. You should procure those yourself. datafiles. You should procure those yourself.
Notice that ``original_directory`` is set to ``[YOUR_FV3D_DIRECTORY]``. You Notice that ``original_directory`` is set to ``rc[bob.db.fv3d.directory]``. You
must make sure to create ``${HOME}/.bob_bio_databases.txt`` setting this value must make sure to set this value with ``bob config set bob.db.fv3d.directory``
to the place where you actually installed the `3D Fingervein`_ Database, as to the place where you actually installed the `3D Fingervein`_ dataset, as
explained in the section :ref:`bob.bio.vein.baselines`. explained in the section :ref:`bob.bio.vein.baselines`.
""" """
protocol = 'central' protocol = 'central' # TODO protocol implementation in bob pipelines?
"""The default protocol to use for tests
You may modify this at runtime by specifying the option ``--protocol`` on the
command-line of ``verify.py`` or using the keyword ``protocol`` on a
configuration file that is loaded **after** this configuration resource.
"""
...@@ -16,17 +16,29 @@ You can download the raw data of the `PUT Vein`_ database by following ...@@ -16,17 +16,29 @@ You can download the raw data of the `PUT Vein`_ database by following
the link. the link.
""" """
from bob.extension import rc
from ..database.putvein import PutveinBioDatabase from ..database.putvein import PutveinBioDatabase
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
_putvein_directory = "[YOUR_PUTVEIN_IMAGE_DIRECTORY]" _putvein_directory = rc["bob.db.putvein.directory"]
"""Value of ``~/.bob_bio_databases.txt`` for this database""" """Value in ``~/.bobrc`` for this dataset directory"""
database = PutveinBioDatabase( legacy_database = PutveinBioDatabase(
original_directory = _putvein_directory, original_directory = _putvein_directory,
original_extension = '.bmp', original_extension = '.bmp',
) )
"""The :py:class:`bob.bio.base.database.BioDatabase` derivative with PUT Vein """The :py:class:`bob.bio.base.database.BioDatabase` derivative with PUT Vein
database settings database settings
"""
database = DatabaseConnector(
legacy_database,
annotation_type=None,
fixed_positions=None
)
"""
The database interface wrapped for vanilla-biometrics
.. warning:: .. warning::
...@@ -34,13 +46,14 @@ database settings ...@@ -34,13 +46,14 @@ database settings
manner, respecting usage protocols. It does **not** contain the raw manner, respecting usage protocols. It does **not** contain the raw
datafiles. You should procure those yourself. datafiles. You should procure those yourself.
Notice that ``original_directory`` is set to ``[YOUR_PUTVEIN_IMAGE_DIRECTORY]``. Notice that ``original_directory`` is set to ``rc[bob.db.putvein.directory]``.
You must make sure to create ``${HOME}/.bob_bio_databases.txt`` setting this You must make sure to set this value with
value to the place where you actually installed the PUT Vein Database, as ``bob config set bob.db.putvein.directory`` to the place where you actually
explained in the section :ref:`bob.bio.vein.baselines`. installed the `put vein`_ dataset, as explained in the section
:ref:`bob.bio.vein.baselines`.
""" """
protocol = 'wrist-LR_1' protocol = 'wrist-LR_1' # TODO protocol implementation in bob pipelines?
"""The default protocol to use for tests """The default protocol to use for tests
You may modify this at runtime by specifying the option ``--protocol`` on the You may modify this at runtime by specifying the option ``--protocol`` on the
......
...@@ -17,16 +17,27 @@ You can download the raw data of the `UTFVP`_ database by following the link. ...@@ -17,16 +17,27 @@ You can download the raw data of the `UTFVP`_ database by following the link.
.. include:: links.rst .. include:: links.rst
""" """
from bob.extension import rc
from ..database.utfvp import Database from ..database.utfvp import Database
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
_utfvp_directory = "[YOUR_UTFVP_DIRECTORY]" _utfvp_directory = rc["bob.db.utfvp.directory"]
"""Value of ``~/.bob_bio_databases.txt`` for this database""" """Value in ``~/.bobrc`` for this dataset directory"""
database = Database( legacy_database = Database(
original_directory = _utfvp_directory, original_directory = _utfvp_directory,
original_extension = '.png', original_extension = '.png',
) )
"""The :py:class:`bob.bio.base.database.BioDatabase` derivative with UTFVP settings """The :py:class:`bob.bio.base.database.BioDatabase` derivative with UTFVP settings
"""
database = DatabaseConnector(
legacy_database,
annotation_type=None,
fixed_positions=None
)
"""
The database interface wrapped for vanilla-biometrics
.. warning:: .. warning::
...@@ -34,16 +45,13 @@ database = Database( ...@@ -34,16 +45,13 @@ database = Database(
manner, respecting usage protocols. It does **not** contain the raw manner, respecting usage protocols. It does **not** contain the raw
datafiles. You should procure those yourself. datafiles. You should procure those yourself.
Notice that ``original_directory`` is set to ``[YOUR_UTFVP_DIRECTORY]``. Notice that ``original_directory`` is set to ``rc[bob.db.utfvp.directory]``.
You must make sure to create ``${HOME}/.bob_bio_databases.txt`` setting this You must make sure to set this value with
value to the place where you actually installed the Verafinger Database, as ``bob config set bob.db.utfvp.directory`` to the place where you actually
explained in the section :ref:`bob.bio.vein.baselines`. installed the `utfvp`_ dataset, as explained in the section
:ref:`bob.bio.vein.baselines`.
""" """
protocol = 'nom'
"""The default protocol to use for tests
You may modify this at runtime by specifying the option ``--protocol`` on the
command-line of ``verify.py`` or using the keyword ``protocol`` on a protocol = 'nom' # TODO protocol implementation in bob pipelines?
configuration file that is loaded **after** this configuration resource.
"""
...@@ -17,15 +17,11 @@ from bob.bio.vein.database.verafinger import Database ...@@ -17,15 +17,11 @@ from bob.bio.vein.database.verafinger import Database
from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector from bob.bio.base.pipelines.vanilla_biometrics import DatabaseConnector
_verafinger_directory = rc["bob.db.verafinger.directory"] _verafinger_directory = rc["bob.db.verafinger.directory"]
"""Value of ``~/.bobrc`` for this database""" """Value in ``~/.bobrc`` for this dataset directory"""
protocol = 'Nom' protocol = 'Nom' # TODO protocol implementation in bob pipelines?
"""The default protocol to use for tests """The default protocol to use for tests
You may modify this at runtime by specifying the option ``--protocol`` on the
command-line of ``verify.py`` or using the keyword ``protocol`` on a
configuration file that is loaded **after** this configuration resource.
We accept any biometric recognition protocol implemented by bob.db.verafinger. We accept any biometric recognition protocol implemented by bob.db.verafinger.
Variants of the biometric recognition protocol ending in ``-va`` can be used to Variants of the biometric recognition protocol ending in ``-va`` can be used to
test for vulnerability analysis. For example, use the protocol ``Nom-va`` to test for vulnerability analysis. For example, use the protocol ``Nom-va`` to
...@@ -42,9 +38,8 @@ database = DatabaseConnector(Database( ...@@ -42,9 +38,8 @@ database = DatabaseConnector(Database(
annotation_type=None, annotation_type=None,
fixed_positions=None fixed_positions=None
) )
"""The :py:class:`bob.bio.base.database.BioDatabase` derivative with Verafinger """The :py:class:`bob.bio.base.database.BioDatabase` derivative with Verafinger
database settings database settings, wrapped with the vanilla-biometrics database connector.
.. warning:: .. warning::
...@@ -52,8 +47,9 @@ database settings ...@@ -52,8 +47,9 @@ database settings
manner, respecting usage protocols. It does **not** contain the raw manner, respecting usage protocols. It does **not** contain the raw
datafiles. You should procure those yourself. datafiles. You should procure those yourself.
Notice that ``original_directory`` is set to ``[YOUR_VERAFINGER_DIRECTORY]``. Notice that ``original_directory`` is set to
You must make sure to create ``${HOME}/.bob_bio_databases.txt`` setting this ``rc[bob.db.verafinger.directory]``. You must make sure to set this value with
value to the place where you actually installed the Verafinger Database, as ``bob config set bob.db.verafinger.directory`` to the place where you actually
explained in the section :ref:`bob.bio.vein.baselines`. installed the `vera fingervein`_ dataset, as explained in the section
:ref:`bob.bio.vein.baselines`.
""" """
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment