JPS6344279A - Drawing reader - Google Patents

Drawing reader

Info

Publication number
JPS6344279A
JPS6344279A JP61187739A JP18773986A JPS6344279A JP S6344279 A JPS6344279 A JP S6344279A JP 61187739 A JP61187739 A JP 61187739A JP 18773986 A JP18773986 A JP 18773986A JP S6344279 A JPS6344279 A JP S6344279A
Authority
JP
Japan
Prior art keywords
line
data
scanner
sensor
point
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
JP61187739A
Other languages
Japanese (ja)
Inventor
Takahiro Akimoto
秋元 隆裕
Junichi Ishikawa
潤一 石川
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP61187739A priority Critical patent/JPS6344279A/en
Publication of JPS6344279A publication Critical patent/JPS6344279A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve operability and work efficiency and to save labor by forming a scanner and a plotter into one body. CONSTITUTION:The X-Y scanner/plotter 1 has a scanner function that selects a sensor detecting a figure as binary data and a pen drawing a linear figure and traces a linear figure according to X-Y control instructions, and a plotter function that draws a linear figure. Control instructions from an X-Y control part 3 control the position of the sensor or pen in the X-Y scanner/plotter 1. Based on binary data that the X-Y scanner/protter 1 detects, a processing part 2 instructs an X-Y control part 3 so that the position of the sensor can trace a linear figure, and simultaneously outputs CAD data corresponding to the linear figure. CAD data from the outside is inputted to the processing part 2 through a data I/O part 4.

Description

