Class DetectionResult
java.lang.Object
com.google.zxing.pdf417.decoder.DetectionResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final intprivate final BarcodeMetadataprivate BoundingBoxprivate final DetectionResultColumn[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidadjustIndicatorColumnRowNumbers(DetectionResultColumn detectionResultColumn) private static booleanadjustRowNumber(Codeword codeword, Codeword otherCodeword) private static intadjustRowNumberIfValid(int rowIndicatorRowNumber, int invalidRowCounts, Codeword codeword) private intprivate voidadjustRowNumbers(int barcodeColumn, int codewordsRow, Codeword[] codewords) private intprivate voidprivate intprivate int(package private) int(package private) int(package private) int(package private) BoundingBox(package private) DetectionResultColumngetDetectionResultColumn(int barcodeColumn) (package private) DetectionResultColumn[](package private) voidsetBoundingBox(BoundingBox boundingBox) (package private) voidsetDetectionResultColumn(int barcodeColumn, DetectionResultColumn detectionResultColumn) toString()
-
Field Details
-
ADJUST_ROW_NUMBER_SKIP
private static final int ADJUST_ROW_NUMBER_SKIP- See Also:
-
barcodeMetadata
-
detectionResultColumns
-
boundingBox
-
barcodeColumnCount
private final int barcodeColumnCount
-
-
Constructor Details
-
DetectionResult
DetectionResult(BarcodeMetadata barcodeMetadata, BoundingBox boundingBox)
-
-
Method Details
-
getDetectionResultColumns
DetectionResultColumn[] getDetectionResultColumns() -
adjustIndicatorColumnRowNumbers
-
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
-
adjustRowNumber
-
getBarcodeColumnCount
int getBarcodeColumnCount() -
getBarcodeRowCount
int getBarcodeRowCount() -
getBarcodeECLevel
int getBarcodeECLevel() -
setBoundingBox
-
getBoundingBox
BoundingBox getBoundingBox() -
setDetectionResultColumn
-
getDetectionResultColumn
-
toString
-