Graphic code, method and device for generating and identifying graphic code

By integrating one-dimensional code and QR code in the same graphic code and constructing it with interphase bar graphics, the existing technology occupies too large positions and inaccurate identification when the one-dimensional code and QR code are separated in the prior art. The problem has been effectively and accurately identified.

CN113283561BActive Publication Date: 2025-01-10阿里宋汉信息技术有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010105095.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-20
Publication Date
2025-01-10
Estimated Expiration
2040-02-20

AI Technical Summary

Technical Problem

In the prior art, the one-dimensional code and the QR code occupy too large positions and are close to each other, resulting in inaccurate identification.

Method used

Design a graphic code, by integrating the first sub-graphic code and the second sub-graphic code in the same graphic code, respectively, deploying on both sides of the second sub-graphic code, and a first strip of shapes arranged interphase and The second shape is composed of a graph to realize the collection and recognition of multiple sub-graphic codes.

Benefits of technology

The recognition efficiency and accuracy of graphic codes are improved, identification conflicts caused by proximity are avoided, and codeword areas are saved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113283561B_ABST
    Figure CN113283561B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a graphic code, a method and device for generating and recognizing a graphic code. The graphic code includes: a plurality of sub-graphic codes; a first sub-graphic code of the plurality of sub-graphic codes includes a first graphic area and a second graphic area; the first graphic area and the second graphic area are respectively arranged on both sides of the second sub-graphic code; the first graphic area and the second graphic area are respectively composed of a first stripe graphic and a second stripe graphic arranged alternately; wherein the first stripe graphic is used to carry information. The embodiment of the present invention integrates a plurality of sub-graphic codes into one graphic code to improve the recognition efficiency and accuracy of the graphic code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart device technology, and in particular to a graphic code, a method and a device for generating and recognizing the graphic code. Background Art

[0002] A graphic code is a graphic identifier that uses black and white graphics of varying sizes arranged according to certain coding rules to express a set of information. The more common graphic codes include QR codes and bar codes. Bar codes, also known as one-dimensional codes, can be used to identify the country of production, manufacturer, product name, book classification number, user account number and other information of an item. QR codes can be used to identify equipment numbers, bill identifiers, product names, user accounts, payment accounts and other information. Graphic codes are widely used in many fields such as commodity circulation, book management, mobile payment, and postal management.

[0003] In the prior art, two-dimensional codes and one-dimensional codes are generally used independently. One-dimensional codes are generally printed on product packaging boxes or packaging bags, and for the convenience of scanning, two-dimensional codes are generally printed or pasted near the one-dimensional code, for example, the two-dimensional code is located above the one-dimensional code. Of course, when the one-dimensional code and the two-dimensional code are printed separately, they occupy too much area. In order to save printing area, the two-dimensional code and the one-dimensional code can also be printed in the same area, and the distance between the two is very close.

[0004] However, when the distance between the QR code and the one-dimensional code is very close, the two may affect each other's recognition during the recognition process, resulting in inaccurate recognition. Summary of the invention

[0005] In view of this, the embodiments of the present invention provide a graphic code, a method and device for generating and recognizing a graphic code, so as to solve the technical problem in the prior art that a one-dimensional code and a two-dimensional code occupy too much space when separated, and inaccurate recognition occurs when the distance is close.

[0006] In a first aspect, an embodiment of the present invention provides a graphic code, comprising: a plurality of sub-graphic codes; a first sub-graphic code of the plurality of sub-graphic codes comprises a first graphic area and a second graphic area; the first graphic area and the second graphic area are respectively disposed on both sides of the second sub-graphic code;

[0007] The first graphic area and the second graphic area are respectively composed of a first strip graphic and a second strip graphic arranged alternately; wherein the first strip graphic is used to carry information. :

[0008] In a second aspect, an embodiment of the present invention provides a method for generating a graphic code, comprising:

[0009] determining the first information and the second information;

[0010] encoding the second information into a second sub-graphic code;

[0011] Determine a first graphic area and a second graphic area respectively disposed on both sides of the second sub-graphic code;

[0012] Encode the first information so that the encoded first information is set in the first graphic area and the first bar graphic in the second graphic area to obtain a first sub-graphic code; wherein the first sub-graphic code also includes a second bar graphic located in the first graphic area and the second graphic area and arranged alternately with the first bar graphic;

[0013] Determine the graphic codes corresponding to the first sub-graphic code and the second sub-graphic code.

[0014] In a third aspect, an embodiment of the present invention provides a method for recognizing a graphic code, comprising:

[0015] Determine a graphic code; wherein the graphic code includes: a plurality of sub-graphic codes; a first sub-graphic code of the plurality of sub-graphic codes includes a first graphic area and a second graphic area; the first graphic area and the second graphic area are respectively arranged on both sides of the second sub-graphic code; the first graphic area and the second graphic area are respectively composed of a first stripe graphic and a second stripe graphic arranged alternately; wherein the first stripe graphic is used to carry information;

[0016] identifying second information carried in the second sub-graphic code;

[0017] Identify the first information carried by the first bar graphic in the first graphic area and the second graphic area corresponding to the first sub-graphic code.

[0018] In a fourth aspect, an embodiment of the present invention provides a device for generating a graphic code, comprising: a storage component and a processing component; the storage component is used to store one or more computer instructions, the one or more computer instructions are used to be called by the processing component, and the processing component is used to:

[0019] Determine a graphic code; wherein the graphic code includes: a plurality of sub-graphic codes; a first sub-graphic code among the plurality of sub-graphic codes includes a first graphic area and a second graphic area; the first graphic area and the second graphic area are respectively arranged on both sides of the second sub-graphic code; the first graphic area and the second graphic area are respectively composed of a first strip graphic and a second strip graphic arranged alternately; wherein the first strip graphic is used to carry information; identify the second information carried in the second sub-graphic code; identify the first information carried by the first strip graphic in the first graphic area and the second graphic area corresponding to the first sub-graphic code.

[0020] In a fifth aspect, an embodiment of the present invention provides a graphic code recognition device, comprising: a storage component and a processing component; the storage component is used to store one or more computer instructions, the one or more computer instructions are used to be called by the processing component, and the processing component is used to:

[0021] Determine a graphic code; wherein the graphic code includes: a plurality of sub-graphic codes; a first sub-graphic code among the plurality of sub-graphic codes includes a first graphic area and a second graphic area; the first graphic area and the second graphic area are respectively arranged on both sides of the second sub-graphic code; the first graphic area and the second graphic area are respectively composed of a first strip graphic and a second strip graphic arranged alternately; wherein the first strip graphic is used to carry information; identify the second information carried in the second sub-graphic code; identify the first information carried by the first strip graphic in the first graphic area and the second graphic area corresponding to the first sub-graphic code.

[0022] In a sixth aspect, an embodiment of the present application provides a graphic code, including: a first sub-graphic code corresponding to a graphic area of ​​a predetermined shape;

[0023] The graphic area is composed of a first strip graphic and a second strip graphic that are arranged alternately; the first strip graphic is used to carry information of the first sub-graphic code.

[0024] In a seventh aspect, an embodiment of the present application provides a method for generating a graphic code, comprising:

[0025] determining first information;

[0026] Encoding the first information so that the encoded first information is set in a first stripe pattern in a predetermined shape of a pattern area to obtain a first sub-pattern code; wherein the first sub-pattern code also includes a second stripe pattern located in the pattern area and arranged alternately with the first stripe pattern;

[0027] Determine a graphic code corresponding to the first sub-graphic code.

[0028] In an eighth aspect, an embodiment of the present application provides a method for recognizing a graphic code, comprising:

[0029] Determine a graphic code; wherein the graphic code includes: a first sub-graphic code corresponding to a graphic area of ​​a predetermined shape, the graphic area is composed of a first stripe graphic and a second stripe graphic arranged alternately; the first stripe graphic is used to carry information of the first sub-graphic code;

[0030] Identify first information carried by the first stripe graphic in the graphic area corresponding to the first sub-graphic code.

[0031] In a ninth aspect, an embodiment of the present application provides a device for generating a graphic code, the device comprising: a storage component and a processing component; the storage component is used to store one or more computer instructions, the one or more computer instructions are used to be called by the processing component, and the processing component is used to:

[0032] Determine first information; encode the first information so that the encoded first information is set in a first stripe graphic of a predetermined shape in a graphic area to obtain a first sub-graphic code; wherein the first sub-graphic code also includes a second stripe graphic located in the graphic area and arranged alternately with the first stripe graphic; determine a graphic code corresponding to the first sub-graphic code.

[0033] In a tenth aspect, an embodiment of the present application provides a device for recognizing a graphic code, the device comprising: a storage component and a processing component; the storage component is used to store one or more computer instructions, the one or more computer instructions are used to be called by the processing component, and the processing component is used to:

[0034] Determine a graphic code; wherein the graphic code includes: a first sub-graphic code corresponding to a graphic area of ​​a predetermined shape, the graphic area being composed of a first strip graphic and a second strip graphic arranged alternately; the first strip graphic is used to carry information of the first sub-graphic code; and identify the first information carried by the first strip graphic in the graphic area corresponding to the first sub-graphic code.

[0035] An embodiment of the present invention provides a graphic code, which may include multiple sub-graphic codes, wherein the first sub-graphic code of the multiple sub-graphic codes includes a first graphic area and a second graphic area, and the first graphic area and the second graphic area are respectively arranged on both sides of the second sub-graphic code. That is, the graphic code may include the first sub-graphic code and the second sub-graphic code, and the graphic areas of the first sub-graphic code are respectively arranged on both sides of the graphic area of ​​the second sub-graphic code, and the first graphic area and the second graphic area are respectively composed of a first stripe graphic and a second stripe graphic arranged alternately, and the first stripe graphic is used to carry information. By integrating the first sub-graphic code and the second sub-graphic code into the same graphic code, a collection of multiple sub-graphic codes can be realized, but they can be identified according to corresponding recognition rules, so that the recognition of the two sub-graphic codes does not affect each other, thereby improving the recognition efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 A schematic diagram of the structure of an embodiment of a graphic code provided by an embodiment of the present invention;

[0038] Figure 2 A schematic structural diagram of another embodiment of a graphic code provided by an embodiment of the present invention;

[0039] Figure 3 A schematic diagram of the structure of an embodiment of a graphic code provided by an embodiment of the present invention;

[0040] Figure 4 A schematic structural diagram of another embodiment of a graphic code provided by an embodiment of the present invention;

[0041] Figure 5 A flowchart of an embodiment of a method for generating a graphic code provided by an embodiment of the present invention;

[0042] Figure 6 A flowchart of another embodiment of a method for generating a graphic code provided by an embodiment of the present invention;

[0043] Figure 7 A flowchart of an embodiment of a method for recognizing a graphic code provided by an embodiment of the present invention;

[0044] Figure 8 A flowchart of another embodiment of a method for recognizing a graphic code provided by an embodiment of the present invention;

[0045] Fig. 9 A flowchart of another embodiment of a method for recognizing a graphic code provided by an embodiment of the present invention;

[0046] Fig.10 A schematic diagram of identifying a graphic code provided by an embodiment of the present invention;

[0047] Fig.11 A schematic diagram of identifying a graphic code provided by an embodiment of the present invention;

[0048] Fig.12 A schematic diagram of the structure of an embodiment of a graphic code provided in an embodiment of the present application;

[0049] Fig.13 A structural schematic diagram of another embodiment of a graphic code provided in an embodiment of the present application;

[0050] Fig.14 A structural schematic diagram of another embodiment of a graphic code provided in an embodiment of the present application;

[0051] Fig.15A structural schematic diagram of another embodiment of a graphic code provided in an embodiment of the present application;

[0052] Fig.16 A flowchart of an embodiment of a method for generating a graphic code provided in an embodiment of the present application;

[0053] Fig.17 A flowchart of an embodiment of a method for recognizing a graphic code provided in an embodiment of the present application;

[0054] Fig.18 A schematic structural diagram of an embodiment of a device for generating a graphic code provided by an embodiment of the present invention;

[0055] Fig.19 A schematic structural diagram of another embodiment of a graphic code recognition device provided by an embodiment of the present invention;

[0056] Fig. 20 A schematic structural diagram of an embodiment of a device for generating a graphic code provided by an embodiment of the present invention;

[0057] Fig.21 The present invention provides a schematic structural diagram of another embodiment of a device for recognizing a graphic code. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0059] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the inclusion of at least one.

[0060] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0061] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to identifying", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is identified" may be interpreted as "when determining" or "in response to determining" or "when identifying (stated condition or event)" or "in response to identifying (stated condition or event)", depending on the context.

[0062] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.

[0063] The embodiments of the present application can be applied to graphic code recognition by optimizing and dividing the overall area of ​​the graphic code so that the one-dimensional code and the two-dimensional code are filled in a complete graphic code in the form of bars to obtain a graphic code that combines two sub-graphic codes. The recognition of each sub-graphic code will not be affected by other sub-graphic codes, thereby improving the recognition accuracy and efficiency while reducing the code area.

[0064] In the prior art, graphic codes can include multiple types, among which the more common graphic codes are one-dimensional codes and two-dimensional codes. One-dimensional codes are mainly used in industry and commerce, for example, they can track or identify commodities and products to achieve product positioning, traceability and other applications. Two-dimensional codes are mainly used in human-computer interaction fields such as product settlement and identity recognition to perform human-computer interaction. Usually, in order to facilitate product circulation, a product package usually contains both a one-dimensional code and a two-dimensional code. For example, a one-dimensional code and a two-dimensional code are generally printed or pasted on a product packaging bag, and the distance between the two is relatively close. When a user uses a terminal device to scan one of the two-dimensional codes or the one-dimensional code, due to the close distance between the one-dimensional code and the two-dimensional code, the two may affect each other's recognition scanning. For example, when a user uses a mobile phone to scan a two-dimensional code, and the mobile phone is far away from the product, the one-dimensional code may be scanned at the same time. At this time, there will be a scanning conflict between the one-dimensional code and the two-dimensional code, and the user needs to adjust the scanning distance or re-scan the code, and the recognition accuracy and efficiency are not high.