【発明の詳細な説明】 (発明の目的〕 (産業上の利用分野) 本発明は、図面読取装置に係り、特にアパレル図等の線
図形をCADデータに変換して画像処理する図面読取装
置に関するものでおる。
[Detailed Description of the Invention] (Object of the Invention) (Industrial Field of Application) The present invention relates to a drawing reading device, and more particularly to a drawing reading device that converts line figures such as apparel drawings into CAD data and performs image processing. It's something.

(従来の技術) アパレル図(洋服の型紙の輪郭図等)や殿械部品加工図
のような線図形から成る図面の画像データをCADシス
テムに入力する方法は、大別して次の2つが一般的であ
る。
(Prior art) There are two general methods for inputting image data of drawings consisting of line figures, such as apparel drawings (outline drawings of clothing patterns, etc.) and buttocks parts processing drawings, into a CAD system. It is.

■ 対話型入力 ■ デジタイズ入力 ■の対話型入力の場合、図面を書かず、直接入力が可能
で図面の修正、変更が容易であるという利点があるが、
高価な端末を必要とし、設計者が自ら入力作業を行わな
ければならない。
■ Interactive input ■ Digitized input ■ Interactive input has the advantage that it allows direct input without drawing drawings, making it easy to modify and change drawings.
It requires an expensive terminal, and the designer must perform the input work himself.

■のデジタイズ入力の場合、図面データの入力は渫械的
作業であるので、設計者が占有されることはないという
利点がおるが、入力時間がかかり、しかも図面は正確に
画く必要がある。また図面の修正、変更に手間がかかる
という問題がある。
In the case of (2) digitizing input, inputting drawing data is a manual operation, so it has the advantage that it does not occupy the designer's hands, but it takes time to input, and moreover, the drawings must be drawn accurately. Another problem is that it takes time and effort to modify or change the drawings.

また、いずれの方法も個人差が大きく現れ操作性が必ず
しも良いとは言えない。
Furthermore, both methods have large individual differences and cannot be said to be necessarily easy to operate.

このように図面データの初期入力の点が効率的運用のネ
ックになっていた。
In this way, the initial input of drawing data has become a bottleneck for efficient operation.

これらを解決する方法として、近年、スキャナで図面を
読み取り、フレームメモリ方式を使って図面データを処
理する図面読取装置が考案された。
As a method to solve these problems, a drawing reading device has been devised in recent years that reads drawings with a scanner and processes the drawing data using a frame memory method.

その従来の図面読取装置の基本構成は第17図に示すよ
うに図面入力部36、認識部37、編集部38、出力部
39の4つからなる。そして、まず入力部36にて、入
力図面を画像(2値化)データに変換し、認識部37の
フレームメモリに格納される。第18図に認識部37の
詳細な構成図を示す。フレームメモリは、図面1枚分の
画素データを格納する2次元画素データメモリ40であ
る。一般には、中間処理用の画像データが必要なので、
複数図面枚数弁のメモリがあるのが普通である。このフ
レームメモリ40に格納された2値化データは、文字ア
ナライザ41、記号アナライザ42、線図形アナライザ
43によって、処理(認識)され、結果をデータテーブ
ル44に格納する。その後、編集部インターフェース4
6をへて編集部38で認識結果のりジエクト部分、エラ
一部分を対話型によって処理し、出力部インターフェー
ス47をへて出力部39によって適当なフォーマットに
変換して出力する。
The basic structure of the conventional drawing reading device consists of four parts: a drawing input section 36, a recognition section 37, an editing section 38, and an output section 39, as shown in FIG. First, the input unit 36 converts the input drawing into image (binarized) data and stores it in the frame memory of the recognition unit 37. FIG. 18 shows a detailed configuration diagram of the recognition unit 37. The frame memory is a two-dimensional pixel data memory 40 that stores pixel data for one drawing. Generally, image data for intermediate processing is required, so
It is common to have memory for multiple drawings. The binarized data stored in the frame memory 40 is processed (recognized) by a character analyzer 41, a symbol analyzer 42, and a line figure analyzer 43, and the results are stored in a data table 44. After that, the editorial department interface 4
6, the recognition result paste part and error part are interactively processed in an editing part 38, and then passed through an output part interface 47 and converted into an appropriate format by an output part 39 and outputted.

(発明が解決しようとする問題点) 上述、従来の図面読取装置35は、図面入力時間の削減
や、作業者による個人差が、少ない等の利点があるが、
装置が複雑になり、特に大容量の画像メモリが必要とな
る欠点がある。
(Problems to be Solved by the Invention) The conventional drawing reading device 35 described above has advantages such as reducing drawing input time and minimizing individual differences among workers.
The drawback is that the device becomes complex and, in particular, requires a large capacity image memory.

また、入力図面が単純な、アパレル図や殿械部品加工図
のような図面であっても、対話型及びデジタイズ入力方
式をとると、簡単な曲線部も数点教示せねばならないよ
うに操作性が悪く、入力時間もかかる。ざらにこれら単
純図面に対して装置が大規模で、複雑であり、高価にな
ってしまうという問題がある。
In addition, even if the input drawing is a simple drawing such as an apparel drawing or a machining drawing of a buttock part, using an interactive and digitized input method will improve operability as it will be necessary to teach several simple curved parts. It's bad and takes a long time to input. In contrast to these simple drawings, there is a problem that the apparatus is large-scale, complicated, and expensive.

本発明は、上記問題点に鑑みて、線図形用の安価な図面
読取装置を提供することを目的とする。
SUMMARY OF THE INVENTION In view of the above problems, it is an object of the present invention to provide an inexpensive drawing reading device for line drawings.

(発明の構成〕 (問題点を解決するための手段と作用)上記目的を達成
するため本発明は、アパレル図等の線図形を読み取る図
面読取装置において、線図形を2値データとして検出す
るセンサおよび線図形を画くペンのいずれかを選択して
X−Y制御指令により線図形を追跡するスキャナ機能と
線図形を画くプロッタ機能を備えたX−Yスキャナ/プ
ロッタと、前記X−Yスキャナ/プロッタのセンサまた
はペンの位置を制御する前記X−Y制御指令を出力する
X−Y制御部と、前記X−Yスキャナ/プロッタで検出
した2値データを基に前記センサの位置が線図形を追跡
するように前記X−Y 1tll制御部に指令すると共
に線図形に対応したCADデータに変換する処理部と、
前記CADデータを外部に出力し、また、外部から入力
されるCADデータを前記処理部を介し前記X−Y制御
部に伝送するデータ入出力部を備えて構成し、線図形を
追跡しながらCADデータに変換しまた、外部から入力
されたCADデータにより線図形を画くようにし、小容
量のメモリで安価に実現可能とし、線図形の自動追跡に
より図面読取時間が短縮し、操作性を向上させた図面読
取装置である。
(Structure of the Invention) (Means and Effects for Solving the Problems) To achieve the above object, the present invention provides a drawing reading device that reads line drawings such as apparel drawings, which uses a sensor that detects line drawings as binary data. and an X-Y scanner/plotter having a scanner function for tracing a line figure by selecting one of the pens for drawing a line figure and a plotter function for drawing a line figure by X-Y control commands; an X-Y control section that outputs the X-Y control commands that control the position of the plotter's sensor or pen; a processing unit that instructs the X-Y 1tll control unit to trace and converts it into CAD data corresponding to the line figure;
The configuration includes a data input/output unit that outputs the CAD data to the outside and transmits CAD data input from the outside to the X-Y control unit via the processing unit, and performs CAD while tracing line figures. In addition, line figures are drawn using externally input CAD data, which can be realized at low cost with a small memory capacity, and automatic tracking of line figures reduces drawing reading time and improves operability. This is a drawing reading device.

(実施例) 本発明の基本構成を第1図に示す。(Example) The basic configuration of the present invention is shown in FIG.

第1図において、1はX−Yスキャナ/ブロック装置で
、第2図に示す様に、X−Y方向に移動可能なセンサ]
Bとペン1Aを切換または交換することによってスキャ
ナとプロッタをそれぞれ使い分けることができる。X−
Yスキャナとした場合のセンサ1Bは、第3図に示すよ
うに長ざLsを有するリニアセンサ(例えばリニアCO
Dセンサ)をX軸方向に平行に移動部に固定し、X軸方
向に関して図面上の線図形の白黒を検出できるものであ
る。リニアセンサは、視野内の黒色部、つまり線図形部
を“1″、白色部つまり線図形の余白部分を′Q″のよ
うに2値化データに変換するものである。
In Fig. 1, 1 is an X-Y scanner/block device, and as shown in Fig. 2, a sensor movable in the X-Y direction]
By switching or replacing pen 1A and pen 1A, it is possible to use the scanner and plotter separately. X-
When used as a Y scanner, the sensor 1B is a linear sensor (for example, a linear CO) having a length Ls as shown in FIG.
D sensor) is fixed to the moving part parallel to the X-axis direction, and can detect black and white of line figures on the drawing with respect to the X-axis direction. The linear sensor converts the black part in the field of view, that is, the line figure part, into binary data such as "1" and the white part, that is, the margin part of the line figure, as 'Q'.

処理部2は、後述する曲線データの追跡処理、線図形の
中心線検出処理及び曲線データの線分近似処理等の処理
部でおる。3はX −Y till m部で、処理部2
からの指令によりX−Yスキャナ/プロッタ1の位置を
制御する。4はデータ入出力部で、処理部2との間で線
図形を線分近似したベクタデータで授受し、CADシス
テムに適合する形式のデータに変換して入出力を行う。
The processing unit 2 is a processing unit that performs a tracing process of curve data, a process of detecting a center line of a line figure, a line segment approximation process of curve data, etc., which will be described later. 3 is the X-Y till m section, and the processing section 2
The position of the X-Y scanner/plotter 1 is controlled by commands from the X-Y scanner/plotter 1. Reference numeral 4 denotes a data input/output unit, which exchanges vector data obtained by approximating a line figure with a line segment with the processing unit 2, converts it into data in a format compatible with the CAD system, and inputs and outputs the data.

