EasyMatrixCodeRead

Support

Required licenses

EasyMatrixCode

Recommended images

Any image from the folder Sample Images\EasyMatrixCode

Location

[…]C:\Users\Public\Documents\Euresys\Open eVision 24.02\Sample Programs
\[LANGUAGE] samples
\Text and Code Reading\EasyMatrixCodeRead

Purpose

This sample program demonstrates how to:

Read a data matrix code in an image.

Code highlights

1. Locate and read the data matrix codes in the image.
m_Codes = m_MXC2.Read(m_Src);
2. Retrieve the text encoded the data matrix code.
m_DecodedStrings[iCode] = m_Codes[iCode].GetDecodedString();
3. Draw the grid, the position and the erroneous modules of the data matrix code on the image.
Codes[iCode].DrawGrid(hDC);
Codes[iCode].DrawPosition(hDC);
Codes[iCode].DrawErrors(hDC);