1 | initial version |
FindContours is all you need. It gives you direct access to the area of the blobs, its center, its bounding box, ...
2 | No.2 Revision |
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.
3 | No.3 Revision |
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.