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

Ключ

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

...

Click on the image Version 4 (Python)

Группа действий: Машинное зрение 

Описание

Данное действие предназначено для клика по изображению.

Иконка

Image Removed

Параметры

Входные параметры

Action group: Vision

...

Description

The action clicks on the image. 

Action icon

Image Added

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 areaIf the field is filled in, the search is performed only within the specified area.Robin.RectangleL ocation
Нет

Особые условия использования 

Отсутствуют.

Пример использования 

Задача  

Открыт документ, необходимо кликнуть ЛКМ по вкладке "Посмотреть все инструменты".

Image Removed

Решение

Воспользоваться действием "Клик по изображению". 

Реализация 

...


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.

Image Added

Solution

Use the "Click on the image" action. 

Implementation 

  1. Assemble a robot scheme with the actions: 
    Image Added

  2. 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.
    Image Added

  3. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully. The given image was clicked on. 

Image Added

The "View all tools" tab is active. 

Image Added

...

Результат

Программный робот отработал успешно. Клик по указанному изображению совершен. 

Image Removed

Вкладка "Посмотреть все инструменты" активна. 

Image Removed