實踐總體過程和步驟如下圖
首先導入必要的包
numpy---------->python第三方庫,用于進行科學計算
PIL------------> Python Image Library,python第三方圖像處理庫
matplotlib----->python的繪圖庫 pyplot:matplotlib的繪圖框架
os------------->提供了豐富的方法來處理文件和目錄