Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Apr 9 '15

antithing gravatar image

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.

click to hide/show revision 2
No.2 Revision

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.