Comment #3 on issue 1260 by
ch...@orr.me.uk: Larger AZTEC 2D codes are not
decoded
http://code.google.com/p/zxing/issues/detail?id=1260
For what it's worth, I got the first three attachments to scan with ZXing
on Android (svn 2295); I could only scan the first two with NeoReader.
However, the second and third threw an exception on decoding:
java.lang.NegativeArraySizeException
at
com.google.zxing.common.reedsolomon.ReedSolomonDecoder.decode(ReedSolomonDecoder.java:60)
at com.google.zxing.aztec.decoder.Decoder.correctBits(Decoder.java:320)
at com.google.zxing.aztec.decoder.Decoder.decode(Decoder.java:102)
at com.google.zxing.aztec.AztecReader.decode(AztecReader.java:72)
at
com.google.zxing.MultiFormatReader.decodeInternal(MultiFormatReader.java:170)
at
com.google.zxing.MultiFormatReader.decodeWithState(MultiFormatReader.java:85)
at
com.google.zxing.client.android.DecodeHandler.decode(DecodeHandler.java:79)
But I have managed to scan a number of different large Aztec barcodes (e.g.
~83x83 Deutsche Bahn tickets) with ZXing on Android (and online). However,
it always takes a while to recognise, and then the decoding is wrong.
In this example, ZXing seems to insert a lot of unwanted 0xc2 and 0xc3
bytes, when compared to the verified correct decoding:
$ hexdump -C aztec.correct | grep "c[23]"
00000090 82 d8 c6 b6 18 17 11 d4 c5 c1 1a 98 49 51 c2 13
|............IQ..|
00000100 4b 5a f8 91 54 ab 9c 47 d3 7d 3e 9c 2f c3 69 bf |
KZ..T..G.}>./.i.|
$ hexdump -C aztec.zxing | grep "c[23]"
00000010 02 14 28 c2 9a 5c c2 b1 c2 a8 3d 3f 2a 75 c2 93
|..(..\....=?*u..|
00000020 c2 9d 7b c2 b6 7a c2 ae c3 8a c3 a4 68 c3 89 2c
|..{..z......h..,|
00000030 02 14 29 c2 9f 14 75 c3 ae c3 a0 c3 81 c2 84 08
|..)...u.........|
00000040 c3 8f 18 c2 9b c3 b3 c2 88 c2 87 c3 8a c2 a9 05
|................|
00000050 c3 aa 09 00 00 00 00 30 32 33 31 78 c2 9c 6d c2
|.......0231x..m.|
00000060 8f 41 6b 02 31 10 c2 85 c3 bb 53 c2 84 5e c3 9a
|.Ak.1.....S..^..|
00000070 c2 80 c3 b4 4d c2 92 75 c2 93 c3 9e 36 66 51 c2
|....M..u....6fQ.|
00000080 b1 5d c3 81 c3 94 4a 4f c2 a5 50 41 c2 a1 c3 ae
|.]....JO..PA....|
00000090 4a c2 b4 c3 bf c2 bf 2f c3 b4 62 c2 a1 c2 93 43 |
J....../..b....C|
000000a0 c2 be c2 bc 79 33 c2 99 c3 99 c2 bc c3 8f c3 9b
|....y3..........|
000000b0 26 42 c2 80 c3 8a 00 0e c3 8f 53 c2 bb c3 9c c2 |
&B........S.....|
000000c0 be c2 8d c3 ad c3 8d 55 68 26 35 44 6b c3 91 c2
|.......Uh&5Dk...|
000000d0 82 c3 98 c3 86 c2 b6 18 17 11 c3 94 c3 85 c3 81
|................|
000000e0 1a c2 98 49 51 c3 82 13 15 5d 7b c3 90 07 57 75
|...IQ....]{...Wu|
000000f0 2f 5d 30 6e c3 bd 6f c2 9f c3 9f c2 bb 16 5e 16 |
/]0n..o.......^.|
00000100 5e 4c 42 c2 99 40 c2 a4 1b c3 b2 c3 b1 c3 a3 c3 |
^LB..@..........|
00000110 ab c2 94 77 c2 87 33 25 c3 ba c2 a9 11 4c c2 81
|...w..3%.....L..|
00000120 40 c3 b0 c2 84 c2 89 c2 8c 79 7c 62 c2 83 22 c2 |@........y|
b..".|
00000130 83 60 09 3a 69 52 45 72 71 c3 88 c2 97 c3 a3 77
|.`.:iRErq......w|
00000140 c3 bf c3 89 37 07 c2 83 0d 43 c3 9f 27 4e 45 53
|....7....C..'NES|
00000150 c3 bd c2 ba 68 1e 47 77 c3 b3 46 6d 55 c2 9a 3d
|....h.Gw..FmU..=|
00000160 c3 8c 5a c2 b5 0a 2a 6e 54 c2 bc 57 4b 5a c3 b8
|..Z...*nT..WKZ..|
00000170 c2 91 54 c2 ab c2 9c 47 c3 93 7d 3e c2 9c 2f c3
|..T....G..}>../.|
00000180 83 69 c2 bf c3 8b c2 94 4b 17 2e 45 c2 aa 69 c3
|.i......K..E..i.|
00000190 b0 c3 aa 6f c2 94 c3 bd c2 99 72 c2 a5 c3 b6 c2
|...o......r.....|
000001a0 aa c3 ae c2 96 7d 7e 00 c3 af c2 99 4f 65 0a
|.....}~.....Oe.|