処理部2の詳細な機能構成を第4図に示す。The detailed functional configuration of the processing section 2 is shown in FIG.

同図において、X−Yスキャナで読み取られた2値化デ
ータは、2値化データ入力部5を経由してメモリ部6へ
格納される。なお、このメモリ部6は、後述する線図形
追跡時に必要な処理済の線図形データを格納する小容量
のメモリである。
In the figure, binarized data read by an X-Y scanner is stored in a memory unit 6 via a binarized data input unit 5. Note that this memory unit 6 is a small-capacity memory that stores processed line figure data necessary for line figure tracing, which will be described later.

開始点検出手段7はスキャナが線図形を追跡する前処理
を行う部分で、センサ1Bが最初に線図形を検出するま
でのスキャナ位置を制御する。
The starting point detection means 7 is a part that performs preprocessing for the scanner to trace a line figure, and controls the scanner position until the sensor 1B first detects a line figure.

中心線検出手段8は線図形の線幅の中心位置を検出する
The center line detection means 8 detects the center position of the line width of the line figure.

スキャナ位置計算手段9は線図形追跡の際、スキャナ位
置を判定して次の目標位置を計算し、X−Y制御インタ
フェース10を介してスキャナの位置を制御する。
The scanner position calculation means 9 determines the scanner position during line figure tracing, calculates the next target position, and controls the position of the scanner via the XY control interface 10.

また、このとき線図形の分岐点が検出されると、その位
置データ、識別データ、その他必要データを分岐点メモ
リ11に格納する。
Further, when a branch point of the line figure is detected at this time, its position data, identification data, and other necessary data are stored in the branch point memory 11.

入出力インタフェース12は出力部4との間で線図形デ
ータの授受を行う。
The input/output interface 12 exchanges line graphic data with the output section 4.

線図形追跡時における処理部2の処理順は大別して第5
図のように示される。
The processing order of the processing unit 2 during line figure tracking can be roughly divided into the fifth order.
Shown as shown.

処理が開始されると先ず開始点検出処理7Aが行われX
−Yスキャナ1を線図形の位置に導く。
When the process starts, first, start point detection process 7A is performed.
- Guide the Y scanner 1 to the position of the line figure.

その後、中心線検出処理8A、スキャナ位置計算処理9
A、追跡終了判定処理9Bが繰り返し実行され、すべて
の線図形を追跡すると処理を終了する。
After that, center line detection processing 8A, scanner position calculation processing 9
A. The tracing end determination process 9B is repeatedly executed, and when all line figures are traced, the process ends.

処理部2は上述の各機能を有しデータ入出力部4からC
ADデータが得られるように作用する。
The processing unit 2 has the above-mentioned functions, and the data input/output unit 4 to C
It acts so that AD data can be obtained.

以下、各!2a理部の各処理手順について更に詳細に説
明する。
Below are each! Each processing procedure of the 2a science department will be explained in more detail.

(→ 開始点検出処理 作業者が図面をX−Yスキャナ/プロッタ1へ装着する
と、まず、開始点検出手段7によって、X−Yスキャナ
は第6図のようにST点(0,O)を原点としてスキャ
ンを開始する。図面は通常長方形であるので、短辺側を
工軸、長辺側をン軸とする。
(→ Starting point detection processing When the operator attaches the drawing to the X-Y scanner/plotter 1, the starting point detection means 7 causes the X-Y scanner to detect the ST point (0, O) as shown in Fig. 6. Start scanning with the origin as the starting point.Since the drawing is usually rectangular, the short side is the construction axis and the long side is the n axis.

開始点検出手段7の詳細を第7図を用いて説明する。ま
ず、DX、DYパラメータをパラメータレジスタ71に
設定する。DXとは、スキャナの工方向移動刻み幅で、
これは第3図に示すリニアセンサの長さしSに等しい。
Details of the starting point detection means 7 will be explained using FIG. 7. First, DX and DY parameters are set in the parameter register 71. DX is the increment width of the scanner in the machine direction.
This is equal to the length S of the linear sensor shown in FIG.

DYとは、メ方向移動刻み幅である。このD’Y’&設
定するために第8図に示す最も簡単な線図形モデルを考
える。線図形の曲率半径をrとして線図形がセンサの一
方の端に位置している状態からン方向にセンサが直進し
線図形がセンサの他方の端になるまでの距離をDYとし
て求めると、 DY=5”−c’ =J”iて両画1「=汀震否可■ 
・・・■となる。そこであらかじめ線図形の曲率半径r
が小、中、大の3通りの場合におけるDYをα)式によ
って算出しておき、図面に適合するように3種のDYか
ら1つを選択し設定する。
DY is the step size of movement in the main direction. In order to set this D'Y'&, consider the simplest linear graphic model shown in FIG. Letting the radius of curvature of the line figure be r, the distance from when the line figure is located at one end of the sensor to when the sensor moves straight in the n direction until the line figure is at the other end of the sensor is determined as DY. = 5"-c' = J"i te ryoga 1 "= 汀 trembling ■
... becomes ■. Therefore, in advance, the radius of curvature r of the line figure
The DY in the three cases of small, medium, and large is calculated by the formula α), and one of the three types of DY is selected and set so as to match the drawing.

