Ask Your Question

Revision history [back]

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.