Ask Your Question

Revision history [back]

You could use findContours to detect objects and remove objects of small area. To effectively remove them, you could use fillPoly to draw (into the mask) these objects.