JPS5935278A - Recognition system of line figure - Google Patents

Recognition system of line figure

Info

Publication number
JPS5935278A
JPS5935278A JP57144672A JP14467282A JPS5935278A JP S5935278 A JPS5935278 A JP S5935278A JP 57144672 A JP57144672 A JP 57144672A JP 14467282 A JP14467282 A JP 14467282A JP S5935278 A JPS5935278 A JP S5935278A
Authority
JP
Japan
Prior art keywords
line
grid
point
points
coordinate
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.)
Granted
Application number
JP57144672A
Other languages
Japanese (ja)
Other versions
JPH0352107B2 (en
Inventor
Shigeru Shimada
茂 嶋田
Shigeru Kakumoto
角本 繁
Teruhiro Watazumi
綿住 輝博
Osamu Abe
修 阿部
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.)
Hitachi Ltd
Via Mechanics Ltd
Original Assignee
Hitachi Ltd
Hitachi Seiko 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 Hitachi Ltd, Hitachi Seiko Ltd filed Critical Hitachi Ltd
Priority to JP57144672A priority Critical patent/JPS5935278A/en
Publication of JPS5935278A publication Critical patent/JPS5935278A/en
Publication of JPH0352107B2 publication Critical patent/JPH0352107B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/77Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
    • G06V10/772Determining representative reference patterns, e.g. averaging or distorting patterns; Generating dictionaries

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To speed up correction processing by correcting coordinate value after line recognition in a pattern recognizing device. CONSTITUTION:Line data read from a drawing is recognized without coordinate conversion to recognize feature points constituting the line. The coordinates of the feature points are converted into coordinate values X' and Y' on the drawing by using the coordinates of Pox and Poy, Pix and Piy, and P2x and P2y of the reference points P0, P1 and P2 on the drawing. Then, the converted coordinate values are corrected so that the coordinate values after the conversion have constant quantizing values and the line expressed by the coordinate values after the conversion has a previously specified direction. Therefore, the rotation position shift correction of a large-sized drawing, grid-formation coordinate correcting processing with specified precision, and line direction coordinate correction processing are carried out at a high speed.

Description

【発明の詳細な説明】 本発明は、線が図面用紙に印刷された格子上に、しかも
特定方向(たとえば水平・垂直・±45度方向)だけを
々すように書かれている図面を高速にしかも精度よく認
識するための、線図形認識方式従来、印刷された格子上
に書かれ、特定の方向(水平・垂直・±45度方向)だ
けが許容された線図形を認識する実験システムの報告が
なされているが、(電子通信学会、パターン認識と学習
研究会資料 PP97〜104  PPL−80−53
)実用上の問題の1つに、図面用紙の装置基準座標に対
する回転位置ずれの補正がある。発表されている報告で
は得られた映像データの各絵素の1つずつに対し位置ず
れの補正処理(座標変換)を加えた後の線データに基づ
き線の認識を行なう方式をとっている。ところが大画面
を扱う場合に絵素単位の補正処理では時間がかかりすぎ
る点が問題となる。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides high-speed processing for drawings in which lines are drawn on a grid printed on drawing paper in only specific directions (for example, horizontal, vertical, ±45 degree directions). Line figure recognition method for accurate recognition Conventional experimental systems that recognize line figures drawn on printed grids and allowed only in specific directions (horizontal, vertical, ±45 degree directions) Although it has been reported (IEICE, Pattern Recognition and Learning Study Group Materials PP97-104 PPL-80-53
) One of the practical problems is the correction of the rotational positional deviation of the drawing paper with respect to the device reference coordinates. Published reports adopt a method in which lines are recognized based on line data after a positional shift correction process (coordinate transformation) is applied to each picture element of the obtained video data. However, when dealing with large screens, the problem is that correction processing for each pixel takes too much time.

本発明の目的は以上述べた問題を解決すべく、少ない絵
素に対してのみ補正処理をすればよい線図形認識方式を
提供することにある。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, it is an object of the present invention to provide a line figure recognition method that requires correction processing only for a small number of picture elements.

このような目的を達成するため、図面から読取られた線
データを、座標変換せずに、認識して、線を構成する特
徴点の座標を得、該特徴点座標に対して、図面上の基準
点(原点、X軸上の基準点、X軸上の基準点)の座標を
使って、図面上の座標値に座標変換する処理を加える。
In order to achieve this purpose, the line data read from the drawing is recognized without coordinate conversion to obtain the coordinates of the feature points that make up the line, and the coordinates of the feature points on the drawing are Using the coordinates of the reference point (origin, reference point on the X-axis, reference point on the X-axis), add processing to convert the coordinates to coordinate values on the drawing.

その後変換後の座標値が一定の量子的な値(図面上の格
子点に対するもの)を持つように、かつ、変換後の座標
値で表わされる線があらかじめ指定された方向を持つよ
うに座標値を補正する処理を行なうようにした。
After that, the coordinate values are adjusted so that the coordinate values after the transformation have a certain quantum value (relative to the grid points on the drawing), and so that the line represented by the coordinate values after the transformation has a prespecified direction. A process to correct this is now performed.

第1図は本発明による線図形認識方式を実現する認識装
置の一実施例を示すもので、ドラム型の線図形認識装置
の例である。第1図において、認識の対象となる図面1
はドラムに密着して巻きつけられており、ドラム2はY
方向モーター3よシ矢印の方向へ回転される。この回転
によるドラム2の位置の変位は、Y方向エンコーダ4に
よって検出され、そのパルス信号はY方向アップダウン
カウンタ5に送られる。画像入力ヘッド6は第2図のよ
うにレンズ7、照明用ランプ8、光センサ9、ポールナ
ツト10よシ構成され、第1図のX方向モータ11に直
結されたボールネジ13によって左右に移動する。カー
ソル12は図面上の任意の位置を指定するために画像入
力ヘッド6に固定され連動する。また画像入力ヘッド6
は、X方向位置の変位を検知するために、リニアスケー
ル14を備え、画像入力ヘッド6に直結したパルス発生
器15からヘッド位置が所定量変化するごとにパルスが
X方向アップダウンカウンタ16に送られる。第1図に
おけるX方向モータ11およびY方向モータ3は、制御
回路17によって制御されるX方向モータ駆動回路18
およびY方向モータ駆動回路19によって駆動される。
FIG. 1 shows an embodiment of a recognition device that implements the line figure recognition method according to the present invention, and is an example of a drum-type line figure recognition device. In Figure 1, drawing 1 to be recognized
is tightly wound around the drum, and drum 2 is
Direction Motor 3 rotates in the direction of the arrow. The displacement of the position of the drum 2 due to this rotation is detected by the Y-direction encoder 4, and its pulse signal is sent to the Y-direction up/down counter 5. The image input head 6 is composed of a lens 7, an illumination lamp 8, an optical sensor 9, and a pole nut 10 as shown in FIG. 2, and is moved left and right by a ball screw 13 directly connected to the X-direction motor 11 shown in FIG. A cursor 12 is fixed to and interlocks with the image input head 6 in order to designate any position on the drawing. Also, the image input head 6
is equipped with a linear scale 14 in order to detect displacement in the position in the X direction, and a pulse generator 15 directly connected to the image input head 6 sends pulses to an up/down counter 16 in the X direction every time the head position changes by a predetermined amount. It will be done. The X-direction motor 11 and the Y-direction motor 3 in FIG.
and a Y-direction motor drive circuit 19.

