matplotlib.pyplot.
imread
(fname, format=None)[source]¶Read an image from a file into an array.
Parameters: | fname : str or file-like
format : str, optional
|
---|---|
Returns: | imagedata :
|
Notes
Matplotlib can only read PNGs natively. Further image formats are supported via the optional dependency on Pillow. Note, URL strings are not compatible with Pillow. Check the Pillow documentation for more information.
matplotlib.pyplot.imread
¶