Package com.google.zxing.pdf417.decoder
Class DetectionResult
java.lang.Object
com.google.zxing.pdf417.decoder.DetectionResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private final int
private final BarcodeMetadata
private BoundingBox
private final DetectionResultColumn[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
adjustIndicatorColumnRowNumbers
(DetectionResultColumn detectionResultColumn) private static boolean
adjustRowNumber
(Codeword codeword, Codeword otherCodeword) private static int
adjustRowNumberIfValid
(int rowIndicatorRowNumber, int invalidRowCounts, Codeword codeword) private int
private void
adjustRowNumbers
(int barcodeColumn, int codewordsRow, Codeword[] codewords) private int
private void
private int
private int
(package private) int
(package private) int
(package private) int
(package private) BoundingBox
(package private) DetectionResultColumn
getDetectionResultColumn
(int barcodeColumn) (package private) DetectionResultColumn[]
(package private) void
setBoundingBox
(BoundingBox boundingBox) (package private) void
setDetectionResultColumn
(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
- Returns:
- true, if row number was adjusted, false otherwise
-
getBarcodeColumnCount
int getBarcodeColumnCount() -
getBarcodeRowCount
int getBarcodeRowCount() -
getBarcodeECLevel
int getBarcodeECLevel() -
setBoundingBox
-
getBoundingBox
BoundingBox getBoundingBox() -
setDetectionResultColumn
-
getDetectionResultColumn
-
toString
-