【轉】python圖片處理1:打開\顯示\保存圖像

使用python進行數字圖片處理,需要安裝Pillow包, 它是由PIL發展而來的。 pip install Pillow 1、圖片打開、顯示 from PIL import Image img=Image.open('**.png')#相對路徑 #img=Image.open('d:/***/**.png')#絕對路徑 img.show() 這種圖片顯示方式是調用操作系統自帶的圖片瀏覽器來打開圖
相關文章
相關標籤/搜索