Python 从图像中读取文本

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3967548/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-18 13:36:14  来源:igfitidea点击:

Reading text from an image

python

提问by Ankit Jaiswal

Is there a way we can read the alphabets from an image, some kind of text recognition method using python.

有没有一种方法可以从图像中读取字母,某种使用 python 的文本识别方法。

What I have to do is, read some images to get the text written on them.

我必须做的是,阅读一些图像以获取写在上面的文字。

Please suggest.

请建议。

采纳答案by lalli

See OCROPUS

OCROPUS

EDIT:
Also after seeing the other question here(of which this question is a duplicate), pytesseris much simpler if your image only contains text and no noise (images/illustrations)

编辑:
同样在这里看到另一个问题(这个问题是重复的)之后,如果你的图像只包含文本而没有噪音(图像/插图),pytesser会简单得多