decode method

DecoderResult decode(
  1. List<List<bool>> image
)

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

@param image booleans representing white/black Data Matrix Code modules @return text and bytes encoded within the Data Matrix Code @throws FormatException if the Data Matrix Code cannot be decoded @throws ChecksumException if error correction fails

Implementation

DecoderResult decode(List<List<bool>> image) {
  return decodeMatrix(BitMatrix.parse(image));
}