CN110738293B - Wide-adaptability bar code and encoding method thereof - Google Patents

Wide-adaptability bar code and encoding method thereof Download PDF

Info

Publication number
CN110738293B
CN110738293B CN201910936335.7A CN201910936335A CN110738293B CN 110738293 B CN110738293 B CN 110738293B CN 201910936335 A CN201910936335 A CN 201910936335A CN 110738293 B CN110738293 B CN 110738293B
Authority
CN
China
Prior art keywords
bar code
color
basic unit
bit
bar
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910936335.7A
Other languages
Chinese (zh)
Other versions
CN110738293A (en
Inventor
胡荣强
王颂锋
周跃
张宝
霍腾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Lead Electric Power Technology Co ltd
Original Assignee
Wuhan Lead Electric Power Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Lead Electric Power Technology Co ltd filed Critical Wuhan Lead Electric Power Technology Co ltd
Priority to CN201910936335.7A priority Critical patent/CN110738293B/en
Publication of CN110738293A publication Critical patent/CN110738293A/en
Application granted granted Critical
Publication of CN110738293B publication Critical patent/CN110738293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06018Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking one-dimensional coding
    • G06K19/06028Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking one-dimensional coding using bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06046Constructional details
    • G06K19/06075Constructional details the marking containing means for error correction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06046Constructional details
    • G06K19/0614Constructional details the marking being selective to wavelength, e.g. color barcode or barcodes only visible under UV or IR

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Printers Characterized By Their Purpose (AREA)
  • Character Input (AREA)

Abstract

The embodiment of the invention provides a wide-adaptability bar code and a coding method, comprising a bar code reconstructed by three color basic units; wherein the first color basic unit represents 0, the second color basic unit represents 1, and the third color basic unit represents the same number as the previous color basic unit. According to the wide-adaptability bar code and the coding method provided by the embodiment of the invention, the change of the color of the bar code is used as a coding rule, and when the bar code is attached to the surface of an object to generate protrusion and distortion, the bar code can be still quickly and correctly identified through the bar code identifier.

Description

Wide-adaptability bar code and encoding method thereof
Technical Field
The invention relates to the technical field of information interaction, in particular to a wide-adaptability bar code and a coding method thereof.
Background
Bar codes (barcode) are an automatic identification technology developed in computer application and widely applied to the fields of business, postal service, book management, storage, industrial production process control, transportation, packaging, distribution and the like, and are graphical identifiers for expressing a group of information by arranging a plurality of black bars and blanks with different widths according to a certain coding rule. A common bar code is a pattern of parallel lines arranged by black bars (abbreviated bars) and white bars (abbreviated spaces) of widely varying reflectivity. The two-dimensional Code is also called as a two-dimensional bar Code, and is a coding mode which is superpopular in mobile equipment in recent years, data symbol information is recorded by using a certain specific geometric figure which is distributed in a plane (in a two-dimensional direction) according to a certain rule and is black-white alternate figure, and each character occupies a certain width.
In the existing coding rules, the codes are coded according to the black-and-white spacing, so that the surface of an article to which the bar code is attached cannot deform, the black-and-white spacing change cannot be influenced, and the bar code needs to be kept flat. However, when the coding method is used for special articles such as soft articles, uneven articles with bulges or curved articles, the traditional coding method cannot meet the application requirements. In addition, the identifier has a certain angle with the bar code during identification, and the software algorithm has certain correction capability, but a plurality of attempts are still needed in the identification process, and when the angle deviation is large, identification errors often occur.
Disclosure of Invention
In order to solve the above problems, embodiments of the present invention provide a wide-adaptability bar code and encoding method that overcome or at least partially solve the above problems.
In a first aspect, embodiments of the present invention provide a wide-adaptability bar code, including:
a bar code reconstructed from three color base units;
wherein the first color basic unit represents 0, the second color basic unit represents 1, and the third color basic unit represents the same number as the previous color basic unit.
Further, the bar code includes 26 bar codes including a leading bit, a 24-bit intermediate bar code, and an ending bit.
Further, the leading bit has a fixed number of 0 and the ending bit has a fixed number of 1.
Further, when the color of any bar code is the same as the color of the bar code preceding it, the bar code is filled with a third color.
Further, the odd number bits of the 24-bit intermediate bar code are data bits, and the even number bits of the bar code are check bits.
Further, if the first two bar code data of the check bit bar code are the same, the check bit is marked as 1.
Further, the first color is black, the second color is white, and the third color is gray.
In a second aspect, an embodiment of the present invention further provides a method for encoding a wide-adaptability barcode, including:
reconstructing the bar code based on the three color basic units;
wherein the first color basic unit represents 0, the second color basic unit represents 1, and the third color basic unit represents the same number as the previous color basic unit.
Further, the bar code includes 26 bar codes including a leading bit, a 24-bit intermediate bar code, and an ending bit.
Further, the method further comprises:
and when the color of any bar code is the same as the color of the bar code before the bar code, filling the bar code with a third color.
According to the wide-adaptability bar code and the encoding method thereof provided by the embodiment of the invention, the change of the color of the bar code is used as an encoding rule, and when the bar code is attached to the surface of an object to generate bulges and distortions, the bar code can be rapidly and correctly identified through the bar code identifier.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a wide-adaptability bar code according to an embodiment of the present invention;
fig. 2 is a flowchart of a coding method implemented by a wide-adaptability bar code according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the existing coding rule, the bar codes are coded according to the black-and-white interval, so that all the existing bar codes are composed of black-and-white basic units, but the bar codes can be used only by keeping the bar codes flat. When existing bar codes are used for soft or uneven surface articles, the black-and-white spacing of the bar code may change, resulting in a bar code identifier that identifies errors.
In order to solve the above-mentioned problems in the prior art, an embodiment of the present invention provides a wide-adaptability barcode, and fig. 1 is a schematic structural diagram of the wide-adaptability barcode provided in the embodiment of the present invention, as shown in fig. 1, the wide-adaptability barcode includes:
a bar code reconstructed from three color base units;
wherein the first color basic unit 1 represents 0, the second color basic unit 2 represents 1, and the third color basic unit 3 represents the same number as the previous color basic unit.
Specifically, the bar code provided by the embodiment of the invention reconstructs the bar code structure, and the reconstruction process is through color coding. The symbol meaning of a bar code is represented by three color basic cells. In the present embodiment, the first color basic unit, the second color basic unit and the third color basic unit are referred to as 1, 2 and 3 in fig. 1, respectively. Wherein the first color element is a 1 representing that the symbol meaning is binary, the second color element is a 0 representing that the symbol meaning is binary, and the third color element represents the same number as the adjacent preceding bit symbol.
The wide-adaptability bar code provided by the embodiment of the invention takes the change of the color of the bar code as the coding rule, and can still be rapidly and correctly identified by the bar code identifier when the bar code is attached to the surface of an object to generate bulges and distortions. The defects that the traditional bar code can not be identified only by being kept flat, and cannot be used for soft objects with uneven surfaces or curved objects are overcome.
On the basis of the above embodiment, the first color is black, the second color is white, and the third color is gray.
Preferably, as shown in fig. 1, the embodiment of the present invention sets the color of the first color basic unit to black, the color of the second color basic unit to white, and the color of the third color basic unit to gray, thereby realizing a convenient reading function without changing the basic form of the bar code.
On the basis of the embodiment, the bar code comprises 26 bar codes, and the bar codes comprise a leading bit, a 24-bit middle bar code and an ending bit. Wherein, a bar code is a basic unit. Preferably, the bar code height to width ratio is 8.
Generally, for the bar code designed by the embodiment of the invention, the first bit is set as the leading bit, the last bit is set as the ending bit, the middle position is the middle bar code, and the whole bar code length is set as 26 bar codes, so that the middle bar code occupies 24 bits.
On the basis of the above embodiment, the number of the leading bit is fixed to 0, and the number of the ending bit is fixed to 1.
Preferably, in the embodiment of the present invention, the preamble bit is fixedly set to 0, which is represented by white, and the end bit is set to 1, which is represented by black.
On the basis of the above embodiment, when the color of any bar code is the same as the color of the bar code before it, the bar code is filled with the third color.
As shown in fig. 1, the wide-adaptability bar code provided by the embodiment of the invention has different colors between any two code elements, and can be seen that black-and-white intervals, black-and-gray intervals or gray-and-white intervals exist, but no black-and-black, white-and-gray conditions exist.
In the embodiment, when the color of any bar code is the same as the color of the bar code before the bar code, the original color is filled with the third color, namely gray, so that the color between any two adjacent basic units is ensured to be different.
On the basis of the embodiment, the odd-numbered bits of the 24-bit intermediate bar code are data bits, and the even-numbered bits of the bar code are check bits.
If the first two bar code data of the check bit bar code are the same, the check bit is marked as 1.
In the embodiment of the invention, the odd-numbered bits of the bar code are set as data bits, the even-numbered bits are set as check bits, taking fig. 1 as an example, the odd-numbered bits (1, 3,5 … …,21, 23) in the bar code are data bits, 1 is the highest bit, and 23 is the lowest bit, thus representing data 0-4095. And the even number bit of the bar code is a check bit, the check content is that the first 2 bar code data are the same, the check result is 1, and the different data check results are 0.
Fig. 2 is a flowchart of a coding method implemented by a wide-adaptability bar code according to an embodiment of the present invention, as shown in fig. 2, including:
201. reconstructing the bar code based on three different color base units;
wherein the first color basic unit represents 0, the second color basic unit represents 1, and the third color basic unit represents the same number as the previous color basic unit.
It can be understood that the embodiment of the invention correspondingly provides the encoding mode of the bar code, namely, the encoding rule of the bar code is correspondingly adjusted through changing the symbol color of the bar code.
Specifically, the bar code is reconstructed by three color basic units of black, white and gray, wherein the black color basic unit represents binary 1, the white color basic unit represents binary 0, and the gray color basic unit represents the same as the adjacent previous bit. Therefore, when the bar code is attached to the surface of the object and bulges or twists occur, the bar code can still be quickly and correctly identified by the bar code identifier.
On the basis of the embodiment, the bar code comprises 26 bar codes, and the bar codes comprise a leading bit, a 24-bit middle bar code and an ending bit. Wherein, a bar code is a basic unit. Preferably, the bar code height to width ratio is 8.
On the basis of the above embodiment, the method further includes:
and when the color of any bar code is the same as the color of the bar code before the bar code, filling the bar code with a third color.
Referring to fig. 1, the wide-adaptability bar code provided by the embodiment of the invention has different colors between any two code elements, and can be seen that black-and-white intervals, black-and-gray intervals or gray-and-white intervals exist, but black-and-black, white-and-gray conditions do not exist.
In the embodiment, when the color of any bar code is the same as the color of the bar code before the bar code, the original color is filled with the third color, namely gray, so that the color between any two adjacent basic units is ensured to be different.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in each embodiment or some parts of the embodiment.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A wide adaptability bar code comprising:
a bar code reconstructed from three color base units;
wherein the first color basic unit represents 0, the second color basic unit represents 1, and the third color basic unit represents the same number as the previous color basic unit;
the bar codes comprise bar codes, the bar codes comprise leading bits and ending bits, and when the color of any bar code is the same as the color of the bar code before the bar code, the bar codes are filled with third colors.
2. The wide adaptability bar code of claim 1, wherein the bar code comprises 26 bar codes, the bar codes comprising a leading bit, a 24-bit intermediate bar code, and an ending bit.
3. The wide adaptability bar code according to claim 2, wherein the number of the leading bit is fixed to 0 and the number of the ending bit is fixed to 1.
4. The wide adaptability bar code of claim 2, wherein the odd numbered bits of the 24-bit intermediate bar code are data bits and the even numbered bits of the bar code are check bits.
5. The wide adaptability bar code according to claim 4, wherein the check bit is marked as 1 if the first two bar code data of the check bit bar code are identical.
6. The wide adaptability bar code according to claim 1, wherein the first color is black, the second color is white, and the third color is gray.
7. A method of encoding a wide adaptability bar code according to any one of claims 1-6, characterized in that it comprises:
reconstructing the bar code based on the three color basic units;
wherein the first color basic unit represents 0, the second color basic unit represents 1, and the third color basic unit represents the same number as the previous color basic unit.
8. The method of claim 7, wherein the bar code comprises 26 bar codes, the bar codes comprising a leading bit, a 24-bit intermediate bar code, and an ending bit.
9. The method of encoding a wide adaptability bar code according to claim 8, further comprising:
and when the color of any bar code is the same as the color of the bar code before the bar code, filling the bar code with a third color.
CN201910936335.7A 2019-09-29 2019-09-29 Wide-adaptability bar code and encoding method thereof Active CN110738293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910936335.7A CN110738293B (en) 2019-09-29 2019-09-29 Wide-adaptability bar code and encoding method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910936335.7A CN110738293B (en) 2019-09-29 2019-09-29 Wide-adaptability bar code and encoding method thereof

Publications (2)

Publication Number Publication Date
CN110738293A CN110738293A (en) 2020-01-31
CN110738293B true CN110738293B (en) 2023-07-14

Family

ID=69268365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910936335.7A Active CN110738293B (en) 2019-09-29 2019-09-29 Wide-adaptability bar code and encoding method thereof

Country Status (1)

Country Link
CN (1) CN110738293B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326907A (en) * 2021-05-29 2021-08-31 海盐前方印刷有限公司 Method for producing color variable bar code

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6062481A (en) * 1986-04-18 2000-05-16 Cias, Inc. Optimal error-detecting, error-correcting and other coding and processing, particularly for bar codes, and applications therefor such as counterfeit detection
CN103577861A (en) * 2012-08-10 2014-02-12 财团法人工业技术研究院 Bar code structure and bar code encoding method
CN105740930A (en) * 2016-02-02 2016-07-06 福建省星微盾电子科技有限公司 Photo-magnetically readable barcode coding method
CN106709545A (en) * 2016-11-29 2017-05-24 无锡市鸿太阳印刷有限公司 Anti-fake bar code

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4443694A (en) * 1981-11-05 1984-04-17 Texas Instruments Incorporated Multilevel bar code reader
JPH07134757A (en) * 1993-11-09 1995-05-23 Toppan Printing Co Ltd Display body provided with two-dimensional code and two-dimensional code reader
GB0613360D0 (en) * 2006-07-05 2006-08-16 Iti Scotland Ltd Bar code authentication
JP2008027029A (en) * 2006-07-19 2008-02-07 B-Core Inc Optical symbol, article therewith, method of attaching optical symbol to article, and method of decoding optical symbol
CN101482934A (en) * 2008-01-08 2009-07-15 纬创资通股份有限公司 Method for representing numerical data in bar code and its correlated electronic device
US20140027516A1 (en) * 2012-07-24 2014-01-30 Ikko Fushiki Color Extension of Barcodes
CN106919966A (en) * 2016-12-28 2017-07-04 上海交通大学 Taking care of books method and colored rectangles code label based on colored rectangles code
CN107871151A (en) * 2017-10-23 2018-04-03 广东数相智能科技有限公司 A kind of color bar code and its production method and device
CN108108795A (en) * 2017-12-18 2018-06-01 无锡费舍太格科技有限公司 A kind of binary system color code

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6062481A (en) * 1986-04-18 2000-05-16 Cias, Inc. Optimal error-detecting, error-correcting and other coding and processing, particularly for bar codes, and applications therefor such as counterfeit detection
CN103577861A (en) * 2012-08-10 2014-02-12 财团法人工业技术研究院 Bar code structure and bar code encoding method
CN105740930A (en) * 2016-02-02 2016-07-06 福建省星微盾电子科技有限公司 Photo-magnetically readable barcode coding method
CN106709545A (en) * 2016-11-29 2017-05-24 无锡市鸿太阳印刷有限公司 Anti-fake bar code

Also Published As

Publication number Publication date
CN110738293A (en) 2020-01-31

Similar Documents

Publication Publication Date Title
JP6144585B2 (en) Multidimensional color barcode and method
CN101149813B (en) Matrix type colorful two-dimensional bar code encoding and decoding method
CN103793735B (en) Circular two-dimensional bar code and encoding and decoding method thereof
CN101221625B (en) Processing method capable of embedding information on bar code
CN103400174A (en) Encoding method, decoding method and system of two-dimensional code
US6196466B1 (en) Data compression method using multiple base number systems
CN102129585B (en) Method and system for transmitting information, device for displaying bar code and device for reading bar code
KR20060108959A (en) Method and apparatus for generating low density parity check matrix by block and recording medium thereof
CN104680217B (en) A kind of product information dot matrix coding/decoding system application process
CN108073966B (en) Conversion method of two-dimensional code and hole array code
CN110738293B (en) Wide-adaptability bar code and encoding method thereof
CN107886147B (en) Ring code manufacturing method and ring code identification method
CN103632182A (en) Three-dimensional (3D) image code generating and analyzing methods and device thereof
CN105279539A (en) Dot-matrix two-dimensional code coding and decoding
US6802449B2 (en) Ink-spread compensated bar code symbology and compensation methods
CN105426945A (en) Encoding system and method as well as decoding system and method of intelligent graph recognition two-dimension code
CN110276428A (en) A kind of four-dimension code encoding and decoding method
US8702011B2 (en) Barcode structure and barcode encoding method
CN101503037B (en) Processing method for embedding information on paper medium file
CN100356399C (en) Two-dimensional barcode card and its decoding method
CN109919277B (en) Enciphered colour triangular code coding and decoding method for commodity external package
CN112418374B (en) Information code generation method
CN204946052U (en) A kind of label with Quick Response Code
CN114418050A (en) Anti-counterfeiting dot matrix code generating method and decoding method
CN112561014A (en) Encoding and decoding method for one-dimensional bar code

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Hu Rongqiang

Inventor after: Wang Songfeng

Inventor after: Zhou Yue

Inventor after: Zhang Bao

Inventor after: Huo Teng

Inventor before: Hu Rongqiang

Inventor before: Wang Songfeng

Inventor before: Zhou Yue

Inventor before: Zhang Cheng

Inventor before: Huo Teng

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 430000 Floor 5-6 of Building A8, Phase I of Rongke Zhigu Industrial Project, 555 Cultural Avenue, Hongshan District, Wuhan City, Hubei Province

Applicant after: WUHAN LEAD ELECTRIC POWER TECHNOLOGY Co.,Ltd.

Address before: 430000 floors 2-6, building A8, Rongke Zhigu industrial project phase I, Liqiao village, Hongshan District, Wuhan City, Hubei Province

Applicant before: WUHAN LEAD ELECTRIC POWER TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant