Composite two-dimensional code and generation method, identification method, identification system and device thereof

By adopting the composition rules and generation method based on the Lombe code in composite QR codes, setting the first region around the second region, and adjusting the shape and size of the encoding region, the problem of insufficient storage capacity of existing QR codes is solved, and more efficient information storage and flexible use are achieved.

CN119808816BActive Publication Date: 2026-03-03BEIJING LP CENTURY TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-13
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

Existing QR codes have limited storage capacity, and the sub-codes occupy the encoding space of the parent code in composite QR code generation methods, which leads to high requirements for error correction capabilities, thus limiting information storage capacity and usage flexibility.

Method used

The composite QR code, based on the Lombe code, is generated by setting a first region around a second region, filling the first region with encoded data, using a track frame to replace the locator, adaptively adjusting the shape and size of the encoded region, increasing the encoding density, filling data modules and error correction codewords.

Benefits of technology

It significantly increases information storage capacity, improves the flexibility and security of QR code usage, enhances generation efficiency, and meets the storage needs of more information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119808816B_ABST
    Figure CN119808816B_ABST
Patent Text Reader

Abstract

The disclosure provides a composite two-dimensional code, characterized by comprising: a first region; and at least one second region; wherein the first region is arranged around the contour of the second region, and the first region is provided with encoding data of a first two-dimensional code; wherein the encoding data at least contains data code words, format information and positioning information. The disclosure can provide a flexible, efficient and information storage capacity increasing composite two-dimensional code technology, overcome the problems of limited intermediate code size and insufficient content storage capacity caused by composition rules and error correction modes in the prior art, and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of QR code technology, and in particular to a composite QR code and its generation and recognition methods, recognition systems, devices, readable storage media, and program products. Background Technology

[0002] In today's era of rapid digital information dissemination, QR codes, as a convenient tool for information storage and transmission, have been widely used in various fields. From product labeling and advertising to mobile payments and ticketing management, QR codes have become an indispensable part of people's lives and work due to their ability to quickly and accurately store and retrieve large amounts of information.

[0003] Existing QR codes, such as those commonly seen in other technologies, require auxiliary orientation images, including position detection and positioning patterns. The position detection pattern consists of three nested black and white squares located at the top left, top right, and bottom left corners of the QR code, used to determine its size and position. The positioning pattern consists of two black and white straight lines, facilitating the determination of the QR code's angle and correcting distortion. Furthermore, a blank area surrounds the QR code for easier recognition. These positioning symbols and blank areas occupy a significant amount of QR code space, and the QR code size is predefined, resulting in very limited storage capacity for a single QR code. When storing more information, multiple individual QR codes must be arranged and stitched together, leading to low storage and stitching efficiency.

[0004] Furthermore, while existing technologies have produced composite QR codes generated by combining two or more QR codes, such as composite payment codes for merchants, current composite QR code generation methods typically involve "hollowing out" the middle area of ​​the master code and filling it with a sub-code. Error correction technology is then used to restore the master code's information during recognition. This places high demands on the error correction capabilities of the QR code. Moreover, because the sub-code occupies the encoding space of the master code, the area of ​​the master code that can be used for actual information storage is relatively reduced. To ensure the accuracy of the corrected information in the master code, the size of the sub-code is strictly limited, preventing it from occupying too much of the master code's encoding space, which in turn severely restricts the storage capacity of the sub-code. Summary of the Invention

[0005] This disclosure was made to solve the above-mentioned problems, and its purpose is to provide a flexible, efficient composite QR code that can increase information storage capacity and effectively overcome the limitations of intermediate code size and insufficient content storage capacity caused by the composition rules and error correction modes in the prior art, as well as its generation method, recognition method, recognition system, device, readable storage medium, and program product.

[0006] This disclosure provides a summary portion of the invention to briefly introduce the concepts, which will be described in detail in the detailed description portion that follows. This summary portion is not intended to identify key or essential features of the claimed technical solutions, nor is it intended to limit the scope of the claimed technical solutions.

[0007] To address the aforementioned technical problems, this disclosure provides a composite QR code, comprising: a first region; and at least one second region; wherein the first region is arranged around the outline of the second region, and the first region contains encoded data of the first QR code; wherein the encoded data includes at least data codewords, format information, and positioning information.

[0008] To address the aforementioned technical problems, this disclosure provides a method for generating a composite QR code, comprising: setting a first region and at least one second region; adjusting the shape of the first region in a manner that surrounds the outline of the second region; and filling the first region with the encoded data of a first QR code to generate the composite QR code.

[0009] To address the aforementioned technical problems, this disclosure provides a method for generating a composite QR code, comprising: setting a first region and at least one second region, such that the second region is at least partially contained within the first region; filling the second region with encoded data of a second QR code; filling the first region with encoded data of a first QR code; and in the region where the first region and the second region overlap, converting the encoded data of the first QR code into encoded data identical to that of the second QR code according to a preset rule.

[0010] To address the aforementioned technical problems, this disclosure also provides a composite QR code recognition method, comprising: recognizing format information of a first QR code in a first region; obtaining a first symbol size of the first QR code contained in the format information; locating a first locator of the first QR code; and recognizing and decoding encoded data in the first region based on the first locator and the first symbol size.

[0011] To address the aforementioned technical problems, this disclosure also provides a QR code recognition system, comprising: a display device for displaying a composite QR code as described above; a recognition device for scanning and recognizing at least a portion of the composite QR code displayed on the display device; and a server for sending or receiving at least a portion of the composite QR code or at least a portion of the composite QR code's data.

[0012] To address the aforementioned technical problems, this disclosure also provides a computer device, including a memory, a processor, and a computer program stored in the memory, characterized in that the processor executes the computer program to implement the steps of the method described in any of the preceding embodiments.

[0013] To address the aforementioned technical problems, this disclosure also provides a computer-readable storage medium storing a computer program thereon, characterized in that the computer program, when executed by a processor, implements the steps of the method described in any of the preceding claims.

