Chapter
5
Reference Manual
IVC-2D
228
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
Interactive Setups
2D Code
The 2D code tool is used for reading 2D codes in images. The tool can read DATAMATRIX
codes, and supports error correction according to ECC200.
Decoding 2D Codes
The tool locates the 2D code by finding the solid border (
L-pattern
) and the dashed border
(
alternating pattern
). It does so by searching the ROI of the image along horizontal and
vertical scan lines, and finding edges along those lines. To be able to locate the 2D code,
the angle of the L-pattern must lie inside the ROI.
Figure – The parts of a 2D code symbol
The number of scan lines used depends on the provided
cell size
– that is, the approxima-
te size in pixels of the modules (squares) in the 2D code, the
symbol size
– that is, the
number of cells in the symbol.
Figure – Scan lines used for locating the symbol
By default, the tool will use 2,5 scan lines for each symbol. Using smaller cell sizes or
increasing the scan line density will increase the number of scan lines used, and will also
increase the execution time. If the symbol size is not specified (set to
Any size
), the tool
uses a symbol size of 10x10 cells for placing the scan lines.
L-pattern
Alternating
pattern
Cell size (pixels)
Symbol size (cells)
Scan lines
Scan line distance
Must be in
the ROI