Get Image Similarity Percentage
Last updated
Was this helpful?
Last updated
Was this helpful?
This is pre-built Action located under the @Generic Element, instructs the Avo Assure to retrieve the similarity of the two Images in Percentage whose image path is provided in the input field and save the result in the dynamic variable.
Input Value: <image1path>;<image2path>
<image1path>
(Required)
Provide the image path to be compared with the second image to calculate the similarity percentage.
<image2path> (Required)
Provide the image path to be compared with the first Image to calculate the similarity percentage.
Output Value:
<Dynamic Variable> (Required)
This variable stores the percentage value representing how similar two images are.
<Dynamic Variable> (Optional)
This variable stores the status as True or False
Example
Get the similarity percentage between two images The Get Image Similarity Percentage action takes the value from the Input Value column (e.g., C:\Images\Base.png;C:\Images\Output.png) and calculates the visual similarity percentage between the two image files. The calculated percentage is stored in the {Similarity Percent} variable, and the action status is saved in the {Status} variable with the following possible values:
True – if the similarity is calculated successfully
False – if the simliarity is not calculated