I have a rectangle that is possible rotated and curved like here (the game card) and I have some points on its contour (4 corners and 2 points on the curvature, not always the same), is it possible by using warpPerspective
to warp it to normal rectangle (Size(100, 100)
)?
Until now I have done it using the minAreaRect
, but the curvature remains; and is not very nice.