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
Take a look at this bounding box technique demonstrated with OpenCV code:
Input:
Eroded:
Result: