Polyconseil / zbarlight

A simple wrapper for zbar
BSD 3-Clause "New" or "Revised" License
163 stars 37 forks source link

Decode raw bytes QRcode #34

Open borisreitman opened 2 years ago

borisreitman commented 2 years ago

The zbar library supportsdecoding raw bytes qrcode, as described in this pull request, which was also a bug. How to expose this in zbarlight?

https://github.com/matheusmoreira/zbar/commit/87a0b3c19bdf8c705a42a8dab84a9b650deb2543

Exmaple where it works and doesn't with zimgbar program. The difference is in the binary option:

sslcheck$ zbarimg -q --raw -Sbinary sample-qrcode3.png | hexdump
0000000 05 a0 00 e2 67 86 4b 45 79 ca 9a 38            
000000c
sslcheck$ zbarimg -q --raw sample-qrcode3.png | hexdump
0000000 05 c2 a0 00 c3 a2 67 c2 86 4b 45 79 c3 8a c2 9a
0000010 38 0a                                          
0000012
sample-qrcode3