JPH0115911B2 - - Google Patents

Info

Publication number
JPH0115911B2
JPH0115911B2 JP57169546A JP16954682A JPH0115911B2 JP H0115911 B2 JPH0115911 B2 JP H0115911B2 JP 57169546 A JP57169546 A JP 57169546A JP 16954682 A JP16954682 A JP 16954682A JP H0115911 B2 JPH0115911 B2 JP H0115911B2
Authority
JP
Japan
Prior art keywords
label code
verification
point label
lattice
grid
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.)
Expired
Application number
JP57169546A
Other languages
Japanese (ja)
Other versions
JPS5960577A (en
Inventor
Shigemi Osada
Akira Inoe
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP57169546A priority Critical patent/JPS5960577A/en
Publication of JPS5960577A publication Critical patent/JPS5960577A/en
Publication of JPH0115911B2 publication Critical patent/JPH0115911B2/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/20Image preprocessing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Character Input (AREA)

Description

【発明の詳細な説明】 (1) 発明の技術分野 本発明は線分抽出方式、特に線分と文字・記号
が混在する図面から線分のみを抽出する方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION (1) Technical Field of the Invention The present invention relates to a line segment extraction method, particularly to a method for extracting only line segments from a drawing in which line segments and characters/symbols coexist.

(2) 従来技術と問題点 一般に、格子軸が形成された書面、例えば方眼
紙に手書きにより記号、文字、線分を記入し、こ
の手書き図面内の情報を電子計算機等のデータ処
理装置に入力し、清書図面が得られる方法が行わ
れている。
(2) Prior art and problems Generally, symbols, characters, and line segments are written by hand on a document with grid axes, such as graph paper, and the information in this handwritten drawing is input into a data processing device such as a computer. However, methods are being used to obtain clean drawings.

しかし、従来の方式では文字、記号、線分が混
在する図面から必要な情報をデータ処理装置へ入
力する作業は、すべて人手に依存されていた。
However, in the conventional method, the work of inputting the necessary information from a drawing containing a mixture of characters, symbols, and line segments into a data processing device was entirely dependent on humans.

従つてパンチ入力のような人手に頼らざるを得
ない入力方式では多大の時間を要し、かつ作業者
にとつては単純でわずらわしいので、データ処理
効率が低下するという問題点があつた。
Therefore, input methods that require manual input, such as punch input, require a great deal of time and are simple and cumbersome for the operator, resulting in a problem of lower data processing efficiency.

(3) 発明の目的 本発明の目的は、記号、文字、線分が混在する
図面内の各格子点ごとにその近傍の情報を圧縮表
現した格子点コードを設定し、この圧縮コードを
基準にして先ず記号のみを抽出し、次にこの記号
と他の文字、線分群とを分離し、最後に線分のみ
を抽出することにより、従来多大の時間を要しか
つ作業者にとつて煩わしかつた人手による入力作
業をなくし、もつてデータ処理効率の向上を図る
ことにある。
(3) Purpose of the Invention The purpose of the present invention is to set a lattice point code that compresses information in the vicinity of each lattice point in a drawing containing a mixture of symbols, characters, and line segments, and to use this compressed code as a reference. Conventionally, by first extracting only the symbol, then separating this symbol from other characters and a group of line segments, and finally extracting only the line segments, this method conventionally took a lot of time and was troublesome for the operator. The aim is to eliminate manual input work and thereby improve data processing efficiency.

(4) 発明の構成 本発明によれば、予め定められた格子を基準と
して描かれた記号と、該格子軸上に沿つて描かれ
た記号間の線分と、記号の名称を意味する文字が
混在する図面を、計算機へ自動入力処理するため
の線分抽出方式において、予め定められた格子軸
に沿つて描かれた線図形(記号、線分)と文字が
混在する図面の入力画像を処理する工程;該入力
画像の有する情報を格子単位に格子点近傍の図形
構造を表現する格子点ラベルコードとして圧縮表
現する工程;該圧縮表現する工程の後に初期格子
点ラベルコードの抽出および複数個の検証処理と
検証ラベルコードの抽出後に格子点ラベルコード
の決定を行う工程であつて、ウインドウ内の第1
の4個の領域を基準として1次の第3検証処理を
行つて1次の3検証ラベルコードを抽出し、次に
ウインドウ内の第2の4個の領域を基準として2
次の第3検証処理を行つて第3検証ラベルコード
を抽出し、最後にウインドウ内の第3の4個の領
域を基準として3次の第3検証処理を行つて第3
検証ラベルコードを抽出した後に特定の決定論理
に従つて第3の検証ラベルコードを決定するプロ
セスを含むもの;第2検証処理によつて入力画像
を格子軸上に正規化した後、第2検証ラベルコー
ドを抽出するために投影処理を実行するに際して
ギヤツプ方向の抽出は該投影結果を基にして各方
向における投影結果が連続しているか否かの判定
によつて行う工程;線パターンの切れによる格子
点ラベルコードの不連続性をあいまいな腕として
結合しておき、後続の処理で確実な腕として変
化・修正する処理を施し、1格子距離間の切れに
対処する工程;単一の線分が位置ズレに起因して
平行な二つの格子軸上の格子点ラベルコードとし
て二重に抽出される場合に、該線分の位置ズレの
状態を格子点ラベルコードから推定し、想定され
た格子軸にのみ確実な格子点ラベルコードを生成
する工程;および最初に、あいまいな格子点ラベ
ルコードを検出し、その4方向コードに沿つた方
向の格子点ラベルコードを逐次検索する過程で、
あいまいな格子点ラベルコードをはさむ形の確実
な格子点ラベルコードが出現すると、そのあいま
いさは線分の局所的な変動によるものであると解
釈し、確実な格子点ラベルコードへと変換する工
程;とを具備し、認識対象は線図形と文字が混在
する図面であり、画像情報を小矩形単位毎にコー
ド化して線分のみを抽出し、線分をベクトル化す
ることを特徴とする線分抽出方式、が提供され
る。
(4) Structure of the Invention According to the present invention, a symbol drawn based on a predetermined grid, a line segment between the symbols drawn along the grid axis, and a character denoting the name of the symbol. In the line segment extraction method for automatically inputting drawings containing a mixture of characters into a computer, an input image of a drawing containing a mixture of line figures (symbols, line segments) and characters drawn along predetermined grid axes is used. Processing step; A step of compressing and expressing the information possessed by the input image as a lattice point label code that expresses the graphic structure in the vicinity of the lattice points in lattice units; Extracting an initial lattice point label code and a plurality of initial lattice point label codes after the compressed expression step; This is the process of determining the grid point label code after the verification process and the extraction of the verification label code.
The first-order third verification process is performed using the four areas in the window as the reference to extract the first-order three-verification label code, and then the second four areas in the window are used as the reference and the second
The following third verification process is performed to extract the third verification label code, and finally, the third verification process is performed using the third four areas in the window as a reference, and the third verification label code is extracted.
includes a process of determining a third verification label code according to a specific decision logic after extracting the verification label code; after normalizing the input image on the grid axes by a second verification process; When performing projection processing to extract a label code, the gap direction is extracted by determining whether or not the projection results in each direction are continuous based on the projection results; The process of combining discontinuities in grid point label codes as ambiguous arms, and applying processing to change and modify them as reliable arms in subsequent processing to deal with breaks between one grid distance; a single line segment is extracted twice as a lattice point label code on two parallel lattice axes due to positional deviation, the state of the positional deviation of the line segment is estimated from the lattice point label code, and the assumed lattice A step of generating a reliable grid point label code only in the axis; and a process of first detecting an ambiguous grid point label code and sequentially searching for grid point label codes in directions along the four-way code;
When a reliable grid point label code sandwiching an ambiguous grid point label code appears, the ambiguity is interpreted as being due to local variations in the line segment, and the process is converted into a reliable grid point label code. ; the object to be recognized is a drawing in which line figures and characters are mixed, the image information is encoded in units of small rectangles, only the line segments are extracted, and the line segments are converted into vectors. A separate extraction method is provided.

(5) 発明の実施例 以下、本発明を実施例により添付図面を参照し
て説明する 本発明は文字、記号、線分の混在する図面(第
1図)から格子点G1乃至G9(第2図)の周囲に、
例えば線分V(第3図)が存在する場合、格子点
G5を中心にして第2図に示す矢印の存在する範
囲を中心にして、画像の存在の有無および存在す
る場合には、それが線情報としての確からしさ、
図形データがこの格子点G5の上下左右のどの方
向に存在するのか、それからこの画像の存在する
位置までのずれ等をその格子点G5の情報として
格納しておく。そしてこれらの各格子点のデータ
にもとづき上記手書き図面の線分のみをベクトル
として抽出し、計算機等のデータ処理装置に自動
入力できるようにしたものである。
(5) Embodiments of the Invention The present invention will be explained below by way of embodiments with reference to the accompanying drawings . (Figure 2)
For example, if a line segment V (Fig. 3) exists, the grid point
Centering on G 5 and the range where the arrow shown in Figure 2 exists, determine whether or not an image exists, and if so, its certainty as line information,
In which direction of the grid point G5 , top, bottom, left, or right, the graphic data exists, and the deviation from this to the position of this image are stored as information about the grid point G5 . Then, based on the data of each of these lattice points, only the line segments of the handwritten drawing are extracted as vectors, which can be automatically input into a data processing device such as a computer.

本発明は、先ず入力画像を格子軸を基準とした
矩形領域単位(第5図)で情報圧縮し、格子点ラ
ベルコード(第4図)を抽出する。第4図の格子
点ラベルコードは20ビツトであつて最終的な圧縮
情報であり、既に知られているようにこの格子点
ラベルコードの決定は初期格子点ラベルコード
(LBL)の抽出、第1検証処理、第2検証ラベル
コード(LB1)の抽出、第2検証処理、第2検証
ラベルコード(LB2)の抽出、第3検証処理およ
び第3検証ラベルコード(LB3)の抽出の後に行
われる。
The present invention first compresses information on an input image in units of rectangular areas (FIG. 5) with grid axes as a reference, and extracts grid point label codes (FIG. 4). The lattice point label code in Fig. 4 is 20 bits and is the final compressed information, and as is already known, the determination of this lattice point label code involves the extraction of the initial lattice point label code (LBL), the first This is performed after the verification process, extraction of the second verification label code (LB1), second verification process, extraction of the second verification label code (LB2), third verification process, and extraction of the third verification label code (LB3).

本発明は、従来の単純なウインドウの代わりに
第5図に示すようにD3′、L3′、R3′の部分を追加
したウインドウ改良ウインドウSW′を用い、上記
第3検証処理を改善することにより第3検証ラベ
ルコード(LB3)を抽出しかつ格子点ラベルコー
ドにおいて従来の情報の他に4ビツト乃至7ビツ
ト目のギヤツプ方向情報を追加するようになつて
いる。
The present invention improves the third verification process by using an improved window SW' in which D 3 ', L 3 ', and R 3 ' parts are added as shown in FIG. 5 instead of the conventional simple window. As a result, the third verification label code (LB3) is extracted, and the gap direction information of the 4th to 7th bits is added to the lattice point label code in addition to the conventional information.

(A) 第3検証処理の改善 抽出方法はまずウインドウSW′内の領域
D3・L3・U3・R3の4つの領域を基に従来の
“第3検証ラベルコード(LB3)”の抽出法と同
様の方法でLB3′を抽出する。第6図にこの例
を示す。次にウインドウSW′内の領域D3′・
L3′・U3′・R3′の4つの領域を基に、同様の方
法でLB3″を抽出する。第7図にこの例を示す。
最後にこうして得られたLB3′とLB3″から次の
論理によつて“第3検証ラベルコード(LB3)”
を決定する。
(A) Improvement of the third verification process The extraction method is first
Based on the four areas D 3 , L 3 , U 3 , and R 3 , LB3' is extracted using the same method as the conventional method for extracting the "third verification label code (LB3)". An example of this is shown in FIG. Next, area D 3 ′ in window SW′
Based on the four regions L 3 ′, U 3 ′, and R 3 ′, LB3″ is extracted in a similar manner. An example of this is shown in FIG.
Finally, from LB3′ and LB3″ obtained in this way, the “third verification label code (LB3)” is generated using the following logic.
Determine.

LB3の決定論理 LB3′をまずLB3に代入する。次に R″=1&R=0→R=1、FR=1、FF=1、G
R=1、GF=1 R″=1&R=0→R=1、FR=1、FF=1、G
R=1、GF=1 U″=1&R=0→U=1、FU=1、FF=1、GU=1、G
F=1 R″=1&R=0→R=1、FR=1、FF=1、G
R=1、GF=1 U″=1&R=0→U=1、FU=1、FF=1、GU=1、G
F=1 L″=1&L=0→L=1、FL=1、FF=1、GL=1、G
F=1 R″=1&R=0→R=1、FR=1、FF=1、G
R=1、GF=1 U″=1&R=0→U=1、FU=1、FF=1、GU=1、G
F=1 L″=1&L=0→L=1、FL=1、FF=1、GL=1、G
F=1 D″=1&D=0→D=1、FD=1、FF=1、GD=1、G
F=1 の処理を実行し、LB3を補正するとともに、第4
図のGF・GD・GL・GU・GRの情報を生成する。
Decision logic of LB3 First, assign LB3' to LB3. Next, R″=1&R=0→R=1, F R =1, F F =1, G
R = 1, G F = 1 R'' = 1 & R = 0 → R = 1, F R = 1, F F = 1, G
R = 1, G F = 1 U'' = 1 & R = 0 → U = 1, F U = 1, F F = 1, G U = 1, G
F = 1 R'' = 1 & R = 0 → R = 1, F R = 1, F F = 1, G
R = 1, G F = 1 U'' = 1 & R = 0 → U = 1, F U = 1, F F = 1, G U = 1, G
F = 1 L'' = 1 & L = 0 → L = 1, F L = 1, F F = 1, G L = 1, G
F = 1 R'' = 1 & R = 0 → R = 1, F R = 1, F F = 1, G
R = 1, G F = 1 U'' = 1 & R = 0 → U = 1, F U = 1, F F = 1, G U = 1, G
F = 1 L'' = 1 & L = 0 → L = 1, F L = 1, F F = 1, G L = 1, G
F = 1 D″ = 1 & D = 0 → D = 1, F D = 1, F F = 1, G D = 1, G
Executes the process of F = 1, corrects LB3, and
Generate information for G F , G D , G L , G U , and G R in the figure.

上記処理によつて第5図に示した程度の線パタ
ーンの切れは充分吸収し得る。(第8図) (B) ギヤツプ方向制御の抽出処理の追加 第2検証処理によつて入力画像を格子軸上に
正規化した後、第2検証ラベルコードを抽出す
るために投影処理を実行するが、ギヤツプ方向
の抽出はこの投影結果を基にして各方向におけ
る投影結果が連続しているか否かの判定によつ
て行う。第9図、第10図に処理例を示す。
By the above processing, the breakage of the line pattern as shown in FIG. 5 can be sufficiently absorbed. (Figure 8) (B) Addition of gap direction control extraction process After normalizing the input image on the grid axis by the second verification process, execute the projection process to extract the second verification label code. However, the gap direction is extracted by determining whether or not the projection results in each direction are continuous based on the projection results. Processing examples are shown in FIGS. 9 and 10.

ギヤツプ方向の情報(GF・GD・GL・GU
GR)を除いての格子点ラベルコードの統合の
仕方は全く従来の方式と同じである。ギヤツプ
方向に関しては4方向コード(第4図、17〜
20bit)と論理積をとつた形でGD〜GR(第4図
の4〜7bit)に入れる。さらに、GD〜GRのい
ずれかが1であればGFを1にするとともにFF
を1にする。
Gap direction information (G F , G D , G L , G U ,
The method of integrating the grid point label codes except for G R ) is completely the same as the conventional method. Regarding the gap direction, use the 4-way code (Fig. 4, 17~
20 bits) and put it in G D ~ G R (4 to 7 bits in Figure 4). Furthermore, if any of G D to G R is 1, set G F to 1 and set F F
Set to 1.

以上の処理によつて、第4図に示す格子点ラベ
ルコードが抽出される。以下すべての本発明はこ
のコード情報を基にして処理を行う。
Through the above processing, the lattice point label code shown in FIG. 4 is extracted. All of the following processes of the present invention are performed based on this code information.

第11図は本発明による処理の流れ図である。 FIG. 11 is a flowchart of the process according to the present invention.

の処理; 従来方式で提案した“対の処理”と全く同じ
である。
Processing: This is exactly the same as the “pair processing” proposed in the conventional method.

線切れ補正; 格子点ラベルコードの抽出の際の“線切れ吸
収”は高々格子間距離の1/3程度までの切れに
は有効であるが、1格子間距離装置の切れには
対処できない。
Line break correction; "Line break absorption" when extracting grid point label codes is effective for breaks up to at most 1/3 of the inter-lattice distance, but it cannot cope with breaks in the 1-lattice distance device.

そこで1格子間距離の切れを吸収するために
導入されたのが本処理である。
Therefore, this process was introduced to absorb the discontinuity of one interstitial distance.

本処理は格子点ラベルコード(第4図)を基
に第12図に示した状態を検出し、第12図イ
の場合はa、bの格子点ラベルコードを第12
図ロの場合はc、dの格子点ラベルコードを修
正するものである。第12図は格子点ラベルコ
ードの4方向コード(D・L・U・R)を絵の
形で復元したもので、破線で示した部分は
don′t careを表わす。第12図イの状態が検出
された場合、a、bの格子点ラベルコードを次
のように修正する。
This process detects the state shown in Fig. 12 based on the grid point label code (Fig. 4), and in the case of Fig. 12 A, the grid point label codes of a and b are
In the case of Figure B, the lattice point label codes of c and d are corrected. Figure 12 is a pictorial reconstruction of the four-way code (D, L, U, R) of the grid point label code, and the parts indicated by broken lines are
Expresses don't care. When the state shown in FIG. 12A is detected, the lattice point label codes of a and b are modified as follows.

a;格子点ラベルコードの 20bit(R)、 16bit(FR)、 0bit(FF)、 7bit(GR)、 3bit(GF) を1にする。 a; Set 20bit (R), 16bit ( FR ), 0bit ( FF ), 7bit (GR ) , and 3bit ( GF ) of the grid point label code to 1.

b;格子点ラベルコードの 18bit(L)、 14bit(FL)、 0bit(FF)、 5bit(GL)、 3bit(GF) を1にする。 b; Set 18bit (L), 14bit ( FL ), 0bit ( FF ), 5bit (GL ) , and 3bit ( GF ) of the grid point label code to 1.

同様に、第12図ロの状態が検出された場
合、c、dの格子点ラベルコードを次のように
修正する。
Similarly, when the state shown in FIG. 12 (b) is detected, the grid point label codes of c and d are modified as follows.

c;格子点ラベルコードの 17bit(D)、 13bit(FD)、 0bit(FF)、 4bit(GD)、 3bit(GF) を1にする。 c; Set 17bit (D), 13bit (F D ), 0bit (F F ), 4bit (G D ), and 3bit (G F ) of the grid point label code to 1.

b;格子点ラベルコードの 19bit(U)、 15bit(FU)、 0bit(FF)、 6bit(GU)、 3bit(GF) を1にする。 b; Set 19bit (U), 15bit (F U ), 0bit (F F ), 6bit (G U ), and 3bit (G F ) of the grid point label code to 1.

このようにして線パターンの切れによる格子
点ラベルコードの不連続性をあいまいな腕とし
て結合しておき、後続の処理で確実な腕として
変化・修正する処理を施すことによつて1格子
間距離程度の切れに対処できる。
In this way, the discontinuities in the grid point label code due to breaks in the line pattern are combined as ambiguous arms, and by performing processing to change and modify them as reliable arms in subsequent processing, one grid distance Can handle minor cuts.

ズレ補正; 従来方式で提案した“ズレ補正”と全く同
じである。
Misalignment correction: This is exactly the same as the "misalignment correction" proposed in the conventional method.

あいまい補正; 従来方式で提案した“あいまい補正”と全
く同じである。
Ambiguity correction: This is exactly the same as the “ambiguity correction” proposed in the conventional method.

記号の分類; 従来方式で提案した方式によつて記号を抽出
する。
Classification of symbols: Symbols are extracted using the method proposed in the conventional method.

記号領域の分離; 従来方式で提案した方式と同じである。但し
記号領域のフラグは第4図の格子点ラベルコー
ドの1bitに設定する。
Separation of symbol areas: Same as the method proposed in the conventional method. However, the symbol area flag is set to 1 bit of the grid point label code in Figure 4.

ズレ補正; 手書き図面の処理においては線分の位置ズレ
を充分考慮する必要がある。本来単一の線分で
あるものがこの位置ズレに起因して平行する二
つの格子軸上の格子点ラベルコードとして二重
に抽出される場合が生じる。
Misalignment correction: When processing handwritten drawings, it is necessary to fully consider misalignment of line segments. Due to this positional shift, what is originally a single line segment may be extracted twice as a lattice point label code on two parallel lattice axes.

本処理はこのような線分の位置ズレの状態を
格子点ラベルコードから推定し設計者が意図し
たと思われる格子軸上にのみ確実な格子点ラベ
ルコードを生成するものである。ここで確実な
格子点ラベルコードというのはギヤツプ方向
(4〜7bit)ズレ方向(8〜11bit)およびあい
まい方向(13〜16bit)がすべて0であるもの
をさし、あいまいな格子点ラベルコードという
のはギヤツプ方向、ズレ方向、あいまい方向の
いずれかのbitが1であるものをさす。
This process estimates the state of positional deviation of such line segments from the lattice point label code and generates reliable lattice point label codes only on the lattice axes considered to be intended by the designer. Here, a reliable lattice point label code is one in which the gap direction (4 to 7 bits), shift direction (8 to 11 bits), and ambiguous direction (13 to 16 bits) are all 0, and is called an ambiguous lattice point label code. indicates that any bit in the gap direction, deviation direction, or ambiguous direction is 1.

第13図は本処理例であるが、最初に相対す
る方向に“ズレ方向”を有する一対の隣接格子
を捉え、これを単一線分によるズレの表現と解
釈する。次に、これを隣接する格子点ラベルコ
ードを“4方向コード”に基づき逐次検索しな
がら確実な格子点ラベルコードが付与された格
子の存在する軸を検出する。最後にその軸を確
実な格子点ラベルコードへと高めるとともに、
他方の格子点ラベルコードを除去する。
FIG. 13 is an example of this processing. First, a pair of adjacent grids having "misalignment directions" in opposing directions are captured, and this is interpreted as an expression of misalignment by a single line segment. Next, by sequentially searching for adjacent lattice point label codes based on the "four-way code", an axis on which a lattice to which a certain lattice point label code is attached is present is detected. Finally, while raising the axis to a reliable grid point label code,
Remove the other grid point label code.

あいまい補正; 本処理は格子点ラベルコードの持つ“あいま
いさ”をより大域的な視野から捉え、確実な格
子点ラベルコードへと高めていくもので、手書
図面特有の線切れ雑音、あるいは線分に近接し
て描かれた文字の影響による“あいまいさ”を
除去する。
Ambiguity correction: This process captures the "ambiguities" of grid point label codes from a broader perspective and improves the accuracy of grid point label codes. Eliminate "ambiguities" caused by characters drawn close to each other.

線分として不完全な形態を有する格子点には
“ギヤツプ方向”、“あいまい方向”を持つあい
まいな格子点ラベルコードが付与される。当
然、文字の存在する格子点にも同じくあいまい
な格子点ラベルコードが付与されるわけである
が、ここではこのコード情報の持つ“あいまい
さ”が線分の局所的変動によるものか、それと
も文字そのものに起因するのかの解釈を与え、
その解釈に基づく補正を行う。
An ambiguous lattice point label code having a "gap direction" and an "ambiguous direction" is assigned to a lattice point that has an incomplete form as a line segment. Naturally, the same ambiguous grid point label code is given to grid points where characters exist, but here we wonder whether the "ambiguity" of this code information is due to local variations in line segments, or whether the characters Give an interpretation of whether it is caused by that,
Make corrections based on that interpretation.

第14図は本処理例であり、具体的には、最
初に、あいまいな格子点ラベルコードを検出
し、その4方向コードに沿つた方向の格子点ラ
ベルコードを逐次検索する。この検索の過程で
あいまいな格子点ラベルコードをはさむ形の確
実な格子点ラベルコードが出現すると、その
“あいまいさ”は線分の局所的な変動によるも
のであると解釈し、確実な格子点ラベルコード
へと変換する。
FIG. 14 shows an example of this process. Specifically, an ambiguous lattice point label code is first detected, and lattice point label codes in directions along the four-way code are sequentially searched. In the process of this search, if a reliable grid point label code that is sandwiched between ambiguous grid point label codes appears, the "ambiguity" is interpreted as being due to local variations in the line segment, and the reliable grid point Convert to label code.

本処理の結果、確実な格子点ラベルコードは線
分の構成要素であると解釈され、最後まで“あい
まいさ”を保持したままの格子点ラベルコードは
文字部分であると解釈される。
As a result of this processing, reliable lattice point label codes are interpreted as constituent elements of line segments, and lattice point label codes that retain "ambiguity" until the end are interpreted as character parts.

その後、線分に関してはシンボル領域であると
いうフラグ(S)と“4方向コード”を基にし
て、記号間を追跡し、ネツトワークの構造とベク
トルで表現する。
Thereafter, the line segments are traced between symbols based on the flag (S) indicating that they are symbol areas and the "4-way code", and are expressed by the network structure and vectors.

第15図及び第16図は本発明の一実施例であ
る。全体の構成は従来方式と同じである。
FIGS. 15 and 16 show an embodiment of the present invention. The overall configuration is the same as the conventional method.

(6) 発明の効果 本発明によれば、手書図面特有の線切れ・位置
ズレを吸収でき、線分に隣接して描かれた文字の
影響を除去できるので、文字/図面が混在する図
面の中からの線分の抽出には非常に有効である。
(6) Effects of the Invention According to the present invention, it is possible to absorb line breaks and positional deviations peculiar to handwritten drawings, and remove the influence of characters drawn adjacent to line segments, so that drawings containing mixed characters and drawings can be eliminated. It is very effective for extracting line segments from inside.

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

第1図は手書き図面の例を示す図、第2図は格
子点の概略図、第3図は格子点データの説明図、
第4図は格子点ラベルコードの説明図、第5図乃
至第8図は第3検証処理及び第3検証ラベルコー
ド抽出の説明図、第9図と10図はギヤツプ方向
抽出の説明図、第11図は本発明の処理の流れの
説明図、第12図は線切れの補正処理説明図、第
13図はズレ補正処理の説明図、第14図はあい
まい補正処理の説明図、第15図と第16図は本
発明の一実施例を示す構成図である。 1……画像入力装置、2……画像メモリ、3…
…検証回路、4……基準点検出回路、5……格子
点テーブル、6……格子変換回路(水平)、7…
…格子点ラベルコード生成回路(水平)、8……
格子変換回路(垂直)、9……格子点ラベルコー
ド生成回路(垂直)、10……アドレス制御部、
11……制御部、12……検証ウインドウ設定回
路、13……LBLテーブル、14……LB1テー
ブル、15……LB2テーブル、16……SX1・
SY1テーブル、17……SX2・SY2テーブル、1
8……アドレス変換回路、19……LB3生成回
路、20……LB3テーブル、21……格子点ラベ
ルコード決定回路、22……格子点ラベルコード
テーブル、23……対処理回路、24……線パタ
ーン切れ補正回路、25……第1ずれ補正回路、
26……第1あいまい補正回路、27……第2ず
れ補正回路、28……第2あいまい補正回路、3
0……記号分類用辞書メモリ、31……記号領域
の検出回路、32……記号領域設定回路、33…
…記号分類テーブル、34……類似度演算回路。
Fig. 1 is a diagram showing an example of a handwritten drawing, Fig. 2 is a schematic diagram of lattice points, and Fig. 3 is an explanatory diagram of lattice point data.
FIG. 4 is an explanatory diagram of the lattice point label code, FIGS. 5 to 8 are explanatory diagrams of the third verification process and third verification label code extraction, FIGS. 9 and 10 are explanatory diagrams of gap direction extraction, and FIGS. Fig. 11 is an explanatory diagram of the processing flow of the present invention, Fig. 12 is an explanatory diagram of the line break correction process, Fig. 13 is an explanatory diagram of the misalignment correction process, Fig. 14 is an explanatory diagram of the ambiguity correction process, and Fig. 15 is an explanatory diagram of the processing flow of the present invention. and FIG. 16 are configuration diagrams showing one embodiment of the present invention. 1... Image input device, 2... Image memory, 3...
... Verification circuit, 4... Reference point detection circuit, 5... Grid point table, 6... Grid conversion circuit (horizontal), 7...
...Lattice point label code generation circuit (horizontal), 8...
Lattice conversion circuit (vertical), 9... Lattice point label code generation circuit (vertical), 10... Address control section,
11...Control unit, 12...Verification window setting circuit, 13...LBL table, 14...LB1 table, 15...LB2 table, 16...SX1・
SY1 table, 17...SX2/SY2 table, 1
8... Address conversion circuit, 19... LB3 generation circuit, 20... LB3 table, 21... Grid point label code determination circuit, 22... Grid point label code table, 23... Pair processing circuit, 24... Line Pattern breakage correction circuit, 25...first deviation correction circuit,
26...First ambiguity correction circuit, 27...Second deviation correction circuit, 28...Second ambiguity correction circuit, 3
0... Dictionary memory for symbol classification, 31... Symbol area detection circuit, 32... Symbol area setting circuit, 33...
...Symbol classification table, 34...Similarity calculation circuit.

Claims (1)

【特許請求の範囲】 1 予め定められた格子を基準として描かれた記
号と、該格子軸上に沿つて描かれた記号間の線分
と、記号の名称を意味する文字が混在する図面
を、計算機へ自動入力処理するための線分抽出方
式において、 予め定められた格子軸に沿つて描かれた線図形
(記号、線分)と文字が混在する図面の入力画像
を処理する工程; 該入力画像の有する情報を格子単位に格子点近
傍の図形構造を表現する格子点ラベルコードとし
て圧縮表現する工程; 該圧縮表現する工程の後に初期格子点ラベルコ
ードの抽出および複数図の検証処理と検証ラベル
コードの抽出後に格子点ラベルコードの決定を行
う工程であつて、ウインドウ内の第1の4個の領
域を基準として1次の第3検証処理を行つて1次
の第3検証ラベルコードを抽出し、次にウインド
ウ内の第2の4個の領域を基準として2次の第3
検証処理を行つて第3検証ラベルコードを抽出
し、最後にウインドウ内の第3の4個の領域を基
準として3次の第3検証処理を行つて第3検証ラ
ベルコードを抽出した後に特定の決定論理に従つ
て第3の検証ラベルコードを決定するプロセスを
含むもの; 第2検証処理によつて入力画像を格子軸上に正
規化した後、第2検証ラベルコードを抽出するた
めに投影処理を実行するに際してギヤツプ方向の
抽出は該投影結果を基にして各方向における投影
結果が連続しているか否かの判定によつて行う工
程; 線パターンの切れによる格子点ラベルコードの
不連続性をあいまいな腕として結合しておき、後
続の処理で確実な腕として変化・修正する処理を
施し、1格子間距離の切れに対処する工程; 単一の線分が位置ズレに起因して平行な二つの
格子軸上の格子点ラベルコードとして二重に抽出
される場合に、該線分の位置ズレの状態を格子点
ラベルコードから推定し、想定された格子軸にの
み確実な格子点ラベルコードを生成する工程;お
よび 最初に、あいまいな格子点ラベルコードを検出
し、その4方向コードに沿つた方向の格子点ラベ
ルコードを逐次検索する過程で、あいまいな格子
点ラベルコードをはさむ形の確実な格子点ラベル
コードが出現すると、そのあいまいさは線分の局
所的な変動によるものであると解釈し、確実な格
子点ラベルコードへと変換する工程; とを具備し、 認識対象は線図形と文字が混在する図面であ
り、画像情報を小矩形単位毎にコード化して線分
のみを抽出し、線分をベクトル化することを特徴
とする線分抽出方式。
[Claims] 1. A drawing in which symbols drawn based on a predetermined grid, line segments between the symbols drawn along the grid axis, and characters denoting the names of the symbols coexist. , in a line segment extraction method for automatic input processing into a computer, processing an input image of a drawing containing a mixture of line figures (symbols, line segments) and characters drawn along predetermined grid axes; A step of compressing and expressing the information possessed by the input image as a lattice point label code that expresses the graphic structure in the vicinity of the lattice points in lattice units; After the compressed expression step, extraction of the initial lattice point label code and verification processing and verification of multiple figures are performed. This is a step of determining grid point label codes after label code extraction, in which a first-order third verification process is performed using the first four areas in the window as a reference to obtain a first-order third verification label code. Then, the second four areas in the window are used as the reference to extract the second-order third area.
Verification processing is performed to extract the third verification label code, and finally, the third verification processing is performed using the third four areas in the window as a reference to extract the third verification label code. includes a process of determining a third verification label code according to decision logic; after normalizing the input image on the grid axis by a second verification process, a projection process to extract the second verification label code; When performing this process, the gap direction is extracted by determining whether or not the projection results in each direction are continuous based on the projection results; The process of combining them as ambiguous arms and changing and modifying them as reliable arms in subsequent processing to deal with breaks in one grid distance; When a lattice point label code on two lattice axes is extracted twice, the state of positional deviation of the line segment is estimated from the lattice point label code, and a lattice point label code that is reliable only for the assumed lattice axis is generated. First, an ambiguous lattice point label code is detected, and in the process of sequentially searching for lattice point label codes in directions along the four-way code, When a grid point label code appears, the ambiguity is interpreted as being due to local variations in the line segment, and is converted into a reliable grid point label code; and the recognition target is a line figure. The line segment extraction method is characterized in that the image information is encoded in units of small rectangles, only the line segments are extracted, and the line segments are converted into vectors.
JP57169546A 1982-09-30 1982-09-30 Segment extracting system Granted JPS5960577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57169546A JPS5960577A (en) 1982-09-30 1982-09-30 Segment extracting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57169546A JPS5960577A (en) 1982-09-30 1982-09-30 Segment extracting system

Publications (2)

Publication Number Publication Date
JPS5960577A JPS5960577A (en) 1984-04-06
JPH0115911B2 true JPH0115911B2 (en) 1989-03-22

Family

ID=15888477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57169546A Granted JPS5960577A (en) 1982-09-30 1982-09-30 Segment extracting system

Country Status (1)

Country Link
JP (1) JPS5960577A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52117531A (en) * 1976-03-30 1977-10-03 Fujitsu Ltd Pattern recognition system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52117531A (en) * 1976-03-30 1977-10-03 Fujitsu Ltd Pattern recognition system

Also Published As

Publication number Publication date
JPS5960577A (en) 1984-04-06

Similar Documents

Publication Publication Date Title
CN110363252B (en) End-to-end trend scene character detection and identification method and system
CN110032998B (en) Method, system, device and storage medium for detecting characters of natural scene picture
JP5357612B2 (en) Underline removal device
RU2641225C2 (en) Method of detecting necessity of standard learning for verification of recognized text
US7643682B2 (en) Method of identifying redundant text in an electronic document
US6711292B2 (en) Block selection of table features
JPH04104324A (en) Program generating device
JPH05307638A (en) Method for converting bit map image document into encoded data
JPH0196771A (en) Recognizing system for circular arc part
JP2006031546A (en) Character direction identifying device, character processing device, program and storage medium
US20070133029A1 (en) Method of recognizing text information from a vector/raster image
Alahmadi VID2XML: Automatic Extraction of a Complete XML Data From Mobile Programming Screencasts
JPH0115911B2 (en)
CN115797955A (en) Table structure identification method based on cell constraint and application thereof
Reisswig et al. Chargrid-OCR: End-to-end trainable optical character recognition through semantic segmentation and object detection
JPH06231253A (en) Image correcting device and drawing inputting device
CN111103987B (en) Formula input method and computer storage medium
JP4083723B2 (en) Image processing device
KR930012142B1 (en) Individual character extracting method of letter recognition apparatus
Baz et al. A New Approach and Algorithm for Baseline Detection of Arabic Handwriting
Tran et al. Automatic Building of a Large and Complete Dataset for Image-based Table Structure Recognition
JPH07104940B2 (en) Figure recognition device
JP2890788B2 (en) Document recognition device
Saddami et al. A new approach for Jawi sub-word segmentation using histogram projection
JPH0377550B2 (en)