[0065] In order to solve the above technical problems, a graphic code is provided in an embodiment of the present application, and the graphic code may include multiple sub-graphic codes, and the first sub-graphic code in the multiple sub-graphic codes includes a first graphic area and a second graphic area, and the first graphic area and the second graphic area are respectively deployed on both sides of the second sub-graphic code. That is, the graphic code may include a first sub-graphic code and a second sub-graphic code, and the graphic areas of the first sub-graphic code are respectively deployed on both sides of the graphic area of ​​the second sub-graphic code, and the first graphic area and the second graphic area are respectively composed of a first stripe graphic and a second stripe graphic arranged alternately, and the first stripe graphic is used to carry information. By integrating the first sub-graphic code and the second sub-graphic code in the same graphic code, a collection of multiple sub-graphic codes can be realized, but they can be identified according to corresponding recognition rules, so that the recognition of the two sub-graphic codes does not affect each other, thereby improving the recognition efficiency.

[0066] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0067] like Figure 1 FIG. 1 is a schematic diagram of a structure of a graphic code provided by an embodiment of the present application. Figure 1 In the figure, the graphic code 100 may include multiple sub-graphic codes, and the first sub-graphic code 101 among the multiple sub-graphic codes may include a first graphic area 1011 and a second graphic area 1012, and the first graphic area 1011 and the second graphic area 1012 are respectively deployed on both sides of the second sub-graphic code 102.

[0068] The first graphic area 1011 and the second graphic area 1012 are respectively composed of a first strip graphic and a second strip graphic arranged alternately, wherein the first strip graphic is used to carry information.

[0069] Optionally, the information carried by the first strip graphics in the first graphic area 1011 and the second graphic area 1012 is generated by arranging the code element information of the first sub-graphic code according to a certain rule.

[0070] The first stripe pattern is used to carry the first information of the first sub-graphic code, and the first stripe pattern is filled with the code element corresponding to the first information of the first sub-graphic code. The graphic area corresponding to the second sub-graphic code carries the second information of the second sub-graphic code, and the graphic area corresponding to the second sub-graphic code is filled with the code element corresponding to the second information.

[0071] For ease of understanding, Figure 1 The shape of the graphical code 100 shown is circular. In some embodiments, Figure 1 The shape of the graphic code shown can also be a rectangle, an axisymmetric or center-point symmetrical polygon, and the embodiment of the present application does not impose too many restrictions on the shape of the graphic code. In practical applications, the shape of the graphic code can be set according to the packaging requirements of the commodity or product.

[0072] In the embodiment of the present application, the graphic code may include multiple sub-graphic codes, which may include a first graphic code and a second graphic code, and the first graphic area and the second graphic area of ​​the first graphic code are arranged on both sides of the second sub-graphic code, so as to integrate the first sub-graphic code and the second sub-graphic code in the same graphic code, and realize multiple sub-graphic codes in the same graphic code. Moreover, the first graphic area and the second graphic area of ​​the first sub-graphic code are respectively arranged on both sides of the second sub-graphic code, which can make the area division of the first sub-graphic code and the second sub-graphic code clearer, so that the recognition process does not affect each other. In addition, the first graphic area and the second graphic area of ​​the first sub-graphic code are composed of a first bar graphic and a second bar graphic arranged alternately, wherein the first bar graphic is used to carry information, and the second bar graphic is arranged alternately with the first bar graphic, which can make the first bar graphic better distinguishable from other first bar graphics, so as to accurately obtain the message carried in the first bar graphic and improve the accuracy of recognition.

[0073] In some embodiments, in order to make the graphic code more beautiful and better identify each graphic code, a mask pattern can be set on the graphic code. The mask pattern can make the graphic code more beautiful and facilitate the identification of the graphic code. When the first sub-graphic code is a bar-shaped two-dimensional code and the second sub-graphic code is a one-dimensional code, since the one-dimensional code does not require a mask pattern, the second sub-graphic code may not cover the mask pattern, but cover the mask pattern on the first sub-graphic code. In order to match the first sub-mask pattern with the first bar pattern and the second bar pattern of the first sub-graphic code, the mask pattern can be arranged in a way that the first bar pattern and the second bar pattern are arranged alternately, and the mask pattern can be set to a third bar pattern and a fourth bar pattern arranged alternately. Among them, the third bar pattern matches the shape and quantity of the first bar pattern, and the fourth bar pattern matches the shape and quantity of the second bar pattern. The third bar pattern is filled with a preset bar mask pattern, and the fourth bar pattern can be filled with a preset mask pattern. In order to reduce the complexity of recognition, since the second bar pattern does not carry specific information, the fourth bar pattern can be the same as the second bar pattern.

[0074] like Figure 2 FIG. 1 is a structural diagram of another embodiment of a graphic code provided in an embodiment of the present application, and FIG. Figure 1 The difference between the graphic code of the illustrated embodiment is that the second sub-graphic code 102 includes an information valid area 201 and an information invalid area 202 surrounding the information valid area 201;

[0075] The first graphic region 1011 and the second graphic region 1012 are respectively located at two sides of the information invalid region 202 and are respectively adjacent to the information invalid region 202 .

[0076] In some embodiments, the second sub-graphic code is a one-dimensional code, and the graphic shape of the one-dimensional code is generally a rectangle. In order to match the shape characteristics of the one-dimensional code, the shape of the effective information area can be a rectangle, and the intersection of the diagonals of the effective information area coincides with the center point of the graphic code. The invalid information area can be an annular area between an outer ring formed by two sides and two arcs and an inner ring of the rectangle. The length and width of the inner ring of the rectangular ring are equal to the length and width of the effective rectangular information area. The lengths of the two sides of the outer ring of the matrix ring are equal to the lengths of the adjacent sides of the first sub-graphic area and the second sub-graphic area. The two arcs of the outer ring are two line segments parallel to the width of the inner ring formed by connecting the endpoints of the two sides of the outer ring, which are respectively in the minor arcs corresponding to the circular graphic code.

[0077] By presetting the position of the second sub-graphic code in the graphic code, the area of ​​the second sub-graphic code can be quickly determined during the decoding process, thereby realizing rapid recognition of the second sub-graphic code.

[0078] In order to better distinguish the first sub-graphic code from the second sub-graphic code, an information invalid area is set between the information valid area of ​​the second sub-graphic code and the first sub-graphic code, and the information invalid area can be at the code connection point of the first sub-graphic code and the second sub-graphic code to isolate the information valid areas of the first sub-graphic code and the second sub-graphic code.

[0079] Usually, the information invalid area can be set as a blank code word, or set as a predetermined code word that can effectively distinguish the first sub-graphic code and the information invalid area, so as to quickly distinguish the first sub-graphic code and the second sub-graphic code in the graphic code.

[0080] Therefore, in another embodiment provided by the present application, the multiple sub-graphic codes of the graphic code may further include: an isolated graphic code, wherein the isolated graphic code is located in the information invalid area of ​​the second sub-graphic code.

[0081] The isolation graphic code is used to isolate the first graphic area, the second graphic area and the information valid area of ​​the first sub-graphic code.

[0082] The isolation area of ​​the third sub-graphic code can surround the third graphic area of ​​the second sub-graphic code, and the isolation area of ​​the third sub-graphic code has adjacent edges with the third graphic area of ​​the second sub-graphic code, and has adjacent edges with the first graphic area and the second graphic area of ​​the first sub-graphic code.

[0083] As an embodiment, the shape of the graphic code includes a circle;

[0084] The first common side of the first graphic area and the information invalid area, and the second common side of the second graphic area and the information invalid area are two parallel chords of equal length in the circle corresponding to the graphic code.

[0085] like Figure 2 As shown, the first common side L1 between the first graphic area 1011 and the information invalid area 202 and the second common side L2 between the second graphic area 1012 and the information invalid area 202 are two parallel chords of equal length in the circle corresponding to the graphic code.

[0086] In one embodiment of the present application, the first sub-graphic code may include a bar-shaped QR code. According to the generation rules of the QR code, a common QR code may include a three-dimensional positioning point. Similarly, the first sub-graphic code of the embodiment of the present application may include the same three positioning graphics.

[0087] The three positioning patterns are identical in shape, size and pattern.

[0088] The three positioning patterns are located in the first pattern area and the second pattern area of ​​the first sub-pattern code to position the first sub-pattern code.

[0089] For ease of understanding, Figure 3 A schematic diagram of a graphic code provided by an embodiment of the present application is shown, and the graphic code 300 may include multiple sub-graphic codes. Among them, the multiple sub-graphic codes may include a first sub-graphic code 301, and the first sub-graphic code 301 may include a first graphic area 3011 and a second sub-graphic area 3012, and the first graphic area 3011 and the second sub-graphic area are respectively deployed on both sides of the second sub-graphic code 302. The first graphic area 3011 and the second sub-graphic area 3012 of the first sub-graphic code 301 are respectively composed of a first strip graphic M1 and a second strip graphic M2 arranged alternately. Among them, the first strip graphic is used to carry information.

[0090] Figure 3 The first sub-graphic code 301 is a bar-shaped two-dimensional code, and the second sub-graphic code 302 is a one-dimensional code.

[0091] The first stripe graphic M1 is filled with code elements corresponding to the first information, and the second stripe graphic M2 is filled with blank code elements. The blank code elements may refer to code elements that are all 0 or code elements that are all 1. Figure 3 The blank code elements filled in the second strip graph in are code elements with all values ​​being 1.

[0092] The first sub-graphic code 301 may include three positioning graphics. Figure 3 , a display method of three positioning graphics in a graphic code is shown, wherein two positioning graphics 303 and 304 are located in a first graphic area 3011 , and another positioning graphic 305 is located in a second graphic area 3012 .

[0093] The center points of the positioning pattern 303, the positioning pattern 304 and the positioning pattern 305 are connected to each other to form an isosceles right triangle, and the midpoint of the base of the isosceles right triangle coincides with the center point of the graphic code.

[0094] In some embodiments, three positioning graphics can be used to identify the size and direction of the first sub-graphic code, and when the center points of the three positioning graphics are connected to each other, a positioning triangle is formed. The positioning triangle is an isosceles right triangle and the midpoint of its base coincides with the center of the graphic code.

[0095] When the center points of the three positioning graphics are connected to each other, the positioning triangle formed is an isosceles right triangle and the midpoint of its base coincides with the center of the graphic code, so that fast and accurate positioning can be achieved.

[0096] In order to accurately identify each positioning point and make the area utilization rate of the graphic code higher, in a possible design, the three positioning graphics are rectangular.

[0097] Each of the three positioning figures has a vertex intersecting with the edge of the graphic code, and each of the three positioning figures has a diagonal line that is on the same straight line as the center of the graphic code.

[0098] Since the first sub-graphic code may include a first graphic area and a second graphic area, two positioning points may be set in one of the graphic areas, and the remaining positioning points may be set in the other graphic area.

[0099] In yet another possible design, any two of the three positioning patterns may be located in the first pattern area or the second pattern area.

[0100] Any two of the three positioning patterns may be located in the first graphic area, or any two of the three positioning patterns may be located in the second graphic area.

[0101] Further, optionally, the first graphic area may include: a first positioning area and a second positioning area, and the second graphic area may include a third positioning area.

[0102] Alternatively, the second graphic area may include: a first positioning area and a second positioning area, and the second graphic area may include a third positioning area.

[0103] The first positioning pattern is located in the first positioning area, the second positioning pattern is located in the second positioning area, and the third positioning pattern is located in the third positioning area.

[0104] Among them, the center point of the first positioning area is the first positioning point, the center point of the second positioning area is the second positioning point, and the center point of the third positioning area is the third positioning point.

[0105] When the positioning pattern is a rectangle, the center point of the positioning area is the intersection point of the diagonals of the rectangular area corresponding to the positioning pattern.

[0106] During the generation process of the first sub-graphic code of the graphic code, certain parameters may be generated, and these parameters may include version information, redundancy type, encoding type and / or code type of the first sub-graphic code, etc., and the meta-information of the first graphic code may be constituted by the parameters. The meta-information constituted by at least one parameter of the first sub-graphic code may be encoded and set in the meta-information area of ​​the first sub-graphic code.

[0107] The first sub-graphic code also includes: a meta-information area located between two positioning graphics in the same graphic area and adjacent to the information invalid area;

[0108] The meta-information area is used to carry meta-information consisting of at least one parameter of the first sub-graphic code.