[0014] To address the aforementioned technical problems, this disclosure also provides a computer program product, including a computer program, characterized in that, when the computer program is executed by a processor, it implements the steps of the method described in any of the preceding embodiments.

[0015] According to the technical solution disclosed in this disclosure, compared with the prior art, this disclosure breaks through the limitation of intermediate code size, significantly increases content storage capacity, and can meet the storage needs of more information; it provides flexible control over the scope of disclosure, enhances the security and targeting of QR code use; and through innovative composition rules and generation methods, it improves the flexibility and efficiency of QR code synthesis, greatly improving the user experience. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of one embodiment of the QR code generation process according to the present disclosure;

[0017] Figure 2 This is a schematic diagram of one embodiment of the QR code according to the present disclosure;

[0018] Figure 3 This is a schematic diagram of another embodiment of the QR code according to the present disclosure;

[0019] Figure 4 This is a schematic diagram of an embodiment of the QR code generation method according to the present disclosure;

[0020] Figure 5 This is a schematic diagram of an embodiment of the QR code recognition method according to the present disclosure;

[0021] Figure 6 This is a schematic diagram of one embodiment of a composite QR code according to the present disclosure;

[0022] Figure 7 This is a schematic diagram of an embodiment of the composite QR code generation method according to the present disclosure;

[0023] Figure 8 This is a schematic diagram of an embodiment of the composite QR code recognition method according to the present disclosure;

[0024] Figure 9 This is a structural diagram of an embodiment of the identification system according to the present disclosure;

[0025] Figure 10 This is a schematic diagram of one embodiment of a terminal device according to the present disclosure.

[0026] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and elements are not necessarily drawn to scale. Detailed Implementation

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of this disclosure; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this disclosure are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this disclosure are used to distinguish different objects and not to describe a particular order.

[0028] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this disclosure. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0029] To enable those skilled in the art to better understand the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0030] First, it should be noted that the composite QR code disclosed herein is based on the QR code of this disclosure, such as the Longbei code, and is combined with other types of QR codes, text, images, etc. Therefore, the related concepts or generation methods and identification methods involved in the QR code (hereinafter referred to as Longbei code unless otherwise specified) or composite QR code in the embodiments of this disclosure are the same, and will not be repeated when describing the composite QR code. However, the related technologies of composite QR codes still include the related technical features of Longbei code.

[0031] The following explains the relevant concepts involved in the QR code (Longbei code) or composite QR code disclosed herein:

[0032] A module is the smallest independent unit in the Lombe code disclosed herein, used to represent a single bit of data or to form a functional graphic, typically a square.

[0033] Synchronization barcodes, also known as track frames or track lines (described later), are located within the Lombay code. Figure 4 The alternating light and dark modules are used to record the number of rows and columns of the code image and to correct code image distortion. Synchronous barcodes are divided into horizontal synchronous barcodes and vertical synchronous barcodes.

[0034] The guide module, for example, consists of six modules located on both sides of the Lombar code map, arranged adjacent to the outer side of the synchronized barcode, and is used to position the code map in the horizontal direction.

[0035] The encoded area, such as the area in the code image used to store data, consists of dark and light-colored modules and is surrounded by synchronized barcodes.

[0036] Masks can make the ratio of dark to light modules in a code image close to 1:1, while also serving as a data encryption tool.

[0037] Format information, such as encoding direction, error correction level, and floating correction value, is used to decode the remaining part of the encoded region.

[0038] The sequence header and sequence tail are used to fill the empty spaces after the last codeword when the encoded region cannot be filled exactly by an 8-bit codeword. They do not represent data, but only help determine the encoding direction.

[0039] The following describes one aspect of the embodiments of this disclosure: QR code, also known as Longbei code.

[0040] like Figure 1 , Figure 2 and 3 The diagram shown is a schematic representation of an embodiment of the QR code, also known as the Longbei code, disclosed in this invention. Figure 1 This is a schematic diagram of one embodiment of the QR code generation process according to the present disclosure; Figure 2 This is a schematic diagram of one embodiment of the QR code according to the present disclosure; Figure 3 This is a schematic diagram of another embodiment of the QR code according to the present disclosure.

[0041] like Figure 1As shown, the Lombe code has a track frame 101, which is rectangular in shape and formed by alternating dark and light modules. Dark modules are located at the four vertices of the track frame. The track frame 101 is used for QR code recognition. The Lombe code's track frame 101 can replace the directional markers used in QR codes, allowing for direct direction recognition and positioning using only the track frame 101. Furthermore, the track frame 101 can also serve as the boundary of a container. During encoding, the size of the track frame 101 can be adaptively configured according to the amount of information being encoded, thus achieving the high-capacity characteristic of the Lombe code.

[0042] In one or more embodiments, the track frame 101 is formed by four track lines, namely, two first track lines and two second track lines, i.e., a synchronization barcode; wherein, the two first track lines are respectively set on the two outer periphery sides of the encoding area in a first direction and are respectively adjacent to the encoding area, for example, a horizontal synchronization barcode; the two second track lines are respectively set on the two outer periphery sides of the encoding area in a second direction and are respectively adjacent to the encoding area, for example, a vertical synchronization barcode; here, the first direction and the second direction are perpendicular to each other, and the first direction, for example, the horizontal direction, is the filling direction of the QR code.

[0043] The Lombe code also has an encoding area 102, or code image, located inside the track frame 101. The encoding area 102 is filled with data modules used to express data information. Here, the encoding area 102 determines the row and column values ​​of the code image based on the four track lines around the code image, i.e., the synchronization barcode.

[0044] In one or more embodiments, the product of the row and column values ​​of the data modules arranged in the coding region 102 (i.e., the code map) is not less than the number of data modules required to encode the data information; here, at least one of the row and column values ​​is a non-fixed value; and both the row and column values ​​are odd numbers.

