Smash
Smash

Reputation: 3802

OpenCV blob detection: separate close blobs

I am using OpenCV + CvBlobs to detect items in an image. I sometimes get results like this:

enter image description here

How can I separate close blobs with low connectivity like the bottom left blob from the top right one ?

Upvotes: 1

Views: 2196

Answers (1)

eiki
eiki

Reputation: 510

You can label it 4 neighbourhood algoritm or simply use morpohological opening filter.

Upvotes: 1

Related Questions