JPS603676B2 - Intersection extraction method - Google Patents

Intersection extraction method

Info

Publication number
JPS603676B2
JPS603676B2 JP54030825A JP3082579A JPS603676B2 JP S603676 B2 JPS603676 B2 JP S603676B2 JP 54030825 A JP54030825 A JP 54030825A JP 3082579 A JP3082579 A JP 3082579A JP S603676 B2 JPS603676 B2 JP S603676B2
Authority
JP
Japan
Prior art keywords
point
scanning
stroke
memory
intersection
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
JP54030825A
Other languages
Japanese (ja)
Other versions
JPS55123777A (en
Inventor
篤 霜山
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 JP54030825A priority Critical patent/JPS603676B2/en
Publication of JPS55123777A publication Critical patent/JPS55123777A/en
Publication of JPS603676B2 publication Critical patent/JPS603676B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は、文字などの交差点抽出方式の改良に関するも
のである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an improvement in a method for extracting intersections of characters, etc.

文字認識は、ストロークの発生点、消失点、始点、終点
および交差点などの特徴点に基づいて行われる。
Character recognition is performed based on feature points such as stroke generation points, vanishing points, start points, end points, and intersections.

従来技術においては、量子化された画像情報が格納され
た画像メモリを3×3のマスクを用いて走査して細線化
処理を行い、細線化処理された画像情報から交差点を抽
出している。しかし、この種の交差点抽出方式は、細線
化処理に非常に多くの処理ステップを必要とすること及
び交差点を確実に抽出できないという欠点を有している
。本発明は、上記の欠点を除去するものであって、処理
ステップを大幅に減少できること、及び認識精度を高め
得ること等の特徴を有する交差点抽出方式を提供するこ
とを目的としている。
In the prior art, an image memory storing quantized image information is scanned using a 3×3 mask to perform thinning processing, and intersections are extracted from the thinned image information. However, this type of intersection extraction method has the drawback that the thinning process requires a very large number of processing steps and that intersections cannot be extracted reliably. SUMMARY OF THE INVENTION The present invention aims to eliminate the above-mentioned drawbacks, and to provide an intersection extraction method that has features such as being able to significantly reduce processing steps and increasing recognition accuracy.

そしてそのため、本発明の交差点抽出方式は、画像入力
装置、該画像入力装置からの画像情報を量子化する量子
化装置、鼻子化された画像情報が格納される画像メモリ
、および該画像メモリを所定方向に走査する走査装置と
を備え、該走査装置から出力される走査情報によって文
字の交差点を抽出する交差点抽出方式において、上記走
査から出力される走査情報が格納される第1走査メモリ
、上記第1走査メモリ内の走査情報の次の走査情報が格
納される第2走査メモリ、上記第1走査メモリの内容と
第2走査メモリの内容とに基づき所定の幅以下の所定色
要素が所定長以上連続するか杏かを検出するストローク
検出手段、第1走査メモリの内容と第2走査メモリの内
容とに基づきストローク始点候補点およびストローク終
点候補点を識別する終点・始点識別手段、上記ストロー
ク検出手段がストロークを検出したときストローク終点
候補点又はストローク女台点候補点をストローク終点又
はストローク始点として登録する手段、並びにストロー
ク終点を基準として設定された交差チェック・ゾーン内
にストローク始点が存在するか否かを調べる手段を有す
ることを特徴とするものである。以下、本発明を図面参
照しつつ説明する。第1図はストロークの発生点、消失
点、終点および始点を説明する図、第2図は終点と始点
とによる交差点抽出を説明する図、第3図は終始点によ
る交叢点抽出を説明する図、第4図は本発明の1実施例
のブロック図、第5図は発生点、消失点、始点、終点お
よび終始点の識別を説明する図、第6図は交差点検出の
ための交差チェック・ゾーンを示す図、第7図は第6図
の交差チェック・ゾーンを使用した場合の交差検出論理
を示す図、第8図は交差チェック・ゾーンの池例を示す
図、第9図は第8図の交差チェック・ゾーンを用いた場
合の交差検出論理を示す図である。第1図の図形は2値
化されているものであって、斜線部は論理「1」領域を
示している。筆記用具で文字を書く場合、ストロークの
線幅は一般に一定値以下であり、ストローク長は一定値
以上である。第1図において、Sは黒の幅設定値を示し
、Rは黒の長さ設定値を示している。水平方向の走査線
で第1行(上端の横行)を走査し、次いで第2行を走査
し、以下順番に第3行「第4行、・・・・・・というよ
うに図形を上から下へ走査するとき幅設定値Sより細い
黒が連続して下へ蓮らなっていて且つ長さ設定値Rより
長い場合に点Gvがストロークの発生点として成立する
。点Gvは上向きの総点を示している。幅設定値Sより
幅が大となる位置P,まで下方にさがると、点Evがス
トロークの終点として成立する。点Gvと点Evを結ん
だ線は上へつき出ているストロークを代表している。幅
が大きな位置から幅のり・さい位置P2へ来ると、点F
vが始点として成立する。点Tvは幅設定値Sより幅の
細い黒が消滅し、白に変化する消失点として成立する。
たゞし、点Fvと点Tvの距離の縦方向成立が長さ設定
値R以下の場合には、点Fvと点Tvはキャンセルされ
る。点Fvと点Tvを結ぶ線は、下へつき出しているス
トロークを代表している。点Gv,Ev,Fv,Tvは
それぞれ黒の中点をとっている。垂直方向の走査線で第
1列(左端の縦列)を走査し、次いで第2列を走査し、
以下順番に第3列、第4列、・・・・・・というように
図形を左から右へ走査すると始点Thおよび消失点Th
が得られる。第2図は終点と始点とによる交差点抽出を
説明する図である。
Therefore, the intersection extraction method of the present invention includes an image input device, a quantization device that quantizes the image information from the image input device, an image memory in which the nasalized image information is stored, and the image memory in a predetermined manner. In the intersection extraction method, the intersection extraction method includes a scanning device that scans in a direction, and extracts intersections of characters using scanning information output from the scanning device, a first scanning memory in which scanning information output from the scanning is stored; a second scanning memory in which the next scanning information of the scanning information in the first scanning memory is stored; a predetermined color element having a predetermined width or less has a predetermined length or more based on the contents of the first scanning memory and the second scanning memory; Stroke detection means for detecting whether the strokes are continuous or irregular; end point/start point identification means for identifying a stroke start point candidate point and a stroke end point candidate point based on the contents of the first scanning memory and the contents of the second scanning memory; and the above-mentioned stroke detection means. means for registering a stroke end point candidate point or stroke female point candidate point as a stroke end point or stroke start point when a stroke is detected, and whether or not the stroke start point exists within an intersection check zone set with the stroke end point as a reference. The invention is characterized by having means for checking whether the The present invention will be explained below with reference to the drawings. Figure 1 is a diagram explaining the generation point, vanishing point, end point, and start point of a stroke. Figure 2 is a diagram explaining intersection extraction using the end point and start point. Figure 3 is a diagram explaining intersection point extraction using the end and start points. 4 is a block diagram of one embodiment of the present invention, FIG. 5 is a diagram explaining the identification of the generation point, vanishing point, start point, end point, and end point. FIG. 6 is an intersection check for intersection detection.・A diagram showing the zones, FIG. 7 is a diagram showing the intersection detection logic when using the intersection check zone of FIG. 6, FIG. 8 is a diagram showing an example of the intersection check zone, and FIG. FIG. 9 is a diagram showing the intersection detection logic when using the intersection check zone of FIG. 8; The figure in FIG. 1 is binarized, and the shaded area indicates a logical "1" area. When writing characters with a writing instrument, the line width of the stroke is generally below a certain value, and the stroke length is above a certain value. In FIG. 1, S indicates the black width setting value, and R indicates the black length setting value. Scan the first row (horizontal row at the top) with a horizontal scanning line, then the second row, and then the third row, the fourth row, etc. from the top. When scanning downward, if a black line thinner than the width setting value S continuously extends downward and is longer than the length setting value R, the point Gv is established as the stroke generation point. Point Ev is established as the end point of the stroke when the stroke moves downward to position P, where the width is larger than the width setting value S. The line connecting points Gv and Ev protrudes upward. It represents the stroke where the width is large.When the width reaches the width position P2,
v is established as the starting point. The point Tv is established as a vanishing point where black, which is narrower than the width setting value S, disappears and changes to white.
However, if the distance between point Fv and point Tv in the vertical direction is less than or equal to the length setting value R, point Fv and point Tv are canceled. The line connecting point Fv and point Tv represents a downwardly protruding stroke. Points Gv, Ev, Fv, and Tv are the middle points of black, respectively. scan the first column (leftmost column) with a vertical scan line, then scan the second column;
If the figure is scanned from left to right in the following order, 3rd column, 4th column, etc., the starting point Th and vanishing point Th
is obtained. FIG. 2 is a diagram illustrating intersection extraction using an end point and a starting point.

図示の図形を水平方向の走査線で第1行(上端の横行)
を走査し、次いで第2行を走査し、以下順番に第3行、
第4行、・・・・・・というように図形を上から下へ走
査する場合、走査線が分岐部分に達すると、線幅が幅設
定値Sより大きくなり、終点Evが検出される。走査線
が更に下方に下がると、幅設定値Sより小さくなり、始
点Fv,又はFv2が検出される。最後に、幅設定値S
より狭い黒が消失する消失点Tv,,Tv2が検出され
る。終点Evを基準として設定された交差チェック・ゾ
ーンA内に女台点Fv,又はFv2が存在する場合には
、点XE,YE+2が交差点とされる。たゞし、×8は
終点EvのX方向成分、YEは終点EvのY方向成分を
それぞれ示している。第3図は終始点による交差点抽出
を説明するものである。
The figure shown is the first row (horizontal row at the top) of horizontal scanning lines.
, then the second row, and then the third row,
When the figure is scanned from top to bottom as in the fourth line, etc., when the scanning line reaches a branch point, the line width becomes larger than the width setting value S, and the end point Ev is detected. As the scanning line moves further downward, the width becomes smaller than the width setting value S, and the starting point Fv or Fv2 is detected. Finally, the width setting value S
Vanishing points Tv, , Tv2 where the narrower black disappears are detected. If Onnadai point Fv or Fv2 exists within the intersection check zone A set with the end point Ev as a reference, points XE and YE+2 are determined as intersections. However, x8 indicates the X-direction component of the end point Ev, and YE indicates the Y-direction component of the end point Ev. FIG. 3 explains intersection extraction using end and start points.

筆跡の線幅が幅設定値より非常に小さい場合、第2図で
示したような方法では交差点を抽出することが出来ない
。このような場合に対処するため、第n行目の走査線上
に幅設定値Sより小さい黒部分が存在し且つこの黒部分
に接触する複数の黒部分が第n+1行目の走査線上に存
在する場合には分岐ありと判定し、点J3を交差点とす
る。なお、J,,J2,J3はそれぞれ上記の黒部分の
中点を示している。これらの点J,,J2,J3を終始
点と名付ける。なお、J,,J2はストロークの始点と
なるものである。第4図は本発明の1実施例のブロック
図であって、1は帳票、2は画像入力装置、3は量子化
回路、4は画像メモリ、5hは水平走査装置、5vは垂
直走査装置、6hは水平走査装置5hからの出力情報に
基づき特徴点を抽出する特徴点抽出装置、6vは垂直走
査線5vからの出力情報に基づいて特徴点を抽出する特
徴点抽出装置、7−1は第1走査メモリ、7−2は第2
走査メモリ、8は連続条件判定回路、9は幅測定回路、
10はANDゲート、11は線長カウンタ、12は線長
条件設定回路、113は比較回路、14は終点・始点識
別回路、15は発生点・消失点識別回路、16は終始点
識別回路、17hは特徴点抽出回路6hに対するデータ
・メモリ、17vは特徴点抽出装置に対するデータ・メ
モリ、18は始点・終点座標間演算回路、19はチェッ
ク・ゾーン設定回路、20は比較回路をそれぞれ示して
いる。
If the line width of the handwriting is much smaller than the width setting value, the intersection cannot be extracted using the method shown in FIG. To deal with such a case, there is a black part smaller than the width setting value S on the n-th scanning line, and a plurality of black parts that touch this black part exist on the n+1-th scanning line. If so, it is determined that there is a branch, and point J3 is set as the intersection. Note that J, , J2, and J3 each indicate the midpoint of the above black portion. These points J, , J2, and J3 are named end and start points. Note that J, , J2 are the starting points of the stroke. FIG. 4 is a block diagram of one embodiment of the present invention, in which 1 is a form, 2 is an image input device, 3 is a quantization circuit, 4 is an image memory, 5h is a horizontal scanning device, 5v is a vertical scanning device, 6h is a feature point extraction device that extracts feature points based on output information from the horizontal scanning device 5h, 6v is a feature point extraction device that extracts feature points based on output information from the vertical scanning line 5v, and 7-1 is a feature point extraction device that extracts feature points based on output information from the horizontal scanning device 5h. 1 scanning memory, 7-2 is the second
a scanning memory; 8 a continuous condition determination circuit; 9 a width measurement circuit;
10 is an AND gate, 11 is a line length counter, 12 is a line length condition setting circuit, 113 is a comparison circuit, 14 is an end point/start point identification circuit, 15 is a generation point/vanishing point identification circuit, 16 is an end/start point identification circuit, 17h 17 is a data memory for the feature point extraction circuit 6h, 17v is a data memory for the feature point extraction device, 18 is a start point/end point coordinate arithmetic circuit, 19 is a check zone setting circuit, and 20 is a comparison circuit.

画像入力装置2は帳票からの光信号を電気信号に変換し
、この電気信号を量子化回路へ出力する。量子化回路3
は画像入力装置2が出力するアナログ信号を黒白情報に
2値化し、2値化された画像情報をメモリ4に送出する
。画像メモリ4は1文字の2値化画像情報を格納するも
のと考えて良い。水平走査装置5hは、左から右へ向う
水平方向走査線で画像メモリ4を上から下へ走査するも
のであり、垂直走査装置5vは上から下へ向う垂直方向
走査線で画像メモリ4を左から右へ走査するものである
。特徴点抽出回路6hと特徴点抽出回路6vは同一構成
のものであるので、特徴点回路6hについてのみ説明す
る。第1走査メモリ7−1と第2走査メモリ7−2には
、次のようにして走査情報が格納される。第1走査サイ
クルにおいては第1行目の走査情報が第1走査メモリ7
−1に格納され、第2行目の走査情報が第2走査メモリ
7−2に格納される。第2走査サイクルにおいては第2
行目の走査情報が第1走査メモリ7ーーに格納され、第
3行目の走査情報が第2走査メモリ7−2に格納される
。同様に、第n走査サイクルにおいては第n行目の走査
情報が第1走査メモリ7−1に格納され、第n十1行目
の走査情報が第2走査メモリ7−2に格納される。連続
条件判定回路8は、第1走査メモリ7−1と第2走査メ
モリ7−2に連続する黒領域がするか否かを判定するも
のである。第5図は第1走査メモリ7一1と第2走査メ
モリ7一2の状態の例を示すものであって、斜線部は黒
領域を示している。第1走査メモリ7−1と第2走査メ
モリ7一2が第5図′・ないし卜の如き状態にある場合
、連続条件判定回路8は連続性ありと判定する。幅測定
回路9は、第2走査メモリ7一2内の黒領域の幅が幅設
定値S以内であるか否かを測定するものである。幅設定
値Sと実際の黒領域の幅Wの関係をヒステリシス特性を
もつように構成しても良い。即ち、実際の黒領域の幅W
がW,に広がったとき幅設定値SはS,とされ、実際の
黒領域の幅WがW2に縮小されたとき幅設定値SはS2
とされる。勿論、S,>S2であり、また、W,>W2
である。ANDゲート10は、連続条件判定回路8が連
続性ありと判定し且つ幅測定回路9が幅設定値S以下の
黒領域があると判定した場合に、論理「1」信号を出力
する。線長カウンタ1 1は、ANDゲート1 0が論
理「1」を出力する度に、そのカウント値が十1される
。終点又は消失点が検出されたとき、線長カウンタ11
はゼロ・クリアされる。線長条件設定回路12は、長さ
設定値R(第1図参照)を設定するものである。この長
さ設定値Rを幅設定値Sの大きさに応じて変更すること
も可能である。比較回路は、線長カウンタ11のカウン
ト値と線長条件設定回路12の長さ設定値Rとを比較し
、前者が後者以上のとき論理「1」を出力する。比較回
路13の論理「1」信号は、データ・メモリ17hに対
する書込許可信号であると考えて良い。連続条件判定回
路8、幅測定回路9、ANDゲート10、線長カウンタ
11、線長条件設定回路12および比較回路13は、所
定値以下の線幅の黒要素が所定数以上連続して連なって
いるか否かを検出するものであり、これらはストローク
検出装置を構成しているものと考えて良い。このストロ
ーク検出装置は、図示されていないが、現実には複数個
準備されているものである。終点・始点識別回路14は
、第1走査メモリ7−1に幅設定値より大きい線幅の黒
領域が存在し且つこの黒領域と接する幅設定値S以下の
線幅の黒領域が第2走査メモリ7−2に存在する場合に
、始点ありと識別し、そして第2走査メモリ7−2の当
該黒領域の中点座標値を記録する。
The image input device 2 converts the optical signal from the form into an electrical signal, and outputs this electrical signal to the quantization circuit. Quantization circuit 3
binarizes the analog signal output from the image input device 2 into black and white information, and sends the binarized image information to the memory 4. The image memory 4 can be considered to store binary image information of one character. The horizontal scanning device 5h scans the image memory 4 from top to bottom with horizontal scanning lines going from left to right, and the vertical scanning device 5v scans the image memory 4 from top to bottom with vertical scanning lines going from top to bottom. It scans from the beginning to the right. Since the feature point extraction circuit 6h and the feature point extraction circuit 6v have the same configuration, only the feature point extraction circuit 6h will be described. Scanning information is stored in the first scanning memory 7-1 and the second scanning memory 7-2 in the following manner. In the first scanning cycle, the scanning information of the first row is stored in the first scanning memory 7.
-1, and the scanning information of the second row is stored in the second scanning memory 7-2. In the second scan cycle, the second
The scanning information on the row is stored in the first scanning memory 7-2, and the scanning information on the third row is stored in the second scanning memory 7-2. Similarly, in the nth scanning cycle, the scanning information of the nth row is stored in the first scanning memory 7-1, and the scanning information of the n11th row is stored in the second scanning memory 7-2. The continuity condition determination circuit 8 determines whether or not there is a continuous black area in the first scanning memory 7-1 and the second scanning memory 7-2. FIG. 5 shows an example of the states of the first scanning memory 7-1 and the second scanning memory 7-2, and the shaded areas indicate black areas. When the first scanning memory 7-1 and the second scanning memory 7-2 are in the state shown in FIGS. 5' to 5', the continuity condition determining circuit 8 determines that there is continuity. The width measurement circuit 9 measures whether the width of the black area in the second scanning memory 7-2 is within a width setting value S. The relationship between the width setting value S and the actual width W of the black area may be configured to have a hysteresis characteristic. That is, the actual width W of the black area
When the width of the black area expands to W, the width setting value S becomes S, and when the actual width W of the black area is reduced to W2, the width setting value S becomes S2
It is said that Of course, S, > S2, and W, > W2
It is. The AND gate 10 outputs a logic "1" signal when the continuity condition determination circuit 8 determines that there is continuity and the width measurement circuit 9 determines that there is a black area whose width is equal to or less than the width setting value S. The count value of the line length counter 11 is incremented by 1 every time the AND gate 10 outputs a logic "1". When the end point or vanishing point is detected, the line length counter 11
is cleared to zero. The line length condition setting circuit 12 sets a length setting value R (see FIG. 1). It is also possible to change this length setting value R according to the size of the width setting value S. The comparison circuit compares the count value of the line length counter 11 and the length setting value R of the line length condition setting circuit 12, and outputs logic "1" when the former is greater than or equal to the latter. The logic "1" signal of the comparison circuit 13 can be considered to be a write permission signal for the data memory 17h. The continuity condition determination circuit 8, the width measurement circuit 9, the AND gate 10, the line length counter 11, the line length condition setting circuit 12, and the comparison circuit 13 are configured to detect whether a predetermined number or more of black elements having a line width equal to or less than a predetermined value are consecutively connected. These devices can be considered to constitute a stroke detection device. Although not shown, a plurality of stroke detection devices are actually prepared. The end point/start point identification circuit 14 determines that a black area with a line width larger than the width setting value exists in the first scanning memory 7-1 and a black area with a line width less than the width setting value S that is in contact with this black area is scanned in the second scan. If it exists in the memory 7-2, it is determined that there is a starting point, and the coordinate value of the midpoint of the black area in the second scanning memory 7-2 is recorded.

第5図ハ,へは始点ありと識別される状態の例を示すも
のである。また、終点・始点識別回路14は、第1走査
メモリ7一1に幅設定値S以下の黒領域が存在し且つこ
の黒領域に接する幅設定値Sより大きい線幅の黒領域が
第2走査メモリ7一2に存在する場合に、終点ありと識
別し、そして第1走査メモリ7−1の当該黒領域の中点
の座標値を記録する。第5図二は、終点ありと識別され
る状態の1例を示すものである。発生点・消失点識別回
路15は、第5図イに示す如く第2走査メモリ7−2に
幅設定値以下の黒領域が存在し且つこの黒領域と連続す
る黒領域が第1走査メモリに存在しない場合に発生点あ
りと識別し、そして第2走査メモリ7−2の当該黒領域
の中点の座標値を記録する。
FIGS. 5C and 5C show an example of a state in which it is determined that there is a starting point. In addition, the end point/start point identification circuit 14 determines whether a black area whose width is less than or equal to the width setting value S exists in the first scanning memory 7-1 and a black area whose line width is larger than the width setting value S that is in contact with this black area is scanned in the second scanning. If it exists in the memory 7-2, it is determined that there is an end point, and the coordinate values of the midpoint of the black area in the first scanning memory 7-1 are recorded. FIG. 5 2 shows an example of a state in which it is determined that there is an end point. The generation point/vanishing point identification circuit 15 detects that a black area whose width is less than the width setting value exists in the second scanning memory 7-2 as shown in FIG. If it does not exist, it is determined that there is a point of occurrence, and the coordinate value of the midpoint of the black area in the second scanning memory 7-2 is recorded.

また、発生点・消失点識別回路15は、第5図口に示す
如く第1走査メモリ7−1内に幅設定値S以下の線幅の
黒領域が存在し且つこの黒領域に連続する黒領域が第2
走査メモリ7一2に存在しない場合に消失点ありと識別
し、そして第1走査メモリ7−1の当該黒領域の中点の
座標値を記録する。終始点識別回路16は、文字の線幅
が細い場合における文字の分岐および結合を識別するも
のである。
Further, the generation point/vanishing point identification circuit 15 detects the presence of a black area with a line width less than the width setting value S in the first scanning memory 7-1 as shown in the opening of FIG. area is second
If it does not exist in the scanning memory 7-2, it is determined that there is a vanishing point, and the coordinate values of the midpoint of the black area in the first scanning memory 7-1 are recorded. The end/start point identification circuit 16 identifies branching and joining of characters when the line width of the characters is narrow.

終始点識別回路16は、例えば第5図トに示す如く第1
走査メモリ7−1に幅設定値S以下の線幅をもつ黒領域
が存在し且つこの黒領域に連続する幅設定値S以下の線
幅をもつ複数個の黒領域が第2走査メモリ7一2に存在
する場合に分岐ありと識別し、そして第1走査メモリ7
−1の当該黒領域の中点の座標を交差点の座標として記
録する。また、終始点識別回路16は、第5図卜と逆の
状態のとき、結合ありと識別し、中心の終始点の座標を
交差点の座標として記録する。この終始点識別回路16
は、常に緑幅が一定であることが保障されている場合に
は不要なものである。終点・女台点識別回路14、発生
点・消失点識別回路15又は終始点識別回路16によっ
て複数の発生点又は始点が識別された場合には、各発生
点又は始点に対して1個のストローク検出装置が割付け
られ、これらのストローク検出装置によって各発生点又
は始点がストロークの発生点又はストロークの始点とな
るか杏かがチェックされる。ストローク検出装置とは、
さきに述べた如く連続条件判定回路8、幅測定回路9、
ANDゲート10、線長カウント11、線長条件設定回
路および比較回路13から構成され、図示しないが複数
個存在するものである。始点・終点座標間演算回路18
は、ストロークの終点とストロークの始点との差を×成
分、Y成分に分けて計算するものである。
The ending/starting point identification circuit 16 is configured, for example, as shown in FIG.
A black area with a line width less than or equal to the width setting value S exists in the scanning memory 7-1, and a plurality of black areas having line widths less than or equal to the width setting value S that are continuous with this black area are stored in the second scanning memory 7-1. 2, it is determined that there is a branch, and the first scanning memory 7
-1, record the coordinates of the midpoint of the black area as the coordinates of the intersection. Furthermore, when the condition is opposite to that shown in FIG. 5, the ending/starting point identification circuit 16 identifies that there is a connection, and records the coordinates of the central ending/starting point as the coordinates of the intersection. This end/start point identification circuit 16
is unnecessary if it is guaranteed that the green width is always constant. When a plurality of originating points or starting points are identified by the ending point/onnadai point identification circuit 14, the originating point/vanishing point identification circuit 15, or the end/starting point identification circuit 16, one stroke for each originating point or starting point. Detection devices are assigned, and these stroke detection devices check whether each occurrence point or starting point is a stroke origination point or a stroke starting point. What is a stroke detection device?
As mentioned earlier, the continuity condition determination circuit 8, the width measurement circuit 9,
It is composed of an AND gate 10, a line length count 11, a line length condition setting circuit, and a comparison circuit 13, and there are a plurality of them, although not shown. Start point/end point coordinate calculation circuit 18
calculates the difference between the end point of the stroke and the start point of the stroke by dividing it into an x component and a Y component.

チェック・ゾーン設定回路19は、交差点チェック・ゾ
ーンの大きさおよびストロークの終点に対する交差チェ
ック・ゾーンの位置を定めるものである。比較回路2川
ま、女台点・終点座標間演算回路18からの演算結果と
チェック・ゾーン設定回路19からの交差チェック・ゾ
ーン情報に基づいて、始点が交差チェック・ゾーンの中
に存在するか杏かをチェックし、交差点が存在すれば、
その座標を出力する。第6図は交差チェック・ゾーンA
の1例を示すものである。
The check zone setting circuit 19 determines the size of the intersection check zone and the position of the intersection check zone relative to the end point of the stroke. Comparison circuit 2: Based on the calculation result from the onnadai point/end point coordinate calculation circuit 18 and the intersection check zone information from the check zone setting circuit 19, determine whether the start point exists in the intersection check zone. Check whether there is an intersection and if there is an intersection,
Output the coordinates. Figure 6 shows intersection check zone A.
An example of this is shown below.

第6図イの交差チェック・ゾーンAは垂直方向の走査線
で画像メモリ4内の文字を左から右へ走査する場合に使
用されるものであり、第6図口の交差チェック・ゾーン
Aは水平方向の走査線で画像メモリ4内の文字を上から
下へ走査する場合に使用されるものである。なお、第6
図において、最小四角形枠はメッシュ点と1対1の対応
をなしているものである。ストローク終点Eh(×6、
Y8)を基準として設定された交差チェック・ゾーンA
内にストローク始点Fh(×s、Ys)が存在すれば、
交差点ありとされる。同様に、ストローク終点Ev(X
E、Y8)を基準として設定された交差チェック・ゾー
ンA内にストローク始点Fv(Xs、Ys)が存在すれ
ば、交差点ありとされる。第7図は第6図の交差チェッ
ク・ゾーンを用いる場合に、始点・終点座標演算回路1
8および比較回路20で実行される論理を示すものであ
る。
The intersection check zone A in Figure 6A is used when scanning the characters in the image memory 4 from left to right with vertical scanning lines, and the intersection check zone A in Figure 6 This is used when scanning characters in the image memory 4 from top to bottom using horizontal scanning lines. In addition, the 6th
In the figure, the minimum rectangular frame has a one-to-one correspondence with the mesh points. Stroke end point Eh (×6,
Intersection check zone A set based on Y8)
If the stroke start point Fh (×s, Ys) exists within
There is said to be an intersection. Similarly, the stroke end point Ev(X
If the stroke start point Fv (Xs, Ys) exists within the intersection check zone A set with E, Y8) as a reference, it is determined that an intersection exists. Figure 7 shows the start point/end point coordinate calculation circuit 1 when using the intersection check zone shown in Figure 6.
8 and the logic executed by the comparison circuit 20.

第8図は交差チェック・ゾーンAの他例を示すものであ
り、第9図は第8図に示す交差チェック・ゾーンAが使
用された場合に、実行される論理を示すものである。次
に、第1図の図形を垂直方向の走査線で上から下へ走査
する場合を例として、第4図の実施例の動作を説明する
FIG. 8 shows another example of the intersection check zone A, and FIG. 9 shows the logic that is executed when the intersection check zone A shown in FIG. 8 is used. Next, the operation of the embodiment shown in FIG. 4 will be described by taking as an example the case where the figure shown in FIG. 1 is scanned from top to bottom using vertical scanning lines.

上から下へ走査が行われると、先ず発生点Gvが発生点
・消失点識別回路15によって識別され、その座標が記
録される。1行分の走査が行われる度に線長カウンタ1
1のカウント値が十1され、線長カウンタ11のカウン
ト値が長さ設定値以上になると、比較回路13が書込許
可信号を出力し、発生点Gvの座標値および発生点であ
ることを示す特徴点種別がデータ・メモリ17hに書込
まれる。
When scanning is performed from top to bottom, the generation point Gv is first identified by the generation point/vanishing point identification circuit 15, and its coordinates are recorded. Line length counter 1 every time one line is scanned
When the count value of 1 is incremented to 11 and the count value of the line length counter 11 becomes equal to or greater than the length setting value, the comparator circuit 13 outputs a write permission signal and confirms the coordinate value of the generation point Gv and that it is the generation point. The indicated feature point type is written into the data memory 17h.

走査線が位置P,に来ると、終点Evが終点・始点識別
回路14によって識別され、その座標が記録される。こ
の時点では比較回路13が書込許可信号を出力している
ので、終点・始点識別回路14内の終点の座標値および
終点であることを示す特徴点種別がデ−夕・メモリ17
hに書込まれる。終点が検出されると、線長カウンタ1
1はゼロ・クリアされる。走査線が位置P2にくると、
始点Fvが終点・始点識別回路14によって識別されそ
の座標が記録される。線幅が再び幅設定値S以下となる
ので、線長カウンタ11は再びカウントを開始し、カウ
ント値が長さ設定値Rより大きくなると、始点Fvの座
標と始点であることを示す特徴点種別がデータ・メモリ
17hに書込まれる。消失点Tvが発生点・消失点識別
回路15によって識別されると、その座標値および消失
点であることを示す特徴点種別がデータ・メモリ17h
に書込まれる。1文字の走査が終了した後、データ・メ
モリ17h内のストローク終点Evが謙出され、始点・
終点座標演算回路18に供給され、次いでストローク始
点Fvが読出され、始点・終点座標間演算回路18に供
孫合される。
When the scanning line reaches position P, the end point Ev is identified by the end point/start point identification circuit 14, and its coordinates are recorded. At this point, the comparison circuit 13 is outputting a write permission signal, so the coordinate values of the end point in the end point/start point identification circuit 14 and the feature point type indicating the end point are stored in the data/memory 17.
written to h. When the end point is detected, line length counter 1
1 is cleared to zero. When the scanning line comes to position P2,
The starting point Fv is identified by the ending point/starting point identification circuit 14 and its coordinates are recorded. Since the line width becomes less than the width setting value S again, the line length counter 11 starts counting again, and when the count value becomes larger than the length setting value R, the coordinates of the starting point Fv and the feature point type indicating that it is the starting point are displayed. is written to data memory 17h. When the vanishing point Tv is identified by the generation point/vanishing point identification circuit 15, its coordinate values and feature point type indicating that it is a vanishing point are stored in the data memory 17h.
written to. After the scanning of one character is completed, the stroke end point Ev in the data memory 17h is determined and the starting point
The stroke start point Fv is then read out and sent to the start point/end point coordinate calculation circuit 18.

始点・終点座標間演算回路18、チェック・ゾーン設定
回路19および比較回路20によって第7図又は第9図
に示す如き論理が実行され、交差点が存在するか杏かが
チェックされる。次に、第2図の図形を垂直方向の走査
線で上から下へ走査する場合を例にして第4図の動作を
説明する。
The logic shown in FIG. 7 or 9 is executed by the start point/end point coordinate arithmetic circuit 18, the check/zone setting circuit 19, and the comparison circuit 20 to check whether an intersection exists or not. Next, the operation in FIG. 4 will be explained using an example in which the figure in FIG. 2 is scanned from top to bottom using vertical scanning lines.

走査を開始すると、先ず発生点Gvが発生点・消失点検
出回路15で識別され、発生点Gvがストロークの発生
点であることが検出されると、発生点Gvの座標とその
種別がデータ・メモリ17hに書込まれる。走査が進行
し、終始点J,,J2,J3が終始点識別回路16によ
って識別されると、終始点J,,J2,J3の座標が記
録される。点J,、点J2がストロークの始点となるこ
とが確実となると、点J3が交差点としてデータ・メモ
リ17hに書込まれ、点J,,J2がストローク始点と
してデータ・メモリ17hに書込まれる。点J,,J2
がストロークの始点であらることが確認された後、消失
点Tv,,Tv2が発生点・消失点識別回路15によっ
て識別されると、消失点Tv,,Tv2が直ちにデ−夕
・メモリ17hに書込まれる。この場合、交差点として
データ・メモリ17hに書込まれた点J3の座標は、読
出されたとき始点・終点座標間演算回路18および比較
回路20をスルーで通って出力される。なお、以上の説
明は水平方向の走査線で画像メモリ4を上から下へ走査
する場合の説明であるが、垂直方向の走査線で画像メモ
リ4を走査する場合にも同機な動作が行われる。以上の
説明から明らかなように、本発明の交差点抽出方式は、
細線化処理を行う方式に著しく処理ステップ数を減少で
きると共に、精度の高い交差点抽出を行い得るという効
果を有している。
When scanning starts, the generation point Gv is first identified by the generation point/vanishing point detection circuit 15, and when it is detected that the generation point Gv is the stroke generation point, the coordinates of the generation point Gv and its type are stored as data. It is written to the memory 17h. As the scanning progresses and the end/start points J, , J2, J3 are identified by the end/start point identification circuit 16, the coordinates of the end/start points J,, J2, J3 are recorded. When it becomes certain that the points J, , J2 are the starting points of the stroke, the point J3 is written into the data memory 17h as an intersection, and the points J, , J2 are written into the data memory 17h as the starting points of the stroke. Point J,, J2
After it is confirmed that is the starting point of the stroke, the vanishing points Tv, , Tv2 are identified by the generation point/vanishing point identification circuit 15, and the vanishing points Tv, , Tv2 are immediately stored in the data memory 17h. written. In this case, when the coordinates of point J3 written as an intersection in data memory 17h are read out, they pass through start point/end point coordinate arithmetic circuit 18 and comparison circuit 20 and are output. The above explanation is for scanning the image memory 4 from top to bottom using horizontal scanning lines, but the same operation is performed when scanning the image memory 4 using vertical scanning lines. . As is clear from the above explanation, the intersection extraction method of the present invention is
This method has the advantage of being able to significantly reduce the number of processing steps compared to a method that performs line thinning processing, as well as being able to extract intersections with high accuracy.

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

第1図はストロークの発生点、消失点、終点および始点
を説明する図、第2図は終点と始点とによる交差点抽出
を説明する図、第3図は終始点による交差点抽出を説明
する図、第4図は本発明の1実施例のブロック図、第5
図は発生点、消失点、始点、終点および終始点の識別を
説明する図、第6図は交差点検出のための交差チェック
・ゾーンを示す図、第7図は第6図の交差チェック・ゾ
ーンを用いた場合の交差検出論理を示す図、第8図は交
差チェック・ゾーンの他例を示す図、第9図は第8図の
交差チェック・ゾーンを用いた場合における交差検出論
理を示す図である。 1・・・・・・帳票、2・・・・・・画像入力装置、3
・・・・・・量子化回路、4・・・・・・画像メモリ、
5h・・…・水平走査装置、5v・・・・・・垂直走査
装置、6hと6v・・・・・・特徴点抽出回路、7−1
・・・・・・第1走査メモリ、7一2・・・・・・第2
走査メモリ、8・・・・・・連続条件判定回路、9・・
・・・・幅測定回路、10・・・・・・ANDゲート、
11・・・・・・線長カウンタ、12・…・・線長条件
設定回路、13……比較回路、14……終点・始点識別
回路、15・・・・・・発生点・消失点識別回路、16
・・・・・・終始点識別回路、17hと17v・・・・
・・データ・メモリ、18・…・・始点・終点座標間演
算回路、19……チェック・ゾーン設定回路、20……
比較回絡。 ブ1図 72図 そう図 矛4図 矛5図 矛■図 矛7図 矛8図 矛?図
FIG. 1 is a diagram for explaining the generation point, vanishing point, end point, and starting point of a stroke; FIG. 2 is a diagram for explaining intersection extraction using the end point and starting point; FIG. 3 is a diagram for explaining intersection extraction using the ending and starting points. FIG. 4 is a block diagram of one embodiment of the present invention, and FIG.
The figure is a diagram explaining the identification of the generation point, vanishing point, start point, end point, and end point. Figure 6 is a diagram showing the intersection check zone for intersection detection. Figure 7 is the intersection check zone of Figure 6. 8 is a diagram showing another example of the intersection check zone. FIG. 9 is a diagram showing the intersection detection logic when the intersection check zone of FIG. 8 is used. It is. 1... Form, 2... Image input device, 3
...Quantization circuit, 4... Image memory,
5h...Horizontal scanning device, 5v...Vertical scanning device, 6h and 6v...Feature point extraction circuit, 7-1
. . . 1st scanning memory, 7-2 . . . 2nd
Scanning memory, 8... Continuous condition judgment circuit, 9...
...Width measurement circuit, 10...AND gate,
11...Line length counter, 12...Line length condition setting circuit, 13...Comparison circuit, 14...End point/start point identification circuit, 15...Generation point/vanishing point identification circuit, 16
...End point identification circuit, 17h and 17v...
...Data memory, 18...... Start point/end point coordinate calculation circuit, 19... Check zone setting circuit, 20...
Comparative circuit. 1 figure, 72 figures, 4 figures, 5 figures, 5 figures ■ 7 figures, 8 figures? figure

Claims (1)

【特許請求の範囲】[Claims] 1 画像入力装置、該画像入力装置からの画像情報を量
子化する量子化装置、量子化された画像情報が格納され
る画像メモリ、および該画像メモリを所定方向に走査す
る走査装置とを備え、該走査装置から出力される走査情
報によって文字の交差点を抽出する交差点抽出方式にお
いて、上記走査装置から出力される走査情報が格納され
る第1走査メモリ、上記第1走査メモリ内の走査情報の
次の走査情報が格納される第2走査メモリ、上記第1走
査メモリの内容と第2走査メモリの内容とに基づき所定
の幅以下の所定色要素が所定長以上連続するか否かを検
出するストローク検出手段、第1走査メモリの内容と第
2走査メモリの内容に基づきストローク始点候補点およ
びストローク終点候補点を識別する終点・始点識別手段
、上記ストローク検出手段がストロークを検出したとき
ストローク終点候補点又はストローク始点候補点をスト
ローク終点又はストローク始点として登録する手段、並
びにストローク終点を基準として設定された交差チエツ
ク・ゾーン内にストローク始点が存在するか否かを調べ
る手段を有することを特徴とする交差点抽出方式。
1 comprising an image input device, a quantization device that quantizes image information from the image input device, an image memory in which the quantized image information is stored, and a scanning device that scans the image memory in a predetermined direction, In an intersection extraction method for extracting character intersections using scanning information output from the scanning device, a first scanning memory stores the scanning information output from the scanning device; a second scanning memory in which scanning information of is stored; a stroke for detecting whether or not a predetermined color element having a predetermined width or less continues for a predetermined length or more based on the contents of the first scan memory and the second scan memory; a detection means, an end point/start point identification means for identifying a stroke start point candidate point and a stroke end point candidate point based on the contents of the first scanning memory and the contents of the second scanning memory; and a stroke end point candidate point when the stroke detection means detects a stroke; Or an intersection characterized by having means for registering a stroke start point candidate point as a stroke end point or a stroke start point, and means for checking whether the stroke start point exists within an intersection check zone set with the stroke end point as a reference. Extraction method.
JP54030825A 1979-03-16 1979-03-16 Intersection extraction method Expired JPS603676B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP54030825A JPS603676B2 (en) 1979-03-16 1979-03-16 Intersection extraction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP54030825A JPS603676B2 (en) 1979-03-16 1979-03-16 Intersection extraction method

Publications (2)

Publication Number Publication Date
JPS55123777A JPS55123777A (en) 1980-09-24
JPS603676B2 true JPS603676B2 (en) 1985-01-30

Family

ID=12314470

Family Applications (1)

Application Number Title Priority Date Filing Date
JP54030825A Expired JPS603676B2 (en) 1979-03-16 1979-03-16 Intersection extraction method

Country Status (1)

Country Link
JP (1) JPS603676B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS617580A (en) * 1984-06-20 1986-01-14 オムロン株式会社 Detent tool of electronic part
JPH0310629Y2 (en) * 1984-06-20 1991-03-15
JPH0310630Y2 (en) * 1984-06-21 1991-03-15

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS617580A (en) * 1984-06-20 1986-01-14 オムロン株式会社 Detent tool of electronic part
JPH0310629Y2 (en) * 1984-06-20 1991-03-15
JPH0310630Y2 (en) * 1984-06-21 1991-03-15

Also Published As

Publication number Publication date
JPS55123777A (en) 1980-09-24

Similar Documents

Publication Publication Date Title
US4516265A (en) Optical character reader
US8059868B2 (en) License plate recognition apparatus, license plate recognition method, and computer-readable storage medium
JPH0721310A (en) Document recognizing device
US4769849A (en) Method and apparatus for separating overlapping patterns
CN101604380A (en) Method for identifying human head by diameter searching
JPS603676B2 (en) Intersection extraction method
JPH06187489A (en) Character recognizing device
JPS603675B2 (en) Character recognition method
JPH07160810A (en) Character recognizing device
JPH10187886A (en) Character recognizing device and method
JPH0225553B2 (en)
JPH0628520A (en) Character recognition device
JP2507949B2 (en) Character / graphic area determination device
JPS6379183A (en) Graphic recognizing device
JPS60120479A (en) Device for extracting crossing and curved point
JPS5942906B2 (en) Line width extraction device
JPS61165184A (en) Automatic detecting system of reference point
JPH05274472A (en) Image recognizing device
JPH0522164B2 (en)
JPH05282593A (en) Vehicle head detecting device
JPH10293845A (en) Broken-line recognition method
JPS63250787A (en) Method for segmentating character
JPH03230289A (en) Method for determining ruled line and character recognizing device
JPH01144177A (en) Position detecting method for pattern string
JPS58182791A (en) Feature extracting and sorting method of character pattern