制御回路17の制御命令および状態は、コマンドステー
タスレジスタ20によって反映される。コマンドステー
タスレジスタ20、Y方向アップダウンカウンタ5、お
よびX方向アップダウンカウンタ16は、セレクタ22
によって選択され、データバス23に接続される。マイ
クロプロセッサ24は、データバス23を介してプログ
ラムメモリ25、データメモリ26、セレクタ22、補
正データメモリ27、画像メモリ28をアクセス可能と
する。
The control command and status of control circuit 17 are reflected by command status register 20. The command status register 20, the Y direction up/down counter 5, and the X direction up/down counter 16 are connected to the selector 22.
and is connected to the data bus 23. The microprocessor 24 can access a program memory 25 , a data memory 26 , a selector 22 , a correction data memory 27 , and an image memory 28 via a data bus 23 .

マイクロプロセッサ24は、プログラムメモリ25に記
憶されている命令を解読して実行する。
Microprocessor 24 decodes and executes instructions stored in program memory 25.

一方モータ制御キーボード21は、オペレータによって
カーソル12をドラム2上の任意の位置に移動させるよ
うな制御を与えるため、制御回路17に接続され、X方
向モータ駆動回路18およびY方向モータ駆動回路19
をオフライン的に制御する。そして同時に、そのときの
カーソルの位置座標値を、X方向アップダウンカウンタ
16の値および、Y方向アップダウンカウンタ5の値か
ら読み出し、その値を補正データ記憶メモリ27に転送
するだめのコマンドを、コマンドステータスレジスタ2
0に与える。
On the other hand, the motor control keyboard 21 is connected to the control circuit 17 to give the operator control to move the cursor 12 to any position on the drum 2, and includes an X-direction motor drive circuit 18 and a Y-direction motor drive circuit 19.
control offline. At the same time, a command is issued to read the current cursor position coordinate values from the values of the X-direction up-down counter 16 and the Y-direction up-down counter 5, and to transfer the values to the correction data storage memory 27. Command status register 2
Give to 0.

さて人間の手で図面1をドラム2に巻きつける場合を考
えると、回転位置ずれdが発生する。回転位置ずれdは
図面の大きさに比例して大きくなシ、たとえばAO版長
手方向にドラム基準軸に対する傾きθが1°存在すると
仮定すると、d=21閣程度になる。このような図面装
着時に発生する回転位置ずれの外、図面自身の伸縮によ
る歪が存在する。そこで図面用紙としてマイラーシート
を使用することにすれば、局所的な図面の伸縮は少なく
かつ図面をドラムに密着して巻きつけるとすると、図面
に精度よく印刷された格子座標とドラム基準座標とのず
れは、ドラム上の図面のどの位置で測定してもほとんど
変らないという特徴があるので、一様な処理によって補
正可能である。
Now, if we consider the case where the drawing 1 is wound around the drum 2 by hand, a rotational positional deviation d occurs. The rotational positional deviation d is large in proportion to the size of the drawing; for example, assuming that there is an inclination θ of 1° with respect to the drum reference axis in the longitudinal direction of the AO plate, d=21 degrees. In addition to the rotational positional deviation that occurs when the drawing is mounted, there is also distortion due to expansion and contraction of the drawing itself. Therefore, if you decide to use a Mylar sheet as the drawing paper, there will be little local expansion and contraction of the drawing, and if you wrap the drawing tightly around the drum, the grid coordinates printed on the drawing with high precision and the drum reference coordinates will be Since the deviation has the characteristic that it hardly changes no matter where on the drum it is measured in the drawing, it can be corrected by uniform processing.

本発明による座標補正処理の流れを第3図に示す。最初
にオペレータは第1図におけるカーソル12の中心を、
図面10基準点PG、PI、Pl(第4図)の位置にモ
ータ制御キーボード21を用いて移動させ、各点の座標
位置をX方向アップダウンカウンタ16とY方向7ツプ
ダウンカウンタ5から求め、補正データ記憶メモリ27
に記憶する。次にオペレータは3つの基準点間の距離L
1=POP1 、L2=POP2を図面から読み取シそ
のデータを、モータ制御キーボード21から入力し、補
正データ記憶メモリ27に転送する。この状態から基準
点で囲まれる領域(第4図におけるPOPIP3P2P
O)を小画面(たとえば256×256絵素に分割され
た画面)に分割し、分割面面内画像の取込み、分割画面
内の線認識、分割画面の接続といった3つの処理を全画
面の入力が完了するまで繰シ返す。この大画面から小画
面単位に分割して任意方向への線認識を行なう方式は特
願昭53−59933.実願昭53−62601に詳細
に説明されている。以上大画面内の線経路の認識がすべ
て完了した後特徴点についての認識座標の回転位置ずれ
補正処理、グリッド化座標補正処理、方向化座標補正処
理を行なう。以下この3つの処理について詳細に説明す
る。
FIG. 3 shows the flow of coordinate correction processing according to the present invention. First, the operator points the center of the cursor 12 in FIG.
Using the motor control keyboard 21, move to the positions of the reference points PG, PI, and PI (FIG. 4) in Drawing 10, and calculate the coordinate position of each point from the up/down counter 16 in the X direction and the 7 up/down counter 5 in the Y direction. Correction data storage memory 27
to be memorized. Next, the operator calculates the distance L between the three reference points.
1=POP1 and L2=POP2 are read from the drawing, the data is input from the motor control keyboard 21, and transferred to the correction data storage memory 27. From this state, the area surrounded by the reference point (POPIP3P2P in Figure 4)
O) is divided into small screens (for example, a screen divided into 256 x 256 pixels), and the three processes of capturing the image within the divided screen, line recognition within the divided screen, and connecting the divided screens are performed on the entire screen. Repeat until completed. This method of dividing the large screen into small screen units and recognizing lines in arbitrary directions is described in Japanese Patent Application No. 53-59933. It is explained in detail in Japanese Utility Model Application No. 53-62601. After the recognition of all the line paths in the large screen is completed, the rotational positional deviation correction process, the gridded coordinate correction process, and the oriented coordinate correction process of the recognized coordinates for the feature points are performed. These three processes will be explained in detail below.

回転位置ずれ補正処理 最初に認識座標の回転位置ずれ補正処理について説明す
る。
Rotational position deviation correction processing First, the rotational position deviation correction processing of recognized coordinates will be explained.

第4図は第1図のドラム1を回転方向に図面を展開した
時のドラム基準座標系(X、Y)と、図面座標系(X’
 、Y’ )との関係を示したものである。第4図にお
