python+opencv圖像長寬xy和屏幕的對應

左上角是原點,往下是x/height。往右是y/width。   import cv2 import numpy as np img = cv2.imread('Parthenon.jpg') h,w,l = np.shape(img) (h1, w1) = img.shape[:2] #tuple print(h,w,l) print(h1,w1) cv2.imshow('Parthe
相關文章
相關標籤/搜索