Merge pull request #17635 from jsxyhelu:3.4

This commit is contained in:
Alexander Alekhin 2020-07-10 15:11:53 +00:00
commit e18df87a15

View File

@ -257,7 +257,7 @@ void SimpleBlobDetectorImpl::findBlobs(InputArray _image, InputArray _binaryImag
{
std::vector < Point > hull;
convexHull(contours[contourIdx], hull);
double area = contourArea(contours[contourIdx]);
double area = moms.m00;
double hullArea = contourArea(hull);
if (fabs(hullArea) < DBL_EPSILON)
continue;