JPS628274A - Drawing reader - Google Patents

Drawing reader

Info

Publication number
JPS628274A
JPS628274A JP60147854A JP14785485A JPS628274A JP S628274 A JPS628274 A JP S628274A JP 60147854 A JP60147854 A JP 60147854A JP 14785485 A JP14785485 A JP 14785485A JP S628274 A JPS628274 A JP S628274A
Authority
JP
Japan
Prior art keywords
image memory
signal
circuit
segment
line segment
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
JP60147854A
Other languages
Japanese (ja)
Inventor
Masakazu Honda
本田 正教
Kunikazu Shigeta
重田 邦和
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP60147854A priority Critical patent/JPS628274A/en
Publication of JPS628274A publication Critical patent/JPS628274A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To read a drawing by a simple processing by detecting the first segment longer than the previously determined length, separating it from the second segment other than it, and automatically discriminating a category discriminating symbol written in the vicinity of the first segment to decide the category of the drawing. CONSTITUTION:The output signal of a scanner 1 is once stored in an image memory 2. Then, the signal read from an image memory 2 is discriminated as a succeeding segment and one except for that by a succeeding segment detecting circuit 3. Thus, the signal of the image memory 2 is fed to a character discriminating circuit 5 through a gate circuit 4. At this time, a gate is applied to the signal of a graphic part already discriminated so as to prevent from passing, so that only the character signal is fed. Since in the image memory 2, the signals of the drawing 10 are accumulated from a left upper part in the sequence of smaller number of addresses, when the signals are read in the sequence of the addresses and more than the determined number of black signals is succeeded, they are recognized to be the segments of the graphic forms 11-16.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は図面読取装置に関し、特にフローチャートや論
理回路図等を自動的に読み取ってコンピュータに入力す
るための図面読取装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a drawing reading device, and more particularly to a drawing reading device for automatically reading flowcharts, logic circuit diagrams, etc. and inputting them into a computer.

〔従来の技術〕[Conventional technology]

従来の図面読取装置においては、図面中の図形のカテゴ
リーを識別するために1例えば円を識別するためKは円
弧を抽出する回路、四角を識別するためには直角を抽出
する回路、三角を識別するためには鋭角を抽出する回路
など図形の識別回路を必要とした。
In conventional drawing reading devices, in order to identify the category of figures in a drawing, 1. For example, to identify a circle, K is a circuit that extracts an arc, to identify a square, a circuit that extracts a right angle, and to identify a triangle. In order to do this, a circuit for identifying shapes, such as a circuit for extracting acute angles, was required.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

図面に記載される図形は一般にその大きさが変動し、又
例えばフリーハンドで記入されたときなど正確に記載さ
れないことも多いので、上述した従来の図面読取装置で
は図形のカテゴリーを正しく識別するために多くの複雑
な処理を必要とした。
Figures written on drawings generally vary in size, and are often not described accurately, for example when drawn freehand, so the conventional drawing reading device described above has difficulty in correctly identifying the category of the figure. required a lot of complicated processing.

又図形の寸法が大きくなるとその処理型が増大するので
、処理時間も多く必要となるなどの欠点がある。
Furthermore, as the size of the figure increases, the number of processing steps required increases, resulting in the disadvantage that more processing time is required.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の図面読取装置は、あらかじめ定められた長さ以
上の長さの第1の線分を検出する検出手段と、該第1の
線分と前記あらかじめ定められた長さ未満の第2の線分
を分離する分離手段と、前記第1の線分の近傍に記入さ
れた文字又は記号を自動的に識別する識別手段と、前記
文字又は記号に対応して線分のカテゴリーを特定する図
形決定手段とを備えている。
The drawing reading device of the present invention includes a detection means for detecting a first line segment having a length equal to or greater than a predetermined length, and a detection means for detecting a first line segment having a length equal to or greater than a predetermined length, and a detection means for detecting a first line segment having a length equal to or greater than the predetermined length; separation means for separating line segments; identification means for automatically identifying characters or symbols written in the vicinity of the first line segment; and figures for identifying the category of the line segment in correspondence with the characters or symbols. and decision means.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の図面読取装置の一実施例を示すブロッ
ク図、第2図は第1図における図面読取装置によって読
み取る図面の一例を示す平面図である。
FIG. 1 is a block diagram showing an embodiment of a drawing reading device of the present invention, and FIG. 2 is a plan view showing an example of a drawing read by the drawing reading device in FIG.

第2図において、図面10はフローチャートであシ、図
形11.〜16を線で結んで、ある装置の動作の流れを
示している。各図形11.〜16の内部にはそれぞれ文
字が記入されておシ、この文字は光学文字読取装置(以
下0CR)Kよって読み取られる収缶図形11.〜14
等の右肩外部に記入された文字″At、〜lD1は図形
のカテゴリーを示す識別記号で、例えば文字1A1は長
方形I、’B“は六角形、1C1は長方形1 、 ”D
’は菱形の図形に対応づけられでいる。
In FIG. 2, drawing 10 is a flowchart, figure 11. ~16 are connected with lines to show the flow of operation of a certain device. Each figure 11. Characters are written inside each of the cans 11 to 16, and these characters are read by an optical character reader (hereinafter referred to as 0CR) K. ~14
The letters "At, ~lD1" written on the outside of the right shoulder are identification symbols indicating the category of the figure. For example, the letters 1A1 are rectangle I, 'B" is hexagon, 1C1 is rectangle 1, "D"
' is associated with a diamond shape.

次に、第1図において図面読取装置は、第2図に示すよ
うな図面を光学的に走査するスキャナ1と、スキャナ1
の出力信号を一旦蓄えるイメージメモリ2と、イメージ
メモリ2から読み出された信号を連続した線分とそれ以
外の線分とに検出分離する連続線分検出回路3と、ゲー
ト回路4を介して入力されたイメージメモリ2からの文
字信号を認識する文字認識回路5と、連続線分検出回路
3出力および文字認識回路5出力を合成して図形のカテ
ゴリーを決定する図形決定回路6とからなる。
Next, in FIG. 1, the drawing reading device includes a scanner 1 that optically scans a drawing as shown in FIG.
An image memory 2 that temporarily stores the output signal of It consists of a character recognition circuit 5 that recognizes the input character signal from the image memory 2, and a figure determination circuit 6 that combines the outputs of the continuous line segment detection circuit 3 and the character recognition circuit 5 to determine the category of the figure.

続いて本実施例の動作について説明する。Next, the operation of this embodiment will be explained.

スキャナ1の出力信号はイメージメモリ2に一旦蓄えら
れる。次にイメージメモリ2から読み出された信号は連
続線分検出回路3によシ連続した線分とそれ以外とが識
別される。ここで連続するとは、定められた長さ以上が
連続することであシ、第2図の例によれば、図形11.
〜16はその内部の文字よシも明らかに長く連続する線
分で構成されている。
The output signal of the scanner 1 is temporarily stored in the image memory 2. Next, the signal read from the image memory 2 is sent to a continuous line segment detection circuit 3 to distinguish between continuous line segments and other continuous line segments. Continuous here means that it is continuous for a predetermined length or more, and according to the example of FIG. 2, figure 11.
16 is clearly made up of long continuous line segments, as are the characters inside it.

次にイメージメモリ2の信号はゲート回路4を経由して
文字識別回路5に送られるが、この時、既に識別された
図形部分の信号線通過しないようにゲートがかけられる
ので文字信号のみが送られる。ここで図形11.〜16
内の文字は文字認識回路5で認識されて次の処理へ送ら
れるが、図形11、〜16外の文字(前記識別記号)は
識別されて図形決定回路6に送られる。
Next, the signal from the image memory 2 is sent to the character identification circuit 5 via the gate circuit 4, but at this time, a gate is applied to prevent the signal line from passing through the already identified figure part, so only the character signal is sent. It will be done. Here, figure 11. ~16
The characters inside are recognized by the character recognition circuit 5 and sent to the next process, but the characters (the above-mentioned identification symbols) outside the figures 11 to 16 are recognized and sent to the figure determination circuit 6.

連続線分検出回路3による連続線分検出は次のようにし
て行うことができる。イメージメモリ2には例えば第2
図に示した図面lOの信号が左上から順番に若いアドレ
スから蓄えられている。従ってイメージメモリ2をこの
アドレス1@に読み出して信号の白、黒を判別する。こ
こで黒信号が足労のイメージメモリ2上のアドレスが記
憶される。
Continuous line segment detection by the continuous line segment detection circuit 3 can be performed as follows. Image memory 2 has, for example, a second
The signals shown in FIG. 10 are stored in order from the upper left to the smallest address. Therefore, the image memory 2 is read to this address 1@ to determine whether the signal is white or black. Here, the address on the image memory 2 where the black signal is present is stored.

ゲート回路4はこのアドレスに対応する黒信号を文字認
識回路5に送らないようにする。なお、スキャナl、イ
メージメモリ2および文字認識回路5はいずれも従来知
られている OCRに用いられるものとI’FiJじも
のであるから、ここでは詳細な説明は省略する。
The gate circuit 4 prevents the black signal corresponding to this address from being sent to the character recognition circuit 5. Incidentally, since the scanner 1, image memory 2, and character recognition circuit 5 are all the same as those used in the conventionally known OCR, detailed explanations thereof will be omitted here.

次いで図形決定回路6は連続線分検出回路3の出力と文
字認識回路5の出力を合成して図形のカテゴリーを決定
する。
Next, the figure determination circuit 6 combines the output of the continuous line segment detection circuit 3 and the output of the character recognition circuit 5 to determine the category of the figure.

連続線分検出、ゲート、図形決定等の処理は、通常はコ
ンピュータを用いてプロ°グラムによシ実行される。つ
まシアドレスの操作と論理値111(黒) 、 l o
 l (白)判定の簡単な論理で行えるものであシ、回
路の詳細については説明を省略する。
Processes such as continuous line segment detection, gates, and figure determination are usually executed by a program using a computer. Tsumashi address operation and logical value 111 (black), l o
1 (white) This can be done using simple logic, and the detailed explanation of the circuit will be omitted.

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

以上説明したように本発明は、あらかじめ定められた長
さ以上の第1の線分を検出し、これをそれ以外の第2の
線分と分離し、第1の線分の近傍に記入されたカテゴリ
ー識別記号を自動的に識別して図面のカテゴリーを決定
することによシ、図形の形状を識別するための複雑な処
理を必要とせず、又図形の記入に際して正確さを強要し
ないので、簡便で実用性が向上する効果がある。
As explained above, the present invention detects a first line segment having a predetermined length or more, separates this from other second line segments, and writes a line near the first line segment. By automatically identifying the category identification symbol and determining the category of the drawing, there is no need for complicated processing to identify the shape of the figure, and accuracy is not required when entering the figure. It is simple and has the effect of improving practicality.

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

第1図は本発明の図面読取装置の一実施例を示すブロッ
ク図、第2図は第1図における図面読取装置によって読
み取る図面の一例を示す平面図である。 l・・・・・・スキャナ、2・・・・・・イメージメモ
リ、3・・・・・・連続線分検出回路、4・・・・・・
ゲート回路、5・・・・・・文字認識回路、6・・・・
・・図形決定回路、10・・・・・・図面、11.〜1
6・・・・・・図形。 ′、、−ノ 第 1 図 P z 父
FIG. 1 is a block diagram showing an embodiment of a drawing reading device of the present invention, and FIG. 2 is a plan view showing an example of a drawing read by the drawing reading device in FIG. l...Scanner, 2...Image memory, 3...Continuous line segment detection circuit, 4...
Gate circuit, 5...Character recognition circuit, 6...
...Graphic determination circuit, 10...Drawing, 11. ~1
6...shape. ',,-No.1 Figure P z Father

Claims (1)

【特許請求の範囲】[Claims] あらかじめ定められた長さ以上の長さの第1の線分を検
出する検出手段と、該第1の線分と前記あらかじめ定め
られた長さ未満の第2の線分を分離する分離手段と、前
記第1の線分の近傍に記入された文字又は記号を自動的
に識別する識別手段と、前記文字又は記号に対応して線
分のカテゴリーを特定する図形決定手段とを備えること
を特徴とする図面読取装置。
a detection means for detecting a first line segment having a length equal to or greater than a predetermined length; and a separation means for separating the first line segment from a second line segment having a length less than the predetermined length. , comprising an identification means for automatically identifying a character or symbol written in the vicinity of the first line segment, and a figure determination means for identifying a category of the line segment in correspondence with the character or symbol. drawing reading device.
JP60147854A 1985-07-04 1985-07-04 Drawing reader Pending JPS628274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60147854A JPS628274A (en) 1985-07-04 1985-07-04 Drawing reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60147854A JPS628274A (en) 1985-07-04 1985-07-04 Drawing reader

Publications (1)

Publication Number Publication Date
JPS628274A true JPS628274A (en) 1987-01-16

Family

ID=15439756

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60147854A Pending JPS628274A (en) 1985-07-04 1985-07-04 Drawing reader

Country Status (1)

Country Link
JP (1) JPS628274A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01194073A (en) * 1988-01-29 1989-08-04 Canon Inc Graphic processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01194073A (en) * 1988-01-29 1989-08-04 Canon Inc Graphic processor

Similar Documents

Publication Publication Date Title
EP0163377B1 (en) Pattern recognition system
JPS628274A (en) Drawing reader
JPH02250193A (en) Graphic/character separating system
JP2722549B2 (en) Optical character reader
JP2722550B2 (en) Optical character reader
JPH01311390A (en) Character substitution control system
JPH045231B2 (en)
JPH10235299A (en) Hand written address recognizing system
JPH03122786A (en) Optical character reader
JPS6316788B2 (en)
JPH01129368A (en) Picture recognition device
JPS60168283A (en) Character recognition device
JPH02202687A (en) Method for discriminating similar character
JPS6162982A (en) Musical score staff detection device
JPH01201789A (en) Character reader
Oodaira et al. Detection of a Key String from Scene Images Using Saliency
JPH0276089A (en) Method for processing underline in recognition of handwritten numeral
JPH04260980A (en) Device for recognizing graphic
JPH0436435B2 (en)
JPH01310494A (en) Optical character reader
JPH041882A (en) Character recognition and device for the same
JPH01154298A (en) Character recognizing method
JPS62103784A (en) Character reader
JPS63111590A (en) Character recognizing device
JPH02311968A (en) Drawing recognizing device