[0109] For ease of understanding, we will use Figure 3 The same, the only difference is that the dot pattern is used to distinguish different areas Figure 4 (not shown Figure 3 Taking all the identifications of the first sub-graphic code as an example, the meta-information of the first sub-graphic code can be set between the positioning graphics 303 and the positioning graphics 304, and in the meta-information area 307 adjacent to the information invalid area 306 of the second sub-graphic code.

[0110] As a possible implementation manner, the first sub-graphic code includes a bar-shaped two-dimensional code, and the second sub-graphic code includes a one-dimensional code, a bar-shaped two-dimensional code, or a common two-dimensional code.

[0111] The code element information of the first sub-graphic code can be obtained by encoding the first information according to the generation principle of the two-dimensional code. The encoded code element information is filled in the first bar graph of the alternately arranged first bar graph and the first bar graph of the graphic area corresponding to the second bar graph to obtain the first sub-graphic code. The second sub-graphic code can be obtained by encoding the second information according to the generation principle of the one-dimensional code.

[0112] Optionally, the encoding method of the two-dimensional code used by the first sub-graphic code may include: Data Matrix (matrix data two-dimensional code), MaxiCode (bull's eye code), Aztec (two-dimensional matrix code), QR Code (two-dimensional barcodes, two-dimensional code), etc. The encoding method of the one-dimensional code used by the second sub-graphic code may include: EAN code (European Article Number, barcode), 39 code, cross 25 code, UPC code (Universal Product Code, universal product code), 128 code, 93 code, ISBN code (International Standard Book Number, international book standard number), Codabar code, etc.

[0113] The first information is the specific information identified by the first sub-graphic code, and the second information is the specific information identified by the second sub-graphic code. For example, in the field of commodity settlement, the first information may refer to the information consisting of the payment information of the commodity, and the second information may refer to the information consisting of the product information of the commodity.

[0114] by Figure 3 For example, by scanning the graphic code 300, the first information corresponding to the first sub-graphic code 301 of the graphic code 300 can be identified, and the second information corresponding to the second sub-graphic code 302 of the graphic code 300 can also be identified.

[0115] The process of generating the graphic code may be a process of encoding according to certain encoding rules, and the process of recognizing the graphic code may be a process of decoding according to certain decoding rules.

[0116] In another embodiment provided in the embodiments of the present application, in order to make the edge area of ​​the graphic code more obvious to distinguish it from other graphic codes and achieve rapid identification, the multiple sub-graphic codes may also include: a third sub-graphic code corresponding to the edge padding area that is adapted to the graphic shape of the graphic code.

[0117] The third sub-graphic code is used to fill in the edges of the graphic code with code elements.

[0118] like Figure 4 As shown, the edge of the graphic code may be padded in the edge padded area 308 of the graphic code.

[0119] like Figure 5 FIG. 1 is a flowchart of an embodiment of a method for generating a graphic code provided in an embodiment of the present application. The method may include:

[0120] 501: Determine the first information and the second information.

[0121] The method for generating a graphic code provided in the embodiment of the present application can be applied to an electronic device or a server. When the method for generating a graphic code provided in the present application is configured in the electronic device or the cloud server, a graphic code corresponding to the first information and the second information can be generated. Electronic devices may include: mobile phones, tablet computers, wearable devices, smart speakers with display screens, notebooks, etc. The embodiment of the present application does not impose too many restrictions on the specific types of electronic devices. Servers may include ordinary servers and cloud servers. The embodiment of the present application does not impose too many restrictions on the specific types of servers.

[0122] In a possible design, determining the first information and the second information may include: obtaining the first information and the second information input by the user at the user end.

[0123] The user terminal can detect the first information and the second information input by the user.

[0124] When the method for generating a graphic code provided in an embodiment of the present application is applied to an electronic device, the user terminal is configured in the electronic device, and the electronic device determines the first information and the second information, which may include: detecting the first information and the second information input by the user.

[0125] When the method for generating a graphic code provided in the embodiment of the present application is applied to a server, the user terminal is connected to the server, and the server determines the first information and the second information, which may include: receiving the first information and the second information sent by the server.

[0126] 502: Encode the second information into a second sub-graphic code.

[0127] The second sub-graphic code can be obtained by encoding the second information according to a preset second encoding rule.

[0128] Optionally, the second sub-graphic code may be a one-dimensional code, and encoding the second information into the second sub-graphic code may include encoding the second information into the second sub-graphic code according to the encoding rule of the one-dimensional code. The code element obtained after encoding the second information is filled into the area corresponding to the second sub-graphic code to obtain the second sub-graphic code.

[0129] 503: Determine a first graphic area and a second graphic area respectively disposed on both sides of the second sub-graphic code.

[0130] The first graphic area and the second graphic area are respectively disposed on both sides of the second sub-graphic code and are adjacent to the area where the second sub-graphic code is located.

[0131] 504: Encode the first information so that the encoded first information is set in the first graphic area and the first strip graphic in the second graphic area to obtain a first sub-graphic code.

[0132] The first sub-graphic code further includes a second stripe graphic located in the first graphic area and the second graphic area and arranged alternately with the first stripe graphic.

[0133] The first sub-graphic code can be obtained by encoding the first information according to a preset first encoding rule.

[0134] The first encoding rule and the second encoding rule may be different.

[0135] Optionally, the first sub-graphic code may be a QR code, which encodes the first information so that the encoded first information is set in the first graphic area and the first strip graphic in the second graphic area. Obtaining the first sub-graphic code may include: according to the encoding rules of the QR code, encoding the first information and setting it in the first strip graphic in the first graphic area and the second graphic area to obtain the first sub-graphic code.

[0136] The code elements obtained after encoding the first information are filled into the first strip areas corresponding to the first graphic area and the second graphic area, respectively, and the blank code is filled into the second strip areas corresponding to the first graphic area and the second graphic area, respectively, to obtain the first strip graphics and the second strip graphics arranged alternately. The blank code element may refer to a code element that is all 0 or a code element that is all 1.

[0137] 505: Determine the graphic codes corresponding to the first sub-graphic code and the second sub-graphic code.

[0138] The multiple sub-graphic codes of the graphic code include a first sub-graphic code and a second sub-graphic code.

[0139] In the embodiment of the present application, after determining the first information and the second information, the second information can be encoded into a second sub-graphic code, and the first graphic area and the second graphic area deployed on both sides of the second sub-graphic code are determined respectively, so that the first information is encoded and set in the first bar graph in the first graphic area and the second graphic area to obtain the first sub-graphic code. In order to make the recognition of the first sub-graphic code more accurate, when the encoded first information is set in the first sub-graphic code, the second bar graph arranged alternately in the first bar graph can be set in the first graphic area and the second graphic area of ​​the first sub-graphic code, so as to distinguish each first bar graph and improve the recognition accuracy. By setting the first graphic area and the second graphic area of ​​the first sub-graphic code on both sides of the second sub-graphic code, the first sub-graphic code and the second sub-graphic code are deployed simultaneously in the graphic code, and the centralized configuration of multiple sub-graphic codes is realized, and the area division of the first sub-graphic code and the second sub-graphic code is clear, and the two do not affect each other's recognition, thereby improving the recognition efficiency of the first sub-graphic code and the second sub-graphic code in the graphic code.

[0140] like Figure 6FIG. 1 is a flowchart of another embodiment of a method for generating a graphic code provided in an embodiment of the present application. The method may include:

[0141] 601: Determine the first information and the second information.

[0142] It should be noted that some steps of this application are similar to Figure 3 The steps of the illustrated embodiment are the same and will not be described again here.

[0143] 602: Encode the second information and set it in the information valid area.

[0144] 603: Determine an information invalid area surrounding the information valid area to obtain a second sub-graphic code consisting of the information valid area and the information invalid area.

[0145] When identifying the first information and the second information, in order to quickly distinguish the first sub-graphic code from the second sub-graphic code, an isolation area may be established between the first graphic area and the second graphic area and the second sub-graphic code, and the isolation area may be set as an information invalid area of ​​the information valid area of ​​the second sub-graphic code. The setting of the information invalid area can isolate the areas where the code elements of the first sub-graphic code and the second sub-graphic code are located, so as to quickly distinguish the first sub-graphic code from the second sub-graphic code.

[0146] 604: Determine a first graphic region and a second graphic region that are respectively disposed on both sides of the information invalid region and are respectively adjacent to the information invalid region.

[0147] The first graphic area and the second graphic area are respectively deployed on both sides of the message invalid area, and are adjacent to the message invalid area, and have a common edge.

[0148] 605: Encode the first information so that the encoded first information is set in the first graphic area and the first strip graphic in the second graphic area to obtain a first sub-graphic code.

[0149] The first sub-graphic code further includes a second stripe graphic located in the first graphic area and the second graphic area and arranged alternately with the first stripe graphic.

[0150] 606: Determine the graphic codes corresponding to the first sub-graphic code and the second sub-graphic code.

[0151] In the embodiment of the present application, after determining the first information and the second information, the second information is encoded and set in the information valid area, and an information invalid area that can surround the information valid area is determined to obtain a second sub-graphic code consisting of the information valid area and the information invalid area. The information invalid area of ​​the second sub-graphic code can isolate the information valid area and the first graphic area and the second graphic area of ​​the first sub-graphic code, so as to quickly distinguish the first sub-graphic code from the second sub-graphic code.

[0152] As an embodiment, the shape of the information valid area is a rectangle; the method further includes:

[0153] The center point of the graphic code is taken as the intersection point of the diagonal lines of the effective information area;

[0154] Determining an information invalid area surrounding the information valid area to obtain a second sub-graphic code consisting of the information valid area and the information invalid area includes:

[0155] According to the center point of the graphic code and in combination with the information valid area, an information invalid area surrounding the information valid area is determined to obtain a second sub-graphic code consisting of the information valid area and the information invalid area;

[0156] The determining of the first graphic area and the second graphic area respectively arranged on both sides of the information invalid area and respectively adjacent to the information invalid area comprises:

[0157] According to the center point of the graphic code, a first graphic area and a second graphic area are determined to be respectively located on both sides of the information invalid area and are respectively adjacent to the information invalid area.

[0158] Optionally, the invalid information area surrounding the valid information area can be determined based on the center point, shape and size of the graphic code combined with the size of the valid information area to obtain a second sub-graphic code consisting of the valid information area and the invalid information area.

[0159] The first graphic area and the second graphic area respectively disposed on both sides of the information invalid area and respectively adjacent to the information invalid area may also be determined according to the center point, shape and size of the graphic code.

[0160] The information valid area is located in the graphic code, and the center point of the information valid area coincides with the center point of the graphic code. The information invalid area may surround the information valid area, and is adjacent to the first graphic area and the second graphic area and has a common edge.

[0161] As a possible implementation, the shape of the graphic code includes a circle;

[0162] The step of determining, based on the center point of the graphic code, the first graphic area and the second graphic area respectively located on both sides of the information invalid area and respectively adjacent to the information invalid area comprises:

[0163] Determine the radius of the graphic code;

[0164] Determine, according to the center point, shape and radius of the graphic code, a first common side between the first graphic area and the information invalid area and a second common side between the second graphic area and the information invalid area; wherein the first common side and the second common side are parallel chords of equal length in the graphic code;

[0165] Determine a closed area formed by connecting the first common edge and the arc corresponding to the graphic code where it is located as the first graphic area;

[0166] Determine that a closed area formed by connecting the second common edge and the arc corresponding to the graphic code where the second common edge is located is the second graphic area.

[0167] The first common side is the chord of the circular graphic code, and the second common side is the chord of the circular graphic code. Each chord of a circle can correspond to a minor arc, so the closed area formed by connecting the first common side and the minor arc corresponding to the graphic code can be determined as the first graphic area. The closed area formed by connecting the second common side and the minor arc corresponding to the graphic code can be determined as the second graphic area.

[0168] When the shape of the graphic code is a circle, the center point of the graphic code is the center of the circular graphic code.

[0169] In a possible design, the first sub-graphic code includes three identical positioning patterns; wherein the three positioning patterns are used to identify the size of the first sub-graphic code and the distribution direction of the code elements;

[0170] Encoding the first information so that the encoded first information is set in the first graphic area and the first strip graphic in the second graphic area, and obtaining the first sub-graphic code includes:

[0171] The three positioning patterns of the first sub-graphic code are arranged in the first graphic area and the second graphic area according to the arrangement rule that the positioning triangle formed when the center points of the three positioning patterns are connected is an isosceles right triangle and the midpoint of the base thereof coincides with the center point of the graphic code;

[0172] According to the size of the first sub-graphic code and the distribution direction of the code elements, the encoded first information is set in the first stripe graphic in the first graphic area and the second graphic area except the three positioning graphics to obtain the first sub-graphic code.

[0173] The code element distribution direction may refer to the arrangement direction of the code elements. Figure 3In the graphic code shown, two of its positioning points are located in the first graphic area, and the other positioning point is located in the second graphic area. It can be determined that the distribution direction of its code elements is from top to bottom and from left to right. That is, when the code elements of the first information are set in the first graphic area and the second graphic area of ​​the first sub-graphic code, the code elements of the first information can be filled from the leftmost side of the graphic code from top to bottom in sequence until they are filled to the rightmost side to obtain the first sub-graphic code.

[0174] In some embodiments, the positioning triangle formed by connecting the center points of the three positioning patterns is an isosceles right triangle and the midpoint of its base coincides with the center of the graphic code. The setting rule of setting the three positioning patterns of the first sub-graphic code in the first graphic area and the second graphic area may include:

[0175] According to the center point, shape and radius of the graphic code, the sizes of the three positioning graphics and the positions of their respective center points in the graphic code are determined based on the setting rule that the positioning triangle formed when the center points of the three positioning graphics are connected is an isosceles right triangle and the midpoint of its base coincides with the center of the graphic code;

[0176] According to the sizes of the three positioning patterns and the positions of their respective center points in the graphic code, the three positioning patterns are combined to generate a comprehensive positioning pattern under the setting conditions that each of the three positioning points has a vertex intersecting with the edge of the graphic code and each has a diagonal line on the same straight line as the center of the graphic code;

[0177] The comprehensive positioning graphic is set in the first graphic area and the second graphic area.

[0178] Under the setting conditions that each of the three positioning points has a vertex intersecting with the edge of the graphic code and each has a diagonal line on the same straight line as the center of the graphic code, the three positioning graphics are combined to form a comprehensive positioning graphic. The comprehensive positioning graphic is a graphic formed by combining the three positioning graphics according to the setting conditions.

[0179] Further, optionally, setting the comprehensive positioning graphic in the first graphic area and the second graphic area may include:

[0180] Arrange any two positioning patterns in the comprehensive positioning pattern in the first pattern area, and arrange another positioning pattern in the second pattern area;

[0181] The method further comprises:

[0182] Determine that the code element distribution direction of the first sub-graphic code identified by the three positioning graphics is a first distribution direction from the first graphic area to the second graphic area;

[0183] Alternatively, any two positioning patterns in the comprehensive positioning pattern are arranged in the second pattern area, and another positioning pattern is arranged in the second pattern area;

[0184] The method further comprises:

[0185] The code element distribution direction of the first sub-graphic code identified by the three positioning graphics is determined to be a second distribution direction from the second graphic area to the first graphic area.

[0186] In yet another possible design, the method further includes:

[0187] Determining meta information consisting of at least one parameter of the first sub-graphic code;

[0188] Determine a meta-information region located between two positioning graphics in the same graphic region and adjacent to the information invalid region;

[0189] The meta information is encoded and set in the meta information area to obtain a first sub-graphic code containing the meta information.

[0190] In some embodiments, the step of setting the encoded first information in the first graphic area and the first strip graphic in the area other than the three positioning graphics in the second graphic area according to the size of the first sub-graphic code and the distribution direction of the code elements, and obtaining the first sub-graphic code includes:

[0191] Determining a code element size corresponding to the first sub-graphic code according to the size of the first sub-graphic code;

[0192] With the code element size corresponding to the first sub-graphic code and according to the code element distribution direction of the first sub-graphic code, the code elements encoded with the first information are set in the first graphic area and the first strip graphic in the second graphic area except the three positioning graphics to obtain the first sub-graphic code.

[0193] As an embodiment, the first sub-graphic code may include a bar-shaped two-dimensional code, and the second sub-graphic code may include a one-dimensional code, a bar-shaped two-dimensional code or a common two-dimensional code.

[0194] As another embodiment, after the generation rule of respectively deploying the first graphic area and the second graphic area on both sides of the second sub-graphic code to generate a graphic code including the first sub-graphic code and the second sub-graphic code, the method further includes:

[0195] Generating a third sub-graphic code corresponding to the edge padding area of ​​the graphic code according to the graphic shape of the graphic code;

[0196] The third sub-graphic code is set at the edge of the graphic code to perform code element padding on the edge of the graphic code.

[0197] It should be noted that Figure 5 , Figure 6 The method for generating the graphic code involved in the embodiments can generate Figure 1 to Figure 4 The graphic codes provided in the above-mentioned embodiments are not described in detail here.

[0198] like Figure 7 FIG. 1 is a flowchart of an embodiment of a method for recognizing a graphic code provided by an embodiment of the present application. The method may include:

[0199] 701: Determine the graphic code.

[0200] Among them, the graphic code includes: multiple sub-graphic codes; the first sub-graphic code among the multiple sub-graphic codes includes a first graphic area and a second graphic area; the first graphic area and the second graphic area are respectively deployed on both sides of the second sub-graphic code; the first graphic area and the second graphic area are respectively composed of a first strip graphic and a second strip graphic arranged alternately; wherein the first strip graphic is used to carry information.

[0201] The method for recognizing a graphic code provided in the embodiment of the present application can be applied to an electronic device or a server. The electronic device can directly collect the graphic code, and use the method for recognizing a graphic code provided in the present application to recognize the information of the graphic code. The server can be connected to the user terminal. After the user terminal collects the graphic code, the graphic code can be sent to the server. The server can receive the graphic code sent by the user terminal and use the method for recognizing a graphic code provided in the present application to recognize the information of the graphic code.

[0202] 702: Identify the second information carried in the second sub-graphic code.

[0203] 703: Identify the first information carried by the first bar graphic in the first graphic area and the second graphic area corresponding to the first sub-graphic code.

[0204] In the embodiment of the present application, after determining the graphic code, multiple sub-graphic codes in the graphic code can be identified to obtain the second sub-graphic code in the multiple sub-graphic codes, and the second information carried in the second sub-graphic code can be identified to complete the identification of the second sub-graphic code. When obtaining the second sub-graphic code, the first graphic area and the second graphic area of ​​the first sub-graphic code respectively arranged on both sides of the second sub-graphic code in the graphic code can also be obtained to identify the first information carried in the first graphic area of ​​the first sub-graphic code and the first bar graphics arranged alternately in the second graphic area and the first bar graphics in the second bar graphics. By quickly identifying the first information and the second information in the graphic code according to the composition rules of the first sub-graphic code and the second sub-graphic code in the graphic code, the identification processes of the two types of information do not affect each other, thereby improving the recognition efficiency of the graphic code.

[0205] like Figure 8FIG. 1 is a flowchart of another embodiment of a method for recognizing a graphic code provided in an embodiment of the present application. The method may include:

[0206] 801: Determine the graphic code.

[0207] Among them, the graphic code includes: multiple sub-graphic codes; the first sub-graphic code among the multiple sub-graphic codes includes a first graphic area and a second graphic area; the first graphic area and the second graphic area are respectively deployed on both sides of the second sub-graphic code; the first graphic area and the second graphic area are respectively composed of a first strip graphic and a second strip graphic arranged alternately; wherein the first strip graphic is used to carry information.

[0208] Some steps of this application are the same as those in the above-mentioned embodiments and will not be repeated here.

[0209] 802: Detecting a recognition environment for recognizing a graphic code.

[0210] The user can use different electronic devices to scan the graphic code to identify the graphic code. Different electronic devices use different operating systems, and different operating systems constitute different recognition environments. The recognition environment is determined based on the type of electronic device and the operating system of the electronic device. For example, the recognition environment of a mobile phone is different from that of a handheld terminal. A handheld terminal can recognize a one-dimensional code, but cannot recognize a two-dimensional code. The recognition environment of the handheld terminal can be determined as the first recognition environment. The mobile phone can recognize a one-dimensional code and a bar-shaped two-dimensional code. The recognition environment of the mobile phone can be set to the second recognition environment.

[0211] The recognition environment of the graphic code can be determined based on the recognition function of the electronic device on the first sub-graphic code and the second sub-graphic code of the graphic code. The recognition environment that can only recognize the second sub-graphic code can be determined as the first recognition environment, and the recognition environment that can recognize both the first sub-graphic code and the second sub-graphic code can be determined as the second recognition environment.

[0212] 803: If the identification environment is the first identification environment, identify the second information carried in the second sub-graphic code.

[0213] 804: If the identification environment is the second identification environment, identify the first information carried by the first bar graphic in the first graphic area corresponding to the first sub-graphic code and the second graphic area.

[0214] In the embodiment of the present application, after determining the graphic code, the recognition environment of the graphic code can be detected, so as to identify the message carried by the graphic code according to the recognition environment of the graphic code. By judging the recognition environment, the recognition environment of the first sub-graphic code and the second sub-graphic code in the graphic code can be quickly confirmed, so as to achieve a rapid response of recognition and improve recognition efficiency.

[0215] In some embodiments, if the recognition environment is the second recognition environment, after recognizing the first information carried by the first bar graphic in the first graphic area and the second graphic area corresponding to the first sub-graphic code, the method further includes:

[0216] Identify the second information carried in the second sub-graphic code.

[0217] After the recognition of the first information and the second information is completed, the first information and the second information can be output to the user. When outputting the first information and / or the second information, reference can be made to the output method of the following embodiment.

[0218] As a possible implementation manner, for the identified first information and second information, viewing prompt information is output to prompt the user to select any information from the first information and the second information for viewing;

[0219] Based on any information selected by the user, the corresponding first information and / or second information is displayed to the user.

[0220] In a possible design, before outputting viewing prompt information for the identified first information and second information to prompt the user to select any information from the first information and the second information for viewing, the method further includes:

[0221] If the first information is the same as the second information, the first information or the second information is directly output to the user.

[0222] As another possible implementation, before outputting viewing prompt information for the identified first information and second information to prompt the user to select any information from the first information and the second information for viewing, the method further includes:

[0223] If the first information is the same as the second information, the first information or the second information is directly output to the user.

[0224] like Fig. 9 FIG. 1 is a flowchart of another embodiment of a method for recognizing a graphic code provided in an embodiment of the present application. The method may include:

[0225] 901: Determine the graphic code.

[0226] Among them, the graphic code includes: multiple sub-graphic codes; the first sub-graphic code among the multiple sub-graphic codes includes a first graphic area and a second graphic area; the first graphic area and the second graphic area are respectively deployed on both sides of the second sub-graphic code; the first graphic area and the second graphic area are respectively composed of a first strip graphic and a second strip graphic arranged alternately; wherein the first strip graphic is used to carry information.

[0227] 902: Determine the center point of the graphic code.

[0228] 903: Determine, according to the center point of the graphic code, a valid information area corresponding to the second sub-graphic code in the graphic code and an invalid information area surrounding the valid information area.

[0229] 904: Identify the information in the effective information area and obtain the second information corresponding to the second sub-graphic code.

[0230] 905: According to the invalid information area in the graphic code, determine a first graphic area and a second graphic area located on both sides of the invalid information area and adjacent to the invalid information area.

[0231] 906: Identify information corresponding to the first bar graphics in the first graphic area and the second graphic area to obtain first information corresponding to the first sub-graphic code.

[0232] In an embodiment of the present application, after determining the graphic code, the graphic code may include a plurality of sub-graphic codes, which may include a first sub-graphic code and a second sub-graphic code. The first sub-graphic code includes a first graphic area and a second graphic area, and the first graphic area and the second graphic area are respectively composed of a first bar graphic and a second bar graphic arranged alternately. This graphic setting can quickly distinguish the first sub-graphic code and the second sub-graphic code in the graphic code. After determining the center point of the graphic code, the information valid area corresponding to the second sub-graphic code in the graphic code and the information invalid area surrounding the information valid area can be determined according to the center point of the graphic code. The code element of the second information is set in the information valid area, and the information valid area and the first graphic area and the second graphic area of ​​the first sub-graphic code are isolated by the information invalid area, so that the independence of the first sub-graphic code and the second sub-graphic code can be made stronger. In the recognition process, the recognition efficiency of the first sub-graphic code and the second sub-graphic code can be improved by buffering the information invalid area.

[0233] As an embodiment, the information valid area may be a rectangle;

[0234] The step of determining the information valid area corresponding to the second sub-graphic code in the graphic code and the information invalid area surrounding the information valid area according to the center point of the graphic code comprises:

[0235] Get the valid information area where the intersection of the diagonal lines and the center point in the graphic code coincide with each other;

[0236] An information invalid area surrounding an information valid area in the graphic code is determined.

[0237] The center point of the graphic code coincides with the intersection of the diagonals of the information effective area.

[0238] In some embodiments, the shape of the graphic code is circular, and the graphic code includes a graphic code;

[0239] Determining, according to the information invalid area in the graphic code, the first graphic area and the second graphic area located on both sides of the information invalid area and adjacent to the information invalid area includes:

[0240] According to the center point, shape and radius of the graphic code, two parallel chords of equal length corresponding to the information invalid area in the graphic code are determined to obtain a first common side between the first graphic area and the information invalid area and a second common side between the second graphic area and the information invalid area;

[0241] Determine a closed area formed by connecting the first common edge and the arc corresponding to the graphic code as the first graphic area;

[0242] Determine that a closed area formed by connecting the second common edge and the arc corresponding to the graphic code is the second graphic area.

[0243] As a possible implementation manner, identifying information corresponding to the first bar graphics in the first graphic area and the second graphic area to obtain first information corresponding to the first sub-graphic code includes:

[0244] Identify the positioning graphics corresponding to the three positioning points in the first graphic area and the second graphic area that form an isosceles right triangle when connected to each other, and the midpoint of the base of the triangle coincides with the center point of the graphic code;

[0245] Determine the size of the first sub-pattern code and the distribution direction of the code elements according to the three positioning patterns;

[0246] According to the size of the first sub-pattern code and the distribution direction of the code elements, the first information in the first stripe pattern in the first pattern area and the second pattern area except the three positioning patterns is identified.

[0247] In a possible design, the first graphic area and the second graphic area are identified to form an isosceles right triangle when connected to each other, and the three positioning points whose midpoints of the bases of the triangle coincide with the center point of the graphic code respectively correspond to the positioning graphics including:

[0248] Determine three positioning points in which an isosceles triangle is formed when the first graphic area and the second graphic area are connected to each other, and the midpoint of the base of the isosceles triangle coincides with the center point of the graphic code;

[0249] Based on the setting conditions that each of the three positioning points has a vertex intersecting with the edge of the graphic code and each of the three positioning points has a diagonal line on the same straight line as the center of the graphic code, combined with the distance between each of the three positioning points and the center point of the graphic code, the size of the positioning graphics corresponding to each of the three positioning points and the position of each of the three positioning points in the graphic code are determined;

[0250] The positioning patterns corresponding to the three positioning points are determined according to the center point, shape and radius of the graphic code, combined with the sizes of the positioning patterns of the three positioning points and the positions of the three positioning points in the graphic code.

[0251] In some embodiments, determining the size of the first sub-pattern code and the code element distribution direction according to the three positioning patterns may include:

[0252] Determine the size of the first sub-graphic code according to the sizes of the three positioning graphics and the shape and radius of the graphic code;

[0253] Determine two locator patterns located in the same graphic area among the three locator patterns;

[0254] If the two positioning patterns are located in the first pattern area, determining that the code element distribution direction of the first sub-pattern code is the first distribution direction from the first pattern area to the second pattern area;

[0255] If the two positioning patterns are located in the second pattern area, the code element distribution direction of the first sub-pattern code is determined to be the second distribution direction from the second pattern area to the first pattern area.

[0256] The first distribution direction from the first graphic area to the second graphic area can refer to the code element of the first information, which is set in the first strip graphic of the first graphic area and the second graphic area according to the distribution direction from the first graphic area to the second graphic area to obtain the first sub-graphic code.

[0257] The second distribution direction from the first graphic area to the second graphic area can refer to the code element of the first information. According to the distribution direction from the second graphic area to the first graphic area, it is set in the first strip graphic between the first graphic area and the second graphic area to obtain the first sub-graphic code.

[0258] Further, optionally, it also includes:

[0259] Acquire a meta-information area between two positioning graphics in the same graphic area and adjacent to the information invalid area in the first sub-graphic code;

[0260] Meta information in the meta information area is identified; wherein the meta information includes at least one parameter of the first sub-graphic code.

[0261] As another embodiment, in the aforementioned embodiment, according to the size of the first sub-graphic code and the distribution direction of the code elements, identifying the first information in the first stripe graphic in the first graphic area and the area other than the three positioning graphics in the second graphic area includes:

[0262] Determining a code element size corresponding to the first sub-graphic code according to the size of the first sub-graphic code;

[0263] According to the code element size of the first sub-graphic code and the code element distribution direction, the code elements of the first sub-graphic code are read from the first stripe pattern in the first graphic area and the second graphic area except the three positioning patterns;

[0264] The code elements of the first sub-graphic code are decoded to obtain first information.

[0265] As another embodiment, the first sub-graphic code includes a bar-shaped two-dimensional code, and the second sub-graphic code includes a one-dimensional code, a bar-shaped two-dimensional code, or a common two-dimensional code. The first graphic area and the second graphic area of ​​the first sub-graphic code are composed of a first bar-shaped graphic and a second bar-shaped graphic arranged alternately to form a bar-shaped two-dimensional code.

[0266] The second sub-graphic code is a one-dimensional code and has a different graphic code type from the first sub-graphic code.

[0267] As yet another embodiment, it further includes:

[0268] A third sub-graphic code located in an edge padding area of ​​the graphic code is identified; wherein the third sub-graphic code is used to perform code element padding on the edge of the graphic code.

[0269] Filling the edges of the graphic code is helpful to distinguish different graphic codes, so as to achieve rapid recognition of the graphic code.

[0270] It should be noted that Figure 7 to Figure 9 The method for identifying the graphic code involved in the embodiments can identify Figure 1 to Figure 4 The graphic codes provided in the above-mentioned embodiments are not described in detail here.

[0271] The user of the embodiment of the present application can use the user terminal to scan the graphic code provided by the embodiment of the present application, and use the graphic code recognition method provided by the embodiment of the present application to recognize the first information and / or the second information in the graphic code.

[0272] In some embodiments provided in this application, the user terminal may include electronic devices such as mobile phones, tablet computers, and wearable devices. Figure 3 Taking the graphic code shown as an example, the technical solution of the embodiment of the present application is introduced in detail.

[0273] In some embodiments of the present application, in offline supermarket shopping scenarios, the goods purchased by users can be configured Figure 3The graphic code shown in the figure is used to identify the product. The product name, price and other information can be obtained through the product graphic code. Usually, these graphic codes for identifying products can be printed or pasted on the product packaging bags. Merchants can use industrial user terminals such as handheld terminals and scanning terminals to scan the graphic code on the product to identify the first sub-graphic code or the second sub-graphic code of the graphic code to obtain the product name and price and other information to complete the settlement of the product. Fig.10 As shown, the merchant can use the handheld terminal 1001 to scan the graphic code 1002 of Figure 3 to identify the one-dimensional code in the graphic code, that is, the second sub-graphic code, to obtain the second information, and then obtain information such as the product name and price to complete the price settlement of the product. After the product price settlement is completed, a user payment graphic code can be generated based on the total price of the product and the payment account information. The user can complete the payment of the product by scanning this graphic code. Fig.11 As shown, the customer can use a device such as a mobile phone 1101 to scan the graphic code 1102 to obtain a payment link, thereby completing the payment.

[0274] like Fig.12 As shown, it is a structural schematic diagram of an embodiment of a graphic code provided by an embodiment of the present application. The graphic code may include: a first sub-graphic code corresponding to a graphic area 1201 of a predetermined shape.

[0275] The graphic area is composed of a first strip graphic and a second strip graphic that are arranged alternately; the first strip graphic is used to carry information of the first sub-graphic code.

[0276] As an embodiment, the predetermined shape of the graphic area of ​​the first sub-graphic code includes an ellipse.

[0277] In one possible design, the elliptical graphic area may refer to a circular graphic area whose longest diameter is equal to the shortest diameter. In this case, the graphic code is composed of a first sub-graphic code of the circle, and the graphic area of ​​the first sub-graphic code is composed of a first strip graphic and a second strip graphic arranged alternately; the first strip graphic is used to carry the information of the first sub-graphic code.

[0278] In another possible design, the graphic code may include other sub-graphic codes. Fig.12 As shown, the graphic area 1201 of the first sub-graphic code in the shape of an ellipse can be divided into a first graphic area 1203 and a second graphic area 1204 based on its longest diameter 1202. The graphic code can also include: a second sub-graphic code.

[0279] Among them, Fig.13In the figure, the first graphic area 1203 and the second graphic area 1204 of the first sub-graphic code are respectively arranged on both sides of the second sub-graphic code 1301, and the shape of the graphic code 1300 corresponding to the first sub-graphic code and the second sub-graphic code includes a circle.

[0280] The graphic code provided in this embodiment includes a first sub-graphic code and a second sub-graphic code, wherein the first sub-graphic code includes a first graphic area and a second graphic area; the first graphic area and the second graphic area are respectively arranged on both sides of the second sub-graphic code; the first graphic area and the second graphic area are respectively composed of a first stripe graphic and a second stripe graphic arranged alternately; wherein the first stripe graphic is used to carry information. The specific structure, generation method and recognition method of the graphic code have been described in detail in the above embodiments, and can be specifically referred to Figures 1 to 10 The detailed description of the specific structure, generation method and recognition method of the graphic code is not repeated here.

[0281] As yet another embodiment, the predetermined shape of the graphic area of ​​the first sub-graphic code includes a semicircle.

[0282] like Fig.14 As shown, in the graphic code 1400 , in addition to the semicircular first sub-graphic code 1401 , a fourth sub-graphic code 1402 may also be included. The fourth sub-graphic code 1402 is adjacent to the semicircular bottom edge of the first sub-graphic code 1401 .

[0283] The fourth sub-graphic code may include: Fig.14 The fourth sub-graphic code 1402 of the rectangle shown in FIG. 1 may also include Fig.15 The semicircular fourth sub-graphic code 1403 shown in FIG. The rectangular fourth sub-graphic code may include a one-dimensional code and a common two-dimensional code or a bar-shaped two-dimensional code in the shape of a rectangle. The semicircular second sub-graphic code may include a bar-shaped two-dimensional code in the shape of a rectangle.

[0284] The generation method of the first sub-graphic code of the semicircle can refer to Figures 1 to 10 The generation method of the first sub-graphic code in the illustrated embodiment is the same in the generation principle, the difference is that the code elements are filled into graphic areas of different shapes, and its structure, generation method and identification method are not repeated here.

[0285] In order to more quickly and accurately distinguish the first sub-graphic area from the third sub-graphic area, the fourth sub-graphic code may include a first valid area and a first invalid area between the first valid area and the graphic area of ​​the first sub-graphic code, so as to isolate the graphic area of ​​the first sub-graphic code from the second sub-graphic code. The first invalid area is adjacent to the semicircular bottom edge of the first sub-graphic code, and the first invalid area is also adjacent to the first valid area.

[0286] As an embodiment, the first sub-graphic code may include a barcode QR code; the second sub-graphic code may include: a one-dimensional code, a barcode QR code or a common QR code; the fourth sub-graphic code may include: a one-dimensional code, a barcode QR code or a common QR code.

[0287] like Fig.16 FIG. 1 is a flowchart of an embodiment of a method for generating a graphic code provided in an embodiment of the present application. The method may include:

[0288] 1601: Determine the first information.

[0289] 1602: Encode the first information so that the encoded first information is set in a first strip graphic of a graphic area of ​​a predetermined shape, and obtain a first sub-graphic code.

[0290] The first sub-graphic code further includes a second stripe graphic located in the graphic area and arranged alternately with the first stripe graphic.

[0291] 1603: Determine the graphic code corresponding to the first sub-graphic code.

[0292] In the embodiment of the present application, after the first information is encoded, it can be set in the first bar pattern of the predetermined shape of the graphic area, and the corresponding first sub-graphic code can be obtained. The first sub-graphic code can also include a second bar pattern arranged alternately with the first bar pattern. The first bar pattern and the second bar pattern are arranged alternately to form the first sub-graphic code. The first sub-graphic code of the graphic code corresponding to the predetermined shape can be set according to the needs, so as to realize the generation of a graphic code of a special shape and improve the generation efficiency of the graphic code.

[0293] As an embodiment, the predetermined shape of the graphic area corresponding to the first sub-graphic code includes an ellipse.

[0294] In a possible design, after encoding the first information so that the encoded first information is set in a first stripe pattern of a predetermined shape of the graphic area and obtaining the first sub-graphic code, the method may further include:

[0295] Based on the longest diameter of the elliptical graphic area, the graphic area is divided into a first graphic area and a second graphic area.

[0296] Determine the second information and encode the second information into a second sub-pattern code.

[0297] The first graphic area and the second graphic area of ​​the first sub-graphic code are respectively arranged on both sides of the second sub-graphic code to obtain a circular graphic code corresponding to the first sub-graphic code and the second sub-graphic code.

[0298] The second sub-graphic code is obtained by encoding the second information. The first graphic area and the second graphic area of ​​the first sub-graphic code are respectively arranged on both sides of the second sub-graphic code to obtain a graphic code containing both the first sub-graphic code and the second sub-graphic code. The position and area setting of the first sub-graphic code and the second sub-graphic code of the graphic code can improve the generation efficiency of the graphic code. Figures 1 to 10 The structure, generation method and recognition method of the graphic code shown are the same and will not be repeated here.

[0299] In yet another possible design, the elliptical graphic region includes a circular graphic region whose shortest diameter is equal to its longest diameter;

[0300] The step of determining the graphic code corresponding to the first sub-graphic code may include:

[0301] A graphic code is formed by a first sub-graphic code that determines that the graphic area is a circle.

[0302] The circular bar-shaped graphic code of the embodiment of the present application has two bar-shaped graphics arranged alternately, and the first bar-shaped graphics carries information to improve the generation efficiency of the bar-shaped graphic code. It should be noted that the generation method of the first sub-graphic code involved in the embodiment of the present application is different from that of the first sub-graphic code. Figure 1 The generation method of the first sub-graphic code is the same as shown, except that the code element of the first information is filled into a graphic area of ​​a different shape. For the specific generation process of the graphic code, please refer to Figure 5-6 The method for generating the first sub-graphic code in will not be repeated here.

[0303] As another embodiment, the predetermined shape of the graphic area corresponding to the first sub-graphic code includes a semicircle; after encoding the first information so that the encoded first information is set in the first strip graphic of the graphic area of ​​the predetermined shape, and obtaining the first sub-graphic code, the method further includes:

[0304] determining third party information;

[0305] encoding the third information into a fourth sub-graphic code;

[0306] The fourth sub-graphic code is arranged adjacent to one side of the semicircular bottom edge of the first sub-graphic code to obtain a graphic code corresponding to the first sub-graphic code and the fourth sub-graphic code.

[0307] In some embodiments, encoding the third information into a fourth sub-graphic code may include:

[0308] encoding the third information and setting it in the first valid area;

[0309] Determine a first invalid area surrounding the first valid area to obtain a fourth sub-graphic code consisting of the first valid area and the first invalid area;

[0310] The fourth sub-graphic code is arranged adjacent to one side of the semicircular bottom edge of the first sub-graphic code to obtain a graphic code corresponding to the first sub-graphic code and the fourth sub-graphic code, which may include:

[0311] The first invalid area of ​​the fourth sub-graphic code is set adjacent to a side corresponding to the semicircular bottom edge of the first sub-graphic code to obtain a graphic code corresponding to the first sub-graphic code and the fourth sub-graphic code.

[0312] As an embodiment, the first sub-graphic code may include a barcode QR code; the second sub-graphic code may include: a one-dimensional code, a barcode QR code or a common QR code; the fourth sub-graphic code may include: a one-dimensional code, a barcode QR code or a common QR code.

[0313] The bar-shaped two-dimensional code may refer to a graphic code obtained by filling the code elements obtained by encoding into the first bar graphic of a graphic area formed by alternating arrangement of the first bar graphic and the second bar graphic in the encoding method of the two-dimensional code.

[0314] like Fig.17 FIG. 1 is a flowchart of another embodiment of a method for recognizing a graphic code provided in an embodiment of the present application. The method may include:

[0315] 1701: Determine the graphic code.

[0316] The graphic code includes: a first sub-graphic code corresponding to a graphic area of ​​a predetermined shape, the graphic area is composed of a first strip graphic and a second strip graphic arranged alternately; the first strip graphic is used to carry information of the first sub-graphic code.

[0317] 1702: Identify first information carried by a first stripe graphic in a graphic area corresponding to a first sub-graphic code.

[0318] In the embodiment of the present application, the first sub-graphic code corresponding to the graphic area of ​​the predetermined shape can be determined, the graphic area is composed of the first bar graphic and the second bar graphic arranged alternately, and the first bar graphic carries the first information. The first information carried by the first bar graphic in the graphic area corresponding to the first sub-graphic code can be identified. By identifying the code element of the first bar graphic in the graphic area of ​​the first sub-graphic code, a bar graphic code is recognized, and an accurate recognition result is obtained.

[0319] As an embodiment, the predetermined shape of the graphic area corresponding to the first sub-graphic code includes an ellipse.

[0320] In a possible design, the graphic area of ​​the first sub-graphic code is divided into a first graphic area and a second graphic area based on the longest diameter of the elliptical graphic area; the graphic code also includes a second sub-graphic code; the first graphic area and the second graphic area are respectively arranged on both sides of the second sub-graphic code;

[0321] The method further comprises:

[0322] Identifying second information carried in the second sub-graphic code;

[0323] The first information carried by the first stripe pattern in the pattern area corresponding to the first sub-pattern code for identifying the first sub-pattern code includes:

[0324] The first information carried by the first bar graph in the first graph area and the second graph area corresponding to the first sub-graph code is identified.

[0325] The circular bar-shaped graphic code of the embodiment of the present application has two bar-shaped graphics arranged alternately, and the first bar-shaped graphics carries information to improve the generation efficiency of the bar-shaped graphic code. It should be noted that the recognition method of the graphic code involved in the embodiment of the present application is different from that of the Figure 1 The identification method of the graphic code shown is the same, the difference is that the first sub-graphic code of the graphic area of ​​different shapes will be identified. The specific identification method can be referred to Figure 7 to Figure 9 The method for identifying the graphic code will not be described in detail here.

[0326] In yet another possible design, the elliptical graphic region includes a circular graphic region whose shortest diameter is equal to its longest diameter;

[0327] The first information carried by the first stripe pattern in the pattern area corresponding to the first sub-pattern code for identifying the first sub-pattern code includes:

[0328] Identify first information carried by a first stripe graphic in a circular graphic area corresponding to a first sub-graphic code.

[0329] As another embodiment, the predetermined shape of the graphic area corresponding to the first sub-graphic code includes a semicircle; the graphic code further includes: a fourth sub-graphic code adjacent to the bottom edge of the semicircle of the first sub-graphic code;

[0330] The method further comprises:

[0331] Identifying third information carried by a fourth sub-pattern code adjacent to a semicircular bottom edge of the first sub-pattern code;

[0332] The first information carried by the first stripe pattern in the pattern area corresponding to the first sub-pattern code for identifying the first sub-pattern code includes:

[0333] Determining a semicircular graphic area adjacent to one side of the fourth sub-graphic code;

[0334] Identify first information carried by a first bar graphic in a semicircular graphic area.

[0335] In some embodiments, the identifying the third information carried by the fourth sub-graphic code adjacent to the semicircular bottom edge of the first sub-graphic code includes:

[0336] Detecting a first invalid area of ​​the graphic code;

[0337] determining a first valid region adjacent to one side of the first invalid region;

[0338] third information for identifying a fourth sub-pattern code in the first valid area;

[0339] The step of determining a semicircular graphic area adjacent to one side of the fourth sub-graphic code comprises:

[0340] A semicircular pattern area adjacent to one side of the first invalid area of ​​the fourth sub-pattern code is determined.

[0341] As an embodiment, the first sub-graphic code may include a barcode QR code; the second sub-graphic code may include: a one-dimensional code, a barcode QR code or a common QR code; the fourth sub-graphic code may include: a one-dimensional code, a barcode QR code or a common QR code.

[0342] The bar-shaped two-dimensional code may refer to a graphic code obtained by filling the code elements obtained by encoding into the first bar graphic of a graphic area formed by alternating arrangement of the first bar graphic and the second bar graphic in the encoding method of the two-dimensional code.

[0343] The recognition method of the graphic code involved in the embodiment of the present application and the reference Figure 7 to Figure 9 The identification method provided in the above-mentioned embodiment is the same as that provided in the above-mentioned embodiment, and its principle and each identification step are the same as those in the above-mentioned embodiment, and will not be described in detail here.

[0344] like Fig.18 As shown, a graphic code generation device provided in an embodiment of the present application includes: a storage component 1801 and a processing component 1802; the storage component 1801 is used to store one or more computer instructions, and the one or more computer instructions are used to be called by the processing component 1802.

[0345] The processing component 1802 can be used to:

[0346] Determine the first information and the second information; encode the second information into a second sub-graphic code; determine the first graphic area and the second graphic area respectively disposed on both sides of the second sub-graphic code; encode the first information so that the encoded first information is set in the first graphic area and the first bar graphic in the second graphic area to obtain the first sub-graphic code; wherein the first sub-graphic code also includes a second bar graphic located in the first graphic area and the second graphic area and arranged alternately with the first bar graphic; determine the graphic code corresponding to the first sub-graphic code and the second sub-graphic code.

[0347] As an embodiment, the processing component may encode the second information into the second sub-graphic code as follows:

[0348] encoding the second information and setting it in the information valid area;

[0349] Determine an information invalid area surrounding the information valid area to obtain a second sub-graphic code consisting of the information valid area and the information invalid area;

[0350] The processing component determines that the first graphic area and the second graphic area respectively disposed on both sides of the second sub-graphic code may be specifically:

[0351] A first graphic region and a second graphic region respectively disposed on both sides of the information invalid region and respectively adjacent to the information invalid region are determined.

[0352] In some embodiments, the shape of the information valid area is a rectangle; the processing component may also be used for:

[0353] The center point of the graphic code is taken as the intersection point of the diagonal lines of the effective information area;

[0354] The processing component determines the information invalid area surrounding the information valid area to obtain the second sub-graphic code consisting of the information valid area and the information invalid area, which can be:

[0355] According to the center point of the graphic code and in combination with the information valid area, an information invalid area surrounding the information valid area is determined to obtain a second sub-graphic code consisting of the information valid area and the information invalid area;

[0356] The processing component determines that the first graphic area and the second graphic area respectively disposed on both sides of the information invalid area and respectively adjacent to the information invalid area may specifically be:

[0357] According to the center point of the graphic code, a first graphic area and a second graphic area are determined to be respectively located on both sides of the information invalid area and are respectively adjacent to the information invalid area.

[0358] In some embodiments, the shape of the graphical code includes a circle;

[0359] The processing component determines, according to the center point of the graphic code, that the first graphic area and the second graphic area are respectively located on both sides of the information invalid area and are respectively adjacent to the information invalid area. Specifically, the first graphic area and the second graphic area can be:

[0360] Determine the radius of the graphic code;

[0361] According to the center point, shape and radius of the graphic code, a first common edge between the first graphic area and the information invalid area and a second common edge between the second graphic area and the information invalid area are determined.

[0362] The first common side and the second common side are parallel chords of equal length in the graphic code;

[0363] Determine a closed area formed by connecting the first common edge and the arc corresponding to the graphic code where it is located as the first graphic area;

[0364] Determine that a closed area formed by connecting the second common edge and the arc corresponding to the graphic code where the second common edge is located is the second graphic area.

[0365] In some embodiments, the first sub-graphic code includes three identical positioning patterns; wherein the three positioning patterns are used to identify the size of the first sub-graphic code and the distribution direction of the code elements;

[0366] The processing component encodes the first information so that the encoded first information is set in the first graphic area and the first strip graphic in the second graphic area. The first sub-graphic code can be obtained specifically as follows:

[0367] The three positioning patterns of the first sub-graphic code are arranged in the first graphic area and the second graphic area according to the arrangement rule that the positioning triangle formed when the center points of the three positioning patterns are connected is an isosceles right triangle and the midpoint of the base thereof coincides with the center point of the graphic code;

[0368] According to the size of the first sub-graphic code and the distribution direction of the code elements, the encoded first information is set in the first stripe graphic in the first graphic area and the second graphic area except the three positioning graphics to obtain the first sub-graphic code.

[0369] In some embodiments, the processing component sets the three positioning patterns of the first sub-graphic code in the first graphic area and the second graphic area according to the setting rule that the positioning triangle formed when the center points of the three positioning patterns are connected to each other is an isosceles right triangle and the midpoint of the base coincides with the center of the graphic code. Specifically, it can be:

[0370] According to the center point, shape and radius of the graphic code, the sizes of the three positioning graphics and the positions of their respective center points in the graphic code are determined based on the setting rule that the positioning triangle formed when the center points of the three positioning graphics are connected is an isosceles right triangle and the midpoint of its base coincides with the center of the graphic code;

[0371] According to the sizes of the three positioning patterns and the positions of their respective center points in the graphic code, the three positioning patterns are combined to generate a comprehensive positioning pattern under the setting conditions that each of the three positioning points has a vertex intersecting with the edge of the graphic code and each has a diagonal line on the same straight line as the center of the graphic code;

[0372] The comprehensive positioning graphic is set in the first graphic area and the second graphic area.

[0373] As another embodiment, the processing component may specifically set the comprehensive positioning graphic in the first graphic area and the second graphic area:

[0374] Arrange any two positioning patterns in the comprehensive positioning pattern in the first pattern area, and arrange another positioning pattern in the second pattern area;

[0375] The processing component may also be used to:

[0376] The code element distribution direction of the first sub-graphic code identified by the three positioning graphics is determined to be a first distribution direction from the first graphic area to the second graphic area.

[0377] Alternatively, any two positioning patterns in the comprehensive positioning pattern are arranged in the second pattern area, and another positioning pattern is arranged in the second pattern area;

[0378] The processing component may also be used to:

[0379] The code element distribution direction of the first sub-graphic code identified by the three positioning graphics is determined to be a second distribution direction from the second graphic area to the first graphic area.

[0380] In some embodiments, the processing component may also be used to:

[0381] Determining meta information consisting of at least one parameter of the first sub-graphic code;

[0382] Determine a meta-information region located between two positioning graphics in the same graphic region and adjacent to the information invalid region;

[0383] The meta information is encoded and set in the meta information area to obtain a first sub-graphic code containing the meta information.

[0384] As another embodiment, the processing component sets the encoded first information in the first graphic area and the first strip graphic in the area other than the three positioning graphics in the second graphic area according to the size of the first sub-graphic code and the distribution direction of the code elements. The first sub-graphic code can be obtained specifically as follows:

[0385] Determining a code element size corresponding to the first sub-graphic code according to the size of the first sub-graphic code;

[0386] With the code element size corresponding to the first sub-graphic code and according to the code element distribution direction of the first sub-graphic code, the code elements encoded with the first information are set in the first graphic area and the first strip graphic in the second graphic area except the three positioning graphics to obtain the first sub-graphic code.

[0387] As an embodiment, the first sub-graphic code includes a barcode two-dimensional code, and the second sub-graphic code includes a one-dimensional code, a barcode two-dimensional code or a common two-dimensional code.

[0388] As yet another embodiment, the processing component may also be used for:

[0389] Generate a fourth sub-graphic code corresponding to the edge padding area of ​​the graphic code according to the graphic shape of the graphic code;

[0390] The fourth sub-graphic code is set at the edge of the graphic code to perform code element padding on the edge of the graphic code.

[0391] In addition, the embodiment of the present application also provides a computer-readable storage medium, which is used to store a computer program, which enables the computer to implement the following when executed: Figure 5 , Figure 6 The method for generating the graphic code in any of the aforementioned embodiments.

[0392] The graphic code generation device in the embodiment of the present invention can execute the graphic code generation method in the above embodiment, and its implementation principle and technical effect are not repeated here. The specific manner in which the processing component in the computing device in the above embodiment performs the operation has been described in detail in the embodiment of the method, and will not be described in detail here.

[0393] like Fig.19 As shown, a graphic code recognition device provided in an embodiment of the present application may include: a storage component 1901 and a processing component 1902; the storage component is used to store one or more computer instructions, and the one or more computer instructions are used to be called by the processing component 1902.

[0394] The processing component 1902 can be used to:

[0395] Determine a graphic code; wherein the graphic code includes: a plurality of sub-graphic codes; a first sub-graphic code among the plurality of sub-graphic codes includes a first graphic area and a second graphic area; the first graphic area and the second graphic area are respectively arranged on both sides of the second sub-graphic code; the first graphic area and the second graphic area are respectively composed of a first strip graphic and a second strip graphic arranged alternately; wherein the first strip graphic is used to carry information; identify the second information carried in the second sub-graphic code; identify the first information carried by the first strip graphic in the first graphic area and the second graphic area corresponding to the first sub-graphic code.

[0396] As an embodiment, the processing component may also be used for:

[0397] Detecting the recognition environment of the recognition graphic code;

[0398] Specifically, the processing component may identify the second information carried in the second sub-graphic code as follows:

[0399] If the recognition environment is the first recognition environment, recognizing the second information carried in the second sub-graphic code;

[0400] The first information carried by the first bar graphic in the first graphic area and the second graphic area corresponding to the first sub-graphic code identified by the processing component may specifically be:

[0401] If the identification environment is the second identification environment, the first information carried by the first bar pattern in the first pattern area and the second pattern area corresponding to the first sub-pattern code is identified.

[0402] As a possible implementation manner, the processing component may also be used for:

[0403] Identify the second information carried in the second sub-graphic code.

[0404] As yet another embodiment, the processing component may also be used for:

[0405] Outputting viewing prompt information for the identified first information and second information to prompt the user to select any information from the first information and the second information for viewing;

[0406] Based on any information selected by the user, the corresponding first information and / or second information is displayed to the user.

[0407] In some embodiments, the processing component may also be used to:

[0408] If the first information is the same as the second information, the first information or the second information is directly output to the user.

[0409] In some embodiments, the processing component may also be used to:

[0410] Determine the center point of the graphic code;

[0411] According to the center point of the graphic code, determining the information valid area corresponding to the second sub-graphic code in the graphic code and the information invalid area surrounding the information valid area;

[0412] Specifically, the processing component may identify the second information carried in the second sub-graphic code as follows:

[0413] Identify the information in the effective information area to obtain the second information corresponding to the second sub-graphic code;

[0414] The first information carried by the first bar graphic in the first graphic area and the second graphic area corresponding to the first sub-graphic code identified by the processing component may specifically be:

[0415] According to the information invalid area in the graphic code, determining a first graphic area and a second graphic area located on both sides of the information invalid area and adjacent to the information invalid area;

[0416] The information corresponding to the first strip graphics in the first graphic area and the second graphic area is identified to obtain the first information corresponding to the first sub-graphic code.

[0417] In some embodiments, the information valid area is rectangular;

[0418] The processing component determines the information valid area corresponding to the second sub-graphic code in the graphic code and the information invalid area surrounding the information valid area according to the center point of the graphic code, which can be specifically:

[0419] Get the valid information area where the intersection of the diagonal lines and the center point in the graphic code coincide with each other;

[0420] An information invalid area surrounding an information valid area in the graphic code is determined.

[0421] As a possible implementation manner, the shape of the graphic code is circular, and the graphic code includes a circular graphic code;

[0422] The processing component determines, based on the information invalid area in the graphic code, the first graphic area and the second graphic area located on both sides of and adjacent to the information invalid area, specifically:

[0423] According to the center point, shape and radius of the graphic code, two parallel chords of equal length corresponding to the information invalid area in the graphic code are determined to obtain a first common side between the first graphic area and the information invalid area and a second common side between the second graphic area and the information invalid area;

[0424] Determine a closed area formed by connecting the first common edge and the arc corresponding to the graphic code as the first graphic area;

[0425] Determine that a closed area formed by connecting the second common edge and the arc corresponding to the graphic code is the second graphic area.

[0426] In some embodiments, the processing component identifies information corresponding to the first bar graphics in the first graphic area and the second graphic area to obtain the first information corresponding to the first sub-graphic code, which may specifically be:

[0427] Identify the positioning graphics corresponding to the three positioning points in the first graphic area and the second graphic area that form an isosceles right triangle when connected to each other, and the midpoint of the base of the triangle coincides with the center point of the graphic code;

[0428] Determine the size of the first sub-pattern code and the distribution direction of the code elements according to the three positioning patterns;

[0429] According to the size of the first sub-pattern code and the distribution direction of the code elements, the first information in the first stripe pattern in the first pattern area and the second pattern area except the three positioning patterns is identified.

[0430] As a possible implementation, the processing component identifies that the first graphic area and the second graphic area form an isosceles right triangle when connected to each other, and the three positioning points whose midpoints of the bases of the triangle coincide with the center point of the graphic code respectively correspond to the positioning graphics, which can specifically be:

[0431] Determine three positioning points in which an isosceles triangle is formed when the first graphic area and the second graphic area are connected to each other, and the midpoint of the base of the isosceles triangle coincides with the center point of the graphic code;

[0432] Based on the setting conditions that each of the three positioning points has a vertex intersecting with the edge of the graphic code and each of the three positioning points has a diagonal line on the same straight line as the center of the graphic code, combined with the distance between each of the three positioning points and the center point of the graphic code, the size of the positioning graphics corresponding to each of the three positioning points and the position of each of the three positioning points in the graphic code are determined;

[0433] The positioning patterns corresponding to the three positioning points are determined according to the center point, shape and radius of the graphic code, combined with the sizes of the positioning patterns of the three positioning points and the positions of the three positioning points in the graphic code.

[0434] As a possible implementation manner, the processing component may determine the size of the first sub-pattern code and the distribution direction of the code elements according to the three positioning patterns in the following manner:

[0435] Determine the size of the first sub-graphic code according to the sizes of the three positioning graphics and the shape and radius of the graphic code;

[0436] Determine two locator patterns located in the same graphic area among the three locator patterns;

[0437] If the two positioning patterns are located in the first pattern area, determining that the code element distribution direction of the first sub-pattern code is the first distribution direction from the first pattern area to the second pattern area;

[0438] If the two positioning patterns are located in the second pattern area, the code element distribution direction of the first sub-pattern code is determined to be the second distribution direction from the second pattern area to the first pattern area.

[0439] In some embodiments, the processing component may also be used to:

[0440] Acquire a meta-information area between two positioning graphics in the same graphic area and adjacent to the information invalid area in the first sub-graphic code;

[0441] Meta information in the meta information area is identified; wherein the meta information includes at least one parameter of the first sub-graphic code.

[0442] As another embodiment, the processing component identifies the first information in the first stripe pattern in the first graphic area and the area other than the three positioning patterns in the second graphic area according to the size of the first sub-graphic code and the distribution direction of the code elements, which may specifically be:

[0443] Determining a code element size corresponding to the first sub-graphic code according to the size of the first sub-graphic code;

[0444] According to the code element size of the first sub-graphic code and the code element distribution direction, the code elements of the first sub-graphic code are read from the first stripe pattern in the first graphic area and the second graphic area except the three positioning patterns;

[0445] The code elements of the first sub-graphic code are decoded to obtain first information.

[0446] In some embodiments, the first sub-graphic code includes a barcode two-dimensional code, and the second sub-graphic code includes a one-dimensional code, a barcode two-dimensional code, or a common two-dimensional code.

[0447] In some embodiments, the processing component may also be used to:

[0448] The third sub-graphic code located in the edge padding area of ​​the graphic code is identified, wherein the third sub-graphic code is used to perform code element padding on the edge of the graphic code.

[0449] In addition, the embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program enables a computer to implement the following when executed: Figure 7 to Figure 9 The decoding method of the graphic code in any of the aforementioned embodiments.

[0450] The graphic code recognition device described in the embodiment of the present invention can execute the graphic code recognition method described in the above embodiment, and its implementation principle and technical effect are not repeated here. The specific manner in which the processing component of the computing device in the above embodiment performs the operation has been described in detail in the embodiment of the method, and will not be described in detail here.

[0451] like Fig. 20 As shown, it is a structural schematic diagram of an embodiment of a graphic code generation device provided in an embodiment of the present application, and the device may include: a storage component 2001 and a processing component 2002; the storage component 2001 is used to store one or more computer instructions, and the one or more computer instructions are used to be called by the processing component 2002.

[0452] The processing component 2002 can be used to:

[0453] Determine the first information; encode the first information so that the encoded first information is set in a first stripe graphic of a predetermined shape in a graphic area to obtain a first sub-graphic code; wherein the first sub-graphic code also includes a second stripe graphic located in the graphic area and arranged alternately with the first stripe graphic; determine the graphic code corresponding to the first sub-graphic code.

[0454] As an embodiment, the predetermined shape of the graphic area corresponding to the first sub-graphic code includes an ellipse.

[0455] In a possible design, the processing component may also be used to:

[0456] Based on the longest diameter of the elliptical graphic area, the graphic area is divided into a first graphic area and a second graphic area; second information is determined; the second information is encoded into a second sub-graphic code; the first graphic area and the second graphic area of ​​the first sub-graphic code are respectively arranged on both sides of the second sub-graphic code to obtain a circular graphic code corresponding to the first sub-graphic code and the second sub-graphic code.

[0457] In yet another possible design, the elliptical graphic region includes a circular graphic region whose shortest diameter is equal to its longest diameter;

[0458] The processing component determining the graphic code corresponding to the first sub-graphic code may specifically include:

[0459] A graphic code is formed by a first sub-graphic code that determines that the graphic area is a circle.

[0460] As yet another embodiment, the predetermined shape of the graphic area corresponding to the first sub-graphic code includes a semicircle; and the processing component may also be used for:

[0461] Determine the third information; encode the third information into a fourth sub-graphic code; set the fourth sub-graphic code adjacent to one side of the semicircular bottom edge of the first sub-graphic code to obtain a graphic code corresponding to the first sub-graphic code and the fourth sub-graphic code.

[0462] In some embodiments, the processing component encoding the third information into the fourth sub-graphic code may specifically include:

[0463] Encoding the third information and setting it in the first valid area; determining a first invalid area surrounding the first valid area to obtain a fourth sub-graphic code consisting of the first valid area and the first invalid area;

[0464] The processing component sets the fourth sub-graphic code adjacent to one side of the semicircular bottom edge of the first sub-graphic code to obtain the graphic code corresponding to the first sub-graphic code and the fourth sub-graphic code, which may specifically include:

[0465] The first invalid area of ​​the fourth sub-graphic code is set adjacent to a side corresponding to the semicircular bottom edge of the first sub-graphic code to obtain a graphic code corresponding to the first sub-graphic code and the fourth sub-graphic code.

[0466] like Fig.21 As shown, it is a structural schematic diagram of an embodiment of a graphic code recognition device provided in an embodiment of the present application, and the device may include: a storage component 2101 and a processing component 2102; the storage component 2101 is used to store one or more computer instructions, and the one or more computer instructions are used to be called by the processing component 2102.

[0467] The processing component 2102 can be used to:

[0468] Determine a graphic code; wherein the graphic code includes: a first sub-graphic code corresponding to a graphic area of ​​a predetermined shape, the graphic area being composed of a first strip graphic and a second strip graphic arranged alternately; the first strip graphic is used to carry information of the first sub-graphic code; and identify the first information carried by the first strip graphic in the graphic area corresponding to the first sub-graphic code.

[0469] As an embodiment, the predetermined shape of the graphic area corresponding to the first sub-graphic code includes an ellipse.

[0470] In a possible design, the graphic area of ​​the first sub-graphic code is divided into a first graphic area and a second graphic area based on the longest diameter of the elliptical graphic area; the graphic code also includes a second sub-graphic code; the first graphic area and the second graphic area are respectively arranged on both sides of the second sub-graphic code; the processing component can also be used for:

[0471] Identifying second information carried in the second sub-graphic code;

[0472] Specifically, the first information carried by the first stripe graphic in the graphic area corresponding to the first sub-graphic code identified by the processing component may include:

[0473] The first information carried by the first bar graph in the first graph area and the second graph area corresponding to the first sub-graph code is identified.

[0474] In yet another possible design, the elliptical graphic region includes a circular graphic region whose shortest diameter is equal to its longest diameter;

[0475] Specifically, the first information carried by the first stripe graphic in the graphic area corresponding to the first sub-graphic code identified by the processing component may include:

[0476] Identify first information carried by a first stripe graphic in a circular graphic area corresponding to a first sub-graphic code.

[0477] As another embodiment, the predetermined shape of the graphic area corresponding to the first sub-graphic code includes a semicircle; the graphic code further includes: a fourth sub-graphic code adjacent to the semicircular bottom edge of the first sub-graphic code; the processing component can also be used for:

[0478] Identifying third information carried by a fourth sub-pattern code adjacent to a semicircular bottom edge of the first sub-pattern code;

[0479] Specifically, the first information carried by the first stripe graphic in the graphic area corresponding to the first sub-graphic code identified by the processing component may include:

[0480] Determining a semicircular graphic area adjacent to one side of the fourth sub-graphic code;

[0481] Identify first information carried by a first bar graphic in a semicircular graphic area.

[0482] In some embodiments, the processing component identifying the third information carried by the fourth sub-graphic code adjacent to the semicircular bottom edge of the first sub-graphic code may specifically include:

[0483] Detecting a first invalid area of ​​the graphic code; determining a first valid area adjacent to one side of the first invalid area; and identifying third information of the fourth sub-graphic code in the first valid area.

[0484] The processing component determining the semicircular graphic area adjacent to one side of the fourth sub-graphic code may specifically include: determining the semicircular graphic area adjacent to one side of the first invalid area of ​​the fourth sub-graphic code.

[0485] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0486] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a computer product, and the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0487] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0488] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0489] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0490] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0491] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0492] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0493] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A graphic code, characterized in that: include: Multiple sub-graphic codes; The first sub-graphic code among the plurality of sub-graphic codes comprises a first graphic area and a second graphic area; the first graphic area and the second graphic area are respectively disposed on both sides of the second sub-graphic code; The first graphic area and the second graphic area are respectively composed of a first strip graphic and a second strip graphic arranged alternately; wherein the first strip graphic is used to carry information obtained by encoding the first information in accordance with a two-dimensional code encoding method; The second sub-graphic code includes an information valid area and an information invalid area surrounding the information valid area; wherein the first graphic area and the second graphic area are respectively located on both sides of the information invalid area and are respectively adjacent to the information invalid area; The shape of the graphic code is a circle or an ellipse; wherein the first common side of the first graphic area and the information invalid area, and the second common side of the second graphic area and the information invalid area are two parallel chords of equal length in the circle or ellipse corresponding to the graphic code; The first sub-graphic code includes three identical positioning graphics; wherein the three positioning graphics are used to identify the size and direction of the first sub-graphic code; The first sub-graphic code also includes: a meta-information area located between two positioning graphics in the same graphic area and adjacent to the information invalid area; wherein the meta-information area is used to carry meta-information consisting of at least one parameter of the first sub-graphic code.

