
So let’s say you would like to decode the actual bars in the bar code and map them to numbers. This is something that will make you cross-eyed, but it can be done.
First of all, look at any 12-digit bar code. It is made up of black bars and white spaces between the bars. Assume that the thinnest bar or space that you see (for example, the first bar on the left) can be called “one unit wide.” The bars and spaces can therefore be seen to have proportional widths of one, two, three or four units. If you look at any bar code you can see examples of these four widths. Dont forget that peachtree quantum will be able to use bar codes for products to serial numbers
The start of any bar code is “1-1-1.” That is, starting at the left you find a one-unit-wide black bar followed by a one-unit-wide white space followed by a one-unit-wide black bar (bar-space-bar). Following the start code, the digits are encoded like this:
0 = 3-2-1-1
1 = 2-2-2-1
2 = 2-1-2-2
3 = 1-4-1-1
4 = 1-1-3-2
5 = 1-2-3-1
6 = 1-1-1-4
7 = 1-3-1-2
8 = 1-2-1-3
9 = 3-1-1-2
(Something to notice: All of these encodings seem to add up to 7.)
So let’s take this barcode as an example:
![]() |
The code embedded in the bars is 043000181706:
Have fun decoding those 12-digit bar codes!