Android Question question to barcode specialists

M6SOFT

Member
Licensed User
Longtime User
I need to read aztec codes like that:
https://cloud.githubusercontent.com/assets/283599/24083353/f32cdd3c-0cd5-11e7-8dc0-0a8cb83d2f12.jpg
Correct text read from this barcode is:
B4X:
IgQAANtYAAJDAP8xAHwAQgBBAOdKADLvMwA2CjZ7Kw5PNDN+ElMAVP1CUgBPuxMgH3dOIu5HANMS3S5LAEn+UnUAbAAu8j5L+0EBVTLeWkpX9zpF2msyNUreNLYt/cowADCDl7dXj0XbACCv7FkAfP93IGr4NwA5ADM9J1DnSlW/RW5UAHxuAzT3ojcO4FYARveXRYa9SAevdjECN98AM4M2B7+XMC1+DjYALf5DfAAt9gMOvU2uS8Fyg68gGkkGetCKQW6mGwZjv0MmTgB8aDe2i5BuPzgAN/bbBoM1G7oLNBgjPjkAfEo2P6G9Rw5a7xJCQ7xBIjcctxSrRCLdczkANYMTFI83Mf6wMyNsDzYyO9ELnZc12AAwbzs5ArUqLLs/MQ/YG3hEACDsgxjneoMy8AtmH9cHUwCHQVuHk17Ta52HTwWHwVkbBsiXIANvMd40LFsKZsE2K+83DjRPB3TrMh5vMI+vMGsD+3wAMAAzC1snCwMyThbNMzj2CzEX2CYkkkkkqP8=J

Some time ago i tested (probably all) available libraries without success.
Is it now any free (or not very expensive) solution available in B4X?
 

Johan Schoeman

Expert
Licensed User
Longtime User
I need to read aztec codes like that:
https://cloud.githubusercontent.com/assets/283599/24083353/f32cdd3c-0cd5-11e7-8dc0-0a8cb83d2f12.jpg
Correct text read from this barcode is:
B4X:
IgQAANtYAAJDAP8xAHwAQgBBAOdKADLvMwA2CjZ7Kw5PNDN+ElMAVP1CUgBPuxMgH3dOIu5HANMS3S5LAEn+UnUAbAAu8j5L+0EBVTLeWkpX9zpF2msyNUreNLYt/cowADCDl7dXj0XbACCv7FkAfP93IGr4NwA5ADM9J1DnSlW/RW5UAHxuAzT3ojcO4FYARveXRYa9SAevdjECN98AM4M2B7+XMC1+DjYALf5DfAAt9gMOvU2uS8Fyg68gGkkGetCKQW6mGwZjv0MmTgB8aDe2i5BuPzgAN/bbBoM1G7oLNBgjPjkAfEo2P6G9Rw5a7xJCQ7xBIjcctxSrRCLdczkANYMTFI83Mf6wMyNsDzYyO9ELnZc12AAwbzs5ArUqLLs/MQ/YG3hEACDsgxjneoMy8AtmH9cHUwCHQVuHk17Ta52HTwWHwVkbBsiXIANvMd40LFsKZsE2K+83DjRPB3TrMh5vMI+vMGsD+3wAMAAzC1snCwMyThbNMzj2CzEX2CYkkkkkqP8=J

Some time ago i tested (probably all) available libraries without success.
Is it now any free (or not very expensive) solution available in B4X?
There are very few scanners that read Aztec codes bigger than about level 11 or 12. Aztec codes (in my humble opinion) are more complex than QR codes. I have not looked into the Zxing code to see up to what level of Aztec codes it supports. I have NeoReader on my phone and it can successfully read the Aztec code in the link that you have posted.
 
Upvote 0

Johan Schoeman

Expert
Licensed User
Longtime User
Looking at the Java code of Zxing it seems to support decoding of Aztec codes up to (including) layer 22. Aztec codes can have up to 32 layers (155 X 155 modules). Read up on Aztec codes and see how many layers the Aztec code has that you have posted.
 
Upvote 0

Johan Schoeman

Expert
Licensed User
Longtime User
Yours looks like 17 layers (if I counted correctly) so theoretically with a good image and a good camera on your device Zxing should be able to decode the Aztec code in your link. But you need clearly defined modules and a good camera on your device.
 
Upvote 0

Johan Schoeman

Expert
Licensed User
Longtime User
Thank you for research! I tried Zxing without success, but i will check it again.
I have used an online Aztec code generator and recreated the Aztec code with your data to get a better contrast between black and white modules.

The Zxing project that I posted here (see new project and library in post #1 of that thread)

https://www.b4x.com/android/forum/t...other-1d-2d-barcodes.49084/page-7#post-592887


.....can read the below Aztec code (it has 17 layers and contains your data posted above)
B4X:
IgQAANtYAAJDAP8xAHwAQgBBAOdKADLvMwA2CjZ7Kw5PNDN+ElMAVP1CUgBPuxMgH3dOIu5HANMS3S5LAEn+UnUAbAAu8j5L+0EBVTLeWkpX9zpF2msyNUreNLYt/cowADCDl7dXj0XbACCv7FkAfP93IGr4NwA5ADM9J1DnSlW/RW5UAHxuAzT3ojcO4FYARveXRYa9SAevdjECN98AM4M2B7+XMC1+DjYALf5DfAAt9gMOvU2uS8Fyg68gGkkGetCKQW6mGwZjv0MmTgB8aDe2i5BuPzgAN/bbBoM1G7oLNBgjPjkAfEo2P6G9Rw5a7xJCQ7xBIjcctxSrRCLdczkANYMTFI83Mf6wMyNsDzYyO9ELnZc12AAwbzs5ArUqLLs/MQ/YG3hEACDsgxjneoMy8AtmH9cHUwCHQVuHk17Ta52HTwWHwVkbBsiXIANvMd40LFsKZsE2K+83DjRPB3TrMh5vMI+vMGsD+3wAMAAzC1snCwMyThbNMzj2CzEX2CYkkkkkqP8=J

upload_2018-6-16_12-59-53.png
 
Last edited:
Upvote 0
Top