Issue 1698 in zxing: Code 128 reader not recognize code

76 views
Skip to first unread message

zx...@googlecode.com

unread,
Jun 1, 2013, 3:57:24 AM6/1/13
to zx...@googlegroups.com
Status: New
Owner: ----

New issue 1698 by eco...@gmail.com: Code 128 reader not recognize code
http://code.google.com/p/zxing/issues/detail?id=1698

ZXing not recognize some codes.
ZXing Vesion - latest.

My code:

BufferedImage image = ImageIO.read(new File(fileName));

LuminanceSource source = new BufferedImageLuminanceSource(image);

Hashtable<DecodeHintType, Object> hints = new Hashtable<DecodeHintType,
Object>(3);
hints.put(DecodeHintType.TRY_HARDER, Boolean.TRUE);

Code128Reader c128 = new Code128Reader();
BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
GenericMultipleBarcodeReader reader = new
GenericMultipleBarcodeReader(c128);

Result[] results = reader.decodeMultiple(bitmap, hints);
for (Result res : results)
{
System.out.println(res.toString());
}

Coded string:
A01L05XATAL0ICL





Attachments:
5_.jpg 1.1 MB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

zx...@googlecode.com

unread,
Jun 1, 2013, 8:54:50 AM6/1/13
to zx...@googlegroups.com
Updates:
Status: NotABug

Comment #1 on issue 1698 by srowen: Code 128 reader not recognize code
http://code.google.com/p/zxing/issues/detail?id=1698

The code looks OK. It just didn't see the barcode. Try restricting the scan
to a portion of the image where you know the barcode is. Also try the other
binarizer class.

zx...@googlecode.com

unread,
Jun 2, 2013, 11:13:25 PM6/2/13
to zx...@googlegroups.com

Comment #2 on issue 1698 by eco...@gmail.com: Code 128 reader not recognize
code
http://code.google.com/p/zxing/issues/detail?id=1698

Barcode can placed in any place of page...
And my previos barreader soft DTK BarCode Reader found this barcode withou
problem..
Reply all
Reply to author
Forward
0 new messages