Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Detecting blocks of text

I have an image which has columns of text broken up in sections as shown below source image

I would like to get the blocks as shown in the red rectangles in the image below image blocks

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.