中文
Node Documentation

Find template matches

VisionConfigured target requiredvision.find-template-matches

Return all local template matches after deterministic non-maximum suppression.

Example use

Find all matching icons in an image and iterate over the returned list.

Node preview

Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.

Loading node preview…

Data inputs 5

Source imageimageImage

Image to search.

RequiredDefault: None
Template imagetemplateImage

Exact immutable template variant used for this workflow.

RequiredDefault: None
Search regionregionRegion

Ratio or pixel rectangle inside the source image.

Default availableDefault: {"height":1,"unit":"ratio","width":1,"x":0,"y":0}
Value format examples
{"height":0.5,"unit":"ratio","width":0.5,"x":0.25,"y":0.25}
Match thresholdthresholdNumber

Minimum normalized score from 0 to 1.

Default availableDefault: 0.8
Minimum distanceminimum-distanceInteger

Minimum pixel distance between retained match centers; 0 uses half the smaller template edge.

Default availableDefault: 0
  • Minimum: -9007199254740991
  • Maximum: 9007199254740991
Value format examples
0
42

Data outputs 1

MatchesmatchesTemplate match

Score-sorted list of typed template matches.

Version and node identity

Version 1.0.0

sha256:c0e74aa17aa8d778b1f510b6cbc9dee56e44f9ccf143be9b15ec116781bc5c21