在 Android 上将图片翻译为文本?
我知道谷歌护目镜可以将图片翻译成文本。我想做的是允许用户拍照(没问题),将图片翻译为文本(?),然后对文本进行一些处理(没问题)。
android 上有没有允许这样做的API?或者有什么方法可以以编程方式与谷歌护目镜进行通信?我不想让用户使用护目镜,然后使用我的应用程序选择保存的文件......
I know that google goggles will translate a picture to text. What I want to do is allow the user to take a picture (no problem), translate that picture to text(?) and then do some processing on the text (no problem).
Is there any API on android that allows this? or is there any way to programtically communicate with google goggles? I would hate to have the user use goggles then select the saved file with my app.....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 Android 上有免费的 OCR 库吗? 和 如果您想要库,我应该在 Android 中使用哪种 OCR Java 库?在手机上进行翻译。
不过,Google 还提供了一个 WebAPI 来执行此操作。 http://googlesystem.blogspot.com/2009/09/google- docs-ocr.html
请记住,到目前为止,OCR(光学字符识别)是一门不精确的科学,您不可能在所有情况下都获得完美的转录......
Take a look at Is there any free OCR library for Android? and What kind of OCR Java library should I use in Android? if you want libraries that do the translation on the phone itself.
However, Google also provides a WebAPI that does this. http://googlesystem.blogspot.com/2009/09/google-docs-ocr.html
Just remember that OCR (optical character recognition) is, as of now, an inexact science and you won't get flawless transcription in all cases...
检查这个例子,它在谷歌翻译中用于从图像中获取文本它使用谷歌服务
https://github.com/googlesamples/android-vision/tree/master/visionSamples/ocr-codelab
check this example it's used in google translate to get text from image it's use google services
https://github.com/googlesamples/android-vision/tree/master/visionSamples/ocr-codelab