← 返回首页
状态:已完成

【Python 代码】使用numpy库加载图像数据为数组

import numpy as np from PIL import Image image = Image.open('image.jpg') array = np.array(image)