decode

Convenience method that can decode a Data Matrix Code represented as a 2D array of booleans. "true" is taken to mean a black module.

Return

text and bytes encoded within the Data Matrix Code

Parameters

image

booleans representing white/black Data Matrix Code modules

Throws

FormatException

if the Data Matrix Code cannot be decoded

if error correction fails


Decodes a Data Matrix Code represented as a BitMatrix. A 1 or "true" is taken to mean a black module.

Return

text and bytes encoded within the Data Matrix Code

Parameters

bits

booleans representing white/black Data Matrix Code modules

Throws

FormatException

if the Data Matrix Code cannot be decoded

if error correction fails