1 | initial version |
All that cv::FindContours method does is detect groups of connected pixels, it does not care if two separated blobs actually belong to the same object.
The easiest solution to solve this problem is to apply dilate operations on your image to make sure that the blobs that belong to the same object become connected.