Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.io.image
Commits
35817f88
Commit
35817f88
authored
Oct 11, 2016
by
Manuel Günther
Browse files
Fixed documentation issue
parent
9cb57861
Pipeline
#4707
failed with stages
in 4 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/io/image/__init__.py
View file @
35817f88
...
...
@@ -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:**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment