python圖像平移

import cv2 import numpy as np img = cv2.imread('wintercome.jpeg') rows,cols,_ = img.shape M = np.float32([[1,0,-100],[0,1,50]]) dst = cv2.warpAffine(img,M,(cols,rows)) cv2.imshow("2",dst) cv2.i
相關文章
相關標籤/搜索