How to detect Text Area from image?

c++, image-processing, tesseract, text-extraction

Solution

Take a look at this bounding box technique demonstrated with OpenCV code:

Input:

Eroded:

Result:

Problem

i want to detect text area from image as a preprocessing step for tesseract OCR engine, the engine works well when the input is text only but when the input image contains Nontext content it falls, so i want to detect only text content in image,any idea of how to do that will be helpful,thanks.

Original source

Related problems