Multi language OCR witgh Cloud Vision API

67 views
Skip to first unread message

Martin

unread,
Mar 4, 2016, 12:26:29 AM3/4/16
to cloud-vision-discuss
Greetings,

We want to build a tool for pasting/uploading images of texts (in this case they are in English with diacritics and Devanagari) and then having the user tag the language areas of the image and then sending each image portion to an API for recognition.

We've tested Google's OCR on individual images via the Google Drive tool to convert an image to a Google Doc and it seems quite good.

I was wondering if we could use this API to automate such a process?

If anyone has done this or would like to do this or knows more about this we would be most greatful.

Warmest Wishes,

Martin

Jugal Shah

unread,
Mar 5, 2016, 4:16:38 PM3/5/16
to cloud-vision-discuss
Based on the Vision API docs, this seems possible. You would want to send over an image and specify you want to attempt OCR by setting the TEXT_DETECTION feature (per https://cloud.google.com/vision/reference/rest/v1/images/annotate#ImageContext). Unfortunately the examples I see on the site are in Python and I'm a JavaScript guy. This is something I'd like to explore for a project of my own, however, so I'll post again if I have some code to share.

Ram Ramanathan

unread,
Mar 5, 2016, 9:35:38 PM3/5/16
to Jugal Shah, cloud-vision-discuss, cloudml-devrel
Thank you for your post Jugal. +cloudml-devrel
Node.js sample is high on our list. Please post your sample publicly and we will also let you know once we get our sample completed 

--
You received this message because you are subscribed to the Google Groups "cloud-vision-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-vision-dis...@googlegroups.com.
To post to this group, send email to cloud-visi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-vision-discuss/47e03a00-fd13-4f32-a364-8c29708c0aa3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jugal Shah

unread,
Mar 6, 2016, 8:19:34 AM3/6/16
to cloud-vision-discuss, jsha...@gmail.com, cloudml...@google.com
Hi all,

Ram: thanks, would be good to see some Node.js love :)
Martin: sure, I would be happy to help how I can, though my time is somewhat limited. I'm in the US on the east coast btw.

To both: I did some quick looking around and found there was an npm package that interfaces with the api! It's called google-vision-api-client. It doesn't work out-of-box, but works with 1 quick modification - the API url it's pointing to. I threw the code up on GitHub: https://github.com/jugaltheshah/visionapitest. The modification is detailed in my test.js file.

JS

On Saturday, March 5, 2016 at 9:35:38 PM UTC-5, Ram Ramanathan wrote:
Thank you for your post Jugal. +cloudml-devrel
Node.js sample is high on our list. Please post your sample publicly and we will also let you know once we get our sample completed 

On Sat, Mar 5, 2016, 1:16 PM Jugal Shah <jsha...@gmail.com> wrote:
Based on the Vision API docs, this seems possible. You would want to send over an image and specify you want to attempt OCR by setting the TEXT_DETECTION feature (per https://cloud.google.com/vision/reference/rest/v1/images/annotate#ImageContext). Unfortunately the examples I see on the site are in Python and I'm a JavaScript guy. This is something I'd like to explore for a project of my own, however, so I'll post again if I have some code to share.

On Friday, March 4, 2016 at 12:26:29 AM UTC-5, Martin wrote:
Greetings,

We want to build a tool for pasting/uploading images of texts (in this case they are in English with diacritics and Devanagari) and then having the user tag the language areas of the image and then sending each image portion to an API for recognition.

We've tested Google's OCR on individual images via the Google Drive tool to convert an image to a Google Doc and it seems quite good.

I was wondering if we could use this API to automate such a process?

If anyone has done this or would like to do this or knows more about this we would be most greatful.

Warmest Wishes,

Martin

--
You received this message because you are subscribed to the Google Groups "cloud-vision-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-vision-discuss+unsub...@googlegroups.com.

Jugal Shah

unread,
Mar 7, 2016, 1:50:48 PM3/7/16
to cloud-vision-discuss
Correction: I reached out to the developer and he kindly updated the URL - google-vision-api-client now works out of the box! Will update test.js when I can to reflect this.


On Friday, March 4, 2016 at 12:26:29 AM UTC-5, Martin wrote:
Reply all
Reply to author
Forward
0 new messages