Get Image similarity Percentage
Last updated
Was this helpful?
Last updated
Was this helpful?
This is a pre-built action in Avo Assure and comes for the Captured Image Element, instructs the Avo Assure to compare the similarity percentage between the image captured from AUT and the reference image specified in the input value. The result of this comparison is stored in the dynamic variable.
Input Value: <image path>
<image path> (Required)
The file path of the image which user wants to compare with the captured image
<Dynamic Variable> (Required)
This variable holds the image similarity percentage
<Dynamic Variable> (Optional)
This dynamic variable holds the status as True or False
Example
Performs comparison between the captured element and a reference image to calculate the similarity percentage
The Get Image Similarity Percentage action takes the value from the Input Value column (e.g., C:\Images\reference.png) and compares the given image with the current state of the captured element. The result of the comparison is stored in the {Percentage} variable, while the execution status is stored in the {Status} variable, with the following possible values:
True – if the image comparison is successful and percentage is retrieved.
False – if the image comparison fails or an error occurs.