# 调用函数前import scipy库
# 加载后调用 inshow 显示图片
scipy.misc.imread
scipy.misc.
imread
(path)
imread
is deprecated! imread
is deprecated in SciPy 1.0.0, and will be removed in 1.2.0. Use imageio.imread
instead.
Read an image from a file as an array.
This function is only available if Python Imaging Library (PIL) is installed.
Parameters: | name : str or file object
flatten : bool, optional If True, flattens the color layers into a single gray-s |
---|