Two-dimensional code processing method, processing device and computer storage medium
阅读说明:本技术 二维码加工方法、加工装置及计算机存储介质 (Two-dimensional code processing method, processing device and computer storage medium ) 是由 贾见士 彭绍山 庞全勇 杨明陆 张峥瑞 于 2018-06-28 设计创作,主要内容包括:本发明提供一种二维码加工方法,所述方法包括以下步骤:显示二维码参数数据的编辑界面;接收用户输入的二维码参数数据;依据所述参数数据生成二维码;将所述二维码转换成二进制码;依据所述参数数据及所述二进制码生成数控文件;调用所述数控文件,控制加工单元在产品上加工以获得所述二维码。本发明同时提供一种二维码的加工装置及计算机存储介质。本发明简化了产品二维码的加工制程,提升了加工效率,降低了加工成本。(The invention provides a two-dimensional code processing method, which comprises the following steps: displaying an editing interface of the two-dimensional code parameter data; receiving two-dimensional code parameter data input by a user; generating a two-dimensional code according to the parameter data; converting the two-dimensional code into a binary code; generating a numerical control file according to the parameter data and the binary code; and calling the numerical control file, and controlling a processing unit to process on a product to obtain the two-dimensional code. The invention also provides a processing device of the two-dimensional code and a computer storage medium. The invention simplifies the processing procedure of the two-dimension code of the product, improves the processing efficiency and reduces the processing cost.)
1. A processingequipment for process two-dimensional code on the product, its characterized in that, processingequipment includes:
a display unit;
an input unit;
a processing unit;
a processor; and
a memory having stored therein a plurality of program modules that are executed by the processor and perform the steps of:
controlling the display unit to display an editing interface of the two-dimensional code parameter data;
receiving two-dimensional code parameter data input by a user;
generating a two-dimensional code according to the parameter data;
converting the two-dimensional code into a binary code;
generating a numerical control file according to the parameter data and the binary code;
and calling the numerical control file, and controlling the processing unit to process on the product to obtain the two-dimensional code.
2. The processing apparatus as claimed in claim 1, wherein the two-dimensional code parameter data includes basic parameters including a coordinate system, a rotation speed, and a feeding speed, and processing parameters including a height of the two-dimensional code, a processing depth of the two-dimensional code, and a distance between each dot position of the two-dimensional code.
3. The processing device according to claim 2, wherein the step of converting the two-dimensional code into a binary code comprises:
and recording black point positions in the two-dimensional code as 1, and recording white point positions as 0 to obtain the binary code corresponding to the two-dimensional code.
4. The machining device according to claim 3, wherein the step of generating the numerical control file specifically includes:
taking all 1's in the binary code as processing point positions according to corresponding positions, and outputting coordinate values of the processing point positions; and
and outputting the processing size of the two-dimensional code according to the processing parameters.
5. The machining device according to claim 4, characterized in that said machining unit comprises at least one milling cutter, said milling cutter milling corresponding said machining points on the product to obtain said two-dimensional code.
6. A two-dimensional code processing method is characterized by comprising the following steps:
displaying an editing interface of the two-dimensional code parameter data;
receiving two-dimensional code parameter data input by a user;
generating a two-dimensional code according to the parameter data;
converting the two-dimensional code into a binary code;
generating a numerical control file according to the parameter data and the binary code;
and calling the numerical control file, and controlling a processing unit to process on a product to obtain the two-dimensional code.
7. The two-dimensional code processing method according to claim 6, wherein the two-dimensional code parameter data includes basic parameters and processing parameters, the basic parameters include a coordinate system, a rotating speed and a feeding speed, and the processing parameters include a height of the two-dimensional code, a processing depth of the two-dimensional code and a distance between each dot position of the two-dimensional code.
8. The two-dimensional code processing method according to claim 7, wherein the step of converting the two-dimensional code into a binary code specifically comprises:
and recording black point positions in the two-dimensional code as 1, and recording white point positions as 0 to obtain the binary code corresponding to the two-dimensional code.
9. The two-dimensional code processing method according to claim 8, wherein the step of generating the numerical control file specifically includes:
taking all 1's in the binary code as processing point positions according to corresponding positions, and outputting coordinate values of the processing point positions; and
and outputting the processing size of the two-dimensional code according to the processing parameters.
10. A computer storage medium having at least one computer instruction stored thereon, wherein the instruction is loaded by a processor to perform the two-dimensional code processing method according to any one of claims 6 to 9.
Technical Field
The invention relates to the technical field of numerical control machining, in particular to a two-dimensional code machining method, a two-dimensional code machining device and a computer storage medium.
Background
In recent years, the application of the two-dimensional code technology greatly improves the speed of data acquisition and information processing, and makes an important contribution to the scientification and modernization of management. In the production process of part of products, the products are coded and managed in a mode of processing the two-dimensional codes on the products, so that the automatic management level of a production line is improved. The two-dimensional code has a strong error correction function, and the accuracy of data collection of the product in the production process is improved.
At present, the two-dimensional code is generally processed on a product in a laser engraving mode. However, the processing method of the two-dimensional code needs to use a special laser engraving device, and cannot be integrated into a numerical control (CNC) machining process of a product, so the processing is complicated, and the processing efficiency is low.
Disclosure of Invention
In view of the above, it is desirable to provide a method, an apparatus and a computer storage medium for processing a two-dimensional code with high processing efficiency, so as to solve the above problems.
A processing apparatus for processing a two-dimensional code on a product, the processing apparatus comprising: a display unit; an input unit; a processing unit; a processor; and a memory having stored therein a plurality of program modules executed by the processor and performing the steps of: controlling the display unit to display an editing interface of the two-dimensional code parameter data; receiving two-dimensional code parameter data input by a user; generating a two-dimensional code according to the parameter data; converting the two-dimensional code into a binary code; generating a numerical control file according to the parameter data and the binary code; and calling the numerical control file, and controlling the processing unit to process on the product to obtain the two-dimensional code.
A two-dimensional code processing method comprises the following steps: displaying an editing interface of the two-dimensional code parameter data; receiving two-dimensional code parameter data input by a user; generating a two-dimensional code according to the parameter data; converting the two-dimensional code into a binary code; generating a numerical control file according to the parameter data and the binary code; and calling the numerical control file, and controlling a processing unit to process on a product to obtain the two-dimensional code.
A computer storage medium having stored thereon at least one computer instruction, the instruction being executable by a processor and loaded to perform: displaying an editing interface of the two-dimensional code parameter data; receiving two-dimensional code parameter data input by a user; generating a two-dimensional code according to the parameter data; converting the two-dimensional code into a binary code; generating a numerical control file according to the parameter data and the binary code; and calling the numerical control file, and controlling a processing unit to process on the product to obtain the two-dimensional code.
According to the invention, the two-dimensional code and the numerical control file are automatically generated through the production of the processing device, so that the two-dimensional code is processed on a product in a numerical control mode. The invention simplifies the processing procedure of the two-dimension code of the product, reduces the use of laser engraving equipment and the corresponding labor input, improves the processing efficiency and reduces the cost.
Drawings
Fig. 1 is a schematic diagram of a hardware architecture of a processing apparatus according to an embodiment of the present invention.
Fig. 2 is a schematic functional block diagram of a two-dimensional code processing system according to an embodiment of the present invention.
Fig. 3 is a schematic flow chart of a two-dimensional code processing method according to an embodiment of the invention.
Description of the main elements
100
Processor with a memory having a plurality of
10
20
30
40
50
Two-dimensional code system of
2
21
22
Two-dimensional
23
Two-dimensional
24
Numerical control
25
26
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
So that the manner in which the above recited objects, features and advantages of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to the embodiments thereof which are illustrated in the appended drawings. In addition, the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The invention provides a processing device for processing a two-dimensional code on a product, which can be a CNC processing device. Referring to fig. 1, fig. 1 is a schematic diagram of a hardware architecture of a
The
The
The
The
The
The
The
Referring to fig. 1 and fig. 2, fig. 2 is a schematic block diagram of a two-dimensional
In the present embodiment, as shown in fig. 2, the two-dimensional
The
The
The two-dimensional
The two-dimension
The numerical control
The
Fig. 3 is a flowchart of a two-dimensional code processing method applied to the
S310, the
S320, the
And S330, the two-dimension
S340, the two-dimensional
And S350, the numerical control
And S360, calling a numerical control file by the
In the present embodiment, the
The two-dimensional code processing method and the
It will be understood by those skilled in the art that all or part of the processes of the above embodiments may be implemented by hardware instructions of a computer program, and the program may be stored in a computer-readable storage medium, and when executed, may include the processes of the above embodiments of the methods.
In addition, functional units in the embodiments of the present invention may be integrated into the same processor, or each unit may exist alone physically, or two or more units are integrated into the same unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. Several units or systems recited in the system claims may also be implemented by one and the same unit or system in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only intended to illustrate the technical solutions of the present invention and not to limit the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.