A method and device for setting graphic code printing parameters

By obtaining the printing device model and determining the appropriate range of printing parameters, the matching problem when printing graphic codes by inkjet printers or printers is solved, the error tolerance and recognition accuracy of graphic codes are improved, and the use effect of graphic codes is improved.

CN113011536BActive Publication Date: 2024-11-15CHINA COMMERCE NETWORKS (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110268837.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-12
Publication Date
2024-11-15
Estimated Expiration
2041-03-12

AI Technical Summary

Technical Problem

The inkjet printer or printing machine may not match the graphics code well when printing the graphics code, resulting in the graphics code being deformed or partially missing, affecting the recognition accuracy of the recognition device and the error tolerance of the graphics code.

Method used

By obtaining the model of the printing device, determine the appropriate printing parameter value range based on the pre-stored model and the printing parameter value range of the graphics code, and set the values ​​of the printing parameters within this range to ensure that the graphics code matches the device and avoid Deformity or missing.

Benefits of technology

It improves the error tolerance and recognition accuracy of graphics codes, and significantly improves the use effect of graphics codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113011536B_ABST
    Figure CN113011536B_ABST
Patent Text Reader

Abstract

The present application discloses a method for setting printing parameters of a graphic code. A terminal device first obtains the model of a device for printing a graphic code, wherein the graphic code is a character-type graphic code. Then, based on the correspondence between the model and a pre-stored correspondence between the model and the printing parameter value range of the graphic code, the printing parameter value range of the graphic code is determined, and then the value of the printing parameter of the graphic code is set. The value of the printing parameter does not exceed the printing parameter value range. After setting the value of the printing parameter, the value of the printing parameter is output to the device for printing the graphic code, so that the device can print the graphic code according to the value of the printing parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of graphic code technology, and in particular to a method and device for setting graphic code printing parameters. Background Art

[0002] Graphic codes refer to graphic arrangements that carry certain information according to set rules, such as QR codes. Since QR codes are regular square graphic codes composed of multiple blocks, the encoding method is simple and easy to generate. Even hand-drawn QR codes can be effectively recognized. However, they cannot meet the security requirements of individuals or enterprises for graphic codes that are not easy to be copied or tampered with.

[0003] Based on this, the outline of a certain character, such as the outline of the character "N", can be used as the outline of the graphic code. By performing graphic encoding on the embedded data, a graphic composed of lines is obtained, and then the graphic is embedded in the outline of the graphic code, thereby obtaining the "N" character graphic code containing data information. Since the graphic composed of lines reduces the dimension of graphic encoding for data compared to the graphic composed of blocks, in the case of equal amounts of data, the area occupied by the graphic code corresponding to the data in the graphic code is reduced. Therefore, the difficulty of generating, copying and tampering with the graphic code can be increased by reducing the size of this type of character-type graphic code. This type of character-type graphic code has greatly improved security compared to QR codes.

[0004] However, when printing a graphic code, the inkjet printer or printer may not match or align the graphic code well. The graphic code may be deformed or even partially missing when printed, causing the recognition device to be unable to recognize the data embedded in the graphic code well. The graphic code has a low fault tolerance rate, which affects the recognition accuracy of the graphic code and results in poor use of the graphic code.

[0005] Therefore, a solution is urgently needed to solve the above problems. Summary of the invention

[0006] The technical problem to be solved by the present application is to provide a graphic code printing method to solve the current problem that when printing a graphic code, an inkjet printer or a printer may not match or align the graphic code well, and the graphic code may be deformed or even partially missing when printing, resulting in the recognition device being unable to recognize the data embedded in the graphic code well, the fault tolerance rate of the graphic code being low, affecting the recognition accuracy of the graphic code, and the problem that the use effect of the graphic code is not good.

[0007] In a first aspect, an embodiment of the present application provides a method for setting graphic code printing parameters, the method comprising:

[0008] Obtaining the model of the device for printing the graphic code, wherein the graphic code is a character-type graphic code;

[0009] Determine the printing parameter value range of the graphic code according to the correspondence between the model and the pre-stored correspondence between the model and the printing parameter value range of the graphic code;

[0010] The value of the printing parameter of the graphic code is set, and the value of the printing parameter does not exceed the printing parameter value range.

[0011] Optionally, the printing parameters include: one or more of: row spacing, column spacing, image length, image width, embedded data value, and the number of pixels included in each pixel point.

[0012] Optionally, before setting the value of the printing parameter of the graphic code, the method further includes:

[0013] Displays the value range of the printing parameters.

[0014] Optionally, the value of setting the printing parameter of the graphic code includes:

[0015] The value of the printing parameter of the graphic code is set according to the value of the printing parameter input by the user.

[0016] Optionally, the dots per inch (dpi) of the graphic code is greater than a first threshold, and the first threshold is determined according to the model of the device for printing the graphic code.

[0017] In a second aspect, an embodiment of the present application provides a device for setting graphic code printing parameters, the device comprising:

[0018] An acquisition module, used to: acquire the model of a device for printing a graphic code, wherein the graphic code is a character-type graphic code;

[0019] A determination module, used to determine the printing parameter value range of the graphic code according to the correspondence between the model and the pre-stored correspondence between the model and the printing parameter value range of the graphic code;

[0020] The setting module is used to set the value of the printing parameter of the graphic code, and the value of the printing parameter does not exceed the printing parameter value range.

[0021] Optionally, the printing parameters include: one or more of: row spacing, column spacing, image length, image width, embedded data value, and the number of pixels included in each pixel point.

[0022] Optionally, before setting the value of the printing parameter of the graphic code, the device further includes:

[0023] The display module is used to display the value range of the printing parameters.

[0024] Optionally, the value of setting the printing parameter of the graphic code includes:

[0025] The value of the printing parameter of the graphic code is set according to the value of the printing parameter input by the user.

[0026] Optionally, the dots per inch (dpi) of the graphic code is greater than a first threshold, and the first threshold is determined according to the model of the device for printing the graphic code.

[0027] Compared with the prior art, the embodiments of the present application have the following advantages:

[0028] The embodiment of the present application provides a method for setting the printing parameters of a graphic code, wherein the terminal device first obtains the model of the device for printing the graphic code, wherein the graphic code is a character-type graphic code, and then determines the printing parameter value range of the graphic code according to the correspondence between the model and the pre-stored printing parameter value range of the model and the graphic code, and then sets the value of the printing parameter of the graphic code, wherein the value of the printing parameter does not exceed the printing parameter value range, and after setting the value of the printing parameter, outputs the value of the printing parameter to the device for printing the graphic code, so that the device can print the graphic code according to the value of the printing parameter. It can be seen that before printing the graphic code, the printing parameter value range of the graphic code suitable for the printing device is first determined according to the pre-stored correspondence between the model and the printing parameter value range of the graphic code, and then the value of the printing parameter is determined within the printing parameter value range, so that the value of the printing parameter can be suitable for the printing device. By adopting this method, when the printing device prints the graphic code, the two match each other, thereby avoiding the printed graphic code from being deformed or even partially missing, so that the printed graphic code can well preserve the data embedded therein, improve the fault tolerance and recognition accuracy of the graphic code, and significantly improve the use effect of the graphic code. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 A flowchart of a method for setting graphic code printing parameters provided in an embodiment of the present application;

[0031] Figure 2 A schematic diagram of a graphic code provided in an embodiment of the present application;

[0032] Figure 3 A schematic diagram of the structure of a device for setting graphic code printing parameters provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0034] After research, the inventor of this application found that, currently, when printing graphic codes, inkjet printers or printers may not match or align the graphic codes well, and the graphic codes may appear deformed or even partially missing when printed, causing the recognition device to be unable to recognize the data embedded in the graphic codes well, affecting the recognition accuracy of the graphic codes.

[0035] In order to solve the above problem, in an embodiment of the present application, the terminal device first obtains the model of the device for printing the graphic code, the graphic code is a character-type graphic code, and then determines the printing parameter value range of the graphic code according to the correspondence between the model and the pre-stored printing parameter value range of the model and the graphic code, and then sets the value of the printing parameter of the graphic code, the value of the printing parameter does not exceed the printing parameter value range, and after setting the value of the printing parameter, outputs the value of the printing parameter to the device for printing the graphic code, so that the device can print the graphic code according to the value of the printing parameter. It can be seen that before printing the graphic code, the printing parameter value range of the graphic code suitable for the printing device is first determined according to the pre-stored correspondence between the model and the printing parameter value range of the graphic code, and then the value of the printing parameter is determined within the printing parameter value range, so that the value of the printing parameter can be suitable for the printing device. By adopting this method, when the printing device prints the graphic code, the two match each other, thereby avoiding the printed graphic code from being deformed or even partially missing, so that the printed graphic code can well preserve the data embedded therein, improve the fault tolerance and recognition accuracy of the graphic code, and significantly improve the use effect of the graphic code.

[0036] Various non-limiting implementations of the present application are described in detail below in conjunction with the accompanying drawings.

[0037] Exemplary Methods

[0038] See also Figure 1 , shows a flow chart of a method for setting graphic code printing parameters in an embodiment of the present application. Figure 1 The method shown, in one implementation, may be executed, for example, by a terminal device.

[0039] In this embodiment, Figure 1 The method shown can be implemented, for example, through the following steps S101 - S103 .

[0040] S101: Obtain the model of a device for printing a graphic code, where the graphic code is a character-type graphic code.

[0041] In this embodiment, considering that the printing device may not match the graphic code to be printed, the graphic code may be deformed or partially missing when printed. To avoid this, the model of the device that prints the graphic code can be obtained first. The printing device can be, for example, a printer or an inkjet printer, and the graphic code can be, for example, a character-type graphic code. The character-type graphic code described in the embodiment of this application is described below.

[0042] See also Figure 2 , shows a schematic diagram of a graphic code in an embodiment of the present application, Figure 2 The graphic code shown uses the outline of the first character as the outline of the graphic code. The first character can be an English letter, an Arabic numeral, a Greek letter, etc. In the specific application process, the first character can be set according to the actual application requirements, and no limitation is made here. It should be noted that in the graphic code printing method provided in the embodiment of the present application, the outline of the graphic code is the outline of the first character.

[0043] In practical applications, data can be embedded in the graphic code. In the process of embedding data, the first character can be designed to be hollow, and the outline of the first character is retained as the outline of the graphic. Within the outline of the graphic code, that is, within the outline of the first character, a graphic positioning symbol and a data embedding area are included. The graphic positioning symbol can be any graphic symbol, for example, a geometric figure, an English letter, a Greek letter, etc. In the specific application process, the specific form of the graphic positioning symbol can be set according to the actual application requirements, and no limitation is made here.

[0044] The above-mentioned graphic positioning symbol is used to locate the graphic code. In practical applications, the position of the graphic code can be determined by determining the graphic positioning symbol, and the degree of inclination of the graphic code can be determined according to the degree of inclination of the graphic positioning symbol. In addition, the graphic positioning symbol is also used to locate the data embedding area. In practical applications, the area included in the first character outline corresponding to the preset orientation of the graphic positioning symbol can be set as the data embedding area. Among them, the preset orientation can be any orientation of the graphic positioning symbol, for example, directly below the graphic positioning symbol.

[0045] The data embedding area includes a binary dot matrix, which is obtained by binary graphic encoding of original data, wherein the original data refers to data carrying certain information, such as enterprise code, product anti-counterfeiting code, etc. In other words, the original data is embedded in the data embedding area in the form of a binary dot matrix, and the binary dot matrix includes a first data symbol and a second data symbol, the first data symbol is a first line, and the second data symbol is a second line.

[0046] In practical applications, the original data may be firstly binary-encoded, that is, the original data may be represented by "0" and "1", and then the binary-encoded data may be graphically encoded, that is, the binary data represented by "0" and "1" may be converted into graphical data represented by a first data symbol and a second data symbol, wherein "0" may be identified by the first data symbol and "1" may be identified by the second data symbol. Alternatively, "0" may be identified by the second data symbol and "1" may be identified by the first data symbol, which may be set according to the actual situation and is not limited here.

[0047] S102: Determine the printing parameter value range of the graphic code according to the correspondence between the model and the pre-stored correspondence between the model and the printing parameter value range of the graphic code.

[0048] After obtaining the model of the device, the value range of the printing parameters of the graphic code matching the device can be determined. When matching, the pre-stored correspondence between the model and the value range of the printing parameters of the graphic code can be searched, and then the determination is made based on the correspondence and the model.

[0049] In one example, the printing parameters include one or more of row spacing, column spacing, image length, image width, embedded data value, and the number of pixels included in each pixel point. The row spacing and column spacing are parameters that describe the interval between data symbols, the image length and the image width are the length and width of the image obtained by converting the graphic code, for example, they can be 100mm, the embedded data value is the number of data carried in the graphic code, the data can be binary data, and the number of pixels included in each pixel point refers to the number of pixels contained in the target pixel point, for example, it can be 1, 4, etc.

[0050] S103: Setting the value of the printing parameter of the graphic code, wherein the value of the printing parameter does not exceed the printing parameter value range.

[0051] It can be understood that the printing parameter range gives the value range of the printing parameters that match the graphic code and the device. When the printing parameters do not exceed the printing parameter range, a clear and complete graphic code can be obtained by printing according to the printing parameters. It can be seen that before printing the graphic code, the printing parameter value range of the graphic code suitable for the printing device is determined based on the pre-stored correspondence between the model and the printing parameter value range of the graphic code, and then the value of the printing parameter is determined within the printing parameter value range, so that the value of the printing parameter can be suitable for the printing device. With this method, when the printing device prints the graphic code, the two match each other, avoiding the situation where the printed graphic code is deformed or even partially missing, so that the printed graphic code can well preserve the embedded data, thereby improving the recognition accuracy of the graphic code.

[0052] In one example, before setting the value of the printing parameter of the graphic code, the terminal device may display the value range of the printing parameter, and after the user knows the value range of the printing parameter, the user may input the value of the printing parameter, and the value of the printing parameter does not exceed the value range of the printing parameter. The terminal device sets the value of the printing parameter of the graphic code according to the value of the printing parameter input by the user.

[0053] In this embodiment, in order to enable the device for printing graphic codes to print the graphic codes according to the values ​​of the printing parameters, the terminal device can output the values ​​of the printing parameters to the device for printing graphic codes, and then the device for printing graphic codes prints the graphic codes according to the parameters, so that the printed graphic codes are clear and complete.

[0054] In one example, in order to further improve the clarity of the printed graphic code, the terminal device may set the dots per inch (dpi) of the graphic code to be greater than a first threshold when generating the graphic code, and the first threshold is determined according to the model of the device printing the graphic code. In the case of ensuring that the data is completely embedded, the rows and columns containing the pixels may be set to be at least 1 pixel apart, so that the boundaries between the pixels are clear and distinct.

[0055] Taking into account that errors may occur in the data to be embedded when the terminal device generates the graphic code, in order to discover the erroneous data and correct it, corresponding levels of error correction data can be added to the data to be embedded through Reed-Solomon codes (RS codes) and error correction algorithms, so that the recognition device can correct the data of the corresponding level, thereby accurately obtaining the data embedded in the image.

[0056] Exemplary Devices

[0057] Based on the method provided in the above embodiment, the embodiment of the present application further provides a device, which is described below in conjunction with the accompanying drawings.

[0058] See also Figure 3 , shows a schematic diagram of the structure of a device for setting graphic code printing parameters in an embodiment of the present application. The device may specifically include:

[0059] Acquisition module 201: used to acquire the model of the device for printing the graphic code, wherein the graphic code is a character-type graphic code;

[0060] Determining module 202: used to determine the printing parameter value range of the graphic code according to the correspondence between the model and the pre-stored correspondence between the model and the printing parameter value range of the graphic code;

[0061] Setting module 203: used to set the value of the printing parameter of the graphic code, and the value of the printing parameter does not exceed the printing parameter value range.

[0062] Through this device, when the printing device prints the graphic code, the two are matched with each other, thereby avoiding the printed graphic code from being deformed or even partially missing, so that the printed graphic code can well preserve the data embedded therein, improve the fault tolerance and recognition accuracy of the graphic code, and significantly improve the use effect of the graphic code.

[0063] In one implementation, the printing parameters include: one or more of: row spacing, column spacing, image length, image width, embedded data value, and the number of pixels included in each pixel point.

[0064] In one implementation, before setting the value of the printing parameter of the graphic code, the device further includes:

[0065] The display module is used to display the value range of the printing parameters.

[0066] In one implementation, the setting of the value of the printing parameter of the graphic code includes:

[0067] The value of the printing parameter of the graphic code is set according to the value of the printing parameter input by the user.

[0068] In one implementation, the dots per inch (dpi) of the graphic code is greater than a first threshold, and the first threshold is determined according to the model of the device for printing the graphic code.

[0069] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0070] It should be understood that the present application is not limited to the precise structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

[0071] The above description is only a preferred 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 should be included in the protection scope of the present application.

Claims

1. A method for setting graphic code printing parameters, characterized in that: The method comprises: Obtaining the model of a device for printing a graphic code, wherein the graphic code is a character-type graphic code; the outline of the graphic code includes a graphic positioning symbol and a data embedding area, wherein the data embedding area is used to embed original data, and the graphic positioning symbol is used to locate the graphic code and the data embedding area; the number of dots per inch (dpi) of the graphic code is greater than a first threshold value, and the first threshold value is determined according to the model of the device for printing the graphic code; Determine the printing parameter value range of the graphic code according to the correspondence between the model and the pre-stored printing parameter value range of the model and the graphic code; the printing parameter range is used to indicate the value range of the printing parameters that match the graphic code and the device, the printing parameters include row spacing, column spacing, image length, image width, embedded data value and the number of pixels included in each pixel point, the embedded data value is the number of the original data carried in the graphic code, and there is at least one pixel between the row and column containing the pixel points; The value of the printing parameter of the graphic code is set, and the value of the printing parameter does not exceed the value range of the printing parameter; printing is performed according to the printing parameter to obtain a clear and complete graphic code, and the recognition device recognizes the printed graphic code to obtain the original data.

2. The method according to claim 1, characterized in that Before setting the value of the printing parameter of the graphic code, the method further includes: Displays the value range of the printing parameters.

3. The method according to claim 2, characterized in that The value of the printing parameter of the graphic code is set to include: The value of the printing parameter of the graphic code is set according to the value of the printing parameter input by the user.

4. A device for setting printing parameters of a graphic code, characterized in that: The device comprises: an acquisition module, used for: acquiring the model of a device for printing a graphic code, wherein the graphic code is a character-type graphic code; the outline of the graphic code includes a graphic positioning symbol and a data embedding area, wherein the data embedding area is used to embed original data, and the graphic positioning symbol is used to locate the graphic code and the data embedding area; the number of dots per inch (dpi) of the graphic code is greater than a first threshold value, and the first threshold value is determined according to the model of the device for printing the graphic code; A determination module, used to: determine the printing parameter value range of the graphic code according to the correspondence between the model and the pre-stored printing parameter value range of the model and the graphic code; the printing parameter range is used to indicate the value range of the printing parameters that match the graphic code and the device, the printing parameters include row spacing, column spacing, image length, image width, embedded data value and the number of pixels included in each pixel point, the embedded data value is the number of the original data carried in the graphic code, and there is at least one pixel between the row and column containing the pixel points; The setting module is used to: set the value of the printing parameter of the graphic code, the value of the printing parameter does not exceed the value range of the printing parameter; print according to the printing parameter to obtain a clear and complete graphic code, and the recognition device obtains the original data by recognizing the printed graphic code.

5. The device according to claim 4, characterized in that Before setting the value of the printing parameter of the graphic code, the device further includes: The display module is used to display the value range of the printing parameters.

6. The device according to claim 5, characterized in that The value of the printing parameter of the graphic code is set to include: The value of the printing parameter of the graphic code is set according to the value of the printing parameter input by the user.