工座標増加手段72は処理の開始によりOから1づつイ
ンクリメントし、X−Y制御部インクフエ−ス10を介
してX軸位置指令を送出しD×毎にX軸をスキャンさせ
る。そしてX軸の最大値MXに達した時点でOにリセッ
トすると同時に7座標増加手段73にインクリメント指
令を送出しY軸の位置指令をDYだけ増加させる。これ
によりスキA7すは第6図点線のようにリターンし、工
座標増加手段72は再びOからカウントを開始する。
The work coordinate increasing means 72 increments by 1 from O at the start of processing, and sends an X-axis position command via the ink face 10 of the X-Y control unit to scan the X-axis every Dx. When the X-axis maximum value MX is reached, it is reset to O and at the same time an increment command is sent to the 7-coordinate increasing means 73 to increase the Y-axis position command by DY. As a result, the gap A7 returns as shown by the dotted line in FIG. 6, and the work coordinate increasing means 72 starts counting from O again.

以上の動作を繰返しY軸の最大値MYに達した時点でス
キャン動作は終了する。
The scanning operation ends when the above operation is repeated and the maximum value MY on the Y axis is reached.

工座標増加手段72、ン座標増加手段73によって決定
されたz、 y、の位置指令は、第3図のリニアセンサ
の中心であるSo点が、その座標位置となる様に移動す
る。
The z and y position commands determined by the work coordinate increasing means 72 and the working coordinate increasing means 73 move so that the center of the linear sensor in FIG. 3, the point So, becomes the coordinate position.

X−Yスキャナが移動し、センサ視野内に線図形がおる
かどうかの検出動作が次のように行われる。
The X-Y scanner moves and the detection operation to determine whether a line figure is within the field of view of the sensor is performed as follows.

まず、2値化データ入力部5によって2値化データを取
り込みハイレベル検出手段74によつ−Cそのデータ内
にハイレベル(“1″すなわち線図形の黒色部)部分が
あるかを調査する。
First, the binarized data is inputted by the binarized data input section 5 and checked by the high level detection means 74 to see if there is a high level ("1", that is, a black part of a line figure) part in the data. .

調査の結果、ハイレベルが検出されない場合は、工座標
増加手段72にインクリメント指令を送出し工座標をカ
ウントアツプしスキャンを快打する。
As a result of the investigation, if a high level is not detected, an increment command is sent to the work coordinate increase means 72 to count up the work coordinate and perform a scan.

ハイレベルを検出した場合は、この点を線図形追跡の開
始点Doとし、この座標をメモリ6に格納し中心線検出
処理8Aへ移行する。
When a high level is detected, this point is set as the starting point Do of line figure tracing, this coordinate is stored in the memory 6, and the process moves to center line detection processing 8A.

ハイレベルが検出されない場合スキャン動作は、線図形
が検出されるまで続けられるが、ン座標増加手段73が
、MY以上の値をカウントした場合、エラー処理回路7
5を作動させエラー処理を行う。
If a high level is not detected, the scanning operation continues until a line figure is detected, but if the coordinate increasing means 73 counts a value greater than MY, the error processing circuit 7
5 to perform error processing.

(ロ)中心線検出処理 中心線検出手段8の機能構成を第9図に示す。(b) Center line detection processing The functional configuration of the centerline detection means 8 is shown in FIG.

リニアセンサ1Bで検出された2値化データは所定の分
解能でセンサの長さLsに対応したビット数の2値化デ
ータメモリ6Aに格納されている。
The binary data detected by the linear sensor 1B is stored in a binary data memory 6A with a predetermined resolution and the number of bits corresponding to the length Ls of the sensor.

このメモリ6Aの内容がWiカウンタ81及びBnカウ
ンタ82に伝えられる。2値化データメモリ6Aには白
部データ(“O″レベルと黒部データ(141Inレベ
ル)が格納されており、Wflカウンタ81はセンサ左
端データから110 !+レベルのデータ数をカウント
し、Bi力「クンタ82はIt 1 #lレベルのデー
タ数をカウントする。
The contents of this memory 6A are transmitted to the Wi counter 81 and the Bn counter 82. The binary data memory 6A stores white data (“O” level) and black data (141In level), and the Wfl counter 81 counts the number of data at the 110!+ level from the left end data of the sensor, and calculates the Bi power. “Kunta 82 counts the number of data at It 1 #l level.

開始点検出処理俊の線図形は必ずセンサ視野内にあり2
値化データメモリ6Aには必ず第10図(2)かυのよ
うな2 l1li化データが検出される。(0はセンサ
の中央付近に細線が、(ハ)はセンサの左側に幅の広い
線が検出された例である。
The starting point detection processing line figure is always within the sensor field of view2
In the digitized data memory 6A, 2l1li converted data such as (2) or υ in FIG. 10 is always detected. (0 is an example in which a thin line is detected near the center of the sensor, and (C) is an example in which a wide line is detected on the left side of the sensor.

Bnカウンタ82の値は1/2分周器83によって1/
2にされ加算器84によりWρカウンタ81の値心線の
座標が算出される。この中心線座標Cz。
The value of the Bn counter 82 is divided by 1/2 by the 1/2 frequency divider 83.
2 and the adder 84 calculates the coordinates of the value center line of the Wρ counter 81. This center line coordinate Cz.

Cyはレジスタ86に格納され、次の処理9Aに移行す
る。
Cy is stored in the register 86, and the process moves to the next process 9A.

なあ、中心線のン座標Cヌは、センサ位@S。Hey, the coordinate C of the center line is the sensor position @S.

の7座標と同値であるので、これを出力する。This is the same value as the 7 coordinates of , so this is output.

Q9  スキャナ位置計算処理 スキャナ位置計算処理の詳細内容を第11図に示す。同
図において、次回の工、ン座標計算手段91は、スキャ
ナの現在の座標と前回の座標データから次回のスキャナ
位置を計算する機能を有し、その手順を第12図を用い
て説明する。
Q9 Scanner position calculation process The details of the scanner position calculation process are shown in FIG. In the figure, the next coordinate calculation means 91 has a function of calculating the next scanner position from the current coordinates of the scanner and the previous coordinate data, and the procedure will be explained with reference to FIG.

現在のスキャナ位置と線図形の中心線位置をPl (P
z1.PSll)とC1(Cz1. Cび1)、前回の
スキャナ位置と線図形の中心線位置をP。
Pl (P
z1. PSll) and C1 (Cz1.Cbi1), the previous scanner position and the center line position of the line figure are P.

(Pz、Pya)とCo (Cz、C%)とすると、次
回のスキャナ位置P2は、C1とGoを結ぶ直線上で、
しかもPzとCoの2等分点がC1となる22点(Pz
2. Pび2)として工、ン座標計算手段91により算
出する。この算出した22点の位置データをX−Y制御
インタフェース10に出力し、再び中心線検出α理を行
い22点の中心線C2を求める。
(Pz, Pya) and Co (Cz, C%), the next scanner position P2 is on the straight line connecting C1 and Go,
Moreover, there are 22 points where the bisecting point of Pz and Co is C1 (Pz
2. P and 2) are calculated by the coordinate calculation means 91. The calculated 22-point position data is output to the X-Y control interface 10, and the center line detection α process is performed again to obtain the 22-point center line C2.

次の23点は、C2,C1を使って算出する。The next 23 points are calculated using C2 and C1.

このようにCz、Cンレジスタ86に格納しである現在
と前回の線図形の中心線位置を使って次回のスキャナ位
置を決定することによって、線図形を追跡し、レジスタ
86には新しいデータが現在位置データとして凹き込ま
れる。レジスタ86の内容は順次読み出され入出力イン
タフェース12を介してデータ入出力部4に伝送されC
ADデータとして出力される。
In this way, the line figure is tracked by determining the next scanner position using the current and previous center line positions of the line figure stored in the Cz and C registers 86, and the new data is stored in the register 86. It is embedded as position data. The contents of the register 86 are sequentially read out and transmitted to the data input/output unit 4 via the input/output interface 12.
It is output as AD data.

線図形の追跡を上述のように行うとき、最初の開始点に
おいて過去の位置データが存在しないので直交座標計算
手段92によりスキャナの移動方向を決定する。
When tracing a line figure as described above, since there is no past position data at the initial starting point, the direction of movement of the scanner is determined by the orthogonal coordinate calculation means 92.

すなわら、開始点スキャナ位置Doから、追跡を始める
場合、第13図に示すように線図形の中心線位置Co点
から、ン軸正方向(Eo点)、負方向(Fo点)にDY
だけ、または工軸方向(G。
In other words, when starting tracking from the starting point scanner position Do, as shown in FIG.
only, or in the direction of the machine axis (G.

点)にDXの順にスキャナ位置が移動するよう直交座標
計算手段92によって計算し、マルチプレクサ95で選
択することによって、スキャナの移動を行う。また、こ
の移動は、線図形を検出した時点で残りの移動は中止し
、検出した線図形の中心線を純出し、前述した線図形追
跡を開始する。
The orthogonal coordinate calculation means 92 calculates that the scanner position will move to the point DX in the order of DX, and the multiplexer 95 selects the result to move the scanner. Further, the remaining movement is stopped when a line figure is detected, the center line of the detected line figure is extracted, and the line figure tracking described above is started.

線図形追跡中に線図形を見失ったときには次のような処
理を行う。
When a line figure is lost during line figure tracing, the following processing is performed.

すなわち、第14図のように、1点、■点と線図形を追
跡し、次の位置■にて、線図形検出手段96によって線
図形が検出されないときは、■と■の中点IV点へ移動
するよう中間点計算手段93によって座標を算出する。
That is, as shown in FIG. 14, if the line figure is traced one point and then point ■, and the line figure is not detected by the line figure detecting means 96 at the next position ■, the midpoint between ■ and ■ is the point IV. The intermediate point calculating means 93 calculates coordinates so as to move to .

この場合も、マルチプレクサ94が中間点計算手段93
からのデータを選択することによってスキャナの移動を
行う。
In this case as well, the multiplexer 94
Perform scanner movement by selecting data from.

IV点で線図形を検出した場合は、刻みを元のDX、D
Yに戻し、処理を続ける。
If a line figure is detected at point IV, change the increments to the original DX, D.
Return to Y and continue processing.

また、IV点においても線図形が検出されない場合、現
在まで線図形が確認されている■点の工座標に刻みDX
を加算または減算した2点V、V1点に順次移動する。
In addition, if a line figure is not detected at point IV, mark the work coordinates of the ■ point where a line figure has been confirmed up to now, and
Move sequentially to the two points V and V1 that are added or subtracted.

このv、vr点の座標は、直交座標計算手段92によっ
て算出する。
The coordinates of the v and vr points are calculated by the orthogonal coordinate calculation means 92.

線図形の追跡時に、第15図に)に示すように分岐点に
センサ]Bが位置し2値化信号が第15図(ハ)のよう
に検出されたとき、分岐点検出手段97がこれを検出す
る。すると開始点Doからの線図形追跡が、y軸方向圧
、負のどちらに進行したか、つまり、追跡がも回りか、
左回りかによって処理を分ける。開始点Doからの追跡
が右回りの場合は、分岐点では右側に位置する線図形を
追跡し、もう一方の左回りの時は、左側に位置する線図
形を追跡する。
When tracing a line figure, when the sensor B is located at a branch point as shown in FIG. 15) and a binary signal is detected as shown in FIG. Detect. Then, whether the line figure tracing from the starting point Do progressed in the y-axis direction pressure or in the negative direction, that is, whether the tracing progressed in the direction of the y-axis direction or in the negative direction.
The processing is divided depending on whether the rotation is counterclockwise. If the tracing from the starting point Do is clockwise, the line figure located on the right side is traced at the branch point, and when the trace is counterclockwise, the line figure located on the left side is traced.

この分岐点における線図形の選択は、処理線図形選択手
段98によって行う。
The selection of the line figure at this branch point is performed by the processing line figure selection means 98.

そして、分岐点を一端とする線図形は、検出した順に分
岐点の識別番号とその座標データを分岐点メモリ11に
格納し、処理が終了した線図形は、その分岐点データに
処理終了を識別するデータを追加する。分岐点検出手段
97によって分岐点が検出されなかったときは直ちに処
理終了判定手段に移行する。
Then, for a line figure having a branch point as one end, the identification number of the branch point and its coordinate data are stored in the branch point memory 11 in the order of detection, and for a line figure for which processing has been completed, the end of processing is identified in the branch point data. Add the data you want. When the branch point detection means 97 does not detect a branch point, the process immediately moves to the processing end determination means.

線図形が行き止まりとなる状態は次の2つがあげられる
There are two situations in which a line figure becomes a dead end:

その1)線図形が行き止まり状態にある。1) The line figure is at a dead end.

その2)分岐点に達したときに分岐点を一端とする線図
形が全て処理が終了してい 2)の場合、処理終了判定手段99により判断し、最後
に分岐点メモリ11に格納した分岐点のデータを読み出
してセンサをその位置に移動させる。そして、その分岐
点から再び線図形追跡を開始する。
2) When the branch point is reached, all the line figures with the branch point as one end have been processed.In the case of 2), the processing end determination means 99 judges the branch point and finally stores the branch point in the branch point memory 11. Read the data and move the sensor to that position. Then, line figure tracing is started again from that branch point.

この開始方法は、線図形追跡開始点Doから、開始する
場合と同様に行う。また、この開始する分岐点の分岐点
データには、処理終了のデータを追加する。
This starting method is performed in the same way as when starting from the line figure tracing starting point Do. Furthermore, processing end data is added to the branch point data of this starting branch point.

←)追跡終了判定処理9Bについて 前記0〜Q9の線図形追跡処理は、分岐点メモリ11上
の全ての分岐点データが処理終了になっていて、かつ線
図形追跡開始点Doに処理が戻ってくるまで続けられ、
この判断は、処理終了判定手段99が行う。
←) Regarding the tracing end determination process 9B, the line figure tracing processes of 0 to Q9 are performed when all the branch point data in the branch point memory 11 have been processed and the process has returned to the line figure tracing starting point Do. It continues until the
This determination is made by the processing end determining means 99.

スキャナ位置計算手段9は上述のように作用するが以下
に線図形処理の1例を第16図を使用して説明する。
Although the scanner position calculation means 9 operates as described above, one example of line figure processing will be explained below using FIG. 16.

先ずスキャンによって開始点Doを検出し、右回りに処
理が進んだとして、以下1′@を追って処理を説明する
First, the starting point Do is detected by scanning, and assuming that the process proceeds clockwise, the process will be explained below by following 1'@.

■ 線図形aをへて分岐点△に到達。■ Pass through line diagram a and reach branch point △.

■ 処理が右回りより線図形すを選択する。■ Select "Clockwise rotation" for processing.

■ 分岐点Aに関する位置データを分岐点メモリ11に
格納。この時、線図形a、bに関しては、処理終了デー
タを追加する。
■ Store position data regarding branch point A in branch point memory 11. At this time, processing completion data is added to line figures a and b.

■ 分岐点Bに到達。そして右側の線図形Cを選択する
■ Reached turning point B. Then, select line figure C on the right side.

■ 分岐点Bに関する位置データを分岐点メモリ11に
格納。この時、線図形す、cには処理終了データ追加。
■ Store position data regarding branch point B in branch point memory 11. At this time, processing completed data is added to line figures S and C.

■ 分岐点Cに到達。右側の線図形dを選択。■ Reached turning point C. Select the line figure d on the right.

分岐点A、BI?il様に分岐点Cに関するデータを格
納。
Branching point A, BI? Store data related to branch point C for il.

■ 分岐点Aに到達。線図形dの処理終了データを分岐
点Aの分岐点データに追加。従って点Aに関しての線図
形は全て処理終了。
■ Reached turning point A. Add the processing completed data of line figure d to the branch point data of branch point A. Therefore, all line figures related to point A have been processed.

■ 最後にデータを格納した点Cより処理開始。■ Processing starts from point C where data was last stored.

未処理の線図形eを選択。Select unprocessed line figure e.

点A→点B→点C→点A→点Cと続いた■〜■の処理と
同様に、 ■ 点D→点Doと処理が進む。
In the same way as the processing of points 1 to 2, which continued from point A to point B to point C to point A to point C, the processing proceeds from point D to point Do.

[相] 点Do→点りと戻って、点D→点Eへ進む。[Phase] Go back to point Do → point D → point E.

■ 点E→点B、点E→点F。■ Point E → Point B, Point E → Point F.

@ 点Fへ到達する。@ Reach point F.

F点において、線図形検出を行うが、検出されず、いき
どまりと判断し、かつ、分岐点メモリ11上のデータは
、全て処理終了データを持っていて、開始点Doにも戻
ったので、線図形追跡を終了する。
Line figure detection was performed at point F, but it was not detected, and it was determined that the line figure had come to a dead end, and all the data in the branch point memory 11 had processing completed data, and the process returned to the starting point Do. End line figure tracing.

線図形をベクターデータに変換し、本システムに接続す
るCADシステムに出力を終了すると、今度は、X−Y
スキャナ/プロッタ1をX−Yプロッタとして使用し、
変換後の線図形データの確認を行う。まず、X−Yスキ
ャナのセンサ部1Bをペン1Aに変え、X−Yプロッタ
に切換える。
After converting the line drawing to vector data and outputting it to the CAD system connected to this system, the X-Y
Use scanner/plotter 1 as an X-Y plotter,
Check the line figure data after conversion. First, the sensor section 1B of the X-Y scanner is replaced with a pen 1A, and the sensor section 1B of the X-Y scanner is replaced with an X-Y plotter.

その後、CADシステムより線図形データをデータから
出力する。これによって、作業者は、線図形データの確
認ができる。
Thereafter, the CAD system outputs line figure data from the data. This allows the operator to confirm the line graphic data.

なお、上記説明において、線図形を検出するセンサに固
定したリニアセンサを用いたが、他の方法として、工、
ン方向だけの移動に加えてリニアセンサの中心を中心と
して、回転できるセンサを使用する方法、さらに、2次
元にセンサを並べたエリアセンサを使用する方法等を用
い同様に実現できることは言うまでもない。
In the above explanation, a linear sensor fixed to the sensor for detecting line figures was used, but other methods such as engineering,
Needless to say, the same method can be achieved using a method that uses a sensor that can rotate around the center of a linear sensor in addition to movement only in the direction of rotation, or a method that uses an area sensor that has sensors arranged two-dimensionally.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、上述したようにアパレル図等の線図形
の読取りに対して小音量のメモリと簡単な構成でリアル
タイム処理が可能となり、スキャナとプロッタを1体化
したX−Yスキャナ/プロッタにより操作性、作業効率
が向上し、省力化を実現可能とした図面読取装置を安値
に提供することができる。
According to the present invention, as described above, it is possible to perform real-time processing for reading line figures such as apparel drawings with a small memory and a simple configuration, and an X-Y scanner/plotter that integrates a scanner and a plotter. As a result, operability and work efficiency are improved, and a drawing reading device that can save labor can be provided at a low price.

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

第1図は、本発明の基本構成図、 第2図は、X−Yスキャナ/プロッタ1の概念図、 第3図は、X−Yスキャナとした場合のリニアセンサの
概念図、 第4図は、処理部2の詳細な構成図、 第5図は、処理部2の大別した処理の流れを示す図、 第6図は、開始点検出処理におけるスキャン動作と、本
システム絶対座標系を示す図、第7図は、開始点検出手
段7の詳細な構成図、第8図は、ン方向移動刻み幅DY
算出のための線図形モデル図、 第9図は、中心線検出手段8の詳細な構成図、第10図
は、2値化データを示す図、 第11図は、スキャナ位置計算手段9の構成図、第12
図は、線図形追跡の基本手順を示す図、第13図は、開
始点Doからの追跡手順を示す図、第14図は、線図形
追跡がはずれた時の処理を示す図、 第15図は、分岐点時の2値化データを示す図、第16
図は、線図形処理説明のための線図形モデル図、 第17図は、従来の図面読取装置の基本構成図、第18
図は、従来の図面読取装置35の認識部37の購成図で
ある。 1・・・X−Yスキャナ/ブロック 1A・・・ペン     1B・・・センサ2・・・処
理部     3・・・X−Y制御部4・・・データ入
出力部 5・・・2値化データ入力部6・・・メモリ 
    7・・・開始点検出手段8・・・中心線検出手
段 9・・・スキャナ位置計算手段 10・・・X−Y制御インタフェース 11・・・分岐点メモリ 12・・・入出力インタフェース 代理人 弁理士 則 近 憲 化 同  三俣弘文 第  1 図 第  3 図 第  2 図 第  4 図 、63ブ 第5図 第  7 図 第  8 図 第1O図 第9図 第11図 第12図 ム− 第13図 第14図 第15図 第16図
FIG. 1 is a basic configuration diagram of the present invention. FIG. 2 is a conceptual diagram of an X-Y scanner/plotter 1. FIG. 3 is a conceptual diagram of a linear sensor when used as an X-Y scanner. is a detailed configuration diagram of the processing section 2, FIG. 5 is a diagram showing the flow of the roughly divided processing of the processing section 2, and FIG. 6 is a diagram showing the scan operation in the start point detection process and the absolute coordinate system of this system. 7 is a detailed configuration diagram of the start point detection means 7, and FIG. 8 is a detailed diagram of the start point detection means 7, and FIG.
A line diagram model diagram for calculation; FIG. 9 is a detailed configuration diagram of the center line detection means 8; FIG. 10 is a diagram showing binarized data; FIG. 11 is a configuration of the scanner position calculation means 9. Figure, 12th
13 is a diagram showing the tracing procedure from the starting point Do. FIG. 14 is a diagram showing the process when line shape tracking is lost. FIG. 15 is a diagram showing binarized data at a branch point, No. 16
The figures are line figure model diagrams for explaining line figure processing, Figure 17 is a basic configuration diagram of a conventional drawing reading device, and Figure 18 is
The figure is a diagram of a recognition unit 37 of a conventional drawing reading device 35. 1... X-Y scanner/block 1A... Pen 1B... Sensor 2... Processing section 3... X-Y control section 4... Data input/output section 5... Binarization Data input section 6...memory
7... Starting point detection means 8... Center line detection means 9... Scanner position calculation means 10... X-Y control interface 11... Branch point memory 12... Input/output interface agent Patent attorney Hirofumi Mitsumata Figure 1 Figure 3 Figure 2 Figure 4, Figure 5 Figure 7 Figure 8 Figure 1O Figure 9 Figure 11 Figure 12 Figure 13 Figure 14 Figure 15 Figure 16

Claims (2)

【特許請求の範囲】[Claims] (1)アパレル図等の線図形を読み取る図形読取装置に
おいて、線図形を2値データとして検出するセンサを備
えX−Y制御指令により前記センサが線図形を追跡する
X−Yスキャナと、前記X−Yスキャナのセンサの位置
を制御するX−Y制御指令を出力するX−Y制御部と、
前記X−Yスキャナで検出した2値データを基に前記セ
ンサの位置が線図形を追跡するように前記X−Y制御部
に指令すると共に線図形に対応したCADデータに変換
する処理部と、前記CADデータを外部に出力するデー
タ出力部を備え、線図形を追跡しながらCADデータに
変換することを特徴とする図面読取装置。
(1) In a figure reading device for reading line figures such as apparel drawings, an X-Y scanner includes a sensor that detects line figures as binary data, and the sensor tracks line figures according to an X-Y control command; - an X-Y control unit that outputs an X-Y control command to control the position of the sensor of the Y scanner;
a processing unit that instructs the X-Y control unit to cause the position of the sensor to track the line figure based on the binary data detected by the X-Y scanner, and converts it into CAD data corresponding to the line figure; A drawing reading device comprising a data output unit that outputs the CAD data to the outside, and converts the CAD data into CAD data while tracing a line figure.
(2)アパレル図等の線図形を読み取る図面読取装置に
おいて、線図形を2値データとして検出するセンサおよ
び線図形を画くペンのいずれかを選択してX−Y制御指
令により線図形を追跡するスキャナ機能と線図形を画く
プロッタ機能を備えたX−Yスキャナ/プロッタと、前
記X−Yスキャナ/プロッタのセンサまたはペンの位置
を制御する前記X−Y制御指令を出力するX−Y制御部
と、前記X−Yスキャナ/プロッタで検出した2値デー
タを基に前記センサの位置が線図形を追跡するように前
記X−Y制御部に指令すると共に線図形に対応したCA
Dデータに変換する処理部と、前記CADデータを外部
に出力し、また、外部から入力されるCADデータを前
記処理部を介し前記X−Y制御部に伝送するデータ入出
力部を備え、線図形を追跡しながらCADデータに変換
しまた、外部から入力されたCADデータにより線図形
を画くことを特徴とする図面読取装置。
(2) In a drawing reading device that reads line figures such as apparel drawings, select either a sensor that detects line figures as binary data or a pen that draws line figures, and track the line figures using X-Y control commands. An X-Y scanner/plotter having a scanner function and a plotter function for drawing line figures, and an X-Y control unit that outputs the X-Y control command to control the position of the sensor or pen of the X-Y scanner/plotter. Based on the binary data detected by the X-Y scanner/plotter, the X-Y controller is instructed to cause the sensor position to track the line pattern, and the CA corresponding to the line pattern is instructed.
A data input/output section that outputs the CAD data to the outside and transmits CAD data input from the outside to the XY control section via the processing section, A drawing reading device characterized by converting figures into CAD data while tracking them, and drawing line figures using CAD data input from the outside.
JP61187739A 1986-08-12 1986-08-12 Drawing reader Pending JPS6344279A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61187739A JPS6344279A (en) 1986-08-12 1986-08-12 Drawing reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61187739A JPS6344279A (en) 1986-08-12 1986-08-12 Drawing reader

Publications (1)

Publication Number Publication Date
JPS6344279A true JPS6344279A (en) 1988-02-25

Family

ID=16211346

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61187739A Pending JPS6344279A (en) 1986-08-12 1986-08-12 Drawing reader

Country Status (1)

Country Link
JP (1) JPS6344279A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7690800B2 (en) 2004-10-08 2010-04-06 Murakami Corporation Mirror angle controller
US8414136B2 (en) 2010-02-08 2013-04-09 Kabushiki Kaisha Tokai-Rika-Denki-Seisakusho Vehicle mirror apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7690800B2 (en) 2004-10-08 2010-04-06 Murakami Corporation Mirror angle controller
US8414136B2 (en) 2010-02-08 2013-04-09 Kabushiki Kaisha Tokai-Rika-Denki-Seisakusho Vehicle mirror apparatus

Similar Documents

Publication Publication Date Title
US5524161A (en) Fingerprint image processing system capable of simply processing minutiae
US3391392A (en) Method and apparatus for pattern data processing
JP3574170B2 (en) Distributed image processing device
KR880000251B1 (en) Pattern carrying out method
JPH06161533A (en) Control system for three-dimensional measuring device
EP0427251B1 (en) Method and device for graphics processing
JPS6344279A (en) Drawing reader
US5471536A (en) Figure digitizing system
JPS6249574A (en) Graphic input system
US5416894A (en) Method for determining a candidate of a branched direction of a linear image
JP2701307B2 (en) Method for generating a rough tool path for area machining
JPH04112378A (en) Tracking start point input system
US5278922A (en) Method for re-tracing the end point of an image
JPS62264372A (en) Register system for drawing information
JP2941322B2 (en) Drawing processing equipment
JP2868399B2 (en) How to enter position data
JPH0451870B2 (en)
JPH08339455A (en) Device and method for graphic processing
JPS63113620A (en) Sense line scanning system for drawing input device
JPH08272451A (en) Calibration method in robot with visual sensor
JP3566363B2 (en) Image processing apparatus and method
JPH02245984A (en) Straight line approximation system for linear graphic input device
JPH01239683A (en) Method for describing line segment
JPH0520404A (en) Three-dimensional graphic processing system
JPS5855548B2 (en) I'm not sure what to do.