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.
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.