Method, device, terminal and storage medium for generating sticker QR code

Generating map QR codes through image recognition and positioning technology solves the problems of single appearance and reduced error correction capabilities in commercial applications, and realizes the generation of QR codes with personalized, high recognition rate and high commercial value.

CN117992683BActive Publication Date: 2024-11-29JIANGSU HUANXUN INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311330392.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-13
Publication Date
2024-11-29
Estimated Expiration
2043-10-13

AI Technical Summary

Technical Problem

The existing QR codes have a single appearance and lack characteristics in commercial applications. In addition, personalized QR codes will reduce error correction capabilities and recognition effects when covering some areas, making it difficult to meet the improvement of commercial use value.

Method used

Image recognition and positioning technology is used to identify and mark the base map of the QR code, combine text information and jump web page address to generate a sticker QR code, and embed the QR code into the base map through data splicing and reorganization to ensure recognition and error correction ability.

Benefits of technology

It realizes personalized and visually-enhancing QR codes, which improves the commercial value and recognition rate of QR codes, while maintaining error correction capabilities, and expanding the commercial application scope of QR codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117992683B_ABST
    Figure CN117992683B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, terminal and storage medium for generating a two-dimensional code for a sticker. The method includes: receiving the original information required for generating a two-dimensional code for a sticker, the original information includes a base map, text information and a jump webpage address, identifying and marking the base map through image recognition and positioning technology, and obtaining an image recognition result; processing the jump webpage address in combination with the image recognition result to generate a first byte stream data, converting the text information into a second byte stream data, and splicing the first byte stream data and the second byte stream data to obtain a two-dimensional code byte stream data; converting the base map into picture stream data, integrating the image recognition result with the picture stream data, and obtaining a two-dimensional code positioning area; and converting the picture stream data and the two-dimensional code byte stream data into a sticker two-dimensional code after data reorganization. The present application meets the personalized needs of users for two-dimensional codes, and can also be applied in the commercial field to increase the commercial use value of two-dimensional codes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of two-dimensional code technology, and in particular to a sticker with text. Figure 2 A method, device, terminal and storage medium for generating a Dimensional code. Background Art

[0002] Usually, the QR codes we see and most software generate are black, black and white graphics with specific geometric shapes distributed on a plane according to a certain pattern. However, as the application of QR codes becomes more and more widespread and frequent, this type of QR code has no characteristics in appearance and is not beautiful enough.

[0003] Currently, there are many tools for generating "personalized QR codes". They combine some personalized patterns with QR codes to obtain personalized QR codes that can be recognized by scanning devices. This type of "personalized QR code" has also become popular. In commercial applications, a "personalized QR code" is to cover part of the standard QR code image with a corporate logo image, so as to intuitively display the relationship between the QR code and the merchant. Based on the error correction function of the QR code, even if part of the QR code is covered or lost, the scanning device can still recognize the complete information it records. However, this type of QR code has certain requirements for the size and printing quality of the image, and the coverage of part of the standard QR code will reduce the error correction ability and recognition effect of the QR code in actual applications.

[0004] For invoicing companies, payment QR codes are currently generated through payment platforms in a single format, or the generated QR codes are all single squares with a single shape, which are not distinctive and not beautiful in appearance. Therefore, how to improve the overall visual effect of QR codes, expand the commercial application scope of QR codes to increase the commercial use value of QR codes, and at the same time not reduce the error correction ability of QR codes has become a problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0005] In order to expand the commercial use value of QR codes and make them more autonomous and innovative, this application provides a sticker Figure 2 A method, device, terminal and storage medium for generating a Dimensional code.

[0006] In the first aspect, the present application provides a sticker Figure 2 The method for generating the QR code adopts the following technical solution:

[0007] A sticker Figure 2 The method for generating a QR code comprises the following steps:

[0008] Receive generated posts Figure 2The original information required for the QR code includes a base map, text information and a jump webpage address. The base map is identified and marked by image recognition and positioning technology, and the image recognition result is obtained and recorded;

[0009] Processing the jump webpage address in combination with the image recognition result to generate first byte stream data, converting the text information into second byte stream data, performing data splicing processing on the first byte stream data and the second byte stream data to obtain two-dimensional code byte stream data;

