Issue 583 in zxing: zxing cannot read RSS expanded/stacked barcodes

71 views
Skip to first unread message

zx...@googlecode.com

unread,
Oct 13, 2010, 7:16:17 PM10/13/10
to zx...@googlegroups.com
Status: New
Owner: ----

New issue 583 by b1475...@lhsdv.com: zxing cannot read RSS expanded/stacked
barcodes
http://code.google.com/p/zxing/issues/detail?id=583

Though issue 202 seems to indicate that zxing should now be able to read
the RSS expanded/stacked barcodes used on coupons, it appears it still
cannot. I have tested it via command line on images of barcodes from a
number of coupons, as well as on barcodes generated using the official GS1
barcode generating program, found here:
http://www.gs1.org/barcodes/databar/software

The barcode on the attached coupon contains the data
8110100706401002003100110120

To make use of the GS1 program above, you may need to recompile it. It took
some tinkering to get it to compile under linux, my primary OS, but I was
able to get it to work. (I had to change all filenames to lowercase, change
io.h in rssenc.h to sys/io.h, and define min and max macros). I've attached
my revised version of the encoder.

To output a databar barcode identical to the one seen on the coupon, do the
following:
1. run the encoder(in my version it's rssencLinBin)
2. hit 6 at the menu to choose rss expanded
3. hit 6 and then 1 to change the file output type and select BMP.
4. hit 7 and then enter 6 as the number of segments per row. Most coupons
tend to use even values between 6 and 12.
5. hit 5, and then paste or type in 8110100706401002003100110120
6. once you hit enter after doing the previous step, a file called out.bmp
should be generated in the folder in which you ran the encoder program.
This barcode should be identical to the one on the attached coupon.

What steps will reproduce the problem?
1. run zxing from the command line using the method specified in the readme
file
2. use either the barcode generated above or the barcode from the coupon

What is the expected output? What do you see instead?
As zxing supposedly supports all varieties of RSS barcodes, I would expect
it to properly read the GS1 databar(which is RSS expanded/stacked).
Therefore I would expect the output to be 8110100706401002003100110120.
However, it instead returns "no barcode found"

What version of the product are you using? On what operating system?
I am using the version of ZXing found on the downloads page
in "ZXing-1.6.zip", on Ubuntu 9.10

Please provide any additional information below.
This feature would be quite handy, as while my example coupon doesn't
contain much info, 8110 barcodes on coupons can contain a wide variety of
info, including expiration date, date a coupon is first valid, specifics
relating to what items a coupon works on, serial numbers, and much more.
The GS1-Databar is going to be replacing UPCs on coupons over the following
year or so, or so assorted sites pertaining to it claim.
For more info, as well as an online version of the encoder, go to
http://www.databar-barcode.info/

Attachments:
bbcpn.jpg 249 KB
enc304Lin.zip 82.4 KB

zx...@googlecode.com

unread,
Oct 13, 2010, 7:26:23 PM10/13/10
to zx...@googlegroups.com

Comment #1 on issue 583 by b1475...@lhsdv.com: zxing cannot read RSS
expanded/stacked barcodes
http://code.google.com/p/zxing/issues/detail?id=583

Also, here is the out.bmp generated by the rssencoder from gs1.

To get this same barcode from the generator on
http://www.databar-barcode.info/ , enter the following on
http://www.databar-barcode.info/coupon-encoder/

Application Identifier: 8110
Primary Company Prefix: 0070640
Offer Code: 100200
Save Value: 100 (it's in cents, so 100 = $1 off)
Primary Purchase Requirement: 1
Primary Purchase Req. Code: Number of units
Primary Purchase Family Code: 120

Once that data is entered, the barcode should automatically be generated
below. The one that matches the layout seen on the blue bunny coupon should
be the first one, with dimensions of 1.470" x 0.810"


Attachments:
out.bmp 1.4 KB

Reply all
Reply to author
Forward
0 new messages