Like the image shown below, there is one square region of interest in the image. However, the region of interest is a rotated square so crop it out and save as an image is kind of hard. Could you provide a solution based on OpenCV functions or any other functions? Thank you.