Is there any solution for the camera translation offline?

173 views
Skip to first unread message

Andy

unread,
Oct 20, 2016, 12:27:00 PM10/20/16
to Google Translate API Developer Forum
As we know, Google translate app could provide the camera translation offline which is similar the "word lens", the translation API could provide some function about it? thanks.

George (Cloud Platform Support)

unread,
Oct 20, 2016, 5:50:29 PM10/20/16
to Google Translate API Developer Forum

Hi Andy,


The Translate API only takes text as input. It is possible to analyze the image to extract the contained text by other means. To this purpose, you may consider using image analysis APIs, such as the Cloud Vision API, as a preliminary stage. This way one can extract text from an image through optical character recognition. Once proper text is generated from the input image, the Translate API may offer the text translation service, in a second stage.

What application do you have in mind, when mentioning the “word lens”? Please let us know if this reply addresses all your concerns.


I hope this helps. Cheers!

Andy

unread,
Oct 21, 2016, 4:56:25 AM10/21/16
to Google Translate API Developer Forum
Hi George,
     It is appreciated for your help.  By using the OCR API, we could extract text from an image and then output the translation result. 
     
     Could we have another option the make this schedule more flexible in some scenes. 

     Like when I travel to a foreign country, I could translate the signpost immediately by my mobile. 

    Google translate app provide those function, and are there relevant API available to developers?

     I am looking forward your help, thanks!


     

George (Cloud Platform Support)

unread,
Oct 25, 2016, 12:07:43 PM10/25/16
to Google Translate API Developer Forum

If you would like to perform OCR and other image operations offline, you cannot possibly use APIs that need Internet to be accessed. The Translate API and Cloud Vision API are two good options to use if your device has access to the Internet. This is possible, when traveling, even if access not always available.

If offline translation is a must, you may use other tools, offered by different vendors.

Reply all
Reply to author
Forward
0 new messages