To convert an image to grayscale using python, a solution is to use PIL example: ... from PIL import Image img = Image.open('lena.png').convert('LA') ...
確定! 回上一頁