是否有适用于 Android 的免费 OCR 库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1106202/
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
Is there any free OCR library for Android?
提问by user121196
I'm looking for a Java OCR that runs on Android, however Asprise doesn't seem to be a platform independent OCR. is there any opensource/free Java OCR I can use for android application development?
我正在寻找在 Android 上运行的 Java OCR,但是 Asprise 似乎不是一个独立于平台的 OCR。是否有任何开源/免费的 Java OCR 可用于 Android 应用程序开发?
回答by Kevin Montrose
OCR can be pretty CPU intensive, you might want to reconsider doing it on a smart phone.
OCR 可能会占用大量 CPU,您可能需要重新考虑在智能手机上执行此操作。
That aside, to my knowledge the popular OCR libraries are Aspireand Tesseract. Neither are straight up Java, so you're not going to get a drop-in Android OCR library.
除此之外,据我所知,流行的 OCR 库是Aspire和Tesseract。两者都不是直接的 Java,因此您不会获得内置的 Android OCR 库。
However, Tesseract is open source (GitHub hosted infact); so you can throw some time at porting the subset you need to Java. My understanding is its not insaneC++, so depending on how badly you need OCR it might be worth the time.
但是,Tesseract 是开源的(实际上是 GitHub 托管的);所以你可以花一些时间将你需要的子集移植到 Java。我的理解是它不是疯狂的C++,所以取决于你需要 OCR 的程度,它可能值得花时间。
So short answer: No.
这么简短的回答:不。
Long answer: if you're willing to work for it.
长答案:如果你愿意为它工作。
回答by Ben Pearson
I am having quite a lot of luck with tesseract-android-tools
回答by Jaco
ANother option could be to post the image to a webapp (possibly at a later moment), and have it OCR-processed there without the C++ -> Java port issues and possibly clogging the mobile CPU.
另一种选择是将图像发布到网络应用程序(可能稍后),并在那里对其进行 OCR 处理,而不会出现 C++ -> Java 端口问题,并且可能会阻塞移动 CPU。
回答by harrymc
Google Gogglesis the perfect application for doing both OCR and translation.
And the good news is that Google Goggles to Become App Platform.
Google Goggles是进行 OCR 和翻译的完美应用程序。
好消息是Google Goggles 将成为应用平台。
Until then, you can use IQ Engines.
在此之前,您可以使用IQ 引擎。
回答by Nicolas Raoul
Yes there is.
就在这里。
But OCR is very vast. I know an Android application that has an OCR feature, but that might not be the kind of OCR you are looking after.
但是 OCR 非常广泛。我知道一个具有 OCR 功能的 Android 应用程序,但这可能不是您所关注的那种 OCR。
This open-source application is called Aedict, and it does OCR on handwritten Japanese characters. It is not that slow.
这个开源应用程序称为Aedict,它对手写的日语字符进行 OCR。它并没有那么慢。
If it is not what you are looking for, please precise which kind of characters, and which data input (image or X-Y touch history).
如果不是您要查找的内容,请准确说明是哪种字符,输入哪些数据(图像或 XY 触摸历史记录)。
回答by richardwiden
You can use the google docs OCR reader.
您可以使用 google docs OCR 阅读器。