activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

用户界面自动化活动

上次更新日期 2026年2月28日

Google Cloud Vision OCR

UiPath.Core.Activities.GoogleCloudOCR

使用 Google Cloud OCR 引擎从指定的用户界面元素或图像中提取字符串及其信息。可与其他 OCR 活动一起使用,例如单击 OCR 文本双击 OCR 文本悬停在 OCR 文本上获取 OCR 文本查找 OCR 文本位置

属性

常见
  • “显示名称”- 活动的显示名称。
输入
  • Image - The image that you want to process. This field supports only Image variables.
登录
  • ApiKey - The API key used to provide you access to the Google Cloud OCR.
其他
  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。
选项
  • “检测模式”- 指定要向 Google Cloud Vision OCR 发送的检测标记。选择以下两个选项之一:“文本检测”和“文档文本检测”。默认值为“文本检测”。

    重要提示:

    “文本检测”模式不会报告已识别单词的置信度值。在“数字化文档”活动中使用 OCR 引擎时,所有单词的所有 OCR 可信度值都将设置为 -1(未知)。

  • “提取文字”- 如果选中此复选框,则会提取每个检测到的文字在屏幕上的所处位置。

  • 语言- OCR 引擎从用户界面元素或图像中提取文本所使用的语言。对于 Google OCR 引擎,该字段需要包含语言文件前缀,如表示罗马尼亚语的“rom”、表示意大利语的“ita”以及表示法语的“fra”。您可以在该页面找到支持的语言前缀。

  • ResizeToMaxLimitIfNecessary - When selected, the engine attempts downsizing the target image so that it does not exceed the size limit of the Google Cloud Vision engine. By default, this check box is cleared.

  • Scale - The scaling factor of the selected UI element or image. The higher the number is, the more you enlarge the image. This can provide a better OCR read and it is recommended with small images. If you want to scale down, values between 0 and 1 are also accepted. By default, the value is 2.

    重要提示:

    当缩放因子大于 1 时,大尺寸图像可能会导致错误。

输出
  • Text - The extracted text. This field supports only string variables.
  • “结果”- 提取的文字及其在屏幕上的位置。该字段仅支持“KeyValuePair<rectangle,string>”变量。
  • 属性

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新