from PIL import Image
test_image = Image.open(path_to_image)
matrix_image = np.array(test_image)
Python PIL
最新推荐文章于 2024-06-06 08:25:23 发布
from PIL import Image
test_image = Image.open(path_to_image)
matrix_image = np.array(test_image)