How can a new Barcode be integrated?

47 views
Skip to first unread message

kddb

unread,
May 18, 2015, 3:28:40 AM5/18/15
to zx...@googlegroups.com
Hey there,

I have a very basic question.
(How) is it possible to integrate a whole new barcode (more precisely the decoding-algorithm) in ZXing and what would be the procedure?


thanks,
LK

Bas Vijfwinkel

unread,
May 19, 2015, 1:15:15 AM5/19/15
to zx...@googlegroups.com
Very roughly :
- add a reader for your format to the MultiFormatReader object
- make sure your reader implements the Reader object in order to receive and pass back all the data in a uniform way
- most readers consist of a detector which located the barcode in the image and a decoder which takes care of the actual decoding of the graphical area that was passed by the detector as being the barcode area in the image.

How you implement the barcode detection and decoding depends on what type (1D/2D black-white/color) you use. The decoding of 1D barcodes shows a lot of similarity so you might consider extending an existing class because a lot of the functionality is already implemented and tested.


Reply all
Reply to author
Forward
0 new messages