[Python]Windows系統下安裝Pillow模塊

Pillow模塊提供了豐富的圖像處理功能,而且不少其它模塊使用到該模塊。html

  1. 安裝Pillow模塊。使用如下命令:

pip install Pillowhtm

2. 使用舉例教程

#導入Image圖片

from PIL import Imageip

 

#打開圖片get

img = Image.open("d:\\qr.png")it

 

#顯示圖片pip

img.show()io

  3. 詳細教程請參考:https://pillow.readthedocs.io/en/5.1.x/handbook/index.html圖像處理

相關文章
相關標籤/搜索