2. The graphic code according to claim 1, characterized in that: The shape of the information effective area is a rectangle, and the intersection of the diagonals of the information effective area coincides with the center point of the graphic code.

3. The graphic code according to claim 1, characterized in that: When the center points of the three positioning patterns are connected to each other, a positioning triangle is formed. The positioning triangle is an isosceles right triangle and the midpoint of its base coincides with the center of the graphic code.

4. The graphic code according to claim 1, characterized in that: The three positioning patterns are rectangular; Each of the three positioning patterns has a vertex intersecting with the edge of the graphic code, and each of the three positioning patterns has a diagonal line that is on the same straight line as the center of the graphic code.

5. The graphic code according to claim 1, characterized in that: Any two positioning patterns among the three positioning patterns are located in the first graphic area or the second graphic area.

6. The graphic code according to claim 1, characterized in that: The first sub-graphic code includes a bar-shaped two-dimensional code, and the second sub-graphic code includes a one-dimensional code, a bar-shaped two-dimensional code or a common two-dimensional code.

7. The graphic code according to claim 1, characterized in that: The multiple sub-graphic codes also include: a third sub-graphic code corresponding to an edge padding area adapted to the graphic shape of the graphic code; wherein the third sub-graphic code is used to perform code element padding on the edge of the graphic code.

