JPH04314184A - Graphic recognizing system - Google Patents

Graphic recognizing system

Info

Publication number
JPH04314184A
JPH04314184A JP7949691A JP7949691A JPH04314184A JP H04314184 A JPH04314184 A JP H04314184A JP 7949691 A JP7949691 A JP 7949691A JP 7949691 A JP7949691 A JP 7949691A JP H04314184 A JPH04314184 A JP H04314184A
Authority
JP
Japan
Prior art keywords
element data
storage device
outer frame
data storage
graphic
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
JP7949691A
Other languages
Japanese (ja)
Inventor
Shigeyuki Murayama
村山 茂幸
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 Solution Innovators Ltd
Original Assignee
NEC Software Chubu 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 NEC Software Chubu Ltd filed Critical NEC Software Chubu Ltd
Priority to JP7949691A priority Critical patent/JPH04314184A/en
Publication of JPH04314184A publication Critical patent/JPH04314184A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To easily perform the recognition processing of a graphic comprised of a large number of graphic elements by recognizing an internal element that is the graphic at the inside of an outer frame, and recognizing only the element comprising a closed loop from the internal element. CONSTITUTION:The principal part of a graphic processing system is comprised of a graphic shape recognition device 1, a graphic processor 2, a display device 3, a console 4, and a graphic information memory device 5. Also, the graphic shape recognition device 1 is comprised by including an outer frame shape element recognizing means 6, an internal element recognizing means 7, and a closed loop constituent element recognizing means 8. The outer frame shape element recognizing means 6 recognizes the outer frame of the graphic, and the internal element recognizing means 7 recognizes the internal element that is the graphic at the inside of the outer frame and recognized by the means 6, and the closed loop constituent recognizing means 8 recognizes only the element comprising the closed loop from the internal elements recognized by the internal element recognizing means 7.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、図形処理システムの図
形形状認識方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic shape recognition method for a graphic processing system.

【0002】0002

【従来の技術】従来、図形処理が可能な図形処理システ
ムにおいて、図形形状の認識は、人間が図形形状を認識
し、入力装置から図形要素を指示しなければならなかっ
た。
2. Description of the Related Art Conventionally, in a graphic processing system capable of graphic processing, recognition of a graphic shape required a human being to recognize the graphic shape and specify a graphic element using an input device.

【0003】0003

【発明が解決しようとする課題】上述した従来の図形処
理システムの図形形状認識は、形状を認識する手段が人
間であり、認識した要素を入力装置から指示しなければ
ならない欠点がある。特に、多数の図形要素で構成され
ている図形に対しては、多数の入力指示が必要となり、
この欠点が顕著となっていた。また、形状を認識する手
段が人間であるため、要素の入力漏れが発生するなどの
欠点がある。
Problems to be Solved by the Invention The graphic shape recognition of the conventional graphic processing system described above has the disadvantage that the means for recognizing the shape is a human being, and the recognized element must be specified from an input device. In particular, many input instructions are required for shapes that are composed of many graphical elements.
This shortcoming was noticeable. In addition, since humans are the means for recognizing shapes, there are drawbacks such as omission of input of elements.

【0004】0004

【課題を解決するための手段】本発明の図形認識方法は
、図形の外枠を認識する外枠形状認識手段と、前記外枠
形状認識手段で認識された外枠の内側にある図形である
内部要素を認識する内部要素認識手段と、前記内部要素
認識手段で認識された内部要素の中から閉ループを構成
している要素だけを認識する閉ループ構成要素認識手段
とを有する。
[Means for Solving the Problems] The figure recognition method of the present invention includes an outer frame shape recognition means for recognizing the outer frame of a figure, and a figure inside the outer frame recognized by the outer frame shape recognition means. It has an internal element recognition means for recognizing internal elements, and a closed loop component recognition means for recognizing only elements constituting a closed loop from among the internal elements recognized by the internal element recognition means.