[0010] Convert the base map into picture stream data, and combine the image recognition result with the picture stream data to obtain a QR code positioning area;

[0011] The image stream data and the two-dimensional code byte stream data are reorganized and converted into the sticker Figure 2 QR code and output it.

[0012] By adopting the above technical solution, users can independently fill in the jump web page address, select a sticker background suitable for their own QR code base and enter custom text information, making the generated QR code more autonomous and innovative.

[0013] Preferably, the identifying and marking the base map by using image recognition and positioning technology, and obtaining and recording the image recognition result, specifically comprises the following steps:

[0014] The objects in the base map that meet the QR code generation rules are identified using a trained image recognition template. The objects that meet the QR code generation rules are regular areas, which include areas with pure white backgrounds and transparent backgrounds. The identified objects are marked using an image recognition and positioning algorithm to obtain the image recognition result.

[0015] By adopting the above technical solution, the areas that meet the requirements can be accurately identified for subsequent labeling. Figure 2 This laid the foundation for the generation of QR codes.

[0016] Preferably, the step of marking the identified object by using an image recognition and positioning algorithm to obtain the image recognition result specifically includes the following steps:

[0017] The area is marked by marking each pixel with a pure white background or a transparent background on the base map, adding a positioning value to the pixel, and obtaining the horizontal coordinate and the vertical coordinate of each pixel in the area.

[0018] By adopting the above technical solution, the process of image recognition and positioning is further explained, providing technical support for determining the position of the QR code positioning area.

[0019] Preferably, the step of processing the redirected webpage address in combination with the image recognition result to generate first byte stream data and converting the text information into second byte stream data specifically includes the following steps:

[0020] The jump webpage address is converted into a byte stream form, and the horizontal coordinate and the vertical coordinate in the image recognition result are combined to finally generate and store the first byte stream data, wherein the first byte stream data includes the size information of the two-dimensional code part, and the two-dimensional code part is the sticker Figure 2 The part of the QR code that can be scanned and identified converts the received text information into a byte stream form, and generates and stores the second byte stream data.

[0021] By adopting the above technical solution, the URL and text information are converted into binary or byte stream form, so that the data information can be transmitted in the system. The generation of the information in the QR code part is realized through this step.

[0022] Preferably, the step of performing data splicing processing on the first byte stream data and the second byte stream data to obtain the two-dimensional code byte stream data specifically includes the following steps:

[0023] The first byte stream data and the second byte stream data are assembled into a byte stream, and the byte stream assembly method is to generate a temporary canvas with the first byte stream data, the temporary canvas is the same size as the two-dimensional code part, and the second byte stream data is embedded in the temporary canvas to obtain the two-dimensional code byte stream data, and then store it.

[0024] By adopting the above technical solution, the carrying sticker Figure 2 The byte streams of the specific information of the QR code are combined together to obtain the QR code part containing all the autonomous setting information.

[0025] Preferably, the converting the base map into picture stream data, combining the image recognition result with the picture stream data to obtain the QR code positioning area specifically comprises the following steps:

[0026] The base map is converted into a picture stream form and the picture stream data is generated to obtain a canvas with the same shape and size as the base map. The two-dimensional code positioning area is obtained according to the image recognition result, and the two-dimensional code positioning area is used to place the generated two-dimensional code part.

[0027] By adopting the above technical solution, the placement area of ​​the QR code part is determined in the base map according to the horizontal and vertical coordinates of each pixel in the QR code positioning area, so as to provide a reference for the subsequent pasting. Figure 2 This laid the foundation for the generation of QR codes.

[0028] Preferably, the image stream data and the two-dimensional code byte stream data are reorganized and converted into the sticker Figure 2 The QR code is output, which specifically includes the following steps:

[0029] The two-dimensional code byte stream data is configured into the two-dimensional code positioning area in the picture stream data. The configuration process is to splice the two-dimensional code byte stream data after the picture stream data, generate a two-dimensional code result, convert the two-dimensional code result into a picture stream form and output it.

[0030] By adopting the above technical solution, the base map and the data of the QR code part are recombined to generate the final sticker. Figure 2 The image stream of the QR code is finally output and posted Figure 2 The process details the Figure 2 The process of generating the QR code is an innovative sticker Figure 2 Provides technical support for QR code generation.

[0031] In the second aspect, the present application provides a sticker Figure 2 The device for generating a dimensional code adopts the following technical solution:

[0032] A sticker Figure 2 The device for generating a dimensional code includes the following modules:

[0033] Image recognition module, used to receive and generate post Figure 2 The original information required for the QR code includes a base map, text information and a jump webpage address. The base map is identified and marked by image recognition and positioning technology, and the image recognition result is obtained and recorded;

[0034] A byte stream splicing module, used to process the jump web page address in combination with the image recognition result to generate first byte stream data, convert the text information into second byte stream data, and perform data splicing processing on the first byte stream data and the second byte stream data to obtain two-dimensional code byte stream data;

[0035] A positioning area generating module, used for converting the base map into image stream data, combining the image recognition result with the image stream data, and obtaining a QR code positioning area;

[0036] stick Figure 2 A two-dimensional code generation module is used to transform the image stream data and the two-dimensional code byte stream data into the sticker Figure 2 QR code and output it.

[0037] By adopting the above technical solutions, a complete set of stickers was built. Figure 2 QR code generation system, for posting Figure 2The independent innovation and design of the QR code provides the necessary software technology support, significantly improves the innovation level of personalized QR code generation technology, and meets the requirements of technological progress.

[0038] In a third aspect, the present application provides a smart terminal, which adopts the following technical solution:

[0039] An intelligent terminal comprises a memory and a processor, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the above-mentioned Figure 2 How to generate a dimensional code.

[0040] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:

[0041] A computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, at least one program, code set or instruction set, wherein the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the above-mentioned Figure 2 How to generate a dimensional code.

[0042] In summary, this application has at least the following beneficial effects:

[0043] 1. This application uses image recognition and positioning, data stream splicing and reorganization and other technical means to achieve personalized stickers Figure 2 To generate a QR code, users can input the text information they need and select the QR code background to get a sticker that meets their requirements. Figure 2 QR code, improve the visual perception of QR code, and also can apply the technology of this application to the commercial field, so that the stickers created by ourselves can be Figure 2 QR codes have more commercial value.

[0044] 2. This application will embed the generated QR code part into the pure white or transparent background of the base map to ensure the paste Figure 2 The QR code is personalized while ensuring the integrity of the identifiable QR code part without damaging the sticker. Figure 2 The error correction capability of the QR code is improved, and the generated stickers are Figure 2 The recognition rate of the QR code. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 This is the sticker of the embodiment of the present application Figure 2 A schematic diagram of a flow chart of a method for generating a dimensional code;

[0046] Figure 2 This is the sticker of the embodiment of the present application Figure 2A schematic diagram of the process of S1 in the method for generating a dimensional code;

[0047] Figure 3 This is the sticker of the embodiment of the present application Figure 2 Schematic diagram of the process of S2 in the method for generating a dimensional code;

[0048] Figure 4 This is the sticker of the embodiment of the present application Figure 2 Method for generating QR code from base map to sticker Figure 2 Schematic diagram of the change process of the dimensional code;

[0049] Figure 5 This is the sticker of the embodiment of the present application Figure 2 Schematic diagram of the architecture of a device for generating a QR code. DETAILED DESCRIPTION

[0050] This application provides a Figure 2 In order to make the purpose, technical solution and advantages of the present application clearer, the method, device, terminal and storage medium for generating a QR code are further described in detail below.

[0051] The following is a description of the present application in conjunction with the accompanying drawings. Figure 2 The embodiment of the method for generating a dimensional code is further described in detail.

[0052] This application is a Figure 2 The generation and management method of the dimensional code is as follows: Figure 1 As shown, the following steps are included:

[0053] S1. Receive generated posts Figure 2 The original information required for the QR code includes the base map, text information and the jump web page address. The base map is identified and marked through image recognition and positioning technology, and the image recognition results are obtained and recorded. This step specifically includes the following processes, such as Figure 2 shown.

[0054] S11. Receive the uploaded base map that needs to be pasted. Users or enterprises can choose and upload the base map according to their own needs. After uploading, fill in the access address and pasting text information. In essence, the content of the QR code points to an address, which is the jump web page address that the user needs to access. The pasting text information includes text, numbers, etc. The text information is a text description or prompt information of the generated QR code part.

[0055] S12. Train an image recognition template so that the image recognition template can recognize objects in the base map that meet the QR code generation rules. The objects that meet the QR code generation rules are regular areas, which include areas with pure white backgrounds and transparent backgrounds. It should be noted that the pure white or transparent background in the area needs to be connected as a whole and reach 25% or more of the entire base map. If the area that meets the rules cannot be recognized, the system will prompt that the recognition failed and subsequent pasting cannot be performed. Figure 2 QR code generation process.

[0056] S13. Identify the base map using the trained image recognition template, and mark the identified objects using the image recognition and positioning algorithm. The marking method is to mark each pixel with a pure white background or a transparent background in the identified area, add positioning values ​​to these pixels, and obtain the horizontal and vertical coordinates of each pixel in the area, which are used as the image recognition result.

[0057] In a specific feasible implementation plan, the machine learning algorithm and model provided by OpenCV are used to load and train the image recognition template to identify objects in the base map. The JavaCV library is used to load the base map to be processed and perform preprocessing, such as color screening, etc. This step is a standard process for image processing and will not be described in detail here. The trained image recognition template is used to identify the base map, find the objects in it, and mark the position of the identified object according to the recognition result, that is, the horizontal and vertical coordinates of each pixel are obtained.

[0058] This step uses the image recognition and positioning algorithm provided by OpenCV to find a whole area in the base map to place the QR code part. Different from the personalized QR code that has an occlusion effect on the QR code by pasting a picture on the QR code, the QR code part of this application is directly embedded in the recognized area, and the QR code part will not be blocked by the base map, ensuring that the final generated paste Figure 2 The recognition rate of the QR code does not affect its error correction ability.

[0059] S2, combining the image recognition result to process the jump webpage address, generate the first byte stream data, convert the text information into the second byte stream data, perform data splicing processing on the first byte stream data and the second byte stream data, and obtain the two-dimensional code byte stream data. This step specifically includes the following process, such as Figure 3 shown.

[0060] S21, converting the jump webpage address into a byte stream form, combining the horizontal coordinate and the vertical coordinate of each pixel in the image recognition result, and finally generating the first byte stream data containing the size information of the QR code part, the QR code part is pasted Figure 2The part of the QR code that can be scanned and recognized is used to store the first byte stream data in the CPU cache. In this embodiment, the system uses the Google BitMatrix development tool to generate the QR code part of the area size recognized in the image recognition result from the jump webpage address, and finally converts it into a byte stream form for data transmission within the system. In fact, the paste Figure 2 The QR code consists of a QR code part that can be scanned and identified and a base image background.

[0061] S22, converting the received text information into a byte stream form, generating second byte stream data, and storing the second byte stream data in the CPU cache. When a user enters the system, he can only enter text information in the text box but there is no text format. This embodiment also satisfies the design of the format of the input text information. The system supports the user to select the font and font size that the text information needs to be adapted after entering the text information.

[0062] S23, byte stream assembly is performed on the first byte stream data and the second byte stream data, and the byte stream assembly method is to generate a temporary canvas from the first byte stream data, the temporary canvas is the same size as the two-dimensional code part, and the second byte stream data is embedded in the temporary canvas to obtain the two-dimensional code byte stream data. In this embodiment, the process is actually to reorganize the first byte stream data and the second byte stream data by I / O stream data, splice the two byte stream data together, obtain the two-dimensional code byte stream data containing the two-dimensional code information, the size of the two-dimensional code and the text information, and store it in the CPU cache.

[0063] After obtaining the two-dimensional code byte stream data, the system obtains the font and size of the text information, readjusts the text information, arranges the format data of the text information into the two-dimensional code byte stream data, and then stores it in the CPU cache.

[0064] This step uses QR code splicing text integration technology to add custom text to the QR code part by splicing byte stream data. Further instructions for using the QR code part can be provided, which significantly improves the use value of the QR code in the commercial field, expands the commercial application scope of the QR code, and facilitates merchants or enterprises to carry out market promotion.

[0065] S3, converting the base map into image stream data, integrating the image recognition result with the image stream data, and obtaining the QR code positioning area. This step specifically includes the following process.

[0066] S31, converting the base map into a picture stream form and generating picture stream data. Specifically, the base map is parsed, and data conversion is performed according to the parsing result to obtain binary data corresponding to the parsing result, and the binary data is transmitted in the form of a picture stream, and a canvas having the same shape and size as the base map is obtained.

[0067] S32, according to the image recognition result, a two-dimensional code positioning area is obtained, and the two-dimensional code positioning area is used to place the generated two-dimensional code part. Specifically, the image recognition result is the horizontal coordinate and the vertical coordinate of each pixel of the pure white background or transparent background on the base map, so at this time, the image stream data of the base map is updated to the image stream data containing the positioning mark, so as to obtain the two-dimensional code positioning area.

[0068] Since the QR code byte stream is obtained by embedding the second byte stream data into the temporary canvas generated by the first byte stream, the temporary canvas is the same size as the generated QR code part, so the QR code positioning area is used to place the generated QR code part, which is equivalent to storing the temporary canvas.

[0069] This step uses the horizontal and vertical coordinates of each pixel in the identified area to locate the placement area of ​​the QR code part on the map, avoiding mutual occlusion between the base map background and the QR code part, accurately placing the generated QR code part, and ensuring the accuracy of the pasting. Figure 2 The recognition rate and clarity of the QR code.

[0070] S4, reorganize the image stream data and the QR code byte stream data into a sticker Figure 2 The QR code is output, and this step specifically includes the following process.

[0071] The QR code byte stream data is configured into the QR code positioning area in the image stream data. The configuration process is to splice the QR code byte stream data after the image stream data, generate a QR code result, convert the QR code result into an image stream form and output it. This process is equivalent to filling the data in the temporary canvas into the canvas, then converting the data in the canvas into an image stream, and converting the image stream into a PNG format sticker. Figure 2 Output the QR code. Figure 2 The QR code is a personalized QR code that includes a base image and a QR code part that the user needs, such as Figure 4 Shows the process from base map to sticker Figure 2 A specific embodiment of the change process of the dimensional code, the text information in this embodiment is "1643184074061262849". The server is provided with a corresponding sticker Figure 2 The storage address of the QR code image will be pasted Figure 2 The QR code is stored in the address and then output to the user terminal.

[0072] The above steps meet the user's innovative demand for QR codes, improve the current phenomenon of monotony and lack of features in QR codes, and support various customized QR code scenarios, expanding the scope of use of QR codes.

[0073] Based on the same inventive concept as above, the present application also discloses a sticker Figure 2The QR code generation device has a structure such as Figure 5 As shown, the device includes the following modules:

[0074] Image recognition module, used to receive and generate post Figure 2 The original information required for the QR code includes the base map, text information and the jump webpage address. The base map is identified and marked through image recognition and positioning technology, and the image recognition results are obtained and recorded;

[0075] A byte stream splicing module is used to process the jump web page address in combination with the image recognition result, generate first byte stream data, convert the text information into second byte stream data, perform data splicing processing on the first byte stream data and the second byte stream data, and obtain two-dimensional code byte stream data;

[0076] A positioning area generation module is used to convert the base map into image stream data, integrate the image recognition result with the image stream data, and obtain the QR code positioning area;

[0077] stick Figure 2 The QR code generation module is used to reorganize the image stream data and the QR code byte stream data into a sticker Figure 2 QR code and output it.

[0078] In a specific implementation scheme, the image recognition module includes the following units:

[0079] The image recognition unit is used to identify objects in the base map that meet the QR code generation rules through the trained image recognition template. The objects that meet the QR code generation rules are regular areas, including areas with pure white backgrounds and transparent backgrounds. The identified objects are marked through the image recognition and positioning algorithm to obtain image recognition results.

[0080] The image marking unit is used to mark the area by marking each pixel with a pure white background or a transparent background on the base map, adding a positioning value to the pixel, and obtaining the horizontal and vertical coordinates of each pixel in the area.

[0081] In a specific implementation scheme, the byte stream splicing module includes the following units:

[0082] The byte stream conversion unit is used to convert the jump web page address into a byte stream form, combine the horizontal coordinate and the vertical coordinate in the image recognition result, and finally generate and store the first byte stream data, the first byte stream data includes the size information of the two-dimensional code part, and the two-dimensional code part is the paste Figure 2 The part of the QR code that can be scanned and identified converts the received text information into a byte stream form, and generates and stores second byte stream data.

[0083] The byte stream splicing unit is used to perform byte stream assembly on the first byte stream data and the second byte stream data. The byte stream assembly method is to generate a temporary canvas with the first byte stream data, the temporary canvas has the same size as the QR code part, embed the second byte stream data into the temporary canvas to obtain the QR code byte stream data, and store it.

[0084] In a specific implementation scheme, the positioning zone generation module includes the following units:

[0085] The positioning area generation unit is used to convert the base map into a picture stream form, generate picture stream data, obtain a canvas with the same shape and size as the base map, and obtain a QR code positioning area based on the image recognition result. The QR code positioning area is used to place the generated QR code part.

[0086] In a specific embodiment, Figure 2 The QR code generation module includes the following units:

[0087] stick Figure 2 The QR code generation unit is used to configure the QR code byte stream data into the QR code positioning area in the image stream data. The configuration process is to splice the QR code byte stream data after the image stream data, generate a QR code result, convert the QR code result into an image stream form and output it.

[0088] From the above function introduction, it can be seen that a sticker in this application Figure 2 The QR code generation device has built a complete personalized QR code generation system, which has improved the visual perception of the QR code, enhanced the commercial value of the QR code, and promoted the sustained, rapid and healthy development of the economy and society.

[0089] Based on the same inventive concept as above, the embodiment of the present application further discloses a computer-readable storage medium, which stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set can be loaded and executed by a processor to implement the method embodiment provided above. Figure 2 How to generate a dimensional code.

[0090] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0091] Based on the same inventive concept as above, the embodiment of the present application also discloses a computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the above-mentioned paste Figure 2 How to generate a dimensional code.

[0092] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in the computer-readable storage medium, which may include, for example, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0093] It should be understood that the steps of the above methods and processes of the present disclosure are merely illustrative and not restrictive. It should be understood that these steps or processes may be performed in any reasonable order, and any step may be combined or divided into other sub-steps for execution, all of which are covered within the scope of protection of the present disclosure.

[0094] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for generating a sticker QR code, characterized in that: The steps include: Receive the original information required to generate the sticker QR code, the original information includes the base map, text information and the jump webpage address, identify and mark the base map through image recognition and positioning technology, and obtain and record the image recognition result; specifically The method comprises: identifying objects in the base map that meet the two-dimensional code generation rules by using a trained image recognition template, wherein the objects that meet the two-dimensional code generation rules are regular areas, and the areas include areas with pure white backgrounds and transparent backgrounds, and marking the identified objects by using an image recognition and positioning algorithm to obtain the image recognition result; The jump webpage address is processed in combination with the image recognition result to generate first byte stream data, the text information is converted into second byte stream data, and the first byte stream data and the second byte stream data are subjected to data splicing processing to obtain two-dimensional code byte stream data; specifically, the first byte stream data and the second byte stream data are subjected to byte stream assembly, and the byte stream assembly method is to generate a temporary canvas from the first byte stream data, the temporary canvas is the same size as the two-dimensional code part, and the second byte stream data is embedded in the temporary canvas to obtain the two-dimensional code byte stream data, and then stored; The base map is converted into picture stream data, and the image recognition result and the picture stream data are combined to obtain the two-dimensional code positioning area; specifically, the horizontal coordinate and the vertical coordinate of each pixel of the pure white background or transparent background on the base map in the image recognition result are updated to the picture stream data containing the positioning mark, so as to obtain the two-dimensional code positioning area; The image stream data and the two-dimensional code byte stream data are reorganized and converted into the sticker two-dimensional code and output.

2. The method for generating a sticker two-dimensional code according to claim 1, characterized in that: The step of marking the identified object by using the image recognition and positioning algorithm to obtain the image recognition result specifically includes the following steps: The area is marked by marking each pixel with a pure white background or a transparent background on the base map, adding a positioning value to the pixel, and obtaining the horizontal coordinate and the vertical coordinate of each pixel in the area.

3. The method for generating a sticker two-dimensional code according to claim 2, characterized in that: The processing of the jump webpage address in combination with the image recognition result to generate first byte stream data and converting the text information into second byte stream data specifically includes the following steps: The jump web page address is converted into a byte stream form, combined with the horizontal coordinate and the vertical coordinate in the image recognition result, and finally the first byte stream data is generated and stored. The first byte stream data includes the size information of the QR code part, and the QR code part is the part of the sticker QR code that can be scanned and identified. The received text information is converted into a byte stream form, and the second byte stream data is generated and stored.

4. The method for generating a sticker two-dimensional code according to claim 1, characterized in that: The converting the base map into picture stream data, combining the image recognition result with the picture stream data, and obtaining the QR code positioning area specifically includes the following steps: The base map is converted into a picture stream form and the picture stream data is generated to obtain a canvas with the same shape and size as the base map. The two-dimensional code positioning area is obtained according to the image recognition result, and the two-dimensional code positioning area is used to place the generated two-dimensional code part.

5. The method for generating a sticker two-dimensional code according to claim 1, characterized in that: The step of reorganizing the image stream data and the two-dimensional code byte stream data into the two-dimensional code and outputting the two-dimensional code specifically includes the following steps: The two-dimensional code byte stream data is configured into the two-dimensional code positioning area in the picture stream data. The configuration process is to splice the two-dimensional code byte stream data after the picture stream data, generate a two-dimensional code result, convert the two-dimensional code result into a picture stream form and output it.

6. A device for generating a sticker QR code, characterized in that: Includes the following modules: The image recognition module is used to receive the original information required to generate the QR code, the original information includes the base map, text information and the jump webpage address, identify and mark the base map through image recognition and positioning technology, and obtain and record the image recognition result; specifically The method comprises: identifying objects in the base map that meet the two-dimensional code generation rules by using a trained image recognition template, wherein the objects that meet the two-dimensional code generation rules are regular areas, and the areas include areas with pure white backgrounds and transparent backgrounds, and marking the identified objects by using an image recognition and positioning algorithm to obtain the image recognition result; A byte stream splicing module is used to process the jump web page address in combination with the image recognition result to generate first byte stream data, convert the text information into second byte stream data, perform data splicing processing on the first byte stream data and the second byte stream data to obtain two-dimensional code byte stream data; perform byte stream assembly on the first byte stream data and the second byte stream data, and the byte stream assembly method is to generate a temporary canvas from the first byte stream data, the temporary canvas is the same size as the two-dimensional code part, and the second byte stream data is embedded in the temporary canvas to obtain the two-dimensional code byte stream data, and store it; A positioning area generation module is used to convert the base map into picture stream data, and to obtain a two-dimensional code positioning area by combining the image recognition result and the picture stream data; specifically, the horizontal coordinate and the vertical coordinate of each pixel of the pure white background or transparent background on the base map in the image recognition result are updated to the picture stream data containing the positioning mark, so as to obtain the two-dimensional code positioning area; The sticker QR code generation module is used to transform the image stream data and the QR code byte stream data into the sticker QR code after data reorganization and output it.

7. An intelligent terminal, characterized in that: It includes a memory and a processor, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the method for generating a sticker QR code as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The readable storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the method for generating a sticker QR code as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Two-dimensional code processing method and device, medium and electronic device

    CN112560530A

  • Tracing file generation method and device, storage medium and computer equipment

    CN115878055A

  • Digital representation of multi-sensor data stream

    US20210304418A1

  • Method and apparatus for addressing multiple frame buffers

    US6411302B1