[0045] In one or more embodiments, when the QR code is against a dark background, the dark and light modules of the track frame 101, as well as the data module, are presented in colors that are the opposite of the original module's light and dark colors.

[0046] like Figure 1 As shown, the encoding area 102 also includes a sequence header 103, a sequence tail 104, and format information 105, where H represents the sequence header and T represents the sequence tail. Dark solid modules in the encoding area 102 indicate that the format information bit is 1, and dark hollow modules indicate that the format information bit is 0. The Longbei code of this disclosure can also determine the left-right or horizontal direction through the symmetrically placed format information 105 in the code diagram.

[0047] here, Figure 2 and Figure 3 The difference between the Dragon Code and the Dragon Code is that Figure 3 The Longbei code image has six guide modules 301 on both sides, which are arranged adjacent to the outer side of the synchronized barcode and are used to position the horizontal direction of the code image through the left and right guide modules.

[0048] Of course, the left and right or horizontal directions here are relative. In practical applications, they can also be up and down or vertical, or other directions. Determining the direction helps to determine the direction of the code words and improves the efficiency of generation and recognition. Of course, it is also possible to generate or recognize directly without determining the direction.

[0049] Another aspect of the embodiments of this disclosure is described below: a method for generating QR codes.

[0050] like Figure 4 The diagram shown is an embodiment of the QR code generation method according to this disclosure. The QR code generation method includes:

[0051] S41, encode the data information to be encoded and calculate the required number of data modules. For example, by analyzing the type of the input information string, determine the character set to be used. Compress the character set data according to certain rules to obtain the byte stream data information to be encoded, with a length denoted as M. Data modules may include data codewords and error correction codewords. Based on the preset error correction level, calculate the corresponding number of error correction code bytes R based on M bytes. Therefore, the minimum number of code map modules required is (M+R)*8, and the total number of modules is denoted as S.

[0052] In one or more embodiments, the row and column values ​​required to arrange the data modules in the encoding area are calculated based on the required number of data modules, such that the product of the row and column values ​​is not less than the required number of data modules, and both the row and column values ​​are odd numbers.

[0053] In one or more embodiments, the row and column values ​​required for arranging data modules in the encoding area are calculated based on the required number of data modules, including: calculating row and column values ​​based on a fixed row-to-column ratio; or, calculating column values ​​based on a fixed row value; or, calculating row values ​​based on a fixed column value; or, calculating row and column values ​​by reducing the size of a single data module based on a fixed number of required data modules.

[0054] Here, if the row and column values ​​are set to fixed values, for example, to ensure that the row value * column value > S * 8, if encoded according to the aspect ratio, calculate the minimum row and column values ​​that can store an S * 8 module; if the row is a fixed value, calculate the minimum column value that can store an S * 8 module; if the column is a fixed value, calculate the minimum row value that can store an S * 8 module. All of the above placement methods must satisfy the requirement that the row and column values ​​are all odd numbers.

[0055] Here, a method of continuous data storage can be adopted. The first mode is density-adaptive, where the storage capacity is automatically compressed (increasing density) according to the coding area requirements, and encoding is performed according to the aspect ratio. The module size is selected as the largest module size that can fill the coding area. The second mode is capacity-adaptive, where the coding area boundary is not limited during generation (or only a portion of the boundary, such as the length of one side), and the length and width of the code can be automatically adjusted, encoded according to the aspect ratio, or with fixed row or column values. The module size is specified by the user.

[0056] The Longbei code disclosed herein uses a single symbol. Regardless of the size of the data content, the encoding method is not limited by version and can be filled with any data content information. It is completely different from QR codes and other two-dimensional codes. It does not require identifying the amount of encoded content information to determine which version of the encoding rule to use. The amount of stored data is unlimited, which greatly improves the data storage capacity and generation efficiency.

[0057] S42, fill the data module into the encoded area.

[0058] In one or more embodiments, based on achieving a preset error correction level, for example, all or part of the remaining codewords in code diagram 102 can be used to correct error codewords according to a floating error correction algorithm to improve error correction capability, and unused codewords are treated as data codewords and padded with 0.

[0059] In one or more embodiments, the generation method of this disclosure may further include, for example, a step of generating error correction codes, which involves grouping the codeword sequence according to a data error correction algorithm, generating corresponding error correction codewords by group, and appending them to the corresponding data codeword bytes. The generation method of this disclosure may also further include, for example, a step of adding a mask, which involves masking the data codewords and the error correction codewords.

[0060] In one or more embodiments, when the encoding area is not filled by data modules, the QR code generation method further includes: calculating the number of empty modules, the number of empty modules being equal to the difference between the total number of data modules that can be filled in the encoding area and the number of data modules required after the data information is encoded; calculating the number of sequence head modules and the number of sequence tail modules, the sum of the number of sequence head modules and the number of sequence tail modules being equal to the number of empty modules; filling in a sequence head module at the beginning position of the data module arrangement within the encoding area; and filling in a sequence tail module at the end position of the data module arrangement within the encoding area.

[0061] In one or more embodiments, the QR code generation method further includes: masking the format information according to a preset arrangement rule, placing it into the encoding area 102 according to a certain rule, and placing the masked data codewords and error correction codewords into the encoding area 102 according to a certain rule.

[0062] S43, using alternating dark and light modules, sets a rectangular track frame, placing dark modules at the four vertices of the track frame, and ensuring that the number of data modules that can be arranged within the coding area of ​​the track frame is not less than the required number of data modules S, generating a result such as... Figure 2 or Figure 3 The final QR code shown.

[0063] In one or more embodiments, the QR code generation method further includes: taking the number of modules of the first track line as the column value plus two, generating the first track line along the first direction, with both ends of the first track line being dark modules; taking the number of modules of the second track line as the row value plus two, generating the second track line along the second direction, with both ends of the second track line being dark modules; forming a track frame by enclosing two oppositely arranged first track lines and two oppositely arranged second track lines, and placing the track frame lines adjacent to each other on the outer periphery of the encoding area; wherein, the first direction and the second direction are perpendicular to each other, and the first direction is the filling direction of the QR code.

