Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

The action is intended to wait for an object matching the set pattern to appear and get its coordinates. If the transmitted image matches the image(s) on the screen, the coordinates of all found matches are returned.

Action icon

Parameters

Input parameters

  1. Image  - the path to the image for recognition. The most effective use of files with the extension «.png». Valid extensions: «.jpeg», «.jpg», «.bmp», «.png», «.tif», «.tiff». If the algorithm did not find the file extension or the file type is not applicable, a warning will be displayed.
  2. Similarity rate - required coefficient of similarity between the template image and the target area. The maximum value is «1».
  3. Timeout (ms) - the time during which the appearance of the specified object will be expected. Timeout is set in milliseconds.
  4. Give center - the action will return the coordinates of the centers of the images found on the screen. By default, the coordinates of the upper left corner of the image are returned.
  5. Interval of taking screenshots - the interval of taking a screenshot for comparison with the specified image. Measured in seconds. Acceptable values: integers from 1 and more.        
  6. Comparison algorithm - an algorithm for comparing the specified image with the image on the screen. If one algorithm does not work correctly, you should try another one. Different image comparison algorithms will work more correctly in different cases. The following image comparison algorithms (TemplateMatchModes) are used:
    • TM_SQDIFF - sum of squares of the color differences.
    • TM_CCORR - sum of elemental productions.
    • TM_CCOEFF (by default) - cross-correlation between images with no middle (Pearson's correlation).
    • Direct Match - match pixels to the specified image. Make the image black and white. If true, the image color will be changed to grayscale.

7. Search for image edges - if the value is «true», then the search for edges of objects in the image will be performed. Edges are the boundaries that outline the image object.

8. Min edge search boundary - the minimum size of the edges of the image objects. Together with the value from the «Max. edge search boundary» field, it makes up the range of possible edge sizes. It is taken into account only if the «Search for image edges» parameter is true. Acceptable value: from 0 to 255. Default: 150.

9. Max edge search boundary - the maximum size of the edges of the image objects.Together with the value from the «Min. edge search boundary» field, it makes up the range of possible edge sizes. It is taken into account only if the «Search for image edges» parameter is true. Acceptable value: from 0 to 255. Default: 200.

10. Min image size change - the minimum zoom factor of the specified image. This parameter is used if the size of the image on the screen may differ from the size of the specified image. Recommended value: from 0.5. Default: 1.

11. Max image size change - the maximum zoom factor of the specified image. It is recommended to use the parameter if the size of the image on the screen may differ from the size of the specified image. Recommended value: up to 5. By default: 1.

Output parameters

Coordinates - A a variable that will contain the coordinates of all found objects. The order in which the result collection is populated: first comes the object found closest to the top-left corner of the search area. If the object did not appear within the specified period of time, the error «Image not found» will be displayed.

...

  • The resolution of the search image and the screen resolution must match in order for the action to work correctly.  For this purpose it is recommended to make a screenshot of the image. The most effective way to use files with ".png" extension.
  • The screenshot interval does not take into account the image processing time. The action will take a screenshot at the specified interval. The interval is measured in seconds. The minimum is 1 second.
  • The value of "Min . image size change" must not exceed the value of "Max . image size change". Otherwise, the action will generate an error.
  • If the "Min . edge search boundary" parameter is filled in and the "Max . edge search boundary" parameter is not filled in (and vice versa), the action will take the values that these parameters have by default.
  • If the "Min . image size change" parameter is filled in and the "Max . image size change" parameter is not filled in (and vice versa), the action will take the default values of these parameters.

...

Return the coordinates of the found images on the screen corresponding to the given image when you make advanced settings of parameter values according to the setting table. 

Run the robot. 


Task 3

Return the coordinates of found images on the screen corresponding to the

...

specified image when setting individual incorrect advanced settings

...

for parameter values other than the setting table. 

When

...

specifying an interval for taking a screenshot to compare with the specified image.

...

Specified a null value.  Valid values

...

: integers

...

from 1

...

and more. 

...

The robot generated an error.

...


Task 4.

Return the coordinates of found images on the screen corresponding to the specified image when setting individual incorrect advanced settings to parameter values other than the setting table. 

...