The bad.png fails to be recognised by zbarimg, however if I simply crop the image to be a smaller area around the QR code, with no other changes (it's a PNG image), it becomes readable (good.png).
boffin@mortimer:/tmp/zb$ uname -a
Linux mortimer 3.5.0-34-generic #55-Ubuntu SMP Thu Jun 6 20:18:19 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
boffin@mortimer:/tmp/zb$ zbarimg --version
boffin@mortimer:/tmp/zb$ zbarimg bad.png
scanned 0 barcode symbols from 1 images in 0.8 seconds
WARNING: barcode data was not detected in some image(s)
things to check:
- is the barcode type supported? currently supported symbologies are:
EAN/UPC (EAN-13, EAN-8, UPC-A, UPC-E, ISBN-10, ISBN-13),
Code 128, Code 39 and Interleaved 2 of 5
- is the barcode large enough in the image?
- is the barcode mostly in focus?
- is there sufficient contrast/illumination?
boffin@mortimer:/tmp/zb$ zbarimg good.png
scanned 1 barcode symbols from 1 images in 0.14 seconds
Log in to post a comment.