Wait for disappear Version 8 (Python)

Action group: Vision 


Description

The action waits for an object that meets the set criteria to disappear

Action icon

Parameters 

Input parameters

  1. Image - path to template image file. 
  2. Similarity rate - 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 object specified by template will be expected. Timeout is set in milliseconds.

Output parameters

Result - variable into which the result of the object disappearance check will be saved.

Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ImagePath to template image file. Supported image formats: (jpeg, jpg, bmp, png, tif, tiff)Robin.ImageC:\doc\img.pngYes
Similarity rateCoefficient of similarity between the template image and the target area. The maximum value is "1"Robin.Numeric
Yes
Timeout (ms)The time during which the appearance of the object specified by template will be expected. Timeout is set in millisecondsRobin.Numeric
Yes
Results
Result"true" if the object matching the template disappeared from the screen else - "false"Robin.Booleantrue

Special conditions of use

The resolution of the search image and the screen resolution must match in order for the action to work correctly.  It is recommended to take a screenshot of the image for this purpose.

If the result is "true" and the object is present on the screen, then there is a need to refine the degree of similarity to the search image. 

The most effective use of files with the extension ".png"

Example of use

Task

Wait for the image to disappear from the screen. 

Solution

Use the "Wait for disappear" action.  

Implementation

  1. Move the "Wait to disappear" action to the workspace. 


  2. Set the "Wait for disappear" action parameters. 


  3. Click the "Start" button in the top panel to run the robot. Close the image manually. 

Result

The program robot completed successfully. The result is "true" - the object appeared on the screen and disappeared from it. 


  • Нет меток