8. A method for generating a graphic code, characterized in that: include: determining the first information and the second information; encoding the second information into a second sub-graphic code; Determine a first graphic area and a second graphic area respectively disposed on both sides of the second sub-graphic code; The first information is encoded in a two-dimensional code encoding method, so that the encoded first information is set in the first graphic area and the first bar graphic in the second graphic area to obtain a first sub-graphic code; wherein the first sub-graphic code also includes a second bar graphic located in the first graphic area and the second graphic area and arranged alternately with the first bar graphic; Determine the graphic codes corresponding to the first sub-graphic code and the second sub-graphic code; The encoding of the second information into a second sub-graphic code comprises: encoding the second information and setting it in an information valid area; determining an information invalid area surrounding the information valid area to obtain a second sub-graphic code consisting of the information valid area and the information invalid area; the determining of the first graphic area and the second graphic area respectively disposed on both sides of the second sub-graphic code comprises: determining the first graphic area and the second graphic area respectively disposed on both sides of the information invalid area and respectively adjacent to the information invalid area; The shape of the graphic code is a circle or an ellipse; according to the center point of the graphic code, determining the first graphic area and the second graphic area respectively disposed on both sides of the information invalid area and respectively adjacent thereto comprises: determining the radius of the circle or the longest diameter of the ellipse; according to the center point, shape, radius or longest diameter of the graphic code, determining the first common side of the first graphic area and the information invalid area and the second common side of the second graphic area and the information invalid area; wherein the first common side and the second common side are parallel chords of equal length in the graphic code; determining the closed area formed by connecting the first common side and the arc corresponding to the graphic code where it is located as the first graphic area; determining the closed area formed by connecting the second common side and the arc corresponding to the graphic code where it is located as the second graphic area; The first sub-graphic code includes three identical positioning graphics; wherein the three positioning graphics are used to identify the size and direction of the first sub-graphic code; The method also includes: determining meta-information composed of at least one parameter of the first sub-graphic code; determining a meta-information area located between two positioning graphics in the same graphic area and adjacent to the information invalid area; encoding the meta-information and setting it in the meta-information area to obtain a first sub-graphic code containing the meta-information.

9. The method according to claim 8, characterized in that The shape of the information valid area is a rectangle; the method further includes: Taking the center point of the graphic code as the intersection point of the diagonals of the information valid area; The step of determining the invalid information area surrounding the valid information area to obtain a second sub-graphic code consisting of the valid information area and the invalid information area comprises: According to the center point of the graphic code, in combination with the information valid area, determining the information invalid area surrounding the information valid area, so as to obtain a second sub-graphic code consisting of the information valid area and the information invalid area; The determining of the first graphic area and the second graphic area respectively disposed on both sides of the information invalid area and respectively adjacent to the information invalid area comprises: According to the center point of the graphic code, a first graphic area and a second graphic area are determined to be respectively located on both sides of the information invalid area and are respectively adjacent to it.

10. The method according to claim 8, characterized in that The shape of the graphic code is circular, the first information is encoded so that the encoded first information is set in the first graphic area and the first strip graphic in the second graphic area, and obtaining the first sub-graphic code includes: The three positioning patterns of the first sub-graphic code are arranged in the first graphic area and the second graphic area according to the arrangement rule that the positioning triangle formed when the center points of the three positioning patterns are connected is an isosceles right triangle and the midpoint of the base thereof coincides with the center point of the graphic code; According to the size of the first sub-graphic code and the distribution direction of the code elements, the encoded first information is set in the first strip graphic in the first graphic area and the second graphic area except the three positioning graphics to obtain the first sub-graphic code.

