Package com.google.zxing.oned.rss
Class AbstractRSSReader
- java.lang.Object
-
- com.google.zxing.oned.OneDReader
-
- com.google.zxing.oned.rss.AbstractRSSReader
-
- All Implemented Interfaces:
Reader
- Direct Known Subclasses:
RSS14Reader
,RSSExpandedReader
public abstract class AbstractRSSReader extends OneDReader
Superclass ofOneDReader
implementations that read barcodes in the RSS family of formats.
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
dataCharacterCounters
private int[]
decodeFinderCounters
private int[]
evenCounts
private float[]
evenRoundingErrors
private static float
MAX_AVG_VARIANCE
private static float
MAX_FINDER_PATTERN_RATIO
Maximum ratio 12:14 (plus 0.5 for variance), from section 7.2.7 of ISO/IEC 24724:2006.private static float
MAX_INDIVIDUAL_VARIANCE
private static float
MIN_FINDER_PATTERN_RATIO
Minimum ratio 10:12 (minus 0.5 for variance), from section 7.2.7 of ISO/IEC 24724:2006.private int[]
oddCounts
private float[]
oddRoundingErrors
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRSSReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected static int
count(int[] array)
Deprecated.callMathUtils.sum(int[])
protected static void
decrement(int[] array, float[] errors)
protected int[]
getDataCharacterCounters()
protected int[]
getDecodeFinderCounters()
protected int[]
getEvenCounts()
protected float[]
getEvenRoundingErrors()
protected int[]
getOddCounts()
protected float[]
getOddRoundingErrors()
protected static void
increment(int[] array, float[] errors)
protected static boolean
isFinderPattern(int[] counters)
protected static int
parseFinderValue(int[] counters, int[][] finderPatterns)
-
Methods inherited from class com.google.zxing.oned.OneDReader
decode, decode, decodeRow, patternMatchVariance, recordPattern, recordPatternInReverse, reset
-
-
-
-
Field Detail
-
MAX_AVG_VARIANCE
private static final float MAX_AVG_VARIANCE
- See Also:
- Constant Field Values
-
MAX_INDIVIDUAL_VARIANCE
private static final float MAX_INDIVIDUAL_VARIANCE
- See Also:
- Constant Field Values
-
MIN_FINDER_PATTERN_RATIO
private static final float MIN_FINDER_PATTERN_RATIO
Minimum ratio 10:12 (minus 0.5 for variance), from section 7.2.7 of ISO/IEC 24724:2006.- See Also:
- Constant Field Values
-
MAX_FINDER_PATTERN_RATIO
private static final float MAX_FINDER_PATTERN_RATIO
Maximum ratio 12:14 (plus 0.5 for variance), from section 7.2.7 of ISO/IEC 24724:2006.- See Also:
- Constant Field Values
-
decodeFinderCounters
private final int[] decodeFinderCounters
-
dataCharacterCounters
private final int[] dataCharacterCounters
-
oddRoundingErrors
private final float[] oddRoundingErrors
-
evenRoundingErrors
private final float[] evenRoundingErrors
-
oddCounts
private final int[] oddCounts
-
evenCounts
private final int[] evenCounts
-
-
Method Detail
-
getDecodeFinderCounters
protected final int[] getDecodeFinderCounters()
-
getDataCharacterCounters
protected final int[] getDataCharacterCounters()
-
getOddRoundingErrors
protected final float[] getOddRoundingErrors()
-
getEvenRoundingErrors
protected final float[] getEvenRoundingErrors()
-
getOddCounts
protected final int[] getOddCounts()
-
getEvenCounts
protected final int[] getEvenCounts()
-
parseFinderValue
protected static int parseFinderValue(int[] counters, int[][] finderPatterns) throws NotFoundException
- Throws:
NotFoundException
-
count
@Deprecated protected static int count(int[] array)
Deprecated.callMathUtils.sum(int[])
- Parameters:
array
- values to sum- Returns:
- sum of values
-
increment
protected static void increment(int[] array, float[] errors)
-
decrement
protected static void decrement(int[] array, float[] errors)
-
isFinderPattern
protected static boolean isFinderPattern(int[] counters)
-
-