其他分享
首页 > 其他分享> > imageio.imread

imageio.imread

作者:互联网

imageio.imread(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')

标签:imageio,may,image,uint8,imread,array
来源: https://blog.csdn.net/weixin_41978699/article/details/121443640