First time here? Check out the FAQ!
answered 2017-08-13 23:16:55 -0600
If you have 4 points as reference. You can use getPerspectiveTransform function to obtain transformation matrix , then apply this matrix using warpPerspective function .