matplotlib.pyplot.
imread
(fname, format=None)[source]¶Read an image from a file into an array.
Parameters: |
|
---|---|
Returns: |
|
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.