いて図面上の基準点をPO9pu、pzとし、3点間の
距離POP1をLl、POP2をL2とする。座標変換
処理の目的は、第4図において図面内の点Pのドラム基
準座標値(x、y)を図面座標値(X/ 、y/ )に
変換することにある。第1図における補正データ記憶メ
モリ27内の値が poの座標値 (POX、 Poy) Plの座標値 (Plx、 Piy) Plの座標値 (P2x、 P2F) であったとし、2点間の座標値の差を次のようにX 1
= PIX−POX  y 1 = Ply−POyX
2:p2x−POX  Y2=P2F−POyとおきか
えると、次式によって認識座標の回転位(9) 置ずれ補正処理を行なう。
Figure 4 shows the drum reference coordinate system (X, Y) and the drawing coordinate system (X'
, Y'). In FIG. 4, the reference points on the drawing are PO9pu and pz, the distance between the three points POP1 is Ll, and the distance POP2 is L2. The purpose of the coordinate conversion process is to convert the drum reference coordinate values (x, y) of a point P in the drawing in FIG. 4 into drawing coordinate values (X/, y/). Assuming that the values in the correction data storage memory 27 in FIG. The difference between the values is expressed as follows:
= PIX-POXy1 = Ply-POyX
2: p2x-POX Y2=P2F-POy, then the rotational position of the recognized coordinates (9) is replaced by the following equation. Misalignment correction processing is performed.

グリッド化座標補正処理 回転位置ずれ座標補正によって得られた座標値には、丸
めの誤差、線幅による誤差が含まれており、線が格子以
外の位置をとるように認識されている可能性がある。グ
リッド化座標補正処理では格子の交点をグリッドと呼び
、座標値を最も近いグリッド位置に量子化する処理を行
なう。すなわち第5図において間隔gのグリッド位置を
(Ql。
Gridded coordinate correction processing Rotation position shift The coordinate values obtained by coordinate correction include rounding errors and errors due to line width, and there is a possibility that the lines are recognized to take positions other than the grid. be. In gridded coordinate correction processing, the intersections of grids are called grids, and processing is performed to quantize coordinate values to the nearest grid position. That is, in FIG. 5, the grid positions of the interval g are (Ql).

G2.G3.G4 )で示し、グリッドを中心とし、幅
g−i(iは不感帯幅で0くi<g)の正方形の領域を
次のように、 Z1ニゲリッドG1を中心とする領域で点DllD12
 D13 D14で囲まれる。
G2. G3. G4), the square area centered on the grid and the width g-i (i is the dead band width, 0 and i<g) is defined as follows:
D13 Surrounded by D14.

Z2.HグリッドG2を中心とする領域で点D21D2
2 D23 D24で囲まれる。
Z2. Point D21D2 in the area centered on H grid G2
2 D23 Surrounded by D24.

(10) z3ニゲリッドG3を中心とする領域で点1)atD3
2 ])sa D34で囲まれる。
(10) Point 1) atD3 in the area centered on z3 nigerid G3
2]) surrounded by sa D34.

Z4ニゲリッドG4を中心とする領域で点D411)4
2])43D44で囲まれる。
Point D411) 4 in the area centered on Z4 Nigerid G4
2]) Surrounded by 43D44.

と決め、この領域をグリッド化感帯と呼び、グリッド化
感帯内に属するすべての点をそれぞれグリッド位置へ移
行する処理を行なう。この処理はグリッド化感帝内の点
の座標値を(x、y)とし、グリッド位置移行後の座標
値を(y′、y′)とすると、 (但し〔〕はガウス記号) の演算によって行われる。つぎにグリッド感帯に属さな
い点で第5図において Za :Zl、Z2にはさまれる長方形領域で点D12
 D21 D24 D13 で囲まれる。
This area is called a grid sensitive zone, and processing is performed to move all points belonging to the grid sensitive zone to respective grid positions. This process is carried out by the calculation (where [ ] is a Gauss symbol), where the coordinate values of a point within the grid image are (x, y), and the coordinate values after the grid position shift are (y', y'). It will be done. Next, there is a point D12 in the rectangular area sandwiched between Za:Zl and Z2 in Fig. 5, which is a point that does not belong to the grid sensitive zone.
It is surrounded by D21 D24 D13.

Z7 二Z41 Zlにはさまれる長方形領域で点(1
1) D42 D311)at D4B で囲まれる。
Z7 2 Z41 Point (1) in the rectangular area sandwiched by Zl
1) Surrounded by D42 D311) at D4B.

に属する点は、X座標だけを、グリッド位置に移行させ
る処理を行なう。すなわちZaに属する点は第5図にお
いて、Gl 、G2を結ぶ線上に移行させる。Z7に属
する点は、第5図において、Q 4 、 Q Bを結ぶ
線上に移行させる。またグリッド感帯に属さない点で第
5図において、Za :Z21 Zaにはさまれる長方
形領域で点D24 D23 D32 D31 で囲まれ
る。
For points belonging to , only the X coordinate is moved to the grid position. That is, the points belonging to Za are moved to the line connecting Gl and G2 in FIG. The points belonging to Z7 are moved onto the line connecting Q 4 and Q B in FIG. 5. In addition, in FIG. 5, the point that does not belong to the grid sensitive zone is a rectangular area sandwiched between Za:Z21 and Za, and is surrounded by points D24, D23, D32, and D31.

Za :Zl、Z4にはさまれる長方形領域で点D14
 D13 D42 D41  で囲まれる。
Za: Point D14 in the rectangular area sandwiched between Zl and Z4
It is surrounded by D13 D42 D41.

に属する点は、X座標だけをグリッド位置へ移行きせる
処理を行なう。すなわち、26に属する点は第5図にお
いて、G2.Qai結ぶ線上へ移行させる。Zaに属す
る点は、第5図において、Gl−、G4を結ぶ線上へ移
行させる。
For points belonging to , processing is performed to move only the X coordinate to the grid position. That is, the points belonging to G2.26 in FIG. Move to the line connecting Qai. The points belonging to Za are moved onto the line connecting Gl- and G4 in FIG.

方向化座標補正処理 線の方向が特定の方向(水平・垂直・±45度方向)し
か許されない図面においては、単に座標がグリッド上に
存在するだけでなく、線がすべて(12) 特定の方向を持つ必要がある。グリッド化座標処理後の
線は、必ずしも特定の方向を持っていない。
Oriented Coordinate Correction Processing In drawings where the direction of the line is only allowed in a specific direction (horizontal, vertical, ±45 degree direction), the coordinates do not simply exist on the grid, but all the lines (12) are in a specific direction. It is necessary to have The lines after gridded coordinate processing do not necessarily have a specific direction.