【0005】本発明の図形認識方法は、表示装置に表示
された図形の図形要素データを読み込んで図形要素デー
タ記憶装置に記憶させ、前記図形要素データ記憶装置に
記憶された図形要素データのうち操作卓から入力指示を
されたものを外枠要素データとして外枠要素データ記憶
装置に記憶させ、前記図形要素データ記憶装置に記憶さ
れた図形要素のうち前記外枠要素データ記憶装置に最後
に記憶された外枠要素データと端点座標データが一致す
るものをさらに外枠要素データとして前記外枠要素デー
タ記憶装置に記憶させる外枠形状認識手段と、前記図形
要素データ記憶装置に記憶された図形要素データのうち
前記外枠要素データ記憶装置に記憶された外枠要素デー
タが構成する外枠図形の内部にある内部図形の内部要素
データを内部要素データ記憶装置に記憶させる内部要素
認識手段と、前記内部要素データ記憶装置に記憶された
内部要素データの一つを接続要素データ記憶装置に記憶
させ、前記内部要素データ記憶装置に記憶された内部要
素データのうち前記接続要素データ記憶装置に最後に記
憶された内部要素データと端点座標データが一致するも
のをさらに前記接続要素データ記憶装置に記憶させ、前
記接続要素データ記憶装置に記憶した内部要素データの
図形が閉ループを構成した時に前記接続要素データ記憶
装置に記憶した内部要素データを閉ループ構成要素記憶
装置に記憶させる閉ループ構成要素認識手段とを有する
The figure recognition method of the present invention reads figure element data of a figure displayed on a display device and stores it in a figure element data storage device, and performs operations on the figure element data stored in the figure element data storage device. What is inputted from the console is stored as outer frame element data in an outer frame element data storage device, and the last one of the graphic elements stored in the graphic element data storage device is stored in the outer frame element data storage device. outer frame shape recognition means for further storing, as outer frame element data, the outer frame element data whose end point coordinate data match the outer frame element data in the outer frame element data storage device; and graphic element data stored in the graphic element data storage device. internal element recognition means for storing, in the internal element data storage device, internal element data of an internal figure located inside the external frame figure constituted by the external frame element data stored in the external frame element data storage device; One of the internal element data stored in the element data storage device is stored in the connected element data storage device, and one of the internal element data stored in the internal element data storage device is stored in the connected element data storage device last. The internal element data whose end point coordinate data match are further stored in the connected element data storage device, and when the figures of the internal element data stored in the connected element data storage device form a closed loop, the connected element data storage device and a closed-loop component recognition means for storing the internal component data stored in the closed-loop component storage device.

【0006】[0006]

【実施例】次に本発明について図面を参照して説明する
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.

【0007】図1は、本発明の一実施例の図形形状認識
方式が適用された図形処理システムの構成図である。こ
の図形処理システムは、図形形状認識装置1と、図形処
理装置2と、表示装置3と、操作卓4と、図形情報記憶
装置5からその主要部が構成されている。
FIG. 1 is a block diagram of a graphic processing system to which a graphic shape recognition system according to an embodiment of the present invention is applied. The main parts of this graphic processing system include a graphic shape recognition device 1, a graphic processing device 2, a display device 3, an operation console 4, and a graphic information storage device 5.

【0008】図形形状認識装置1は、外枠形状要素認識
手段6と、内部要素認識手段7と、閉ループ構成要素認
識手段8とを含んで構成されている。
The figure shape recognition device 1 includes an outer frame shape element recognition means 6, an inner element recognition means 7, and a closed loop component recognition means 8.

【0009】図2は外枠形状要素認識手段6の詳細を示
す流れ図である。外枠形状要素認識手段6は、図形要素
データ読み込み及び記憶処理部201と、指示要素デー
タ読み込み処理及び処理フラグ設定処理部202と、外
枠要素データ記憶処理部203と、閉ループ構成終了判
断部204と、接続要素検索処理及び処理フラグ設定処
理部205と、接続要素数判断部206と、分岐要素表
示処理部207と、接続要素データ読み込み処理部20
8と、エラー処理部209と、図形要素データ記憶装置
210と、外枠要素データ記憶装置211から構成され
ている。
FIG. 2 is a flowchart showing details of the outer frame shape element recognition means 6. The outer frame shape element recognition means 6 includes a graphic element data reading and storage processing section 201, an instruction element data reading processing and processing flag setting processing section 202, an outer frame element data storage processing section 203, and a closed loop configuration end judgment section 204. , a connected element search processing and processing flag setting processing section 205 , a connected element number determination section 206 , a branching element display processing section 207 , and a connected element data reading processing section 20
8, an error processing section 209, a graphic element data storage device 210, and an outer frame element data storage device 211.

【0010】このように構成された本実施例の外枠形状
要素認識手段6の動作について、図5〜図15の図形例
およびデータ形式例を参照して説明する。
The operation of the outer frame shape element recognition means 6 of this embodiment configured as described above will be explained with reference to graphical examples and data format examples shown in FIGS. 5 to 15.

【0011】表示装置3に、図5の図形51が表示され
ている場合、図形処理装置2から図形形状認識装置1が
起動されると、外枠形状要素認識手段6の図形要素デー
タ読み込み及び記憶処理部201が、図形処理装置2を
介して表示装置3に表示されている図形51の図形要素
番号11〜119の図形要素データを読み込み、図形要
素データ記憶装置210に図11の図形要素データ記憶
装置内データ形式61に示す形式で記憶する。このデー
タは、図形要素データとして処理フラグ,図形要素番号
,要素タイプ,端点座標データを1要素毎に持つ。
When the figure 51 of FIG. 5 is displayed on the display device 3, when the figure shape recognition device 1 is started up from the figure processing device 2, the figure element data of the outer frame shape element recognition means 6 is read and stored. The processing unit 201 reads graphic element data of graphic element numbers 11 to 119 of the graphic 51 displayed on the display device 3 via the graphic processing device 2, and stores the graphic element data of FIG. 11 in the graphic element data storage device 210. It is stored in the format shown in the internal data format 61. This data has a processing flag, a graphic element number, an element type, and end point coordinate data for each element as graphic element data.

