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
- Image - path to template image file.
- Similarity rate - coefficient of similarity between the template image and the target area. The maximum value is "1".
- 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
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Image | Path to template image file. Supported image formats: (jpeg, jpg, bmp, png, tif, tiff) | Robin.Image | C:\doc\img.png | Yes |
Similarity rate | Coefficient 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 milliseconds | Robin.Numeric | Yes | |
Results | ||||
Result | "true" if the object matching the template disappeared from the screen else - "false" | Robin.Boolean | true |
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
- Move the "Wait to disappear" action to the workspace.
- Set the "Wait for disappear" action parameters.
- 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.