เหมือนกัน
Filters ที่มี
- BLUR
- CONTOUR
- DETAIL
- EDGE_ENHANCE
- EDGE_ENHANCE_MORE
- EMBOSS
- FIND_EDGES
- SHARPEN
- SMOOTH
- SMOOTH_MORE
1. import PIL
โค้ด: เลือกทั้งหมด
from PIL import Image , ImageFilter
โค้ด: เลือกทั้งหมด
im = Image.open ( 'images/subordinate-meerkat-pack.jpg' )
โค้ด: เลือกทั้งหมด
im.filter(ImageFilter.GaussianBlur(15)).save('testimg.jpg')
ก่อนปรับ หลังปรับ ศึกษาเพิ่มเติม
บทเรียนวีดีโอสอน python
เทคนิคการเขียน python
แชร์ความรู้เกี่ยวกับ python
pillow library ที่ใช้ในการจัดการและประมวลผลรูปภาพ
อ้างอิง
https://pillow.readthedocs.io/en/stable/reference/ImageFilter.html
https://hhsprings.bitbucket.io/docs/programming/examples/python/PIL/ImageFilter.html
https://pythontic.com/image-processing/pillow/smooth-filter