【0012】指示要素データ読み込み処理部及び処理フ
ラグ設定処理部202は、操作卓4から入力指示された
図形要素番号を読み込み、読み込まれた図形要素番号を
外枠要素の図形要素番号として外枠要素データ記憶処理
部203に渡す。またこの要素を接続要素検索処理及び
処理フラグ設定処理部205で検索対象としないように
するために図形要素データ記憶装置210に記憶されて
いるこの外枠要素の図形要素データの処理フラグを1に
する。処理フラグを1にした場合、以後接続要素検索処
理及び処理フラグ設定処理部205で検索の対象としな
い。
[0012] The instruction element data reading processing unit and processing flag setting processing unit 202 reads the graphic element number input and instructed from the operation console 4, and sets the read graphic element number as the graphic element number of the outer frame element. It is passed to the data storage processing unit 203. Also, in order to prevent this element from being searched for by the connected element search processing and processing flag setting processing unit 205, the processing flag of the graphic element data of this outer frame element stored in the graphic element data storage device 210 is set to 1. do. If the processing flag is set to 1, it will not be searched by the connected element search processing and processing flag setting processing unit 205 from now on.

【0013】外枠要素データ記憶処理部203は、指示
要素データ読み込み処理部及び処理フラグ設定処理部2
02から渡された図形要素番号の図形要素データを図1
2の外枠要素データ記憶装置内データ形式62に示す形
式で外枠要素データ記憶装置211に記憶させる。この
データは、外枠要素データとして図形要素番号,要素タ
イプ,座標データを1要素毎に持つ。
The outer frame element data storage processing section 203 includes an instruction element data reading processing section and a processing flag setting processing section 2.
The graphic element data of the graphic element number passed from 02 is shown in Figure 1.
The data is stored in the outer frame element data storage device 211 in the format shown in the outer frame element data storage device data format 62 of No. 2. This data has a graphic element number, element type, and coordinate data for each element as outer frame element data.

【0014】閉ループ構成終了判断部204は、外枠要
素データ記憶装置211に最後に記憶された要素の端点
座標データが、指示要素データ読み込み処理部202で
読み込まれた要素の端点座標データと一致するかを判断
し、一致した場合閉ループは構成されたと判断して外枠
形状認識手段を終了する。
The closed-loop configuration end determination unit 204 determines that the end point coordinate data of the element last stored in the outer frame element data storage device 211 matches the end point coordinate data of the element read by the instruction element data reading processing unit 202. If they match, it is determined that a closed loop has been established and the outer frame shape recognition means is terminated.

【0015】一致せず終了でない場合、接続要素検索処
理及び処理フラグ設定処理部205は、図形要素データ
記憶装置210に記憶された図形要素データの中から、
外枠要素データ記憶装置211に最後に記憶された要素
の端点座標データと一致するデータを持つ要素を全て検
索する。この場合、一度検出された要素を検索対象とし
ないために図形要素データ記憶装置210に記憶されて
いる図形要素データの処理フラグを1にする。処理フラ
グを1にした場合、以後接続要素検索処理及び処理フラ
グ設定処理部205で検索の対象にしない。また、内部
要素認識手段7でも処理対象としない。
If there is no match and the process is not completed, the connected element search processing and processing flag setting processing unit 205 selects the following from among the graphic element data stored in the graphic element data storage device 210.
All elements having data matching the end point coordinate data of the element last stored in the outer frame element data storage device 211 are searched. In this case, the processing flag of the graphic element data stored in the graphic element data storage device 210 is set to 1 so that the element once detected is not searched. When the processing flag is set to 1, it will not be searched by the connected element search processing and processing flag setting processing unit 205 from now on. Further, the internal element recognition means 7 also does not process it.

【0016】接続要素数判断部206は、接続要素検索
処理及び処理フラグ設定処理部205で外枠要素データ
記憶装置211に最後に記憶された要素の端点座標デー
タと一致するとして検出された図形要素である接続要素
の数が1個の場合、この要素を外枠要素の一部とみなし
処理を外枠要素データ記憶処理部203に移し処理を繰
り返す。接続要素数が0個の場合、閉ループは構成され
ないので、エラー処理部209に処理を渡し図形形状認
識装置1の処理を終わる。接続要素数が複数個の場合、
分岐要素表示処理部207が、図形処理装置2を介して
表示装置3に検出された要素を強調色で表示し操作者に
分岐点要素があることを知らせる。
The number of connected elements determining unit 206 determines the number of graphic elements detected by the connected element search processing and processing flag setting processing unit 205 as matching the end point coordinate data of the element last stored in the outer frame element data storage device 211. If the number of connected elements is one, this element is regarded as a part of the outer frame element, and the processing is transferred to the outer frame element data storage processing unit 203 and the processing is repeated. If the number of connected elements is 0, a closed loop is not formed, so the process is passed to the error processing unit 209 and the process of the graphic shape recognition device 1 ends. If there are multiple connected elements,
A branching element display processing unit 207 displays the detected element in a highlighted color on the display device 3 via the graphic processing device 2 to inform the operator that there is a branching point element.

【0017】接続要素データ読み込み処理部208は、
分岐要素表示処理部207が表示装置3に強調色で表示
させた分岐の接続要素のうち操作者が操作卓4を介して
入力指示した分岐要素のデータを読み込み、この要素を
外枠要素の一部とみなし処理を外枠要素データ記憶処理
部203に移し処理を繰り返す。
The connected element data reading processing unit 208
The branching element display processing unit 207 reads the data of the branching element inputted by the operator via the console 4 from among the connecting elements of the branch displayed in a highlighted color on the display device 3, and converts this element into one of the outer frame elements. The frame element data storage processing unit 203 transfers the processing to the outer frame element data storage processing unit 203 and repeats the processing.

【0018】外枠形状要素認識手段6の一連の処理で、
図5の図形51の要素11〜18のうちのいずれかが指
示された場合、図形要素データを次々と検索処理し図6
の外枠図形52に示すように要素11,12,13,1
4,15,16,17,18から構成される外枠形状(
外周の図形の形状)が認識できる。
In a series of processing by the outer frame shape element recognition means 6,
When any of the elements 11 to 18 of the figure 51 in FIG. 5 is specified, the figure element data is searched one after another and
As shown in the outer frame figure 52, elements 11, 12, 13, 1
Outer frame shape consisting of 4, 15, 16, 17, 18 (
The shape of the figure on the outer periphery) can be recognized.

【0019】図3は内部要素認識手段7の詳細を示す流
れ図である。内部要素認識手段7は繰り返し処理部30
1と、処理フラグ判断部302と、内外判断部303と
、内部要素データ記憶処理部304と、内部要素データ
記憶装置305から構成されている。
FIG. 3 is a flowchart showing details of the internal element recognition means 7. The internal element recognition means 7 is a repetition processing section 30
1, a processing flag determining section 302, an internal/external determining section 303, an internal element data storage processing section 304, and an internal element data storage device 305.

【0020】次に、このように構成された本実施例の内
部要素認識手段7の動作について、図5〜図15の例を
参照して説明する。
Next, the operation of the internal element recognition means 7 of this embodiment configured as described above will be explained with reference to the examples shown in FIGS. 5 to 15.

【0021】外枠形状要素認識手段6から内部要素認識
手段7に制御が移ると、繰り返し処理部301が図形要
素データ記憶装置210内に記憶されている図形要素全
てについて繰り返し、要素の最後までN個の要素につい
ての制御処理を行う。
When the control is transferred from the outer frame shape element recognition means 6 to the inner element recognition means 7, the repetition processing section 301 repeats all the graphic elements stored in the graphic element data storage device 210 until the end of the element. Performs control processing for each element.

【0022】繰り返し処理部301の内部処理の処理フ
ラグ判断部302は、図形要素データ記憶装置210内
データの示す処理フラグ部分を判断し、処理フラグが1
の場合は、外枠要素だとみなし次要素の処理を行うため
繰り返し処理部301に制御を移す。処理フラグが0の
場合は、内外判断部303に処理を渡す。
The processing flag determination unit 302 of the internal processing of the repetition processing unit 301 determines the processing flag portion indicated by the data in the graphic element data storage device 210, and determines whether the processing flag is 1 or not.
In this case, it is assumed that the element is an outer frame element, and control is transferred to the iterative processing unit 301 to process the next element. If the processing flag is 0, the processing is passed to the inside/outside determining unit 303.

【0023】内外判断部303は、外枠要素データ記憶
装置211に記憶されている全ての要素の座標系と判断
の対象となっている図形要素の座標系から対象となって
いる図形要素が外枠図形52の内側に有るか否かの判断
を行う。
The inside/outside determining unit 303 determines whether the target graphic element is outside the coordinate system of all the elements stored in the outer frame element data storage device 211 and the coordinate system of the target graphic element. It is determined whether or not it is inside the frame figure 52.

【0024】外側の場合、内部要素データ記憶処理部3
04が、図13の内部要素データ記憶装置内データ形式
63に示す形式で内部要素データ記憶装置305に記憶
する。このデータは、処理フラグ,図形要素番号,要素
タイプ,座標データを1要素毎に持つ。処理フラグには
0をセットする。このフラグは、処理対象を識別するた
めのものである。
In the case of the outside, the internal element data storage processing section 3
04 is stored in the internal element data storage device 305 in the format shown in the internal element data storage device data format 63 in FIG. This data has a processing flag, graphic element number, element type, and coordinate data for each element. Set the processing flag to 0. This flag is for identifying the processing target.

