OpenCV與Python之圖像的讀入與顯示以及利用Numpy的圖像轉換

1:讀入圖像,顯示圖像與保存圖像   代碼: import cv2 img=cv2.imread('lena.jpg',cv2.IMREAD_COLOR) cv2.namedWindow('lena',cv2.WINDOW_AUTOSIZE) cv2.imshow('lena',img) k=cv2.waitKey(0) if k==27: cv2.destroyAllWindows(
相關文章
相關標籤/搜索