方向化座標補正処理は、グリッド化感帯外の点の方向化
座標補正処理と、グリッド上の点の方向化座標補正処理
の2つの処理を段階的に行なう。処理の概略の流れは、
第9図に示すように、グリッド化感帯外の点の方向化座
標補正処理の対象となった座標の個数を数えるためのカ
ウンタをCFO、グリッド上の点の方向化座標補正処理
の対象となった座標の個数を数えるためのカウンタf、
CF10とすると、CFO=0、CFI O=Oとなる
まで個々の処理を繰返し、さらに2つの処理の相互の影
響がなくなるまで、すなわちCFO+CF10=0とな
るまで繰返す。これらの処理のプログラムは、第1図プ
ログラムメモリ25に記憶され、マイクロプロセッサ2
4によシ実行される。
In the oriented coordinate correction process, two processes are performed in stages: oriented coordinate correction process for points outside the grid sensitivity zone and oriented coordinate correction process for points on the grid. The general flow of processing is as follows:
As shown in FIG. 9, a counter for counting the number of coordinates that are subject to oriented coordinate correction processing for points outside the grid sensitivity zone is used as a counter for counting the number of coordinates that are subject to oriented coordinate correction processing for points on the grid. A counter f for counting the number of coordinates that have become
Assuming CF10, the individual processes are repeated until CFO=0 and CFI O=O, and are further repeated until there is no mutual influence between the two processes, that is, until CFO+CF10=0. Programs for these processes are stored in the program memory 25 in FIG.
4 is executed.

グリッド化感帯外の点の方向化座標補正処理について貌
明する。グリッド化座標補正処理によって、グリッド位
置に移行された点をよシ確実な位置にある点とみなして
、グリッドに乗らない点を(13) グリッド側へ引き込む処理を行なう。たとえば、第6図
、第7図において、2点で構成される直線に着目し、直
線の方向が指定の方向となす角度が一定値以下の線で、
一方の点がグリッド上又はグリッドをその方向へ結ぶ線
上に存在する点をA1グリッド上又はその方向のグリッ
ド上には存在しない点をBとすると、B点をグリッド上
の0点に移行させるような処理を行なう。
The orientation coordinate correction process for points outside the grid sensitivity zone will be explained. By the grid coordinate correction process, points that have been moved to the grid position are regarded as points that are at a more reliable position, and points that are not on the grid are brought into the grid (13). For example, in Figures 6 and 7, we focus on a straight line made up of two points, and if the angle between the direction of the straight line and the specified direction is less than a certain value,
If one point is on the grid or on a line connecting the grids in that direction, A1 is on the grid, or B is a point that is not on the grid in that direction, then point B is moved to point 0 on the grid. Perform processing.

第10図と第11図はグリッド化感帯外の点の方向化グ
リッド処理の詳細な流れを示す。また第12図は処理対
象とする線の登録テーブルの内容を示し、第1図26の
データメモリに記憶される。
FIGS. 10 and 11 show a detailed flow of the orientation grid processing for points outside the grid sensitive zone. Further, FIG. 12 shows the contents of a registration table of lines to be processed, which is stored in the data memory shown in FIG. 126.

第12図におけるLNOを線の登録番号、Nlを1本の
線の構成点数、Pl (i=1〜Nl)を点の座標を示
し、LlをLNO番目の線の座標位置を示す指標とする
。たとえば第12図LNO+2番目の線の点P32の位
置とLlが対応していることを示す。P(Ll)を線上
のL1番目の点、P (L1+1 )をL1+1番目の
点P(LX−1)をLl−1番目の点とする。2つの点
P(LL)と(14) P(L1+1)で構成される線が、指定された方向(水
平・垂直・±45度方向)のうちいずれかの方向を持つ
かどうかのチェックを行なう。もしいずれかの方向を持
つ場合は、処理をその次の点の位置に移す。線PCLL
) P(LL+1)が指定された方向を持たない場合は
、点P(Ll)が不感帯内に存在するかどうかのチェッ
クを行なう。点P(Ll)が不感帯内に存在しない場合
は、処理をその次の点の位置に移す。点P(LL+1)
の点がグリッド上へ移動可能な候補数をCN1、点P(
Ll−1)の点がグリッド上へ移動可能な候補数をCN
2とし最初に CN1=O、CN2=0 と初期設定する。また点P (Ll )がグリッド上へ
移動可能な方向のカウンタをCN3、移動可能な方向数
をMl、点P(L1+1)がグリッド上へ移動可能な方
向のカウンタをCN4、移動可能な方向数をM2、点P
(Ll−1)がグリッド上へ移動可能な方向のカウンタ
をCN5、移動可能な方向数をM3とする。まず、点P
(Ll)を移動可能な方向(15) のうち一方向に移動させる。点P(L1+1)がグリッ
ド上に存在するかどうかをチェックし、もし存在f ル
場合ハ、m P (Ll ) P (L1+ 1 ) 
ノ方向カ指定方向をなすかどうかをチェックする。指定
方向をなす場合は、この方向をグリッドへ移動可能な候
補とし、カウンタCNIを1だけ増加させる。
In Fig. 12, LNO is the registration number of the line, Nl is the number of constituent points of one line, Pl (i=1 to Nl) is the coordinate of the point, and Ll is the index showing the coordinate position of the LNO-th line. . For example, it shows that Ll corresponds to the position of point P32 on the LNO+2nd line in FIG. 12. Let P(Ll) be the L1-th point on the line, P (L1+1) be the L1+1-th point, and P(LX-1) be the Ll-1-th point. Checks whether the line composed of the two points P(LL) and (14) P(L1+1) has one of the specified directions (horizontal, vertical, ±45 degree direction). . If it has either direction, processing is moved to the next point. line PCLL
) If P(LL+1) does not have the specified direction, check whether the point P(Ll) is within the dead zone. If point P(Ll) does not exist within the dead zone, processing is moved to the next point. Point P (LL+1)
The number of candidates that the point can move onto the grid is CN1, and the point P(
The number of candidates that the point Ll-1) can move onto the grid is CN
2 and initialize CN1=O and CN2=0. Also, CN3 is the counter for the direction in which point P (Ll) can move onto the grid, Ml is the number of directions in which point P (L1+1) can be moved onto the grid, CN4 is the counter for the direction in which point P (L1+1) can be moved onto the grid, and CN4 is the number of directions in which point P (L1) can be moved onto the grid. M2, point P
Let CN5 be the counter for the direction in which (Ll-1) can move onto the grid, and M3 be the number of directions in which it can move. First, point P
(Ll) is moved in one of the movable directions (15). Check whether the point P(L1+1) exists on the grid, and if it exists, m P (Ll ) P (L1+ 1 )
Check whether the direction force is in the specified direction. If the specified direction is determined, this direction is set as a candidate that can be moved to the grid, and the counter CNI is incremented by 1.

