1 | initial version |
Documentation of cv::contourArea() says:
the area is computed using the Green formula. Thus, the returned area and the number of non-zero pixels, if you draw the contour using drawContours() or fillPoly() , can be different.