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:
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:
Binary image:
I have tried canny edge detection, holistically-nested-edge-detection, and still having this issue. What can I do to fix it?