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


Java PDF417Common.MAX_CODEWORDS_IN_BARCODE属性代码示例

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


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

示例1: adjustCodewordCount

private static void adjustCodewordCount(DetectionResult detectionResult, BarcodeValue[][] barcodeMatrix)
    throws NotFoundException {
  int[] numberOfCodewords = barcodeMatrix[0][1].getValue();
  int calculatedNumberOfCodewords = detectionResult.getBarcodeColumnCount() *
      detectionResult.getBarcodeRowCount() -
      getNumberOfECCodeWords(detectionResult.getBarcodeECLevel());
  if (numberOfCodewords.length == 0) {
    if (calculatedNumberOfCodewords < 1 || calculatedNumberOfCodewords > PDF417Common.MAX_CODEWORDS_IN_BARCODE) {
      throw NotFoundException.getNotFoundInstance();
    }
    barcodeMatrix[0][1].setValue(calculatedNumberOfCodewords);
  } else if (numberOfCodewords[0] != calculatedNumberOfCodewords) {
    // The calculated one is more reliable as it is derived from the row indicator columns
    barcodeMatrix[0][1].setValue(calculatedNumberOfCodewords);
  }
}
 
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:16,代码来源:PDF417ScanningDecoder.java

示例2: adjustCodewordCount

private static void adjustCodewordCount(DetectionResult detectionResult, BarcodeValue[][]
        barcodeMatrix) throws NotFoundException {
    int[] numberOfCodewords = barcodeMatrix[0][1].getValue();
    int calculatedNumberOfCodewords = (detectionResult.getBarcodeColumnCount() *
            detectionResult.getBarcodeRowCount()) - getNumberOfECCodeWords(detectionResult
            .getBarcodeECLevel());
    if (numberOfCodewords.length == 0) {
        if (calculatedNumberOfCodewords < 1 || calculatedNumberOfCodewords > PDF417Common
                .MAX_CODEWORDS_IN_BARCODE) {
            throw NotFoundException.getNotFoundInstance();
        }
        barcodeMatrix[0][1].setValue(calculatedNumberOfCodewords);
    } else if (numberOfCodewords[0] != calculatedNumberOfCodewords) {
        barcodeMatrix[0][1].setValue(calculatedNumberOfCodewords);
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:16,代码来源:PDF417ScanningDecoder.java

示例3: adjustCodewordCount

private static void adjustCodewordCount(DetectionResult detectionResult, BarcodeValue[][] barcodeMatrix)
        throws NotFoundException {
    int[] numberOfCodewords = barcodeMatrix[0][1].getValue();
    int calculatedNumberOfCodewords = detectionResult.getBarcodeColumnCount() *
            detectionResult.getBarcodeRowCount() -
            getNumberOfECCodeWords(detectionResult.getBarcodeECLevel());
    if (numberOfCodewords.length == 0) {
        if (calculatedNumberOfCodewords < 1 || calculatedNumberOfCodewords > PDF417Common.MAX_CODEWORDS_IN_BARCODE) {
            throw NotFoundException.getNotFoundInstance();
        }
        barcodeMatrix[0][1].setValue(calculatedNumberOfCodewords);
    } else if (numberOfCodewords[0] != calculatedNumberOfCodewords) {
        // The calculated one is more reliable as it is derived from the row indicator columns
        barcodeMatrix[0][1].setValue(calculatedNumberOfCodewords);
    }
}
 
开发者ID:Ag47,项目名称:TrueTone,代码行数:16,代码来源:PDF417ScanningDecoder.java

示例4: getDetectionResultColumns

DetectionResultColumn[] getDetectionResultColumns() {
  adjustIndicatorColumnRowNumbers(detectionResultColumns[0]);
  adjustIndicatorColumnRowNumbers(detectionResultColumns[barcodeColumnCount + 1]);
  int unadjustedCodewordCount = PDF417Common.MAX_CODEWORDS_IN_BARCODE;
  int previousUnadjustedCount;
  do {
    previousUnadjustedCount = unadjustedCodewordCount;
    unadjustedCodewordCount = adjustRowNumbers();
  } while (unadjustedCodewordCount > 0 && unadjustedCodewordCount < previousUnadjustedCount);
  return detectionResultColumns;
}
 
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:11,代码来源:DetectionResult.java

示例5: getDetectionResultColumns

DetectionResultColumn[] getDetectionResultColumns() {
    adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]);
    adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount + 1]);
    int unadjustedCodewordCount = PDF417Common.MAX_CODEWORDS_IN_BARCODE;
    int previousUnadjustedCount;
    do {
        previousUnadjustedCount = unadjustedCodewordCount;
        unadjustedCodewordCount = adjustRowNumbers();
        if (unadjustedCodewordCount <= 0) {
            break;
        }
    } while (unadjustedCodewordCount < previousUnadjustedCount);
    return this.detectionResultColumns;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:14,代码来源:DetectionResult.java

示例6: getDetectionResultColumns

DetectionResultColumn[] getDetectionResultColumns() {
    adjustIndicatorColumnRowNumbers(detectionResultColumns[0]);
    adjustIndicatorColumnRowNumbers(detectionResultColumns[barcodeColumnCount + 1]);
    int unadjustedCodewordCount = PDF417Common.MAX_CODEWORDS_IN_BARCODE;
    int previousUnadjustedCount;
    do {
        previousUnadjustedCount = unadjustedCodewordCount;
        unadjustedCodewordCount = adjustRowNumbers();
    } while (unadjustedCodewordCount > 0 && unadjustedCodewordCount < previousUnadjustedCount);
    return detectionResultColumns;
}
 
开发者ID:Ag47,项目名称:TrueTone,代码行数:11,代码来源:DetectionResult.java


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