OCR(图像文本)的安卓图像、文本、OCR

2023-09-07 01:39:54 作者:最伤心的,伤心个性

我如何能实现我的Andr​​oid应用程序的OCR功能?我想打一个应用程序,拍照,并从它翻译文本。任何API或教程是什么? 谢谢

How can I implement an OCR function in my android app? I want to make an app that takes a picture and translates a text from it. Any APIS or tutorials for that? Thanks

推荐答案

更​​新:这里是一些额外的链接,我发现可能会帮助您配置上的tesseract。我个人没有使用这一点,因为我个人选择了2D code的做法。

Update: Here some additional links I found that may assist you on configuring tesseract. I personally have not use this, as I personally opted for 2D code approach.

http://rmtheis.word$p$pss.com/2011/08/06/using-tesseract-tools-for-android-to-create-a-basic-ocr-app/ http://gaut.am/making-an-ocr -Android-APP-使用-的tesseract / http://rmtheis.wordpress.com/2011/08/06/using-tesseract-tools-for-android-to-create-a-basic-ocr-app/ http://gaut.am/making-an-ocr-android-app-using-tesseract/

好了,而无需了解您的应用程序什么,我想指出,你可能无法击败的谷歌谷歌的,当涉及到OCR功能。也许你可以添加你要能够翻译什么样的文字的更多细节?因此,我们知道你不重新发明轮子:)

Well without knowing anything about your app, I would like to note that you probably could not beat Google Googles when it comes to OCR features. Maybe you can add additional detail what kind of text do you want to be able to translate? So we know your not reinventing the wheel :)

我发现几个环节 的https://$c$c.google.com/p/tesseract-ocr/ http://ocrsdk.com/producttour/many-more/

但是,如果我可以建议,如果它的具体信息,你可以想分析,我会实际使用QR吧code推荐。您可以将一个CSV文件导入二维code,然后让你的应用程序扫描,然后分析它做一些自定义功能。

But if I may suggest, if you it specific message that can you want to parse, I would recommend actually using QR barcode. You can convert a CSV file into 2D code and then have your app scan it then parse it to do some custom feature.

下面库我用于二维code,发现它在过去相当有用。 Zxing这是开源和免费使用

Here library I used for 2D code and found it quite useful in the past. Zxing which is open source and free to use