Feb 2, 2015 at 3:08 PM
Edited Feb 2, 2015 at 3:26 PM
I am trying to incorporate the library into a test project that decodes 1D barcodes. The standard I am using is GS1 and Code_128.
Everything works as expected (good work) but there is something I want to add.
In code128 there is a format called the human readable interpretation (HRI). The HRI puts application identifiers into brackets for better readability.
Let's assume we have a bitmap b1 that contains a barcode, a string s1 that holds the scan results of b1 and a string h1 that holds the human readable interpretation of b1.
What I get is:
s1 = 10L5652117009300005010 ;
This is pretty good. However, the human readable interpretation (what I want) is :
h1 = (10)L565211700(93)00005010 ;
GS1-128 always starts with an application code followed by a data part. The "10" in the beginning indicates the application code "batch/lot number". It is put into brackets. The code 128 standard describes that this code is followed by up
to 20 characters so it has a variable length up to 20. A FNC1 code in b1 terminates this application code and starts a new application code "93" that stands for "company internal information" and is followed by the rest. The application
code "93" is put into brackets too.
The problem now is that s1 does not contain the information b1 has had. The FNC1 code is lost in s1. With s1 only there is no way to tell that the data part of application code "10" has to terminate after only 10 characters. I cannot get to h1.
My question is:
How do I get from b1 to h1? Is there something in the library that could give me something like
s1' = 10L565211700<FNC1>9300005010 or even directly h2?
What do I have to do to get all the lost metadata in s1 so I can display h1?
EDIT: Here is a pic containing the barcode.