https://best-android-tabletpc.blogspot.com/2023/03/opencv-transform-shape-with-arbitrary.html
OpenCV Transform Shape With Arbitrary Contour Into Rectangle