Skip to content

Interface: OccurrenceResult<>

@appium/opencv.OccurrenceResult

Table of contents

Properties

Properties

method

method: undefined | OccurrenceResultMethod

The name of the template matching method. Acceptable values are: - TM_CCOEFF - TM_CCOEFF_NORMED (default) - TM_CCORR - TM_CCORR_NORMED - TM_SQDIFF - TM_SQDIFF_NORMED Read https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_imgproc/py_template_matching/py_template_matching.html for more details.

Defined in

packages/opencv/lib/index.js:479


multiple

multiple: OccurrenceResult[]

The array of matching OccurenceResults - only when multiple option is passed

Defined in

packages/opencv/lib/index.js:477


rect

rect: Rect

The region of the partial image occurence on the full image

Defined in

packages/opencv/lib/index.js:469


score

score: number

The similarity score as a float number in range [0.0, 1.0]. 1.0 is the highest score (means both images are totally equal).

Defined in

packages/opencv/lib/index.js:475


visualization

visualization: Buffer

The visualization of the matching result represented as PNG image buffer. On this image the matching region is highlighted with a rectangle. If the multiple option is passed, all results are highlighted here.

Defined in

packages/opencv/lib/index.js:471