A group of actions: Vision
This action is intended to wait for the appearance of an object that matches the specified template, and get its coordinates.
Settings
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
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. | Robin.Image | C:\doc\img.png | Yes |
Similarity rate | Required coefficient of similarity between the template image and the target area. The maximum value is «1» | Robin.Numeric | Yes | |
Give center | If the parameter is «false», the action will return coordinates of the upper left corner of the image found on the screen, otherwise it returns coordinates of the center of the found image | Robin.Boolean | true | No |
Timeout (ms) | The time during which the appearance of the specified object will be expected. Timeout is set in milliseconds | Robin.Numeric | Yes | |
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. | Robin.Numeric | No | |
Comparison algorithm | The algorithm for comparing the specified image. If one algorithm does not work correctly, you should try another one. The default value is TM_CCOEFF. | Robin.String | No | |
Make the image black and white | If the value is «true», then the image color will be changed to grayscale. | Robin.Boolean | true | No |
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. | Robin.Boolean | true | No |
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. | Robin.Numeric | No | |
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. | Robin.Numeric | No | |
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. | Robin.Numeric | No | |
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. | Robin.Numeric | No | |
Results | ||||
Coordinates | 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. | Robin.Collection |
Обзор
Инструменты контента