[0064] The following describes another aspect of the embodiments of this disclosure: an example of a method for generating QR codes.

[0065] First, determine the data to be encoded (hexadecimal value representation): 78 B6 0C F7 2F DC A2 81 E3 85 80FE C6 EB 3B D8 A0;

[0066] Length of data to be encoded in bytes (nInfoLen): 17;

[0067] Assume the encoding parameters are set as follows:

[0068] Error Correction Level (ECC): 2 (High);

[0069] Aspect ratio: 1:1.

[0070] Step 1, calculate the data codeword and error correction codeword:

[0071] Data codeword length: 17;

[0072] Data codeword: 78 B6 0C F7 2F DC A2 81 E3 85 80 FE C6 EB 3B D8 A0;

[0073] Error correction code length: 34;

[0074] Error correction code: 9D F3 59 AF B6 DE 6E 86 9F C8 B9 9E 17 62 C4 3E 3C 57 2C B861 36 84 0A 23 04 16 B5 A4 D7 BB 02 B8 A3;

[0075] Sequence codeword length: 51;

[0076] Serial codeword: 78 B6 0C F7 2F DC A2 81 E3 85 80 FE C6 EB 3B D8 A0 9D F3 59AF B6 DE 6E 86 9F C8 B9 9E 17 62 C4 3E 3C 57 2C B8 61 36 84 0A 23 04 16 B5 A4D7 BB 02 B8 A3;

[0077] Standard Mask: E3 72 87 C1 54 44 62 FD E4 43 34 E3 12 8C 14 83 58 E4 F1 FF24 1F 62 32 49 B4 58 5D 0C AD 52 43 AD FC 9B FC F1 0E 49 04 C7 74 51 87 18 470B 79 A3 A3 CB;

[0078] Code after masking: 9B C4 8B 36 7B 98 C0 7C 07 C6 B4 1D D4 67 2F 5B F8 7902 A6 8B A9 BC 5C CF 2B 90 E4 92 BA 30 87 93 C0 CC D0 49 6F 7F 80 CD 57 55 91AD E3 DC C2 A1 1B 68.

[0079] Step 2, calculate row and column values:

[0080] The minimum row and column ratio that can accommodate 51*8 points, calculated based on a row-to-column ratio of 1:1, is as follows:

[0081] Number of code map rows (nRows): 21;

[0082] Number of code diagram columns (nCols): 21.

[0083] Step 3, calculate the ordinal header, ordinal footer, and format information:

[0084] Calculated format information value (binary representation): 1111111111111101011001000;

[0086] Formatting information after masking: 01011101010000011110001101;

[0088] Then calculate the sequence head and sequence tail flag bits:

[0089] Remaining bits: 7;

[0090] Sequence header flag: 4;

[0091] End-of-order marker: 3;

[0092] Finally, the position of each bit of the format information in the code image sequence is calculated according to the distribution function of the format information:

[0093] 22 40 52 68 77 101 114 129 137 156 177 188 214 226 252 263 284 303311 326 339 363 372 388 400 418.

[0094] Step 4, Generate Code Image: First, place the sequence header and tail, and format information in the code image, such as... Figure 1 As shown, then fill in the remaining points with the bits of the data sequence bit stream in sequence, finally generating the result as shown. Figure 2 or Figure 3 The Longbei code diagram shown.

[0095] Another aspect of the embodiments of this disclosure is described below: a method for recognizing QR codes.

[0096] like Figure 5 The diagram shown is an embodiment of a QR code recognition method according to the present disclosure. The QR code recognition method includes:

[0097] S51, determine the outline of the QR code and retrieve the outline within the scanning area, for example, a rectangle.

[0098] S52, the rectangles of the outline graphics are selected as QR code symbols of the preset track frame 101.

[0099] S53, the QR code icon is divided into grids according to the track frame line 101. The grid division method is, for example, to determine the grid lines by referring to the row and column values ​​in the above generation method.

[0100] S54. Verify whether the encoding area 102 of the QR code symbol has a format information module. If so, read the data module in the encoding area and decode the data information. If not, terminate the recognition.

[0101] In one or more embodiments, verifying whether the encoding area 102 of the QR code symbol has a format information module includes: rotating the outline graphic and verifying whether the outline graphic has a format information module at different angles.

[0102] In one or more embodiments, for example, the coding region is filled with an ordered header module and an ordered tail module, the QR code recognition method further includes: recognizing the header module and the ordered tail module in the coding region 102; and reading the data module starting from the header module and along the coding direction, and ending at the ordered tail module, based on the recognized header module and the ordered tail module.

[0103] Another aspect of the embodiments of this disclosure is described below: composite QR codes.

[0104] like Figure 6 The diagram shown is a schematic diagram of an embodiment of a composite QR code according to the present disclosure. The composite QR code includes: a first region 601; and at least one second region 602.

[0105] The first region 601 is set around the outline of the second region 602, and the first region 601 contains the encoding data of a first QR code, such as a Longbei code. The encoding data includes at least data codewords, format information and positioning information, and may also include various data information involved in the Longbei code and its generation method, such as error correction codewords, etc., without limitation.

[0106] The second area 602 may contain any of the following: an image, text, or a second QR code. When the second area 602 contains a second QR code, such as a QR code, the stored data of the first QR code (Longbei code) and the second QR code are not mandatory and can be used independently or in conjunction. Composite use facilitates the use of the same code by two identification systems. For example, a logistics department may have established a work system using QR codes, while a production unit may have established a work system using Longbei codes. If the two systems need to be linked, without composite technology, two QR codes would be required, leading to problems such as misplacement and mismatched relationships. Furthermore, in real life, it is often impossible to place two codes simultaneously. Therefore, the emergence of composite QR codes improves the flexibility and efficiency of QR code synthesis. Moreover, by using Longbei codes as the first QR code, flexible control over the scope of public access is provided, enhancing the security and targeted use of composite QR codes.