【0025】内部要素認識手段7の一連の処理で、図7
の図形53に示す要素(11,12,13,14,15
,16,17,18は外枠要素であり図形要素データ記
憶装置210に記憶されているデータのフラグ部分には
1がセットされている。)が、外枠形状内部に有るか否
かの判断が行われ、図8の図形54に示すように、図形
要素19,110,111,112,113,114,
115が内部要素と認識される。
In the series of processing by the internal element recognition means 7, the process shown in FIG.
The elements shown in the figure 53 (11, 12, 13, 14, 15
, 16, 17, and 18 are outer frame elements, and 1 is set in the flag part of the data stored in the graphic element data storage device 210. ) is inside the outer frame shape, and as shown in the figure 54 of FIG. 8, the figure elements 19, 110, 111, 112, 113, 114,
115 is recognized as an internal element.

【0026】図4は閉ループ構成要素認識手段8の詳細
を示す流れ図である。閉ループ構成要素認識手段8は、
繰り返し処理部401と、処理フラグ判断部402と、
接続要素記憶初期処理部403と、接続要素データ記憶
処理部404と、接続要素検索処理及び処理フラグ設定
処理部405と、接続要素数判断部406と、閉ループ
構成終了判断部407と、閉ループ構成要素記憶処理部
408と、接続要素データ記憶装置409と、閉ループ
構成要素記憶装置410から構成されている。
FIG. 4 is a flowchart showing details of the closed loop component recognition means 8. The closed loop component recognition means 8 includes:
A repeat processing unit 401, a processing flag determination unit 402,
Connected element storage initial processing unit 403, Connected element data storage processing unit 404, Connected element search processing and processing flag setting processing unit 405, Number of connected elements determining unit 406, Closed loop configuration end determining unit 407, Closed loop component It is composed of a storage processing unit 408, a connected element data storage device 409, and a closed loop component storage device 410.

【0027】次に、このように構成された本実施例の閉
ループ構成要素認識手段8の動作について、図5〜図1
5の例を参照して説明する。
Next, the operation of the closed loop component recognition means 8 of this embodiment configured as described above will be explained with reference to FIGS. 5 to 1.
This will be explained with reference to example No. 5.

【0028】内部要素認識手段7から閉ループ構成要素
認識手段8に制御が移ると、繰り返し処理部401が内
部要素データ記憶装置305内に記憶されている図形要
素全てについて、閉ループ構成要素として繰り返し要素
の最後までN個の要素について制御処理を行う。
When the control is transferred from the internal element recognition means 7 to the closed-loop component recognition means 8, the repetition processing section 401 processes all the graphical elements stored in the internal element data storage device 305 into repeating elements as closed-loop components. Control processing is performed for N elements until the end.

【0029】繰り返し処理部401の内部処理の処理フ
ラグ判断部402は、内部要素データ記憶装置305の
データに示すフラグ部分を判断し、処理フラグが1の場
合は次の要素の処理を行う繰り返し処理部401に制御
を移す。処理フラグが0の場合は、接続要素記憶初期処
理部403に制御を渡す。
The processing flag determination unit 402 of the internal processing of the repetition processing unit 401 determines the flag portion indicated in the data of the internal element data storage device 305, and if the processing flag is 1, the repetition processing for processing the next element is performed. Control is transferred to section 401. If the processing flag is 0, control is passed to the connected element storage initial processing unit 403.

【0030】接続要素記憶初期処理部403は、接続要
素記憶装置409に記憶されたデータ数を0にする。ま
た、繰り返し処理部401で閉ループ構成要素を検索対
象としないために内部要素データ記憶装置305に記憶
されている内部要素データの処理フラグを1にする。処
理フラグを1にした場合、以後接続要素検索処理及び処
理フラグ設定処理部405で検索の対象としない。
The connected element storage initial processing unit 403 sets the number of data stored in the connected element storage device 409 to zero. Further, in order to exclude closed loop constituent elements from being searched for by the iterative processing unit 401, the processing flag of the internal element data stored in the internal element data storage device 305 is set to 1. When the processing flag is set to 1, it will not be searched by the connected element search processing and processing flag setting processing unit 405 from now on.

【0031】接続要素データ記憶処理部404は、図1
4の接続要素データ記憶装置内データ形式64に示す形
式で接続要素データ記憶装置409に記憶する。このデ
ータは、内部要素データ記憶装置305のどの位置にデ
ータが格納されているかの情報である。
The connected element data storage processing unit 404 is shown in FIG.
4 is stored in the connected element data storage device 409 in the format shown in the data format 64 in the connected element data storage device. This data is information about where in the internal element data storage device 305 the data is stored.

