用Java从图像文件中读取文本

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1442608/
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-12 12:19:55  来源:igfitidea点击:

Read text from image file in Java

javaocr

提问by cometta

What is the best open source Java library that I can use to extract text from an image (JPEG, PNG) files?

我可以用来从图像(JPEG、PNG)文件中提取文本的最佳开源 Java 库是什么?

采纳答案by Alex Martelli

There's GOCRand tesseract, but I'm not sure about how their current releases stack up -- what about trying both on some typical inputs you need to deal with, and choose by this trial?

GOCRtesseract,但我不确定它们当前的版本是如何叠加的——如何在一些你需要处理的典型输入上尝试,并通过这次试验来选择?