[0107] In one or more embodiments, the positioning information includes, for example, track lines. When the second region 602 is completely contained within the first region 601, the track lines of the first QR code, such as the first track line and the second track line, completely surround the second region 602. When the second region 602 is contained within the first region 601 and partially overlaps with the boundary of the first region 601, the track lines, such as the first and second track lines adjacent to the second region 602, overlap or are parallel to a portion of the edge of the second region 602. Of course, the first and second track lines adjacent to the second region 602 can also bypass the second region 602, for example, forming a closed shape inwards; this is not limited. When the second region 602 is partially contained within the first region 601, for example, when the two overlap, the track lines, such as the first and second track lines adjacent to the second region 602, bypass the second region 602, for example, forming a closed shape inwards. Furthermore, the position, number, and shape of the second region 602 are not limited.

[0108] The following describes another aspect of the embodiments of this disclosure: a method for generating composite QR codes.

[0109] like Figure 7 The diagram shown is an embodiment of the composite QR code generation method according to this disclosure. The composite QR code generation method includes:

[0110] S71, a first region 601 and at least one second region 602 are set. In one or more embodiments, for example, a Longbei code is set in the first region 601, and an image, text, or a second QR code, such as a QR code, is set in the second region 602.

[0111] Here, we will take placing a second area 602 according to the center of the symbol as an example for explanation:

[0112] Step 1: Obtain the size information of the second region 602, such as image size, amount of text, size of QR code icon, etc.

[0113] Step 2: Encode the second QR code and obtain the symbol size of the second QR code according to the version of the second QR code, for example, a×a. Then set the reserved size of the second area 602 to (a+1)×(a+1). Here, the reason for adding 1 to the size of the second QR code is that the number of different QR code symbol size modules is not even or odd. For example, the size of QR code is even, while the size of Longbei code is odd. QR code needs to be added 1 to become odd in order to match the size of the main code.

[0114] Step 3: Calculate the size of the encoding symbol required for the Lombe code encoding in the first region 601, for example, b×b. Based on the region-reserved size of the second region 602 and the size of the Lombe code symbol, calculate the composition size of the composite QR code as (a+b+1)×(a+b+1).

[0115] Here, for example, the size can be determined based on the second region 602 before confirming the size of the Longbei code and generating the second QR code independently, without any restrictions.

[0116] Step 4: Based on the total size of the composite QR code and the position of the second region 602, set the encoding area of ​​the first region 601 and the second region 602. Here, the area (approximately 2ab) that is increased by the size of the composite QR code compared to the size of the second QR code and the size of the Longbei code symbol can be handled in two ways: one is to use the extra area to add error correction codes, and the other is to reduce the total area and refill the data according to the rules after accurately calculating the size of the main code.

[0117] S72, adjust the shape of the first region 601 in a manner that surrounds the outline of the second region 602.

[0118] In one or more embodiments, adjusting the shape of the first region 601 in a manner that surrounds the outline of the second region 602 includes: keeping the encoding density of the first QR code unchanged, adjusting the shape of the first region 601 so that the area difference between the adjusted first region 601 and the second region 602 is not less than the encoding area of ​​the first QR code.

[0119] In one or more embodiments, adjusting the shape of the first region 601 in a manner that surrounds the outline of the second region 602 further includes: compressing the encoding density of the first QR code so that the area of ​​the adjusted first region 601 is not less than the encoding area of ​​the first QR code.

[0120] S73, fill the first QR code's encoded data into the first area 601 to generate a composite QR code. For example, fill the QR code data sequentially in the order of top to bottom and left to right. Fill the first area 601 with Longbei code data, and fill the second area 602 with an image, text, or any of the second QR codes, such as QR codes.

[0121] In one or more embodiments, the method further includes setting format information according to the encoding rules of the Lombe code, and recording the version number of the second QR code in the Lombe code format information. Here, as mentioned earlier, all QR codes, including the Lombe code, place format information at specific positions on the symbol. The format information is relatively small, such as 8 bits of binary data (8 dots). Typically, 2-3 positions are chosen to place the same format information to reduce the probability of corruption. The format information is used to assist in the rapid recognition of the QR code. For public code systems, to ensure the consistency of the reading method, the format information is usually used to agree on rules. However, for non-public code systems like the Lombe code, the rules are not disclosed. From a recognition perspective, the rules of the format information only need to be consistent between the encoding and decoding parties.

[0122] In one or more embodiments, the format information of the Longbei code may not contain information such as the version number of the second QR code. During recognition, the second QR code can be recognized first, and then the actual placement size of the Longbei code can be obtained through the size of the second QR code.

[0123] The unique generation method of the composite QR code disclosed herein breaks through the limitation of the size of the intermediate code, and the use of the Longbei code significantly increases the content storage capacity, which can meet the storage needs of more information.

[0124] The following describes another aspect of the embodiments of this disclosure: another method for generating composite QR codes.

[0125] A first region 601 and at least one second region 602 are provided, such that the second region 602 is at least partially contained in the first region 601;

[0126] Fill the second QR code's encoded data into the second area 602;

[0127] The encoded data of the first QR code is filled in the first region 601, and in the region where the first region 601 and the second region 602 overlap, the encoded data of the first QR code is converted into the same encoded data as the second QR code according to a preset rule.

[0128] According to the unique generation method of the composite QR code disclosed herein, the encoding data, format information, and code system of the Longbei code and the second QR code in the composite QR code can be unified, the codeword information of the second QR code can be reused, the coding area of ​​the Longbei code is increased, and the storage needs of more information can be met.

[0129] The following describes another aspect of the embodiments of this disclosure: a method for recognizing composite QR codes.

[0130] like Figure 8 The diagram shown is a schematic representation of an embodiment of the composite QR code recognition method according to this disclosure. The composite QR code recognition method includes:

[0131] S81, identify the format information of the first QR code, i.e., the Longbei code, in the first region 601, and obtain the size of the first symbol of the first QR code contained in the format information;

[0132] S82, find the first locator of the first QR code, for example, the center position of the Longbei code;

[0133] S83, based on the size of the first locator and the first symbol, identifies the first QR code in the first region 601 and decodes it.

[0134] In one or more embodiments, the second region 602 is filled with a second QR code. The composite QR code recognition method further includes: recognizing the format information of the second QR code in the second region 602, such as its version information, and obtaining the second symbol size of the second QR code, for example, a×a; searching for the second locator of the second QR code, for example, starting from the center of a code such as a Longbei code, and searching for the second QR code or other locator symbols, with a search area of ​​(a+1)×(a+1); and recognizing and decoding the second QR code based on the second locator and the second symbol size.

[0135] In one or more embodiments, the second region 602 is filled with a second QR code. The composite QR code recognition method further includes: recognizing the second QR code and obtaining the symbol size of the second QR code; obtaining the actual placement size of the first QR code based on the symbol size of the second QR code, that is, the remaining area after removing the symbol size area of ​​the second QR code is the Longbei code encoding symbol, obtaining the Longbei code symbol according to the Longbei code composition rules; reversing the first QR code to restore it to the matrix of the original code image, and decoding it according to the original decoding procedure.

[0136] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0137] Another aspect of the embodiments of this disclosure is described below: a QR code or composite QR code recognition system.

[0138] like Figure 9 As shown, the system architecture may include terminal devices 901, 902, 903, 904, and 907, a network 905, and a server 906. The network 905 is used as a medium to provide a communication link between the terminal devices 901, 902, 903, 904, and 907 and the server 906.

[0139] Here, terminal devices 901, 902, 903, and 904 are, for example, display devices used to display the QR code or composite QR code as described above.

[0140] Terminal device 907 is, for example, an identification device, used to scan and identify at least a portion of the QR code or composite QR code displayed on the display devices such as terminal devices 901, 902, 903, and 904.

[0141] Server 906 is used, for example, to send or receive a QR code or data of the QR code, or to send or receive at least a portion of a composite QR code or at least a portion of the data of the composite QR code.

[0142] In this embodiment, the electronic devices on which the method operates (e.g., terminal devices 901, 902, 903, or 904 shown in the figure) can transmit various types of information via network 905. Network 905 can include various connection types, such as wired, wireless communication links, or fiber optic cables, etc. It should be noted that the aforementioned wireless connection methods can include, but are not limited to, 3G / 4G / 5G connections, Wi-Fi connections, Bluetooth connections, WiMAX connections, Zigbee connections, UWB connections, local area networks (“LAN”), wide area networks (“WAN”), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as other network connection methods that are currently known or will be developed in the future. Network 905 can communicate using any currently known or future developed network protocol such as HTTP (Hypertext Transfer Protocol), and can interconnect with digital data communication (e.g., communication networks) of any form or medium.

[0143] Users can use terminal devices 901, 902, 903, and 904 to interact with server 906 via network 905 to receive or send messages, etc. Various client applications can be installed on terminal devices 901, 902, 903, or 904, such as video streaming and playback applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social media platform software, etc.

[0144] Terminal devices 901, 902, 903, or 904 can be various electronic devices with touch screens and / or web browsing capabilities, including but not limited to smartphones, tablets, e-book readers, MP3 (Motion Picture Experts Compression Standard Audio Layer 3) players, MP4 (Motion Picture Experts Compression Standard Audio Layer 4) players, head-mounted displays, laptops, digital radio receivers, PDAs (Personal Digital Assistants), PMPs (Portable Multimedia Players), in-vehicle terminals (such as in-vehicle navigation terminals), and mobile terminals such as digital TVs and desktop computers.

[0145] Server 906 can be a server that provides various services, such as a backend server that supports the pages displayed or the data transmitted on terminal devices 901, 902, 903 or 904. Server 906 can be a local server or a cloud server, for example.

[0146] It should be understood that Figure 9 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0147] Here, the terminal device can implement the methods of the embodiments of this disclosure independently or in conjunction with other electronic terminal devices by running applications in various operating systems, such as Android. It can also run applications in other operating systems to implement the methods of the embodiments of this disclosure.

[0148] Another aspect of the embodiments of this disclosure is described below: a terminal device.

[0149] refer to Figure 10 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 9 The diagram shows the structure of the terminal device (or server) 1000 in this disclosure embodiment. The terminal device in this disclosure embodiment can be various terminal devices in the above-described system. The electronic device shown in the figure is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this disclosure.

[0150] like Figure 10 As shown, the electronic device 1000 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001 for controlling the overall operation of the electronic device. The processing device may include one or more processors to execute instructions to complete all or part of the steps of the method described above. Furthermore, the processing device 1001 may also include one or more modules for handling interactions with other devices.

[0151] Storage device 1002 is used to store various types of data. Storage device 1002 can be a combination of various types of computer-readable storage media, such as electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0152] The sensor device 1003 is used to sense specified measurand information and convert it into a usable output signal according to a certain rule. It may include one or more sensors. For example, it may include an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, or a temperature sensor, etc., for detecting changes in the on / off state, relative positioning, acceleration / deceleration, temperature, humidity, and light of electronic devices.

[0153] The processing device 1001, the storage device 1002, and the sensor device 1003 are interconnected via a bus 1004. The input / output (I / O) interface 1005 is also connected to the bus 1004.

[0154] The multimedia device 1006 may include input devices such as a touch screen, touchpad, keyboard, mouse, camera, and microphone to receive input signals from the user. These input devices can cooperate with various sensors of the aforementioned sensor device 1003 to complete tasks such as gesture input, image recognition input, and distance detection input. The multimedia device 1006 may also include output devices such as a liquid crystal display (LCD), speaker, and vibrator.

[0155] The power supply device 1007 is used to provide power to various devices in an electronic device, and may include a power management system, one or more power supplies, and components for distributing power to other devices.

