How to straight an image by selecting four points in an Image?
问题 I want to straight an image by selecting four points in the image using getPerspectiveTransform() method of opencv in java. I know it can be done using with opencv in python: getPerspectiveTransform. If anyone used this to achieve image straightening ..please help. 回答1: There is perspective transformation which can be used to achieve quad to quad conversion. In OpenCV , there are mainly two methods to achieve getPerspectiveTransformation() and warpPerspective() method. Here is a sample code