今天介紹一下Pillow模塊中的浮雕濾鏡,讓你的圖片瞬間高大上起來,代碼如下:
from PIL import Image
from PIL import ImageFilter
img = Image.open(r"C:\Users\15025\Desktop\angle\angle.jpg")
img = img.filter(ImageFilter.EMBOSS)
img.show()
運行后的結果如下,是不是很帥呢?

碼字不易,如果大家覺得有用,請高抬貴手給一個贊讓我上推薦讓更多的人看到吧~
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/301133.html
標籤:其他
上一篇:VIT訓練
