python 中的 經常使用 opencv 以及圖像處理相關函數總結整理

1.讀取圖片圖片 img = cv2.imread("D:\cat.jpg")   ,OpenCV目前支持讀取bmp、jpg、png、tiff等經常使用格式。 建立一個窗口    cv2.namedWindow("Image")   而後在窗口中顯示圖像     cv2.imshow("Image", img)   cv2.waitKey (0)   cv2.destroyAllWindows()
相關文章
相關標籤/搜索