[go: up one dir, main page]

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

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

Info

Publication number
CN110653400A
CN110653400A CN201810685726.1A CN201810685726A CN110653400A CN 110653400 A CN110653400 A CN 110653400A CN 201810685726 A CN201810685726 A CN 201810685726A CN 110653400 A CN110653400 A CN 110653400A
Authority
CN
China
Prior art keywords
dimensional code
processing
parameter data
code
numerical control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810685726.1A
Other languages
Chinese (zh)
Inventor
贾见士
彭绍山
庞全勇
杨明陆
张峥瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuding Electronic Technology Jiashan Co Ltd
Original Assignee
Fuding Electronic Technology Jiashan Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuding Electronic Technology Jiashan Co Ltd filed Critical Fuding Electronic Technology Jiashan Co Ltd
Priority to CN201810685726.1A priority Critical patent/CN110653400A/en
Publication of CN110653400A publication Critical patent/CN110653400A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23CMILLING
    • B23C3/00Milling particular work; Special milling operations; Machines therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Numerical Control (AREA)

Abstract

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.

Description

Two-dimensional code processing method, processing device and computer storage medium
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.

Claims (10)

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.
CN201810685726.1A 2018-06-28 2018-06-28 Two-dimensional code processing method, processing device and computer storage medium Pending CN110653400A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810685726.1A CN110653400A (en) 2018-06-28 2018-06-28 Two-dimensional code processing method, processing device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810685726.1A CN110653400A (en) 2018-06-28 2018-06-28 Two-dimensional code processing method, processing device and computer storage medium

Publications (1)

Publication Number Publication Date
CN110653400A true CN110653400A (en) 2020-01-07

Family

ID=69026396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810685726.1A Pending CN110653400A (en) 2018-06-28 2018-06-28 Two-dimensional code processing method, processing device and computer storage medium

Country Status (1)

Country Link
CN (1) CN110653400A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114117268A (en) * 2021-12-06 2022-03-01 四川虹美智能科技有限公司 Product information management method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1039203A (en) * 1988-04-22 1990-01-31 川崎制铁株式会社 Form the method and apparatus of micro-pattern at roller surface, sheet metal that the punching press made from this roll is used and the method for making this sheet metal
CN2247070Y (en) * 1995-12-07 1997-02-12 中国科学院力学研究所 Numerically controlled laser graphic machining system
CN1461450A (en) * 2000-10-23 2003-12-10 国际管道技术及管理(爱尔兰)有限公司 Method and apparatus for providing identity marking on object
CN1836242A (en) * 2003-08-11 2006-09-20 技术转移服务股份有限公司 2-dimensional code formation method and formation device
CN105798704A (en) * 2016-04-25 2016-07-27 大连理工大学 Machine tool plane contour error monocular measuring method
JP2016201075A (en) * 2015-04-14 2016-12-01 株式会社Kmc Nc control program, nc control device, nc machining system, nc control method, method for manufacturing two-dimensional code, two-dimensional code, and metal component
CN107755893A (en) * 2017-11-28 2018-03-06 广州真知码信息科技有限公司 A kind of laser high-speed draws Quick Response Code method
CN207386808U (en) * 2017-05-16 2018-05-22 佛山市南方数据科学研究院 A two-dimensional code generating device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1039203A (en) * 1988-04-22 1990-01-31 川崎制铁株式会社 Form the method and apparatus of micro-pattern at roller surface, sheet metal that the punching press made from this roll is used and the method for making this sheet metal
CN2247070Y (en) * 1995-12-07 1997-02-12 中国科学院力学研究所 Numerically controlled laser graphic machining system
CN1461450A (en) * 2000-10-23 2003-12-10 国际管道技术及管理(爱尔兰)有限公司 Method and apparatus for providing identity marking on object
CN1836242A (en) * 2003-08-11 2006-09-20 技术转移服务股份有限公司 2-dimensional code formation method and formation device
JP2016201075A (en) * 2015-04-14 2016-12-01 株式会社Kmc Nc control program, nc control device, nc machining system, nc control method, method for manufacturing two-dimensional code, two-dimensional code, and metal component
CN105798704A (en) * 2016-04-25 2016-07-27 大连理工大学 Machine tool plane contour error monocular measuring method
CN207386808U (en) * 2017-05-16 2018-05-22 佛山市南方数据科学研究院 A two-dimensional code generating device
CN107755893A (en) * 2017-11-28 2018-03-06 广州真知码信息科技有限公司 A kind of laser high-speed draws Quick Response Code method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114117268A (en) * 2021-12-06 2022-03-01 四川虹美智能科技有限公司 Product information management method and device
CN114117268B (en) * 2021-12-06 2023-05-09 四川虹美智能科技有限公司 Product information management method and device

Similar Documents

Publication Publication Date Title
CN112818457B (en) BIM model intelligent generation method and system based on CAD drawing
US20210166058A1 (en) Image generation method and computing device
CN111666442B (en) Image retrieval method and device and computer equipment
US10528855B2 (en) Generating parts with encoded geometry for passively representing information
CN105404472A (en) Method and apparatus for compressing storage space of log time data
US10579915B2 (en) Method and device for initializing two-dimensional code
CN116954585A (en) Industrial digital twin three-dimensional visual scene editing method, device and medium
CN112862198A (en) Cleaning path acquisition method and device for cleaning equipment and storage medium
CN110653400A (en) Two-dimensional code processing method, processing device and computer storage medium
US20230005280A1 (en) Method of detecting target objects in images, electronic device, and storage medium
CN113434820B (en) Method, device and equipment for optimizing Y-axis coordinate of chart and storage medium
CN112612427A (en) Vehicle stop data processing method and device, storage medium and terminal
CN110816133A (en) Lettering processing method, CNC processing device and computer storage medium
CN115762523A (en) Fault record acquisition method and device, electronic equipment and readable storage medium
US11017596B2 (en) Methods, devices, and systems for part-to-build
JPH02139675A (en) Two-dimensional geometric graphic generation system of prototype by artificial vision
CN115147628B (en) House image data processing method and device, terminal equipment and medium
CN114936542B (en) Table reconstruction method and apparatus, computer readable storage medium and electronic device
JP2584229B2 (en) CAD / CAM automatic programming device
CN116684742B (en) Panoramic video conference system based on camera
CN112836982B (en) Instruction list generation method and device and computer readable storage medium
CN117556494A (en) Station equipment room model generation method, device, equipment and storage medium
JP2658134B2 (en) How to create NC data
JP2813058B2 (en) Numerical control information creation device
CN117726085A (en) Local area cleaning control method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200107

RJ01 Rejection of invention patent application after publication