A data processing method and apparatus based on QR code recognition template

By converting template data into QR code images, users can scan the code to jump to the corresponding template page, which solves the problem of cumbersome template searching in existing technologies, improves retrieval efficiency and user experience, and ensures data security.

CN116304222BActive Publication Date: 2026-03-10SHENZHEN PUSHI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

The existing technology involves a cumbersome process of searching and selecting templates, resulting in low template retrieval efficiency, especially in outdoor high-altitude operations where the user experience is poor.

Method used

By converting template data into QR code images, users can scan the QR code image to jump to the corresponding template page, simplifying the search and selection process, and ensuring data security by using preset encoding rules and hash calculations.

Benefits of technology

It improves the efficiency of template retrieval, saves users time in searching for templates, enhances the user experience for outdoor high-altitude workers, and prevents template data tampering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116304222B_ABST
    Figure CN116304222B_ABST
Patent Text Reader

Abstract

A data processing method and apparatus based on QR code recognition templates are disclosed, relating to the field of QR code recognition technology. In this method, a server receives a QR code image sent by a user device; the QR code image is recognized to obtain preset template data; and the preset template data is sent to the user device so that the user device can display the page corresponding to the preset template data. Implementing the technical solution provided in this application simplifies the entire process of searching and selecting templates, improving the efficiency of template retrieval.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of two-dimensional code recognition, in particular to a data processing method and device based on two-dimensional code recognition templates. BACKGROUND

[0002] With the rapid development of the Internet, various industries have gradually entered the digital era. Different industries have different work standards, different standards correspond to different processing methods, and different processing methods are recorded in different templates. For example, after completing a certain work, the user selects the corresponding template to record the data of the work, which is convenient for subsequent queries.

[0003] When the user selects the template, the existing search template function on the market only has search and list functions. The user needs to search for the corresponding template through the search function or list function one by one. Using the search function, the user needs to input the search keyword first. If the keyword is input correctly and the result is queried, the user needs to manually select the desired label, and then determine to use the template according to the label. The selection process needs to input text to find the corresponding target. When the user is working outdoors, after completing a part of the work, the user needs to fill in the detection data in the template corresponding to the work, and the user needs to find the corresponding template according to the work content. When using the above method to search for the template, the entire search and selection process of the template is relatively cumbersome, resulting in low efficiency of searching for the template.

[0004] Therefore, there is an urgent need for a data processing method and device based on two-dimensional code recognition templates to solve the above technical problems. SUMMARY

[0005] The present application provides a data processing method and device based on two-dimensional code recognition templates, which improves the existing search template method, simplifies the entire search and selection process of the template, and improves the efficiency of searching for the template.

[0006] In a first aspect, the present application provides a data processing method based on two-dimensional code recognition templates, applied to a server, receiving a two-dimensional code image sent by a user device; identifying the two-dimensional code image to obtain preset template data; and sending the preset template data to the user device to facilitate the user device to display the page corresponding to the preset template data.

[0007] By adopting the above technical solution, the template data is obtained by identifying the two-dimensional code image, the page corresponding to the template data is displayed to the user device, the existing search template method is improved, the entire search and selection process of the template is simplified, and the efficiency of searching for the template is improved.

[0008] Optionally, the template data corresponding to the plurality of feature data is extracted, the plurality of template feature data includes image resolution, image size, image pixel number, template unique code and template image digest data; the plurality of template feature data is combined according to a preset encoding rule to obtain first data; the first data and the second data are superimposed to obtain a string; the string is encoded to generate two-dimensional code data, and the two-dimensional code data is generated into a two-dimensional code image through a tool.

[0009] By adopting the above technical solution, the template is converted into a two-dimensional code image, and the user can jump to the corresponding template by scanning the two-dimensional code image through the user equipment, thereby saving the time spent by the user in searching and selecting the template, and eliminating the need for the user to input a keyword to find the corresponding template. For special workers, the user experience is improved.

[0010] Optionally, the image resolution and the image size, the image pixel number, the template unique code and the template image digest data are superimposed to obtain the first data.

[0011] By adopting the above technical solution, the template data is encoded according to the encoding rule, and the encoding prevents the template data from being tampered with, so that the template data corresponding to the two-dimensional code image does not match the actual situation, and the user experience is affected. Optionally, the template feature data further includes image content, the template feature data set is obtained, and the template feature data set includes image resolution, image size, image content, image pixel number and template unique code; the template feature data set is subjected to hash calculation to obtain template image digest data.

[0012] By adopting the above technical solution, the template feature data set is subjected to hash operation, and the text information corresponding to the template data set is converted into information digest with fixed length, thereby preventing the template data from being tampered with.

[0013] Optionally, the string is obtained; and the string is encoded according to the Huffman encoding format to generate two-dimensional code data.

[0014] By adopting the above technical solution, the string is compressed, the length of the string is changed, and the string is better encoded.

[0015] Optionally, the preset template data includes template width, template length, template background image, template character position, template character content, template character size, template character color and template margin width.

[0016] By adopting the above technical solution, the step of the user needing to input an accurate keyword to quickly find the corresponding template is eliminated, the two-dimensional code image printed on the package is directly scanned to jump to the corresponding template page, subsequent user use is facilitated, and the efficiency of searching the template is improved.

[0017] Optionally, the two-dimensional code data comprises feature data and a globally unique identifier.

[0018] By adopting the technical scheme, whether the template corresponding to the two-dimensional code image is correct is further checked, so that the content of the template is prevented from being changed in the conversion process.

[0019] Optionally, the second data comprises a globally unique identifier.

[0020] By adopting the technical scheme, the generated ID can protect business privacy, thereby solving the security problem.

[0021] In a second aspect of the present application, a data processing device based on a two-dimensional code recognition template is provided. The device is a server, which comprises a receiving unit, a processing unit and a display unit. The receiving unit is configured to receive a two-dimensional code image sent by a user equipment. The processing unit is configured to recognize the two-dimensional code image to obtain preset template data. The display unit is configured to send the preset template data to the user equipment, so as to display a page corresponding to the preset template data by the user equipment.

[0022] Optionally, the receiving unit is configured to extract a plurality of template feature data corresponding to the template data, and the plurality of template feature data comprises image resolution, image size, image pixel point number, template unique code and template image digest data. The processing unit is configured to combine the plurality of template feature data according to a preset encoding rule to obtain first data, superimpose the first data and second data to obtain a string, encode the string to generate two-dimensional code data, and generate a two-dimensional code image by a tool.

[0023] Optionally, the processing unit is configured to superimpose the image resolution and the image size, the image pixel point number, the template unique code and the template image digest data to obtain the first data.

[0024] Optionally, the receiving unit is configured to obtain a template feature data set, and the template feature data set comprises image resolution, image size, image content, image pixel point number and template unique code. The processing unit is configured to perform hash calculation on the template feature data set to obtain template image digest data.

[0025] Optionally, the receiving unit is configured to obtain a string. The processing unit is configured to generate two-dimensional code data according to a Huffman encoding format.

[0026] Optionally, the preset template data comprises template width, template length, template background image, template internal character position, template internal character content, template internal character size, template internal character color and template margin width.

[0027] Optionally, the two-dimensional code data comprises feature data and a globally unique identifier.

[0028] Optionally, the second data comprises a globally unique identifier.

[0029] In a third aspect of the present application, an electronic device is provided, which comprises a processor, a memory, a user interface and a network interface. The memory is configured to store instructions. The user interface and the network interface are configured to communicate with other devices. The processor is configured to execute the instructions stored in the memory, so that the electronic device performs the method according to any one of the preceding aspects of the present application.

[0030] In a fourth aspect of the present application, a computer readable storage medium is provided, which stores instructions. When the instructions are executed, the method according to any one of the preceding aspects of the present application is performed.

[0031] To sum up, the one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0032] 1. The template data is obtained by recognizing the two-dimensional code image, and the page corresponding to the template data is displayed to the user device, thereby effectively solving the problems of complicated process and low efficiency in the existing template searching process, and further simplifying the entire searching and selecting process of the template and improving the efficiency of searching the template.

[0033] 2. The time spent by the user in searching and selecting the template is saved, and the user needs to input the keyword to find the corresponding template, which improves the user experience for special workers.

[0034] 3. In the process of converting the template data into the two-dimensional code image, the template data is processed in a series of processes to prevent the template data from being tampered with. BRIEF DESCRIPTION OF DRAWINGS

[0035] Figure 1 is a first flowchart of a data processing method for recognizing a template based on a two-dimensional code provided by the embodiments of the present application;

[0036] Figure 2 is a second flowchart of a data processing method for recognizing a template based on a two-dimensional code provided by the embodiments of the present application;

[0037] Figure 3 is a third flowchart of a data processing method for recognizing a template based on a two-dimensional code provided by the embodiments of the present application;

[0038] Figure 4 is a scene diagram of a data processing method for recognizing a template based on a two-dimensional code provided by the embodiments of the present application;

[0039] Figure 5 is a structure diagram of a data processing device for recognizing a template based on a two-dimensional code provided by the embodiments of the present application;

[0040] Figure 6 FIG. 1 is a structural schematic diagram of an electronic device according to an embodiment of the present application.

[0041] Label explanation: 501, receiving unit; 502, processing unit; 503, display unit; 600, electronic device; 601, processor; 602, communication bus; 603, user interface; 604, network interface; 605, memory. DETAILED DESCRIPTION

[0042] In order for those skilled in the art to better understand the technical solutions in the specification, the technical solutions in the specification will be clearly and completely described below in conjunction with the drawings in the embodiments of the specification. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments.

[0043] In the description of the embodiments of the present application, the words such as "for example" or "for instance" are used to represent an example, illustration or description. Any embodiment or design scheme described as "for example" or "for instance" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words such as "for example" or "for instance" are intended to present the relevant concept in a specific manner.

[0044] In the description of the embodiments of the present application, the term "a plurality of" means two or more. For example, a plurality of systems means two or more systems, and a plurality of screen terminals means two or more screen terminals. The terms "comprise", "include", "have" and their variants all mean "including but not limited to", unless otherwise specifically emphasized.

[0045] The two-dimensional code image mentioned in the present application is different from the ordinary two-dimensional code image. The two-dimensional code image mentioned in the present application is a template corresponding two-dimensional code image, which is a template special two-dimensional code image generated by converting each template data.

[0046] The technical solutions provided by the present application can be applied to industries that need to call templates, such as outdoor high-altitude operations.

[0047] Different industries have different work standards, different standards correspond to different processing methods, and different processing methods are recorded in different templates. For example, after completing a certain work, the user selects the corresponding template to record the data of the work, which is convenient for subsequent query.

[0048] When the user selects a template, since the existing search function and list function on the market only have search function and list function, the user needs to search for the corresponding template through the search function or list function one by one. Using the search function, the user needs to input a search keyword first, and if the keyword is input correctly and the result is queried out, the user needs to manually select the desired label, and then determine to use the template according to the label. The selection process needs to input text to find the corresponding target. When the user is working outdoors, after completing a part of the work, the user needs to fill in the detection data into the template corresponding to the work, and the user needs to find the corresponding template according to the work content. When the template is searched for by using the above-mentioned method, the whole search and template selection process is relatively cumbersome, which leads to low efficiency of searching for the template.

[0049] Therefore, how to change the existing search and selection method of the template and improve the efficiency of searching for the template is a problem to be solved at present. The data processing method for recognizing a template based on a two-dimensional code provided in the embodiments of the present application is applied to a server. The server of the present application can be a platform for providing template services for different industries, Figure 1 is a first flowchart of the data processing method for recognizing a template based on a two-dimensional code provided in the embodiments of the present application, and the reference Figure 1 The method comprises the following steps S101-S103.

[0050] Step S101: receiving a two-dimensional code image sent by a user equipment.

[0051] In the above step, the user equipment scans the two-dimensional code image printed on the package in response to the scanning operation of the user, the user refers to a worker in different industries, and the user equipment sends the scanned two-dimensional code image to the server. The server receives the two-dimensional code image sent by the user equipment.

[0052] In a possible implementation, the template data is converted into a corresponding two-dimensional code image, and the two-dimensional code image is printed on the corresponding package, so as to facilitate the worker to call the template during subsequent work. Figure 2 is a second flowchart of the data processing method for recognizing a template based on a two-dimensional code provided in the embodiments of the present application, and the reference Figure 2 The method comprises the following steps S201-S204.

[0053] Step S201: extracting a plurality of template feature data corresponding to the template data, the plurality of template feature data comprising image resolution, image size, image pixel point number, template unique code and template image abstract data.

[0054] In the above step, after the corresponding template is queried by inputting the keyword and the template data is selected, the server extracts the plurality of template feature data corresponding to the template.

[0055] For example, input the keyword Southern Power Grid 30mm power cable, a plurality of templates corresponding to the Southern Power Grid 30mm power cable appear, a target template is selected, a plurality of template feature data corresponding to the target template data is extracted, and the template feature data is extracted to facilitate subsequent processing of the template data.

[0056] In a possible implementation, the template feature data set is subjected to a hash operation to obtain template image summary data. Figure 3 is a third flowchart of a data processing method based on a two-dimensional code recognition template provided by an embodiment of the present application, referring to Figure 3 The method comprises the following steps S301-S302.

[0057] Step S301: Obtain a template feature data set, which includes image resolution, image size, image content, image pixel point number, and template unique code.

[0058] In the above step, the template feature data further includes image content, and after the server obtains a plurality of template feature data corresponding to the template data, the plurality of template feature data is summarized into the template feature data set.

[0059] Step S302: Perform hash calculation on the template feature data set to obtain template image summary data.

[0060] In the above step, after the server obtains the template feature data set, the length of the template image summary data obtained after the hash calculation is fixed, and the length of the template image summary data is 32 bits.

[0061] For example, the image resolution is 256, the image size is 80, the image pixel point number is 200, the template unique code is 1000054399, the image content is DFGH, 5 template feature data is summarized into the template feature data set, the template feature data set is subjected to a hash operation, and the obtained template image summary data is 5054525c20c127149212e0211398a680. The image content is different according to different templates, and here is only an example, and the image content is mainly based on the actual situation.

[0062] Step S202: Combine a plurality of template feature data according to a preset encoding rule to obtain first data.

[0063] In the above step, the preset encoding rule is to superimpose the image resolution, the image size, the image pixel number, the template unique code and the template image digest data. Using variables, the preset encoding rule is [RRRR][XXX][YYY][D10][MD5], the variable R represents the image resolution, the variable X represents the image size, the variable Y represents the image pixel number, the variable D10 represents the template unique code, and the variable MD5 represents the template image digest data.

[0064] For example, the template A is selected, the plurality of template feature data corresponding to the template A is extracted, the image resolution is 512, the image size is 100, the image pixel number is 300, the unique code of the template is 1000054398, the template image digest data is 2240818df6720938494f8b136ec36a55, and the template A is encoded according to the preset encoding rule.

[0065] The obtained encoding result is: 051210030010000543982240818df6720938494f8b136ec36a55;

[0066] The encoding result is the first data, and the first data is: 051210030010000543982240818df6720938494f8b136ec36a55.

[0067] Step S203: Superimposing the first data and the second data to obtain a string.

[0068] In the above step, the second data includes a globally unique identifier, and the globally unique identifier is an ID generated by using a snowflake algorithm. The ID can be a user or a staff member, and the ID generated by using the snowflake algorithm can ensure business privacy and has high stability, thereby solving the security problem. The snowflake algorithm uses 64 bits to represent an ID, and the 64 bits are divided into four parts, the first part is 1 bit, the second part is 41 bits representing a timestamp, the third part is 10 bits representing a ten-bit machine identifier, and the fourth part is 12 bits representing serialization.

[0069] In the above example, the first data is 051210030010000543982240818df6720938494f8b136ec36a55, and the second data is ZXCV, Z represents that the first part has 1 bit, X represents that the second part has 41 bits, C represents that the third part has 10 bits, and V represents that the fourth part has 12 bits; the first data and the second data are superimposed to obtain a string, and the string is 051210030010000543982240818df6720938494f8b136ec36a55ZXCV.

[0070] Step S204: encode the string to generate two-dimensional code data, and generate a two-dimensional code image through a tool.

[0071] In the above steps, the server obtains the string, generates two-dimensional code data according to the Huffman encoding format, and obtains the string length after superimposing the template feature data. The length of the compressed string changes after the string is compressed using Huffman encoding, and the number of the length of the compressed string is less than the number of the length of the string before compression. The generated two-dimensional code data is used to generate a two-dimensional code image through a two-dimensional code generation tool.

[0072] Further, the two-dimensional code data includes feature data and a globally unique identifier, and the feature data includes three pieces of feature information, i.e., image resolution, image size, and image pixel point number. The feature data is used to check whether the image content is correct. When it is confirmed that the image content is correct, it is confirmed that the generated two-dimensional code data corresponds to the template and can be printed on the package. When it is confirmed that the image content is incorrect, it is confirmed that the generated two-dimensional code data does not correspond to the template, and the template data needs to be processed again to generate new two-dimensional code data.

[0073] In addition, the unique code of the template and the template image digest data represent the corresponding position of each template in the server database, which facilitates quick retrieval of the template data corresponding to the two-dimensional code image in the database, improves the existing fuzzy search method, and improves the efficiency of searching for templates.

[0074] In the above example, the string is encoded in the Huffman encoding format, i.e., the string is compressed to become 101000101010101, and the two-dimensional code data is 101000101010101. Since the encoding length obtained by using Huffman encoding is variable, the length of the obtained two-dimensional code data is not fixed. Here, only an example of how to use Huffman encoding to process the string is given, and other encoding methods can also be used to process the string, which is not limited here. The generated two-dimensional code data is used to generate a two-dimensional code image a using a two-dimensional code generation tool, and the two-dimensional code image a corresponds to the template A.

[0075] Step S102: identify the two-dimensional code image to obtain preset template data.

[0076] In the above steps, the preset template data includes a template width, a template length, a template background image, a template character position, a template character content, a template character size, a template character color, and a template margin width. The preset template data is obtained in advance, and the obtained preset template data is summarized into feature information, which includes an image resolution, an image size, and an image pixel point number. The template width, the template length, and the template margin width are summarized into the image size. The template background image is summarized into the image resolution. The template character position, the template character content, the template character size, and the template character color are summarized into the image pixel point number. After the summarization, the template data is converted to generate two-dimensional code data, and the two-dimensional code data includes the feature information and a globally unique identifier. The two-dimensional code data can be generated into a two-dimensional code image by using a two-dimensional code generation tool. The template is converted into the two-dimensional code image, and the step of requiring the user to input an accurate keyword to find the corresponding template is omitted.

[0077] For example, the two-dimensional code image is set as B, the server identifies the two-dimensional code image B, and obtains the template used to generate the two-dimensional code image B in advance.

[0078] Step S103: The preset template data is sent to the user equipment, so that the user equipment displays a page corresponding to the preset template data.

[0079] In the above steps, after the server identifies the two-dimensional code image, the preset template data is obtained, and a page corresponding to the preset template data is sent to the user equipment. The page corresponding to the preset template data is displayed on the user equipment, so that the user uses the preset template data. According to the user's demand, the page corresponding to the preset template data is edited or printed.

[0080] In the above example, when the user is working outdoors, when the user is repairing a 30 mm power cable of the Southern Power Grid, after repairing one of the cable lines f, the user needs to fill the repair data into the template corresponding to the cable line f, and the two-dimensional code image corresponding to the cable line f template is printed on the package in advance. The user uses the user equipment to perform a scanning operation, the user equipment sends the scanned two-dimensional code image B to the server, the server identifies the two-dimensional code image B, and obtains the template data corresponding to the two-dimensional code image B. Then, the server displays a page corresponding to the template data on the user equipment, so that the user edits the template page. The template corresponding to the two-dimensional code image B is as shown in FIG. 8, Figure 4 Figure 4 is a scene diagram of a data processing method based on two-dimensional code identification of a template provided by the embodiment of the application.

[0081] ​Further, for the personnel engaged in outdoor high-altitude operation, the corresponding template is jumped to by scanning the two-dimensional code image, the step that the user needs to input accurate keywords to quickly find the corresponding template is saved, the efficiency of searching the template is improved when the user is engaged in high-altitude operation, the possibility that the high-altitude operation personnel has an accident is reduced due to that the corresponding template is not searched, the safety of the user is ensured.

[0082] In the foregoing manner, the template data is obtained by recognizing the two-dimensional code image, the page corresponding to the template data is displayed to the user equipment, the existing template searching manner is improved, the whole searching and selecting template process becomes simple, and the efficiency of searching the template is improved. The time spent by the user in searching and selecting the template is saved, the step that the user needs to input accurate keywords to search the corresponding template is saved, the user experience is improved for the special working personnel.

[0083] The application also provides a data processing device for recognizing templates based on two-dimensional codes, Figure 5 is a structural schematic diagram of a data processing device for recognizing templates based on two-dimensional codes provided by the application, referring to Figure 5 The server comprises a receiving unit 501, a processing unit 502 and a display unit 503.

[0084] The receiving unit 501 is configured to receive the two-dimensional code image sent by the user equipment.

[0085] The processing unit 502 is configured to recognize the two-dimensional code image to obtain preset template data.

[0086] The display unit 503 sends the preset template data to the user equipment, so that the user equipment displays the page corresponding to the preset template data.

[0087] In a possible implementation, the receiving unit 501 is configured to extract a plurality of template feature data corresponding to the template data, the plurality of template feature data comprises image resolution, image size, image pixel point number, template unique code and template image abstract data; the processing unit 502 is configured to combine the plurality of template feature data according to a preset encoding rule to obtain first data; superimpose the first data and second data to obtain a string; encode the string to generate two-dimensional code data, and generate a two-dimensional code image by means of a tool.

[0088] In a possible implementation, the processing unit 502 is configured to superimpose the image resolution and the image size, the image pixel point number, the template unique code and the template image abstract data to obtain the first data.

[0089] In a possible implementation, the receiving unit 501 is configured to acquire a template feature data set, the template feature data set including image resolution, image size, image content, image pixel number, and template unique code; and the processing unit 502 is configured to perform hash calculation on the template feature data set to obtain template image abstract data.

[0090] In a possible implementation, the receiving unit 501 is configured to acquire a string; and the processing unit is configured to generate two-dimensional code data according to the string in a Huffman coding format.

[0091] In a possible implementation, the preset template data includes template width, template length, template background image, character position in the template, character content in the template, character size in the template, character color in the template, and template margin width.

[0092] In a possible implementation, the two-dimensional code data includes feature data and a globally unique identifier.

[0093] In a possible implementation, the second data includes a globally unique identifier.

[0094] It should be noted that, when the apparatuses provided in the above embodiments implement their functions, only the division of the above functional modules is exemplified, and in actual applications, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatuses and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.

[0095] The application further discloses an electronic device. Refer to Figure 6 , Figure 6 An electronic device structure diagram is provided for the embodiments of the application. The electronic device 600 can include at least one processor 601, at least one network interface 604, a user interface 603, a memory 605, and at least one communication bus 602.

[0096] The communication bus 602 is configured to realize the connection and communication between the components.

[0097] The user interface 603 can include a display screen (Display) and a camera (Camera), and the optional user interface 603 can further include a standard wired interface and a wireless interface.

[0098] The network interface 604 can optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).

[0099] The processor 601 can include one or more processing cores. The processor 601 connects various parts within the server through various interfaces and lines, executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 605, and calling data stored in the memory 605. Alternatively, the processor 601 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 601 can integrate a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes operating systems, user interfaces, and application requests; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 601, but can be realized by a separate chip.

[0100] The memory 605 can include a random access memory (RAM) and a read-only memory (ROM). Optionally, the memory 605 includes a non-transitory computer-readable storage medium. The memory 605 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 605 can include a program storage area and a data storage area. The program storage area can store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area can store data related to the above-mentioned various method embodiments, etc. The memory 605 can also be at least one storage device located away from the aforementioned processor 601.

[0101] As shown in Figure 6 The memory 605 as a computer storage medium can include an operating system, a network communication module, a user interface module, and an application program based on a two-dimensional code recognition template data processing.

[0102] In Figure 6In the electronic device 600 shown, the user interface 603 is mainly used to provide an interface for the user to input, and obtain data input by the user; and the processor 601 can be used to call an application program stored in the memory 605 and based on a two-dimensional code recognition template, and when executed by one or more processors, cause the electronic device to perform the method described in one or more of the above embodiments.

[0103] An electronic device readable storage medium stores instructions. When executed by one or more processors, cause the electronic device to perform the method described in one or more of the above embodiments.

[0104] It should be noted that, for the foregoing method embodiments, in order to simply describe, they are all described as a series of action combinations, but those skilled in the art should know that the present application is not limited to the order of the actions described, because according to the present application, certain steps can be performed in other order or at the same time. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0105] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0106] In several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some services interfaces, devices or units, and can be electrical or other forms.

[0107] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e. they can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0108] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0109] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable memory. Based on such understanding, the technical solutions of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a memory and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present application. The aforementioned memory includes: a U disk, a mobile hard disk, a magnetic disk or an optical disk, and various media that can store program codes.

[0110] The above is only exemplary embodiments of the present disclosure, which cannot limit the scope of the present disclosure. That is, any equivalent changes and modifications made in accordance with the teachings of the present disclosure are still within the scope of the present disclosure. Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon considering the specification and practicing the true principles of the present disclosure. The present application is intended to cover any variations, uses or adaptive changes of the present disclosure that follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not recorded in the present disclosure.

Claims

1. A data processing method based on a two-dimensional code recognition template, characterized in that, Applied to a server, the method comprises: Receiving a two-dimensional code image sent by a user equipment; before receiving the two-dimensional code image sent by the user equipment, the method further comprises: extracting a plurality of template feature data corresponding to template data, the plurality of template feature data comprising image resolution, image size, image pixel point number, template unique code and template image abstract data; combining the plurality of template feature data according to a preset encoding rule to obtain first data; superimposing the first data and second data to obtain a string; encoding the string to generate two-dimensional code data, and generating the two-dimensional code image from the two-dimensional code data through a tool; the combining the plurality of template feature data according to a preset encoding rule to obtain first data; specifically comprising: superimposing the image resolution and the image size, the image pixel point number, the template unique code and the template image abstract data to obtain the first data; the second data comprises a globally unique identifier, the globally unique identifier is an ID generated by using a snowflake algorithm, and the ID is the ID information of a user or a staff; the encoding the string to generate two-dimensional code data specifically comprises: obtaining the string; generating the two-dimensional code data according to the Huffman encoding format of the string, compressing the string using the Huffman encoding, and the length of the compressed string is less than the length of the string before compression; Identifying the two-dimensional code image to obtain preset template data; Sending the preset template data to the user equipment so as to display a page corresponding to the preset template data by the user equipment.

2. The method of claim 1, wherein, The template feature data further comprises image content, and the method further comprises: Obtaining a template feature data set, the template feature data set comprising the image resolution, the image size, the image content, the image pixel point number and the template unique code; Hash calculating the template feature data set to obtain the template image abstract data.

3. The method of claim 1, wherein, The preset template data comprises template width, template length, template background image, template internal character position, template internal character content, template internal character size, template internal character color and template margin width.

4. The method of claim 3, wherein, The two-dimensional code data comprises feature data and a globally unique identifier.

5. A data processing apparatus based on a two-dimensional code recognition template, characterized by, The device is a server, and the server comprises a receiving unit (501), a processing unit (502) and a display unit (503); The receiving unit (501) is configured to receive a two-dimensional code image sent by a user equipment; Before the receiving the two-dimensional code image sent by the user equipment, further comprising: extracting a plurality of template feature data corresponding to the template data, the plurality of template feature data comprising image resolution, image size, image pixel point number, template unique code and template image abstract data; combining the plurality of template feature data according to a preset encoding rule to obtain first data; superimposing the first data and second data to obtain a string; encoding the string to generate two-dimensional code data, and generating the two-dimensional code image through a tool; the combining the plurality of template feature data according to a preset encoding rule to obtain first data specifically comprises: superimposing the image resolution and the image size, the image pixel point number, the template unique code and the template image abstract data to obtain the first data; the second data comprises a globally unique identifier, the globally unique identifier is an ID generated by using a snowflake algorithm, and the ID is the ID information of a user or a staff; the encoding the string to generate two-dimensional code data specifically comprises: obtaining the string; generating the two-dimensional code data according to a Huffman encoding format, compressing the string using the Huffman encoding, and the length of the compressed string is less than the length of the string before compression; The processing unit (502) is configured to identify the two-dimensional code image to obtain preset template data. The display unit (503) is configured to send the preset template data to the user equipment, so that the user equipment displays a page corresponding to the preset template data.

6. An electronic device, comprising: The electronic device (600) comprises a processor (601), a memory (605), a user interface (603) and a network interface (604), the memory (605) is configured to store instructions, the user interface (603) and the network interface (604) are configured to communicate with other devices, and the processor (601) is configured to execute the instructions stored in the memory (605) to enable the electronic device (600) to perform the method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Electronic order generation method and device, terminal and storage medium

    CN111985984A