📜  rgb 转灰度 python opencv - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:45.561000             🧑  作者: Mango

代码示例5
from PIL import Image
img = Image.open('image.png').convert('LA')
img.save('greyscale.png')