Reject short Code 39 -- too likely to be a false positive

git-svn-id: https://zxing.googlecode.com/svn/trunk@1884 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2011-08-13 16:58:58 +00:00
parent fa5c84a0cf
commit 4863e3ed8c

View file

@ -150,7 +150,7 @@ public final class Code39Reader extends OneDReader {
result.deleteCharAt(max);
}
if (result.length() == 0) {
if (result.length() < 4) {
// Almost surely a false positive
throw NotFoundException.getNotFoundInstance();
}