1 | initial version |
You could use cv::minAreRect to get the smallest (rotated) rectangle that contains your contour.
2 | No.2 Revision |
You could use cv::minAreRectcv::minAreaRect to get the smallest (rotated) rectangle that contains your contour.