You are here: Start » Program Examples » Datamatrix - Difficult codes

Datamatrix - Difficult codes

Aim:

This example demonstrates the Datamatrix code reading capabilities of FabImage Studio. In particular, how it handles deformed codes, codes with an interrupted quiet zone and location pattern.

Input:

An image containing a Datamatrix code. The position of the Datamatrix is variable. The Datamatrix is damaged.

Output:

Detected Datamatrix and decoded text.

Hints:

Labeling connections is explained in this article.

Solution (FIS):

  1. Add the EnumerateImages to the ACQUIRE section to get images from a directory.
  2. In the PROCESS section, add the ReadSingleDatacode filter to detect and recognize a Datamatrix. Connect it to the outImage output of the previous tool.
  3. Expand the inCodeParams in the Properties.
  4. Set the Polarity parameter to Dark.
  5. Set the MinRowCount parameter to 15.
  6. Set the MaxRowCount parameter to 30.
  7. Set the MinColumnCount parameter to 15.
  8. Set the MaxColumnCount parameter to 30.
  9. Set the MaxModuleSize parameter to 30.
  10. Set the MaxSlant parameter to 30.
  11. Set the AllowPerspective parameter to High.
  12. Set the AllowDistortion parameter to Medium.
  13. Expand the inDetectionParams in the Properties.
  14. Set the ContrastThreshold parameter to 5.
  15. Set the ContrastPerturbations parameter to 1.
  16. Set the PyramidStrategy parameter to Strict.
  17. Set the OutlineStrategy parameter to Extended.
  18. Set the FinderTradeoff parameter to Auto.
  19. Show the decoded text on a new preview window.

Macrofilter Main.