【0032】接続要素検索処理及び処理フラグ設定処理
部405は、内部要素データ記憶装置305に記憶され
た内部要素データの中から、接続要素データ記憶処理装
置409に最後に記憶された要素の端点座標データと一
致するデータを持つ要素を全て検索する。この場合一度
検出された要素を検索対象としないために内部要素デー
タ記憶装置305に記憶されている図形要素データの処
理フラグを1にする。処理フラグを1にした場合、以後
接続要素検索処理及び処理フラグ設定処理部405で検
索の対象にしない。また、処理フラグ判断部402で処
理済みと判断される。
The connected element search processing and processing flag setting processing section 405 searches the internal element data stored in the internal element data storage device 305 to find the end point coordinates of the element last stored in the connected element data storage processing device 409. Find all elements with matching data. In this case, the processing flag of the graphic element data stored in the internal element data storage device 305 is set to 1 so that the element once detected is not searched. When the processing flag is set to 1, it will not be searched by the connected element search processing and processing flag setting processing unit 405 from now on. Further, the processing flag determining unit 402 determines that the processing has been completed.

【0033】次に、接続要素数判断部406は、接続要
素数が1個の場合、この要素を閉ループ構成要素の一部
とみなし処理を接続要素データ記憶処理部404に移し
処理を繰り返す。接続要素数が0個の場合、閉ループが
構成されたかの判断を行う閉ループ構成終了判断部40
7の処理を行う。接続要素数が複数個の場合閉ループは
構成できないと判断し、繰り返し処理部401に制御を
渡す。
Next, when the number of connected elements is one, the connected element number determining unit 406 regards this element as part of a closed loop component and transfers the processing to the connected element data storage processing unit 404 to repeat the process. When the number of connected elements is 0, a closed loop configuration completion determination unit 40 determines whether a closed loop is configured.
Perform the process in step 7. If the number of connected elements is plural, it is determined that a closed loop cannot be constructed, and control is passed to the iterative processing unit 401.

【0034】閉ループ構成終了判断部407は、接続要
素データ記憶装置409に最初と最後に記憶された要素
の端点座標データが一致するか判断し、一致しない場合
、繰り返し処理部401に制御を渡す。一致した場合閉
ループは構成されたと判断し、閉ループ構成要素記憶処
理部408で、接続要素データ記憶装置409を介して
内部要素データ記憶装置305のデータを、閉ループ構
成要素記憶装置410に、図6の閉ループ構成要素記憶
装置内データ形式65に示す形式で閉ループ構成要素記
憶装置410に記憶する。このデータは、閉ループ番号
,要素番号を持つ。この閉ループ番号は、閉ループの構
成要素を識別するためである。
The closed-loop configuration end determining unit 407 determines whether the end point coordinate data of the first and last elements stored in the connected element data storage device 409 match, and if they do not match, it passes control to the repeat processing unit 401. If they match, it is determined that the closed loop has been configured, and the closed loop component storage processing unit 408 transfers the data of the internal element data storage device 305 to the closed loop component storage device 410 via the connected element data storage device 409 as shown in FIG. The data is stored in the closed-loop component storage device 410 in the format shown in the data format 65 in the closed-loop component storage device. This data has a closed loop number and an element number. This closed loop number is for identifying the components of the closed loop.

【0035】閉ループ構成要素認識手段8の一連の処理
で、図8の図形例54に示す内部要素は、閉ループが構
成されるか否かの判断が行われ、図9の図形例55に示
すように19,110,111,112と113が閉ル
ープ構成要素であると認識され、図5の図形例51を、
図5の図形例56に示すような図形として認識できる。
In a series of processes of the closed loop component recognition means 8, it is determined whether or not a closed loop is formed for the internal element shown in the graphic example 54 of FIG. 19, 110, 111, 112 and 113 are recognized as closed loop components, and the graphic example 51 in FIG.
It can be recognized as a figure as shown in figure example 56 in FIG.

【0036】[0036]

【発明の効果】以上説明したように本発明は、図形から
外枠の図形およびこの外枠図形の内部にある内部図形を
認識でき、例えば平面上に穴が空いているような図形に
対して、穴の形状を認識する場合、穴の形状毎に人間が
指示する必要が無く、特に多数の図形要素で構成される
図形では認識処理が容易になる。
Effects of the Invention As explained above, the present invention can recognize an outer frame figure and an internal figure inside this outer frame figure from a figure, for example, for a figure with a hole on a plane. When recognizing the shape of a hole, there is no need for a human to give instructions for each shape of the hole, and the recognition process becomes easy, especially for a figure composed of a large number of graphical elements.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】外枠形状認識手段6を説明する流れ図である。FIG. 2 is a flowchart illustrating outer frame shape recognition means 6. FIG.

【図3】内部要素認識手段7を説明する流れ図である。FIG. 3 is a flowchart illustrating internal element recognition means 7. FIG.

【図4】閉ループ構成要素認識手段8を説明する流れ図
である。
FIG. 4 is a flowchart illustrating the closed-loop component recognition means 8;

【図5】表示装置3に表示される図形の例を示す図であ
る。
FIG. 5 is a diagram showing an example of a graphic displayed on the display device 3. FIG.

【図6】外枠形状要素認識手段6が認識する外枠図形の
例を示す図である。
6 is a diagram showing an example of an outer frame figure recognized by the outer frame shape element recognition means 6. FIG.

【図7】外枠以外の図形の例を示す図である。FIG. 7 is a diagram showing an example of a figure other than an outer frame.

【図8】内部要素認識手段7が認識する内部要素図形の
例を示す図である。
FIG. 8 is a diagram showing an example of an internal element figure recognized by the internal element recognition means 7. FIG.

【図9】閉ループ構成要素認識手段8が認識する閉ルー
プ図形の例を示す図である。
9 is a diagram showing an example of a closed-loop figure recognized by the closed-loop component recognition means 8. FIG.

【図10】図1に示す実施例で認識された図形の例を示
す図である。
FIG. 10 is a diagram showing an example of a figure recognized in the embodiment shown in FIG. 1;

【図11】図形要素データ記憶装置210のデータ形式
を示す図である。
FIG. 11 is a diagram showing a data format of a graphic element data storage device 210.

【図12】外枠要素データ記憶装置のデータ形式を示す
図である。
FIG. 12 is a diagram showing a data format of an outer frame element data storage device.

【図13】内部要素データ記憶装置305のデータ形式
を示す図である。
FIG. 13 is a diagram showing the data format of the internal element data storage device 305.

【図14】接続要素データ記憶装置409のデータ形式
を示す図である。
FIG. 14 is a diagram showing the data format of the connected element data storage device 409.

【図15】閉ループ構成要素記憶装置410のデータ形
式を示す図である。
FIG. 15 is a diagram illustrating a data format of a closed-loop component storage device 410.

【符号の説明】[Explanation of symbols]

1    図形形状認識装置 2    図形処理装置 3    表示装置 4    操作卓 5    図形情報記憶装置 6    外枠形状要素認識手段 7    内部要素認識手段 8    閉ループ構成要素認識手段 201    図形要素データ読み込み及び記録処理2
02    指示要素データ読み込み処理及び処理フラ
グ設定処理部 203    外枠要素データ記憶処理部204   
 閉ループ構成終了判断部205    接続要素検索
処理及び処理フラグ設定処理部206    接続要素
数判断部 207    分岐要素表示処理部 208    接続要素データ読み込み処理部209 
   エラー処理部 210    図形要素データ記憶装置211    
外枠要素データ記憶装置301    繰り返し処理部 302    処理フラグ判断部 303    内外判断部 304    内部要素データ記憶処理部305   
 内部要素データ記憶装置401    繰り返し処理
部 402    処理フラグ判断部 403    接続要素記憶初期処理部404    
接続要素記憶処理部 405    接続要素検索処理及び処理フラグ設定処
理部406    接続要素数判断部 407    閉ループ構成終了判断部408    
閉ループ構成要素記憶処理部409    接続要素デ
ータ記憶装置410    閉ループ構成要素記憶装置
51    図形例 52    外枠図形例 53    外枠以外の図形例 54    内部要素図形例 55    閉ループ図形例 56    認識された図形例
1 Graphic shape recognition device 2 Graphic processing device 3 Display device 4 Operation console 5 Graphic information storage device 6 Outer frame shape element recognition means 7 Internal element recognition means 8 Closed loop component recognition means 201 Figure element data reading and recording processing 2
02 Instruction element data reading processing and processing flag setting processing unit 203 Outer frame element data storage processing unit 204
Closed-loop configuration end judgment unit 205 Connected element search processing and processing flag setting processing unit 206 Number of connected elements judgment unit 207 Branching element display processing unit 208 Connection element data reading processing unit 209
Error processing unit 210 Graphic element data storage device 211
Outer frame element data storage device 301 Repetition processing section 302 Processing flag judgment section 303 Inside/outside judgment section 304 Internal element data storage processing section 305
Internal element data storage device 401 Repetition processing unit 402 Processing flag determination unit 403 Connected element storage initial processing unit 404
Connected element storage processing unit 405 Connected element search processing and processing flag setting processing unit 406 Number of connected elements determining unit 407 Closed loop configuration end determining unit 408
Closed loop component storage processing unit 409 Connection element data storage device 410 Closed loop component storage device 51 Figure example 52 Outer frame figure example 53 Figure example other than outer frame 54 Internal element figure example 55 Closed loop figure example 56 Recognized figure example

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  図形の外枠を認識する外枠形状認識手
段と、前記外枠形状認識手段で認識された外枠の内側に
ある図形である内部要素を認識する内部要素認識手段と
、前記内部要素認識手段で認識された内部要素の中から
閉ループを構成している要素だけを認識する閉ループ構
成要素認識手段とを有することを特徴とする図形認識方
式。
1. Outer frame shape recognition means for recognizing an outer frame of a figure; internal element recognition means for recognizing an inner element that is a figure located inside the outer frame recognized by the outer frame shape recognition means; 1. A figure recognition method comprising: closed loop component recognition means for recognizing only elements constituting a closed loop from among the internal elements recognized by the internal element recognition means.
【請求項2】  表示装置に表示された図形の図形要素
データを読み込んで図形要素データ記憶装置に記憶させ
、前記図形要素データ記憶装置に記憶された図形要素デ
ータのうち操作卓から入力指示をされたものを外枠要素
データとして外枠要素データ記憶装置に記憶させ、前記
図形要素データ記憶装置に記憶された図形要素のうち前
記外枠要素データ記憶装置に最後に記憶された外枠要素
データと端点座標データが一致するものをさらに外枠要
素データとして前記外枠要素データ記憶装置に記憶させ
る外枠形状認識手段と、前記図形要素データ記憶装置に
記憶された図形要素データのうち前記外枠要素データ記
憶装置に記憶された外枠要素データが構成する外枠図形
の内部にある内部図形の内部要素データを内部要素デー
タ記憶装置に記憶させる内部要素認識手段と、前記内部
要素データ記憶装置に記憶された内部要素データの一つ
を接続要素データ記憶装置に記憶させ、前記内部要素デ
ータ記憶装置に記憶された内部要素データのうち前記接
続要素データ記憶装置に最後に記憶された内部要素デー
タと端点座標データが一致するものをさらに前記接続要
素データ記憶装置に記憶させ、前記接続要素データ記憶
装置に記憶した内部要素データの図形が閉ループを構成
した時に前記接続要素データ記憶装置に記憶した内部要
素データを閉ループ構成要素記憶装置に記憶させる閉ル
ープ構成要素認識手段とを有することを特徴とする図形
認識方式。
2. Graphical element data of a figure displayed on a display device is read and stored in a graphical element data storage device, and the graphical element data stored in the graphical element data storage device is inputted from an operation console. is stored as outer frame element data in an outer frame element data storage device, and among the graphic elements stored in the graphic element data storage device, the outer frame element data is stored as outer frame element data last stored in the outer frame element data storage device. Outer frame shape recognition means for further storing matching end point coordinate data in the outer frame element data storage device as outer frame element data; and out of the graphic element data stored in the graphic element data storage device, the outer frame internal element recognition means for storing, in the internal element data storage device, internal element data of an internal figure within an external frame figure constituted by the external frame element data stored in the data storage device; One of the internal element data stored in the connected element data storage device is stored in the connected element data storage device, and among the internal element data stored in the internal element data storage device, the end point and the internal element data last stored in the connected element data storage device are stored. Those whose coordinate data match are further stored in the connected element data storage device, and when the figures of the internal element data stored in the connected element data storage device form a closed loop, the internal element data stored in the connected element data storage device are stored in the connected element data storage device. and a closed-loop component recognition means for storing in a closed-loop component storage device.
JP7949691A 1991-04-12 1991-04-12 Graphic recognizing system Pending JPH04314184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7949691A JPH04314184A (en) 1991-04-12 1991-04-12 Graphic recognizing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7949691A JPH04314184A (en) 1991-04-12 1991-04-12 Graphic recognizing system

Publications (1)

Publication Number Publication Date
JPH04314184A true JPH04314184A (en) 1992-11-05

Family

ID=13691529

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7949691A Pending JPH04314184A (en) 1991-04-12 1991-04-12 Graphic recognizing system

Country Status (1)

Country Link
JP (1) JPH04314184A (en)

Similar Documents

Publication Publication Date Title
JP2829937B2 (en) Image search method and apparatus
JP3053265B2 (en) Screen display method when searching for sequence programs
JPH04314184A (en) Graphic recognizing system
JPH1049688A (en) Method for partial erasing method and partial detection method for picture data
JP3351039B2 (en) Information processing apparatus and method
JP3183418B2 (en) Figure registration processing method and apparatus
JPS6033625A (en) Conversational information retrieving device
JPS60175151A (en) Information processor
JPH10269312A (en) Character read area designating method
JPH06282619A (en) Graphic plotting device
JPH01171053A (en) Terminal device control system
JPH05108742A (en) Circuit diagram input system
JPS60186960A (en) Key operation storage system
JPH07210576A (en) Image retrieving device, image storage device and retrieving method
JPH05334382A (en) Automatic vector generating device
JPS6344217A (en) Station conversation control system
JPH01233510A (en) Command deciding method
JPH03103987A (en) Image input device
JPH05205021A (en) Edition processor
JPH0969166A (en) Information processor, its method and storage medium
JPH0159626B2 (en)
JPH0619995A (en) Circuit diagram editing system
JPS63311445A (en) Production processing system for interactive test program file
JPH03166654A (en) Circuit element connection retrieving method
JPH04107642A (en) Fault analysis processing system