Get largest rectangle

Get largest rectangle activity is used for getting the largest rectangle-shaped object in an image.

*Image file name Name and path of image file.
*Return x-position Final x-position, variable name defined to assign the x-coordinate found.
*Return y-position Final y-position, variable name defined to assign the y-coordinate found.
* Return width Final width, variable name defined to assign the width found.
* Return height Final height, variable name defined to assign the heightfound.

Note: * Fields selected with are required, others are optional.

Image file name example

You can use the Image file image as shown in the example .

C:Robustarobusta.png

Return x-position example

You can use the Return x-position* *as shown in the example.

xPositonvalue

Return y-position example

You can use the Return y-position* *as shown in the example.

yPositonvalue

Return width example

You can use the Return width as shown in the example.

widthValue

Return height example

You can use the Return height as shown in the example.

heightValue

Note

You can use Return x-position and Return y-position variables in Mouse activity in Keyboard & Mouse Operations.

In the example above, the coordinates of the text specified in the Text field will be scanned and a value will be returned to the xPositionValue and yPositionValue variables (For example: 300,280). When we select LEFT_CLICK from the combobox in the Action field of the Mouse Activity and write these returned variables as $ {xPositionValue} and $ {xPositionValue} into the X Position and Y Position fields, the returned values 300 and 280 will be used in the Mouse activity with the variable. As a result of the operation, left mouse click will be performed on the text specified in the Text field.