Provides Transformation
img_ret=cv_prespective_transform(p1,p2,p3,p4,)
Input Image can be grayscale or rgb
point 1, must be list : example [1,1]
point 2, must be list : example [1,1]
point 3, must be list : example [1,1]
point 4, must be list : example [1,1]
return image after transformation
Prespective transform
For perspective transformation, you need a 3x3 transformation matrix. Straight lines will remain straight even after the transformation. To find this transformation matrix, you need 4 points on the input image and corresponding points on the output image. Among these 4 points, 3 of them should not be collinear. Then transformation matrix can be found by this function