imageio.imread

imageio.imread(uri)

  • uri:路径

从指定路径读取一张图片
Reads an image from the specified file. Returns a numpy array
Note that the image data is returned as-is, and may not always have a dtype of uint8 (and thus may differ from what e.g. PIL returns).

返回属性为np.arrayuint8255HWC

使用很简单

from imageio import imread
img1 = imread('1.jpg')
上一篇:opencv02


下一篇:python中OpenCV函数学习笔记