from PIL import Image
import numpy as np
im = np.array(Image.open("C:/Users/xpp/Desktop/Lena.png"))
print(im.shape,im.dtype)
扫码关注“图像处理与模式识别”解锁更多技能呦。
from PIL import Image
import numpy as np
im = np.array(Image.open("C:/Users/xpp/Desktop/Lena.png"))
print(im.shape,im.dtype)
扫码关注“图像处理与模式识别”解锁更多技能呦。