I was wondering is there any libraries that can decode QR code bit array instead of image. For eaxample:
{
{1,1,1,1,1,1,1,0,0,0,1,0,1,0,1,1,1,1,1,1,1},
{1,0,0,0,0,0,1,0,1,0,1,0,1,0,1,0,0,0,0,0,1},
{1,0,1,1,1,0,1,0,1,0,1,1,0,0,1,0,1,1,1,0,1},
{1,0,1,1,1,0,1,0,0,0,0,0,1,0,1,0,1,1,1,0,1},
{1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,0,1,1,1,0,1},
{1,0,0,0,0,0,1,0,1,1,1,0,0,0,1,0,0,0,0,0,1},
{1,1,1,1,1,1,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1},
{0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0},
{1,1,0,1,0,0,1,1,0,0,1,1,1,0,1,1,1,0,1,1,0},
{1,1,1,1,1,1,0,0,1,0,0,1,0,1,0,1,0,1,1,1,1},
{0,1,1,0,0,0,1,1,0,1,1,1,0,0,1,1,1,1,1,0,1},
{1,0,0,1,1,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1},
{0,1,1,0,1,1,1,1,0,0,1,1,0,1,1,1,0,0,1,0,0},
{0,0,0,0,0,0,0,0,1,1,0,0,0,1,1,0,1,0,1,0,0},
{1,1,1,1,1,1,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0},
{1,0,0,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,1,1,1},
{1,0,1,1,1,0,1,0,0,0,0,0,1,1,1,0,0,0,1,1,1},
{1,0,1,1,1,0,1,0,1,0,0,0,0,1,1,1,0,0,0,1,1},
{1,0,1,1,1,0,1,0,0,1,1,1,0,1,1,1,0,1,1,0,1},
{1,0,0,0,0,0,1,0,1,0,1,1,1,0,0,1,0,1,0,0,0},
{1,1,1,1,1,1,1,0,1,0,1,0,0,1,0,1,0,0,1,1,0}
}
Would become "Hi".
I don't need any of the image functionality.
From the presentation of QrCode.Net, it seems that it will do what you are looking for as one of its features is:
You could use zxing to decode the bit matrix. However, you need to convert the multidimensional integer array to jagged boolean array. Just convert
'1'
to'true'
and'0'
to'false'
. Execute the following (assuming you have referenced the correct library) to get the result.