美文网首页
Python48 Programming Tutorial -

Python48 Programming Tutorial -

作者: 豆表示低调 | 来源:发表于2016-08-30 00:23 被阅读0次
from PIL import Image

bucky = Image.open("bucky.jpg")
black_white = bucky.convert("L")  # L for luminance (means black and white)

black_white.show()
from PIL import Image
from PIL import ImageFilter

bucky = Image.open("bucky.jpg")
blur = bucky.filter(ImageFilter.BLUR)
detail = bucky.filter(ImageFilter.DETAIL)
edges = bucky.filter(ImageFilter.FIND_EDGES)

blur.show()
detail.show()
edges.show()

相关文章

网友评论

      本文标题:Python48 Programming Tutorial -

      本文链接:https://www.haomeiwen.com/subject/aaaxettx.html