What is the best way to quickly seperate two close objects?
For example those two rectangles are so close, their shadows overlap and get very dark. Using my initial approach to binarize the image and then do an CCA does not work, because the binarized image is completely connected:
I think using convex defects may also not work properly, because the difference here is not very big.
What might be a better solution to this problem?