我可以获取关联关键字列表到特定文件, [英] Can i get the list of associated keywords to a specific file,

查看:92
本文介绍了我可以获取关联关键字列表到特定文件,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即。对于执行OCR的图像,我希望能够获取图像上的文本列表。这可能使用SDK吗?如果是的话,如果不是,如果没有任何建议,可以使用谷歌的OCR来获取图片中的单词。

当你创建一个文件或将其复制到Drive API,您可以在其上执行OCR以将其转换为包含OCR文本的Google文档。相关参数为:


  • ocr boolean 是否在.jpg,.png或.gif上传时尝试OCR。 如果ocr是真的,提示要使用的语言。有效值为ISO 639-1代码。


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.

解决方案

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.

这篇关于我可以获取关联关键字列表到特定文件,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