- scipy.misc.imread(name, flatten=0)¶
Read an image file from a filename.
name : str
The file name to be read.
flatten : bool, optional
If True, flattens the color layers into a single gray-scale layer.
imread : ndarray
The array obtained by reading image from file name.
The image is flattened by calling convert(‘F’) on the resulting image object.