JPH01175005A - Working system in binarization area - Google Patents

Working system in binarization area

Info

Publication number
JPH01175005A
JPH01175005A JP33649287A JP33649287A JPH01175005A JP H01175005 A JPH01175005 A JP H01175005A JP 33649287 A JP33649287 A JP 33649287A JP 33649287 A JP33649287 A JP 33649287A JP H01175005 A JPH01175005 A JP H01175005A
Authority
JP
Japan
Prior art keywords
data
processing
tool
approximate curve
dot
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
JP33649287A
Other languages
Japanese (ja)
Inventor
Yuji Kiuchi
祐治 木内
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP33649287A priority Critical patent/JPH01175005A/en
Publication of JPH01175005A publication Critical patent/JPH01175005A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To accurately and easily determine a route by erasing a prescribed sequence from the outermost side dot string of binarization data correspondingly to the diameter of a using tool. CONSTITUTION:A graphic 4 is read out by a binarization data reader 2 to obtain a dot pattern graphic and the graphic is stored in a storage means 3. At the time of reading out the data stored in the means 3, a data processor 1 erases a value corresponding to the radius of a tool used by a processing means 11 from the outline of a dot string data pattern. A prescribed processing start point P1 of the erased data pattern is determined, an approximate curve following the outermost side of the dot string data and the approximate curve is followed by a means 12 for repeating the follow-up the approximate curve after working. Since the curve is formed by obtaining the initial straight line until it is bent correspondingly to the existence of dots and then obtaining the succeeding straight line, the whole curve is expressed as an approximate curve.

Description

【発明の詳細な説明】 [41!を要] 本発明は簡易な構成の数値制御型工作機械により二値化
領域内を加工する方式に関し、オペレータの操作による
誤差発生の少ない機器を使用し、且つ得られた二値化デ
ータから二値化領域内を正確に加工するためのデータを
得ることの出来る加工方式を提供することを目的とし、
二値化された図形情報Gこ基づいて加工工具により所定
の範囲を加工する方式において、二値化データへの読取
器により読取った図形の情報を格納する格納手段と、該
格納手段から読出したデータを処理するデータ処理手段
とを具備し、データ処理手段は、前記読出した二値化デ
ータが作る輪郭から使用する工具の半径に相当する量の
ドツト列データを消去する手段と、該手段が処理した後
の二値化データについて所定の処理開始点からその残余
のドツト列データについて最も外側を辿る近似曲線を得
て、加工後に前記手段を繰り返させる手段とで構成され
、前記近似曲線を得る手段の出力により加工工具で加工
することで構成する。
[Detailed Description of the Invention] [41! The present invention relates to a method for machining within a binarized area using a numerically controlled machine tool with a simple configuration, which uses equipment that generates fewer errors due to operator operations, and which uses binary data obtained from the obtained binarized data. The purpose is to provide a processing method that can obtain data for accurately processing the inside of the value area.
In a method of machining a predetermined range with a processing tool based on the binary figure information G, there is provided a storage means for storing figure information read by a reader into the binary data, and a storage means for storing figure information read out from the storage means. and a data processing means for processing the data, the data processing means for erasing an amount of dot row data corresponding to the radius of the tool to be used from the contour formed by the read binary data; and means for obtaining an approximate curve tracing the outermost part of the remaining dot string data from a predetermined processing start point for the binarized data after processing, and repeating the above-mentioned means after processing, to obtain the approximate curve. It is constructed by processing the output of the means using a processing tool.

[産業上の利用分野] 本発明は簡易な構成の数値制御型工作機械により二値化
領域内を加工する方式に関する。
[Industrial Application Field] The present invention relates to a method for machining a binary region using a numerically controlled machine tool with a simple configuration.

従来、二値化データの所定領域内を研削するような場合
に、CAM装置を使用しているが、二値化データを得る
まで、またそのデータを得てから研削の工具に指令する
まで大規模な装置を要していた。そのため簡易な構成で
二値化領域内を加工できる技術を開発することが要望さ
れた。
Conventionally, CAM devices are used when grinding within a predetermined area of binary data, but it takes a long time until the binary data is obtained and from the time the data is obtained to giving commands to the grinding tool. It required large-scale equipment. Therefore, it was desired to develop a technology that can process the inside of the binarization area with a simple configuration.

〔従来の技術] 数値制御型工作機械はプロセッサにより制御され、予め
与えられた位置・速度などのデータ(即ち制御プログラ
ム)に基づいて工具を移動させ、工作物を加工するもの
である。目的の工作物がキーボードにおけるキートップ
表示文字であって、樹脂成形するための金型を加工する
ような場合は、工文字毎にオペレータがディジタイザで
処理して・いた。即ち写真植字技術で得られた文字を拡
大した図形を基礎として、図形上の点画毎に基準位置か
らのX、Y座標値を求める。オペレータの操作で文字の
点画毎に輪郭を得てから、加工データを生成する専用の
装置により演算を進める。そして工具が動作するときの
経路データを決定する。
[Prior Art] A numerically controlled machine tool is controlled by a processor and processes a workpiece by moving a tool based on predetermined data such as position and speed (i.e., a control program). When the target workpiece is a key top display character on a keyboard and a mold for resin molding is to be processed, an operator processes each character using a digitizer. That is, based on a figure obtained by enlarging characters obtained by phototypesetting technology, the X and Y coordinate values from the reference position are determined for each dot on the figure. After obtaining the outline of each stippled character through an operator's operation, calculations are performed using a dedicated device that generates processing data. Then, path data for when the tool operates is determined.

[発明が解決しようとする問題点] ディジタイザをオペレータが操作してX、Y座標値を求
めることは、オペレータの操作技術の良否により所要時
間と得られたデータの精度に大きなばらつきが生じる。
[Problems to be Solved by the Invention] When an operator operates a digitizer to obtain X and Y coordinate values, the required time and the accuracy of the obtained data vary greatly depending on the operator's operating technique.

そして熟練したオペレータであっても、漢字のように一
寸複雑な図形を読取るときは長時間を要した。更にその
後に専用の演算装置により演算を進めるときも、可成り
の時間を要することが実情である。
Even for experienced operators, it took a long time to read even complicated figures such as kanji. Furthermore, it is a reality that it takes a considerable amount of time to proceed with the calculation using a dedicated calculation device.

本発明の目的は前述の欠点を改善し、オペレータの操作
による誤差発生の少ない機器を使用し、且つ得られた二
値化データから二値化領域内を正確に加工するためのデ
ータを得ることのできる加工方式を提供することにある
The purpose of the present invention is to improve the above-mentioned drawbacks, to use equipment that causes fewer errors due to operator operations, and to obtain data for accurately processing the inside of the binarized area from the obtained binarized data. The objective is to provide a processing method that allows for

[問題点を解決するための手段コ 第1図は本発明の原理構成を示す図である。第1図にお
いて、1はデータ処理手段、2はイメージスキャナなど
の二値化データへの読取器、3はデータ格納手段、4は
図形、5は加工工具、11は輪郭データを消去する手段
、12はドツト列データの最も外側を辿る近似曲線を得
て、加工後に繰り返しさせる手段を示す。
[Means for Solving the Problems] FIG. 1 is a diagram showing the principle structure of the present invention. In FIG. 1, 1 is a data processing means, 2 is a reader for binary data such as an image scanner, 3 is a data storage means, 4 is a figure, 5 is a processing tool, 11 is a means for erasing contour data, Reference numeral 12 indicates means for obtaining an approximate curve tracing the outermost part of the dot row data and repeating it after processing.

二値化された図形情報に基づいて加工工具5により所定
の範囲を加工する方式において、本発明は下記の構成と
している。即ち、 二値化データへの読取器2により読取った図形4の情報
を格納する格納手段3と、該格納手段3から読出したデ
ータを処理するデータ処理手段1とを具備し、データ処
理手段1は、前記読出した二値化データが作る輪郭から
使用する工具の半径に相当する量のドツト列を消去する
手段11と、該手段11が処理した後の二値化データに
ついて所定の処理開始点からその残余のドツト列データ
について最も外側を辿る近似曲線を得て、加工後に前記
手段11を繰り返しさせる手段12とで構成され、前記
近似曲線を得る手段12の出力により加工工具5で加工
することである。
In a method of machining a predetermined range using the machining tool 5 based on binarized graphic information, the present invention has the following configuration. That is, the data processing means 1 includes a storage means 3 for storing information of the figure 4 read by the reader 2 into binary data, and a data processing means 1 for processing the data read from the storage means 3. means 11 for erasing an amount of dot rows corresponding to the radius of the tool to be used from the contour formed by the read binary data; and a predetermined processing start point for the binary data processed by the means 11. and a means 12 for obtaining an approximate curve tracing the outermost part of the remaining dot row data and repeating the means 11 after processing, and processing with a processing tool 5 based on the output of the means 12 for obtaining the approximate curve. It is.

[作用] 第1図における二値化データへの読取器2、例えばイメ
ージスキャナにより図形4を読取り、ドツトパターンで
図形を得て、格納手段3に格納する。データ処理装置l
は格納手段3の格納データを読出すとき、第2図に示す
図形が得られたとする。以下の説明の都合上、ドツトパ
ターンの最も外側のみを描いであるが、実際は内側に全
部ドツト有というパターンとなっている。ドツト列デー
タパターンの輪郭(最も外側のドツト列)について、処
理手段11により使用する工具の半径に相当する量を消
去する。消去後のデータパターンについて所定の処理開
始点P1を定め、手段12により近似曲線を辿る。その
線はドツトの存無に対応して屈曲するまでを当初の直線
で得てから、次の直線を得ているため近似曲線と表現す
る。即ち、第2図に示すように点PLから実線に沿って
下方から右下方へ向かい、次に上昇して左上方へ辿って
行く。点P1に到達したとき、この経路は格納手段3に
格納して置(ことが望ましい。次に手段11に処理を移
し、そのときのドツト列データパターンについて最も外
側となっている輪郭について再び使用する工具の半径に
相当する量を消去する。次の処理開始点P2から手段1
2により近似曲線を辿る。そのときP2から新たな経路
が得られる。次に手段11により更に輪郭のデータパタ
ーンを消去して、点P3から近似曲線を辿ることを繰り
返す。このようにしてドツトパターンが無くなるまで経
路を求めて行く。
[Operation] The figure 4 is read by the binary data reader 2 in FIG. data processing equipment
Assume that when reading the data stored in the storage means 3, the figure shown in FIG. 2 is obtained. For the convenience of the following explanation, only the outermost part of the dot pattern is depicted, but in reality the pattern has all dots on the inside. Regarding the outline of the dot row data pattern (the outermost dot row), the processing means 11 erases an amount corresponding to the radius of the tool to be used. A predetermined processing start point P1 is determined for the erased data pattern, and an approximate curve is traced by means 12. The line is expressed as an approximate curve because it is obtained from the initial straight line until it bends in response to the presence or absence of a dot, and then the next straight line is obtained. That is, as shown in FIG. 2, from the point PL, it moves along a solid line from below to the lower right, then rises and traces to the upper left. When the point P1 is reached, this path is preferably stored in the storage means 3. Next, the processing is transferred to the means 11, and the outermost contour of the dot row data pattern at that time is used again. Erase the amount corresponding to the radius of the tool.Means 1 from the next processing start point P2
2, trace the approximate curve. At that time, a new route is obtained from P2. Next, the data pattern of the contour is further erased by means 11, and the process of tracing the approximate curve from point P3 is repeated. In this way, routes are found until there are no more dot patterns.

データ処理装置lはこの経路に従って加工工具5の加工
を指令すれば、前述のパターン領域内についてその内側
を正確に加工することができる。
If the data processing device 1 instructs the machining tool 5 to process according to this path, it is possible to accurately process the inside of the pattern area described above.

[実施例] 第3図は本発明の実施例として、パターン内に窓部があ
る場合と、経路を辿って行く前進路がなくなった場合の
処理を含めた動作フローチャートである。ステップ■に
おいて、まず工具径を設定する。次にステップ■におい
て二値化データの有無を判断する。若しデータが無けれ
ばステップ■において終了する。データ有のとき、ステ
ップ■において輪郭ドツトを消去する。その処理はドツ
トパターンの最も外側に沿って工具が辿るように経路を
定めると、工具半径だけ大きく加工するから、その半径
に相当する量だけパターン外側から「輪郭ドツト」を消
去する。次にステップ■においてドツトパターンに加工
しない「窓部」があるかどうかを判断する。なおこのと
き窓部についても、その窓部を形成する輪郭についてド
ツトパターンの消去は行われている。窓部があるときス
テップ■において消去後の輪郭部について開始点を定め
る。そしてステップ■以降を処理し、−巡後のステップ
■において輪郭ドツトの処理が全部終了してなければス
テップ■以降を繰り返す。ステップ■において、処理し
てない窓部がな4なったと判断するとステップ■におい
て、図形の外側から第2図に示すように処理を開始する
。ステップ■において前進する経路があるかどうか判断
するが、これは処理が進んで残余ドツトパターン列が極
めて細くなったとき、経路がループ状にならないことが
起こるからである。経路がなくなったときステップ■に
おいて、今までたどって来た経路を後退する。そしてス
テップ■において開始点まで戻っているかどうかを判断
し、戻っているときはステップ0において工具原点に戻
り次の処理を行う。
[Embodiment] FIG. 3 is an operational flowchart as an embodiment of the present invention, including processing when there is a window in the pattern and when there is no forward path to follow the route. In step (2), first set the tool diameter. Next, in step (3), it is determined whether there is binarized data. If there is no data, the process ends at step (2). When data is present, the contour dots are erased in step (3). In this process, if a path is determined so that the tool follows the outermost edge of the dot pattern, the tool will be machined to a larger radius, and therefore the "contour dots" will be erased from the outside of the pattern by an amount corresponding to the radius. Next, in step (2), it is determined whether there is a "window" that is not processed into the dot pattern. At this time, the dot pattern is also erased from the outline forming the window. When there is a window, a starting point is determined for the contour after erasure in step (3). Then, the steps after step (2) are processed, and if the contour dots have not all been processed in step (2) after the -cycle, the steps after step (2) are repeated. In step (2), when it is determined that there are four unprocessed windows, in step (2), processing is started from the outside of the figure as shown in FIG. In step (3), it is determined whether there is a forward path.This is because as the process progresses and the remaining dot pattern row becomes extremely thin, the path may not become a loop. When there are no more routes left, in step (2), the route taken up until now is retraced. Then, in step (3), it is determined whether or not the tool has returned to the starting point. If it has returned, the tool returns to the tool origin in step 0 and performs the next process.

ステップ■において経路があって進めるときは、ステッ
プ■において輪郭屈曲座標値を抽出する。
If there is a route and it is to proceed in step (2), contour bending coordinate values are extracted in step (2).

これはドツト列パターンを辿るときドツト列の並び方が
方向を変える前後を端点としてその座標値を求め、端点
間は直線と見做して処理するためである。そしてステッ
プ[相]において工具経路を聞くする。これは前記端点
の座標値を連続して記憶することで処理する。ステップ
■において開始点に戻るかとをか判断し、戻るまで処理
を繰り返す。
This is because when tracing a dot row pattern, the coordinate values are determined by using endpoints before and after the direction of the dot row changes, and the points between the endpoints are treated as straight lines. Then, in step [phase], the tool path is heard. This is processed by continuously storing the coordinate values of the end points. In step (2), it is determined whether to return to the starting point, and the process is repeated until the return is made.

第4図は漢字の「漢」の上手部についてイメージスキャ
ナにより図形データを収集した所を示す。
FIG. 4 shows graphic data collected using an image scanner for the upper part of the kanji character "kan".

データパターンの内側に窓部Wl、W2.W3があると
きの処理は、当初に輪郭ドツトの消去を行って後に、第
3図に示した窓部の処理をWl、W2、W3について順
次に行い、次に外側輪郭の処理を行う。その後に再び、
全体パターンについて輪郭ドツトの消去を行って窓部か
ら処理を再開する。
Inside the data pattern are window parts Wl, W2. In the processing when W3 is present, the contour dots are first erased, then the window processing shown in FIG. 3 is sequentially performed for Wl, W2, and W3, and then the outer contour is processed. Then again,
The contour dots are erased for the entire pattern and processing is restarted from the window.

[発明の効果コ このようにして本発明によると、工具による処理の経路
をもとめる当初において、使用工具径に対応させて二値
化データの最も外側のドツト列より所定数列を消去して
いるから、経路がパターンの大きさより拡大することな
く、正確なものとなる。また二値化データへの読取器例
えばイメージスキャナによりデータを得ることで、簡易
に短時間でデータを得ているため、その後の経路決定も
容易に且つ短時間に求めることができる。
[Effects of the Invention] According to the present invention, at the beginning of determining the processing route using the tool, a predetermined number of dot rows from the outermost dot row of the binarized data are deleted in accordance with the diameter of the tool used. , the path is accurate without expanding beyond the size of the pattern. Furthermore, by obtaining data using a binary data reader, such as an image scanner, the data is easily obtained in a short time, and subsequent route decisions can be made easily and in a short time.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の原理構成を示す図、 第2図は格納データを読出した図の1例、第3図はデー
タ処理装置の動作フローチャート、第4図は二値化デー
タへの読取器によりデータを得た所を示す図である。 ■−・データ処理手段 2・−・・二値化データへの読取器 3・・−格納手段 4・・・図形 5・・−加工工具 11・・・データ消去と印加する手段 12−・・近似曲線を得る手段 特許出願人    富士通株式会社 代 理 人  弁理士  鈴木栄祐 第1図 第2図
Fig. 1 is a diagram showing the principle configuration of the present invention, Fig. 2 is an example of a diagram of reading out stored data, Fig. 3 is an operation flowchart of the data processing device, and Fig. 4 is a reader for binary data. It is a figure showing where data was obtained by. ■--Data processing means 2--Reader 3 for binarized data--Storing means 4--Graphics 5--Processing tool 11--Data erasing and applying means 12-- Patent applicant for the method for obtaining an approximate curve: Representative Fujitsu Limited Patent attorney: Eisuke Suzuki Figure 1 Figure 2

Claims (1)

【特許請求の範囲】 二値化された図形情報に基づいて加工工具(5)により
所定の範囲を加工する方式において、 二値化データへの読取器(2)により読取った図形(4
)の情報を格納する格納手段(3)と、該格納手段(3
)から読出したデータを処理するデータ処理手段(1)
とを具備し、 データ処理手段(1)は、前記読出した二値化データが
作る輪郭から使用する工具の半径に相当する量のドット
列を消去する手段(11)と、 該手段(11)が処理した後の二値化データについて、
所定の処理開始点からその残余のドット列データについ
て最も外側を辿る近似曲線を得て、加工後に前記手段(
11)を繰り返させる手段(12)とで構成され、 前記近似曲線を得る手段(12)の出力により加工工具
(5)で加工すること を特徴とする二値化領域内の加工方式。
[Claims] In a method of machining a predetermined range using a machining tool (5) based on binarized figure information, a figure (4) read by a reader (2) to the binarized data is provided.
) storage means (3) for storing information of the storage means (3);
) Data processing means (1) for processing data read from
The data processing means (1) includes means (11) for erasing a dot row of an amount corresponding to the radius of the tool to be used from the contour formed by the read binary data; and the means (11). Regarding the binarized data after processing,
An approximate curve tracing the outermost part of the remaining dot row data from a predetermined processing start point is obtained, and after processing, the above-mentioned means (
11) and a means (12) for repeating step 11), wherein processing is performed using a processing tool (5) based on the output of the means (12) for obtaining the approximate curve.
JP33649287A 1987-12-28 1987-12-28 Working system in binarization area Pending JPH01175005A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33649287A JPH01175005A (en) 1987-12-28 1987-12-28 Working system in binarization area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33649287A JPH01175005A (en) 1987-12-28 1987-12-28 Working system in binarization area

Publications (1)

Publication Number Publication Date
JPH01175005A true JPH01175005A (en) 1989-07-11

Family

ID=18299691

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33649287A Pending JPH01175005A (en) 1987-12-28 1987-12-28 Working system in binarization area

Country Status (1)

Country Link
JP (1) JPH01175005A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5274714B1 (en) * 2012-03-02 2013-08-28 三菱電機株式会社 Machining program generation device, machining program generation method, and machining program generation program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5274714B1 (en) * 2012-03-02 2013-08-28 三菱電機株式会社 Machining program generation device, machining program generation method, and machining program generation program
WO2013128625A1 (en) * 2012-03-02 2013-09-06 三菱電機株式会社 Working program generation device, working program generation method, and working program generation program
US9740189B2 (en) 2012-03-02 2017-08-22 Mitsubishi Electric Corporation Machining program creating apparatus, machining program creating method, and machining program creating program

Similar Documents

Publication Publication Date Title
US3391392A (en) Method and apparatus for pattern data processing
EP0332765B1 (en) Graphical input/output system and method
JPS60574A (en) Method and apparatus for vector conversion of document and recognition of symbol
DE3579473D1 (en) METHOD FOR GRAPHICALLY PRESENTING AN IMAGE.
JPH01175005A (en) Working system in binarization area
JPH09258712A (en) Character pattern forming device
EP0559353B1 (en) Computer input apparatus and method for drawing free curves
JPH0565906B2 (en)
JP3422634B2 (en) Handwritten character recognition method and apparatus
JP2629759B2 (en) Data generation method for numerical control machining
JPS62221003A (en) Method for producing locus of 2-dimensional tool
JP3254286B2 (en) Plate mask making equipment
JP2933932B2 (en) Character recognition method and apparatus
JP2701307B2 (en) Method for generating a rough tool path for area machining
JPS60259362A (en) Copying machine for closed area software potential line
CN116309533A (en) Contour acquisition method and system of template structural member, electronic equipment and storage medium
JP3198218B2 (en) Online handwriting recognition method
JPH0317782A (en) Graphic processing method
JPH0622028B2 (en) Document creation / editing device
JP2838556B2 (en) Image processing device
JP2740506B2 (en) Image recognition method
JPH0490077A (en) Outline tracking system
JP2614356B2 (en) Closed figure extraction method
JPH07107645B2 (en) Two-dimensional tool trajectory generation method
JPH0525141B2 (en)