CN113988246A - Curved surface two-dimensional code, curved surface two-dimensional code generation method and curved surface container - Google Patents

Curved surface two-dimensional code, curved surface two-dimensional code generation method and curved surface container Download PDF

Info

Publication number
CN113988246A
CN113988246A CN202111312822.XA CN202111312822A CN113988246A CN 113988246 A CN113988246 A CN 113988246A CN 202111312822 A CN202111312822 A CN 202111312822A CN 113988246 A CN113988246 A CN 113988246A
Authority
CN
China
Prior art keywords
code
curved surface
length
code element
curved
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.)
Granted
Application number
CN202111312822.XA
Other languages
Chinese (zh)
Other versions
CN113988246B (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.)
Beijing Zhongxin Zhixin Technology Co ltd
Original Assignee
Beijing Zhongxin Zhixin 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 Beijing Zhongxin Zhixin Technology Co ltd filed Critical Beijing Zhongxin Zhixin Technology Co ltd
Priority to CN202111312822.XA priority Critical patent/CN113988246B/en
Publication of CN113988246A publication Critical patent/CN113988246A/en
Application granted granted Critical
Publication of CN113988246B publication Critical patent/CN113988246B/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/06037Record 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 multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • G06K15/18Conditioning data for presenting it to the physical printing elements
    • G06K15/1848Generation of the printable image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • G06K15/18Conditioning data for presenting it to the physical printing elements
    • G06K15/1867Post-processing of the composed and rasterized print image
    • G06K15/1872Image enhancement
    • G06K15/1878Adjusting colours

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Printing Methods (AREA)
  • Character Input (AREA)

Abstract

The invention provides a curved surface two-dimensional code generation method, which comprises the following steps: s1: generating a binary code with a plurality of code element columns based on source data needing to generate the two-dimensional code; s2: representing a first code element in a plurality of code element columns by using a line segment with a first length, and representing a second code element by using a line segment with a second length; s3: constructing color blocks positioned above different code element columns, and expressing the code element length of the code element columns by using the lower end length of the color blocks; s4: filling color blocks, wherein the colors of the upper color blocks and the lower color blocks of the code elements in the code element columns are different, and the colors of the color blocks above the adjacent code elements in the code element columns are different; s5: the patches are formed on a curved surface, in which the direction of the symbol length in the symbol column is perpendicular to the curve section. The utility model also provides a curved surface two-dimensional code that corresponds, curved surface container that has the curved surface two-dimensional code.

Description

Curved surface two-dimensional code, curved surface two-dimensional code generation method and curved surface container
Technical Field
The present disclosure relates to curved surface two-dimensional codes, and more particularly, to a curved surface two-dimensional code for a curved surface container, such as a reagent bottle or a test tube, a generating method thereof, and a curved surface container.
Background
The two-dimensional bar code is a special bar code technology, called two-dimensional bar code for short, and was invented in Japan at first. Currently, two-dimensional Code coding mechanisms commonly used or known at present are DataMatrix, Maxi Code, QR Code, hanxin Code, etc., wherein a quick response Code (QR Code) is developed by Denso Wave corporation and later becomes an international standard. Two-dimensional codes are ubiquitous and are used in almost all fields, and in particular, in the transportation, manufacturing and retail industries, the two-dimensional codes rapidly become a widely-used inventory tracking and identification method, and further occupy a place in the anti-counterfeiting field. With the popularization of smart phones, online resources can be decoded and accessed more easily, and two-dimensional codes become a common form for acquiring specific object/event information daily.
The traditional two-dimensional code is usually a rectangular two-dimensional code, and before the two-dimensional code is identified, normalization operation needs to be carried out on the two-dimensional code. The normalization operation is to map the acquired two-dimensional code image into a standard rectangular image, so that each code element of the two-dimensional code corresponds to one pixel in the rectangular image, and the value of the two-dimensional code element is determined by the color of the pixel in the standard rectangular image. For the planar two-dimensional code, the images acquired by the acquisition equipment are easy to be normalized; however, for a rectangular two-dimensional code arranged in a curved surface shape, for example, the curvature of the curved surface is large, and thus a two-dimensional code image acquired by a terminal device is deformed and cannot be normally recognized. There are also prior art circular two-dimensional codes proposed by Tencent, for example, as disclosed in CN201720339323.2 and CN201710208336.0, however, the circular two-dimensional codes also have the problem of distortion when printed on a curved surface.
In order to avoid the deformation distortion of the two-dimensional code printed on the curved surface in the prior art, the two-dimensional code image is usually subjected to pre-distortion treatment according to the projection relation from the plane to the curved surface, the lengths of the two-dimensional code on the two sides of the curved surface are extended, the distortion of the two-dimensional code image caused by the deformation of the curved surface is compensated, the acquired two-dimensional code image on the curved surface is consistent with the two-dimensional code image on the flat surface, and the problem of deformation distortion of the two-dimensional code printed on the curved surface is avoided. However, in the prior art, the projection relationship from the plane to the curved surface is determined according to the specific angular relationship between the acquisition device and the two-dimensional code image, and the acquisition angle between the acquisition device and the two-dimensional code image is not consistent with the expected acquisition angle in the actual identification process, so that the problem of deformation and distortion of the curved-surface two-dimensional code still exists.
Prior art document 1: CN 106951942A;
prior art document 2: CN 110147865A.
Disclosure of Invention
In order to solve at least one of the above technical problems, the present disclosure provides a curved surface two-dimensional code, a curved surface two-dimensional code generation method, and a curved surface container.
According to an aspect of the present disclosure, a curved surface two-dimensional code generation method, where a cross section of the curved surface has a curved edge, and the curved edge extends in a direction perpendicular to the cross section to form the curved surface, includes the following steps:
s1: generating a binary code based on source data needing to generate a two-dimensional code, wherein the binary code is provided with a plurality of code element columns;
s2: representing a first code element in the code element columns by using a line segment with a first length, and representing a second code element by using a line segment with a second length;
s3: constructing color blocks positioned above different code element columns, and expressing the code element length of the code element columns by using the lower end length of the color blocks;
s4: filling the color blocks to ensure that the colors of the upper color blocks and the lower color blocks of the code elements in the code element columns are different, and the colors of the color blocks above the adjacent code elements in the code element columns are different;
s5: and forming the color blocks on the curved surface, wherein the direction of the length of the code elements in the code element columns is perpendicular to the section.
According to at least one embodiment of the present disclosure, the step of generating the binary code in step S1 includes: the source data is encoded into binary data represented by 0 and 1, and the binary data is divided into a plurality of segments, each of which is represented by a symbol column.
According to at least one embodiment of the present disclosure, the step of generating the binary code in step S1 includes: and encoding the source data into binary data expressed by 0 and 1, performing redundancy encoding on the binary data to obtain redundancy-encoded binary data, and expressing the redundancy-encoded binary data by using a plurality of code element columns.
According to at least one embodiment of the present disclosure, the step S2 further includes setting an alignment line in at least one of the symbol columns, where the alignment line extends the length of the at least one symbol column, and the alignment line is used to align the whole symbol column or a part of the symbol segments of the symbol column; in step S4, the colors of the upper and lower color blocks of the alignment line of the symbol row are set to be the same.
According to at least one embodiment of the present disclosure, the first symbol is identified as 0 and the second symbol is identified as 1; or the first code element is identified as 1 and the second code element is identified as 0.
According to at least one embodiment of the present disclosure, the line segment of the first length is longer than the line segment of the second length, optionally, the length of the line segment of the first length is 1.2 to 3 times of the length of the line segment of the second length, optionally, the length of the line segment of the first length is more than 3 times of the length of the line segment of the second length, and preferably, the length of the line segment of the first length is 2 times of the length of the line segment of the second length.
According to at least one embodiment of the present disclosure, the color blocks include color blocks of a first color and color blocks of a second color, and the second color is printed only on the printing medium of the curved surface when the printing medium color of the curved surface is identical to the first color.
According to at least one embodiment of the present disclosure, the color patches of the first color are color patches of a light color, and the color patches of the second color are color patches of a dark color; preferably, the color blocks of the first color are white color blocks, and the color blocks of the second color are black color blocks.
According to at least one embodiment of the present disclosure, in the step S5, the color block is formed on the curved surface or on a printing medium adhered to the curved surface by printing or laser etching.
According to at least one embodiment of the present disclosure, the method further includes generating a coding positioning mark on the curved surface, where the coding positioning mark includes a first column and a second column perpendicular to each other, and the first column and the second column are respectively located at a side portion of the pattern formed by the symbol columns and at a bottom portion or a top portion adjacent to the side portion, and are used for indicating a size and a direction of a coding space.
According to at least one embodiment of the present disclosure, the coded positioning mark uses a black mark
According to at least one embodiment of the present disclosure, in step S3, the height of the color block is determined according to the width of the curved two-dimensional code to be printed and the number of symbol columns, and the height is calculated according to the following formula, where H ═ W/(n +2), where W is the width of the curved two-dimensional code and n is the number of symbol columns.
According to another aspect of the present disclosure, there is provided a curved two-dimensional code generated by the above method, the curved two-dimensional code being used for printing on an object having a curved surface, a cross section of the object having a curved surface having a curved edge, the curved edge extending in a direction perpendicular to the cross section to form the curved surface; the curved surface two-dimensional code is provided with a plurality of code element columns, and the code element columns are arranged on the curved surface and are perpendicular to the section; the symbol column comprises a first symbol and a second symbol, the first symbol is represented by a line segment with a first length, and the second symbol is represented by a line segment with a second length; color blocks are arranged between the code element rows, the color blocks comprise color blocks of a first color and color blocks of a second color, the color blocks above the code elements of the code element rows are different from the color blocks below the code elements, and the color blocks above the adjacent code elements in the code element rows are different from each other in color.
According to at least one embodiment of the present disclosure, at least one of the number of symbol columns further includes an alignment line extending a length of the at least one column of symbol columns; the alignment line is used to align the entire symbol column or a partial symbol segment of the symbol column.
According to at least one embodiment of the present disclosure, the color patches above the alignment line are the same color as the color patches below.
According to another aspect of the present disclosure, a curved surface container is provided, at least a part of which is a curved surface, the curved surface is provided with a two-dimensional code label, the two-dimensional code label is used for identifying attributes of the curved surface container, and the two-dimensional code label uses the above curved surface two-dimensional code identifier or a curved surface two-dimensional code identifier generated by using the above curved surface two-dimensional code generation method.
According to at least one embodiment of the present disclosure, the curved surface container is a cylindrical container, and the curved surface is a side surface of the cylindrical container.
According to at least one embodiment of the present disclosure, the cylindrical container is a medicament bottle or a test tube.
According to at least one aspect of the present disclosure, there is provided a reading system of the curved two-dimensional code, including: the image acquisition module is used for acquiring an image of the curved surface two-dimensional code; the image analysis module is used for determining long sides and short sides in the code element columns according to the acquired curved surface two-dimensional code image; and the code identifying module identifies the long edge in the code element column as a first code element and the short edge as a second code element.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the disclosure and together with the description serve to explain the principles of the disclosure.
Fig. 1 is a schematic flow chart diagram of a curved two-dimensional code generation method according to an embodiment of the present disclosure.
Fig. 2 is a diagram illustrating arrangement of symbol columns when source data is encoded without redundancy according to an embodiment of the present disclosure.
Fig. 3 is a diagram illustrating an arrangement of symbol columns when source data is encoded using redundancy according to an embodiment of the present disclosure.
Fig. 4 is a schematic diagram of the identification of symbol columns in accordance with one embodiment of the present disclosure.
FIG. 5 is a schematic diagram of a color block distribution constructed from symbol columns according to one embodiment of the present disclosure.
FIG. 6 is a schematic diagram of a color block constructed from symbol columns after padding, according to an embodiment of the present disclosure.
FIG. 7(a) is a schematic diagram of a color block constructed according to FIG. 6 and formed on a cylinder after filling; FIG. 7(b) is a schematic diagram of the color blocks of the symbol columns generated by other source data formed on the cylinder after filling.
Fig. 8 is a schematic diagram of an arrangement of symbol columns having coded positioning marks according to one embodiment of the present disclosure.
Fig. 9 is a schematic diagram of a curved two-dimensional code with encoded positioning marks and alignment lines generated from source data "123456789" according to one embodiment of the present disclosure.
Fig. 10 is a block diagram of a system for reading a curved two-dimensional code according to an embodiment of the present disclosure.
Detailed Description
The present disclosure will be described in further detail with reference to the drawings and embodiments. It is to be understood that the specific embodiments described herein are for purposes of illustration only and are not to be construed as limitations of the present disclosure. It should be further noted that, for the convenience of description, only the portions relevant to the present disclosure are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict. Technical solutions of the present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Unless otherwise indicated, the illustrated exemplary embodiments/examples are to be understood as providing exemplary features of various details of some ways in which the technical concepts of the present disclosure may be practiced. Accordingly, unless otherwise indicated, features of the various embodiments may be additionally combined, separated, interchanged, and/or rearranged without departing from the technical concept of the present disclosure.
The use of cross-hatching and/or shading in the drawings is generally used to clarify the boundaries between adjacent components. As such, unless otherwise noted, the presence or absence of cross-hatching or shading does not convey or indicate any preference or requirement for a particular material, material property, size, proportion, commonality between the illustrated components and/or any other characteristic, attribute, property, etc., of a component. Further, in the drawings, the size and relative sizes of components may be exaggerated for clarity and/or descriptive purposes. While example embodiments may be practiced differently, the specific process sequence may be performed in a different order than that described. For example, two processes described consecutively may be performed substantially simultaneously or in reverse order to that described. In addition, like reference numerals denote like parts.
When an element is referred to as being "on" or "on," "connected to" or "coupled to" another element, it can be directly on, connected or coupled to the other element or intervening elements may be present. However, when an element is referred to as being "directly on," "directly connected to" or "directly coupled to" another element, there are no intervening elements present. For purposes of this disclosure, the term "connected" may refer to physically, electrically, etc., and may or may not have intermediate components.
For descriptive purposes, the present disclosure may use spatially relative terms such as "below … …," below … …, "" below … …, "" below, "" above … …, "" above, "" … …, "" higher, "and" side (e.g., "in the sidewall") to describe one component's relationship to another (other) component as illustrated in the figures. Spatially relative terms are intended to encompass different orientations of the device in use, operation, and/or manufacture in addition to the orientation depicted in the figures. For example, if the device in the figures is turned over, elements described as "below" or "beneath" other elements or features would then be oriented "above" the other elements or features. Thus, the exemplary term "below … …" can encompass both an orientation of "above" and "below". Further, the devices may be otherwise positioned (e.g., rotated 90 degrees or at other orientations) and the spatially relative descriptors used herein interpreted accordingly.
The terminology used herein is for the purpose of describing particular embodiments and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Furthermore, when the terms "comprises" and/or "comprising" and variations thereof are used in this specification, the presence of stated features, integers, steps, operations, elements, components and/or groups thereof are stated but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or groups thereof. It is also noted that, as used herein, the terms "substantially," "about," and other similar terms are used as approximate terms and not as degree terms, and as such, are used to interpret inherent deviations in measured values, calculated values, and/or provided values that would be recognized by one of ordinary skill in the art.
Fig. 1 is a method for generating a curved two-dimensional code according to an embodiment of the present disclosure, where a cross section of a curved surface has a curved edge, and the curved edge extends in a direction perpendicular to the cross section to form the curved surface, and the method includes the following steps:
s1: generating a binary code based on source data needing to generate the two-dimensional code, wherein the binary code is provided with a plurality of code element columns;
s2: representing a first code element in a plurality of code element columns by using a line segment with a first length, and representing a second code element by using a line segment with a second length;
s3: constructing color blocks positioned above different code element columns, and expressing the code element length of the code element columns by using the lower end length of the color blocks;
s4: filling color blocks, wherein the colors of the upper color blocks and the lower color blocks of the code elements in the code element columns are different, and the colors of the color blocks above the adjacent code elements in the code element columns are different;
s5: and forming the color blocks on the curved surface, wherein the direction of the length of the code elements in the code element columns is perpendicular to the section.
It will be appreciated by those skilled in the art that the curved edge of the curved surface may be closed or non-closed, that the curved line may be in the shape of a curve such as a circle, an ellipse, an arc, etc., that the curved line may form a closed figure such as a semicircle with other straight lines, and that the skilled person will be able to apply the solution to other types of curved surfaces based on the concept of the present disclosure.
In step S1, a binary code having a plurality of symbol columns is generated based on the source data for which the two-dimensional code is to be generated. In one embodiment of the present disclosure, the step of generating the binary code comprises: the source data is encoded into binary data represented by 0 and 1, and the binary data is divided into a plurality of segments, each of which is represented by a symbol column. For example, for 123456 encoding, 123 and 456 can be represented using two columns of symbols, respectively, with 010001010110 encoding for 123 symbols being 000100100011,456 symbols. In practice, a person skilled in the art may select the number of columns of symbol columns as needed, and in an embodiment of the present disclosure, the generated binary data may also be represented by only one segment, i.e., a single symbol column.
In a preferred embodiment of the present disclosure, the step of generating the binary code in step S1 includes: encoding source data into binary data expressed by 0 and 1, performing redundancy encoding on the binary data to obtain redundancy-encoded binary data, and expressing the redundancy-encoded binary data by using a plurality of code element columns. Redundant coding techniques known in the art may be used, for example, by setting redundant coding rules such that the residual code area is greater than 1/3 and still can be correctly identified.
Fig. 2 and 3 show the arrangement of symbol columns of source data 123456789 that is not redundantly encoded, and the arrangement of symbol columns after redundancy encoding, respectively.
In step S2, a first symbol in the symbol columns is represented by a line segment of a first length, and a second symbol is represented by a line segment of a second length. The first symbol may be identified as 0 and the second symbol as 1; or the first symbol is identified as a 1 and the second symbol is identified as a 0. In this embodiment, different symbols are identified by the length relationship of the line segments, and according to at least one embodiment of the present disclosure, the line segment of the first length is longer than the line segment of the second length, the line segment of the first length is a long side, and the line segment of the second length is a short side. It will be clear to the skilled person that the larger the difference between the long and short sides, the easier it is to identify; however, the length ratio is also limited by printing conditions, the length of the curved surface, and the like. Can set up to the length on long limit for 1.2 ~ 3 times of minor face length, also can set up to long limit length for more than 3 times of minor face length, preferred, the length on long limit sets up to 1.5 ~ 3 times of minor face length, more preferred, the length on long limit sets up to 2 times of minor face length.
Referring to fig. 4, when the short side mark 0 and the long side mark 1 are used, the short, long, short, long marks are used for 123, and the short, long, short, long marks are used for 456.
Step S3: for different symbol columns, color blocks located above the color blocks are constructed, and the length of the lower end of each color block is used to represent the length of a symbol column. In the identification, a symbol having a relatively long symbol length is identified as a first symbol, and a symbol having a shorter symbol length is identified as a second symbol. In the embodiment of the present disclosure, the value of the symbol is not represented by the color of the pixel of the symbol, but is represented by the length of the symbol. Therefore, the height of the color block does not affect the recognition of the code element, and the height of the color block is an adjustable value. In actual use, the height of the color block can be determined according to the width of the curved two-dimensional code to be printed and the number of code element columns, and the highest value of the height can be calculated according to the following formula, wherein H is W/(n +2), where W is the width of the curved two-dimensional code and n is the number of code element columns.
For the symbol columns in FIG. 4, the constructed color patch distribution is shown in FIG. 5.
Step S4: the color blocks are filled so that the colors of the upper color blocks and the lower color blocks of the symbols in the symbol columns are different, and the colors of the color blocks above the adjacent symbols in the symbol columns are different. The color patches above and below the symbol columns may be filled with color patches of a first color and color patches of a second color, the color patches of the first color may be set as color patches of a dark color, the color patches of the second color may be set as color patches of a light color, and preferably, the color patches of the dark color may be set as black, and the color patches of the light color may be set as white. Upon identification, its encoded value is determined by the relative length of the symbols between the different patches of adjacent columns.
The pattern after filling the color patches in fig. 5 is shown in fig. 6.
Step S5: the color patch determined in step S4 is formed on the curved surface with the direction of the symbol length in the symbol column perpendicular to the cross section. One section of the curved surface has a curved edge extending in a direction perpendicular to the section to form the curved surface, the symbol columns extend in the direction in which the curved edge extends, and different symbol columns are parallel to each other.
Fig. 7(a) shows a pattern in which the color patches in fig. 6 are formed on the cylinder, and fig. 7(b) shows a pattern in which the color patches of the other symbol columns are formed on the cylinder. As shown in fig. 7(a) and 7(b), when the curved surface is a cylindrical surface, the symbol columns extend in the axial direction of the cylindrical surface on the cylindrical surface, and the heights of the color patches extend in the arc direction of the cylindrical surface. Since the symbol column is perpendicular to the plane in which the curve lies, the length of the symbols in the symbol column is not affected by the curvature of the curve. Therefore, the curved surface two-dimensional code of the embodiment of the disclosure has no problem of distortion caused by the curved surface when being identified. Preferably, the step S5 may be performed by printing or laser etching on the curved surface or on a printing medium adhered to the curved surface.
According to at least one embodiment of the present disclosure, as shown in fig. 8 and 9, the method further includes generating a coding positioning mark on the curved surface, where the coding positioning mark includes a first column and a second column perpendicular to each other, and the first column and the second column are respectively located at a side portion of the pattern formed by the symbol columns and at a bottom portion or a top portion adjacent to the side portion, and are used for indicating a size and a direction of the coding space. In fig. 8 and 9, the code positioning marks are provided on the right side and bottom of the pattern formed by the symbol rows. The coded positioning marks can be marks like dark color blocks, and preferably, black marks are used for the coded positioning marks.
In the above embodiments of the present disclosure, the number of long sides and short sides is different in different symbol columns, and thus the symbol length is different for different symbol columns. In order to make the lengths of the generated symbol sequences consistent, in a preferred embodiment of the present disclosure, step S2 further includes: arranging an alignment line on at least one code element column in the plurality of code element columns, wherein the alignment line extends the length of the at least one code element column, and the alignment line is used for aligning the whole code element column or part of code element sections of the code element column; for example, an alignment line may be provided at the rearmost end of the symbol column: after all the symbol columns are generated, the symbol column with the longest length is determined, and then the rear ends of the other symbol columns are respectively provided with an alignment line, so that the length of the aligned other symbol columns is consistent with the length of the symbol column with the longest length. The alignment may also be performed in units of a certain number N of symbols, with the alignment operation being performed once every N symbols for all symbol columns. Correspondingly, in step S4, the colors of the upper and lower color patches of the alignment line of the symbol column are set to be the same, so that the alignment line is not recognized as a symbol at the time of recognition. As shown in fig. 9, which performs an alignment operation once for every 4 symbols in the symbol column.
According to another embodiment of the present disclosure, there is provided a curved two-dimensional code, as shown in fig. 7(a) and 7(b), for printing on an object having a curved surface, a section of the object having the curved surface having a curved edge, the curved edge extending in a direction perpendicular to the section to form a curved surface; the curved surface two-dimensional code is provided with a plurality of code element rows, and the code element rows are arranged on the curved surface and are vertical to the cross section; the symbol column comprises a first symbol and a second symbol, the first symbol is represented by a line segment with a first length, and the second symbol is represented by a line segment with a second length; color blocks are arranged between the code element columns, the color blocks comprise color blocks of a first color and color blocks of a second color, the color blocks above the code elements of the code element columns are different from the color blocks below the code elements, and the color blocks above the adjacent code elements in the code element columns are different from each other in color.
Preferably, at least one of the symbol columns is provided with an alignment line, the alignment line extends the length of the at least one symbol column, and the alignment line is used for aligning the whole symbol column or part of the symbol segments of the symbol column; the colors of the upper color blocks and the lower color blocks of the alignment lines are the same.
Preferably, the curved surface object is a cylindrical container, and the curved surface is a side surface of the cylindrical container. Preferably, the cylindrical container is a medicine bottle or a test tube. Preferably, different symbol columns are arranged in parallel. Preferably, the first symbol is identified as 0, and the second symbol is identified as 1; or the first code element is identified as 1 and the second code element is identified as 0. Preferably, the line segment of the first length is longer than the line segment of the second length, optionally, the length of the line segment of the first length is 1.2 to 3 times that of the line segment of the second length, and optionally, the length of the line segment of the first length is more than 3 times that of the line segment of the second length. Preferably, the length of the line segment of the first length is 2 times that of the line segment of the second length.
According to another embodiment of the present disclosure, as shown in fig. 10, there is provided a reading system of the curved two-dimensional code, including: the image acquisition module is used for acquiring an image of the curved surface two-dimensional code; the image analysis module is used for determining long sides and short sides in the code element columns according to the acquired curved surface two-dimensional code image; and the code identifying module identifies the long edge in the code element column as a first code element and the short edge as a second code element.
According to another embodiment of the present disclosure, a curved container is provided, the side of which is provided with a two-dimensional code label for identifying the type and/or status of the curved container, the two-dimensional code label being identified by using the curved two-dimensional code of one of the preceding claims. Preferably, the curved container is a cylindrical container, and the curved surface is a side surface of the cylindrical container. Preferably, the cylindrical container is a vial or test tube.
In the description herein, reference to the description of the terms "one embodiment/mode," "some embodiments/modes," "example," "specific example" or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment/mode or example is included in at least one embodiment/mode or example of the present disclosure. In this specification, the schematic representations of the terms used above are not necessarily intended to be the same embodiment/mode or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments/modes or examples. Furthermore, the various embodiments/aspects or examples and features of the various embodiments/aspects or examples described in this specification can be combined and combined by one skilled in the art without conflicting therewith.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, "a plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise.
It will be understood by those skilled in the art that the foregoing embodiments are merely for clarity of illustration of the disclosure and are not intended to limit the scope of the disclosure. Other variations or modifications may occur to those skilled in the art, based on the foregoing disclosure, and are still within the scope of the present disclosure.

Claims (10)

1. A curved surface two-dimensional code generation method is provided, one section of the curved surface is provided with a curved edge, and the curved edge extends along a direction perpendicular to the section to form the curved surface, and is characterized by comprising the following steps:
s1: generating a binary code based on source data needing to generate a two-dimensional code, wherein the binary code is provided with a plurality of code element columns;
s2: representing a first code element in the code element columns by using a line segment with a first length, and representing a second code element by using a line segment with a second length;
s3: constructing color blocks positioned above different code element columns, and expressing the code element length of the code element columns by using the lower end length of the color blocks;
s4: filling the color blocks to ensure that the colors of the upper color blocks and the lower color blocks of the code elements in the code element columns are different, and the colors of the color blocks above the adjacent code elements in the code element columns are different;
s5: and forming the color blocks on the curved surface, wherein the direction of the length of the code elements in the code element columns is perpendicular to the section.
2. The method for generating a curved two-dimensional code according to claim 1, wherein the step of generating a binary code in step S1 includes: the source data is encoded into binary data represented by 0 and 1, and the binary data is divided into a plurality of segments, each of which is represented by a symbol column.
3. The method for generating a curved two-dimensional code according to claim 1, wherein: the step of generating the binary code in step S1 includes: and encoding the source data into binary data expressed by 0 and 1, performing redundancy encoding on the binary data to obtain redundancy-encoded binary data, and expressing the redundancy-encoded binary data by using a plurality of code element columns.
4. A curved two-dimensional code generation method according to any one of claims 1 to 3, wherein: the first symbol is identified as 0 and the second symbol is identified as 1; or the first code element is identified as 1 and the second code element is identified as 0.
5. The curved surface two-dimensional code generation method according to claim 4, characterized in that: the line segment of the first length is longer than the line segment of the second length, the line segment of the first length is a long side, and the line segment of the second length is a short side.
6. The curved surface two-dimensional code generation method according to claim 5, characterized in that: the method further comprises the step of generating a coding positioning mark on the curved surface, wherein the coding positioning mark comprises a first column and a second column which are perpendicular to each other, the first column and the second column are respectively located on the side part of the pattern formed by the code element columns and the bottom or the top part adjacent to the side part and used for indicating the size and the direction of a coding space, and the coding positioning mark uses black marks.
7. The curved surface two-dimensional code is used for being printed on an object with a curved surface, one section of the object with the curved surface is provided with a curved edge, and the curved edge extends along a direction perpendicular to the section to form the curved surface; the method is characterized in that: the curved surface two-dimensional code is provided with a plurality of code element columns, and the code element columns are arranged on the curved surface and are perpendicular to the section; the symbol column comprises a first symbol and a second symbol, the first symbol is represented by a line segment with a first length, and the second symbol is represented by a line segment with a second length; color blocks are arranged between the code element rows, the color blocks comprise color blocks of a first color and color blocks of a second color, the color blocks above the code elements of the code element rows are different from the color blocks below the code elements, and the color blocks above the adjacent code elements in the code element rows are different from each other in color.
8. A curved container, at least a portion of which is a curved surface, the curved surface being provided with a two-dimensional code tag, the two-dimensional code tag being used for identifying an attribute of the curved container, the two-dimensional code tag being a curved two-dimensional code generated by the curved two-dimensional code generation method according to claims 1 to 6 or a curved two-dimensional code identification according to claim 7.
9. The curved container of claim 8, wherein: the curved surface container is a cylindrical container, and the curved surface is the side of the cylindrical container.
10. The curved container of claim 9, wherein: the cylindrical container is a medicament bottle or a test tube.
CN202111312822.XA 2021-11-08 2021-11-08 Curved surface two-dimensional code, curved surface two-dimensional code generation method and curved surface container Active CN113988246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111312822.XA CN113988246B (en) 2021-11-08 2021-11-08 Curved surface two-dimensional code, curved surface two-dimensional code generation method and curved surface container

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111312822.XA CN113988246B (en) 2021-11-08 2021-11-08 Curved surface two-dimensional code, curved surface two-dimensional code generation method and curved surface container

Publications (2)

Publication Number Publication Date
CN113988246A true CN113988246A (en) 2022-01-28
CN113988246B CN113988246B (en) 2024-04-19

Family

ID=79747088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111312822.XA Active CN113988246B (en) 2021-11-08 2021-11-08 Curved surface two-dimensional code, curved surface two-dimensional code generation method and curved surface container

Country Status (1)

Country Link
CN (1) CN113988246B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013084031A (en) * 2011-10-06 2013-05-09 Seiko Epson Corp Marker, two-dimensional code, recognition method for marker, and recognition method for two-dimensional code
CN106951942A (en) * 2017-02-14 2017-07-14 上海富脉实业有限公司 A kind of predistortion labeling and predistortion image in 2 D code generation method and system
CN107063316A (en) * 2017-02-28 2017-08-18 苏州市睿光电科技有限公司 A kind of position coding method and device
CN108108795A (en) * 2017-12-18 2018-06-01 无锡费舍太格科技有限公司 A kind of binary system color code
CN108846466A (en) * 2018-06-25 2018-11-20 中国联合网络通信集团有限公司 Two-dimensional code generation method and device, two-dimensional code identification method and device
CN109978111A (en) * 2019-03-13 2019-07-05 杭州百伴生物技术有限公司 Matrix two-dimensional code, its generation, coding/decoding method and its equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013084031A (en) * 2011-10-06 2013-05-09 Seiko Epson Corp Marker, two-dimensional code, recognition method for marker, and recognition method for two-dimensional code
CN106951942A (en) * 2017-02-14 2017-07-14 上海富脉实业有限公司 A kind of predistortion labeling and predistortion image in 2 D code generation method and system
CN107063316A (en) * 2017-02-28 2017-08-18 苏州市睿光电科技有限公司 A kind of position coding method and device
CN108108795A (en) * 2017-12-18 2018-06-01 无锡费舍太格科技有限公司 A kind of binary system color code
CN108846466A (en) * 2018-06-25 2018-11-20 中国联合网络通信集团有限公司 Two-dimensional code generation method and device, two-dimensional code identification method and device
CN109978111A (en) * 2019-03-13 2019-07-05 杭州百伴生物技术有限公司 Matrix two-dimensional code, its generation, coding/decoding method and its equipment

Also Published As

Publication number Publication date
CN113988246B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
US20170220916A1 (en) Specific Bar Code and Forming Method of the Same
JP4364615B2 (en) 2D code display object and 2D code display tire
US10318781B2 (en) Two dimensional barcode with dynamic environmental data system, method, and apparatus
CN105046184A (en) Distortion image correction based two-dimensional code decoding method and system
CN101334849B (en) Two-dimension code label symbol creation method and apparatus
US5869828A (en) Color and shape system for encoding and decoding data
US20010045461A1 (en) Composite code symbology
US9911072B2 (en) Two-dimensional code, and two-dimensional-code analysis system
EP3144857B1 (en) Two-dimensional code, two-dimensional-code analysis system, and two-dimensional-code generation system
WO2008058480A1 (en) Two-dimension code, decoding method thereof and printing publication for applying two-dimension code
KR20090018811A (en) Multi-dimensional symbologies and related methods
US20070278316A1 (en) Concentric-ring circular bar code
CN100390807C (en) Trilateral poly-dimensional bar code easy for omnibearing recognition and reading method thereof
EP3091478B1 (en) Multiple resolution readable color array
CN105046183A (en) Decoding method and system for distorted QR (Quick Response) code
CN106462784B (en) Coded cell and cell array
US11151434B2 (en) Two dimensional barcode provided with surrounding dynamic environmental indicator and color calibration reference
CN103530669A (en) Data information two-dimensional code encoding method
CN104794987A (en) Two-dimension code anti-counterfeit label
US20060050961A1 (en) Method and system for locating and verifying a finder pattern in a two-dimensional machine-readable symbol
CN105095937A (en) Visual identification method based on linear clustering circular array graphic code
CN102741864A (en) Multilayer quick response code image encoding/decoding method and encoding/decoding device
US20220321146A1 (en) Coding pattern, coding and reading methods for same, calibration board, and calibration method
CN113988246B (en) Curved surface two-dimensional code, curved surface two-dimensional code generation method and curved surface container
CN104700139A (en) Method and device for generating bar code groups

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
GR01 Patent grant
GR01 Patent grant