region method

Class: TargetPlatform: ImagesLanguage: Python SDK:

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

Syntax

eyes.check(tag,Target().image(img).region(image, rect))
eyes.check(tag,Target().image(img).region(path, rect))

Note: This method is a static method.

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.
rect
Type:Region
An object that defines a rectangular area in the window.

Return value

Type: ImagesCheckSettings