Digital three-dimensional code generation method, identification method, electronic equipment and storage medium

By superimposing and splicing the first value of each block of the initial QR code, a digital three-dimensional code is formed, which solves the limitations and color errors of the QR code in terms of storage and processing, and improves the reliability of information and Processing speed.

CN119250097APending Publication Date: 2025-01-03ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411095275.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

Existing QR codes have limitations in size and density in terms of information storage and processing, and color errors are prone to occur when the color dimensions are expanded, resulting in misidentification, affecting information reliability.

Method used

By superimposing and splicing the first value of each block of the initial QR code with the same encoding method, converting it to the second value, and assigning values ​​in the QR code template to form a digital three-dimensional code to improve data storage and information reliability.

Benefits of technology

It effectively improves the storage amount of data storage, reduces misidentification caused by color errors, and improves information reliability and data processing speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119250097A_ABST
    Figure CN119250097A_ABST
Patent Text Reader

Abstract

The invention discloses a digital three-dimensional code generation method, a digital three-dimensional code identification method, electronic equipment and a storage medium, and the generation method comprises the steps: obtaining at least two initial two-dimensional codes with the same coding mode, carrying out the assignment of each block in each initial two-dimensional code, and determining a first value of each block; splicing the first numerical values of the same block of the at least two initial two-dimensional codes, and converting a splicing result into a second numerical value of a target system; assigning the second numerical value in the two-dimensional code template to form a digital three-dimensional code, the original information of the at least two initial two-dimensional codes being stored in the digital three-dimensional code; according to the method and the device, the marked first numerical value of each block of the initial two-dimensional code is superposed, spliced and converted into the second numerical value, and then the value is assigned in the two-dimensional code template to form the digital three-dimensional code, so that the storage capacity of data storage can be effectively improved, the data processing speed is further improved, misrecognition caused by color errors is reduced, and the recognition efficiency is improved. And the information reliability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of identification code generation, and in particular to a digital three-dimensional code generation method, an identification method, an electronic device and a storage medium. Background Art

[0002] With the explosive growth of computer applications, the requirements for data management are becoming increasingly higher. Among them, data collection, storage and data processing through QR codes have made great contributions to data management. Existing QR codes include row-type two-dimensional barcodes and matrix two-dimensional barcodes, which have the advantages of high coding density and large information capacity; multiple coding objects, which can represent text and images; strong fault tolerance and error correction function; high decoding reliability; encryption and good anti-counterfeiting properties.

[0003] In practice, with the widespread application of QR codes, there are further requirements for barcode information storage and information processing. Solutions that increase the barcode size or increase the barcode density have their limitations: increasing the barcode size requires the barcode carrier to provide a larger printing area; and increasing the barcode density requires higher requirements for the accuracy of printing equipment and reading equipment, and will reduce the barcode's anti-interference ability, greatly limiting the barcode's usage environment; and the three-dimensional code, which adds a color dimension to the QR code, uses combined colors to represent data information, is prone to misrecognition due to color errors, affecting information reliability. Summary of the invention

[0004] The main technical problem solved by the present application is to provide a digital three-dimensional code generation method, recognition method, electronic device and storage medium. By superimposing the first numerical value of the mark of each block of the initial two-dimensional code with the same encoding method, splicing and converting it into a second numerical value, and then assigning the value in the two-dimensional code template to form a digital three-dimensional code, the storage capacity of data storage can be effectively increased, thereby improving the speed of data processing, reducing the misrecognition caused by color errors, and improving information reliability.

[0005] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a method for generating a digital three-dimensional code, including: obtaining at least two initial two-dimensional codes with the same encoding method, and assigning a value to each block in each of the initial two-dimensional codes, and determining a first value of each block, wherein each of the initial two-dimensional codes stores original information; splicing the first values ​​of the same block of at least two of the initial two-dimensional codes, and converting the splicing result into a second value of the target base; using the second value to assign in a two-dimensional code template to form a digital three-dimensional code, wherein the original information of at least two of the initial two-dimensional codes is stored in the digital three-dimensional code.

[0006] In some embodiments, the initial two-dimensional code includes at least a coding area; the step of obtaining at least two initial two-dimensional codes with the same coding method, and assigning a value to each block in each of the initial two-dimensional codes to determine the first value of each block includes: obtaining the pixel distribution of each block in the coding area in each of the initial two-dimensional codes; and binarizing each block using the pixel distribution to determine the first value of each block in each of the initial two-dimensional codes.

[0007] In some embodiments, the step of splicing the first values ​​of the same block of at least two of the initial two-dimensional codes and converting the splicing result into a second value in the target base includes: superimposing at least two of the initial two-dimensional codes and obtaining the number information and the superimposition order of the superimposed initial two-dimensional codes; using the number information and the superimposition order to splice the first values ​​of the same block in each of the initial two-dimensional codes to determine the splicing result of each block in the coding area; using the number information to determine the target base; using the target base to convert the splicing result of each block to determine the second value of each block in the coding area, wherein the second value is a single-digit value.

[0008] In some embodiments, the digital three-dimensional code includes a functional area and a coding area; the functional area is used to store the number information and the superposition order, and the coding area is used to store the original information of at least two of the initial two-dimensional codes.

[0009] In some embodiments, the use of the second numerical value to assign values ​​in a two-dimensional code template to form a digital three-dimensional code includes: obtaining a plane matrix of the same type as the initial two-dimensional code as a two-dimensional code template, wherein the two-dimensional code template has at least a first functional area, a second functional area, and a coding area; setting the number of superpositions or the order of superpositions of the initial two-dimensional code in the first functional area, and setting the superposition order or the number of superpositions of the initial two-dimensional code in the second functional area; and using the second numerical value to assign values ​​in the corresponding blocks of the coding area to form the digital three-dimensional code.

[0010] In some embodiments, the original information is split into multiple information segments, and each of the information segments is stored in an initial two-dimensional code to determine multiple consecutively related initial two-dimensional codes, wherein the encoding method of the multiple initial two-dimensional codes is the same; the digital three-dimensional code is generated using the multiple consecutively related initial two-dimensional codes so that the digital three-dimensional code stores the original information of multiple information segments.

[0011] To solve the above technical problems, another technical solution adopted in the present application is: to provide a digital three-dimensional code recognition method, comprising: obtaining a second value of each block in a digital three-dimensional code, wherein the digital three-dimensional code stores original information of at least two initial two-dimensional codes; converting the second value into a splicing result of the initial two-dimensional codes in the same block, and using the splicing result to determine the first value of each of the initial two-dimensional codes in the same block; using the first value to determine the encoding method of the initial two-dimensional code, and then identifying the original information of the initial two-dimensional code stored in the digital three-dimensional code.

[0012] In one embodiment of the present application, the digital three-dimensional code includes a functional area and a coding area; the converting of the second value into a splicing result of the initial two-dimensional code in the same block, and using the splicing result to determine the first value of each of the initial two-dimensional codes in the same block, includes: obtaining the number information and the stacking order of the initial two-dimensional codes in the functional area; using the number information, converting the second value into a splicing result of the initial two-dimensional code in the same block; using the number information and the stacking order, splitting the splicing result into the first value of each of the initial two-dimensional codes in the same block.

[0013] In one embodiment of the present application, the method of using the first numerical value to determine the encoding method of the initial two-dimensional code and then identifying the original information stored in the initial two-dimensional code includes: using the first numerical value to determine the pixel distribution of each block in the initial two-dimensional code; using the pixel distribution to determine the encoding method of the initial two-dimensional code, and then identifying the original information stored in the initial two-dimensional code through the encoding method.

[0014] To solve the above technical problems, another technical solution adopted in the present application is: to provide an electronic device, the electronic device comprising a memory and a processor coupled to the memory, the memory storing at least one computer program, and the at least one computer program, when loaded and executed by the processor, is used to implement the digital three-dimensional code generation method as described above, or to implement the digital three-dimensional code recognition method as described above.

[0015] To solve the above technical problems, another technical solution adopted in the present application is: providing a computer-readable storage medium, wherein the computer-readable storage medium has at least one program, and when the at least one program is loaded and executed by the processor, it is used to implement the digital three-dimensional code generation method as described above, or to implement the digital three-dimensional code recognition method as described above.

[0016] Different from the current technology, the digital three-dimensional code generation method provided by the present application includes: obtaining at least two initial two-dimensional codes with the same encoding method, and assigning a value to each block in each initial two-dimensional code to determine the first value of each block, wherein each initial two-dimensional code stores original information; splicing the first values ​​of the same block of at least two initial two-dimensional codes, and converting the splicing result into a second value of the target base; using the second value to assign in the two-dimensional code template to form a digital three-dimensional code, wherein the original information of at least two initial two-dimensional codes is stored in the digital three-dimensional code; that is, in the present application, by superimposing the first value of the mark of each block of the initial two-dimensional code with the same encoding method, splicing and converting it into a second value, and then assigning it in the two-dimensional code template to form a digital three-dimensional code, the storage capacity of data storage can be effectively improved, thereby improving the speed of data processing, and reducing the misrecognition caused by color errors, thereby improving information reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0018] Figure 1 It is a flow chart of an embodiment of a method for generating a digital three-dimensional code in the present application;

[0019] Figure 2a It is a structural diagram of an embodiment of code A in this application. Figure 2b is a schematic diagram of the structure of an embodiment of code B in this application, Figure 2c It is a schematic diagram of the structure of an embodiment of a C code in this application;

[0020] Figure 3a It is a structural diagram of an embodiment of assigning a value to the A code in this application. Figure 3b is a structural diagram of an embodiment of assigning a value to a B code in this application, Figure 3c It is a structural diagram of an embodiment of assigning a value to a C code in this application;

[0021] Figure 4 It is a structural schematic diagram of an embodiment of a splicing result in this application;

[0022] Figure 5 It is a structural schematic diagram of an embodiment of a digital three-dimensional code in this application;

[0023] Figure 6 It is a flow chart of an embodiment of a digital three-dimensional code recognition method in this application;

[0024] Figure 7 It is a structural diagram of an embodiment of a digital three-dimensional code generation system in this application;

[0025] Figure 8 It is a structural diagram of an embodiment of a digital three-dimensional code recognition system in this application;

[0026] Fig. 9 It is a structural schematic diagram of an embodiment of an electronic device in the present application;

[0027] Fig.10 It is a structural diagram of an embodiment of a computer-readable storage medium in the present application. DETAILED DESCRIPTION

[0028] The present invention will be further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only used to illustrate the present invention, but are not intended to limit the scope of the present invention. Similarly, the following examples are only partial embodiments of the present invention rather than all embodiments, and all other embodiments obtained by those of ordinary skill in the art without creative work are within the scope of protection of the present invention.

[0029] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0030] Traditional two-dimensional codes are mainly divided into two categories: row-type two-dimensional barcodes and matrix-type two-dimensional barcodes. Row-type two-dimensional codes are based on one-dimensional barcodes. They inherit some characteristics of one-dimensional codes in terms of coding design, verification principle, and reading method. Common row-type two-dimensional codes include Code 16K, PDF417, Code49, etc.; matrix-type two-dimensional codes use a certain set of graphics to distribute black and white graphics on a plane (two-dimensional direction) according to a certain rule to record data symbol information. In terms of coding, they cleverly use the 0 and 1-based concepts that constitute the internal logic basis of computers, and use several sets of shapes corresponding to binary to represent text numerical information. Common matrix-type two-dimensional barcodes mainly include QR Code, Data Matrix, Maxi Code, Code one, etc.

[0031] Compared with one-dimensional code, two-dimensional code has the following advantages: high coding density and large information capacity; multiple coding objects, which can represent text and images; strong fault tolerance and error correction function; high decoding reliability; encryption and good anti-counterfeiting performance. With the widespread application of two-dimensional code, people have further requirements for barcode information storage and information processing. Solutions to increase barcode size or increase barcode density have their limitations: increasing barcode size requires the barcode carrier to provide a larger printing area; increasing barcode density requires higher requirements for printing equipment and reading equipment in terms of accuracy, and will reduce the barcode's anti-interference ability, greatly limiting the use environment of the barcode; to solve these problems, two-dimensional barcodes have been expanded and a new barcode, three-dimensional code, has been proposed. Three-dimensional code adds a dimension to carry information on the basis of two-dimensional code to increase the information capacity of the barcode. The most common three-dimensional code uses color as the third dimension of information carrier. It applies color coding on the basis of traditional barcodes and represents data information through different color combinations. It has the code structure of a two-dimensional barcode, but its information density is much greater than that of a two-dimensional barcode of the same size. However, color is used as the information carrier of the third dimension in the three-dimensional code, and the information carrier form is single. The data information is represented by the combined color, which makes the data capacity limited, and the boundaries of the combined colors may be unclear, resulting in data information errors and poor information security and reliability, thus affecting the scope of use of the three-dimensional code.

[0032] Therefore, a method for generating a digital three-dimensional code is provided, which can effectively increase the storage capacity of data storage, thereby increasing the speed of data processing, and reducing misrecognition caused by color errors, thereby improving information reliability.

[0033] See also Figure 1 , Figure 1 is a flow chart of an embodiment of a method for generating a digital three-dimensional code in the present application; it should be noted that if there is a substantial result, the method of the present application is not based on Figure 1 The process sequence shown is limited.

[0034] like Figure 1 As shown, the method for generating a digital three-dimensional code may include the following steps.

[0035] S10, obtaining at least two initial two-dimensional codes with the same encoding method, and assigning a value to each block in each initial two-dimensional code to determine a first value of each block, wherein each initial two-dimensional code stores original information.

[0036] Among them, the initial two-dimensional code is the currently commonly used two-dimensional code, the encoding method refers to the encoding method of forming the two-dimensional code, such as the encoding methods corresponding to the row-type two-dimensional barcode and the matrix two-dimensional barcode respectively. The same encoding method means that the type of two-dimensional code formed is the same, such as the matrix two-dimensional code. The number of two-dimensional codes formed by the same encoding method can be two or more, and the number of rows and columns of each two-dimensional code remains consistent; the block refers to the block corresponding to each pixel distribution in the two-dimensional code, such as black blocks and white blocks; the first value is a constant, and the original information is the information stored in the initial two-dimensional code.

[0037] Specifically, at least two currently commonly used initial QR codes corresponding to the same encoding method are obtained, each QR code stores corresponding original information, and based on the distribution of black blocks and white blocks in the initial QR code, each block in each QR code is assigned a value, so that each block of each QR code has a corresponding first numerical value.

[0038] In some embodiments, different values ​​may be assigned to the black blocks and the white blocks to distinguish the black blocks from the white blocks. For example, the black blocks are assigned a value of 1 and the white blocks are assigned a value of 0.

[0039] S20, concatenating first values ​​of the same block of at least two initial two-dimensional codes, and converting the concatenated result into a second value of the target base.

[0040] Among them, splicing refers to splicing the first values ​​of the same block together in order. For example, three initial QR codes correspond to three first values ​​in the same block, and the splicing result is a three-digit value of the arrangement of the same block; the target system refers to another system different from the system corresponding to the first value, and the second value is the three-digit number converted to the number corresponding to the target system.

[0041] Specifically, after obtaining the first value of each block of each initial QR code, for the same block, the first values ​​of the same block of at least two initial QR codes are spliced ​​together to obtain a value of at least two digits. As the splicing result, the target base is determined based on the value of the at least two digits, and then the value of the at least two digits is converted into a second value corresponding to the target base.

[0042] In some embodiments, the first value is a single digit, and the second value is also a single digit.

[0043] S30. Assign the second numerical value to the two-dimensional code template to form a digital three-dimensional code, wherein original information of at least two initial two-dimensional codes is stored in the digital three-dimensional code.

[0044] The QR code template is a blank template corresponding to the same encoding method as the initial QR code.

[0045] Specifically, after obtaining the second value of each block, a blank QR code template is used to assign the corresponding second value to each block in the QR code template to form a digital three-dimensional code. Because the second value corresponding to each block in the digital three-dimensional code is converted from at least two first values, the second value of each block contains the original information corresponding to the same block in the initial QR code. Therefore, the digital three-dimensional code contains the original information corresponding to at least two initial QR codes.

[0046] In this embodiment, for the initial two-dimensional code with the same encoding method, each block in the initial two-dimensional code is converted into a numerical value according to the element distribution to obtain the first numerical value corresponding to each block, and then the first numerical values ​​are spliced ​​and converted, and the second numerical value of the target base obtained by the conversion is assigned to a blank two-dimensional code template to obtain a digital three-dimensional code, which can effectively increase the storage capacity of data storage, and the original information of multiple initial two-dimensional codes can be stored in the corresponding digital three-dimensional code, which can increase the speed of data processing. For example, there is no need to scan multiple initial two-dimensional codes, which effectively improves the reading speed, and there is no color dimension, which reduces the misrecognition caused by color errors and improves information reliability.

[0047] In some embodiments, step S10 obtains at least two initial two-dimensional codes with the same encoding method, and assigns a value to each block in each initial two-dimensional code to determine the first value of each block, which may include the following operations.

[0048] First, the pixel distribution of each block in the encoding area of ​​each initial two-dimensional code is obtained.

[0049] Among them, each initial two-dimensional code includes at least a coding area, which is the area for storing original information; pixel distribution refers to the distribution of black blocks and white blocks, that is, the distribution of dot pixels and blank pixels.

[0050] Specifically, for each initial two-dimensional code, since the original information is stored, a pixel distribution corresponding to the original information is formed in the coding area of ​​the initial two-dimensional code, and then the pixel distribution of each block in the coding area of ​​each initial two-dimensional code can be obtained.

[0051] See also Figure 2a , Figure 2b and Figure 2c , Figure 2a It is a structural diagram of an embodiment of code A in this application. Figure 2b is a schematic diagram of the structure of an embodiment of code B in this application, Figure 2c It is a structural diagram of an embodiment of C code in this application.

[0052] like Figure 2a , Figure 2b and Figure 2c As shown, QR code A, QR code B and QR code C are actual QR codes, which are represented here as block diagrams. The pixel distribution of each block in the encoding area of ​​each initial QR code is determined by the black blocks and white blocks in the actual QR code.

[0053] Then, each block is binarized using pixel distribution to determine a first value of each block in each initial two-dimensional code.

[0054] The binarization process refers to assigning a value to each block according to pixel distribution.

[0055] Specifically, after obtaining the pixel distribution of each block, the black block and white block corresponding to each block in the initial QR code can be determined, and then each block is assigned a value based on the pixel distribution. For example, the black block is assigned a value of 1 and the white block is assigned a value of 0, and the first numerical value corresponding to each block in each initial QR code is determined.

[0056] See also Figure 3a , Figure 3b and Figure 3c , Figure 3a It is a structural diagram of an embodiment of assigning a value to the A code in this application. Figure 3b is a structural diagram of an embodiment of assigning a value to a B code in this application, Figure 3c It is a structural diagram of an embodiment of assigning a value to a C code in the present application.

[0057] like Figure 3a , Figure 3b and Figure 3c As shown, a black block is assigned a value of 1, and a white block is assigned a value of 0, and a first numerical value corresponding to each block in each initial two-dimensional code is determined.

[0058] In some embodiments, after determining the first value of each block, it is also necessary to clear the pixel distribution corresponding to each block, that is, remove the background color of the black block and the white block to form a blank block, and then assign the first value to the blank block.

[0059] In this embodiment, the pixel distribution of the initial two-dimensional code is converted into the first numerical value corresponding to each block, which is convenient for the subsequent splicing and conversion of numerical values, that is, provides a basis for the subsequent.

[0060] In some embodiments, step S20 concatenates the first values ​​of the same block of at least two initial two-dimensional codes and converts the concatenation result into a second value of the target base, which may include the following steps.

[0061] First, at least two initial two-dimensional codes are superimposed, and the number information and superimposition order of the superimposed initial two-dimensional codes are obtained.

[0062] Among them, superposition refers to the superposition of multiple initial two-dimensional codes corresponding to the production of digital three-dimensional codes; the number information refers to the number of initial two-dimensional codes that need to be superimposed; and the superposition order refers to the order in which the two-dimensional codes are superimposed in sequence.

[0063] Specifically, obtain the number information of the initial QR codes that need to be superimposed, and obtain the superposition order of the superimposed initial QR codes; for example, the initial QR codes that need to be superimposed include code A, code B and code C, then the number information is 3, and the superposition order can be code A, code B, code C, or code A, code C, code B, or code B, code A, code C, or code B, code C, code A, or code C, code A, code B, or code C, code B, code A, and you can select any superposition order from them.

[0064] Secondly, the first values ​​of the same block in each initial two-dimensional code are spliced ​​using the number information and the superposition order to determine the splicing result of each block in the coding area.

[0065] The splicing refers to splicing the first values ​​of the same block according to the number information and the superposition order to form a value of the number of bits corresponding to the number information.

[0066] Specifically, after obtaining the number information and the stacking order of the initial two-dimensional code, the first value of the same block is spliced ​​in each block corresponding to the two-dimensional code, and then the splicing result of each block in the coding area is determined.

[0067] See also Figure 4 , Figure 4 It is a structural schematic diagram of an embodiment of the splicing result in this application.

[0068] like Figure 4 As shown, the number of superposition information is set to 3, and the superposition order is A code, B code, and C code. After superimposing A code, B code, and C code, each block in the coding area has a corresponding three-digit value.

[0069] Next, use the number information to determine the target base.

[0070] The target base refers to a suitable base determined based on the number information.

[0071] Specifically, the bit value corresponding to the unit-digit information in each block needs to be converted into the unit-digit value, and the base corresponding to the conversion is the target base.

[0072] Then, the splicing result of each block is converted using the target base to determine the second value of each block in the coding area, wherein the second value is a single-digit value.

[0073] The second value refers to a value obtained after converting the splicing result, and the second value is a single digit.

[0074] Specifically, after determining the target system, the splicing result corresponding to each block in the coding area is converted to the value of the target mechanism, and then the second value of each block in the coding area is determined; for example: taking the number of superimposed information as 3, and the superimposed order as A code, B code, and C code as an example, after superposition, each block in the coding area has a corresponding three-digit value, then hexadecimal can be used as the target system to convert the three-digit value into a single-digit value, that is, 000 is converted to 0, 001 is converted to 1, 010 is converted to 2, 100 is converted to 4, 101 is converted to 5, 110 is converted to 6, and 111 is converted to 7; and then the second value of the corresponding single-digit number in each block is determined.

[0075] In some embodiments, the digital three-dimensional code includes a functional area and a coding area.

[0076] The function area is used to store the number information and the superposition order, and the coding area is used to store the original information of at least two initial two-dimensional codes.

[0077] The coding region is Figure 4 The area where numerical conversion is performed, and the functional area is the area where non-numerical conversion is performed.

[0078] For details, please refer to Figure 4 In the functional area of ​​non-numeric conversion, the number information and superposition order of the initial two-dimensional code superposition can be stored; in addition, because the initial two-dimensional code itself stores the original information, and the coding area for numerical conversion still stores the corresponding original information, the coding area will store the original information of the superimposed initial two-dimensional code.

[0079] In some embodiments, step S30 uses the second numerical value to assign a value in the two-dimensional code template to form a digital three-dimensional code, which may include the following steps.

[0080] First, a plane matrix with the same encoding method as the initial two-dimensional code is obtained as a two-dimensional code template, wherein the two-dimensional code template has at least a first functional area, a second functional area and a coding area.

[0081] The plane matrix refers to a blank matrix corresponding to the same encoding method as the initial two-dimensional code.

[0082] Specifically, a corresponding blank plane matrix is ​​obtained using the same encoding method as the initial two-dimensional code and used as a two-dimensional code template. In addition, in the two-dimensional code template, the encoding area is blank, while the functional area at the boundary line position retains the format of the initial two-dimensional code.

[0083] In some embodiments, the QR code template may have a first functional area and a second functional area, for example, Figure 4 The rectangular box in the upper left corner is the first functional area. Figure 4 The rectangular box in the upper right corner is the second functional area; in some embodiments, it may also include Figure 4 The rectangular box in the lower left corner serves as the third functional area.

[0084] Secondly, the number information or the order of superimposed initial two-dimensional codes is set in the first functional area, and the order or the number information of superimposed initial two-dimensional codes is set in the second functional area.

[0085] Specifically, after obtaining a blank QR code template, the number information of the initial QR codes to be superimposed can be set in the first functional area, and the superposition order of the initial QR codes can be set in the second functional area; or the superposition order of the initial QR codes can be set in the first functional area, and the number information of the initial QR codes to be superimposed can be set in the second functional area.

[0086] Next, the second numerical value is used to assign values ​​in the corresponding blocks of the coding area to form a digital three-dimensional code.

[0087] Specifically, for each block in the coding area, a value is assigned in the block corresponding to the second value, so that each block in the coding area in the QR code template has a corresponding second value. Because the number information and superposition order of the initial QR codes are set in the first functional area and the second functional area, a digital three-dimensional code can be formed.

[0088] See also Figure 5 , Figure 5 It is a structural diagram of an embodiment of a digital three-dimensional code in this application.

[0089] like Figure 5 As shown, three initial two-dimensional codes: A code, B code and C code, the superposition order is A code, B code, C code, the initial two-dimensional code system is binary, and the numerical two-dimensional code system is hexadecimal as an example for explanation; specifically, the first functional area is assigned a value of 7, that is, 7 in hexadecimal, and the corresponding binary system is 111, each 1 represents a layer of initial two-dimensional code, and three 1s represent the superposition of three layers of initial two-dimensional codes, that is, three initial two-dimensional codes are superimposed; the second functional area is assigned a value of 1, which indicates that the superposition order is that the first layer of initial two-dimensional code is on the far right, that is, the superposition order is C code, B code, A code; if the second functional area is assigned a value of 0, it indicates that the superposition order is that the first layer of initial two-dimensional code is on the far left, that is, the superposition order is A code, B code, C code.

[0090] In some embodiments, it also includes:

[0091] The original information is split into multiple information segments, and each information segment is stored in an initial two-dimensional code to determine multiple consecutive related initial two-dimensional codes, wherein the encoding method of the multiple initial two-dimensional codes is the same.

[0092] The original information may be information with relatively large data contents, and if one initial QR code cannot store all of the information, the original information may be divided into multiple consecutively related initial QR codes.

[0093] Specifically, for original information with more data content, it can be divided according to the storage data volume of the initial two-dimensional code to obtain multiple information segments, and then each information segment is stored in a corresponding initial two-dimensional code to obtain multiple consecutive related initial two-dimensional codes.

[0094] A digital three-dimensional code is generated by using a plurality of consecutively related initial two-dimensional codes, so that the digital three-dimensional code stores original information of a plurality of information segments.

[0095] Specifically, because they are continuously related initial QR codes, in order to be able to be stored in one identification code, multiple continuously related initial QR codes are generated into corresponding digital three-dimensional codes according to the above-mentioned digital three-dimensional code generation method, so that multiple information segments of the original information are stored in the same digital three-dimensional code, which increases the storage capacity of data storage, so that subsequent identification can be performed by scanning the digital three-dimensional code to obtain all the original information without scanning the corresponding multiple initial QR codes, thereby reducing the speed of data processing.

[0096] In some embodiments, the present application also provides a digital three-dimensional code recognition method.

[0097] See also Figure 6 , Figure 6 It is a flow chart of an embodiment of a digital three-dimensional code recognition method in the present application.

[0098] like Figure 6 As shown, the digital three-dimensional code recognition method may include the following steps.

[0099] Y10. Obtain a second value of each block in the digital three-dimensional code, wherein the digital three-dimensional code stores original information of at least two original two-dimensional codes.

[0100] Among them, the digital three-dimensional code refers to a digital three-dimensional code formed by the aforementioned digital three-dimensional code generation method, which stores the original information of at least two initial two-dimensional codes.

[0101] Specifically, for the digital three-dimensional code, the value of each block in the digital three-dimensional code is extracted to determine the second value corresponding to each block in the encoding area of ​​the digital three-dimensional code.

[0102] Y20. Convert the second value into a concatenation result of the initial two-dimensional codes in the same block, and use the concatenation result to determine the first value of each initial two-dimensional code in the same block.

[0103] The conversion here refers to converting the second numerical value corresponding to the target base into the first numerical value of the base corresponding to the initial QR code.

[0104] Specifically, after obtaining the second value of each block of the digital three-dimensional code, the second value of each block is converted into the splicing result of the initial two-dimensional code in the same block according to the conversion rules in the digital three-dimensional code generation method, and then the splicing result is divided into the first value of each initial two-dimensional code in the same block using the splicing rules.

[0105] In some embodiments, the conversion rule is the reverse conversion of the initial two-dimensional code into the digital three-dimensional code of the target base, converting the second numerical value into the numerical value of the number of bits corresponding to the number information of the superimposed initial two-dimensional codes; the splicing rule is the rule for splicing according to the order of superposition.

[0106] Y30. Use the first numerical value to determine the encoding method of the initial two-dimensional code, and then identify the original information stored in the original two-dimensional code.

[0107] The encoding method refers to the rules set for constructing the identification code. For example, if the number of rows and columns of the initial two-dimensional code is consistent, and both the number of rows and columns are 21, that is, 21 code elements, then each block of the corresponding encoding area has a first value.

[0108] Specifically, after obtaining the first value of each block, the number of rows and columns corresponding to the coding area of ​​the initial QR code can be determined, and then the first value can be assigned to the corresponding block. The encoding method of the initial QR code can be determined, and after the first value is assigned to each block in the coding area, the initial QR code is obtained, and then the original information corresponding to the initial QR code contained in the digital three-dimensional code can be identified.

[0109] In this embodiment, for a digital three-dimensional code formed by superimposing multiple initial two-dimensional codes, the second value of the digital three-dimensional code is obtained, and then the first value of the superimposed initial two-dimensional code is determined, so that the original information of the initial two-dimensional code stored in the digital three-dimensional code can be identified. That is, compared with the initial two-dimensional code, the data storage capacity of the digital three-dimensional code is effectively improved, and misrecognition due to color errors will not occur.

[0110] In some embodiments, step Y20 converts the second value into a concatenation result of the initial two-dimensional codes in the same block, and uses the concatenation result to determine the first value of each initial two-dimensional code in the same block, which may include the following steps.

[0111] First, the number information and the order of superimposed initial two-dimensional codes in the functional area are obtained.

[0112] Among them, there can be multiple functional areas, for example, a first functional area and a second functional area, the first functional area is set with the number information or the superposition order of the initial QR code, and the second functional area is set with the superposition order or the number information of the initial QR code, that is, the first functional area and the second functional area are respectively set with one of the superposition order and the superposition number information.

[0113] Specifically, because the digital three-dimensional code is provided with at least a first functional area and a second functional area, and corresponding superposition order and superposition number information are respectively set in the first functional area and the second functional area, the superposition number information and superposition order of the initial two-dimensional code can be obtained from the digital three-dimensional code.

[0114] Secondly, the number information is used to convert the second value into a splicing result of the initial two-dimensional code in the same block.

[0115] Among them, the number information refers to the number of superimposed initial two-dimensional codes corresponding to the digital three-dimensional code, and the second value is converted from the splicing result of the superimposed initial two-dimensional codes in the same block. Therefore, the number information can be used to convert the second value into the splicing result.

[0116] Specifically, after obtaining the number information of the superimposed initial two-dimensional codes corresponding to the digital three-dimensional code, it can be determined how many initial two-dimensional codes are superimposed to obtain the digital three-dimensional code, and then the number of bits of the splicing result can be determined, that is, the number of bits corresponding to the number information. Therefore, the second numerical value can be converted into the splicing result of the initial two-dimensional code in the same block.

[0117] Next, the splicing result is split into the first value of each initial two-dimensional code in the same block by using the number information and the superposition order.

[0118] The stacking order refers to the stacking order of multiple initial two-dimensional codes corresponding to the digital three-dimensional code.

[0119] Specifically, after obtaining the number information and stacking order of the initial two-dimensional codes corresponding to the digital three-dimensional code, it is possible to determine the digital three-dimensional code that is composed of the same number of initial two-dimensional codes and has a clear stacking order; and then the splicing result can be split into the first numerical value of each initial two-dimensional code in the same block based on the number information and the stacking order.

[0120] In some embodiments, step Y30 uses the first numerical value to determine the encoding method of the initial two-dimensional code, and then identifies the original information stored in the original two-dimensional code.

[0121] Firstly, the pixel distribution of each block in the initial two-dimensional code is determined by using a first value.

[0122] Specifically, the pixel distribution is the distribution of black blocks and white blocks, and the first numerical value is determined by the corresponding values ​​of the black blocks and the white blocks. For example, the black block is assigned a value of 1 and the white block is assigned a value of 0. Therefore, the pixel distribution of each block in the initial QR code can be determined using the first numerical value of each block.

[0123] Secondly, the pixel distribution is used to determine the encoding method of the initial two-dimensional code, and then the original information stored in the original two-dimensional code is identified through the encoding method.

[0124] Specifically, the pixel distribution clarifies the number of rows and columns in the initial QR code, and clarifies the distribution of black blocks and white blocks in each block in the coding area. Therefore, the encoding method of the initial QR code can be determined, and then based on the encoding method of the initial QR code, the original information corresponding to the multiple original QR codes included in the digital three-dimensional code can be determined.

[0125] In this embodiment, the second value of the digital three-dimensional code is reversely converted into the first value corresponding to the initial two-dimensional code, and then the original information of the initial two-dimensional code stored in the digital three-dimensional code is identified. Compared with the initial two-dimensional code, the digital three-dimensional code has increased storage capacity and will not cause misidentification due to color errors, thereby improving recognition accuracy and thus improving data processing speed.

[0126] In some embodiments, a digital three-dimensional code generation system is also provided.

[0127] See also Figure 7 , Figure 7 It is a structural diagram of an embodiment of a digital three-dimensional code generation system in the present application.

[0128] like Figure 7 As shown, the digital three-dimensional code generation system 400 includes a first acquisition module 410, a second acquisition module 420, and an assignment module 430; wherein the first acquisition module is used to obtain at least two initial two-dimensional codes of the same encoding method, and assign a value to each block in each initial two-dimensional code to determine the first value of each block, and each initial two-dimensional code stores original information; the second acquisition module splices the first values ​​of the same block of at least two initial two-dimensional codes, and converts the splicing result into a second value of the target base; the assignment module uses the second value to assign in the two-dimensional code template to form a digital three-dimensional code, wherein the original information of at least two initial two-dimensional codes is stored in the digital three-dimensional code.

[0129] In some embodiments, a digital three-dimensional code recognition system is also provided.

[0130] See also Figure 8 , Figure 8 It is a structural diagram of an embodiment of a digital three-dimensional code recognition system in this application.

[0131] like Figure 8 As shown, the digital three-dimensional code recognition system 500 includes a third acquisition module 510, a first determination module 520 and a second determination module 530; wherein the third acquisition module is used to obtain the second value of each block in the digital three-dimensional code, wherein the digital three-dimensional code stores original information of at least two original two-dimensional codes; the first determination module converts the second value into a splicing result of the initial two-dimensional codes in the same block, and uses the splicing result to determine the first value of each initial two-dimensional code in the same block; the second determination module uses the first value to determine the encoding method of the initial two-dimensional code, and then identifies the original information stored in the original two-dimensional code.

[0132] In some embodiments, an electronic device is also provided.

[0133] See also Fig. 9 , Fig. 9 1 is a schematic diagram of the structure of an electronic device in an embodiment of the present application. The electronic device can execute the step of generating a digital three-dimensional code in the above method, or can execute the step of recognizing a digital three-dimensional code in the above method.

[0134] The electronic device 600 includes a memory 620, a processor 610 coupled to the memory, and at least one computer program stored in the memory 620 and executable on the processor 610; when the processor 610 loads and executes the at least one computer program, it is used to implement the step of generating a digital three-dimensional code in the above method, or to implement the step of recognizing a digital three-dimensional code in the above method. For related contents, please refer to the detailed description in the above method, which will not be repeated here.

[0135] In some embodiments, a computer-readable storage medium is also included.

[0136] See also Fig.10 , Fig.10 It is a structural diagram of an embodiment of a computer-readable storage medium in the present application.

[0137] The computer-readable storage medium 700 stores at least one program 710, which, when loaded and executed by the processor, is used to implement the step of generating a digital three-dimensional code in the above method, or to implement the step of recognizing a digital three-dimensional code in the above method. For related contents, please refer to the detailed description of the above method, which will not be repeated here.

[0138] The above scheme, by superimposing the first numerical value of the mark of each block of the initial two-dimensional code with the same encoding method, splicing and converting it into a second numerical value, and then assigning the value in the two-dimensional code template to form a digital three-dimensional code, can effectively increase the storage capacity of data storage, thereby increasing the speed of data processing, and reducing the misrecognition caused by color errors, thereby improving information reliability.

[0139] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0140] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0141] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0142] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0143] The above description is only an implementation mode of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for generating a digital three-dimensional code, characterized in that: include: Obtain at least two initial two-dimensional codes with the same encoding method, and assign a value to each block in each of the initial two-dimensional codes to determine a first value of each block, wherein each of the initial two-dimensional codes stores original information; splicing the first values ​​of the same block of at least two of the initial two-dimensional codes, and converting the splicing result into a second value of the target base; The second numerical value is assigned to a two-dimensional code template to form a digital three-dimensional code, wherein original information of at least two of the initial two-dimensional codes is stored in the digital three-dimensional code.

2. The method for generating a digital three-dimensional code according to claim 1, characterized in that: The initial two-dimensional code at least includes a coding area; The obtaining of at least two initial two-dimensional codes in the same encoding mode, and assigning a value to each block in each of the initial two-dimensional codes to determine a first value of each block includes: Obtaining pixel distribution of each block of the encoding area in each of the initial two-dimensional codes; Binarization is performed on each block using the pixel distribution to determine a first value of each block in each of the initial two-dimensional codes.

3. The method for generating a digital three-dimensional code according to claim 1, characterized in that: The step of concatenating the first values ​​of the same block of at least two of the initial two-dimensional codes and converting the concatenated result into a second value of the target base includes: Superimposing at least two of the initial two-dimensional codes, and obtaining the number information and superimposition order of the superimposed initial two-dimensional codes; Using the number information and the superposition order, the first values ​​of the same block in each of the initial two-dimensional codes are spliced ​​to determine the splicing result of each block in the coding area; Determine the target base using the number information; The splicing result of each block is converted using the target base to determine a second value of each block in the coding area, wherein the second value is a single-digit value.

4. The method for generating a digital three-dimensional code according to claim 3, characterized in that: The digital three-dimensional code includes a functional area and a coding area; The function area is used to store the number information and the superposition order, and the coding area is used to store original information of at least two initial two-dimensional codes.

5. The method for generating a digital three-dimensional code according to claim 1, characterized in that: The step of using the second numerical value to assign a value to a two-dimensional code template to form a digital three-dimensional code includes: Acquire a plane matrix with the same encoding method as the initial two-dimensional code as a two-dimensional code template, wherein the two-dimensional code template at least has a first functional area, a second functional area and a coding area; Setting the number of superimposed initial two-dimensional codes or the order of superimposed initial two-dimensional codes in the first functional area, and setting the order of superimposed initial two-dimensional codes or the number of superimposed initial two-dimensional codes in the second functional area; The second numerical value is used to assign a value in a corresponding block in the encoding area to form the digital three-dimensional code.

6. The method for generating a digital three-dimensional code according to claim 1, characterized in that: Also includes: Splitting the original information into multiple information segments, and storing each of the information segments in an initial two-dimensional code to determine multiple consecutive related initial two-dimensional codes, wherein the encoding method of the multiple initial two-dimensional codes is the same; The digital three-dimensional code is generated by using a plurality of continuously related initial two-dimensional codes, so that the digital three-dimensional code stores the original information of a plurality of information segments.

7. A digital three-dimensional code recognition method, characterized in that: include: Obtaining a second value of each block in the digital three-dimensional code, wherein the digital three-dimensional code stores original information of at least two initial two-dimensional codes; Converting the second value into a splicing result of the initial two-dimensional codes in the same block, and using the splicing result to determine the first value of each of the initial two-dimensional codes in the same block; The first value is used to determine the encoding method of the initial two-dimensional code, and then the original information of the initial two-dimensional code stored in the digital three-dimensional code is identified.

8. The digital three-dimensional code recognition method according to claim 7, characterized in that: The digital three-dimensional code includes a functional area and a coding area; The step of converting the second value into a splicing result of the initial two-dimensional codes in the same block, and using the splicing result to determine the first value of each of the initial two-dimensional codes in the same block includes: Obtaining information on the number and order of superposition of the initial two-dimensional codes in the functional area; Using the number information, convert the second value into a splicing result of the initial two-dimensional code in the same block; The splicing result is split into the first value of each of the initial two-dimensional codes in the same block by using the number information and the superposition order.

9. The digital three-dimensional code recognition method according to claim 8, characterized in that: The using the first value to determine the encoding method of the initial two-dimensional code, and then identifying the original information stored in the initialization two-dimensional code, includes: Determine the pixel distribution of each block in the initial two-dimensional code by using the first value; The pixel distribution is used to determine the encoding method of the initial two-dimensional code, and then the original information corresponding to the initial two-dimensional code is identified through the encoding method.

10. An electronic device, characterized in that: The electronic device includes a memory and a processor coupled to the memory, the memory storing at least one computer program, and when the at least one computer program is loaded and executed by the processor, it is used to implement the digital three-dimensional code generation method as described in any one of claims 1 to 6, or to implement the digital three-dimensional code recognition method as described in any one of claims 7 to 9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium has at least one program, which, when loaded and executed by the processor, is used to implement the digital three-dimensional code generation method as described in any one of claims 1 to 6, or to implement the digital three-dimensional code recognition method as described in any one of claims 7 to 9.