Menu

#100 does not recognize code128 without preprocessing

version_0.10
open
spadix
5
2013-02-02
2012-12-09
Anonymous
No

I've used zbarimg to extract bar-code (code128) from the JPEG photos taken with DSLR camera. Version 0.8 works fine, but a few weeks ago we updated server and got latest zbarimg (0.10). Now zbarimg can't extract bar code from most of images (about 98%).

I have found that extra processing with ImageMagick

convert image.jpg -colorspace gray -white-threashold 23% processed.jpg

helps zbarimg to recognize bar-code.

So, I just wish to know if zbarimg became more strict for used images or it's some bug?

Thank you for the great tool.

I've attached test image to the issue. Here is system details:

$ zbarimg --version
0.10

$ uname -a
Linux d2 2.6.32-5-amd64 #1 SMP Mon Jan 9 20:49:59 UTC 2012 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.6 (squeeze)
Release: 6.0.6
Codename: squeeze

$ apt-cache show zbar-tools
Package: zbar-tools
Priority: optional
Section: graphics
Installed-Size: 112
Maintainer: Bernd Zeimetz <bzed@debian.org>
Architecture: amd64
Source: zbar
Version: 0.10+doc-4
Depends: libc6 (>= 2.2.5), libice6 (>= 1:1.0.0), libjpeg62 (>= 6b1), libmagickcore3 (>= 8:6.6.0.4), libmagickwand3 (>= 8:6.6.0.4), libsm6, libx11-6, libzbar0 (= 0.10+doc-4)
Filename: pool/main/z/zbar/zbar-tools_0.10+doc-4_amd64.deb
Size: 37896
MD5sum: 835c0ecfbfd38345961a56f834c236fc
SHA1: 13f4a4d6f303f9d5805402fbea4df6599fdd6bcb
SHA256: d32252b603677d9e1d713cb9caacd9de62b0c922c562adb0b92c7ec076d0cd28
Homepage: http://zbar.sourceforge.net/
Tag: implemented-in::c, role::program

Discussion

  • Anonymous

    Anonymous - 2012-12-09

    There was misprint in preprocessing command, here is correct one:

    convert image.jpg -colorspace gray -white-threshold 23% processed.jpg

     

    Last edit: Anonymous 2014-12-11

Log in to post a comment.