Python cv2 图片的几何变形
import cv2 as cvimport numpy as npfrom matplotlib import pyplot as pltimg = cv.imread('sudoku.png')rows,cols,ch = img.shapepts1 = np.float32([[56,65], [368,52], [28,387], [389,390]])pts2 = np.float32([[0,0], [300,0], [0,300], [300,300]])M ...