Analyze Image

This activity can analyze an image and generate a human-readable sentence
that describes its contents. The algorithm actually returns several descriptions
based on different visual features, and each description is given a confidence
score. The final output is a list of descriptions ordered from highest to lowest
confidence.

Technical Reference

 

 

INPUT

ImagePath: Specify the image path for the image to be analyzed within double quotes.

 

 

 

 

MISC

Display Name: Displays the name of the activity. You can also customize the activity name to help troubleshoot issues faster. This name will be used for logging purposes.

SkipOnError: It specifies whether to continue executing the workflow even if it throws an error. This supports only Boolean value “True or False”. By default, it is set to “False”

True: Continues the workflow to the next step

False: Stops the workflow and throws an error.

Version: It specifies the version of the Microsoft computer vision feature in use.

 

OUTPUT

Output: Declare a variable here to see the result of the analyzed image. This is not a mandatory field. However, to see the output a variable has to be declared here.

Result: Define a Boolean value to validate the success state of the activity. This is not a mandatory field.

*Mandatory field to execute the workflow

Use Case

The following activity illustrates on how we can use the analyze image activity to
get the details of an image given in the image path.

Steps to execute a bot

1.      Drag and drop the Microsoft vision scope activity to the workflow.

2.      Click on the activity and enter the service URL and Subscription key.

3.      Drag and drop the analyze image activity into the scope.

4.      Enter the path of the image to be analyzed.

5.      Enter the declared variable in the output box of the output segment.
Here it is “Test”

6.      Drag and drop a writelog activity below the analyze image activity.

7.      Click on the activity and enter the same variable declared above.
Here it is “Test”

8.      Enter the log level as “Info”.

9.      Execute the activity.

The bot executes the activity and gives the output of the analyzed image
in the output box. To get a detailed view of the result, click on

Home-----> Logs------>Open logs and click on the log date to see the result.