指定方向とならない場合は、点P(L1+1)を移動可
能な方向のうち一方向に移動させ線P(Ll)P(L1
+1)の方向が指定方向をなすかどうかをチェックする
。指定方向をなす場合は、この方向をグリッドへ移行可
能な候補とし、カウンタCNIを1だけ増加させる。指
定方向とならない場合は点P(L1+1)の移動可能方
向数のカウンタCN4がM2以下の場合、点P (L1
+1 )を次の移動可能方向へ移動させCN4がM2以
上になるまで以上の処理を繰返す。つぎに点P(Ll−
1)について同様な処理を行なう。すなわち、点P(L
l−1)を移動可能な方向のうち一方向に移動させ、線
P(Ll)P(LX−13の方向が指定方向をなすかど
うかをチェックする。指定方向をなす場合は、この方向
を(16) グリッドへ移行可能な候補とし、カウンタCN2を1だ
け増加させる。指定方向とならない場合は点P(Ll−
1)の移動可能方向数のカウンタCN5がM3以下の場
合点P(Ll−1)を次の移動可能方向へ移動させ、C
N5がM3以上になるまで以上の処理を繰返す。以上3
点P(Ll)、P(L1+1)。
If it is not in the specified direction, move the point P(L1+1) in one of the movable directions and move the line P(Ll)P(L1
+1) Check whether the direction is the specified direction. If the specified direction is determined, this direction is set as a candidate that can be transferred to the grid, and the counter CNI is incremented by 1. If the direction is not the specified direction, if the counter CN4 for the number of directions in which the point P (L1 + 1) can move is less than or equal to M2, the point P (L1
+1) in the next movable direction and repeat the above process until CN4 becomes M2 or more. Next, point P(Ll−
Similar processing is performed for 1). That is, point P(L
l-1) in one of the movable directions, and check whether the direction of line P(Ll)P(LX-13) forms the specified direction.If it forms the specified direction, move this direction. (16) Set it as a candidate that can be moved to the grid, and increase the counter CN2 by 1. If it is not in the specified direction, point P(Ll-
If the counter CN5 for the number of movable directions in 1) is less than or equal to M3, move the point P (Ll-1) to the next movable direction, and
The above process is repeated until N5 becomes equal to or greater than M3. Above 3
Points P(Ll), P(L1+1).

P(Ll−4)で構成される線P(Ll)P(L1+1
)と線P (Ll−1) P (Ll )とが一意的に
決まる場合、即ちCNIとCN2がいずれも1の値のと
き、点P(Ll)を移行可能な候補となったグリッド上
へ移行する処理を行ない、CFOを1だけ増加させる。
The line P(Ll) P(L1+1) composed of P(Ll-4)
) and the line P (Ll-1) P (Ll ) are uniquely determined, that is, when CNI and CN2 both have a value of 1, move the point P (Ll) onto the grid that is a candidate for migration. Perform migration processing and increase CFO by 1.

一意的に決まらなかった場合はLlの値が構成点数Nに
なるまでLNOで指定された線上の他の点に移シ処理を
続行する。またLNOO値が登録されているすべての線
の終端の値に達するまで以上一連の処理を続行する。
If it is not uniquely determined, the process of moving to another point on the line specified by LNO is continued until the value of Ll reaches the number of constituent points N. Further, the above series of processing is continued until the LNOO value reaches the end value of all registered lines.

グリッド上の点の方向化座標補正処理について説明する
。処理の方針を、各線の2点で構成される部分的な線に
着目し、その線の方向が指定された方向を持つ線を優先
的に固定し、指定された方(17) 向板外の方向を持つ線を最も回転量が少ないと考えられ
る方向に回転させるものとする。第13図aはその回転
の方向を指定するため、あらかじめ用意するテーブルの
内容を示したものである。また第13図すは指定された
回転方向を実現するために点がどの方向のグリッド位置
をとるべきかを指定するためのテーブルの内容を示す。
The orientation coordinate correction process for points on the grid will be described. The processing policy focuses on partial lines consisting of two points on each line, preferentially fixes the line whose direction has the specified direction, and fixes the specified direction (17). The line with the direction is rotated in the direction that is considered to have the least amount of rotation. FIG. 13a shows the contents of a table prepared in advance for specifying the direction of rotation. Further, FIG. 13 shows the contents of a table for specifying the grid position in which direction a point should take in order to realize a specified rotation direction.

第13図aの■〜■の番号は、第13図すの■〜■の番
号に対応する。線の回転方向および、グリッド位置の移
行方向に関し次の様な場合に分かれる。
The numbers ``■'' to ``■'' in FIG. 13a correspond to the numbers ``■'' to ``■'' in FIG. 13. Regarding the direction of rotation of the line and the direction of transition of the grid position, there are the following cases.

1、領域])o ])sに属する線は線を8084の方
向に回転させ、領域1)oに属する点は■の方向のグリ
ッドへ移行させ、領域D8に属する点は■の方向のグリ
ッドへ移行させる。
1. Lines belonging to area ]) o ]) s rotate the line in the direction of 8084, points belonging to area 1) o move to the grid in the direction of ■, points belonging to area D8 move to the grid in the direction of ■ Move to.

2、領域DID9に属する線はll1if、 S I 
Ssの方向に回転させ、領域D1に属する点は■の方向
のグリッドへ移行させ、領域D9に属する点は■の方向
のグリッドへ移行させる。
2. The line belonging to the area DID9 is ll1if, S I
By rotating in the direction Ss, points belonging to the region D1 are moved to the grid in the direction of ■, and points belonging to the region D9 are moved to the grid in the direction of ■.

3、領域D2DIG  に属する線は線を8185の方
向に回転させ、領域D2に属する点は■の方向の(18
) グリッドへ移行させ、領域D10に属する点は■の方向
のグリッドへ移行させる。
3. The line belonging to the area D2DIG rotates the line in the direction of 8185, and the point belonging to the area D2 rotates the line in the direction of (18
) The points belonging to the area D10 are moved to the grid in the direction of ■.

4、領域1)al)1t  に属する線は線を8286
の方向に回転させ、領域D3に属する点は■の方向のグ
リッドへ移行させ、領域D11に属する点は■の方向の
グリッドへ移行させる。
4. Lines belonging to area 1) al) 1t are lines 8286
The points belonging to the region D3 are moved to the grid in the direction of ■, and the points belonging to the region D11 are moved to the grid in the direction of ■.

5、領域D4D12  に属する線は線を8286の方
向に回転させ、領域D4に属する点は■の方向のグリッ
ドへ移行させ、領域D12に属する点は■の方向のグリ
ッドへ移行させる。
5. The line belonging to the area D4D12 rotates the line in the direction 8286, the point belonging to the area D4 is moved to the grid in the direction of ■, and the point belonging to the area D12 is moved to the grid in the direction of ■.

6、領域])sl)taに属する線は線を53S7の方
向に回転させ、領域D5に属する点は■の方向のグリッ
ドへ移行させ、領域D13に属する点は■の方向のグリ
ッドへ移行させる。
6. Area]) sl) The line belonging to ta rotates the line in the direction of 53S7, the point belonging to area D5 moves to the grid in the direction of ■, and the point belonging to area D13 moves to the grid in the direction of ■. .

7、領域]) 6 D14  に属する線は線を838
7の方向に回転させ、領域D6に属する点は■の方向の
グリッドへ移行させ、領域D14に属する点は■の方向
のグリッドへ移行させる。
7, area]) 6 The line belonging to D14 is 838
7, the points belonging to the area D6 are moved to the grid in the direction of ■, and the points belonging to the area D14 are moved to the grid in the direction of ■.

8、領域D 7 DIS  に属する線は線を54SO
の方向に回転させ、領域D7に属する点は■の方向の(
19) グリッドへ移行させ、領域])tsに属する点は■の方
向のグリッドへ移行させる。
8. The line belonging to the area D 7 DIS is the line 54SO
Rotate in the direction of , and the points belonging to area D7 are rotated in the direction of (
19) Move to the grid, and move the points belonging to the area ])ts to the grid in the direction of ■.

一方、第14.15図にグリッド上の点の方向化座標補
正処理の詳細な流れを示す。CFIOを処理対象となっ
た箇所を示すカウンタとすると、最初にCFIOをクリ
アする。LNOを処理の対象とする線が登録されている
位置を示すカウンタとすると、LNO=LNO+1によ
シ指定された線の構成点数Nを得る。そして、Llを線
上の注目位置を示すカウンタとし、P(Ll)を線上の
L1番目の点、P (L1+11をL1+1番目の点、
P(Ll−1)をLl−1番目の点とする。
On the other hand, FIGS. 14 and 15 show a detailed flow of the orientation coordinate correction process for points on the grid. If CFIO is a counter indicating the location to be processed, CFIO is first cleared. If LNO is a counter indicating the position where the line to be processed is registered, then the number N of constituent points of the specified line is obtained by LNO=LNO+1. Then, let Ll be a counter indicating the position of interest on the line, P(Ll) be the L1th point on the line, P (L1+11 be the L1+1st point,
Let P(Ll-1) be the Ll-1th point.

最初に2点P(Ll)、P(L1+1)  で構成され
る線に注目する。2点P (Ll )とP(L1+1)
が両方ともにグリッド上に存在するかどうかをチェック
する。もし片方でもグリッド上に存在しない場合は、次
の処理位置に移行する。2点P(Ll)。
First, let's focus on a line composed of two points P(Ll) and P(L1+1). Two points P (Ll) and P (L1+1)
Check if both exist on the grid. If even one of them does not exist on the grid, move to the next processing position. 2 points P (Ll).

P (L1+1 )ともにグリッド上に存在する場合は
、線P(Ll) P(L1+1)が指定された方向を持
つかどうかのチェックを行なう。指定された方向を持(
20) つ場合は、処理の対象とはならないので、次の処理位置
に移行する。
If P(L1+1) both exist on the grid, it is checked whether the lines P(L1) and P(L1+1) have the specified direction. has the specified direction (
20) If there is one, it will not be processed and will move on to the next processing position.

線P(Ll)P(L1+1)が指定された方向を持たな
い場合は、線P(LL−1) P(Ll)および線P(
L1+1)P(L1+2)  の方向を調べる。いずれ
の線も指定方向を持つ場合は、点P (Ll )又は点
P(L1+1)を他のグリッド位置へ移行させない意味
の固定フラグをセットする。次に今セットしたフラグを
調べ、点P(Ll)、点P(L1+1)ともに固定フラ
グを持つ場合は処理対象とならないので、次の処理位置
に移行する。点P(Ll)だけが固定フラグを持つ場合
は第13図に示すような線の回転方向を調べ、点P(L
1+1)がとるべきグリッド位置の候補P’(L1+1
)を得る。今候補となったP’(L1+1’)が一意的
に決定できるかどうかを第16図に示すような一意性の
判定処理によって行ない一意的に決定できる場合は、点
P(L1+1)を点P’(L1+1)  位置に移行さ
せる。同時に処理対象とした位置を数えるカウンタCF
10を1だけ増加させる。点P (Ll+1 )だけが
固定フラグを持(21) つ場合は、第13図に示すような線の回転方向を調べ、
点P (Ll )がとるべきグリッド位置の候補P’(
LX)を得る。今候補となったP’(Ll)が一意的に
決定できるかどうかを第17図に示すような一意性の判
定処理によって行ない、一意的に決定できる場合は、点
P(Ll)をP’(Ll)位置に移行させる二同時に処
理対象とした位置を数えるカウンタCF1’Oeiだけ
増加させる。点P(Ll)、点P(L1+1)両方とも
固定フラグがつかない場合は、第13図に示すような線
の回転方向を調べ、点P (LL )と点P (L1+
1 )がとるべきグリッド位置の候補P’(Ll)、 
P’(L1+1)を得る。今候補となったP’(Ll)
およびP’(L1+1)がそれぞれ一意的に決定できる
かどうかを第17図に示すような一意性の判定処理によ
って行ない、両点ともに一意的に決定できる場合は点P
(Ll)をP’(Ll)位置に、点P (L1+1)を
P’(LL+1) 位置にそれぞれ移行させ、処理対象
とした位置を数えるカウンタCPIOを2だけ増加させ
る。一意的に決まらなかった場合はLlO値が構成点数
Nになるまで(22) LNOで指定された線上の他の点に移シ処理を続行する
。またLNOの値が登録されているすべての線の終端の
値に達するまで以上一連の処理を続行する。
If line P(Ll)P(L1+1) does not have a specified direction, line P(LL-1) P(Ll) and line P(
Check the direction of L1+1)P(L1+2). If any of the lines has a specified direction, a fixed flag is set that means that the point P (Ll) or the point P (L1+1) is not moved to another grid position. Next, the flags that have just been set are checked, and if both point P (Ll) and point P (L1+1) have fixed flags, they are not to be processed, and the process moves to the next processing position. If only point P(Ll) has a fixed flag, check the rotation direction of the line as shown in Figure 13, and select point P(Ll).
Candidate P'(L1+1) of the grid position to be taken by
). The uniqueness determination process shown in FIG. 16 is used to determine whether the current candidate P'(L1+1') can be uniquely determined. If it can be uniquely determined, the point P(L1+1) is '(L1+1) position. Counter CF that counts the positions to be processed at the same time
Increase 10 by 1. If only point P (Ll+1) has a fixed flag (21), check the rotation direction of the line as shown in Figure 13,
Candidate P'( of the grid position that point P (Ll) should take)
LX) is obtained. A uniqueness determination process as shown in FIG. 17 is performed to determine whether the current candidate P'(Ll) can be uniquely determined. If it can be uniquely determined, the point P(Ll) is changed to P' (Ll) The counter CF1'Oei for counting the number of positions to be processed simultaneously is increased. If the fixed flag is not attached to both point P (Ll) and point P (L1+1), check the rotation direction of the line as shown in Fig. 13 and set the point P (LL) and point P (L1+
1) Candidate grid position P'(Ll) that should be taken by
Obtain P'(L1+1). P'(Ll) is now a candidate
and P'(L1+1) can be determined uniquely by the uniqueness determination process as shown in FIG. 17, and if both points can be uniquely determined, the point P
(Ll) is moved to the P'(Ll) position, point P (L1+1) is moved to the P'(LL+1) position, and a counter CPIO that counts the positions to be processed is increased by 2. If it is not uniquely determined, the process of moving to other points on the line specified by LNO is continued until the LlO value reaches the number of constituent points N (22). Further, the above series of processing is continued until the LNO value reaches the end value of all registered lines.

第16図は第14図におけるP’ (L1+1 )  
の一意性の判定処理の詳細な処理の流れを示した図であ
る。一意性の判定を示すためのフラグをFLOKlとし
、F’LOKI=1のとき一意性あり、FLOK1=O
のときを一意性なしとする。最初FLOKI = 0と
し、線P’ (Ll +1 ) P (L 1+2 )
が指定した方向をなすかどうかを調べる。指定方向をな
す場合は一意性ありとしPLOKI=1とする。
Figure 16 shows P' (L1+1) in Figure 14.
FIG. 3 is a diagram showing a detailed processing flow of uniqueness determination processing. The flag to indicate the determination of uniqueness is FLOKl, and when F'LOKI=1, there is uniqueness, and FLOK1=O
There is no uniqueness when . Initially, FLOKI = 0, and the line P' (Ll +1) P (L 1+2)
Checks whether or not follows the specified direction. If it is in the specified direction, it is assumed that it is unique and PLOKI is set to 1.

指定方向をなさない場合は1つ先の点P(L1+3)を
求め、線P(L1+2) P(L1+3)  が指定方
向をなすかどうかを調べる。指定方向をなす場合は一意
性ありとし、F’LOKI = 1とする。指定方向を
なさない場合は、線P(L1+23 P(L1+3) 
 の方向を調べ、線が指定方向となる点の移行位置をP
’(L1+2)  とする。次に線P (L1+1) 
P’(L1+2)の方向を調べ、線が指定方向となる点
の移行位置(23) をP“(L1+1)とする。ここで先に求まった移行位
置P’ (Ll−1−1)  との同一性を調べ、同一
になる場合は一意性ありとし、FLOK1=1とする。
If they do not form the specified direction, find the next point P(L1+3) and check whether the lines P(L1+2) P(L1+3) form the specified direction. If it is in the specified direction, it is considered unique and F'LOKI = 1. If the specified direction is not formed, line P(L1+23 P(L1+3)
Check the direction of , and find the transition position of the point where the line is in the specified direction.
'(L1+2). Next, line P (L1+1)
Check the direction of P'(L1+2) and set the transition position (23) of the point where the line is in the specified direction as P''(L1+1).Here, the transition position P'(Ll-1-1) found earlier and If they are the same, it is determined that there is uniqueness and FLOK1=1.

ただし点P(LL+2)又はP (L1+3 )が存在
しない場合はその時点で、この処理を中断する。
However, if the point P(LL+2) or P(L1+3) does not exist, this process is interrupted at that point.

第17図は第15図におけるP’(Ll)の一意性の判
定処理の詳細な処理の流れを示した図である。
FIG. 17 is a diagram showing a detailed process flow of the uniqueness determination process of P'(Ll) in FIG. 15.

一意性の判定を示すためのフラグをFLOK2とし、F
LOK2=1のとき一意性あシ、FLOK2=0のとき
を一意性なしとする。最初FLOK2=0とし、線P’
(Lx ) P (r、1−1 )が指定した方向をな
すかどうかを調べる。指定方向をなす場合は一意性あり
とし、FLOK2= 1とする。指定方向をなさ々い場
合は、1つ前の点P(LL−2)を求め、線P (Ll
−1) P CLl−2)が指定方向をなすかどうかを
調べる。指定方向をなす場合は一意性ありとし、FLO
K2=1とする。指定方向をなさない場合は、線P (
Ll −1) P (Ll−2)の方向を調べ、線が指
定方向となる点の移行位置をP’(Ll−1)  とす
る。
The flag for indicating uniqueness determination is FLOK2, and F
When LOK2=1, there is uniqueness, and when FLOK2=0, there is no uniqueness. First, set FLOK2=0, and line P'
Check whether (Lx) P (r, 1-1) forms the specified direction. If it is in the specified direction, it is considered unique and FLOK2=1. If the specified direction is difficult to follow, find the previous point P (LL-2) and draw the line P (Ll
-1) Check whether PCLl-2) forms the specified direction. If it is in the specified direction, it is considered unique, and FLO
Let K2=1. If it does not form the specified direction, line P (
Ll -1) Check the direction of P (Ll-2), and set the transition position of the point where the line becomes the designated direction as P'(Ll-1).

次に線P (Ll ) P’ (LL−1)の方向を調
べ、線が指(24) 定方向となる点の移行位置をP“(Ll)とする。ここ
で先に求まった移行位置P’(Ll)との同一性を調べ
、同一となる場合は一意性ありとし、FLOK2=1と
する。ただし点P(Ll−1)又は点P(Ll−2)が
存在しない場合はその時点でこの処理を中断する。
Next, examine the direction of the line P (Ll) P' (LL-1), and set the transition position of the point where the line becomes the finger (24) constant direction as P" (Ll). Here, the transition position found earlier is Check the identity with P'(Ll), and if they are the same, it is assumed that there is uniqueness and FLOK2 = 1.However, if point P(Ll-1) or point P(Ll-2) does not exist, its Interrupt this process at this point.

以上述べたように本発明によれば、線認識後の座標値に
補正処理を加えることによυ、大型図面の回転位置ずれ
補正、指定精度のグリッド化座標補正処理、および線の
方向化座標補正処理を高速に行なうことができる。
As described above, according to the present invention, by adding correction processing to the coordinate values after line recognition, rotational position shift correction of large drawings, gridded coordinate correction processing with specified accuracy, and oriented coordinates of lines are performed. Correction processing can be performed at high speed.

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

第1図は本発明による線図形認識方式を実現する装置の
一実施例の構成図、第2図は第1図の一部の具体的構成
図、第3図は座標補正処理の全体の流れを示す流れ図、
第4図は図面座標系への位置ずれ回転補正の原理図、第
5図はグリッド化座標補正処理の原理を示す図、第6図
〜第8図は線の方向化座標補正処理の原理を示す図、第
9図は線の方向化座標補正処理の流れを示す図、第10
C25) 図、第11図は第9図における不感帯内点の方向化グリ
ッド処理の流れを示す図、第12図は線の登録の内容を
示す図、第13図は線の方向および移行すべきグリッド
の方向を示す図、第14〜17図はグリッド上の点の方
向化座標補正処理の流れを示す図。 1・・・図面、2・・・ドラム、6・・・画像入力ヘッ
ド、(26) J  p      −^ Cへ= ×       ペ 茅  q  皿 奮 lθ 図 囁 1? 図 1  12  1G ”f、 /4図 7Q     IJ     ” (乙し) 4 (b) ■ ■ ■ ■・※・■ ■ ■ ■ (7゛ジyhの衿行方同) ■ ぐ−を 訃 ! 第  16   図 ″fJ17図
Fig. 1 is a block diagram of an embodiment of a device realizing the line figure recognition method according to the present invention, Fig. 2 is a specific block diagram of a part of Fig. 1, and Fig. 3 is the overall flow of coordinate correction processing. A flowchart showing
Figure 4 is a diagram showing the principle of positional deviation rotation correction to the drawing coordinate system, Figure 5 is a diagram showing the principle of gridded coordinate correction processing, and Figures 6 to 8 are diagrams showing the principle of line orientation coordinate correction processing. FIG. 9 is a diagram showing the flow of line orientation coordinate correction processing, and FIG.
C25) Figure 11 is a diagram showing the flow of directional grid processing for points inside the dead zone in Figure 9, Figure 12 is a diagram showing the contents of line registration, and Figure 13 is a diagram showing the direction of the line and how it should be moved. FIGS. 14 to 17 are diagrams showing the direction of the grid, and diagrams showing the flow of oriented coordinate correction processing for points on the grid. 1...Drawing, 2...Drum, 6...Image input head, (26) J p -^ To C= Figure 1 12 1G "f, /4 Figure 7Q IJ" (Otsushi) 4 (b) ■ ■ ■ ■・※・■ ■ ■ ■ (The collar of 7゛jiyh is the same) ■ Gu-o! Figure 16" fJ17

Claims (1)

【特許請求の範囲】 1、走査装置に搭載された図面に書かれた′線図形を認
識するパターン認識装置において、図面を走査して走査
装置上の座標で表わされた該線図形データを得、該線図
形データに基づき該走査装置上の座標で表わされた、該
線図形の特徴点の座標データを得図面上の複数の基準点
の該走査装置上の座標を入力し、その座標値を用いて、
該座標データを図面上の座標に変換する第1の補正を行
ない、しかる後特定の間隔を持ったグリッド位置に該座
標データが位置するようにする第2の補正および認識後
の線が特定の方向を持つようにする第3の補正を加え、
補正後の座標データを認識結果として出力することを特
徴とする線図形の認識方式。 2、特許請求の範囲第1項記載の線の認識方式において
、該基準点の座標値の外に、該基準点間の距離を入力し
、該基準点の座標値と該距離に基づき該第1の補正時に
図面の寸法上の伸縮の補正をも併せて行なうことを特徴
とする線図形の認識方式。 3、特許請求の範囲第1項記載の線図形の認識方式にお
いて、該第2の補正処理はグリッド中心位置を中心とし
た微小な領域を設定しその領域内に存在する点はグリッ
ド位置へ、微小な領域にはさまれる領域に属する点はX
座標又はX座標だけを、グリッドを結ぶ線上へ移行させ
るものであることを特徴とする線図形の認識方式。 4、特許請求の範囲第1項記載の線図形の認識方式にお
ける認識後の線が特定の方向を持つよう−な第3の補正
処理は、線図形の2点で構成される各線に着目した場合
、2点ともにグリッド上になく、かつ中心にグリッド位
置をはさむように配置する場合は、2点ともグリッド位
置へ移行させ、片方の点がグリッド上にあり、他点がグ
リッド上にない場合はない方の点をグリッド上へ移行さ
せ、両点ともグリッド上にあシ、一方の点に隣接する線
が指定方向をなす場合は、その点を優先的に移行させな
いまま他点の移行の方向が一意的に決定できる場合にだ
け移行させるものであることを特徴とする線図形の認識
方式。
[Claims] 1. In a pattern recognition device installed in a scanning device that recognizes a line figure written on a drawing, the drawing is scanned and the line figure data represented by the coordinates on the scanning device is obtained. Obtain the coordinate data of the feature points of the line figure expressed in coordinates on the scanning device based on the line figure data, input the coordinates of a plurality of reference points on the drawing on the scanning device, and Using the coordinate values,
A first correction is performed to convert the coordinate data into coordinates on the drawing, and then a second correction is performed to position the coordinate data at grid positions with a specific interval, and a second correction is performed to convert the coordinate data into coordinates on the drawing. Add a third correction to make it have direction,
A line figure recognition method characterized by outputting corrected coordinate data as a recognition result. 2. In the line recognition method described in claim 1, the distance between the reference points is input in addition to the coordinate values of the reference points, and the line recognition method is performed based on the coordinate values of the reference points and the distance. A line figure recognition method characterized in that, at the time of the correction in step 1, correction for expansion and contraction in the dimensions of the drawing is also performed. 3. In the line figure recognition method described in claim 1, the second correction process sets a minute area centered on the grid center position, and points existing within the area are moved to the grid position; The point belonging to the area sandwiched between the minute areas is X
A line figure recognition method characterized in that only coordinates or X coordinates are transferred onto lines connecting grids. 4. The third correction process in which the line after recognition in the line figure recognition method described in claim 1 has a specific direction focuses on each line composed of two points of the line figure. In this case, if both points are not on the grid and they are placed so that the grid position is sandwiched in the center, both points are moved to the grid position, and if one point is on the grid and the other point is not on the grid. If both points are on the grid and the line adjacent to one point is in the specified direction, that point will not be migrated preferentially and the other points will be shifted. A line figure recognition method characterized in that the line figure is shifted only when the direction can be uniquely determined.
JP57144672A 1982-08-23 1982-08-23 Recognition system of line figure Granted JPS5935278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57144672A JPS5935278A (en) 1982-08-23 1982-08-23 Recognition system of line figure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57144672A JPS5935278A (en) 1982-08-23 1982-08-23 Recognition system of line figure

Publications (2)

Publication Number Publication Date
JPS5935278A true JPS5935278A (en) 1984-02-25
JPH0352107B2 JPH0352107B2 (en) 1991-08-08

Family

ID=15367551

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57144672A Granted JPS5935278A (en) 1982-08-23 1982-08-23 Recognition system of line figure

Country Status (1)

Country Link
JP (1) JPS5935278A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11498555B2 (en) * 2016-12-23 2022-11-15 Volvo Truck Corporation Anti-collision system for a tiltable truck cab, and related devices, components, and methods

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11498555B2 (en) * 2016-12-23 2022-11-15 Volvo Truck Corporation Anti-collision system for a tiltable truck cab, and related devices, components, and methods

Also Published As

Publication number Publication date
JPH0352107B2 (en) 1991-08-08

Similar Documents

Publication Publication Date Title
JP2917155B2 (en) Image combining device and method
EP0720113A2 (en) Two-dimensional code reading apparatus
US4981372A (en) Component shape recognition method
WO1990005963A1 (en) Method for mapping scanned pixel data
US4975860A (en) Apparatus for Automatically drawing a dot pattern
JPH11248489A (en) Two-dimensional abolute encoder and device and method for measuring two-dimensional position
CN108322736B (en) Calibration plate and calibration method for calibrating rotation angles of multiple linear array cameras around visual axis
JPS5935278A (en) Recognition system of line figure
CN116343215A (en) Inclination correction method and system for document image
JPH033209B2 (en)
CN114332249A (en) Camera vision internal segmentation type hand-eye calibration method
JPH05266161A (en) Device for correcting vector type data
JPH07105371A (en) Hand print pattern recognition method
US4794462A (en) Method and system for patching an original at a desired angular orientation on a scanner input drum or an original patching sheet and extracting original trimming data
JP2600027B2 (en) Image alignment method and apparatus
JP3048896B2 (en) Noise removal filter device for binary image
JP3138056B2 (en) 2D measuring machine
JPH0668245A (en) Image rotation correction processing method and image rotation correction processor
JPH04349583A (en) Generalized hough transform circuit
CN113989479A (en) Pointer instrument reading method based on deep learning detection straight line
JP3119688B2 (en) Tilt detection method
JPH0143352B2 (en)
JPS5987582A (en) Coordinate correcting system
JPH0214387A (en) Plural peak points detecting system
JPH0731733B2 (en) Rectangle detector