A multifunctional two-dimensional code scanning and recognition method and device
By setting multiple image areas and feature codes in the QR code, the problem of the QR code being easily stolen and forged is solved, and higher security and verification flexibility are achieved, ensuring the authenticity and security of information.
Patent Information
- Application Number
- CN202410565764.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2044-05-09
AI Technical Summary
Existing QR codes are easily stolen or forged by criminals on screenshots, and may carry malicious codes, making it difficult to distinguish between authenticity and security and credibility issues.
Using multi-function QR code design, multiple image areas are set inside and out, including the first code area, the second code area and the third fence code area, and using features such as the code identification code, the number of information layers and the fence code, the Verification and identification flexibility and security to prevent spoofing and extended modifications.
Effectively avoid QR code fraud, increase security, carry more verification information, improve user interaction, enhance the protection of multi-function codes, and ensure the authenticity and security of information.
Smart Images

Figure CN118551780B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image recognition processing and artificial intelligence information processing, and in particular to a multifunctional two-dimensional code scanning and recognition method and device. Background Art
[0002] The use of QR codes has brought great convenience to our lives. The most common QR code is QR Code. QR stands for Quick Response, which is a coding method that can store more information and represent more data types than traditional Bar Codes. As a way of encoding information, QR codes have many advantages. They can be scanned and identified by mobile phones, and thus have been widely used in daily life. However, existing QR codes also have some disadvantages. For example, one is the risk of QR code visualization. Criminals can easily steal or cheat users' payment codes by screenshotting or using mobile phone viruses, or post forged merchant payment codes everywhere to illegally obtain funds. The second is the risk of carrying malicious codes. QR codes can not only be used for payment, but also for storing malicious program codes, illegal links and other content, and it is difficult to distinguish the authenticity intuitively. Summary of the invention
[0003] In view of this, the present invention proposes a multifunctional two-dimensional code scanning and recognition method and device, wherein by using a multifunctional two-dimensional code, two-dimensional code spoofing can be avoided, and more verification information and additional information can be carried, thereby improving security and having more flexibility.
[0004] The technical solution of the present invention is: a multifunctional two-dimensional code scanning and recognition method, comprising:
[0005] The scanning step is to obtain a multifunctional two-dimensional code image, analyze the image, and segment and obtain multiple image areas from the inside to the outside; wherein the multifunctional two-dimensional code includes:
[0006] From the inside to the outside, the first yard area, the second yard area, and the third fence yard area are set;
[0007] The first code area includes a basic two-dimensional code, and the basic two-dimensional code includes three positioning angle codes;
[0008] The second code area is arranged outside the first code area, and the second code area is provided with a first identification area, a second identification area, and a third identification area;
[0009] Identification step: based on the multiple image areas obtained by segmentation, the positions of the first code area, the second code area, and the third code area are identified, and verification and identification are performed based on the image data of the first code area, the second code area, and the third code area.
[0010] Furthermore, the second code area is arranged outside the first code area, specifically, around the first code area and outside the four corners.
[0011] Furthermore, the second code area includes a first identification area, a second identification area, and a third identification area;
[0012] The first identification area is located at a first corner of the second code area, wherein a first code identification code is provided at a corner area of the first corner for identifying whether there is code information added to the second code area;
[0013] Furthermore, the second identification area is located at a second corner of the second code area, wherein a second description code is provided at a corner area of the second corner for identifying the number of layers of the coded information and the coded position;
[0014] Furthermore, the third identification area is located at the third corner of the second code area, wherein a third fence code is provided in the corner area of the third corner for identifying whether a third fence code is included and the specification of the third fence code.
[0015] Furthermore, the third fence code is located outside the second fence code.
[0016] Furthermore, the edge shape of the third fence code is irregular, including: sawtooth, wavy, and irregular.
[0017] Furthermore, the third fence code shown is set to have different edge shapes in different direction areas.
[0018] According to another aspect of the present invention, a multifunctional two-dimensional code scanning and recognition device is also proposed, comprising:
[0019] The scanning module is used to obtain a multifunctional two-dimensional code image, analyze the image, and segment and obtain multiple image areas from the inside to the outside; wherein the multifunctional two-dimensional code includes:
[0020] From the inside to the outside, the first yard area, the second yard area, and the third fence yard area are set;
[0021] The first code area includes a basic two-dimensional code, and the basic two-dimensional code includes three positioning angle codes;
[0022] The second code area is arranged outside the first code area, and the second code area is provided with a first identification area, a second identification area, and a third identification area; the first code area, the second code area, and the third fence code area are arranged from the inside to the outside;
[0023] The first code area includes a basic two-dimensional code, and the basic two-dimensional code includes three positioning angle codes;
[0024] The second code area is arranged outside the first code area, wherein the first identification area, the second identification area, and the third identification area are arranged;
[0025] The recognition module is used to identify the positions of the first code area, the second code area, and the third code area based on the multiple image areas obtained by segmentation, and to verify and recognize based on the image data of the first code area, the second code area, and the third code area.
[0026] Through the multifunctional two-dimensional code scanning method of the present invention, two-dimensional code deception can be avoided, and more additional information can be carried, thereby expanding the use of the two-dimensional code and generating more user interactions. In addition, in scenarios involving security, more verification information can be carried in the added code area, thereby improving security; finally, the present invention is provided with a fence code outside the second code area, thereby preventing criminals from expanding and modifying the multifunctional code of the present invention and adding deceptive information, thereby further improving security. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 : A multifunctional two-dimensional code scanning and recognition method of the present invention;
[0028] Figure 2 : Schematic diagram of the multifunctional two-dimensional code of the present invention;
[0029] Figure 3 : Schematic diagram of each code area of the multifunctional two-dimensional code of the present invention;
[0030] Figure 4 : Schematic diagram of the first identification area plus code representation;
[0031] Figure 5 : Schematic diagram of identification codes of each identification area of the multifunctional two-dimensional code of the present invention;
[0032] Figure 6 : Schematic diagram of multi-layer coding of the present invention
[0033] Figure 7 : Schematic diagram of the fence code of the present invention;
[0034] Figure 8 : Device block diagram of the present invention. DETAILED DESCRIPTION
[0035] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 ordinary technicians in this field without creative work are within the protection scope of the present invention.
[0036] like Figure 1As shown, according to an embodiment of the present invention, a multifunctional two-dimensional code scanning and recognition method is proposed, comprising:
[0037] The scanning step is to obtain a multifunctional two-dimensional code image, analyze the image, and segment and obtain multiple image areas from the inside to the outside; wherein the multifunctional two-dimensional code includes:
[0038] From the inside to the outside, the first yard area, the second yard area, and the third fence yard area are set;
[0039] The first code area includes a basic two-dimensional code, and the basic two-dimensional code includes three positioning angle codes;
[0040] The second code area is arranged outside the first code area, and the second code area is provided with a first identification area, a second identification area, and a third identification area;
[0041] Identification step: based on the multiple image regions obtained by segmentation, identify the positions of the first code region, the second code region, and the third code region, and perform verification and identification based on the image data of the first code region, the second code region, and the third code region. In one embodiment of the present invention, Figure 2 As shown, the multifunctional QR code includes:
[0042] The first code area 10, the second code area 20, and the third fence code area 30 are arranged from the inside to the outside, and have different areas on the image, which can be identified by an image segmentation and recognition algorithm.
[0043] The details are as follows;
[0044] like Figure 3 As shown, the first code area 10 includes a basic two-dimensional code 1, and the basic two-dimensional code includes three positioning angle codes, namely the first positioning angle code 11, the second positioning angle code 12, and the third positioning angle code 13, which are respectively located at the upper right corner, the upper corner, and the lower left corner of the basic two-dimensional code. The positioning angle code is usually a black square, which is easy to distinguish and identify; the basic two-dimensional code, for example, can be a QR two-dimensional code, which uses a certain geometric figure to record data symbol information in a black and white pattern distributed in a plane (two-dimensional direction) according to a certain rule, and is automatically read by an image input device or an optoelectronic scanning device to realize automatic information processing: it has some common features of barcode technology: each code system has its specific character set; each character occupies a certain width; has a certain verification function, etc. At the same time, it also has the function of automatically identifying information in different rows and processing graphic rotation change points. The above basic two-dimensional code is a well-known technology in the field and will not be repeated here.
[0045] Furthermore, the present invention also provides a second code area 20, which is arranged outside the first code area 10, specifically, around the first code area and outside the four corners. For example, it can be the periphery of the four sides of the first code area, such as the periphery of the top, bottom, left and right sides; the second code area includes the first identification area 21, the second identification area 22, the third identification area 23, and further includes the first coding area 51, the second coding area 52, and in some other embodiments, there can also be a third coding area and / or a fourth coding area.
[0046] Specifically, the first identification area is located at the first corner of the second code area. In one embodiment, the first identification area 21 is located at the outer corner area of the first positioning angle code 11. Figure 3 As shown, the first positioning angle code 11 is located at the upper right corner of the basic two-dimensional code 1 and is a square black block, while the first identification area 21 in the present invention is a plurality of black and white sub-blocks arranged at right angles along the periphery of the first positioning angle code, such as Figure 4 As shown, the black and white sub-blocks in the first identification area 21 include 7: the 0th black and white sub-block 000 located at the corner, and the 1st, 2nd and 3rd black and white sub-blocks (001, 002, 003) arranged along the horizontal direction, and the 4th, 5th and 6th black and white sub-blocks (004, 005, 006) arranged along the vertical direction; the plurality of black and white sub-block sequences arranged at right angles constitute the first coded identification code, which will be described in detail later;
[0047] The size boundary of the first identification area 21 needs to match the length and width of the first positioning angle code, that is, the left side boundary of the first identification area is aligned with the left side of the first positioning angle code, as shown by the alignment line 2160, that is, the left side boundary of the third sub-block 001 is aligned with the left side of the first positioning angle code, and the lower side boundary of the first identification area is aligned with the lower side of the first positioning angle code, as shown by the alignment line 2161, that is, the lower boundary of the sixth sub-block 006 is aligned with the lower boundary of the first positioning angle code; at the same time, the width of the first identification area is equal to 1 / 4 to 1 / 2 of the width of the first positioning angle code, and each small block is smaller than the size of the first positioning angle code, so that it can be clearly distinguished from the first positioning angle code. Secondly, the above size can limit the area of the first identification area. When identifying, after scanning the first positioning angle code, the width is expanded by 50% around the periphery of the first positioning angle code. For example, if the width of the first positioning angle code is 4mm, then the 2mm scan is expanded to find the first identification area, for example, to determine whether there are small color blocks arranged at intervals around, so as to find the above first identification area very accurately and quickly.
[0048] The first coded identification code of the first identification area 21 can be used to identify data and also has a positioning function, thereby avoiding the need to set up an additional layer of special positioning angle code for positioning. One code has two uses, thereby improving utilization.
[0049] Further, the black and white sub-block No. 0, the black and white sub-block No. 3, and the black and white sub-block No. 6 are black; the colors of the black and white sub-blocks No. 1, No. 2, No. 4, and No. 5 are black or white, and the black and white sub-blocks No. 1 to No. 7 constitute a first coded identification code, and the first coded identification code specifically needs to set the colors of the black and white sub-blocks No. 1, No. 2, No. 4, and No. 5 to black or white according to whether to add code; for example, assuming that in this embodiment, the multifunctional two-dimensional code includes a coded area, the colors of the black and white sub-blocks No. 1, No. 4, and No. 5 are set to black, and the colors of the black and white sub-blocks No. 2 and No. 5 are set to white. The color is white, that is, starting from the 0th black and white sub-block, from right to left, the black and white sub-blocks are black, black, white, and black in sequence. If black represents 1 and white represents 0 (or vice versa), the above black and white sub-block sequence represents 1101. Similarly, from the 0th black and white sub-block to the 4th, 5th, and 6th black and white sub-blocks, the black and white sub-blocks from top to bottom are black, black, white, and black in sequence, which is also 1101; then the scanning device obtains the data of 1101 after scanning the first coded identification code in the above first identification area. When the computer reads this data, it can be known that the second code area in the above multi-functional two-dimensional code is also provided with coded specific information that needs to be read; or as Figure 5 As shown, if the multifunctional code is not set with an additional code, the colors of the No. 1, No. 4, and black and white sub-blocks can be set to white, and the colors of the No. 2 and No. 5 black and white sub-blocks can be set to black, that is, the binary value is set to 1011; at this time, the second code area may not be set with additional code information, and of course, a random black and white dot pattern can be set in the second code area or remain blank, but no information is carried;
[0050] It can be seen that in the above embodiment, the second code area is set outside the first code area, specifically, around the first code area and outside the three corners, so as to use the space around the ordinary two-dimensional code for further information setting; and the first identification area is located outside the first positioning angle code, wherein the first added code identification code is set in the corner area of the first corner to identify whether there is added code information in the second code area;
[0051] Furthermore, when the first coded identification code is set to indicate that coded information exists in the second code area, further identification is required based on the second identification area;
[0052] The second identification area is located at the second corner of the second code area. In one embodiment, the second identification area 22 is located at the outer corner area of the second positioning angle code 12, and is used to identify the number of layers of the added code information and the added code position;
[0053] In this embodiment, the second identification area is a plurality of black and white sub-blocks arranged at right angles along the periphery of the second positioning angle code, such as Figure 3-4As shown, the black and white sub-blocks in the second identification area include 7: the black and white sub-block No. 0 100 located at the corner, and the black and white sub-blocks No. 1, No. 2, and No. 3 (101, 102, and 103) arranged in the horizontal direction, and the black and white sub-blocks No. 4, No. 5, and No. 6 (104, 105, and 106) arranged in the vertical direction; the black and white sub-block No. 0, No. 3, and No. 6 are black; the colors of the black and white sub-blocks No. 1, No. 2, No. 4, and No. 5 are black or white, and the black and white sub-blocks No. 1 to No. 7 constitute the second description code, which needs to be set according to the number of layers and positions of the added code. Specifically, the number of layers of the added code refers to how many layers of the added code are set in the second code area, and the position refers to the periphery of which side the added code is set;
[0054] The number of layers of the added code can be 1, 2, or 3. The position refers to the side on which the added code is located, which can be any one or more sides.
[0055] According to the number of layers of the added information, the colors of the first and second black and white sub-blocks arranged horizontally are set. If there is one layer, the first and second black and white sub-blocks are set to white and black respectively, that is, the binary value 01; if there are two layers, the first and second black and white sub-blocks are set to black and white respectively, that is, the binary value 10; if there are three layers, the first and second black and white sub-blocks are set to black and black respectively, that is, the binary value 11; Figure 6 As shown, schematic diagrams of multi-layer coding are shown respectively; wherein, the first coding area 51 on the left includes two columns of coding (or called two layers of coding), namely, the first column of coding 511 and the second column of coding 512; meanwhile, the second coding area 52 on the lower side includes two rows of coding, namely, the first row of coding 521 and the second row of coding 522. Different information can be stored in the above different codings, so that more information can be stored for users to use. The above information can be user-related identity identification information, or verification information, or external link entry, etc., for more functional adaptation.
[0056] Further, according to the position of the added code information, the colors of the 4th and 5th black and white sub-blocks arranged in the vertical direction are set. If the first added code area is located on the left outer side, the 4th and 5th black and white are set to white and white, respectively, that is, the binary value 00; if the added code area is located on the left outer side and the lower outer side, the 4th and 5th black and white are set to white and black, respectively, that is, the binary value 01; if the added code area is located on the left outer side, the lower outer side and the right outer side, the 4th and 5th black and white are set to black and white, respectively, that is, the binary value 10; if it is located on all sides, the 4th and 5th black and white are set to black and black, respectively, representing that there are added codes on the outer sides of the four sides;
[0057] Among them, you can also set the calculation information and log information in the blank space at the four corners; Figure 5-6 As shown in the symbol code 513 in the figure, a logo is set at the lower left corner, and the user represents the identity of the user; or as shown in 6, an operation information code is set to indicate what kind of operation is performed on the multi-layer code, and the operation code can also be a two-dimensional black and white dot matrix carrying information. For example, in some multi-layer codes, each layer represents different attribute information, such as the A attribute and the B attribute of the user, the A attribute is such as the user's age and height, and the B attribute is such as the user's work address, so it is only necessary to identify each layer of the code separately, while in some multi-layer codes, the multi-layer codes need to be connected for identification, such as connecting the first layer code and the second layer code in series to parse the information. In this case, security is also enhanced. If a third party does not know the meaning represented by the operation information, it is impossible to accurately identify the information of each layer of the code.
[0058] The third identification area is located at the third corner of the second code area. In one embodiment, the third identification area 23 is located at the outer corner area of the third positioning angle code 13, and is used to identify whether a third fence code 301 is added to the periphery of the second code area, and to identify the specifications of the third fence code.
[0059] In this embodiment, the third identification area 23 is a plurality of black and white sub-blocks arranged along the outer corners of the third positioning angle code 13, such as Figure 3-4 As shown, the black and white sub-blocks in the third identification area include 7: the black and white sub-block No. 0 200 located at the corner, and the black and white sub-blocks No. 1, 202, and 3 (201, 202, and 203) arranged along the horizontal direction, and the black and white sub-blocks No. 4, 5, and 6 (204, 205, and 206) arranged along the vertical direction; the black and white sub-block No. 0, the black and white sub-block No. 3, and the black and white sub-block No. 6 are black; the colors of the black and white sub-blocks No. 1, No. 2, No. 4, and No. 5 are black or white, and the black and white sub-blocks No. 1 to No. 7 constitute the third fence code, and the third fence code needs to be set according to whether a fence code is added to the periphery and the type of the fence code.
[0060] Specifically, the colors of the first and second black and white sub-blocks arranged in the horizontal direction are set according to whether the fence code is added to the periphery. If the fence code 301 is added, the first and second black and white sub-blocks are set to black and black, respectively, that is, the binary value 11; if not, the first and second black and white sub-blocks are set to white and white, respectively, that is, the binary value 00. Figure 7 As shown in 301, a schematic diagram with a fence code 301 is shown; in the case of no fence code, the scanning step only needs to scan and split to obtain two layers of code areas.
[0061] The third fence code 301 is located at the periphery of the second code area.
[0062] The edge shape of the third fence code 301 is irregular, including: sawtooth, wavy, and irregular.
[0063] The third fence code shown can also be randomly set to different edge shapes in different direction areas, for example, a sawtooth shape in the direction of the first side and a wave shape in the direction of the second side, etc.
[0064] Set the colors of the 4th and 5th black and white sub-blocks arranged in the vertical direction. If the shape is jagged, set the 4th and 5th black and white to white and white, that is, the binary value 00; if it is wavy, set the 4th and 5th black and white to white and black, that is, the binary value 01; if it is irregular, set the 4th and 5th black and white to black and white, that is, the binary value 10; if it has different shapes randomly in different directions, set the 4th and 5th black and white to black and black, representing the random shapes on the outside of the four sides;
[0065] In the present invention, by providing a fence code outside the second code area, it is prevented that criminals extend and modify the multi-function code of the present invention and add fraudulent information, thereby further improving security. In the present invention, after the scanning device recognizes the fence code, it no longer recognizes the image outside the fence code, thereby preventing the third party from adding other information outside.
[0066] In the coded area of the present invention, more additional information can be filled, including additional link information, or entry information, or user identity information, etc., so as to generate multiple functions; in one embodiment, a traditional QR code is set in the first code area 10, such as the QR code used by WeChat, and the QR code is embedded with link information. Assuming that the multifunctional QR code is generated by user A, relevant link information is embedded in the QR code to indicate the identity information such as the ID of user A, which is the same as the traditional QR code. However, the multifunctional QR code of the present invention is also provided with user additional information in the second code area 20, and the additional information includes the first coded area and the second coded area set in the second code area, wherein the user's privacy information, such as private address, bank, etc., is set in the first coded area. Card number, etc., these information are encrypted and stored in the first coding area, and the key algorithm information is stored in the second coding area; when a scanning device scans the code and fills in the form, first the QR code in the first code area 10 is used to obtain the user's ID and other basic information. In addition, the corresponding scanning algorithm in the scanning device is used to identify the privacy information in the first coding area in the second code area, and the key algorithm information in the second coding area is identified. The key algorithm information is used to indicate which key encryption algorithm is used to act on the privacy information, so as to correctly decrypt the privacy information, and identify the decrypted privacy information and upload it to the form, so as to conveniently fill in the user's relevant information in some important occasions; and, since the privacy information is stored in an encrypted manner, it can prevent other devices from identifying and reading. The above scanning algorithm refers to the algorithm embedded in the APP customized for the multi-functional QR code of the present invention, which knows the encoding rules of the QR code of the present invention, so it can correctly parse the encoding of multiple areas of the present invention.
[0067] Alternatively, the information in the above-mentioned multiple areas can be used to verify the user's identity information to prevent unauthorized elements from impersonating other people's QR codes to commit fraud; for example, the user's basic information is stored in the first code area 10, and combined with the additional information or privacy information in the first coded area, it is determined whether the user information of the QR code is valid or forged. Only when the basic information of the user stored in the first code area 10 and the additional information or privacy information in the first coded area can be correctly matched, can the valid user be confirmed, thereby preventing criminals from tampering with the QR code in the middle to commit fraud.
[0068] In addition, the multifunctional code of the present invention is compatible with WeChat and other QR codes, and does not affect the daily use of these common QR codes. For example, a traditional barcode scanner can be used to identify the QR code in the QR code without identifying the peripheral codes, thereby not affecting daily use. When scanning according to the scanning method of the present invention, it has more functions and is safer.
[0069] According to another aspect of the present invention, a multifunctional two-dimensional code scanning and recognition device is also provided. Figure 8 As shown, including:
[0070] A multifunctional two-dimensional code scanning and recognition device, comprising:
[0071] The scanning module is used to obtain a multifunctional two-dimensional code image, analyze the image, and segment and obtain multiple image areas from the inside to the outside; wherein the multifunctional two-dimensional code includes:
[0072] From the inside to the outside, the first yard area, the second yard area, and the third fence yard area are set;
[0073] The first code area includes a basic two-dimensional code, and the basic two-dimensional code includes three positioning angle codes;
[0074] The second code area is arranged outside the first code area, and the second code area is provided with a first identification area, a second identification area, and a third identification area; the first code area, the second code area, and the third fence code area are arranged from the inside to the outside;
[0075] The first code area includes a basic two-dimensional code, and the basic two-dimensional code includes three positioning angle codes;
[0076] The second code area is arranged outside the first code area, wherein the first identification area, the second identification area, and the third identification area are arranged;
[0077] The recognition module is used to identify the positions of the first code area, the second code area, and the third code area based on the multiple image areas obtained by segmentation, and to verify and recognize based on the image data of the first code area, the second code area, and the third code area.
[0078] Although the above describes the illustrative specific embodiments of the present invention to facilitate those skilled in the art to understand the present invention, and it should be clear that the present invention is not limited to the scope of the specific embodiments, for those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations using the concept of the present invention are protected.
Claims
1. A multifunctional two-dimensional code scanning and recognition method, characterized in that: include: The scanning step is to obtain a multifunctional two-dimensional code image, analyze the image, and segment and obtain multiple image areas from the inside to the outside; wherein the multifunctional two-dimensional code includes: From the inside to the outside, the first yard area, the second yard area, and the third fence yard area are set; The first code area includes a basic two-dimensional code, and the basic two-dimensional code includes three positioning angle codes; The second code area is arranged outside the first code area, and the second code area is provided with a first identification area, a second identification area, and a third identification area; The second code area includes a first identification area, a second identification area, and a third identification area; The size boundary of the first identification area needs to match the length and width of the first positioning angle code, that is, the left side boundary of the size of the first identification area is aligned with the left side of the first positioning angle code, and the lower side boundary of the size of the first identification area is aligned with the lower side of the first positioning angle code; at the same time, the width of the first identification area is equal to 1 / 4 to 1 / 2 of the width of the first positioning angle code, and each small block thereof is smaller than the size of the first positioning angle code, so that it can be clearly distinguished from the first positioning angle code; The first identification area is located at a first corner of the second code area, wherein a first code identification code is provided at a corner area of the first corner for identifying whether there is code information added to the second code area; The first added identification code is a sequence consisting of a plurality of black and white sub-blocks arranged at right angles; The black and white sub-block No. 0, the black and white sub-block No. 3, and the black and white sub-block No. 6 are black; the colors of the black and white sub-blocks No. 1, No. 2, No. 4, and No. 5 are black or white, and the black and white sub-blocks No. 0 to No. 6 constitute the first added code identification code; The black and white sub-blocks in the first identification area 21 include 7 black and white sub-blocks: the 0th black and white sub-block located at a right angle corner, the 1st, 2nd and 3rd black and white sub-blocks arranged in the horizontal direction, and the 4th, 5th and 6th black and white sub-blocks arranged in the vertical direction; the plurality of black and white sub-blocks arranged in right angles constitute the first added code identification code; The second identification area is located at the second corner of the second code area, wherein a second description code is set in the corner area of the second corner for identifying the number of layers of the coded information and the coded position; the second description code sets the colors of the first and second black and white sub-blocks arranged in the horizontal direction according to the number of layers of the coded information, if there is one layer, the first and second black and white are set to white and black respectively, that is, the binary value 01; if there are two layers, the first and second black and white are set to black and white respectively, that is, the binary value 10; if there are three layers, the first and second black and white are set to black and black respectively, that is, the binary value 11; The third identification area is located at the third corner of the second code area, wherein a third fence code is provided at the corner area of the third corner for identifying whether the third fence code is included and the specification of the third fence code; Identification step: based on the multiple image areas obtained by segmentation, identify the positions of the first code area, the second code area, and the third code area, and verify and identify based on the image data of the first code area, the second code area, and the third code area.
2. A multifunctional two-dimensional code scanning and recognition method according to claim 1, characterized in that: The second code area is arranged outside the first code area, specifically, around the first code area and outside the four corners.
3. A multifunctional two-dimensional code scanning and recognition method according to claim 1, characterized in that: The third fence code is located outside the second fence code.
4. The multifunctional two-dimensional code scanning and recognition method according to claim 1, characterized in that: The edge shape of the third fence code is special-shaped, including: sawtooth, wavy, and irregular.
5. The multifunctional two-dimensional code scanning and recognition method according to claim 1, characterized in that: The third fence code is set to have different edge shapes in different direction areas.
6. A multifunctional two-dimensional code scanning and recognition device, used to execute the method of any one of claims 1-5, characterized in that: include: The scanning module is used to obtain a multifunctional two-dimensional code image, analyze the image, and segment and obtain multiple image areas from the inside to the outside; wherein the multifunctional two-dimensional code includes: From the inside to the outside, the first yard area, the second yard area, and the third fence yard area are set; The first code area includes a basic two-dimensional code, and the basic two-dimensional code includes three positioning angle codes; The second code area is arranged outside the first code area, and the second code area is provided with a first identification area, a second identification area, and a third identification area; the first code area, the second code area, and the third fence code area are arranged from the inside to the outside; The first code area includes a basic two-dimensional code, and the basic two-dimensional code includes three positioning angle codes; The second code area is arranged outside the first code area, wherein the first identification area, the second identification area, and the third identification area are arranged; The recognition module is used to identify the positions of the first code area, the second code area, and the third code area based on the multiple image areas obtained by segmentation, and to verify and recognize based on the image data of the first code area, the second code area, and the third code area.
