python勾画图片轮廓,实现程序代码如下:
#filename:koutu.py
from PIL import Image
from PIL import ImageFilter
im = Image.open('C:hcxy.jpg')
om = im.filter(ImageFilter.CONTOUR)
om.save('C:hcxyeducn.jpg')
#filename:koutu.py
from PIL import Image
from PIL import ImageFilter
im = Image.open('C:hcxy.jpg')
om = im.filter(ImageFilter.CONTOUR)
om.save('C:hcxyeducn.jpg')