Java Code Examples for com.google.zxing.aztec.AztecDetectorResult#getBits()
The following examples show how to use
com.google.zxing.aztec.AztecDetectorResult#getBits() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Decoder.java From ZXing-Orient with Apache License 2.0 | 5 votes |
public DecoderResult decode(AztecDetectorResult detectorResult) throws FormatException { ddata = detectorResult; BitMatrix matrix = detectorResult.getBits(); boolean[] rawbits = extractBits(matrix); boolean[] correctedBits = correctBits(rawbits); String result = getEncodedData(correctedBits); return new DecoderResult(null, result, null, null); }
Example 2
Source File: Decoder.java From analyzer-of-android-for-Apache-Weex with Apache License 2.0 | 5 votes |
public DecoderResult decode(AztecDetectorResult detectorResult) throws FormatException { ddata = detectorResult; BitMatrix matrix = detectorResult.getBits(); boolean[] rawbits = extractBits(matrix); boolean[] correctedBits = correctBits(rawbits); String result = getEncodedData(correctedBits); return new DecoderResult(null, result, null, null); }
Example 3
Source File: Decoder.java From weex with Apache License 2.0 | 5 votes |
public DecoderResult decode(AztecDetectorResult detectorResult) throws FormatException { ddata = detectorResult; BitMatrix matrix = detectorResult.getBits(); boolean[] rawbits = extractBits(matrix); boolean[] correctedBits = correctBits(rawbits); String result = getEncodedData(correctedBits); return new DecoderResult(null, result, null, null); }
Example 4
Source File: Decoder.java From barcodescanner-lib-aar with MIT License | 5 votes |
public DecoderResult decode(AztecDetectorResult detectorResult) throws FormatException { ddata = detectorResult; BitMatrix matrix = detectorResult.getBits(); boolean[] rawbits = extractBits(matrix); boolean[] correctedBits = correctBits(rawbits); byte[] rawBytes = convertBoolArrayToByteArray(correctedBits); String result = getEncodedData(correctedBits); DecoderResult decoderResult = new DecoderResult(rawBytes, result, null, null); decoderResult.setNumBits(correctedBits.length); return decoderResult; }
Example 5
Source File: Decoder.java From MiBandDecompiled with Apache License 2.0 | 5 votes |
public DecoderResult decode(AztecDetectorResult aztecdetectorresult) { l = aztecdetectorresult; BitMatrix bitmatrix = aztecdetectorresult.getBits(); if (!l.isCompact()) { bitmatrix = b(l.getBits()); } return new DecoderResult(null, a(b(a(bitmatrix))), null, null); }
Example 6
Source File: Decoder.java From reacteu-app with MIT License | 4 votes |
public DecoderResult decode(AztecDetectorResult detectorResult) throws FormatException { ddata = detectorResult; BitMatrix matrix = detectorResult.getBits(); if (!ddata.isCompact()) { matrix = removeDashedLines(ddata.getBits()); } boolean[] rawbits = extractBits(matrix); boolean[] correctedBits = correctBits(rawbits); String result = getEncodedData(correctedBits); return new DecoderResult(null, result, null, null); }