Documentation Portal      

What are you looking for?

Learning a Data Matrix Code and Creating an EasyMatrixCode Model File

Reading with Prior Learning

Objective

Following this tutorial, you will learn how to use EasyMatrixCode to learn a Data Matrix code, and save it as an EasyMatrixCode model file.

You'll need first to load a source image (step 1), and learn the matrix code (step 2). Then you'll save the learned matrix code as a new model file (step 3). You can also add new learned matrix codes to an existing model if needed (step 4).

The Data Matrix code has been learned

Step 1: Load the source image

1. From the main menu, click EasyMatrixCode, then New MatrixCode Tool.
2. Keep the default variable name for the new matrix code reader object, and click OK.
3. In the Learn tab, click the Open icon of the Source Image area, and load the image file EasyMatrixCode\Label\Label 4.tif.
4. Keep the default variable name for the new image object, and click OK.

Step 2: Learn the Data Matrix code

In the Learn tab, click Learn.

The Data Matrix code is detected and decoded without error.

The graphical result appears on the image.

The properties of the learned matrix code are updated in the dialog box.

Step 3: Save the model file

1. In the Learn tab, click the Save As... button.
2. Type a file name for the new EasyMatrixCode model file. Its extension will be .mx2.
3. Click Save.

Step 4: Learning more Data Matrix codes

1. In the Read tab, click the Open icon of the source image area, and load the image file EasyMatrixCode\PCB Code\PCB Code 3.jpg.
2. Keep the default variable name for the new image object, and click OK.
3. An error message is displayed in the Message area of the Read tab. The matrix code can not be read, since the reader uses the model from the "Label 4" image. You need to learn the "PCB Code 3" matrix code, and add it to the model.
4. In the Learn tab, click Learn More. The Data Matrix code is detected and decoded without error. The graphical result appears on the image. The properties of the learned matrix code are updated in the dialog box.
5. Using Learn More rather than Learn involves that the "Label 4" model is not replaced by the "PCB Code 3" model, but both are now included in the same model. In the Read tab, the "PCB Code 3" matrix code is correctly read. Select the "Label 4" image in the drop-down list of the source image area. The "Label 4" matrix code is still read without error, which means that both learned matrix codes have been kept.
6. Finally, save the model again (refer to step 3). The new matrix code has been added.

Which API shall we display?

© 2018 EURESYS s.a.  -  About Documentation  -  Open Source Licenses  -  Open eVision 2.5.1.1107