**
Technology of Code 128 cbarcode**
**
From left to right are black and
white barcodes, the black one is
called "bar" (B), and the white
one is called "empty" (S).
**
**
If you look closely, the bars
and spaces have 4 different
widths. **
**
We assign the values 1, 2, 3,
and 4 from fine to coarse.
**
**
Then we started to read the
barcode according to the
thickness value, and the results
are as follows:**
**
211232231131221213131222212222221224121213121211321132331112
**
**
Note that this result is black
and white. **
**
Don't just read the "bar" and
forget it is empty. **
**
There are 61 people in total
here. **
**
Code128 has a head and a tail.
**
**
The tail is always 2331112,
which means that Code128 has
ended. **
**
The remaining part is 6 bits as
a block, including the header.
**
**
There are 3 kinds of head: A)
211412 B) 211214 C) 211232.
**
**
This respectively indicates what
type of Code128 is. **
**
(One of ABC) **
**
We remove the head and tail of
the code we read, and divide it
into blocks again: **
**
231131 | 221213 | 131222 |
212222 | 221224 | 121213 |
121211 | 32113 **
**
It happens to be 6 bits as one
piece. **
**
The last block (excluding the
tail section) is the check
digit, which is used to check
whether the barcode is correctly
encoded. **
**
Then, we have a character table.
**
**
(It should be said that I have
this table) **
**
What does this character
correspond to each number?
**
**
Ours is Code128C type.
**
**
Type C code is purely digital,
and each block corresponds to 2
digits. **
**
Look up the table to get 50 09
05 00 01 91 91.**
**
Coding Table 128** |