[0156] The communication device 1008 allows the electronic device 1000 to communicate wirelessly or wiredly with other devices to exchange data.

[0157] All of the above devices can be connected to I / O interface 1005 to enable the application of electronic device 1000.

[0158] It should be understood that although each block in the block diagrams of the accompanying drawings may represent a module, a portion of which contains one or more executable instructions for implementing a specified logical function, these modules are not necessarily executed sequentially. The modules and functional units in the device embodiments of this disclosure may be integrated into a single processing module, or each unit may exist physically separately, or two or more modules or functional units may be integrated into a single module. The integrated modules described above may be implemented in hardware or as software functional modules. If the integrated module is implemented as a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The aforementioned storage medium may be a read-only memory, a disk, or an optical disk, etc.

[0159] Although Figure 10Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have instead.

[0160] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device. When the computer program is executed by a processing device, it performs the functions defined in the methods of embodiments of this disclosure.

[0161] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0162] It should be noted that the computer-readable medium described above in this disclosure can be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0163] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0164] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer via any type of network, or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0165] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0166] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.

[0167] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.

[0168] According to one or more embodiments of this disclosure, a composite QR code is provided, comprising: a first region; and

[0169] At least one second region;

[0170] The first region is set around the outline of the second region, and the first region contains the encoded data of the first QR code;

[0171] The encoded data includes at least data codewords, format information, and location information.

[0172] According to one or more embodiments of this disclosure, a composite QR code is provided, wherein the second area is provided with any one of an image, text, or a second QR code.

[0173] According to one or more embodiments of this disclosure, a composite QR code is provided, wherein the first QR code is a Longbei code.

[0174] According to one or more embodiments of this disclosure, a composite QR code is provided, wherein the positioning information includes a track line;

[0175] When the second region is completely contained within the first region, the track lines of the first QR code are set to completely surround the second region;

[0176] When the second region is contained within the first region and partially coincides with the boundary of the first region, the track line is set to bypass the second region;

[0177] When the second region is partially contained within the first region, the track line is arranged to bypass the second region.

[0178] According to one or more embodiments of this disclosure, a method for generating a composite QR code is provided, comprising: setting a first region and at least one second region;

[0179] Adjust the shape of the first region in a manner that surrounds the outline of the second region;

[0180] The composite QR code is generated by filling the first area with the encoded data of the first QR code.

[0181] According to one or more embodiments of this disclosure, a method for generating composite QR codes is provided, the method further comprising:

[0182] Set any one of the following in the second area: an image, text, or a second QR code.

[0183] According to one or more embodiments of this disclosure, a method for generating a composite QR code is provided, wherein adjusting the shape of the first region in a manner surrounding the contour of the second region includes:

[0184] Keeping the encoding density of the first QR code unchanged, the shape of the first region is adjusted so that the area difference between the adjusted first region and the second region is not less than the encoding area of ​​the first QR code.

[0185] According to one or more embodiments of this disclosure, a method for generating a composite QR code is provided, wherein adjusting the shape of the first region in a manner that surrounds the contour of the second region further includes:

[0186] The encoding density of the first QR code is compressed so that the area of ​​the adjusted first region is not less than the encoding area of ​​the first QR code.

[0187] According to one or more embodiments of this disclosure, a method for generating composite QR codes is provided, the method further comprising:

[0188] Set the first QR code as the Longbei code.

[0189] According to one or more embodiments of this disclosure, a method for generating a composite QR code is provided, wherein a first region and at least one second region are set, such that the second region is at least partially contained within the first region;

[0190] Fill the second area with the encoded data of the second QR code;

[0191] The encoded data of the first QR code is filled in the first area, and in the area where the first area and the second area overlap, the encoded data of the first QR code is converted into the same encoded data as the second QR code according to a preset rule.

[0192] According to one or more embodiments of this disclosure, a composite QR code recognition method is provided, which identifies the format information of a first QR code in a first region and obtains the first symbol size of the first QR code contained in the format information;

[0193] Locate the first locator of the first QR code;

[0194] Based on the first locator and the size of the first icon, the first QR code in the first area is identified and decoded.

[0195] According to one or more embodiments of this disclosure, a composite QR code recognition method is provided, wherein a second QR code is filled in the second area, and the composite QR code recognition method further includes:

[0196] Identify the format information of the second QR code in the second area and obtain the size of the second symbol of the second QR code;

[0197] Find the second locator of the second QR code;

[0198] Based on the second locator and the size of the second icon, the second QR code is identified and decoded.

[0199] According to one or more embodiments of this disclosure, a composite QR code recognition method is provided, wherein a second QR code is filled in the second area, and the composite QR code recognition method further includes:

[0200] After recognizing the second QR code, obtain the graphic size of the second QR code;

[0201] The actual placement size of the first QR code is obtained based on the graphic size of the second QR code;

[0202] The first QR code is reversed to restore the original code image matrix, and then decoded according to the original decoding procedure.

[0203] According to one or more embodiments of this disclosure, a QR code recognition system is provided, comprising:

[0204] A display device for displaying a composite QR code as described in any of the preceding items;

[0205] A recognition device for scanning and recognizing at least a portion of the composite QR code displayed on the display device;

[0206] A server is configured to send or receive at least a portion of the composite QR code or at least a portion of the composite QR code's data.

[0207] According to one or more embodiments of the present disclosure, a computer device is provided, including a memory, a processor, and a computer program stored in the memory, the processor executing the program to perform the steps of the method as described in any of the preceding claims.

[0208] According to one or more embodiments of the present disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps of the method as described in any of the preceding claims.

[0209] According to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the method as described in any of the preceding claims.

