I have an image which has columns of text broken up in sections as shown below
I would like to get the blocks as shown in the red rectangles in the image below
I have tried the following - threshold - erode - dilate - find contours But does not give me the results.
Is there another way to do this? I just need to identify the blocks as shown, not extract the text.