CN1045225C - Profile automatic programming method for electric spark line cutting machine and its system - Google Patents

Profile automatic programming method for electric spark line cutting machine and its system Download PDF

Info

Publication number
CN1045225C
CN1045225C CN 94111332 CN94111332A CN1045225C CN 1045225 C CN1045225 C CN 1045225C CN 94111332 CN94111332 CN 94111332 CN 94111332 A CN94111332 A CN 94111332A CN 1045225 C CN1045225 C CN 1045225C
Authority
CN
China
Prior art keywords
image
processing
input
pattern
parts
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.)
Expired - Fee Related
Application number
CN 94111332
Other languages
Chinese (zh)
Other versions
CN1097878A (en
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN 94111332 priority Critical patent/CN1045225C/en
Publication of CN1097878A publication Critical patent/CN1097878A/en
Application granted granted Critical
Publication of CN1045225C publication Critical patent/CN1045225C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to a profiling automatic programming method for an electric spark wire cutting machine tool and a profiling automatic programming system. A pattern input device directly inputs the pattern of a part need machining into a computer; the computer processes the input pattern to obtain a profile pattern of a part which can be machined; the profile pattern is automatically programmed to generate a machining instruction for an electric spark wire cutting machine tool. The present invention realizes automatic plotting and automatic input of parts and rapid profiling automatic programming; consequently, the present invention solves the problem of the shape cutting of parts with complex shapes and no size standard, and particularly obtains moulds with high fit precision.

Description

The parts profile figure automatic profiling method and the device of NC Programming System
The present invention relates to be used for the programing system of numerically controlled processing equipment, particularly method and the equipment therefor of wherein parts pattern information being imported and being handled.
At present, in the programing system of two-dimentional numerically controlled processing equipment, input method to parts pattern information mainly adopts following dual mode that the shape facility of part is described: first kind is that the NC Programming System of early developing adopts, with special picture description language, by certain grammar rule or the shape and size by interactive form input part, and by programing system read statement is made an explanation and to translate the graphical information that obtains required processing parts; Second kind is that present most of programing system adopts, select programing system designed various graphics shape input menus or button by means of mouse or keyboard, under graphical interfaces, part shape and dimension information are marked and import, and tablet pattern is carried out editing operations such as cutting, obtain the graphical information of required processing parts.The necessary condition that adopts above-mentioned two kinds of input methods is the detail drawing that clear and definite size marking must be arranged, and for complex-shaped, that size is difficult to clearly mark irregular part figure or model, they then are difficult to be competent at, because mapping process very complicated too.
The objective of the invention is to the parts profile figure be carried out the method and the device of automatic profiling, the parts pattern information complex-shaped, that size is difficult to clearly mark is imported efficiently and handled realizing for NC Programming System provides a kind of.
The present invention realizes by following technical scheme:
Be directly inputted in the computing machine with the image of image input device with the parts pattern of required processing, obtain the contour pattern of part after by computing machine this input imagery being handled, wherein the process that the part image of input is handled is as follows:
(1) if directly input be gray scale image, then
1. adopt the method for mean filter that image is carried out the smoothing denoising sonication;
2. the histogram of computational picture is in the hope of the threshold value of binaryzation;
3. according to threshold value gray scale image is converted to binary picture;
(2) binary picture of above-mentioned binary picture that obtains or directly input is utilized closed operation in the mathematical morphology to fill up the hole, connected the processing of breakpoint;
(3) above-mentioned image is extracted the processing of edge pixel, make it to become the binary picture that only contains edge pixel;
(4) lock-on boundary pixel obtains the border point set of image contour;
(5) approach above-mentioned point set with straight line or circular arc connection, obtain the parts profile figure;
(6) if this contour pattern is had dissatisfied part, then adopt mathematical processing methods that figure is carried out editing and processing and correction, obtain the parts profile figure of satisfied Gong processing.
The device that carries out the automatic profiling process is formed by image input device and computing machine and to the computer program that input imagery carries out above-mentioned processing.
The present invention is by means of image input device, directly the picture information with the parts pattern of required processing is input in the computing machine automatically, as calculated machine to the input picture information carry out special processing can obtain can for processing the parts profile figure, make mapping process and input process reach robotization; And then this parts profile figure is carried out automated programming by computing machine, generate required digital control processing instruction.That is to say that the present invention has realized efficiently the automatic profiling programming, the parts pattern complex-shaped, that size is difficult to clearly mark can be directly inputted to without artificial mapping and carry out automated programming in the computing machine, process according to sample.It provides great convenience for the mould production of industries such as glasses, clock and watch, tableware, jewellery, ornament, has saved the programming time in the mould production run greatly.The shape of this series products is more complicated often, mostly is irregular figure, but not strict to the requirement of size, as long as shape is similar, so their mould production mainly is requirement quality of fit height.Utilize the present invention both can reduce the programming time of nc program in a large number, can process satisfied mould again.
The FB(flow block) of accompanying drawing 1. automatic profiling programmed methods.
Accompanying drawing 2. a certain part histogram shape synoptic diagram.
Accompanying drawing 3. picture element A (i, 3 * 3 neighborhood pixel B j) mSynoptic diagram.
Accompanying drawing 4. usefulness circular arcs or straight line connection approach point set to form the operational flowchart of parts profile figure.
The required device of automatic profiling programmed method of finishing the present invention's proposition is image input device and computing machine and corresponding program software.Wherein image input device be graphics scanner, ccd video camera etc. all can, rely on himself supporting driver card, the image memory form of parts pattern information with standard can be input in the computing machine, and image is shown on the screen.Image processing after this and programing work are just undertaken by computing machine entirely.Computing machine is that common personal computer (being PC) gets final product, the program software that is equipped with can the obtaining the image processing procedure of parts profile figure automatically of proposition in the computing machine and works out according to the present invention, its specific implementation process that image of input is handled is as follows:
According to the difference of image input device, the scanning input imagery has gray scale image and binary picture two classes.
(1),, it be carried out binary conversion treatment for ease of later automated programming for gray scale image:
1. in order to improve the fairness on last match border, carry out the smoothing denoising sonication, adopt mean filter method commonly used to realize image;
2. filtered image is calculated its histogram, through trying to achieve the threshold value of binaryzation.In view of the histogram shape of the image of processing object generally as shown in Figure 2, two spikes are represented background pixels and prospect pixel respectively, so definite method of thresholding is: make that one-level gray-scale value of the error in classification minimum of this two classes pixel be the classification thresholding;
3. according to the thresholding of gained gray scale image is converted to binary picture then;
(2) for binary picture, because resolution or some other factor of drawing quality or input equipment, may there be some holes or breakpoint therebetween, they can influence later result, therefore will be to it processing of filling up the hole or connecting breakpoint, this point adopts the closed operation in the mathematical morphology to realize.Take first expansion, the calculating process of post-etching:
If prospect pixel and background pixels are expressed as C respectively 1And C 2, picture element then be expressed as A (i, j) (i=1 ..., I-1, j=1 ..., J-1, I wherein, J are respectively the row and column of image),
Carry out dilation operation earlier, promptly establish A (i, j) ∈ C 1, if 3 * 3 neighborhood pixel B of A m(m=0 ..., 7) in have 1 B at least m∈ C 2, then change B into C 1
This dilation operation carries out erosion operation after finishing again, promptly establishes A (i, j) ∈ C 1, if at its 3 * 3 neighborhood pixel B m(m=0 ..., 7) in have 1 B at least m∈ C 2, then (i j) changes C into A 2
(3) then,, make it to become the binary picture that only contains edge pixel, promptly establish A (i, j) ∈ C extracting edge pixel through the image after filling up the hole and being connected breakpoint 1, if in its 3 * 3 neighborhood pixel, have 1 B at least m∈ C 2, (i j) is edge pixel, if there is not B then to define A m∈ C 2, promptly whole B m∈ C 1, (i j) is background pixels then to define A;
(4) follow the tracks of these edge pixel on this basis, obtain the point set about image border, (i j) is converted to point set { P to be about to A m(X i, Y i), i=1 ..., M, m=1 ..., N} (wherein M is counting on each closed outline, and N is the closed outline number that contains in the image);
(5) approach above-mentioned point set with straight line or circular arc connection, obtain the contour pattern of part, the operational flowchart of this approximate procedure is seen accompanying drawing 4;
(6) if the part of the parts profile figure that obtains is felt dissatisfied, for example somewhat little setback on certain bar straight line, somewhere turnover are not sufficiently oily or slyness etc. too, that can utilize that system provides deletes point, increases point, delete line, increases line, straight line and become circular arc, circular arc and become mathematical processing methods such as straight line figure is carried out local editing and processing and correction, finally obtain satisfied, can be for the parts profile figure of processing.

Claims (2)

1. the parts profile figure automatic profiling method of a NC Programming System, it is characterized in that being directly inputted in the computing machine with the image of image input device with the parts pattern of required processing, obtaining after by computing machine this input imagery being handled can be for the parts profile figure of processing, and wherein the process that the part image of input is handled is as follows:
(1) if directly input be gray scale image, then
1. adopt the method for mean filter that image is carried out the smoothing denoising sonication;
2. the histogram of computational picture is in the hope of the threshold value of binaryzation;
3. according to threshold value gray scale image is converted to binary picture;
(2) binary picture of above-mentioned binary picture that obtains or directly input is utilized closed operation in the mathematical morphology to fill up the hole, connected the processing of breakpoint;
(3) above-mentioned image is extracted the processing of edge pixel, make it to become the binary picture that only contains edge pixel;
(4) lock-on boundary pixel obtains the border point set of image contour;
(5) approach above-mentioned point set with straight line or circular arc connection, obtain the parts profile figure;
(6) if this contour pattern is had dissatisfied part, then adopt mathematical processing methods that figure is carried out editing and processing and correction, obtain the parts profile figure of satisfied Gong processing.
2. the parts profile figure automatic copying device of a NC Programming System is characterized in that being formed by image input device and computing machine and to the computer program that input imagery carries out processing procedure as claimed in claim 1.
CN 94111332 1994-05-24 1994-05-24 Profile automatic programming method for electric spark line cutting machine and its system Expired - Fee Related CN1045225C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 94111332 CN1045225C (en) 1994-05-24 1994-05-24 Profile automatic programming method for electric spark line cutting machine and its system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 94111332 CN1045225C (en) 1994-05-24 1994-05-24 Profile automatic programming method for electric spark line cutting machine and its system

Publications (2)

Publication Number Publication Date
CN1097878A CN1097878A (en) 1995-01-25
CN1045225C true CN1045225C (en) 1999-09-22

Family

ID=5035213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 94111332 Expired - Fee Related CN1045225C (en) 1994-05-24 1994-05-24 Profile automatic programming method for electric spark line cutting machine and its system

Country Status (1)

Country Link
CN (1) CN1045225C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100373386C (en) * 2004-06-09 2008-03-05 上海开通数控有限公司 Real-time drawing and confirming method for workpiece pattern of bender digital control system
CN101051327B (en) * 2006-04-07 2010-08-25 鸿富锦精密工业(深圳)有限公司 Part assembling hole design system and method
CN102134631A (en) * 2010-12-31 2011-07-27 宁夏天地奔牛实业集团有限公司 Manufacturing method of mining chain wheel profiling sensor
CN104014885A (en) * 2014-06-25 2014-09-03 查济瑞 Machining method for straight bevel gear
WO2016086344A1 (en) * 2014-12-01 2016-06-09 Siemens Aktiengesellschaft Method and apparatus for generating machining codes of workpieces from a paper engineering drawing
CN104599267A (en) * 2015-01-04 2015-05-06 北京数码大方科技股份有限公司 Cutting track generating method and device

Also Published As

Publication number Publication date
CN1097878A (en) 1995-01-25

Similar Documents

Publication Publication Date Title
US5034991A (en) Character recognition method and system
KR100320063B1 (en) Pattern Recognition Device
GB2244886A (en) Apparatus for extracting a text region in a document image
CN1045225C (en) Profile automatic programming method for electric spark line cutting machine and its system
JPH0397086A (en) Character recognizing method
US5923782A (en) System for detecting and identifying substantially linear horizontal and vertical lines of engineering drawings
CN113920038A (en) Cut contour extraction method, device system and medium
JPH0991453A (en) Image processing method and its unit
JP3172498B2 (en) Image recognition feature value extraction method and apparatus, storage medium for storing image analysis program
US4903315A (en) Apparatus for enlarging or reducing an image pattern
CN1416099A (en) Method for fast preparing vector map of house through man-machine interactive
US5471536A (en) Figure digitizing system
JP2004094427A5 (en)
Nag et al. Generating Vectors from Images using Multi-Stage Edge Detection for Robotic Artwork
CN110046528A (en) A kind of dotted DataMatrix two-dimensional code identification method
CN116524509A (en) Double-wheel milling screen data identification method
JP2701307B2 (en) Method for generating a rough tool path for area machining
CN112643755B (en) Method and device for full-automatic equal-area blocking of sheet-shaped objects in any shape based on machine vision
JPS62221003A (en) Method for producing locus of 2-dimensional tool
JP2803736B2 (en) Character recognition method
CN114723748B (en) Detection method, device and equipment of motor controller and storage medium
JPH08202856A (en) Picture processing method
JP4409678B2 (en) Ruled line extraction method
Xu et al. Tolerance Information Extraction for Mechanical Engineering Drawings–A Digital Image Processing and Deep Learning-based Model
JPH06337929A (en) Method and device for managing drawing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee