我一直在努力在我的Android应用程序中实现四到四系统。目的是让用户拍摄一张照片,添加4个角点,并将该四边形从图像中提取为一个矩形。我看过thismethod和thisquestion为此使用OpenCV。生成的代码是这样的:publicstaticBitmapwarp(Bitmapimage,MyPointp1,MyPointp2,MyPointp3,MyPointp4){intresultWidth=500;intresultHeight=500;MatinputMat=newMat(image.getHeight(),image.getHeight(),CvType.CV_8U