opencv之讀入圖片

opencv之讀入圖片 代碼 import numpy as np import cv2 #讀入圖像 0以灰度模式讀入,默認可以不寫,以彩色模式讀入 img = cv2.imread("1.jpg",0) #顯示圖像 cv2.imshow('image',img) #第一個參數爲窗口名 #設置等待時長,0無限時長 cv2.waitKey(2000) #刪除建立的窗口 cv2.destroyAllW
相關文章
相關標籤/搜索