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 int
ADJUST_ROW_NUMBER_SKIP
private int
barcodeColumnCount
private BarcodeMetadata
barcodeMetadata
private BoundingBox
boundingBox
private 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 void
adjustIndicatorColumnRowNumbers(DetectionResultColumn detectionResultColumn)
private static boolean
adjustRowNumber(Codeword codeword, Codeword otherCodeword)
private static int
adjustRowNumberIfValid(int rowIndicatorRowNumber, int invalidRowCounts, Codeword codeword)
private int
adjustRowNumbers()
private void
adjustRowNumbers(int barcodeColumn, int codewordsRow, Codeword[] codewords)
private int
adjustRowNumbersByRow()
private void
adjustRowNumbersFromBothRI()
private int
adjustRowNumbersFromLRI()
private int
adjustRowNumbersFromRRI()
(package private) int
getBarcodeColumnCount()
(package private) int
getBarcodeECLevel()
(package private) int
getBarcodeRowCount()
(package private) BoundingBox
getBoundingBox()
(package private) DetectionResultColumn
getDetectionResultColumn(int barcodeColumn)
(package private) DetectionResultColumn[]
getDetectionResultColumns()
(package private) void
setBoundingBox(BoundingBox boundingBox)
(package private) void
setDetectionResultColumn(int barcodeColumn, DetectionResultColumn detectionResultColumn)
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-