Forge ahead with detection even if we missed an alignment pattern -- can still decode in some cases without it

git-svn-id: https://zxing.googlecode.com/svn/trunk@929 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2009-05-03 19:52:03 +00:00
parent 89121c71bb
commit a26e5fbc10

View file

@ -106,10 +106,7 @@ public final class Detector {
// try next round // try next round
} }
} }
if (alignmentPattern == null) { // If we didn't find alignment pattern... well try anyway without it
throw ReaderException.getInstance();
}
} }
BitMatrix bits = sampleGrid(image, topLeft, topRight, bottomLeft, alignmentPattern, dimension); BitMatrix bits = sampleGrid(image, topLeft, topRight, bottomLeft, alignmentPattern, dimension);