【Python代码】图像的数组表示

from PIL import Image
import numpy as np
im = np.array(Image.open("C:/Users/xpp/Desktop/Lena.png"))
print(im.shape,im.dtype)

在这里插入图片描述
在这里插入图片描述
扫码关注“图像处理与模式识别”解锁更多技能呦。

猜你喜欢

转载自blog.csdn.net/qq_41985559/article/details/109034299