1 from PIL import Image 2 from PIL import ImageFilter 3 square = Image.open("D:\python\代码\易知\钟楼.jpg") 4 square1 = square.filter(ImageFilter.CONTOUR) #选择轮廓效果 5 square1.save("D:\python\代码\易知\钟楼2.jpg")
posted on 2020-05-05 21:03 秦安233 阅读(160) 评论(0) 收藏 举报