From 1c26599b3b8c7c75183c7a7ac3cc8a8a43f2b34d Mon Sep 17 00:00:00 2001 From: Guillaume HEUSCH <guillaume.heusch@idiap.ch> Date: Tue, 15 Jan 2019 09:45:04 +0100 Subject: [PATCH] [config] added casiasurf config file --- bob/pad/face/config/casiasurf.py | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 bob/pad/face/config/casiasurf.py diff --git a/bob/pad/face/config/casiasurf.py b/bob/pad/face/config/casiasurf.py new file mode 100644 index 00000000..ee42612a --- /dev/null +++ b/bob/pad/face/config/casiasurf.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python +"""CASIA-SURF is a database for face PAD experiments. + +""" + +from bob.pad.face.database import CasiaSurfPadDatabase + +# Directory where the data files are stored. +# This directory is given in the .bob_bio_databases.txt file located in your home directory +original_directory = "[YOUR_CASIASURF_DB_DIRECTORY]" +"""Value of ``~/.bob_bio_databases.txt`` for this database""" + +original_extension = ".jpg" # extension is not used to load the data in the HLDI of this database + +database = CasiaSurfPadDatabase( + protocol='classification', + original_directory=original_directory, + original_extension=original_extension, +) +"""The :py:class:`bob.pad.base.database.PadDatabase` derivative with CASIA-SURF +database settings. + +.. warning:: + + This class only provides a programmatic interface to load data in an orderly + manner, respecting usage protocols. It does **not** contain the raw + data files. You should procure those yourself. + +Notice that ``original_directory`` is set to ``[YOUR_CASIASURF_DB_DIRECTORY]``. +You must make sure to create ``${HOME}/.bob_bio_databases.txt`` setting this +value to the place where you actually installed the CASIA-SURF Database, as +explained in the section :ref:`bob.pad.face.baselines`. +""" -- GitLab