← 返回首页
状态:已完成

【Python 代码】将PIL图像对象转换为numpy数组

from PIL import Image import numpy as np image = Image.open("example.png") array = np.array(image)