Reading a Matrix Code
Reference | Code Snippets | dedicated code snippet: Reading Data Matrix Codes
You can read the matrix code in an image automatically as follows:
|
b.
|
Call the Read method to return a vector containing the detected and decoded matrix codes in the image. |
The Read method provides the following overloads:
|
□
|
One overload that takes an ERegion object as an additional parameter to specify more precisely the search area. |
|
□
|
One overload to specify a search grid when your matrix codes are placed in a regular fashion. |
The EMatrixCode2.EMatrixCode instances contain the following information for each found data matrix code:
|
□
|
Its codewords (raw bytes) |
|
□
|
Its position in the image |
|
□
|
Its printing polarity (black on white or white on black) |
|
□
|
Methods to draw the data matrix code on the source image |