11. The method according to claim 10, characterized in that The setting rule that the positioning triangle formed by connecting the center points of the three positioning patterns is an isosceles right triangle and the midpoint of its base coincides with the center of the graphic code, and the three positioning patterns of the first sub-graphic code are set in the first graphic area and the second graphic area includes: According to the center point, shape and radius of the graphic code, the sizes of the three positioning graphics and the positions of their respective center points in the graphic code are determined based on the setting rule that the positioning triangle formed when the center points of the three positioning graphics are connected to each other is an isosceles right triangle and the midpoint of its base coincides with the center of the graphic code; According to the sizes of the three positioning patterns and the positions of their respective center points in the graphic code, the three positioning patterns are combined to generate a comprehensive positioning pattern under the setting condition that each of the three positioning patterns has a vertex intersecting with the edge of the graphic code and each has a diagonal line on the same straight line as the center of the graphic code; The comprehensive positioning graphic is set in the first graphic area and the second graphic area.

12. The method according to claim 11, characterized in that The step of arranging the integrated positioning graphic in the first graphic area and the second graphic area comprises: Arrange any two positioning patterns in the comprehensive positioning pattern in the first graphic area, and arrange another positioning pattern in the second graphic area; The method further comprises: Determine that the code element distribution direction of the first sub-graphic code identified by the three positioning graphics is a first distribution direction from the first graphic area to the second graphic area; Alternatively, any two positioning patterns in the comprehensive positioning pattern are arranged in the second pattern area, and another positioning pattern is arranged in the first pattern area; The method further comprises: Determine that a distribution direction of code elements of the first sub-graphic code identified by the three positioning graphics is a second distribution direction from the second graphic area to the first graphic area.

