Object Template Matcher

The class EObjectTemplateMatcher .NET Python is a tool designed to align and match the output of EasyObject to a reference template. It is designed to efficiently handle thousands of objects.

Workflow of the object template matcher.

Creating the Reference Template

Use the method BuildTemplate .NET Python to create the reference template, with one of the following parameters:

An encoding of the reference image for use as the template.
The center positions of each object for use in the matching process.

Matching the objects

To perform object matching after setting up the template:

Before matching, EObjectTemplateMatcher .NET Python performs an optional global rigid alignment of the submitted positions with the defined template.

The template. The template.
The alignment of the submitted selection. The alignment of the submitted selection.

Tip

For EObjectTemplateMatcherAlignment_Fast .NET Python and EObjectTemplateMatcherAlignment_Robust .NET Python, you can also specify a maximum angle with the method SetMaximumAngle .NET Python. This is especially useful when the objects form a (nearly) symmetric pattern.

After the optional alignment, EObjectTemplateMatcher .NET Python matches the submitted positions with the reference template.

  • It uses the shortest distance criterion to pair these positions with the template.

  • You can set the maximum distance to constraint the search. This can speed up processing.

Retrieving the Matching Results

../../../_images/eobjectsort_05.webp

Matching results.