当前位置: 首页>>代码示例>>Java>>正文


Java AztecDetectorResult.getBits方法代码示例

本文整理汇总了Java中com.google.zxing.aztec.AztecDetectorResult.getBits方法的典型用法代码示例。如果您正苦于以下问题:Java AztecDetectorResult.getBits方法的具体用法?Java AztecDetectorResult.getBits怎么用?Java AztecDetectorResult.getBits使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.zxing.aztec.AztecDetectorResult的用法示例。


在下文中一共展示了AztecDetectorResult.getBits方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: decode

import com.google.zxing.aztec.AztecDetectorResult; //导入方法依赖的package包/类
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);
}
 
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:9,代码来源:Decoder.java

示例2: decode

import com.google.zxing.aztec.AztecDetectorResult; //导入方法依赖的package包/类
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);
  return new DecoderResult(rawBytes, result, null, null);
}
 
开发者ID:xiong-it,项目名称:PortraitZXing,代码行数:10,代码来源:Decoder.java

示例3: decode

import com.google.zxing.aztec.AztecDetectorResult; //导入方法依赖的package包/类
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);
}
 
开发者ID:Ag47,项目名称:TrueTone,代码行数:9,代码来源:Decoder.java

示例4: decode

import com.google.zxing.aztec.AztecDetectorResult; //导入方法依赖的package包/类
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);
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:11,代码来源:Decoder.java

示例5: decode

import com.google.zxing.aztec.AztecDetectorResult; //导入方法依赖的package包/类
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;
}
 
开发者ID:srowen,项目名称:zxing-bsplus,代码行数:12,代码来源:Decoder.java

示例6: decode

import com.google.zxing.aztec.AztecDetectorResult; //导入方法依赖的package包/类
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);
}
 
开发者ID:atomsheep,项目名称:sres-app,代码行数:17,代码来源:Decoder.java

示例7: decode

import com.google.zxing.aztec.AztecDetectorResult; //导入方法依赖的package包/类
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);
}
 
开发者ID:yakovenkodenis,项目名称:Discounty,代码行数:17,代码来源:Decoder.java


注:本文中的com.google.zxing.aztec.AztecDetectorResult.getBits方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。