EasyMatrixCodeRead

Support

Required licenses

EasyMatrixCode

Recommended images

Any image from the folder Sample Images/EasyMatrixCode

Location

Text and Code Reading/EasyMatrixCodeRead and Console samples/Text and Code Reading

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(drawAdapter);
    Codes[iCode].DrawPosition(drawAdapter);
    Codes[iCode].DrawErrors(drawAdapter);