Ask Your Question

Revision history [back]

FindContours is all you need. It gives you direct access to the area of the blobs, its center, its bounding box, ...

FindContours is all you need. It gives you direct access to the area of the blobs, its center, its bounding box, ...

Hmm in the bottom line, SimpleBlobDetector uses FindContours or parts of it internally. So I think there is no way of actually seperating cases between them. If you simply need to color blobs, then go for SimpleBlobDetector, if you need extra info, then go for FindContours and supported analytic functionality on the result.

FindContours is all you need. It gives you direct access to the area of the blobs, its center, its bounding box, ...

Hmm in the bottom line, SimpleBlobDetector uses FindContours or parts of it internally. So I think there is no way of actually seperating cases between them. If you simply need to color blobs, then go for SimpleBlobDetector, if you need extra info, then go for FindContours and supported analytic functionality on the result.

If you have a contour then you can use it as a mask on the original image and analyze the remaining pixels.