问题描述
这是一个有趣的话题.基本上,我有一个包含一些文本的图像.如何从图像中提取文本?
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!