Searches the screen for a template image loaded from a file path. Uses masked normalized cross-correlation: transparent pixels in the template PNG are ignored, so only opaque regions (text, borders) contribute to the match score.
Absolute path to a PNG template with transparent background.
Optionalthreshold: numberMinimum correlation score to consider a match, between 0 and 1. Defaults to 0.8.
Optionalregion: WindowBoundsSearch region { x, y, width, height } in virtual screen coordinates. Omit to search all monitors.
An ImageMatchResult with the center coordinates and score, or null if no match meets the threshold.
Searches the screen for a template image provided as Base64-encoded PNG data. Transparent pixels are masked out; only opaque regions contribute to the score.
Base64-encoded PNG image data with transparent background.
Optionalthreshold: numberMinimum correlation score to consider a match, between 0 and 1. Defaults to 0.8.
Optionalregion: WindowBoundsSearch region { x, y, width, height } in virtual screen coordinates. Omit to search all monitors.
An ImageMatchResult with the center coordinates and score, or null if no match meets the threshold.