Alexandre Tavares
Alexandre Tavares

Reputation: 113

How can I detect all objects in this image with a white background without merging them with each other?

My goal is to separate all the objects from each other. After that I could use blob or detection so that I can measure the area of each one to make a Histogram with the size distribution of the objects.

Original image:

original image

The problem is that the objects are merging with each other, mainly due to their shadow and/or their proximity to each other.

Final results - bounding box:

Final results - bounding box

Binary image:

Binary image

I have tried canny edge detection, holistically-nested-edge-detection, and still having this issue. What can I do to fix it?

Upvotes: 0

Views: 712

Answers (1)

Phantom
Phantom

Reputation: 1

you can get the box coordinates for each detection and extract the detect image based on those coordinates and then apply your filter.

Check out this post on region of interest https://stackoverflow.com/a/58211775/14770223

Upvotes: 0

Related Questions