[0210] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0211] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0212] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A composite two-dimensional code, characterized by, The composite two-dimensional code comprises: a first region; and at least one second region; wherein the first region is arranged around the contour of the second region, and the first region is provided with encoding data of a first two-dimensional code, and the first region and the second region are arranged by at least the following steps: obtaining size information of the second region, and setting a reserved size of the second region; calculating the required encoding symbol size of the first region, and calculating the total code pattern size of the composite two-dimensional code according to the reserved size of the second region and the required encoding symbol size of the first region; and arranging the encoding region of the first region and the second region according to the total code pattern size of the composite two-dimensional code and the position of the second region. The encoding data at least comprises data code words, format information and positioning information. The positioning information comprises track lines. When the second region is completely contained in the first region, the track lines of the first two-dimensional code are formed by dark modules and light modules arranged at intervals, and the track lines of the first two-dimensional code completely surround the second region. When the second region is partially contained in the first region, the track lines bypass the second region.

2. The composite two-dimensional code according to claim 1, wherein The second region is provided with any one of a picture, text or a second two-dimensional code.

3. The composite two-dimensional code according to claim 1, wherein The first two-dimensional code is a Dragonberry code.

4. A method of generating a composite two-dimensional code, characterized by The composite two-dimensional code comprises: arranging a first region and at least one second region, and the first region and the second region are arranged by at least the following steps: obtaining size information of the second region, and setting a reserved size of the second region; calculating the required encoding symbol size of the first region, and calculating the total code pattern size of the composite two-dimensional code according to the reserved size of the second region and the required encoding symbol size of the first region; and arranging the encoding region of the first region and the second region according to the total code pattern size of the composite two-dimensional code and the position of the second region. The shape of the first region is adjusted in a manner of surrounding the contour of the second region. The first region is filled with encoding data of a first two-dimensional code to generate the composite two-dimensional code. The encoding data at least comprises data code words, format information and positioning information. The positioning information comprises track lines. When the second region is completely contained in the first region, the track lines of the first two-dimensional code are formed by dark modules and light modules arranged at intervals, and the track lines of the first two-dimensional code completely surround the second region. When the second region is partially contained in the first region, the track lines bypass the second region.

5. The method of claim 4, wherein, The composite two-dimensional code generation method further comprises: In the second region, any one of a picture, text or a second two-dimensional code is arranged.

6. The composite two-dimensional code generation method according to claim 4, wherein The shape of the first region is adjusted in a manner of surrounding the contour of the second region, which comprises: The encoding density of the first two-dimensional code is kept unchanged, and the shape of the first region is adjusted so that the area difference between the adjusted first region and the second region is not less than the encoding area of the first two-dimensional code.

7. The composite two-dimensional code generation method according to claim 4, wherein The shape of the first region is adjusted in a manner of surrounding the contour of the second region, which further comprises: Compressing the encoding density of the first two-dimensional code, so that the area of the adjusted first region is not less than the encoding area of the first two-dimensional code.

8. The method of claim 4, wherein, The composite two-dimensional code generation method further comprises: The first two-dimensional code is set as a Dragon Be code.

9. A method of generating a composite two-dimensional code, characterized by, Comprise: Setting a first region and at least one second region, so that the second region is at least partially contained in the first region, at least comprising the following steps of setting the first region and the second region: obtaining the size information of the second region, and setting the reserved size of the second region; calculating the required encoding symbol size of the first region, and calculating the total code pattern size of the composite two-dimensional code according to the reserved size of the second region and the required encoding symbol size of the first region; setting the encoding region of the first region and the second region according to the total code pattern size of the composite two-dimensional code and the position of the second region; Filling the second two-dimensional code with encoding data in the second region; Filling the first two-dimensional code with encoding data in the first region, and converting the encoding data of the first two-dimensional code into the same encoding data as the second two-dimensional code according to a preset rule in the area where the first region and the second region overlap; The encoding data at least contains data code word, format information and positioning information; The positioning information contains track lines; When the second region is completely contained in the first region, the track lines of the first two-dimensional code are formed by alternating dark modules and light modules, and the track lines of the first two-dimensional code completely surround the second region; When the second region is partially contained in the first region, the track lines bypass the second region.

10. A method of recognizing a composite two-dimensional code, characterized by, For identifying the composite two-dimensional code as claimed in any one of claims 1-3, comprising: Identifying the format information of the first two-dimensional code in the first region, and obtaining the first symbol size of the first two-dimensional code contained in the format information; Finding the first locator of the first two-dimensional code; According to the first locator and the first symbol size, identifying the first two-dimensional code in the first region and decoding.

11. The method of claim 10, wherein, The second region is filled with the second two-dimensional code, and the composite two-dimensional code identification method further comprises: Identifying the format information of the second two-dimensional code in the second region, and obtaining the second symbol size of the second two-dimensional code; Finding the second locator of the second two-dimensional code; According to the second locator and the second symbol size, identifying the second two-dimensional code and decoding.

12. The method of claim 10, wherein the composite two-dimensional code is a QR code. The second region is filled with the second two-dimensional code, and the composite two-dimensional code identification method further comprises: After identifying the second two-dimensional code, obtaining the symbol size of the second two-dimensional code; According to the symbol size of the second two-dimensional code, obtaining the actual placement size of the first two-dimensional code; Reversing the first two-dimensional code to the matrix of the original code pattern, and decoding according to the original decoding procedure.

13. A two-dimensional code recognition system characterized by comprising: Comprise: Display device for displaying the composite two-dimensional code as claimed in any one of claims 1-3; Identification device for scanning and identifying at least a part of the composite two-dimensional code displayed on the display device; a server for transmitting or receiving at least a portion of the composite two-dimensional code or at least a portion of data of the composite two-dimensional code.

14. A computer device comprising a memory, a processor, and a computer program stored on the memory, wherein the computer program comprises instructions that, when executed by the processor, cause the processor to perform the method of any one of claims 1-13. The processor executes the computer program to implement the steps of the method of any one of claims 4-12.

15. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 4-12.

16. A computer program product comprising a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 4-12. The computer program, when executed by the processor, implements the steps of the method of any one of claims 4-12.

Citation Information

Patent Citations

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

    CN112884101A

  • Container information acquisition and identification device

    CN119197641A