You are here: Start » Program Examples » Datamatrix
Datamatrix
Aim:
The task is to detect and recognize a single Datamatrix code.
Input:
An image containing a Datamatrix code. The position of the Datamatrix is variable.
Output:
Detected Datamatrix and decoded text.
Hints:
Labeling connections is explained in this article.
Solution (FIS):
- In Workspace Explorer, open the workspace Examples, and in the Filmstrip window, select the Datamatrix dataset. Drag the Image channel to the ACQUIRE section.
- Add the ReadSingleDatacode filter to detect and recognize a Datamatrix.
- Expand the inCodeParams in the Properties.
- Set the Polarity parameter to Dark.
- Set the MinRowCount parameter to 12.
- Set the MaxRowCount parameter to 12.
- Set the MinColumnCount parameter to 12.
- Set the MaxColumnCount parameter to 12.
- Set the MinModuleSize parameter to 3.
- Set the MaxModuleSize parameter to 8.
- Set the ExpectedGapSize parameter to Zero.
- Set the MaxRectangleRatio parameter to 1.
- Set the AllowBrokenFinder parameter to False
- Show the decoded text on a new preview window.
Macrofilter Main
Used Filters
Icon | Name | Description |
---|---|---|
![]() |
ReadSingleDatacode | Detects and recognizes one Data Code. |