Bar code technology was first produced in the trembling twenties, and was born in the laboratory of Westinghouse. An eccentric inventor named John Kermode "whimsically" wants to realize the automatic sorting of postal documents. At that time, every idea about the application of electronic technology was very novel.
His idea is to put a barcode on the envelope, and the information in the barcode is the address of the recipient, just like today's postal code. For this reason, Kermode invented the earliest bar code recognition, and the design scheme is very simple (note: this method is called modular comparison method), that is, one bar represents the number "1", two bars represent the number "2", and so on. Then, he invented a bar code reading device composed of basic components: scanner (which can emit light and receive reflected light); A method for measuring the band and space of reflected signal, namely edge positioning coil; And a method of using the measurement result, namely a decoder.
Kermode's scanner uses a newly invented photocell to collect reflected light. "Empty" reflects a strong signal, while "bar" reflects a weak signal. Unlike today's high-speed applications of electronic components, Kermode uses magnetic coils to measure "bars" and "spaces". Just like a child connecting a wire to a battery and winding it around a nail to clamp paper. Kermode uses a coil with an iron core to attract a switch when receiving the "empty" signal, and release the switch when receiving the "bar" signal to connect the circuit. So the earliest bar code readers were very noisy. The switch is controlled by a series of relays, and the "on" and "off" are determined by the number of "paper strips" printed on the envelope. In this way, the bar code symbol directly sorts the letters.
Shortly thereafter, Douglas Young, Kermode's collaborator, made some improvements on the basis of Kermode code.
Kermode code contains very little information, so it is difficult to compile more than ten different codes. Young codes use fewer bars, but the size of the space between bars changes, just as UPC barcode symbols today use four different bar sizes. The new bar code symbol can encode one hundred different regions in the same size space, while Kermode code can only encode ten different regions.
It was not until 1949 that the omni-directional bar code symbols invented by Noam Woodland and Bernard Silver were recorded for the first time. Prior to this, there was no record of bar code technology in patent literature, and there was no precedent for practical application. Noam Woodland and Bemmad Silver's idea is to use Kermode and Yang's vertical "strips" and "spaces" to bend them into a ring, much like the target of archery. In this way, the scanner can decode the bar code symbol by scanning the center of the graph, regardless of the direction of the bar code symbol.
In the process of constantly improving this patented technology, the science fiction writer Isaac-Azimov described an example of automatic identification using a new information coding method in his book Naked Sun. At that time, people thought that the barcode symbol in this book looked like Fang Gezi's chessboard, but today's barcode professionals will immediately realize that it is a two-dimensional matrix barcode symbol. Although this bar code symbol has no direction, no positioning and no timing, it is obvious that it represents a digital code with high information density.
It was not until 1970 that ITER FACE MACHINES developed "two-dimensional code", and the printing and reading equipment of two-dimensional matrix bar code came out at a price suitable for sale. At that time, two-dimensional matrix bar code was used to realize the automation of newspaper typesetting process. Two-dimensional matrix bar code is printed on paper tape and scanned and read by today's one-dimensional CCD scanner. The light emitted by CCD shines on the paper tape, and each photocell is aimed at different areas of the paper tape. Each photovoltaic cell outputs different patterns according to whether the bar code is printed on paper tape or not, and combines them to generate high-density information patterns. In this way, a single character can be printed in the same size space as a single bar in the early Kermode code. Timing information is also included, so the whole process is reasonable. When the first system entered the market, the price of the whole set of equipment including printing and reading equipment was about $5,000.
Shortly thereafter, with the continuous development of LED (light emitting diode), microprocessor and laser diode, a new symbol (symbolism) and its explosion came, which was called "barcode industry". Today, it is difficult to find companies or individuals who have not been directly exposed to fast and accurate barcode technology. With the rapid technological progress and development in this field, more and more application fields are developed every day. Before long, bar codes will be as popular as light bulbs and transistor radios, which will make everyone's life easier and more convenient.
Bar code is a set of bars and empty symbols arranged according to certain coding rules, which is used to represent information composed of certain characters, numbers and symbols. Bar code system is an automatic identification system composed of bar code symbol design, production and scanning reading.
What is a bar code?
Bar code:
Bar code technology is an automatic identification technology which is produced and developed in computer application and practice. It is widely used in business, postal service, book management, warehousing, industrial production process control, transportation and other fields. It has the advantages of fast input speed, high precision, low cost and strong reliability, and plays an important role in today's automatic identification technology.
The concept of bar code
Bar code is a mark composed of a set of regularly arranged bars, spaces and corresponding characters. "Strip" refers to the part with low light reflectivity, and "empty" refers to the part with high light reflectivity. The data composed of these bars and spaces express certain information, which can be read by special equipment and converted into binary and decimal information compatible with computers. Usually, the code is unique for each item. For ordinary one-dimensional bar code, it is necessary to establish the corresponding relationship between bar code and commodity information through the database. When the barcode data is transmitted to the computer, the application programs on the computer will operate and process the data. Therefore, the ordinary one-dimensional bar code is only used as identification information, and its significance is realized by extracting the corresponding information from the database of the computer system.
Advantages of barcode technology
Bar code is by far the most economical and practical automatic identification technology. Bar code technology has the following advantages.
A. Fast input speed: Compared with keyboard input, bar code input speed is five times that of keyboard input, which can realize "instant data input".
B High reliability: the error rate of keyboard input data is 300%, the error rate of optical character recognition technology is110000, and the error rate of barcode technology is less than110000.
C. The amount of information collected is large: the traditional one-dimensional bar code can collect dozens of characters at a time, and the two-dimensional bar code can carry thousands of characters, and it has certain automatic error correction ability.
D. Flexible and practical: Bar code identification can be used as a means of identification alone, can also be combined with related identification equipment to realize automatic identification, and can also be connected with other control equipment to realize automatic management.
In addition, the bar code label is simple to make, has no special requirements for equipment and materials, and the identification equipment is simple to operate without special training, and the equipment is relatively cheap.
code rule
Uniqueness: the same product with the same specification corresponds to the same product code, and different specifications of the same product should correspond to different product codes. According to the different properties of products, such as weight, packaging, specifications, smell, color, shape, etc. , give different commodity codes. Permanence: once the product code is assigned, it will not be changed, and it is lifelong. When the product is no longer produced, its corresponding product code can only be shelved and cannot be reused and redistributed to other commodities. Meaningless: In order to ensure that the code has enough capacity to meet the needs of frequent product updates, it is best to use meaningless sequence codes.
Code difference of bar code
UPC: (Uniform Product Code) can only indicate that there are four versions of a, b, c, d and e, version A- 12-bit version E-7, and the last digit of the number is the check digit. The size is 1.5 "high 1", and the background should be clear. In the United States and Canada, it is mainly used in industry, medicine and medicine. BR>& ltBR & gt When UPC is decoded into twelve bits, it is defined as follows: the first bit = digital identification (established by UCC (Unified Coding Committee)). Second-sixth digit = manufacturer's identification number (including the first digit) 7- 1 1 = unique manufacturer's product code 12 digits = parity bit (for error).
Code 3 of 9: It can represent symbols such as letters and numbers ***43 characters: A-Z, 0-9,-. $/+%,and the length of PACE barcode can be changed. The symbol "*" is usually used as the starting and ending symbol, and the code density is 3-9.4 characters/65,438+00 times of the narrow strip per inch, which is commonly used in industry.
Code 128: stands for high-density data. There are three different versions of string variable-length symbols containing check codes: A, B, C, and 128 characters can be used in three string sets of A, B, and C respectively, which are used in industry, warehouse, retail and wholesale.
Interlaced 2-of-5 (I2 of 5): a continuous bar code with variable length, which can only represent the numbers 0 -9. All bars and spaces represent codes. The first number begins with a bar, and the second number consists of spaces. The blank area is 10 times wider than the narrow strip. It is suitable for commodity wholesale, warehouse, airport, production/packaging identification and industry. Bar code has high recognition rate and can be applied to fixed scanners for reliable scanning.
Codabar: it can represent the number 0-9, the characters+,-and the four characters A, B and C, and can only be used as the starting and ending symbols.
The variable-length discontinuous bar code without parity is used in material management, library, blood station and current airport parcel delivery, in which the blank area is 10 times wider than the narrow bar, and each character is represented as 4 bars and 3 blanks.
PDF4 17 (two-dimensional code): A bar code composed of multiple lines can store a large amount of data without connecting to a database, and has applications in hospitals, driver's licenses, material management, and cargo transportation. When the bar code is damaged to a certain extent, error correction can make the bar code correctly decode PDF4 17, which was developed by Symbol Technology Company in 1990. It is a multi-line, continuous and variable-length symbol with a large amount of data. Each bar code has 3-90 lines, and each line has a beginning part, a data part and an end part. Its character set includes all 128 characters, and the maximum data content is 1850 characters.
One-dimensional bar code only expresses information in one direction (generally horizontal direction), and does not express any information in the vertical direction. Its height is usually for the convenience of readers' alignment.
The application of one-dimensional bar code can improve the speed of information input and reduce the error rate, but it also has some shortcomings:
* Small data capacity: about 30 characters.
* can only contain letters and numbers.
* The bar code cannot be read after it is damaged.
Barcodes that store information in two-dimensional space in horizontal and vertical directions are called two-dimensional barcodes.
Like one-dimensional bar code, two-dimensional bar code has many different coding methods, or coding systems. As far as the coding principles of these codes are concerned, they can usually be divided into the following three types.
1. Linear stacked QR code is formed by vertically stacking multiple one-dimensional codes on the basis of one-dimensional bar code coding principle. Typical coding systems are: Code 16K, Code 49, PDF4 17, etc.
2. Matrix QR code is coded in rectangular space through the different distribution of black and white pixels in the matrix. Typical coding systems include: Aztec, Maxi code, two-dimensional code, data matrix and so on.
3. Postal codes are composed of bar codes with different lengths, which are mainly used for mail coding, such as Postnet and BPO 4-State.
Among many kinds of 2D barcodes, the commonly used coding systems are: data matrix, Maxicode, AZTEC, QR code, Vericode, PDF 4 17, Ultra Code, Code 49, Code 16K, etc. , in which: BR>* data matrix is mainly used to identify small parts in electronic industry, such as the code printed on the back of Intel Pentium processor. & ltBR & gt* Maxi Code was developed by United Parcel Service (UPS) to sort and track parcels.
* Aztec is introduced by Welch Allyn Company of the United States, and can accommodate up to 3832 numbers or 3067 alphabetic characters or 19 14 bytes of data.
Next, we take PDF4 17 code as an example to introduce the characteristics and characteristics of two-dimensional code.
Introduction to 1)pdf 4 17
The code PDF4 17 was invented by Dr. Wang, a China student studying in the United States. PDF is the abbreviation of English portable data file, which means "portable data file". Because each symbol character that constitutes a bar code consists of four bars and four spaces, if the narrowest bar or space that constitutes a bar code is called a module, then the total number of modules of the above four bars and four spaces must be 17, so it is called 4 17 code or PDF4 17 code.
2) Features of PDF 417
1.PDF4 17 code has a large information capacity, which can represent not only letters, numbers and ASCII characters, but also binary numbers. In order to make the encoding more compact and improve the information density, PDF4 17 has three formats when encoding:
* The expanded alphanumeric compression format can accommodate 1850 characters;
* binary /ASCII format can hold 1 108 bytes;
* Digital compression format can accommodate 27 10 digits.
2. Error correction ability One-dimensional barcodes usually have the verification function to prevent misreading. Once the barcodes are defaced, they will be rejected. Two-dimensional bar code can not only prevent errors, but also correct them. Even if the bar code is partially damaged, the correct information can be recovered.
3. Ordinary printing equipment with low printing requirements can print and fax can read.
4.PDF4 17 code can be read by various reading devices, laser readers with grating and image readers with line scanning and area scanning.
5. The size can be adjusted to suit different printing spaces.
6. The coding system has become an international standard, and China has also formulated a national standard of 4 17 code.
3) error correction function of pdf 417.
The error correction function of two-dimensional bar code is realized by repeating (redundant) some information. For example, in the PDF4 17 code, a line contains not only the information of its own line, but also some information reflecting the characters in other positions (error correction code). In this way, even when a certain part of the bar code is damaged, its information can be recovered by error correction codes existing in other places.
The error correction capability of PDF4 17 is divided into 0~8***9 levels according to the number of error correction codes, as shown in Figure 4. The higher the level, the more correction codes, the stronger the correction ability and the larger the bar code. When the correction level is 8, even if the barcode is defaced by 50%, it can be read correctly, as shown in Figure 5.
4) several variants of pdf 417.
As shown in Figure 6, PDF4 17 has several different coding forms:
* PDF4 17 truncation code in a relatively "clean" environment, the possibility of bar code damage is very small, and the line indicator on the right can be omitted to reduce the terminator.
* PDF4 17 microcode further reduces the PDF code.
* macro PDF4 17 code When the file content is too long to be represented by a PDF4 17 code, it can be represented by a macro PDF4 17 code plus multiple barcodes (1~99999).
Advantages of two-dimensional bar code
As can be seen from the above introduction, compared with one-dimensional bar code, two-dimensional bar code has obvious advantages, which can be summarized as follows:
1) larger data capacity.
The code PDF4 17 in the picture contains all the words in the text box.
2) Exceeding the limit of alphanumeric characters.
3) The relative size of bar code is small.
4) Have the ability to resist destruction.