A method, system, device and storage medium for generating a multi-modal three-dimensional code
By integrating multiple style barcodes into a code diagram and a multimodal 3D code generation method that integrates facial features, the problem of reading limitations and display area of existing QR codes and 1D codes is solved, and the reading and reading that is compatible with multiple code systems and improving security is achieved.
Patent Information
- Application Number
- CN202210901293.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-28
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2042-07-28
AI Technical Summary
The existing QR codes and one-R codes have their own reading restrictions, and they cannot read information under damage or maximum fault tolerance. Moreover, multiple code systems need to be generated and arranged separately, which increases the code generation and layout time and requires a larger display area.
The multimodal 3D code generation method is used to integrate multiple styles of barcodes in a code diagram. By generating error correction code words and arranging binary bit streams, a three-dimensional code compatible with multiple code barcodes is formed, and the face features of the intermediate picture are integrated into the code generation information to improve security.
It realizes a three-dimensional code that integrates multiple code systems in a code diagram, is compatible with multiple scanning methods, meets multiple reading needs, and improves security through facial feature verification, reduces code generation and layout time, and reduces the display area requirement.
Smart Images

Figure CN115271016B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method, system, device and storage medium for generating a multi-modal three-dimensional code, and belongs to the technical fields of image processing and coding. Background Art
[0002] In the context of the rapid development of the Internet and the continuous upgrading of mobile terminals, one-dimensional barcodes and two-dimensional barcodes, as a data storage and communication technology that records data information by means of geometric figures and enables rapid information processing using related devices, have now been widely applied to various aspects of people's daily lives. From information query, information acquisition to download links, from electronic payment to anti-counterfeiting verification, from promotional offers to advertisement push, customers can obtain the required information immediately as long as they scan the code gently. The emergence of the code has created more possibilities for the way of information dissemination.
[0003] As the application fields and scenarios of the code are increasing, the types of codes are also increasing. There are various types of two-dimensional barcodes such as QR code, DataMatrix code, Hanxin code, PDF417, Longbei code, Douyin code, etc. Different code systems have their own advantages and disadvantages and are applied to different fields and scenarios.
[0004] Although the above different code systems have emerged in the market, they have not got rid of the constraint of one form. For example, the QR code is a two-dimensional matrix code and cannot be read by using the reading method of one-dimensional barcodes, and it is impossible to still read relevant information when the damage reaches the maximum error tolerance; PDF417 is a stacked two-dimensional barcode, but it still cannot be read by using the reading method of one-dimensional barcodes, and the same is true for other two-dimensional barcode systems. And one-dimensional barcodes are only limited to a one-dimensional plane, unable to achieve the large capacity of two-dimensional barcodes, and also unable to be read by using the method of two-dimensional barcodes.
[0005] The patent with the patent number "CN205721920U" discloses an RFID tag with a two-dimensional barcode, specifically discloses that "it includes a bottom layer, on which an RFID high-frequency electronic chip and a high-frequency electronic chip antenna are arranged, the RFID high-frequency electronic chip and the high-frequency electronic chip antenna are connected, an upper layer is arranged on the upper surface of the bottom layer, the high-frequency electronic chip antenna is located on one side of the RFID high-frequency electronic chip, and the upper layer is composed of a displayed two-dimensional barcode and a one-dimensional barcode, and the RFID high-frequency electronic chip is the same as the commodity information contained in the two-dimensional barcode and the one-dimensional barcode". This prior art realizes that when a barcode of one code system cannot be read, the information can be read by using a barcode of another code system by setting barcodes of multiple code systems on the device. However, multiple barcodes are separated, and need to be generated and arranged separately, which requires a longer barcode generation and arrangement time and a larger display area than a single barcode. Summary of the Invention
[0006] To solve the problems existing in the above-mentioned prior art, the present invention proposes a method, system, device and storage medium for generating a multi-modal three-dimensional code, which generates a three-dimensional code integrating multiple styles of barcodes in a single code image. The information of multiple barcodes can be complementary, and when one of the barcodes cannot be read, the corresponding function can be completed through another barcode.
[0007] The technical solution of the present invention is as follows:
[0008] On the one hand, the present invention proposes a method for generating a multi-modal three-dimensional code, including the following steps:
[0009] Input the style of the second barcode to be generated, the middle picture, and the code generation information;
[0010] Divide the middle area of the original image into a picture area, and one pair of opposite sides of the outer periphery of the picture area is the first barcode area, and the other pair of opposite sides is the second barcode area;
[0011] Convert the code generation information into a binary bit stream, generate an error correction codeword according to the code generation information, and place the error correction codeword after the binary bit stream;
[0012] Determine the two-dimensional code version according to the codeword length of the binary bit stream after placing the error correction codeword;
[0013] According to the two-dimensional code version, arrange the binary bit stream to the first barcode area, and place finder patterns and auxiliary positioning marks at the four corners of the original image respectively to form the first barcode in the form of a two-dimensional code;
[0014] Generate the second barcode according to the style of the second barcode to be generated and the code generation information, and place the second barcode in the second barcode area;
[0015] Put the middle picture into the picture area to obtain a three-dimensional code image.
[0016] As a preferred embodiment, the method of arranging the binary bit stream to the first barcode area is specifically:
[0017] Start from one side of the first barcode area, start writing from the first column N rows away from the top of the original image, write R binary bits per row until there are N rows remaining from the bottom of the original image;
[0018] Turn to the other side of the first barcode area, start writing from N rows away from the top of the original image and Z bits away from the version width, write R binary bits per row until there are N rows remaining from the bottom of the original image.
[0019] As a preferred embodiment, the method of generating the second barcode according to the style of the second barcode to be generated and the code generation information and placing the second barcode in the second barcode area is specifically:
[0020] Generate the second code according to the style of the to-be-generated second code and the code generation information, obtain the proportional relationship between each module in the second code, and obtain the number of modules;
[0021] According to the two-dimensional code version, calculate the distance between the finder images placed at the two corner ends on the same side of the original image;
[0022] Calculate the size of each module in the second code according to the distance between the finder images, the proportional relationship between each module, and the number of modules;
[0023] Draw the second code according to the size of each module, and copy the drawn second code into two copies and cover them on both sides of the second code area respectively.
[0024] As a preferred embodiment, the method of placing the middle picture into the picture area is specifically as follows:
[0025] Determine the aspect ratio and area of the picture area;
[0026] Calculate the aspect ratio of the middle picture. If the aspect ratio of the middle picture is the same as that of the picture area, then scale the area of the middle picture to be the same as the area of the picture area and then place it in the picture area;
[0027] If the aspect ratio of the middle picture is different from that of the picture area, then adjust the aspect ratio of the middle picture to be the same as that of the picture area, and then scale the area of the middle picture after adjusting the aspect ratio to be the same as the area of the picture area and then place it in the picture area.
[0028] As a preferred embodiment, when the middle picture contains a human face, the following steps are further included:
[0029] Use the face recognition algorithm to recognize the human face in the middle picture, extract the corresponding face features, and form a face feature vector;
[0030] After converting the code generation information into a binary bit stream, convert the face feature vector into a binary bit stream and place it after the binary bit stream of the code generation information;
[0031] In the step of generating the error correction codeword according to the code generation information, generate the corresponding error correction codeword according to the codeword of the code generation information and the codeword of the face feature vector at the same time, and place the error correction codeword after the binary bit stream of the face feature vector.
[0032] On the other hand, the present invention also proposes a multi-modal three-dimensional code generation system, which is characterized by including:
[0033] An input module for inputting the style of the second barcode to be generated, the middle picture, and the barcode generation information;
[0034] A region division module for dividing the middle region of the original image into a picture region, with one pair of opposite sides of the outer periphery of the picture region being the first barcode region and the other pair of opposite sides being the second barcode region;
[0035] A first barcode data conversion module for converting the barcode generation information into a binary bit stream, generating error correction codewords according to the barcode generation information, and placing the error correction codewords after the binary bit stream; and determining the QR code version according to the codeword length of the binary bit stream after placing the error correction codewords;
[0036] A first barcode generation module for arranging the binary bit stream into the first barcode region according to the QR code version, and respectively placing finder patterns and auxiliary positioning marks at the four corner ends of the original image to form a first barcode in the form of a QR code;
[0037] A second barcode generation module for generating a second barcode according to the style of the second barcode to be generated and the barcode generation information, and placing the second barcode in the second barcode region;
[0038] A three-dimensional code generation module for placing the middle picture into the picture region to obtain a three-dimensional code picture.
[0039] On the other hand, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the method for generating a multi-modal three-dimensional code as described in any embodiment of the present invention.
[0040] On the other hand, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the method for generating a multi-modal three-dimensional code as described in any embodiment of the present invention.
[0041] The present invention has the following beneficial effects:
[0042] 1. The method for generating a multi-modal three-dimensional code of the present invention generates a three-dimensional code that integrates multiple code systems in one code picture, has multiple modes, and the information of each mode can be complementary, can be compatible with the characteristics of multiple code system barcodes, and meets the requirements of multiple scanning methods for reading.
[0043] 2. The method for generating a multi-modal three-dimensional code of the present invention can integrate the face features in the middle picture into the barcode generation information of the first barcode, bind the barcode generation information with the face, and can complete face verification, improving the use security of the three-dimensional code. Description of the Drawings
[0044] Figure 1It is a flowchart of a method according to an embodiment of the present invention;
[0045] Figure 2 It is a schematic diagram of generating a three-dimensional code including a bar code and a QR code in an embodiment of the present invention;
[0046] Figure 3 It is a schematic diagram of the arrangement path of binary bit streams in an embodiment of the present invention;
[0047] Figure 4 It is a schematic diagram of generating a three-dimensional code including a PDF417 code and a QR code in an embodiment of the present invention;
[0048] Figure 5 It is a schematic diagram of the three-dimensional code after the positions of the PDF417 code and the QR code are replaced in an embodiment of the present invention. Detailed implementation manners
[0049] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0050] It should be understood that the step numbers used in the text are only for convenient description and do not limit the execution order of the steps.
[0051] It should be understood that the terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include the plural forms.
[0052] The terms "include" and "comprise" indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their combinations.
[0053] The term " / and" refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0054] Embodiment 1:
[0055] Refer to Figure 1 , a method for generating a multi-modal three-dimensional code, including the following steps:
[0056] S100. Input the style of the second code to be generated (such as bar code, PDF417 code, etc.), the middle picture, and the code generation information. By default, the style of the first code is a two-dimensional QR code. Of course, the default style of the first code can also be modified according to needs.
[0057] S200. Divide the middle area of the original image into a picture area. One pair of opposite sides of the outer periphery of the picture area is the first code area, and the other pair of opposite sides is the second code area. For example, the left and right side areas of the picture area are used as the first code area, and the upper and lower side areas are used as the second code area.
[0058] S300. Convert the code generation information into a binary bit stream in the form of letters, numbers, Chinese characters, special symbols, etc., and generate corresponding error correction codewords for the code generation information according to the Reed - Solomon error correction method. Put the generated error correction codewords after the binary bit stream.
[0059] S400. Calculate the version of the two-dimensional code to be used according to the final overall codeword length of the binary bit stream plus the error correction codewords after putting in the error correction codewords.
[0060] S500. According to the calculated two-dimensional code version, correspondingly arrange the binary bit stream to the first code area, and place finder patterns and auxiliary positioning marks at the four corner ends of the original image respectively to form the first code in the form of a two-dimensional code.
[0061] S600. Generate the second code according to the style of the second code to be generated and the code generation information, and place the second code in the second code area;
[0062] S700. Put the middle picture into the picture area to obtain a three-dimensional code picture. The finally generated multi-modal three-dimensional code picture is as Figure 2 shown.
[0063] Based on the solution proposed in this embodiment, it is possible to integrate multiple code systems in one code picture, with multiple modalities. The information of each modality can be complementary, and it can be compatible with the characteristics of multiple code system barcodes, meeting the requirements of multiple scanning methods for reading.
[0064] As a preferred implementation manner of this embodiment, in step S500, when correspondingly arranging the binary bit stream to the first code area, the binary bit stream is arranged according to a set manner and arrangement path. The arrangement path is as Figure 3 shown, and specifically includes the following steps:
[0065] S501. In this embodiment, the first code area is determined as the left and right side areas of the picture area. Starting from the left area, start writing from the first column of the 9th row from the top of the original image, and write 8 binary bits per row;
[0066] S502. Write sequentially from top to bottom and from left to right until there are 9 lines remaining from the bottom of the original image.
[0067] S503. Move to the left area of the first barcode area and start writing from 9 lines from the top of the original image and 8 bits from the width of the version, writing 8 binary bits per line.
[0068] S504. Write sequentially from top to bottom and from left to right until there are 9 lines remaining from the bottom of the original image.
[0069] S505. Place finder patterns and auxiliary positioning marks at the upper left, upper right, lower left, and lower right corners of the original image respectively.
[0070] As a preferred implementation of this embodiment, in step S600, the method of generating the second barcode according to the style of the to-be-generated second barcode and the barcode generation information and placing the second barcode in the second barcode area is specifically as follows:
[0071] S601. Generate the second barcode according to the style of the to-be-generated second barcode and the barcode generation information, obtain the proportional relationship between each module in the second barcode, and obtain the number of modules. For example, if the selected second barcode style is a bar code, then obtain the proportional relationship between each "bar" and "space" module, and obtain the total number of modules.
[0072] S602. Calculate the distance between the finder images placed at the two corner ends on the same side of the original image according to the calculated two-dimensional code version, such as the distance between the upper left and upper right finder patterns.
[0073] S603. Calculate the size of each module in the second barcode according to the distance between the finder images, the proportional relationship between each module, and the number of modules.
[0074] S604. Draw the second barcode according to the size of each module, and copy the drawn second barcode into two copies and cover them on both sides of the second barcode area respectively, so that the second barcode fills each single-sided area of the second barcode area as much as possible. For example, if the second barcode area is the upper and lower sides of a picture area, then cover the upper side area and the lower side area with the drawn second barcode image.
[0075] As a preferred implementation of this embodiment, in step S700, the method of placing the middle picture into the picture area is specifically as follows:
[0076] S701. Determine the aspect ratio and area of the picture area. In this embodiment, the shape of the picture area is a square, so the aspect ratio is 1:1, and the area is calculated according to the size of the two-dimensional code version.
[0077] S702. Calculate the aspect ratio of the intermediate image. If the aspect ratio of the intermediate image is 1:1, scale the area of the intermediate image to be the same as the area of the image area and then place it in the image area.
[0078] S703. If the aspect ratio of the intermediate image is not 1:1, perform scaling according to the length or width relationship. If the length of the intermediate image is greater than the width, first scale the length to the side length of the square image area, and then scale the width to the corresponding value according to the scaling ratio. If the width is greater than the length, first scale the width to the side length of the square image area, and then scale the length to the corresponding value according to the scaling ratio.
[0079] As Figure 2 shown, Figure 2 shown is a multi-modal three-dimensional code image generated when the second code style is selected as a bar code, the first code area is set on the left and right sides of the image area, and the second code area is set on the upper and lower sides of the image area. This multi-modal three-dimensional code image includes the functions of a one-dimensional bar code and a two-dimensional QR code. As Figure 4 shown, Figure 4 shown is a multi-modal three-dimensional code image generated when the second code style is selected as a PDF417 code, the first code area is set on the left and right sides, and the second code area is set on the upper and lower sides. This multi-modal three-dimensional code image includes the functions of a two-dimensional PDF417 code and a two-dimensional QR code. The areas where the first code and the second code are located can be replaced at any time. As Figure 5 shown, Figure 5 shown is a multi-modal three-dimensional code image generated when the first code area is set on the upper and lower sides and the second code area is set on the left and right sides.
[0080] Embodiment 2:
[0081] The difference between this embodiment and Embodiment 1 is that when the intermediate image contains a human face, the following steps are further included:
[0082] Before executing step S300, use a face recognition algorithm to identify the human face in the intermediate image, extract the corresponding face features, and form a face feature vector.
[0083] In step S300, after converting the code generation information into a binary bit stream, convert the face feature vector into a binary bit stream and place it after the binary bit stream of the code generation information.
[0084] In step S300, when generating an error correction codeword according to the code generation information, generate corresponding error correction codewords according to the codewords of the code generation information and the codewords of the face feature vector at the same time, and place the error correction codewords after the binary bit stream of the face feature vector.
[0085] Based on this embodiment, the facial features in the middle picture can be incorporated into the barcode generation information of the first barcode, binding the barcode generation information with the face, enabling face verification and improving the security of using the 3D barcode.
[0086] Embodiment Three:
[0087] This embodiment provides a generation system for a multi-modal 3D barcode, which includes:
[0088] An input module, configured to input the style of the second barcode to be generated, the middle picture, and the barcode generation information; this module is used to implement the function of step S100 in Embodiment One, which will not be elaborated here;
[0089] A region division module, configured to divide the middle region of the original image into a picture region, with one pair of opposite sides of the outer periphery of the picture region being the first barcode region and the other pair of opposite sides being the second barcode region; this module is used to implement the function of step S200 in Embodiment One, which will not be elaborated here;
[0090] A first barcode data conversion module, configured to convert the barcode generation information into a binary bit stream, generate an error correction codeword according to the barcode generation information, and place the error correction codeword after the binary bit stream; and determine the QR code version according to the codeword length of the binary bit stream after placing the error correction codeword; this module is used to implement the functions of step S300 and step S400 in Embodiment One, which will not be elaborated here;
[0091] A first barcode generation module, configured to arrange the binary bit stream into the first barcode region according to the QR code version, and place finder patterns and auxiliary positioning marks at the four corner ends of the original image respectively to form the first barcode in the form of a QR code; this module is used to implement the function of step S500 in Embodiment One, which will not be elaborated here;
[0092] A second barcode generation module, configured to generate the second barcode according to the style of the second barcode to be generated and the barcode generation information, and place the second barcode in the second barcode region; this module is used to implement the function of step S600 in Embodiment One, which will not be elaborated here;
[0093] A 3D barcode generation module, configured to place the middle picture into the picture region to obtain a 3D barcode picture; this module is used to implement the function of step S700 in Embodiment One, which will not be elaborated here.
[0094] Embodiment Four:
[0095] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the method for generating a multi-modal 3D barcode as described in any embodiment of the present invention.
[0096] Example 5:
[0097] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the method for generating a multimodal three-dimensional code as described in any embodiment of the present invention.
[0098] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent the cases of A existing alone, A and B existing simultaneously, and B existing alone. Where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one of the following" and its similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.
[0099] Those of ordinary skill in the art can realize that the units and algorithm steps described in the embodiments disclosed herein can be implemented by a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0100] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be repeated herein.
[0101] In several embodiments provided in the present application, if any function 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 such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or a 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 and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (hereinafter referred to as ROM), random access memories (hereinafter referred to as RAM), magnetic disks, or optical discs that can store program codes.
[0102] The above are only the embodiments of the present invention, and do not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present invention.
Claims
1. A method for generating a multimodal three-dimensional code, characterized in that, it includes the following steps: Input the style of the second code to be generated, the middle picture, and the code generation information; Divide the middle area of the original image into a picture area, with one pair of opposite sides of the outer periphery of the picture area being the first code area and the other pair of opposite sides being the second code area; Convert the code generation information into a binary bit stream, generate an error correction code word according to the code generation information, and place the error correction code word after the binary bit stream; Determine the QR code version according to the code word length of the binary bit stream after placing the error correction code word; According to the QR code version, arrange the binary bit stream to the first code area, and place finder patterns and auxiliary positioning marks at the four corners of the original image respectively to form the first code in the form of a QR code; Generate the second code according to the style of the second code to be generated and the code generation information, and place the second code in the second code area; Put the middle picture into the picture area to obtain a three-dimensional code picture.
2. The method for generating a multimodal three-dimensional code according to claim 1, characterized in that, the method of arranging the binary bit stream to the first code area is specifically: Start from one side of the first code area, start writing from the first column N rows away from the top of the original image, write R binary bits per row until there are N rows remaining from the bottom of the original image; Turn to the other side of the first code area, start writing from N rows away from the top of the original image and Z bits away from the version width, write R binary bits per row until there are N rows remaining from the bottom of the original image.
3. The method for generating a multimodal three-dimensional code according to claim 1, characterized in that, the method of generating the second code according to the style of the second code to be generated and the code generation information, and placing the second code in the second code area is specifically: Generate the second code according to the style of the second code to be generated and the code generation information, obtain the proportional relationship between each module in the second code, and obtain the number of modules; According to the QR code version, calculate the distance between the finder images placed at the two corners on the same side of the original image; According to the distance between the finder images, the proportional relationship between each module, and the number of modules, calculate the size of each module in the second code; Draw the second code according to the size of each module, and copy the drawn second code into two copies and cover them on both sides of the second code area respectively.
4. The method for generating a multimodal three-dimensional code according to claim 1, characterized in that, the method of putting the middle picture into the picture area is specifically: Determine the aspect ratio and area of the picture area; Calculate the aspect ratio of the middle picture. If the aspect ratio of the middle picture is the same as that of the picture area, then scale the area of the middle picture to be the same as that of the picture area and then put it into the picture area; If the aspect ratio of the middle picture is different from that of the picture area, then adjust the aspect ratio of the middle picture to be the same as that of the picture area, and then scale the area of the middle picture after adjusting the aspect ratio to be the same as that of the picture area and then put it into the picture area.
5. A method for generating a multi-modal three-dimensional code according to claim 1, wherein, when the intermediate picture contains a human face, the following steps are further included: using a face recognition algorithm to recognize the human face in the intermediate picture, and extracting the corresponding face features to form a face feature vector; after converting the code generation information into a binary bit stream, converting the face feature vector into a binary bit stream and placing it after the binary bit stream of the code generation information; in the step of generating an error correction codeword according to the code generation information, simultaneously generating a corresponding error correction codeword according to the codeword of the code generation information and the codeword of the face feature vector, and placing the error correction codeword after the binary bit stream of the face feature vector.
6. A system for generating a multi-modal three-dimensional code, wherein, it includes: an input module for inputting the style of the second code to be generated, an intermediate picture, and code generation information; a region division module for dividing the middle region of the original image into a picture region, with one pair of opposite sides of the outer periphery of the picture region being the first code region and the other pair of opposite sides being the second code region; a first code data conversion module for converting the code generation information into a binary bit stream, generating an error correction codeword according to the code generation information, and placing the error correction codeword after the binary bit stream; and determining the two-dimensional code version according to the codeword length of the binary bit stream after placing the error correction codeword; a first code generation module for arranging the binary bit stream into the first code region according to the two-dimensional code version, and placing finder patterns and auxiliary positioning marks at the four corner ends of the original image respectively to form the first code in the form of a two-dimensional code; a second code generation module for generating the second code according to the style of the second code to be generated and the code generation information, and placing the second code in the second code region; a three-dimensional code generation module for placing the intermediate picture into the picture region to obtain a three-dimensional code picture.
7. An electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, when the processor executes the program, it implements the method for generating a multi-modal three-dimensional code according to any one of claims 1 to 5.
8. A computer-readable storage medium, on which a computer program is stored, wherein, when the program is executed by the processor, it implements the method for generating a multi-modal three-dimensional code according to any one of claims 1 to 5.
Citation Information
Patent Citations
RFID label with two -dimensional code
CN205721920U
Two-dimensional bar code
CN102081747A
Low-density high-coding-capcity lattice two-dimensional code integrated with chaos encryption technology
CN105095935A