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
Input value inImage const Image& Input image of datamatrix image
Input value inAllowMirrored bool Allows reading mirrored/transposed codes
Output value outText Conditional<String>& Decoded text or nothing if decoding failed
Output value 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

  • RecognizeBarcode – Extracts information from a barcode located on the input image at a given position.
  • ReadSingleQRCode – Detects and recognizes a single QR code on the input image.