Two-dimensional code processing method, processing device and computer storage medium

文档序号:1593020 发布日期:2020-01-07 浏览:13次 中文

阅读说明:本技术 二维码加工方法、加工装置及计算机存储介质 (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

Processing device 100
Processor with a memory having a plurality of memory cells 10
Memory device 20
Display unit 30
Input unit 40
Machining unit 50
Two-dimensional code system of processing 2
Display control module 21
Parameter setting module 22
Two-dimensional code generation module 23
Two-dimensional code conversion module 24
Numerical control file generation module 25
Processing control module 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 processing apparatus 100 according to an embodiment of the invention.

The processing device 100 includes a processor 10, a memory 20, a display unit 30, an input unit 40, and a processing unit 50. The memory 20, the display unit 30, the input unit 40 and the processing unit 50 are electrically connected to the processor 10, respectively.

The processor 10 may be a Central Processing Unit (CPU), a digital signal processor, or a single chip, and is suitable for implementing various instructions.

The memory 20 is used for storing various data, such as program codes, in the processing apparatus 100, and realizing high-speed and automatic access to the program or data during the operation of the processing apparatus 100.

The Memory 20 may be, but is not limited to, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable rewritable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, magnetic disk storage, magnetic tape storage, or any other medium readable by a computer capable of carrying or storing data.

The display unit 30 is configured to display an editing interface of the two-dimensional code parameter data and an image of the two-dimensional code. The two-dimensional code parameter data comprises basic parameters, processing parameters, source information and the like. The basic parameters include a coordinate system, a rotation speed, a feeding speed and the like. The processing parameters comprise the height of the two-dimensional code, the processing depth of the two-dimensional code, the distance between each point of the two-dimensional code and the like. The display unit 30 includes at least one display.

The input unit 40 is used for a user to input various information, control instructions, and the like. In the present embodiment, the input unit 40 may include, but is not limited to, a mouse, a keyboard, a touch screen, a camera, a remote controller, and the like.

The processing unit 50 is used for processing a product. The machining unit 50 comprises at least one tool. In the present embodiment, the machining unit 50 includes at least one milling cutter.

Referring to fig. 1 and fig. 2, fig. 2 is a schematic block diagram of a two-dimensional code processing system 2 according to an embodiment of the present invention. The two-dimensional code processing system 2 is applied to the processing device 100. The two-dimensional code processing system 2 includes a function module composed of a plurality of program code segments. Program codes of respective program segments in the two-dimensional code processing system 2 may be stored in the memory 20 and executed by the processor 10 to implement the functions of the two-dimensional code processing system 2.

In the present embodiment, as shown in fig. 2, the two-dimensional code processing system 2 may be divided into a plurality of functional modules according to the functions performed by the system, and the functional modules may include a display control module 21, a parameter setting module 22, a two-dimensional code generation module 23, a two-dimensional code conversion module 24, a numerical control file generation module 25, and a processing control module 26.

The display control module 21 is configured to control the display unit 30, for example, the display control module 21 is configured to control the display unit 30 to display an editing interface of parameter data of the two-dimensional code, an image of the two-dimensional code, and the like.

The parameter setting module 22 is configured to receive two-dimensional code parameter data input by a user through the input unit 40. The two-dimensional code parameter data comprises basic parameters, processing parameters, source information and the like. Wherein the basic parameters comprise a coordinate system, a rotating speed, a feeding speed and the like. The processing parameters comprise the height of the two-dimensional code, the processing depth of the two-dimensional code, the distance between each point of the two-dimensional code and the like.

The two-dimensional code generating module 23 is configured to automatically generate a two-dimensional code according to the two-dimensional code parameter data received by the parameter setting module 22, and store the two-dimensional code in the memory 20.

The two-dimension code conversion module 24 is configured to convert the two-dimension code into a binary code. The two-dimensional code includes white and black point locations, and the two-dimensional code conversion module 24 records the black point location in the two-dimensional code as 1 and the white point location as 0 to obtain a corresponding binary code.

The numerical control file generation module 25 is configured to automatically generate a numerical control file according to the two-dimensional code parameter data and the binary code. Specifically, the numerical control file generating module 25 takes all 1's in the binary code as the processing point location according to the corresponding position, and outputs the X and Y coordinate values of the processing point location. The numerical control file generation module 25 outputs the processing size of the two-dimensional code according to the processing parameters in the two-dimensional code parameter data.

The processing control module 26 is configured to call a numerical control file, and control the processing unit 50 to process a product, so as to process a pattern of a two-dimensional code on the product. In the present embodiment, the processing control module 26 controls the milling cutter in the processing unit 50 to mill the corresponding processing point on the product, so as to process the two-dimensional code pattern with the printing effect on the product.

Fig. 3 is a flowchart of a two-dimensional code processing method applied to the processing apparatus 100 according to an embodiment of the invention. The two-dimensional code processing method is only an example because there are many ways to implement the method. The two-dimensional code processing method to be described next can be performed by the module shown in fig. 2. One or more steps, methods or sub-processes, etc., represented by each block in fig. 3 are performed by an example method. The exemplary method begins at step S310.

S310, the display control module 21 controls the display unit 30 to display an editing interface of the two-dimensional code parameter data for a user to view. The two-dimensional code parameter data comprises basic parameters, processing parameters, source information and the like. The basic parameters include a coordinate system, a rotation speed, a feeding speed and the like. The processing parameters comprise the height of the two-dimensional code, the processing depth of the two-dimensional code, the distance between each point of the two-dimensional code and the like.

S320, the parameter setting module 22 receives each item of parameter data of the two-dimensional code input by the user through the input unit 40.

And S330, the two-dimension code generating module 23 is used for automatically generating the two-dimension code according to the two-dimension code parameter data.

S340, the two-dimensional code conversion module 24 is configured to convert the two-dimensional code into a binary code.

And S350, the numerical control file generation module 25 automatically generates a numerical control file according to the two-dimension code parameter data and the binary code.

And S360, calling a numerical control file by the processing control module 26, and controlling the processing unit 50 to process the product to obtain the two-dimensional code.

In the present embodiment, the processing control module 26 controls the milling cutter in the processing unit 50 to mill the corresponding processing point on the product, so as to process the two-dimensional code pattern with the printing effect on the product.

The two-dimensional code processing method and the processing device 100 provide a visual editing interface of the parameter data of the two-dimensional code, facilitate the user to input the parameter data of the two-dimensional code, automatically generate the two-dimensional code and the numerical control file according to the parameter data, and then call the numerical control file to process the two-dimensional code on a product. The processing method of the two-dimensional code can be integrated into the CNC processing procedure of the product, so that the processing method of the two-dimensional code and the processing device 100 simplify the processing procedure of the two-dimensional code of the product, reduce the use of laser engraving equipment and corresponding labor input, improve the processing efficiency and reduce the cost.

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.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于最大切削包角约束的型腔分区插铣刀具路径规划方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!