JPS60181883A - Stroke extraction method in character discrimination - Google Patents

Stroke extraction method in character discrimination

Info

Publication number
JPS60181883A
JPS60181883A JP59036110A JP3611084A JPS60181883A JP S60181883 A JPS60181883 A JP S60181883A JP 59036110 A JP59036110 A JP 59036110A JP 3611084 A JP3611084 A JP 3611084A JP S60181883 A JPS60181883 A JP S60181883A
Authority
JP
Japan
Prior art keywords
segment
segments
point
primitive
pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP59036110A
Other languages
Japanese (ja)
Other versions
JPH0326878B2 (en
Inventor
Koji Ito
伊東 晃治
Yoshiyuki Yamashita
山下 義征
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP59036110A priority Critical patent/JPS60181883A/en
Publication of JPS60181883A publication Critical patent/JPS60181883A/en
Publication of JPH0326878B2 publication Critical patent/JPH0326878B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)

Abstract

PURPOSE:To extract a stable, high speed stroke by deleting unnecessary segment based on connecting point coordinates extracted from four directional subpattern or intersection coordinates, prolonging only efficient segments, and synthesizing segments connected at an end point. CONSTITUTION:A vertical segment detecting parts 5a calculates a coordinate location of a black point continuous area from the black point coordinate at the time of a change from a white point (character background part) to the black point (character line part) and from the white point coordinates at the time of the change from the black to the white points, detects the number of such locations at the change point, and then detects a center point coordinate system in the black point continuous area as a vertical primitive segment. Equally, it detects a horizontal, left oblique, and right oblique primitive segments. An efficient segment detecting part 9 deletes unnecessary segments of plural segments detected by the stroke having four directional intermediate angles, and when the storke concentrates, the part 9 deletes unnecessary segments detected at connecting point/intersections. A stroke extracting part 11, when the efficient segment derived from an efficient segment table memory 10 can be prolonged to the other efficient segments, then said segments are synthesized to obtain one efficient segment.

Description

【発明の詳細な説明】 (技術分野) 本発明は文字認識装置、特に手書き文字を対象とした文
字認識装置における71.トローク抽出方法に関する。
DETAILED DESCRIPTION OF THE INVENTION (Technical Field) The present invention relates to a character recognition device, particularly a character recognition device for handwritten characters. Regarding the stroke extraction method.

(背景技術) 従来ストロークを抽出する方法として、(1)文字図形
の輪郭を追跡することにより検出された輪郭点系列につ
いて曲率を計算し、その曲率の大きな値の点を分割点と
して輪郭系列を分割し、分割された系列を組合わせるこ
とによりストロークを抽出する方法か、又は(2)文字
図形パターンに細線化処理を行なって骨格化し、その骨
格パターンの連結性及び骨格パターンを追跡し急激な角
度の変化点等を検出してストロークを抽出する方法があ
る。
(Background Art) Conventional methods for extracting strokes include (1) calculating the curvature of a series of contour points detected by tracing the contour of a character figure, and dividing the contour series by using points with large values of curvature as dividing points; There are two methods: extracting strokes by dividing and combining the divided series, or (2) performing thinning processing on the character figure pattern to create a skeleton, tracing the connectivity and skeleton pattern of the skeleton pattern, and then extracting strokes by combining the divided series. There is a method of extracting strokes by detecting points of change in angle, etc.

しかしながら(1)の方法はストロークが集中するとス
トロークの方向を見失い誤った方向へストロークを抽出
し、さらに、文字図形パターンが大きくなり文字図形パ
ターンが複雑化すると、その処理量が増大しそのため処
理速度の低下を招き、(2)の方法は、文字図形パター
ンを細線化する必要があるために、細線化によるパター
ンのひずみ、ヒゲ等が発生しストロークが集中するとパ
ターンの連結性を誤ることが必り、ストロークが安定に
抽−出できないという欠点があった。
However, method (1) loses track of the stroke direction when strokes are concentrated and extracts strokes in the wrong direction.Furthermore, as the character/figure pattern becomes larger and more complex, the amount of processing increases, which reduces the processing speed. In method (2), since it is necessary to thin the character/figure pattern, distortion of the pattern due to thinning, whiskers, etc. occur, and if strokes are concentrated, it is necessary to misunderstand the connectivity of the pattern. However, there was a drawback that the stroke could not be extracted stably.

(発明の課題) 本発明は従来の技術の上記欠点を改善し、安定で、しか
も高速なストローク抽出を可能とする不トローク抽出方
法を提供するもので、その特徴は、4方向のサブパター
ンよρ抽出されたセグメントの接続点座標又は、交差点
座標をもとに、不必要なセグメントを削除し、有効なセ
グメントのみを延長し、端点て接続するセグメントを合
成し、ストロークを抽出することにある。
(Problems to be solved by the invention) The present invention improves the above-mentioned drawbacks of the conventional techniques and provides a strokeless extraction method that enables stable and high-speed stroke extraction. ρ Based on the connection point coordinates or intersection coordinates of the extracted segments, unnecessary segments are deleted, only valid segments are extended, segments connected at the end points are combined, and strokes are extracted. .

(発明の構成および作用) 第1図は、本発明の一実施例を示すブロック図である。(Structure and operation of the invention) FIG. 1 is a block diagram showing one embodiment of the present invention.

1は2値パタ一ン入力信号、2はパターンレジスタ、3
は線幅計算部、4aは垂直サブパターン抽出部、41〕
は水平サブパターン抽出部、4Cは左斜めサブパターン
抽出部、4dは右斜めサブパターン抽出部、5aは垂直
セグメント抽出部、5bは水平セグメント抽出部、5C
は左斜めセグメント抽出部、5dは右斜めセグメント抽
出部、6は、各セグメント抽出部で検出された原始セグ
メントを格納する原始セグメントテーブルメモリ、7は
、検出した各原始セグメント相互の接続点座標、交差点
座標を検出する接続点交差点検出部、8は接続点座標、
交差点座標を格納する接続点・交差点テーブルメモリ、
9は検出した接続点、交差点テーブルメモリより有効セ
グメントを検出する有効セグメント検出部、lOは、検
出した有効セグメントを格納する有効セグメントテーブ
ルメモリ、11は、検出された有効セグメントを合成し
、ストロークを抽出するストローク抽出部、12は抽出
されたストロークを保存するストロークテーブルメモリ
をそれぞれ示す。
1 is a binary pattern input signal, 2 is a pattern register, 3
4a is a line width calculation section, 4a is a vertical sub-pattern extraction section, 41]
4C is a horizontal subpattern extraction section, 4C is a left diagonal subpattern extraction section, 4d is a right diagonal subpattern extraction section, 5a is a vertical segment extraction section, 5b is a horizontal segment extraction section, 5C
5d is a left diagonal segment extraction unit; 5d is a right diagonal segment extraction unit; 6 is a primitive segment table memory that stores the primitive segments detected by each segment extraction unit; 7 is the coordinates of connection points between the detected primitive segments; a connection point intersection detection unit that detects intersection coordinates; 8 is a connection point coordinate;
Connection point/intersection table memory that stores intersection coordinates,
Reference numeral 9 denotes a valid segment detection unit that detects valid segments from the detected connection points and intersection table memory; 1O denotes a valid segment table memory that stores the detected valid segments; and 11, synthesizes the detected valid segments and generates a stroke. A stroke extractor 12 indicates a stroke table memory that stores extracted strokes.

2値パタ一ン入力信号1は、パターンレジスタ2に格納
される・同時に線幅計算部3において入カバターンの線
幅が計算される。垂直サブパターン抽出部4aH、パタ
ーンレジスタ2について垂直走査を全血行なって黒ビッ
トの連続する長さが線幅計算部3に於いて計算された線
幅より十分長い黒ビットの連続を取り出し垂直サブノ(
ターン(VSP)を抽出する。同様に水平サブノくター
ン抽出部4bは水平走査により水平サブパターン(H4
F)を、左斜めザブパターン抽出部4Cは左斜め45゜
走査により左斜めサブパターン(LSF)を、右斜めサ
ブパターン抽出部4dば、右斜め45走査により右斜め
サブパターン(H8F)を抽出する。
The binary pattern input signal 1 is stored in the pattern register 2. At the same time, the line width of the input pattern is calculated in the line width calculation section 3. The vertical sub-pattern extraction section 4aH performs vertical scanning on the pattern register 2, extracts the continuous black bits whose length is sufficiently longer than the line width calculated in the line width calculation section 3, and extracts the continuous black bits from the vertical sub-pattern extraction section 4aH. (
Extract the turn (VSP). Similarly, the horizontal sub pattern (H4
F), the left diagonal sub-pattern extraction unit 4C extracts the left diagonal sub-pattern (LSF) by scanning diagonally 45 degrees to the left, and the right diagonal sub-pattern extraction unit 4d extracts the right diagonal sub-pattern (H8F) by scanning diagonally 45 degrees to the right. do.

婬2図は、文字r L Jのサブパターンを抽出した例
を示した図である。第2図(a)は原パターン、第2図
(b)(は、水平サブパターン、第2図(C)は垂直サ
ブパターン、第2図((I)は左斜めサブパターン、第
2図(e)は、右斜めサブパターンであるが、この例で
は右斜めサブパターンは抽出されていない。
Figure 2 is a diagram showing an example of extracted sub-patterns of the characters r L J. Figure 2 (a) is the original pattern, Figure 2 (b) ( is the horizontal sub-pattern, Figure 2 (C) is the vertical sub-pattern, Figure 2 (I) is the left diagonal sub-pattern, Figure 2 (I) is the left diagonal sub-pattern, Although (e) is a right diagonal subpattern, the right diagonal subpattern is not extracted in this example.

次に垂直セグメント検出部5aは垂直サブパターン(V
SP)を水平に左から右へ走査し、白点(文字背景部)
から黒点(文字線部)に変化した時の黒点座標と、黒点
から白点に変化した時の白点座標の両座標から黒点の連
続領域の座標位置を計算し、さらにその変化点の個数を
検出する。この動作を上から下に行い、前列と現列の黒
点の連続領域の座標位置及び変化点の個数より黒点の連
続領域の中心点座標系列を垂直原始セグメントとして検
出する。同様に、水平セグメント検出部5bは、水平ザ
ブパターン(H8PIを上から下に走査し、水平原始セ
グメントを検出し、左斜めセグメント検出部5cは左斜
めサブパターン(LSP)を左から右へ走査し左斜め原
始セグメントを検出し、右斜めセグメント検出部5dは
右斜めザブパターン(H8F)を左から右へ走査し、右
斜め原始セグメントを検出する。このセグメントの検出
については、本出願人がすでに出願した特願昭56−3
1228(特開昭57−146379 )に詳述されて
いるが、その方法を垂直サブパターン(VSP ) り
ス) o −り成分を芯線化処理して垂直原始セグメン
トを検出する場合を例にとって説明する。
Next, the vertical segment detection unit 5a detects the vertical sub-pattern (V
SP) horizontally from left to right to find the white point (character background)
Calculate the coordinate position of the continuous area of the black point from both the black point coordinates when it changes from a black point to a black point (character line part) and the white point coordinates when it changes from a black point to a white point, and then calculate the number of changing points. To detect. This operation is performed from top to bottom, and the center point coordinate series of the continuous region of black points is detected as a vertical primitive segment from the coordinate positions of the continuous region of black points in the previous row and the current row and the number of changing points. Similarly, the horizontal segment detection unit 5b scans the horizontal sub pattern (H8PI from top to bottom to detect horizontal primitive segments), and the left diagonal segment detection unit 5c scans the left diagonal sub pattern (LSP) from left to right. The left diagonal primitive segment is detected, and the right diagonal segment detection unit 5d scans the right diagonal sub pattern (H8F) from left to right to detect the right diagonal primitive segment. Patent application already filed 1982-3
1228 (Japanese Unexamined Patent Publication No. 57-146379), the method will be explained by taking as an example the case of detecting vertical primitive segments by performing core line processing on vertical subpattern (VSP) components. do.

今、垂直サブパターン(VSP)に第3図の、Jうなセ
グメント成分A、Bのパターンが得られたとする。左上
の点を始点とし、左から右へ走査し変化点の検出を始め
ると、Y1行の前行まで変化点は検出されず、Y1行を
走査して始めてストローク成分Aの2個の変化点、即ち
白点から黒点への変化点XBYlと黒点から白点への変
化点XwY1が得られる。この時(XBYI + XW
YI ) / 2を計算し、原始セグメント1の開始点
としてこの座標を原始セグメントテーブルメモリ6に登
録する。
Now, assume that the vertical subpattern (VSP) has a pattern of J-shaped segment components A and B shown in FIG. 3. When starting from the upper left point and scanning from left to right to detect change points, no change points are detected until the line before the Y1 line, and it is only after scanning the Y1 line that the two change points of stroke component A are detected. That is, a change point XBYl from a white point to a black point and a change point XwY1 from a black point to a white point are obtained. At this time (XBYI + XW
YI)/2 is calculated and this coordinate is registered in the primitive segment table memory 6 as the starting point of the primitive segment 1.

さらに次の行を走査して得られた2個の変化点をそれぞ
れXBY1+1.Xw、□十□として次に示す式(1)
、式(2)を共に満足した時には、現行で検出された黒
点の連続領域の座標位置と前行で検出された黒点のそれ
とは重なると定義し、前行のセグメントの継続であると
する。
Furthermore, the two change points obtained by scanning the next row are XBY1+1. Expression (1) shown below as Xw, □10□
, when equation (2) is satisfied, it is defined that the coordinate position of the continuous area of the currently detected black point overlaps with that of the black point detected in the previous line, and is considered to be a continuation of the segment of the previous line.

XBYl≦XWY1+1 ・・・・・・ (1)XWY
1≧XDY1+1 ・・・・・・ (2)(ただしXB
Y工〈XwY□、XBY1+□〈XwY1+□とする。
XBYl≦XWY1+1 ・・・・・・ (1) XWY
1≧XDY1+1 ・・・・・・ (2) (However, XB
Y engineering〈XwY□, XBY1+□〈XwY1+□.

)また、これ以外の場合には、現列で検出された黒点の
連続領域の中心座標位置を前列とは別の原始セグメント
のものとして原始セグメントテーブルメモリ6に登録す
る。
) In other cases, the center coordinate position of the continuous area of black points detected in the current row is registered in the primitive segment table memory 6 as belonging to a primitive segment different from the previous row.

このようにして72行の前行まで走査し、原始セグメン
ト1の中心点座標を登録する。72行を走査すると変化
点個数が4Sl固になり、新しいセグメント成分Bが出
現したことがわかる。前述のような操作を〈シ返して、
原始セグメント1の継続として登録されるものと、新し
い原始セグメント2の開始点として原始セグメント1と
は別に中心点座標位置が定まり原始セグメントテーブル
メモリ6に登録されるものとに分かれる。このようにし
て¥3行の前行まで走査し、セグメント成分A。
In this way, scanning is performed up to the 72nd previous line, and the coordinates of the center point of primitive segment 1 are registered. When the 72nd row is scanned, the number of change points becomes 4Sl, indicating that a new segment component B has appeared. By repeating the operations described above,
There are two types: one is registered as a continuation of primitive segment 1, and the other is registered in the primitive segment table memory 6 as the starting point of a new primitive segment 2 whose center point coordinate position is determined separately from primitive segment 1. In this way, it scans up to the line before the \3 line and selects segment component A.

Bの中心点座標をそれぞれ原始セグメントテーブルメモ
リ6に登録する。Y3列を走査すると変化点が2個にな
り、黒点の連続領域の座標位置から原始セグメント2の
継続であることがわかり、原始セグメントlの検出が終
了したこと力;ゎがる。
The coordinates of the center point of B are respectively registered in the primitive segment table memory 6. When the Y3 column is scanned, there are two changing points, and it can be seen from the coordinate positions of the continuous area of the black dots that it is a continuation of the primitive segment 2, indicating that the detection of the primitive segment 1 has been completed.

これからY4行の前行までは変化点が2個で、原始セグ
メント2の継続として登録する。Y4行を走査すると変
化点がなくなり、原始セグメント2の検出が終了したこ
とになり垂直ザブパターン(VSP)のセグメント抽出
がすべて完了するととになる。同様な機能が水平セグメ
ント検出部5b。
There are two changing points from this line to the previous line of Y4 line, and it is registered as a continuation of original segment 2. When the Y4 row is scanned, there are no changing points, which means that the detection of the original segment 2 has been completed, and that all segment extraction of the vertical sub pattern (VSP) has been completed. A similar function is provided by the horizontal segment detection section 5b.

左斜めセグメント検出部5C1右斜めセグメント検出部
5dで行なわれ、検出された原始セグメントはそれぞれ
原始セグメントテーブルメモリ6に格納される。
The detection is performed by the left diagonal segment detection section 5C1 and the right diagonal segment detection section 5d, and the detected primitive segments are stored in the primitive segment table memory 6, respectively.

第4図は、第1図に示した文字「L」のサブパターンに
つき前述の如く芯線化して抽出された原始セグメントを
示したものである。第4図(a)は、水平原始セグメン
ト、第4図(1))は垂直原始セグメント、第4図(C
)は、左斜め原始セグメントを示す。
FIG. 4 shows the original segment extracted by converting the subpattern of the letter "L" shown in FIG. 1 into core lines as described above. Figure 4(a) shows the horizontal primitive segment, Figure 4(1)) shows the vertical primitive segment, Figure 4(C
) indicates a left diagonal primitive segment.

接続点・交差点座標検出部7は、原始セグメントテーブ
ル6に格納されている原始セグメント全てについて接続
・交差関係を検出し、接続点・交差点テーブルメモリ8
に結果を格納するものであり、その動作フローチャー1
・を第5図に示す。まず原始セグメントテーブルメモリ
6の中から1本の原始セグメント(原始セグメント1と
する)を取り出し、他の原始セグメント(原始セグメン
ト2とする)の各点と、取り出した原始セグメント1の
各点の距離を計算し、距離がC,(a、け定数で本実施
例では1)以下の原始セグメント1と、原始セグメント
2におけるそれぞれの点座標(以後接続・交差候補点と
いう)を検出し、接続・交差候補点が存在した時は、原
始セグメント1と原始セグメント2は接続・交差の候補
とする。接続であるか、交差であるかの判定は、以下の
処理により決定する。
The connection point/intersection coordinate detection unit 7 detects connection/intersection relationships for all the primitive segments stored in the primitive segment table 6, and stores them in the connection point/intersection table memory 8.
The operation flowchart 1 is to store the results in
・is shown in Figure 5. First, one primitive segment (referred to as primitive segment 1) is taken out from the primitive segment table memory 6, and the distance between each point of another primitive segment (referred to as primitive segment 2) and each point of the retrieved primitive segment 1 is , and detect the coordinates of each point in primitive segment 1 and primitive segment 2 (hereinafter referred to as connection/intersection candidate points) whose distance is less than or equal to C, (a, a constant of 1 in this example), and connect/intersect candidate points. When an intersection candidate point exists, primitive segment 1 and primitive segment 2 are considered candidates for connection/intersection. Whether it is a connection or an intersection is determined by the following process.

通常接続・交差候補点が存在する場合は、複数個連続す
るため、原始セグメント1.原始セグメント2それぞれ
について、自セグメント内における接続・交差候補点が
連続する間を検出し、この間の始点、終点それぞれから
自セグメントの両端点までの距離を計算し、この距離が
C2W(C2は定数で本実施例では1であり、Wは線幅
である)以下の時、原始セグメント1と原始セグメント
2は接続である(@記接続・交差候補点は、接続点であ
ると決定する)とすると同時に原始セグメント1.原始
セグメント2それぞれについて、前記セグメントの連続
する接続点の中点座標と、前記セグメントの始点に接続
しているか、終点に接続しているかの情報を接続点・交
差点テーブルメモリ8に格納する。これ以外は原始セグ
メント1と、原始セグメント2は交差である(@記接続
・交差候補点は交差点であると決定する)と判定すると
同時に原始セグメントlI 原始セグメント2それぞれ
について、前記セグメントの連続する交差点の中点の座
標を接続点・交差点テーブルメモリ8に格納する。
Normally, if there are connection/intersection candidate points, multiple points are consecutive, so primitive segment 1. For each primitive segment 2, detect the interval between consecutive connection/intersection candidate points within the self-segment, calculate the distance from each of the starting point and end point to both end points of the self-segment, and calculate this distance as C2W (C2 is a constant). is 1 in this example, and W is the line width) In the following case, primitive segment 1 and primitive segment 2 are connected (@ connection/intersection candidate point is determined to be a connecting point). At the same time, primitive segment 1. For each primitive segment 2, the coordinates of the midpoint of consecutive connection points of the segment and information on whether it is connected to the start point or end point of the segment are stored in the connection point/intersection table memory 8. Other than this, it is determined that primitive segment 1 and primitive segment 2 are intersections (the connection/intersection candidate point marked by @ is determined to be an intersection), and at the same time, primitive segment lI For each primitive segment 2, continuous intersections of the segments The coordinates of the midpoint of are stored in the connection point/intersection table memory 8.

有効セグメント検出部9は、以下に示す2種類の処理に
より不必要なセグメントを削除する。
The valid segment detection unit 9 deletes unnecessary segments by the following two types of processing.

不要セグメント削除処理1: 4方向の中間的角度を持
つストロークに検出された複数のセグメントについて、
不必要なセグメントを削除する。
Unnecessary segment deletion processing 1: For multiple segments detected in strokes with intermediate angles in four directions,
Delete unnecessary segments.

不要セグメント削除処理2: ストロークが集中する場
合、又は、接続点・交差点において検出された不必要な
セグメントを削除する。
Unnecessary segment deletion process 2: Unnecessary segments detected when strokes are concentrated or at connection points/intersections are deleted.

不要セグメント削除処理1の動作フローチャートを第6
図に、不要セグメント削除処理2の動作フローチャート
を第7図に示すが以下順に各処理について説明する。
The operation flowchart of unnecessary segment deletion processing 1 is shown in the sixth section.
FIG. 7 shows an operation flowchart of unnecessary segment deletion processing 2, and each processing will be explained in order below.

不要セグメント削除処理1の動作を第8図を用いて説明
する。接続点・交差点テーブル8の中から不要セグメン
トを示すフラグがセットさね、てぃ々いセグメントC以
下有効セグメントという)のうち1本の有効セグメント
(有効セグメント1とし、第8図中Hセグメント)を取
り出し、その有効セグメント1に交差して因る有効セグ
メント(有効セグメント2とし、第8図中Rセグメント
)を検出し、前記有効セグメント1の始点(第8図中H
始点)と終点(第8図中I(始点)からそれぞれ前記有
効セグメント2へ垂線をおろし、その垂線が有効セグメ
ント2と交差する場合それぞれの距離を計算しその距離
が共に04W (0,は定数で本実施例では2であり、
Wは線幅である)以下の時、前記有効セグメント1に不
要セグメントである事を示すフラグを接続点・交差点テ
ーブルメモリ8ヘセツトする。
The operation of unnecessary segment deletion processing 1 will be explained using FIG. When the flag indicating an unnecessary segment is set in the connection point/intersection table 8, one valid segment (valid segment 1, H segment in Fig. 8) is selected from the small segment C (hereinafter referred to as valid segment). is taken out, an effective segment intersecting with effective segment 1 (valid segment 2, R segment in FIG. 8) is detected, and the starting point of effective segment 1 (H segment in FIG. 8) is detected.
Drop perpendicular lines from the starting point) and the ending point (I (starting point) in Figure 8 to the effective segment 2, respectively, and when the perpendicular lines intersect with the effective segment 2, calculate the respective distances, and the distances are both 04W (0, is a constant In this example, it is 2,
(W is the line width) In the following cases, a flag indicating that the valid segment 1 is an unnecessary segment is set in the connection point/intersection table memory 8.

不要セグメント削除処理2の動作を第9図を用いて説明
する。接続点・交気点テーブルメモリ8の中から1本の
有効セグメント(有効セグメント1とし第9図中■セグ
メント)を取り出し、その有効セグメントに交差又は接
続している有効セグメント全てを検出し、検出された有
効セグメ、ントどおしが少なくとも1つの他の検出され
た有効セグメントに接続又は、交差している2本の有効
セグメントのみを取り出す。第9図でHv上セグメント
接続しているH1セグメント、H2セグメント。
The operation of unnecessary segment deletion processing 2 will be explained using FIG. 9. One valid segment (valid segment 1, segment ■ in Figure 9) is taken out from the connection point/intersection point table memory 8, and all valid segments that intersect or connect to that valid segment are detected. Only two valid segments are retrieved that are both connected to or intersect with at least one other detected valid segment. In Figure 9, the H1 segment and H2 segment are connected to the Hv upper segment.

交差しているLセグメントが取り出される。The intersecting L segments are retrieved.

次に有効セグメント1と前記取り出された2本の有効セ
グメントとにより3角形が形成される組み合わせを検出
し、(第9図中△ABC,△A B’ O’が検出され
る)有効セグメント1において他の前記2本の有効セグ
メントがそれぞれ接続又は、交差する点C第9図中A点
、B点又は、A点、B′点)の中点座標(第9図中り点
又はD′点)を計算する。
Next, a combination in which a triangle is formed by the effective segment 1 and the two extracted effective segments is detected, and (ΔABC, ΔA B'O' are detected in FIG. 9), the effective segment 1 is detected. The coordinates of the midpoint of the point C (point A, point B, or point A, point B' in FIG. 9) where the other two effective segments connect or intersect, respectively (midpoint or D' in FIG. 9) point).

さらに、2本の有効セグメントどおしが接続又は、交差
している点の座標(第9図中C点又は07点)を計算し
、前記計算した中点との距離C第9図中C点−D点間又
は、07点−D′点点間距離)を計算し、その距離が0
3W以下の場合、有効セグメント1における前記2本の
有効セグメントにそれぞれ接続又は交差している点捷で
の間を削除候補とする。以上の処理を前記検出された3
角形全てについて実行した後、有効セグメント1の両端
点からそれぞれ距離がC2Wまでの間を削除候補する。
Furthermore, the coordinates of the point where the two effective segments connect or intersect (point C or point 07 in Figure 9) are calculated, and the distance from the calculated midpoint is C in Figure 9. Calculate the distance between points - D or between points 07 and D', and if the distance is 0.
If it is 3W or less, the points between the two valid segments in valid segment 1 that are connected to or intersect with each other are selected as deletion candidates. The above processing is performed on the detected 3
After executing the process for all the squares, the area between each end point of effective segment 1 and the distance C2W is selected as deletion candidates.

有効セグメント1全てが削除候補である場合は、有効セ
グメント1を不要セグメントとして削除する。これ以外
の有効セグメントを有効セグメントテーブルメモリ10
へ登録する。
If all valid segments 1 are deletion candidates, valid segments 1 are deleted as unnecessary segments. Valid segments other than this are valid segment table memory 10
Register to.

ストローク抽出部11は、有効セグメントテーブルメモ
リ10から順に有効セグメントを取り出し、その有効セ
グメントが他の有効セグメントへ延長可能な場合におい
て、他の有効セグメントと合成して1つの有効セグメン
トとする処理を延長可能な有効セグメントがなくなるま
で行い、残った有効セグメントをストロークとしてスト
ロークテーブルメモリ12へ格納するものでその動作フ
ローを第11図に示す。以下その動作を詳細に説明する
The stroke extraction unit 11 sequentially extracts valid segments from the valid segment table memory 10, and when the valid segments can be extended to other valid segments, extends the process of combining them with other valid segments to form one valid segment. This operation is performed until there are no more possible valid segments, and the remaining valid segments are stored as strokes in the stroke table memory 12. The operation flow is shown in FIG. The operation will be explained in detail below.

有効セグメントテーブルメモリ10から使用済フラグの
セットされていない有効セグメント(有効セグメント1
とする)を取り出し、有効セグメント1に端点どおしで
接続している使用済フラグのセットされていない他の有
効セグメント(有効セグメント2とする)を検出して、
有効セグメント1と有効セグメント2を合成し、有効セ
グメント1とする。と同時に有効セグメント2が使用済
である事を示すフラグを有効セグメントテーブルメモリ
10ヘセツトする。上記の処理を有効セグメント1と端
点どおしで接続する使用済フラグのセットされていない
有効セグメントがなくなるまで実行し、有効セグメント
1をストロークテーブルメモリ12にストロークとして
登録する。
Valid segments for which the used flag is not set (valid segment 1) from the valid segment table memory 10
), and detects another valid segment (denoted as valid segment 2) whose end points are connected to valid segment 1 and whose used flag is not set.
Effective segment 1 and effective segment 2 are combined to form effective segment 1. At the same time, a flag indicating that valid segment 2 has been used is set in valid segment table memory 10. The above process is executed until there are no valid segments whose end points are connected to valid segment 1 and whose used flags are not set, and valid segment 1 is registered in the stroke table memory 12 as a stroke.

第10図(a)はひらがな゛う”′の有効セグメントが
得られた例であり、第10図(b)は得られた目的セグ
メントから2本のストロークが抽出された例である。
FIG. 10(a) is an example in which an effective segment of hiragana "'" is obtained, and FIG. 10(b) is an example in which two strokes are extracted from the obtained target segment.

(発明の効果) 以上説明したように本発明に於いては、接続点・交差点
において検出されていた不必要なセグメント、4方向の
中間的角度を持つストロークに検出されていた不必要な
セグメント、さらにストロークが集中する場合に発生し
た不必要なセグメントを削除し残りの有効セグメントを
延長し、ストロークを抽出しているので、ストローク間
の接続の交差関係が明瞭になる。
(Effects of the Invention) As explained above, in the present invention, unnecessary segments detected at connection points and intersections, unnecessary segments detected at strokes having intermediate angles in four directions, Furthermore, unnecessary segments that occur when strokes are concentrated are deleted, remaining valid segments are extended, and strokes are extracted, so the intersecting relationships between connections between strokes become clear.

さらに、セグメントを延長する際にセグメント間の角度
等複雑な計算をせず、有効なセグメントの端点にのみ着
目しているので処理速度が早いという利点を有しており
安定で亮速な文字認識装置に利用することができる。
Furthermore, when extending segments, there is no need to perform complex calculations such as angles between segments, and instead focus only on the end points of valid segments, which has the advantage of fast processing speed, resulting in stable and fast character recognition. It can be used for equipment.

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

第1図は、本発明の一実施例を示すプロ・・り図、第2
図(a)〜(e)は、サブパターンの抽出例を示す図、
第3図は、ストロークの抽出方法を説明する図、第4図
(a)〜(C)は第2図のサブパターンから抽出された
セグメントを示す図、第5図は、接続点・交差点検出部
7における動作フローチャート、第6図と第7図は有効
セグメント検出部9における動作フローチャート、第8
図と第9図は、−有効セグメント検出方法を説明する図
、第10図(a)および(b)は、ストローク抽出方法
を説明する図、第11図はストローク抽出部11の動作
フローチャートである。 1・・・2値パタ一ン入力信号、 2・・・パターンレ
ジスタ、3・・・線幅計算部、4a・・・水平サブパタ
ーン抽出部、4b・・・垂直サブパターン抽出部、4C
・・・左斜めサブパターン抽出部、4d・・・右斜めサ
ブパターン抽出部、5a・・・水平セグメント抽出部、
5b・・・垂直セグメント抽出部、5C・・・左斜めセ
グメント抽出部、5d・・・右斜めセグメント抽出部、
 6・・・原始セグメントテーブルメモリ、 7・・・
接続点・交差点検出部、 8・・・接続点・交差点テー
ブルメモリ、 9・・・有効セグメント検出部、10・
・・有効セグメントテーブルメモリ、11・・・ストロ
ーク抽出部、12・・・ストロークテーブルメモリ。 特許出願人 沖電気工業株式会社 特許出願代理人 弁理士 山 本 恵 −幕2図 (θ) (b) (d) (e) 幕3図 ローフ] 1 手続補正書(自発) 昭和59年8月/(日 特許庁長官 志 賀 学 殿 1、事件の表示 昭和59年 特許願 第36110号 2 発明の名称 文字認識におけるストローク抽出方法 3、補正をする者 事件との関係 特許出願人 ・ 名 称 (029)沖電気工業株式会社5、補正の
対象 明細書の発明の詳細な説明の欄及び図面の簡単な説明の
欄並びに図面 (2)同第13頁第5行及び同頁第17行の[ど:ta
’Jを1どうし]と補正する。 (31同第14頁第5行の「有効」を1さらに有効」と
補正する。 (4)同第15貞第4行及び同頁第11行の「とおし」
を「どうし」と補正する。 (5)同第17頁第7行及び同頁第10行の「水平」を
「垂直」と補正する。 (6)同第17頁第8行及び同頁第11行の「垂直」を
「水平」と補正する。 (7)図面の第6図、第7図及び第11図をそitぞ)
2別紙のとおり補正する。 以 上
FIG. 1 is a professional diagram showing one embodiment of the present invention, and FIG.
Figures (a) to (e) are diagrams showing examples of sub-pattern extraction;
Figure 3 is a diagram explaining the stroke extraction method, Figures 4 (a) to (C) are diagrams showing segments extracted from the sub-patterns in Figure 2, and Figure 5 is connection point/intersection detection. 6 and 7 are flowcharts of the operation in the effective segment detection section 9, and FIG.
9 and 9 are diagrams for explaining the effective segment detection method, FIGS. 10(a) and (b) are diagrams for explaining the stroke extraction method, and FIG. 11 is an operation flowchart of the stroke extraction unit 11. . 1... Binary pattern input signal, 2... Pattern register, 3... Line width calculation section, 4a... Horizontal sub-pattern extraction section, 4b... Vertical sub-pattern extraction section, 4C
...Left diagonal sub-pattern extraction section, 4d... Right diagonal sub-pattern extraction section, 5a... Horizontal segment extraction section,
5b... Vertical segment extraction section, 5C... Left diagonal segment extraction section, 5d... Right diagonal segment extraction section,
6... Primitive segment table memory, 7...
Connection point/intersection detection unit, 8... Connection point/intersection table memory, 9... Valid segment detection unit, 10.
... Effective segment table memory, 11... Stroke extraction unit, 12... Stroke table memory. Patent Applicant Oki Electric Industry Co., Ltd. Patent Application Agent Patent Attorney Megumi Yamamoto - Act 2 Figure (θ) (b) (d) (e) Act 3 Figure Loaf] 1 Written amendment (voluntary) August 1980 / (Mr. Manabu Shiga, Commissioner of the Japanese Patent Office1, Indication of the case 1982 Patent Application No. 361102 Name of the invention Stroke extraction method in character recognition 3, Relationship with the person making the amendment case Patent applicant/name ( 029) Oki Electric Industry Co., Ltd. 5, Detailed description of the invention column and Brief description of the drawings column of the specification subject to amendment, and Drawing (2) [ on page 13, line 5 and line 17 of the same page] Do:ta
'J between 1']. (31 Amend “valid” in the 5th line of page 14 of the same to 1 “further valid.”) (4) “Tooshi” in the 4th line of the 15th, line 11 of the same page.
Correct it with "doshi". (5) Correct "horizontal" in line 7 of page 17 and line 10 of page 10 to "vertical". (6) Correct "vertical" to "horizontal" in line 8 of page 17 and line 11 of page 11. (7) Please refer to Figures 6, 7 and 11 of the drawings.)
2 Correct as shown in the attached sheet. that's all

Claims (1)

【特許請求の範囲】[Claims] 文字図形パターンを構成するセルの明暗を電気信号に変
換してメモリーに蓄積する工程と、蓄積されたパターン
を所定の複数の方向に走査して谷走査方向に対応するス
トローク成分をあられすサブパターンを抽出する工程と
、各サブパターンのストローク成分を芯線化処理して得
られる原始セグメントを抽出する工程と、該芯線セグメ
ントの芯線座標系列を使用して不要セグメントを検出除
去し不要セグメント以外の有効セグメントを得る工程と
、2つの有効セグメントが各々の端点て接続している条
件が成立するとき当該2つのセグメントを合成する合成
工程と、該合成工程を前記条件が成立しなくなるまでく
り返す工程と、最終的に残されたセグメントをストロー
クとする工程とを有することを特徴とする文字認識にお
けるストローク抽出方法。
A process of converting the brightness of cells constituting a character figure pattern into electrical signals and storing them in a memory, and a sub-pattern that scans the stored pattern in a plurality of predetermined directions and generates stroke components corresponding to the valley scanning direction. , a process of extracting primitive segments obtained by skeletonizing the stroke components of each sub-pattern, and detecting and removing unnecessary segments using the skeleton coordinate series of the skeleton segments, and creating effective segments other than unnecessary segments. a step of obtaining segments; a step of combining two valid segments when a condition that the end points of the two segments are connected holds; a step of repeating the step of combining the two segments until the condition no longer holds; A method for extracting strokes in character recognition, the method comprising the following steps: 1. A method for extracting strokes in character recognition, comprising the following steps: 1. A method for extracting strokes in character recognition.
JP59036110A 1984-02-29 1984-02-29 Stroke extraction method in character discrimination Granted JPS60181883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59036110A JPS60181883A (en) 1984-02-29 1984-02-29 Stroke extraction method in character discrimination

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59036110A JPS60181883A (en) 1984-02-29 1984-02-29 Stroke extraction method in character discrimination

