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:
srowen 2011-12-13 15:24:30 +00:00
parent 873608de67
commit 703cc2e8bf

View file

@ -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 left = (float) (startPatternInfo[1] + startPatternInfo[0]) / 2.0f;
float right = (float) (nextStart + lastStart) / 2.0f; float right = (float) (nextStart + lastStart) / 2.0f;
@ -456,7 +449,7 @@ public final class Code128Reader extends OneDReader {
} }
return new Result( return new Result(
resultString, result.toString(),
rawBytes, rawBytes,
new ResultPoint[]{ new ResultPoint[]{
new ResultPoint(left, (float) rowNumber), new ResultPoint(left, (float) rowNumber),