我这里有2张测试图片。我的问题是,如何在不裁剪图像的情况下将第一张图像中的正方形映射到第二张图像中的四边形。图1:图2:这是我当前使用openCVwarpPerspective函数的代码。importcv2importnumpyasnpimg1_square_corners=np.float32([[253,211],[563,211],[563,519],[253,519]])img2_quad_corners=np.float32([[234,197],[520,169],[715,483],[81,472]])h,mask=cv2.findHomography(img1_squa