Ask Your Question

Revision history [back]

You could use cv::minAreRect to get the smallest (rotated) rectangle that contains your contour.

You could use cv::minAreRectcv::minAreaRect to get the smallest (rotated) rectangle that contains your contour.