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:<a class ='link' href='/Content/api/eyes-sdk/index-gen/class-region-images-python_sdk4.htm'>Region</a>
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: <a class ='link' href='/Content/api/eyes-sdk/index-gen/class-checksettings-images-python_sdk4.htm'>ImagesCheckSettings</a>