Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

sorted. I found the contours, used cv::momenst to get the mid-point of each contour, stored those in a vector or points and used:

         calculatedRect = minAreaRect(storedpoints);

to get the bounding box.

sorted. I found the contours, used cv::momenst cv::moments to get the mid-point of each contour, stored those in a vector or points and used:

         calculatedRect = minAreaRect(storedpoints);

to get the bounding box.