mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Issue 1103 stop excluding 1-char code 128 as it does not seem to be a big deal for false positives now
git-svn-id: https://zxing.googlecode.com/svn/trunk@2085 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
873608de67
commit
703cc2e8bf
|
@ -439,13 +439,6 @@ public final class Code128Reader extends OneDReader {
|
|||
}
|
||||
}
|
||||
|
||||
String resultString = result.toString();
|
||||
|
||||
if (resultString.length() < 2) {
|
||||
// Almost surely a false positive
|
||||
throw FormatException.getFormatInstance();
|
||||
}
|
||||
|
||||
float left = (float) (startPatternInfo[1] + startPatternInfo[0]) / 2.0f;
|
||||
float right = (float) (nextStart + lastStart) / 2.0f;
|
||||
|
||||
|
@ -456,7 +449,7 @@ public final class Code128Reader extends OneDReader {
|
|||
}
|
||||
|
||||
return new Result(
|
||||
resultString,
|
||||
result.toString(),
|
||||
rawBytes,
|
||||
new ResultPoint[]{
|
||||
new ResultPoint(left, (float) rowNumber),
|
||||
|
|
Loading…
Reference in a new issue