specio
.get_reader¶
-
specio.
get_reader
(uri, format=None, **kwargs)[source][source]¶ Return a Reader instance.
Returns a
Reader
object which can be used to read data and meta data from the specified file.Parameters: uri : {str, file}
The resource to load the image from, e.g. a filename.
format : str
The format to use to read the file. By default specio selects the appropriate for you based on the filename and its contents.
kwargs : dict
Further keyword arguments are passed to the reader. See
help()
to see what arguments are available for a particular format.Returns: reader : Format.Reader
specio.Reader
instance allowing to read the data.