How to detect Text Area from image?

后端 未结 4 635
北海茫月
北海茫月 2020-12-03 01:46

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

4条回答
  •  悲哀的现实
    2020-12-03 02:48

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

    Input:

    enter image description here

    Eroded:

    enter image description here

    Result:

    enter image description here

提交回复
热议问题