将图像转换为文本 - Java [英] Turn Image into Text - Java
问题描述
这是一个有趣的话题。基本上,我有一个包含一些文本的图像。如何从图像中提取文本?
This is an interesting topic. Basically, I have an image that contains some text. How do I extract the text from the image?
我已经尝试了很多东西,但我所做的一切都非常繁琐,而且通常不起作用。我只是想知道是否有一个相当简单的方法来做到这一点。
I have already tried many things, but everything I do is very tedious and usually does not work. I am simply wondering if there is a fairly easy way to do this.
我遇到了这个问题:http://sourceforge.net/projects/javaocr/ 。我已经尝试了好几个小时,但是我无法让它获取 Image
并将其转换为文本的 String
来自图片。
I have come upon this: http://sourceforge.net/projects/javaocr/. I have tried this for hours, but I cannot get it to take an Image
and turn it into a String
of text from the image.
提前谢谢大家!
推荐答案
您需要研究Java OCR实现。看看这个问题:
Java OCR
You need to look into Java OCR implementations. Take a look at this question: Java OCR
这篇关于将图像转换为文本 - Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!