ZBar is an open source software suite for reading bar codes from various sources, including webcams. As its development stopped in 2012, I took the task of keeping it updated with the V4L2 API. This is the main repository for it. There's a clone at at LinuxTV.org, and another one at gitlab.
Description of problem:
zbarimg does not read a Code 128 barcode
Version-Release number of selected component (if applicable):
zbar-0.23.90-1.fc36.x86_64
How reproducible:
Every time
Steps to Reproduce:
zbarimg barcode.png
Actual results:
scanned 0 barcode symbols from 1 images in 0 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, EAN-2, EAN-5, UPC-A, UPC-E, ISBN-10, ISBN-13)
. DataBar, DataBar Expanded
. Code 128
. Code 93
. Code 39
. Codabar
. Interleaved 2 of 5
. QR code
. SQ code
. PDF 417
is the barcode large enough in the image?
is the barcode mostly in focus?
is there sufficient contrast/illumination?
If the symbol is split in several barcodes, are they combined in one image?
Did you enable the barcode type?
some EAN/UPC codes are disabled by default. To enable all, use:
$ zbarimg -S*.enable
Please also notice that some variants take precedence over others.
Due to that, if you want, for example, ISBN-10, you should do:
$ zbarimg -Sisbn10.enable
Code 128 barcode
Description of problem: zbarimg does not read a Code 128 barcode
Version-Release number of selected component (if applicable): zbar-0.23.90-1.fc36.x86_64
How reproducible: Every time
Steps to Reproduce:
Actual results: scanned 0 barcode symbols from 1 images in 0 seconds
WARNING: barcode data was not detected in some image(s) Things to check:
Expected results: (Code 128) 755897201062022179.73
Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=2093731