open source code to remove Non Text regions in image?

二次信任 提交于 2019-12-13 10:00:22

问题


i want to remove any Non Text regions from an captured image as a preprocessing step for OCR Engine, any idea , demo , source code about doing that will be helpful,thanks.


回答1:


I guess this question could be seen as a possible duplicate of your other question: How to detect Text Area from image?

if it wasn't asked in reverse!

Anyway, I rather the other way of thinking about this problem, which is: anything that is not a text region should be ignored.

At this point I need to refer to my other post, which shows an approach to deal with this situation. The idea is that you only send to the OCR Engine the regions that were successfully detected as text, thus ignoring all the non-text regions in the image.



来源:https://stackoverflow.com/questions/10231192/open-source-code-to-remove-non-text-regions-in-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!