使用 java 从图像中提取文本
是否可以在不使用任何第三方 API 的情况下从图像中读取文本?
Is it possible that read text from an image without using any third party APIs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
是否可以在不使用任何第三方 API 的情况下从图像中读取文本?
Is it possible that read text from an image without using any third party APIs?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
是的,您绝对可以编写自己的光学字符识别 (OCR) 软件。它的稳健性完全取决于您投入的努力。
例如,识别精确大小和字体的字符可以像与已知字符形状进行区域匹配一样简单;更通用的策略可能需要某种统计匹配甚至机器学习技术。
OCR 仍然是顶级计算机科学大学和机构(例如 Google)的一个活跃的研究领域,因此不要指望找到任何快速简便的解决方案。
Yes, you can definitely write your own optical character recognition (OCR) software. It's robustness depends entirely on the effort you put into it.
For example, recognizing characters of an exact size and font could be as simple as region matching against known character shapes; more general strategies might require some sort of statistical matching or even machine learning techniques.
OCR is still an active area of research at top-tier computer science universities and institutions (e.g. Google), so don't expect to find any quick-and-easy solutions.
标准 Java 库中没有内置 OCR 支持,因此您必须自己实现。
如果您选择使用第三方库,以下页面列出了一些建议:
https://stackoverflow.com/questions/971344/java-based-ocr-sdk-api< /a>
There is no built-in OCR support in the standard Java libraries, so you would have to implement it yourself.
If you do opt to go for a third party library, the following page lists several suggestions:
https://stackoverflow.com/questions/971344/java-based-ocr-sdk-api
当这些库被编写时,很明显,具有正确知识的人可以编写这样的库。
因此,无需第三方库即可从图像中提取文本,只需编写您自己的库即可。
你能否做到这一点,我是不可能知道的。
As those libraries were written, it is clear that someone with the right knowledge can write such libraries.
Therefore it's possible to extract the text from an image without 3rd party libraries, just write your own.
Whether you are able to do so, it is impossible for me to know.