Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to use connectedComponentsWithStas to remove dots?

With contour,I can do it like this:

if cv2.contourArea(cntr) <= 3: cv2.drawContours(img, [cntr], -1, (0, 0, 0), 1)

How to do it in python?

How to use connectedComponentsWithStas connectedComponentsWithStats to remove dots?

With contour,I can do it like this:

if cv2.contourArea(cntr) <= 3: cv2.drawContours(img, [cntr], -1, (0, 0, 0), 1)

How to do it in python?

How to use connectedComponentsWithStats to remove dots?

With contour,I can do it like this:

if cv2.contourArea(cntr) <= 3: cv2.drawContours(img, [cntr], -1, (0, 0, 0), 1)

How to do it in python?wiht ConnectedComponentsStats?

How to use connectedComponentsWithStats to remove dots?

With contour,I can do it like this:

if cv2.contourArea(cntr) <= 3: cv2.drawContours(img, [cntr], -1, (0, 0, 0), 1)

How to do it wiht ConnectedComponentsStats?