diff --git a/bob/bio/face/preprocessor/Base.py b/bob/bio/face/preprocessor/Base.py index 9a939368e8d8ea27c5fe10cd54696b99c60fff7e..28bd20661c25ceed91fb39b43a8daa53daa937c5 100644 --- a/bob/bio/face/preprocessor/Base.py +++ b/bob/bio/face/preprocessor/Base.py @@ -63,7 +63,7 @@ class Base (Preprocessor): """data_type(image) -> image Converts the given image into the data type specified in the constructor of this class. - If no data type was specified, no conversion is performed. + If no data type was specified, or the ``image`` is ``None``, no conversion is performed. **Parameters:** @@ -75,7 +75,7 @@ class Base (Preprocessor): image : 2D or 3D :py:class:`numpy.ndarray` The image converted to the desired data type, if any. """ - if self.dtype is not None: + if self.dtype is not None and image is not None: image = image.astype(self.dtype) return image diff --git a/doc/conf.py b/doc/conf.py index 4915c472e71ecd7ca6977b3d4f06571d15f5c503..e410c6506f7a957dd5b21c2ff22f06d64914a4fa 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -246,7 +246,7 @@ autodoc_default_flags = ['members', 'inherited-members', 'show-inheritance'] # For inter-documentation mapping: from bob.extension.utils import link_documentation -intersphinx_mapping = link_documentation(['python', 'numpy', 'bob.bio.gmm', 'bob.bio.csu', 'bob.db.lfw']) +intersphinx_mapping = link_documentation(['python', 'numpy', 'bob.bio.gmm', 'bob.bio.video', 'bob.bio.csu', 'bob.db.lfw']) def skip(app, what, name, obj, skip, options): diff --git a/doc/index.rst b/doc/index.rst index 1682a3600eb8b993bc1ef035a80f6f73076a87a4..be7e8c2c283f62f1536be514dc500a9f71c2035f 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -20,6 +20,7 @@ This includes: Additionally, a set of baseline algorithms are defined, which integrate well with the two other ``bob.bio`` packages: * :ref:`bob.bio.gmm <bob.bio.gmm>` defines algorithms based on Gaussian mixture models +* :ref:`bob.bio.video <bob.bio.video>` uses face recognition algorithms in video frames * :ref:`bob.bio.csu <bob.bio.csu>` provides wrapper classes of the `CSU Face Recognition Resources <http://www.cs.colostate.edu/facerec>`_ (only Python 2.7 compatible) For more detailed information about the structure of the ``bob.bio`` packages, please refer to the documentation of :ref:`bob.bio.base <bob.bio.base>`.