Image matching
Image matching activity is used to search for an image on a given source image. Starting from the X-Y point on the image, a search is made in an area equal to the determined width and height. If there is a match, the coordinate (X-Y) of the center point of the searched image on the searched image and the width/height values are assigned to the determined result variables. When x-position, y-position, width and height values aren’t entered, a search is made in the whole image.
| *Source image | Source image file name with path. |
| *Source image Base64 | Source image with base64 string. If image and its path are given in Source image field, Source image Base64 must not be used. In case of using it, an error will be returned. |
| *Searched image | File name and path of the image to be searched. |
| *Searched image Base64 | Searched image with base64 string. |
| X-coordinate | If it is desired to limit the image to be searched on the screen within a certain area; this field must be filled in, along with the Y-coordinate, Height, and Width fields. |
| Y-coordinate | If it is desired to limit the image to be searched on the screen within a certain area; this field must be filled in, along with the X-coordinate, Height, and Width fields. |
| Width | If it is desired to limit the image to be searched on the screen within a certain area; this field must be filled in, along with the X-coordinate, Y-coordinate and Height fields. |
| Height | If it is desired to limit the image to be searched on the screen within a certain area; this field must be filled in, along with the X-coordinate, Y-coordinate and Width fields. |
| Start scale | If it is desired to try again when the searched image is not found on the image, the Start Scale field is filled. Specifies the start scale. Scale statements are double-type numbers (0.1, 0.5, 2.0). |
| End scale | If it is desired to try again when the searched image is not found on the image, the Start Scale field is filled. Specifies the end scale. Scale statements are double-type numbers (0.1, 0.5, 2.0). |
| Scale step | If it is desired to try again when the searched image is not found on the image, the Start Scale field is filled. Specifies the progression coefficient. Specifies the progression coefficient. |
| Match score | Images are matched if their similarity percentage is higher than the match score. |
| *Return x-position | If the image matches, the x-coordinate of the center point of the searched image is assigned to this variable. |
| *Return y-position | If the image matches, the y-coordinate of the center point of the searched image is assigned to this variable. |
| *Return height | If the image matches, the height of the center point of the searched image is assigned to this variable. |
| *Return width | If the image matches, the width of the center point of the searched image is assigned to this variable. |
Note: * Fields selected with are required, others are optional.
Source image example
You can use the Source image as shown in the examples.
C:Robustarobusta.png
Source image Base64 example
You can use the Source image Base64 as shown in the example.
iVBORw0KGgoAAAANSUhEUgAA…
Searched image example
You can use the Searched image as shown in the example.
C:Robustarobusta_logo.png
Searched image Base64 examples
You can use the Searched image Base64 as shown in the examples.
iVBORw0KGgoAAAANSUhEUgAA…
X-coordinate example
You can use the X-coordinate as shown in the examples.
250
Y-coordinate example
You can use the X-coordinate as shown in the examples.
170
Width example
You can use the Width as shown in the examples.
100
Height example
You can use the Width as shown in the examples.
75
Start scale example
You can use the Start scale as shown in the examples.
1.0
End scale example
You can use the End scale as shown in the examples.
2.0
Scale step example
You can use the End scale as shown in the examples.
0.1
Match score example
You can use the Match score* *as shown in the example.
0.80
Return x-position example
You can use the Return x-position as shown in the examples.
x
Return x-position example
You can use the Return y-position as shown in the examples.
y
Return height example
You can use the Return height as shown in the examples.
h
Return width example
You can use the Return width as shown in the examples.
w
Caution
The values for height and width must be an integer.
