История страницы
...
Click on the image Version 4 (Python)
Группа действий: Машинное зрение
Описание
Данное действие предназначено для клика по изображению.
Иконка
Параметры
Входные параметры
Action group: Vision
...
Description
The action clicks on the image.
Action icon
Parameters
Input parameters
Image - path to the template image file. Supported image formatsИзображение с шаблоном Путь к файлу с изображением шаблона. Поддерживаемые форматы изображений: (jpeg, jpg, bmp, png, tif, tiff).
Вид клика Варианты нажатия кнопки мыши (ПКМ, ЛКМ, двойной клик).
Степень сходства изображения Коэффициент сходства между шаблоном и искомым изображением. Максимальное значение равно «1».
Порядок Порядковый номер элемента коллекции найденных изображений, нумерация начинается с 0. Тип - Robin.Numeric. Обязательность заполнения поля - обязательно.
Сдвиг по оси X Количество пикселей, на которые сместится точка координат по горизонтали от центра найденного изображения.
Сдвиг по оси Y Количество пикселей, на которые сместится точка координат по вертикали от центра найденного изображения.
Таймаут, мс Время в миллисекундах, в течении которого будет происходить поиск изображения.
Настройки
Click option - mouse click options (right mouse button, left mouse button, double click).
Similarity rate - the similarity index between the template and the searched image. The maximum value is "1".
Element index - order number of the element of the found images collection, numbering starts from 0. Type - Robin.Numeric. Field must be filled in, it's mandatory.
X-axis shift - the number of pixels by which the coordinate point will move horizontally from the center of the found image.
Y-axis shift - the number of pixels by which the coordinate point will move vertically from the center of the found image.
Timeout (ms) - time in milliseconds during which the image will be searched.
Search area - if the field is filled in, the search is performed only within the specified area.
Settings
Property | Description | Type | Filling example | Mandatory field |
Параметры | ||||
Image | Path to the template image file. Supported image formats |
Свойство
Описание
Тип
Пример заполнения
Обязательность заполнения поля
Параметры
Изображение
: (jpeg, jpg, bmp, png, tif, tiff). | Robin.Image | C:\doc\img.png |
Yes |
Вид клика
Click option | Mouse click options. | Robin.String |
Yes |
Степень сходства
Similarity rate | The similarity index between the image indicated in the action and the image on the screen. | Robin.Numeric |
Yes |
Индекс элемента
Element index | Order number of the element in the collection of found image coordinates. Numbering starts from 0. | Robin.Numeric |
Да
Сдвиг по оси х
Yes | ||
X-axis shift | The number of pixels by which the coordinate point will move horizontally from the center of the found image. | Robin.Numeric |
Нет
Сдвиг по оси y
No | ||
Y-axis shift | The number of pixels by which the coordinate point will move vertically from the center of the found image. | Robin.Numeric |
No |
Timeout, |
ms | Time in milliseconds during which the image will be searched. | Robin.Numeric |
Yes |
Search area | If the field is filled in, the search is performed only within the specified area. | Robin.RectangleL ocation |
Особые условия использования
Отсутствуют.
Пример использования
Задача
Открыт документ, необходимо кликнуть ЛКМ по вкладке "Посмотреть все инструменты".
Решение
Воспользоваться действием "Клик по изображению".
Реализация
...
No |
Special conditions of use
If the image that the action is trying to click on does not appear on the screen, the robot will exit with an error related to the end of the timeout.
Example of use
Task
There is an open document, click left mouse button in the "View all tools" tab.
Solution
Use the "Click on the image" action.
Implementation
- Assemble a robot scheme with the actions:
- Transfer the "Click on the image" action to the workspace and set its parameters. Beforehand, take a screenshot of the image to be clicked by the robot.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully. The given image was clicked on.
The "View all tools" tab is active
...
Результат
Программный робот отработал успешно. Клик по указанному изображению совершен.
Вкладка "Посмотреть все инструменты" активна.