Reference Manual
Chapter
4
IVC-2D
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
207
Reader
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.
This tool has an interactive setup in which you can set the input parameters and immedia-
tely see how the result is affected by the changes. The interactive setup is opened by
double-clicking the
Setup
button.
The tool returns the code that was read as a string in
Read string
, the amount of unused
error correction after decoding the 2D code in
Unused error correction
, and
Error flag
indicates whether any error occurred when reading the 2D code.
In addition, the tool can write detailed results to the table:
Table row
Result
Table index
A string containing the grades that indicated the print quality of the
2D code, according to ISO/IEC 16022:2000
+1
The symbol size of the 2D code
+2
X coordinate of the decoded 2D code
+3
Y coordinate of the decoded 2D code
+4
The angle that the 2D code is rotated
+5
1 if the 2D code is mirrored, 0 if not
Input Parameters
01 = Source bank
Image bank containing the image with the 2D code to
be read.
02 = Search full image
Indicates if the algorithm shall search for a code using
the whole image, or the search area specified by the
parameters 03-06.
03 = X coordinate
X coordinate for the upper left corner of the ROI in
which to search for the 2D code.
04 = Y coordinate
Y coordinate for the upper left corner of the ROI in
which to search for the 2D code.
05 = Width
Width of the ROI in which to search for the 2D code.
06 = Height
Height of the ROI in which to search for the 2D code.
07 = Table index
First row in the table where detailed results should be
written. The detailed result occupies 6 rows.
If set to -1, detailed results will not be written to the
table.
08 = Destination bank
Image bank in which the resulting image will be stored.
Returned Values
01 = Read string
A string containing the code that was read
02 = Unused error correcti-
on
The amount of error correction that was left after
decoding 2D code, in percent.
03 = Error flag
Indicates whether or not any error occurred when
reading the 2D code.
0 = String was decoded successfully.
1 = No string was read.