新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)Python教程:python中如何使用pil
PIL(python Image Library)是python的第三方圖像處理庫,但是由于其強(qiáng)大的功能與眾多的使用人數(shù),幾乎已經(jīng)被認(rèn)為是python官方圖像處理庫了。

創(chuàng)新互聯(lián)建站從2013年開始,先為云南等服務(wù)建站,云南等地企業(yè),進(jìn)行企業(yè)商務(wù)咨詢服務(wù)。為云南企業(yè)網(wǎng)站制作PC+手機(jī)+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問題。
python中使用pil的方法:
在命令行使用PIP安裝:
pip install Pillow
或在命令行使用easy_install安裝:
easy_install Pillow
安裝完成后,使用from PIL import Image就引用使用庫了。比如:
from PIL import Image
im = Image.open("bride.jpg")
im.rotate(45).show()示例:
from PIL import Image
from PIL import ImageFilter
im = Image.open("beauty.jpg")
om = im.filter(ImageFilter.BLUR)
om.save("beautyBlur.jpg") 當(dāng)前文章:創(chuàng)新互聯(lián)Python教程:python中如何使用pil
當(dāng)前路徑:http://fisionsoft.com.cn/article/djphogs.html


咨詢
建站咨詢
