开源代码来删除图片中的非文本区域? [英] open source code to remove Non Text regions in image?

查看:140
本文介绍了开源代码来删除图片中的非文本区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从捕获的图像中删除任何非文本区域作为OCR引擎的预处理步骤,任何想法,演示,源代码这将是有用的,感谢。

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.

推荐答案

我猜这个问题可能被看作是你的另一个问题的可能重复: 如何从图片中检测文字区域

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

无论如何,我宁愿用另一种方式来思考这个问题,也就是:任何不是文本区域的东西都应该被忽略

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

此时,我需要参考我的其他帖子,其中说明了处理这种情况的方法。这个想法是,您只向OCR引擎发送成功检测为文本的区域,从而忽略图像中的所有非文本区域。

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.

这篇关于开源代码来删除图片中的非文本区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