Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can i get the list of associated keywords to a specific file,

i.e. for an image that OCR is performed, i want to be able to fetch the list of text on the image. Is this possible using the SDK? If so how, and if not are there any suggestions as to using google's OCR to fetch words in an image.

like image 259
Ajibola Avatar asked Jul 03 '12 14:07

Ajibola


1 Answers

When you create a file or copy it with the Drive API, you can perform OCR on it to convert it to a Google Document which will contain the OCR text. The relevant parameters are:

  • ocr boolean Whether to attempt OCR on .jpg, .png, or .gif uploads.
  • ocrLanguage string If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
like image 86
Ali Afshar Avatar answered Oct 27 '22 09:10

Ali Afshar