Package com.google.zxing.pdf417.decoder
Class DetectionResult
- java.lang.Object
-
- com.google.zxing.pdf417.decoder.DetectionResult
-
final class DetectionResult extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static intADJUST_ROW_NUMBER_SKIPprivate intbarcodeColumnCountprivate BarcodeMetadatabarcodeMetadataprivate BoundingBoxboundingBoxprivate DetectionResultColumn[]detectionResultColumns
-
Constructor Summary
Constructors Constructor Description DetectionResult(BarcodeMetadata barcodeMetadata, BoundingBox boundingBox)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidadjustIndicatorColumnRowNumbers(DetectionResultColumn detectionResultColumn)private static booleanadjustRowNumber(Codeword codeword, Codeword otherCodeword)private static intadjustRowNumberIfValid(int rowIndicatorRowNumber, int invalidRowCounts, Codeword codeword)private intadjustRowNumbers()private voidadjustRowNumbers(int barcodeColumn, int codewordsRow, Codeword[] codewords)private intadjustRowNumbersByRow()private voidadjustRowNumbersFromBothRI()private intadjustRowNumbersFromLRI()private intadjustRowNumbersFromRRI()(package private) intgetBarcodeColumnCount()(package private) intgetBarcodeECLevel()(package private) intgetBarcodeRowCount()(package private) BoundingBoxgetBoundingBox()(package private) DetectionResultColumngetDetectionResultColumn(int barcodeColumn)(package private) DetectionResultColumn[]getDetectionResultColumns()(package private) voidsetBoundingBox(BoundingBox boundingBox)(package private) voidsetDetectionResultColumn(int barcodeColumn, DetectionResultColumn detectionResultColumn)java.lang.StringtoString()
-
-
-
Field Detail
-
ADJUST_ROW_NUMBER_SKIP
private static final int ADJUST_ROW_NUMBER_SKIP
- See Also:
- Constant Field Values
-
barcodeMetadata
private final BarcodeMetadata barcodeMetadata
-
detectionResultColumns
private final DetectionResultColumn[] detectionResultColumns
-
boundingBox
private BoundingBox boundingBox
-
barcodeColumnCount
private final int barcodeColumnCount
-
-
Constructor Detail
-
DetectionResult
DetectionResult(BarcodeMetadata barcodeMetadata, BoundingBox boundingBox)
-
-
Method Detail
-
getDetectionResultColumns
DetectionResultColumn[] getDetectionResultColumns()
-
adjustIndicatorColumnRowNumbers
private void adjustIndicatorColumnRowNumbers(DetectionResultColumn detectionResultColumn)
-
adjustRowNumbers
private int adjustRowNumbers()
- Returns:
- number of codewords which don't have a valid row number. Note that the count is not accurate as codewords will be counted several times. It just serves as an indicator to see when we can stop adjusting row numbers
-
adjustRowNumbersByRow
private int adjustRowNumbersByRow()
-
adjustRowNumbersFromBothRI
private void adjustRowNumbersFromBothRI()
-
adjustRowNumbersFromRRI
private int adjustRowNumbersFromRRI()
-
adjustRowNumbersFromLRI
private int adjustRowNumbersFromLRI()
-
adjustRowNumberIfValid
private static int adjustRowNumberIfValid(int rowIndicatorRowNumber, int invalidRowCounts, Codeword codeword)
-
adjustRowNumbers
private void adjustRowNumbers(int barcodeColumn, int codewordsRow, Codeword[] codewords)
-
adjustRowNumber
private static boolean adjustRowNumber(Codeword codeword, Codeword otherCodeword)
- Returns:
- true, if row number was adjusted, false otherwise
-
getBarcodeColumnCount
int getBarcodeColumnCount()
-
getBarcodeRowCount
int getBarcodeRowCount()
-
getBarcodeECLevel
int getBarcodeECLevel()
-
setBoundingBox
void setBoundingBox(BoundingBox boundingBox)
-
getBoundingBox
BoundingBox getBoundingBox()
-
setDetectionResultColumn
void setDetectionResultColumn(int barcodeColumn, DetectionResultColumn detectionResultColumn)
-
getDetectionResultColumn
DetectionResultColumn getDetectionResultColumn(int barcodeColumn)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-