订阅

UiPath 活动

UiPath 活动指南

分析图像

The Analyze Image activity uses the Microsoft Vision API to make a generic image call.

How it works

The following steps are an example of how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.

  1. Complete the Setup steps.
  2. Add the Microsoft Vision Scope ]activity to your project.
  3. Add the Analyze Image activity inside the Microsoft Vision Scope activity.
  4. Create and enter variables for the Intput properties.
  5. Create and enter variables for the Output property.

属性

The values for the following properties are specified when adding this activity to your project in UiPath Studio.

Common

DisplayName

The display name of the activity.

Attributes

Details

Type

String

Required

Yes

Default value

Analyze Image

Allowed values

Enter a String or String variable.

Notes

N/A


Input

Image Path

The path to a local image to be analyzed.

Attributes

Details

Type

String

Required

Yes

Default value

Empty

Allowed values

Enter a String or String variable.

Notes

If Image URL is provided, this field is ignored.

Image URL

The URL of an image to be analyzed.

Attributes

Details

Type

String

Required

Yes

Default value

Empty

Allowed values

Enter a String or String variable.

Notes

If Image Path is provided, this field is ignored.


选项

Result Language

A selection that specifies the language in which the result is shown.

Attributes

Details

Type

enum

Required

No

Default value

en

Allowed values

en, ja, pt, zh.

Notes

N/A

Selected Features

A combo box that defines the type of analysis to carry out on the image.

Attributes

Details

Type

multi-select enum

Required

No

Default value

Empty

Allowed values

Adult, Categories, Color, Description, Faces, ImageType, Tags

Notes

The allowed values are defined as:

  • Adult - Identifies adult or racy content. For more information on the call, see Concept detecting adult content in the Microsoft Azure documentation.
  • Categories - Categorizes the image based on a predefined taxonomy.
  • Color - Retrieves dominant colors from the image.
  • Description - Generates a description of the image.
  • Faces - Identifies faces in the image and guesses the gender and age for the identified people.
  • ImageType - Identifies whether an image is clip art (rating the likelihood on a scale) or line drawing.
  • Tags - Assigns tags to the image based on identified objects in the image.

Output

Result

The result of the call based on the selected analysis features.

Attributes

Details

Type

ImageAnalysis

Required

No (required if you want to use the output data in subsequent activities)

Default value

Empty

Allowed values

Enter a ImageAnalysis variable.

Notes

N/A

2 个月前更新


分析图像


建议的编辑仅限用于 API 参考页面

You can only suggest edits to Markdown body content, but not to the API spec.