Back to Aurora Vision Library website
You are here: Start » Function Reference » Computer Vision » Datacodes » DecodeDataMatrix

DecodeDataMatrix
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | Datacodes |
Translates an image of 0 or 255 values to a text in accordance to how DataMatrix codes are encoded.
Applications: Decoding of data matrix codes whose black and white segments have been determined in a non-standard way.
Syntax
C++
C#
void avl::DecodeDataMatrix ( const avl::Image& inImage, bool inAllowMirrored, atl::Conditional<atl::String>& outText, atl::Conditional<avl::DataMatrixType::Type>& outType )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inImage | const Image& | Input image of datamatrix image | |
![]() |
inAllowMirrored | bool | Allows reading mirrored/transposed codes | |
![]() |
outText | Conditional<String>& | Decoded text or nothing if decoding failed | |
![]() |
outType | Conditional<DataMatrixType::Type>& | DataMatrix code type |
Requirements
For input inImage only pixel formats are supported: 1⨯uint8.
Read more about pixel formats in Image documentation.
Description
Supported code types: ECC 200 and ECC 000-140.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Not supported inImage pixel format in DecodeDataMatrix. Supported formats: 1xUInt8. |
See Also
- ReadMultipleDataCodes – Reads multiple data codes (1D and 2D).
- ReadSingleDataCode – Reads a single data code (1D or 2D) in the input image.
- ReadSingleBarcode – Reads a single barcode (1D) in the input image.
- ReadMultipleBarcodes – Reads multiple barcodes (1D) in the input image.
- RecognizeBarcode – Extracts information from a barcode located in the input image at a given position.