Publications (2)

Publication Number Publication Date
JPS60181883A true JPS60181883A (en) 1985-09-17
JPH0326878B2 JPH0326878B2 (en) 1991-04-12

Family

ID=12460626

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59036110A Granted JPS60181883A (en) 1984-02-29 1984-02-29 Stroke extraction method in character discrimination

Country Status (1)

Country Link
JP (1) JPS60181883A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0632402A1 (en) * 1993-06-30 1995-01-04 International Business Machines Corporation Method for image segmentation and classification of image elements for document processing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0632402A1 (en) * 1993-06-30 1995-01-04 International Business Machines Corporation Method for image segmentation and classification of image elements for document processing

Also Published As

Publication number Publication date
JPH0326878B2 (en) 1991-04-12

Similar Documents

Publication Publication Date Title
JP2951814B2 (en) Image extraction method
JP2608571B2 (en) Apparatus and method for vectorizing input scanned image data
JPH08305796A (en) Pattern extracting device, table preparing device for pattern recognition and pattern recognition device
JP2006268804A (en) Thinning method of binary image
JPS60181883A (en) Stroke extraction method in character discrimination
JPH0981740A (en) Diagram input device
JP2878194B2 (en) Partial erasure and partial detection method of image data
JPH035630B2 (en)
JP2623559B2 (en) Optical character reader
JP2558668B2 (en) Character pattern extraction method
JP2755299B2 (en) Image processing method
JPH05290162A (en) Diagram branch point connecting method for image input device
JPS6081683A (en) Expanding and contracting method of dot pattern
JPH11250256A (en) Graphic recognizing/processing method, and record medium recorded with the program
JPS63316171A (en) System for extracting broken line and chain line
JP2563163B2 (en) Figure instruction method
JPH09147125A (en) Method and device for outline extraction
JPH04236678A (en) Method for shaping area
JPH04172573A (en) Picture processing method
CN115841671A (en) Calligraphy character skeleton correction method, system and storage medium
JPH1021332A (en) Non-linear normalizing method
JPS6292085A (en) Recognizing system for symmetrical characteristics of graphic form
JPS6379183A (en) Graphic recognizing device
JPH04117579A (en) Hatching area extracting method
JPH01281576A (en) Method for linealizing image data