Chapter
4
Reference Manual
IVC-2D
120
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
Matching
Teach Pattern
The Pattern tools are used to locate and inspect patterns, for example labels, keypads and
fiducial marks.
The functionality is divided into two parts:
1.
The Teach Pattern tool teaches the camera a pattern in a reference image.
2.
The Inspect Pattern tool locates and inspects the pattern in a live image.
This page describes the specifics for the Teach Pattern tool. For a general introduction and
detailed explanation of the Pattern functionality and its use, see the Inspect Pattern tool
description on page 122.
A ROI (Region of Interest) determines the area in which to teach the pattern. When the tool
executes, the taught pattern is stored in a data block in the camera’s working memory.
This data block will be used by the Inspect Pattern tool.
The tools Save Data Block to Flash and Load Data Block from Flash, see pages 166 and
165, can be used to store and retrieve the taught pattern in a stand-alone application.
Each pattern has a reference point that defines the position of the pattern. The default
position is the centroid of the ROI, but it can be set to any position in the reference image.
Default, centroid position of
the reference point (red cross).
The reference point can be moved, for
example to a key feature on the object.
When the Inspect Pattern step refers to a Shape Locator step, the expected position of
the reference point will move with the located object’s pose.
The reference point is not visualized, but it can be done with drawing tools right after the
Teach step if needed. To find suitable coordinates manually, double-click the preview bank,
and then hover with the mouse pointer to find the coordinate of the desired feature point.
Input Parameters
01 = Source Bank
The image bank that contains the reference pattern to be
taught.
02 = ROI Definition Step
The reference to the region of interest that defines which
part of the source bank shall be taught.
03 = Data Block
The data block number in the working memory, where the
reference pattern shall be stored.
04 = Ref. Point X
Coordinate
The X coordinate of the pattern’s reference point.
05 = Ref. Point Y
Coordinate
The Y coordinate of the pattern’s reference point.