OpenCV—python圖像以數組形式輸出

from PIL import Image import numpy as np import os數組 # 將圖像(灰度圖)以矩陣(數字)的的形式輸出 img = Image.open("./cat02.png") img_array = np.asarray(img) print("輸出圖像數組:",img_array) print("數組形狀:",img_array.shape)import
相關文章
相關標籤/搜索