Skip to content
Snippets Groups Projects
Commit 35817f88 authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed documentation issue

parent 9cb57861
No related branches found
No related tags found
1 merge request!20[Automatic] update links and the ci mostly
Pipeline #
......@@ -20,14 +20,14 @@ def get_config():
return bob.extension.get_config(__name__, version.externals)
def load(filename, extension=None):
"""load(filename) -> image
"""load(filename, extension) -> image
This function loads and image from the file with the specified ``filename``.
The type of the image will be determined based on the ``extension`` parameter, which can have the following values:
- ``None``: The file name extension of the ``filename`` is used to determine the image type.
- ``'auto'``: The type of the image will be detected automatically, using the :py:mod:`imghdr` module.
- ``'.xxx`'': The image type is determined by the given extension.
- ``'auto'``: The type of the image will be detected automatically, using :py:func:`bob.io.image.get_correct_image_extension`.
- ``'.xxx'``: The image type is determined by the given extension.
For a list of possible extensions, see :py:func:`bob.io.base.extensions` (only the image extensions are valid here).
**Parameters:**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment