region method

Class: TargetPlatform: ImagesLanguage: Python SDK:

Configure check to match a region in the checkpoint image, instead of the entire image.

Syntax


target = Target.region(image, rect)

target = Target.region(path, rect)

Parameters

image
Type:Image
The checkpoint image as an object in PNG format.
rect
Type:Region
An object that defines a rectangular area in the window.
path
Type:Text
A string with the file system path to the checkpoint image file. The image must be in PNG format.

Return value

Type: ImagesCheckSettings