DataMatrixReader.java (zxing-zxing-3.4.1) | : | DataMatrixReader.java (zxing-zxing-3.5.0) | ||
---|---|---|---|---|
skipping to change at line 86 | skipping to change at line 86 | |||
Result result = new Result(decoderResult.getText(), decoderResult.getRawByte s(), points, | Result result = new Result(decoderResult.getText(), decoderResult.getRawByte s(), points, | |||
BarcodeFormat.DATA_MATRIX); | BarcodeFormat.DATA_MATRIX); | |||
List<byte[]> byteSegments = decoderResult.getByteSegments(); | List<byte[]> byteSegments = decoderResult.getByteSegments(); | |||
if (byteSegments != null) { | if (byteSegments != null) { | |||
result.putMetadata(ResultMetadataType.BYTE_SEGMENTS, byteSegments); | result.putMetadata(ResultMetadataType.BYTE_SEGMENTS, byteSegments); | |||
} | } | |||
String ecLevel = decoderResult.getECLevel(); | String ecLevel = decoderResult.getECLevel(); | |||
if (ecLevel != null) { | if (ecLevel != null) { | |||
result.putMetadata(ResultMetadataType.ERROR_CORRECTION_LEVEL, ecLevel); | result.putMetadata(ResultMetadataType.ERROR_CORRECTION_LEVEL, ecLevel); | |||
} | } | |||
result.putMetadata(ResultMetadataType.SYMBOLOGY_IDENTIFIER, "]d" + decoderRe sult.getSymbologyModifier()); | ||||
return result; | return result; | |||
} | } | |||
@Override | @Override | |||
public void reset() { | public void reset() { | |||
// do nothing | // do nothing | |||
} | } | |||
/** | /** | |||
* This method detects a code in a "pure" image -- that is, pure monochrome im age | * This method detects a code in a "pure" image -- that is, pure monochrome im age | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |