A two-dimensional code encoding method and device of a tool, and a recognition method and device
By setting specific length digits and padding characters for tool coding to generate QR codes, the problem of alloy steel and stainless steel tools requiring different equipment is solved, achieving improved equipment compatibility and decoding efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGDONG HIPS TECH CO LTD
- Filing Date
- 2026-04-17
- Publication Date
- 2026-07-10
AI Technical Summary
The significant differences between alloy steel and stainless steel in tool production necessitate different production equipment, increasing production costs.
A QR code encoding method for cutting tools is adopted, which is compatible with stainless steel and alloy steel cutting tools. By setting specific length digits and fill characters, the length of information for various cutting tools is made consistent, generating the original QR code, and filling the background with a background color to obtain the QR code graphic.
This enables the same set of production equipment to be compatible with different types of cutting tools, reducing production costs, improving equipment utilization, and increasing decoding speed and storage resource utilization.
Smart Images

Figure CN122366489A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of QR code technology, specifically to a QR code encoding method and device, and a QR code recognition method and device for a cutting tool. Background Technology
[0002] While QR code technology is mature, its application faces challenges due to the lack of unified standards in the cutting tool industry. Some countries and regions use alloy steel cutting tools, while others use stainless steel. my country, needing to meet the requirements of both, must balance production standards for both alloy steel and stainless steel tools. The differences between alloy steel and stainless steel tools are significant, including not only material variations but also differences in shank clamping models, clamping diameters, spindle models, and spindle lengths, with substantial differences in length dimensions. This necessitates the use of different equipment in the production process. However, this requires different production lines for different shanks, effectively doubling the production costs for cutting tool manufacturers.
[0003] Therefore, there is an urgent need to develop a QR code encoding method and device, as well as an identification method and device, for knives that are compatible with both stainless steel and alloy steel knives and all types and models of knives. Summary of the Invention
[0004] The present invention aims to solve the above-mentioned technical problems.
[0005] Therefore, the first objective of this invention is to propose a QR code encoding method for cutting tools that is compatible with both stainless steel and alloy steel cutting tools, and is compatible with all types of cutting tool models.
[0006] The second objective of this invention is to provide a QR code encoding device for a cutting tool.
[0007] The third objective of this invention is to propose a method for identifying QR codes on cutting tools.
[0008] The fourth objective of this invention is to provide a QR code recognition device for a cutting tool.
[0009] To achieve the above objectives, this invention discloses a QR code encoding method for cutting tools, comprising the following steps: Step S010: Receiving tool information input by a user, including: tool holder clamping model, clamping diameter, tool holder material, spindle model, and spindle length; and acquiring production information; Step S020: Setting specific length digits for the tool holder clamping model, clamping diameter, tool holder material, spindle model, and spindle length respectively; when the length of the received tool information is insufficient, adding padding characters before or after to ensure that the length digits of various tool information are consistent, and dividing them into... Step S030: Obtain the tool holder clamping model string, clamping diameter string, tool holder material string, spindle model string, and spindle length string; Step S040: Generate a hot-fitting machine string from the tool holder clamping model string, clamping diameter string, and tool holder material string; Generate a tool setting instrument string from the spindle model string, spindle length string, and production information; Step S050: Combine the hot-fitting machine string and the tool setting instrument string, and generate the original QR code; Step S050: Fill the background of the original QR code with a background color to obtain the QR code graphic.
[0010] In addition, the QR code encoding method for the cutting tool according to the above-described technical solution of this application may also have the following additional technical features: Optionally, the production information includes the production date and production batch number.
[0011] Optionally, the production date and production batch number are input by the user in step S010, or obtained by the system by retrieving the current time and date information and the production batch number.
[0012] Optionally, step S010 may also receive user input of QR code size information, and after obtaining the QR code graphic in step S050, stretch the QR code graphic to the QR code size.
[0013] Optionally, the marking parameters of the QR code marking machine can be adjusted based on the background color and size information of the QR code graphic, as well as the standard power for QR code debugging.
[0014] To achieve the above objectives, a second aspect of the present invention provides a QR code encoding device for cutting tools, comprising: an input module for receiving tool information input by a user, including: tool holder clamping model, clamping diameter, tool holder material, spindle model, and spindle length; and acquiring production information; and a compatibility adjustment module for setting specific length digits for the tool holder clamping model, clamping diameter, tool holder material, spindle model, and spindle length, and adding padding characters before or after the received tool information when the length is insufficient to ensure consistency in the length digits of various tool information, and respectively. The system obtains the following strings: tool holder model string, clamping diameter string, tool holder material string, spindle model string, and spindle length string; a first generation module generates a hot-fitting machine string from the tool holder model string, clamping diameter string, and tool holder material string; and generates a tool setting instrument string from the spindle model string, spindle length string, and production information; a second generation module combines the hot-fitting machine string and the tool setting instrument string to generate a QR code source code; and a filling module fills the background of the QR code source code with a background color to obtain a QR code graphic.
[0015] Optionally, it also includes a production information acquisition device, wherein the production information includes a production date and a production batch number, which are input by the user in the input module or obtained by the system by retrieving the current time and date information and the production batch number.
[0016] Optionally, the input module is also used to receive user input of QR code size information; it also includes a stretching module: used to stretch the QR code graphic to the QR code size after the filling module obtains the QR code graphic.
[0017] Optionally, it also includes a marking module: used to adjust the marking parameters of the QR code marking machine according to the background color of the QR code graphic, the QR code size information, and the QR code debugging standard power.
[0018] To achieve the above objectives, a third aspect of the present invention provides a QR code recognition method for a cutting tool, applicable to QR code images obtained by the encoding method of the first aspect embodiment, comprising the following steps: Step S110: Acquiring the QR code image; Step S120: Decoding the original QR code according to a predetermined decoding rule; Step S130: Further decoding the obtained original QR code to obtain a hot-fitting machine string or a tool setting instrument string; The hot-fitting machine reads the hot-fitting machine string, and the tool setting instrument reads the tool setting instrument string; Step S140: When the hot-fitting machine reads the hot-fitting machine string, or when the tool setting instrument reads... When retrieving the tool setting instrument string, based on the specific length of the tool holder clamping model, clamping diameter, tool holder material, spindle model, and spindle length, respectively set by a specific number of digits, the tool holder clamping model string, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string are obtained respectively; Step S150: Remove the padding characters from the tool holder clamping model string, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string, to obtain the tool holder clamping model, clamping diameter, and tool holder material information, or the spindle model, spindle length information, and production information.
[0019] To achieve the above objectives, a fourth aspect of the present invention provides a QR code recognition device for a cutting tool, applicable to QR code images obtained by the encoding method proposed in the first aspect, comprising: a data acquisition module for acquiring the QR code image; a decoding module for decoding the original QR code according to a predetermined decoding rule; a first recognition module for further decoding the obtained original QR code to obtain a hot-fitting machine string or a tool setting instrument string; the hot-fitting machine reads the hot-fitting machine string, and the tool setting instrument reads the tool setting instrument string; a second recognition module for recognizing the tool when the hot-fitting machine reads the hot-fitting machine string or when the tool setting instrument reads the tool setting instrument string. When the instrument reads the tool setting instrument string, it obtains the tool holder clamping model string, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string, respectively, based on the specific length of the tool holder clamping model, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string, according to the specific length of the tool holder clamping model, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string; the third identification module removes the padding characters from the tool holder clamping model string, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string, to obtain the tool holder clamping model, clamping diameter, and tool holder material information, or the spindle model, spindle length information, and production information.
[0020] The beneficial effects of this invention are as follows: 1. A single encoding method can cover all standard cutting tools for alloy steel and stainless steel, so that manufacturers only need to configure the same production equipment on the production line, thereby improving equipment utilization and reducing production costs; 2. Based on the original QR code obtained by decoding, the hot-loading machine string or the tool setting instrument string can be further decoded and read. The hot-loading machine can directly obtain all the information required for its own production from the hot-loading machine string, thereby improving the speed at which the equipment can obtain the necessary information by decoding the QR code and reducing the storage resource requirements of the hot-loading machine. Attached Figure Description
[0021] Figure 1 This is a flowchart illustrating a QR code encoding method for a cutting tool, as provided in one embodiment of this application. Figure 2 This is a schematic diagram of the structure of a QR code encoding device for a cutting tool provided in one embodiment of this application; Figure 3 This is a flowchart illustrating a method for recognizing a QR code on a cutting tool, as provided in one embodiment of this application. Figure 4 This is a schematic diagram of the structure of a QR code recognition device for a knife provided in one embodiment of this application. Detailed Implementation
[0022] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or parts / elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.
[0023] The following describes the QR code encoding method for the cutting tool according to an embodiment of the present invention with reference to the accompanying drawings.
[0024] Figure 1 This is a flowchart illustrating a QR code encoding method for a cutting tool, as provided in one embodiment of this application; Figure 1The following steps are shown in the QR code encoding method for the cutting tool: Step S010: Receive tool information input by the user, including: tool holder clamping model, clamping diameter, tool holder material, spindle model, and spindle length; and obtain production information; Step S020: Set specific length digits for the tool holder clamping model, clamping diameter, tool holder material, spindle model, and spindle length respectively. When the length of the received tool information is insufficient, add padding characters before or after to make the length digits of various tool information consistent, and obtain the tool holder clamping... The following strings are provided: model string, clamping diameter string, tool holder material string, spindle model string, and spindle length string; Step S030: Generate a hot-fitting machine string from the tool holder clamping model string, clamping diameter string, and tool holder material string; Generate a tool setting instrument string from the spindle model string, spindle length string, and production information; Step S040: Combine the hot-fitting machine string and the tool setting instrument string, and generate the original QR code; Step S050: Fill the background of the original QR code with a background color to obtain the QR code graphic.
[0025] According to one embodiment of this application, the production information includes the production date and the production batch number.
[0026] According to one embodiment of this application, the production date and production batch number are input by the user in step S010, or obtained by the system by retrieving the current time and date information and the production batch number.
[0027] Specifically, the purpose of this application is to standardize the coding of tool holders made of alloy steel and stainless steel. However, stainless steel and alloy steel tool holders come in a wide variety of sizes, and both types have different clamping methods. The dimensions of tool holders vary depending on the clamping method. For example: standard heat-clamped stainless steel (coded MCR) has a clamping range of 3-6, curved reinforced heat-clamped stainless steel (coded MRV) has a clamping range of 3-6, and ultra-thin-walled heat-clamped stainless steel (coded MCS) has a clamping range of 3-12; standard heat-clamped alloy steel (coded SR) has a clamping range of 8-32, curved reinforced heat-clamped alloy steel (coded SRV) has a clamping range of 8-12, and thin-walled heat-clamped alloy steel (coded SRS) has a clamping range of 4-12, and so on. It is evident that for the same clamping method, different tool materials result in clamping ranges that differ by two to several times. Furthermore, the length of the tool holder, like its clamping diameter, varies widely. Stainless steel has a maximum of two-digit dimensions, while alloy steel has three-digit dimensions. Therefore, to standardize the coding, this application sets the coding length for "tool holder clamping model" to 3 digits, "clamping diameter" to 2 digits, and "spindle length" to 3 digits. If the length of the "tool holder clamping model" is insufficient, a padding character "#" is added after the code, such as "SR#" for standard hot-fit clamping alloy steel. If the spindle length is less than 3 digits, a padding character "0" is added before the data, such as "060" for a tool holder with a spindle length of 60. Other information includes the tool holder material, which is coded with 1 digit (T for alloy steel, M for stainless steel); and the "spindle model" coding, which is coded with 3 digits. The "spindle model" is actually quite long, such as HSK63A, HSK32E, BBT40, and ISO20, but it can be abbreviated to A63, E32, T40, and I20, making it three bits. This allows it to be used directly for encoding without the need for padding characters, thus compressing the total number of bits in the encoding. Furthermore, compressing the total number of bits can speed up the decoding process.
[0028] As shown above, the hot-setting machine string consists of a 3-digit tool holder model string, a 2-digit clamping diameter string, and a 1-digit tool holder material string, totaling 6 digits. The tool setting instrument string consists of a 3-digit spindle model string, a 3-digit spindle length string, and X digits of production information. The production information can include the production date (year, month, and day) and the production batch number; the date information can be 6 digits, and the production batch number can be 4 digits. Therefore, this encoding has a total of 22 digits, suitable for factories with a daily production capacity of less than 9999 tools. If a factory's production capacity exceeds 4 digits, the number of digits can be increased as needed.
[0029] The QR code encoding in this application is not merely a simple inclusion of various information about the tool holder (or tool information); its more important purpose is to facilitate use during production. A prior application by the applicant, application number 202511291154.5, entitled "Hot-Fitting Pre-Adjustment Integrated Machine," is a hot-fitting machine that can utilize the QR code of this application. To facilitate quick and convenient retrieval of tool holder information during production, the tool holder information can be read by scanning the QR code. The key information required for tool hot-fitting is the tool holder clamping model, clamping diameter, and tool holder material. Therefore, this application combines these three key pieces of information into a hot-fitting machine string. During hot-fitting machine production, after scanning the code, the decoding immediately yields the hot-fitting machine string, thus directly obtaining all the information used by the hot-fitting machine, thereby improving decoding speed and production efficiency. Other tool information, including spindle model and spindle length, as well as production information identifying the tool's "personal identity," is included in the tool setting instrument string for use by the tool setting instrument. Furthermore, the hot-loading machine can also identify the "personal identity" information of the tool by decoding the tool setting instrument string, thus facilitating management.
[0030] According to the QR code encoding method for cutting tools in this application, a single encoding method can cover all currently used standard and material cutting tools. This allows manufacturers to configure the same production equipment on their production lines, eliminating the need to purchase different production equipment to accommodate cutting tools of different standards. This improves equipment utilization and reduces production costs. Based on the decoded original QR code, the hot-fitting machine string or the tool setting instrument string can be further decoded and read. The hot-fitting machine can directly obtain all the information required for its own production from the hot-fitting machine string, thereby improving the speed at which the equipment can obtain necessary information by decoding the QR code and reducing the storage resource requirements of the hot-fitting machine.
[0031] According to one embodiment of this application, step S010 further receives user input of QR code size information, and after obtaining the QR code graphic in step S050, the QR code graphic is stretched to the QR code size.
[0032] Specifically, due to the different sizes of the cutting tools, if a larger cutting tool is desired to make the QR code clearer, the size of the QR code graphic can be adjusted.
[0033] According to one embodiment of this application, the marking parameters of the QR code marking machine are adjusted based on the background color of the QR code graphic, the QR code size information, and the QR code debugging standard power.
[0034] Specifically, since a larger QR code graphic size is set, it is necessary to pay attention to adjusting the marking parameters of the marking machine to prevent the QR code from being too blurry and unrecognizable due to insufficient power. Example 1:
[0035] The tool holder clamp model is: Standard hot fitting clamp - alloy steel, SR; clamping diameter is 4mm; tool holder material is alloy steel (marked as T); spindle length is 90mm; spindle model is HSK63A; production date is October 9, 2026; this tool holder is the first tool holder in this production batch.
[0036] The length settings are as follows: tool holder model is 3 digits; clamping diameter is 2 digits; tool holder material is 2 digits; spindle length is 3 digits; spindle model is 3 digits; production date is 6 digits; and production batch number is 4 digits.
[0037] If the length of the tool holder clamping model is insufficient, add "#" as a filler character at the end; if the length of the clamping diameter and spindle length is insufficient, add "0" as a filler character at the beginning. The spindle model can be written as A63 according to industry standards.
[0038] This yields the tool holder model string as SR#; the clamping diameter string as 04; and the spindle length string as 090. Only the last two digits of the production date are recorded. The other tool information strings are the same as the original string.
[0039] The tool holder model string, clamping diameter string, and tool holder material string are used to generate the hot-fitting machine string: SR#04T, a total of 6 characters; the spindle model string, spindle length string, and production information are used to generate the tool setting device string: 090A632610090001, a total of 16 characters. The hot-fitting machine string is for hot-fitting machines only, while the tool setting device string is for use with the tool setting device, and can also be used by the storage cabinet through a network connection to the management system.
[0040] Combine the 6-digit hot-installation machine string and the 16-digit tool setting instrument string to form a 22-digit QR code source code. Then fill the background color with the QR code source code to obtain the QR code graphic. Example 2:
[0041] The tool holder clamp model is: Curve Enhanced Hot Fit Clamp - Stainless Steel, MRV; clamping diameter is 12mm; tool holder material is alloy steel (marked as M); spindle length is 120mm; spindle model is BBT40; production date is August 12, 2026; this tool holder is the 100th tool holder in this production batch.
[0042] The length digit setting and the fill character setting are the same as in Example 1. The spindle model can be recorded as BBT40.
[0043] Since the length of the tool information is equal to the number of digits, the tool information string is the same as the string itself.
[0044] Generate the hot-fitting string: MRV12M, a total of 6 characters, from the tool holder clamping model string, clamping diameter string, and tool holder material string; generate the tool setting instrument string: 120T402208120100, a total of 16 characters, from the spindle model string, spindle length string, and production information.
[0045] Similar to Example 1, a 22-bit QR code source code is obtained, and then the QR code source code is filled with a background color to obtain a QR code graphic.
[0046] As can be seen from Examples 1 and 2, by setting the same number of digits for the tool holder information (mainly the tool holder clamping model, clamping diameter, and spindle length) and using filler characters, both examples enable the same standard to be used to encode alloy steel and stainless steel tools with complex standards and large size ranges, resulting in identical QR code graphics. Since the tools in the prior art are all stainless steel or alloy steel, the encoding method of this application can cover all current tools. When producing tools, factories can purchase only QR code encoding and recognition devices that are compatible with the standard of this application, thus making standardized production on the production line possible.
[0047] Figure 2 This is a schematic diagram of the structure of a QR code encoding device for a cutting tool provided in one embodiment of this application, as shown below. Figure 2 As shown, based on the above embodiments, this invention also proposes a QR code encoding device for cutting tools, comprising: an input module for receiving tool information input by a user, including: tool holder clamping model, clamping diameter, tool holder material, spindle model, and spindle length; and acquiring production information; and a compatibility adjustment module for setting specific length digits for the tool holder clamping model, clamping diameter, tool holder material, spindle model, and spindle length respectively, and adding padding characters before or after the received tool information when the length is insufficient to ensure that the length digits of various tool information are consistent, and for different... The system obtains the following strings: tool holder model string, clamping diameter string, tool holder material string, spindle model string, and spindle length string; A first generation module generates a hot-fitting machine string from the tool holder model string, clamping diameter string, and tool holder material string; the spindle model string, spindle length string, and production information generate a tool setting instrument string; a second generation module combines the hot-fitting machine string and the tool setting instrument string to generate a QR code source code; and a filling module fills the background of the QR code source code with a background color to obtain a QR code graphic.
[0048] According to one embodiment of this application, it further includes a production information acquisition device, wherein the production information includes a production date and a production batch number, the production date and production batch number being input by a user in an input module, or being acquired by the system by retrieving the current time and date information and the production batch count number.
[0049] According to one embodiment of this application, the input module is further configured to receive user input of QR code size information; it also includes a stretching module: configured to stretch the QR code graphic to the QR code size after the filling module obtains the QR code graphic.
[0050] According to one embodiment of this application, it further includes a marking module: used to adjust the marking parameters of the QR code marking machine according to the background color of the QR code graphic, the QR code size information, and the QR code debugging standard power.
[0051] Figure 3 This is a flowchart illustrating a QR code recognition method for a cutting tool, as provided in one embodiment of this application. Figure 3 As shown, based on the above embodiments, this invention also proposes a QR code recognition method for cutting tools, applicable to QR code images obtained by the encoding method of the first aspect embodiment, including the following steps: Step S110: Acquire the QR code image; Step S120: Decode the original QR code according to a predetermined decoding rule; Step S130: Further decode the obtained original QR code to obtain a hot-fitting machine string or a tool setting instrument string; The hot-fitting machine reads the hot-fitting machine string, and the tool setting instrument reads the tool setting instrument string; Step S140: When the hot-fitting machine reads the hot-fitting machine string, or when the tool setting instrument reads... When retrieving the tool setting instrument string, based on the specific length of the tool holder clamping model, clamping diameter, tool holder material, spindle model, and spindle length, respectively set by a specific number of digits, the tool holder clamping model string, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string are obtained respectively; Step S150: Remove the padding characters from the tool holder clamping model string, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string, to obtain the tool holder clamping model, clamping diameter, and tool holder material information, or the spindle model, spindle length information, and production information.
[0052] Specifically, the decoding rule in step S120 is a conventional QR code decoding method, which is existing technology and will not be described in detail here. The further decoding in step S130 involves reading the length of the hot-fitting machine string and the tool setting instrument string, composed of the length of the tool information, from steps S030 and S020 in the above embodiment's encoding method. Therefore, this step does not consume computing resources. Furthermore, after the hot-fitting machine decoding obtains the hot-fitting machine string, only the hot-fitting machine string needs to be stored, without storing other data information, thus saving storage resources. In step S140, the string of tool information is obtained based on the length of each tool information item, and in step S150, the padding characters added in step S020 of the above embodiment's encoding method are removed to obtain the individual tool information items.
[0053] According to the QR code recognition method for cutting tools in this application, the original QR code obtained by decoding is further decoded to obtain the hot-loading machine string or the tool setting instrument string. The hot-loading machine can directly obtain all the information required for its own production from the hot-loading machine string, thereby improving the speed at which the equipment can obtain necessary information by decoding the QR code and reducing the storage resource requirements of the hot-loading machine.
[0054] Figure 4 This is a schematic diagram of the structure of a QR code recognition device for a knife provided in one embodiment of this application, as shown below. Figure 4 As shown, based on the above embodiments, this invention also proposes a QR code recognition device for a cutting tool, applicable to QR code graphics obtained by the encoding method proposed in the first aspect embodiment, comprising: a collection module for collecting QR code graphics; a decoding module for decoding to obtain the original QR code according to a predetermined decoding rule; a first recognition module for further decoding to obtain a hot-fitting machine string or a tool setting instrument string based on the obtained original QR code; the hot-fitting machine reads the hot-fitting machine string, and the tool setting instrument reads the tool setting instrument string; a second recognition module for recognizing the tool when the hot-fitting machine reads the hot-fitting machine string, or when the tool setting instrument reads the tool setting instrument string. When the instrument reads the tool setting instrument string, it obtains the tool holder clamping model string, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string, respectively, based on the specific length of the tool holder clamping model, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string, according to the specific length of the tool holder clamping model, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string; the third identification module removes the padding characters from the tool holder clamping model string, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string, to obtain the tool holder clamping model, clamping diameter, and tool holder material information, or the spindle model, spindle length information, and production information.
[0055] The above embodiments are preferred implementations of the present invention. In addition, the present invention can be implemented in other ways. Any obvious substitutions without departing from the concept of the present invention are within the protection scope of the present invention.
Claims
1. A method for encoding a QR code on a cutting tool, characterized in that, Includes the following steps: Step S010: Receive tool information input by the user, including: tool holder model, clamping diameter, tool holder material, spindle model, and spindle length; and obtain production information; Step S020: Set specific length digits for the tool holder clamping model, clamping diameter, tool holder material, spindle model, and spindle length. When the length of the received tool information is insufficient, add padding characters at the beginning or end to make the length digits of various tool information consistent, and obtain the tool holder clamping model string, clamping diameter string, tool holder material string, spindle model string, and spindle length string respectively. Step S030: Generate a hot-fitting machine string from the tool holder clamping model string, clamping diameter string, and tool holder material string; generate a tool setting instrument string from the spindle model string, spindle length string, and production information; Step S040: Combine the hot-loading machine string and the tool setting instrument string, and generate the original QR code; Step S050: Fill the background of the original QR code with a background color to obtain the QR code graphic.
2. The QR code encoding method for a cutting tool according to claim 1, characterized in that: The production information includes the production date and production batch number.
3. The QR code encoding method for a cutting tool according to claim 2, characterized in that: The production date and production batch number are input by the user in step S010, or obtained by the system by retrieving the current time and date information and the production batch number.
4. The QR code encoding method for a cutting tool according to claim 1, characterized in that: In step S010, the QR code size information input by the user is also received, and in step S050, after obtaining the QR code graphic, the QR code graphic is stretched to the QR code size.
5. The QR code encoding method for a cutting tool according to claim 4, characterized in that: Based on the background color and size information of the QR code graphic, and according to the standard power for QR code debugging, adjust the marking parameters of the QR code marking machine.
6. A QR code encoding device for a cutting tool, characterized in that: include: Input module: Used to receive tool information input by the user, including: tool holder model, clamping diameter, tool holder material, spindle model, and spindle length; and to obtain production information; Compatibility adjustment module: used to set specific length digits for the tool holder clamping model, clamping diameter, tool holder material, spindle model, and spindle length respectively. When the length of the received tool information is insufficient, padding characters are added before or after to make the length digits of various tool information consistent, and respectively obtain the tool holder clamping model string, clamping diameter string, tool holder material string, spindle model string, and spindle length string. The first generation module is used to generate a hot-fitting string from the tool holder clamping model string, clamping diameter string, and tool holder material string; and to generate a tool setting instrument string from the spindle model string, spindle length string, and production information. The second generation module is used to combine the hot-loading machine string and the tool setting instrument string, and generate the original QR code. Fill module: Used to fill the background of the original QR code with a background color to obtain the QR code graphic.
7. A QR code encoding device for a cutting tool according to claim 6, characterized in that: It also includes a production information acquisition device, wherein the production information includes the production date and the production batch number, which are input by the user in the input module or obtained by the system by retrieving the current time and date information and the production batch number.
8. A QR code encoding device for a cutting tool according to claim 6, characterized in that: The input module is also used to receive user input of QR code size information; It also includes a stretching module: used to stretch the QR code graphic to the QR code size after the filling module obtains the QR code graphic.
9. A QR code encoding device for a cutting tool according to claim 8, characterized in that: It also includes a marking module: used to adjust the marking parameters of the QR code marking machine according to the background color and size information of the QR code graphic, as well as the QR code debugging standard power.
10. A method for recognizing a QR code on a cutting tool, characterized in that: The method applicable to the QR code graphic obtained by the encoding method of claim 1 includes the following steps: Step S110: Collect the QR code image; Step S120: Decode the original QR code according to the predetermined decoding rules; Step S130: Based on the obtained original QR code, further decode to obtain the hot-loading machine string or the tool setting device string; the hot-loading machine reads the hot-loading machine string, and the tool setting device reads the tool setting device string; Step S140: When the hot fitting machine reads the hot fitting machine string, or when the tool setting device reads the tool setting device string, according to the specific length digits set for the tool holder clamping model, clamping diameter, tool holder material, spindle model, and spindle length, respectively, the tool holder clamping model string, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string are obtained respectively. Step S150: Remove the padding characters from the tool holder clamping model string, clamping diameter string, and tool holder material string, or spindle model string and spindle length string to obtain the tool holder clamping model, clamping diameter, and tool holder material information, or spindle model, spindle length information, and production information.
11. A QR code recognition device for a cutting tool, characterized in that, The QR code graphic obtained by the encoding method of claim 1 includes: Data acquisition module: used to acquire QR code images; Decoding module: Used to decode the QR code to obtain the original code according to the predetermined decoding rules; First identification module: used to further decode the obtained QR code original code to obtain the hot-loading machine string or the tool setting instrument string; the hot-loading machine reads the hot-loading machine string, and the tool setting instrument reads the tool setting instrument string; The second identification module is used to obtain the tool holder clamping model string, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string, respectively, based on the specific length digits set by the tool holder clamping model, clamping diameter, tool holder material, spindle model, and spindle length when the hot fitting machine reads the hot fitting machine string or the tool setting device reads the tool setting device string. The third identification module removes padding characters from the tool holder clamping model string, clamping diameter string, and tool holder material string, or the spindle model string and spindle length string, to obtain the tool holder clamping model, clamping diameter, and tool holder material information, or the spindle model, spindle length information, and production information.