13. The method according to claim 10, characterized in that The step of setting the encoded first information in the first graphic area and the first stripe graphic in the area other than the three positioning graphics in the second graphic area according to the size of the first sub-graphic code and the distribution direction of the code elements, and obtaining the first sub-graphic code comprises: Determining a code element size corresponding to the first sub-graphic code according to the size of the first sub-graphic code; With the code element size corresponding to the first sub-graphic code and in accordance with the code element distribution direction of the first sub-graphic code, the code elements encoded with the first information are set in the first strip graphic in the first graphic area and the second graphic area excluding the three positioning graphics to obtain the first sub-graphic code.

14. The method according to claim 8, characterized in that The first sub-graphic code includes a bar-shaped two-dimensional code, and the second sub-graphic code includes a one-dimensional code, a bar-shaped two-dimensional code or a common two-dimensional code.

15. The method according to claim 8, characterized in that After generating the graphic code including the first sub-graphic code and the second sub-graphic code, the method further includes: Generating a third sub-graphic code corresponding to an edge-padded area of ​​the graphic code according to the graphic shape of the graphic code; The third sub-graphic code is arranged at the edge of the graphic code to perform code element padding on the edge of the graphic code.

16. A method for recognizing a graphic code, characterized in that: include: Determine a graphic code; wherein the graphic code includes: a plurality of sub-graphic codes; a first sub-graphic code of the plurality of sub-graphic codes includes a first graphic area and a second graphic area; the first graphic area and the second graphic area are respectively disposed on both sides of the second sub-graphic code; the first graphic area and the second graphic area are respectively composed of a first stripe graphic and a second stripe graphic arranged alternately; wherein the first stripe graphic is used to carry information obtained by encoding the first information in accordance with a two-dimensional code encoding method; identifying second information carried in the second sub-graphic code; Identify first information carried by the first bar graphic in the first graphic area corresponding to the first sub-graphic code and the second graphic area; The method further includes: determining the center point of the graphic code; determining, based on the center point of the graphic code, an information valid area corresponding to a second sub-graphic code in the graphic code and an information invalid area surrounding the information valid area; the identifying the second information carried in the second sub-graphic code includes: identifying the information in the information valid area to obtain the second information corresponding to the second sub-graphic code; the identifying the first information carried by the first bar graphic in the first graphic area corresponding to the first sub-graphic code and the second graphic area includes: determining, based on the information invalid area in the graphic code, a first graphic area and a second graphic area located on both sides of and adjacent to the information invalid area; identifying the information corresponding to the first bar graphic in the first graphic area and the second graphic area to obtain the first information corresponding to the first sub-graphic code; The shape of the graphic code is a circle or an ellipse, and the determining of the first graphic area and the second graphic area located on both sides of and adjacent to the invalid information area according to the invalid information area in the graphic code comprises: determining two chords of equal length and parallel to each other corresponding to the invalid information area in the graphic code according to the center point and shape of the graphic code and the radius of the circle or the longest diameter of the ellipse, so as to obtain a first common side of the first graphic area and the invalid information area and a second common side of the second graphic area and the invalid information area; determining that a closed area formed by connecting the first common side and the arc corresponding to the graphic code is the first graphic area; and determining that a closed area formed by connecting the second common side and the arc corresponding to the graphic code is the second graphic area; The method also includes: obtaining a meta-information area in the first sub-graphic code that is between two positioning graphics in the same graphic area and adjacent to the information invalid area; identifying meta-information in the meta-information area; wherein the meta-information includes at least one parameter of the first sub-graphic code.

17. The method according to claim 16, characterized in that Also includes: Detecting and identifying a recognition environment for the graphic code; The identifying the second information carried in the second sub-graphic code includes: If the identification environment is the first identification environment, identifying the second information carried in the second sub-graphic code; The first information carried by the first bar graph in the first graph area and the second graph area corresponding to the first sub-graph code includes: If the identification environment is the second identification environment, the first information carried by the first bar graphic in the first graphic area and the second graphic area corresponding to the first sub-graphic code is identified.

18. The method according to claim 17, characterized in that If the recognition environment is the second recognition environment, after identifying the first information carried by the first bar graphic in the first graphic area and the second graphic area corresponding to the first sub-graphic code, the method further includes: Identify the second information carried in the second sub-graphic code.

19. The method according to claim 18, characterized in that Also includes: Outputting viewing prompt information for the identified first information and second information to prompt the user to select any information from the first information and the second information for viewing; Based on any information selected by the user, the corresponding first information and / or second information is displayed to the user.

20. The method according to claim 19, characterized in that Before outputting viewing prompt information for the identified first information and second information to prompt the user to select any information from the first information and the second information for viewing, the method further includes: If the first information is the same as the second information, the first information or the second information is directly output to the user.

21. The method according to claim 16, characterized in that The information valid area is a rectangle; The determining, according to the center point of the graphic code, the information valid area corresponding to the second sub-graphic code in the graphic code and the information invalid area surrounding the information valid area comprises: Acquire the information valid area where the intersection of the diagonal lines in the graphic code coincides with the center point; An information invalid area surrounding the information valid area in the graphic code is determined.

22. The method according to claim 16, characterized in that The shape of the graphic code is a circle, and the identifying information corresponding to the first bar graphic in the first graphic area and the second graphic area to obtain the first information corresponding to the first sub-graphic code includes: Identify the positioning graphics corresponding to the three positioning points in the first graphic area and the second graphic area which form an isosceles right triangle when connected to each other, and the midpoint of the base of the triangle coincides with the center point of the graphic code; Determine the size of the first sub-pattern code and the distribution direction of the code elements according to the three positioning patterns; According to the size of the first sub-graphic code and the distribution direction of the code elements, the first information in the first stripe graphic in the first graphic area and the second graphic area except the three positioning graphics is identified.

23. The method according to claim 22, characterized in that The identification of the first graphic area and the second graphic area forming an isosceles right triangle when connected to each other, and the three positioning points whose midpoints of the bases of the triangle coincide with the center point of the graphic code respectively correspond to the positioning graphics include: Determine three positioning points in which the first graphic area and the second graphic area form an isosceles triangle when connected to each other, and the midpoint of the base of the isosceles triangle coincides with the center point of the graphic code; Based on the setting condition that each of the positioning graphics corresponding to the three positioning points has a vertex intersecting with the edge of the graphic code and each has a diagonal line on the same straight line as the center of the graphic code, and in combination with the distance between each of the three positioning points and the center point of the graphic code, the size of the positioning graphics corresponding to each of the three positioning points and the position of each of the three positioning points in the graphic code are determined; The positioning graphics corresponding to the three positioning points are determined according to the center point, shape and radius of the graphic code, combined with the sizes of the positioning graphics of the three positioning points and the positions of the three positioning points in the graphic code.

24. The method according to claim 23, characterized in that Determining the size of the first sub-pattern code and the code element distribution direction according to the three positioning patterns includes: Determine the size of the first sub-graphic code according to the sizes of the three positioning graphics and the shape and radius of the graphic code; Determine two locator patterns located in the same graphic area among the three locator patterns; If the two positioning patterns are located in the first pattern area, determining that the symbol distribution direction of the first sub-pattern code is a first distribution direction from the first pattern area to the second pattern area; If the two positioning patterns are located in the second pattern area, the code element distribution direction of the first sub-pattern code is determined to be a second distribution direction from the second pattern area to the first pattern area.

25. The method according to claim 22, characterized in that The identifying, according to the size of the first sub-graphic code and the code element distribution direction, the first information in the first stripe graphic in the first graphic area and the second graphic area except the three positioning graphics comprises: Determining a code element size corresponding to the first sub-graphic code according to the size of the first sub-graphic code; According to the code element size of the first sub-graphic code and the code element distribution direction, read the code elements of the first sub-graphic code from the first stripe pattern in the first graphic area and the second graphic area except the three positioning patterns; The code elements of the first sub-graphic code are decoded to obtain the first information.

26. The method according to claim 16, characterized in that The first sub-graphic code includes a bar-shaped two-dimensional code, and the second sub-graphic code includes a one-dimensional code, a bar-shaped two-dimensional code or a common two-dimensional code.

27. The method according to claim 16, characterized in that Also includes: A third sub-graphic code located in the edge padding area of ​​the graphic code is identified; wherein the third sub-graphic code is used to perform code element padding on the edge of the graphic code.

28. A device for generating a graphic code, characterized in that: It comprises: a storage component and a processing component; the storage component is used to store one or more computer instructions, and the one or more computer instructions are used to be called by the processing component to execute the method for generating a graphic code as described in any one of claims 8 to 15.

29. A device for recognizing a graphic code, characterized in that: It comprises: a storage component and a processing component; the storage component is used to store one or more computer instructions, and the one or more computer instructions are used to be called by the processing component to execute the graphic code recognition method described in any one of claims 16 to 27.

Citation Information

Patent Citations

  • Method and device for generating bar code groups

    CN104700139A

  • Code matching method for encoding central signal code

    CN110084329A

  • Graphic code, graphic code encoding method and graphic code decoding method

    CN112884101A