Can i get the list of associated keywords to a spe

2020-05-12 05:13发布

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.

1条回答
祖国的老花朵
2楼-- · 2020-05-12 05:48

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.
查看更多
登录 后发表回答