JP2882056B2 - How to identify specific patterns - Google Patents

How to identify specific patterns

Info

Publication number
JP2882056B2
JP2882056B2 JP2408122A JP40812290A JP2882056B2 JP 2882056 B2 JP2882056 B2 JP 2882056B2 JP 2408122 A JP2408122 A JP 2408122A JP 40812290 A JP40812290 A JP 40812290A JP 2882056 B2 JP2882056 B2 JP 2882056B2
Authority
JP
Japan
Prior art keywords
pattern
line
section
unit
rectangular frame
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 - Fee Related
Application number
JP2408122A
Other languages
Japanese (ja)
Other versions
JPH04225491A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2408122A priority Critical patent/JP2882056B2/en
Publication of JPH04225491A publication Critical patent/JPH04225491A/en
Application granted granted Critical
Publication of JP2882056B2 publication Critical patent/JP2882056B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、手書きされた特定パタ
ーンの識別方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for identifying a handwritten specific pattern.

【0002】[0002]

【従来の技術】従来、製版機で範囲指定を示す左カッコ
「と、右カッコ」のコンピュータによるパターンの識別
方法としては、パターンの特徴抽出として、パターン・
マッチング法が知られている。あらかじめ用意されてい
る標準パターンであるテンプレートと入力データのパタ
ーンとを比較し、最もよく重り合うテンプレートのパタ
ーン・クラスに入力データパターンを対応させること
で、2つのパターンのいずれであるかの識別を行なって
いた。
2. Description of the Related Art Conventionally, as a method of identifying a pattern by a computer having a left parenthesis "and a right parenthesis" indicating a range designation in a plate making machine, a pattern / character
A matching method is known. By comparing a template, which is a standard pattern prepared in advance, with the pattern of the input data, and associating the input data pattern with the pattern class of the template that overlaps the most, it is possible to identify which of the two patterns it is. I was doing.

【0003】[0003]

【発明が解決しようとする課題】しかしながらパターン
の特徴抽出にパターン・マッチング法を行うには、あら
かじめ標準パターンを用意する必要があり、標準パター
ンの格納場所が必要となる。
However, in order to perform the pattern matching method for pattern feature extraction, it is necessary to prepare a standard pattern in advance, and a storage location for the standard pattern is required.

【0004】また、手書きということで、文字の大小,
傾斜に対する処理も必要になる。パターン・マッチング
法を用いた場合、パターン・マッチングの処理、文字の
大小に関しては、正規化の処理、文字の傾斜には、文字
の回転の処理が必要となる。
[0004] Also, because of handwriting, the size of characters,
Processing for inclination is also required. When the pattern matching method is used, a pattern matching process, a normalization process for the size of a character, and a character rotation process are required for the inclination of the character.

【0005】これらの理由によって、プログラムが複雑
になり、容量が大きくなるため、処理速度が遅いという
問題点を有していた。
[0005] For these reasons, the program becomes complicated and the capacity becomes large, so that there is a problem that the processing speed is slow.

【0006】本発明は上記目的を達成するために、上記
のパターンの特徴抽出を簡単な処理で、かつ短時間で行
うことができる特定パターンの識別方法を提供すること
を目的としている。
An object of the present invention is to provide a method for identifying a specific pattern which can perform the above-described feature extraction of the pattern by a simple process in a short time.

【0007】[0007]

【課題を解決するための手段】この目的を達成するため
に、本発明の特定パターンの識別方法は、識別される対
象のパターンを記憶する画素メモリ部と、この画素メモ
リ部に記憶されたパターンを1ラインずつ読込んでいく
ラスタ・スキャン部と、1ライン中で連続する黒画素の
始点と終点とを検出する黒画素の連続区間検出部と、始
点および終点の区間情報として記憶する区間情報記憶部
と、前記区間情報をラインごとに1ライン前の区間情報
と比較して黒画素が連結しているかどうか判定し前記パ
ターンの外接矩形枠を決定する外接矩形枠決定部と、前
記外接矩形枠内で黒画素と白画素の数量比を識別するこ
とでパターンの形を識別しいずれのパターンであるか判
定するパターン識別部とを備えたものである。
In order to achieve this object, a specific pattern identifying method according to the present invention comprises a pixel memory unit for storing a pattern to be identified, and a pattern stored in the pixel memory unit. , A raster scan unit that reads the image data one line at a time, a continuous pixel detection unit that detects the start point and the end point of the continuous black pixel in one line, and a section information storage unit that stores the start point and end point section information. A circumscribed rectangular frame determining unit that determines whether or not black pixels are connected by comparing the section information with the previous line information for each line and determines a circumscribed rectangular frame of the pattern; And a pattern identification unit that identifies the pattern shape by identifying the ratio of the number of black pixels to the number of white pixels.

【0008】[0008]

【作用】本発明によれば、パターンの外接矩形枠の領域
を決定し、この枠内の黒,白画素数を数えるだけで、2
つのパターンのうちいずれであるかを識別することがで
きるため、標準パターンを必要とせずパターンマッチン
グ処理もなく処理速度が速い。
According to the present invention, the area of the circumscribed rectangular frame of the pattern is determined, and the number of black and white pixels in this frame is counted to obtain 2
Since it is possible to identify which one of the two patterns is used, a standard pattern is not required, there is no pattern matching processing, and the processing speed is high.

【0009】[0009]

【実施例】以下、本発明の一実施例の特定パターンの識
別方法について、図面を参照して説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A method for identifying a specific pattern according to an embodiment of the present invention will be described below with reference to the drawings.

【0010】特定パターンを一例として、製版機で範囲
指定を示す左カッコ「と、右カッコ」の識別について説
明する。
The identification of a left parenthesis "and a right parenthesis" indicating a range designation in a plate making machine will be described using a specific pattern as an example.

【0011】図1は、本発明の特定パターンの識別の全
体構成例のブロック図を示すものである。1は識別対象
となる特定パターンが記憶された画素メモリ部である。
2はラスタ・スキャン部で、画素メモリ部1より1ライ
ンずつ記憶されたパターンを読込む。黒画素の連続区間
検出部3では、1ライン中で、連続する黒画素の始点と
終点を検出し、区間情報記憶部4にその始点および終点
の区間を区間情報として記憶する。外接矩形枠判定部5
では、区間情報記憶部4に記憶されている区間情報を1
ラインごとに、1ライン前の区間情報と比較して、連結
関係にあるかどうかを判定し、特定パターンの外接矩形
枠を決定する。パターン識別部6では、画素メモリを外
接矩形枠で限定した領域内で、黒画素(特定パターンの
部分)と白画素との数量比率によって、パターンの識別
を行う。
FIG. 1 is a block diagram showing an example of the overall configuration of the identification of a specific pattern according to the present invention. Reference numeral 1 denotes a pixel memory unit in which a specific pattern to be identified is stored.
Reference numeral 2 denotes a raster scanning unit which reads a pattern stored line by line from the pixel memory unit 1. The black pixel continuous section detection section 3 detects the start point and end point of the continuous black pixel in one line, and stores the section of the start point and end point in the section information storage section 4 as section information. Circumscribed rectangular frame determination unit 5
Then, the section information stored in the section information storage unit 4 is set to 1
For each line, it is compared with the section information one line before to determine whether or not there is a connection relationship, and a circumscribed rectangular frame of the specific pattern is determined. The pattern identification unit 6 identifies a pattern based on the quantity ratio between black pixels (part of a specific pattern) and white pixels in an area where the pixel memory is limited by a circumscribed rectangular frame.

【0012】図2は、連続区間検出部3と区間情報記憶
部4の働きを説明する説明図である。7,8は、それぞ
れ画素メモリの1ライン分の(i−1)番目のライン、
i番目のラインの画素データである。9,10は、区間
情報記憶部4における(i−1)番目のライン、i番目
ラインのそれぞれの区間情報の格納場所である。(i−
1)番目のラインの区間11,区間12の始点と終点を
それぞれ始点アドレス14,終点アドレス15に記憶す
る。i番目のラインの区間13の始点と終点をそれぞれ
始点アドレス16,終点アドレス17に記憶する。
FIG. 2 is an explanatory diagram for explaining the operation of the continuous section detection section 3 and section information storage section 4. 7, 8 are (i-1) th lines for one line of the pixel memory,
This is the pixel data of the i-th line. Reference numerals 9 and 10 denote storage locations of the (i−1) -th line and the i-th line in the section information storage unit 4. (I-
1) The start point and the end point of the section 11 and the section 12 of the second line are stored in the start point address 14 and the end point address 15, respectively. The start point and the end point of the section 13 of the i-th line are stored in the start point address 16 and the end point address 17, respectively.

【0013】図3は、外接矩形枠判定部5の働きを説明
する説明図である。18は画素メモリ内のデータで、1
9,20,21は2番目のライン,3番目のライン,4
番目のラインの黒画素の連続区間である。外接矩形枠の
決定には、まずn番目のラインのデータとその1ライン
前の(n−1)番目のラインのデータとの連結関係を調
べる。ここで、連結関係とは、図4で示すように、(n
−1)番目のラインの始点,終点のX座標をそれぞれa
n-1,bn-1とし、n番目のラインの始点,終点のX座標
をそれぞれan,bnとすると、以下の関係がある場合に
(n−1),n番目のラインの黒画素データが連結する
ものとする。
FIG. 3 is an explanatory diagram for explaining the operation of the circumscribed rectangular frame determination unit 5. 18 is data in the pixel memory, and 1
9, 20, 21 are the second line, the third line, 4
This is a continuous section of black pixels on the second line. In determining the circumscribed rectangular frame, first, the connection relationship between the data of the n-th line and the data of the (n-1) -th line one line before is examined. Here, the connection relationship is, as shown in FIG.
-1) The X coordinate of the start point and end point of the line is a
and n-1, b n-1, the start point of the n-th line, the respective X-coordinate of the end point and a n, b n, if the (n-1) following relationship, black n th line It is assumed that pixel data is linked.

【0014】 図3の場合、2番目のラインから黒画素の連続区間が
始まり、この段階で外接矩形枠は、5≦X≦7(x方
向),2≦Y≦2(y方向)となる。3番目のライン目
で黒画素の連続区間20と黒画素の連続区間19とは連
結しており、外接矩形枠は3≦X≦7,2≦Y≦3に拡
大される。4番目のライン目で同じく外接矩形枠は、3
≦X≦9,2≦Y≦4に拡大される。5ライン目で21
に連結する黒画素の連続区間がないので、最終的にこの
パターンの外接矩形枠は、3≦X≦9,2≦Y≦4に決
定される。
[0014] In the case of FIG. 3, a continuous section of black pixels starts from the second line, and at this stage, the circumscribed rectangular frame satisfies 5 ≦ X ≦ 7 (x direction) and 2 ≦ Y ≦ 2 (y direction). In the third line, the continuous section 20 of black pixels and the continuous section 19 of black pixels are connected, and the circumscribed rectangular frame is expanded to 3 ≦ X ≦ 7, 2 ≦ Y ≦ 3. In the fourth line, the circumscribed rectangular frame is also 3
≦ X ≦ 9, 2 ≦ Y ≦ 4. 21 on the 5th line
Since there is no continuous section of black pixels connected to the pattern, the circumscribed rectangular frame of this pattern is finally determined as 3 ≦ X ≦ 9, 2 ≦ Y ≦ 4.

【0015】図5(a),(b)は、パターン識別部6
の働きを説明する説明図である。22は特定パターンを
示し、23は外接矩形枠を示す。ここで、外接矩形枠2
3の領域内の、黒画素の数と、黒画素の左側の領域の白
画素の数を、それぞれ数える。例えば左カッコ「と右カ
ッコ」の判定は、以下のように画素の比率によって判別
する。
FIGS. 5A and 5B show a pattern identifying section 6.
FIG. 4 is an explanatory diagram for explaining the operation of the present invention. 22 indicates a specific pattern, and 23 indicates a circumscribed rectangular frame. Here, circumscribed rectangular frame 2
The number of black pixels in the area of No. 3 and the number of white pixels in the area to the left of the black pixel are counted. For example, left parenthesis “and right parenthesis” is determined based on the pixel ratio as follows.

【0016】2×(左側の白画素数)<外接矩形枠内の
全画素数−黒画素数の時は右カッコ「、2×(左側の白
ドット数)>外枠内の全ドット数−黒ドット数の時は左
カッコ」と判定する。
2 × (the number of white pixels on the left) <the total number of pixels in the circumscribed rectangular frame−the right parenthesis when the number of black pixels is “2 × (the number of white dots on the left)> the total number of dots in the outer frame− When the number of black dots is left parenthesis is determined.

【0017】従って、図5(a)の場合は、2×9<6
4−17となり、「と判定し、図5(b)の場合は、2
×49>64−18となり、」と判定する。
Therefore, in the case of FIG. 5A, 2 × 9 <6
4-17, and is determined as “, and in the case of FIG.
× 49> 64−18, and is determined.

【0018】以上のように本実施例によれば、外接矩形
枠内の画素の白と黒のドット数の比率によって左カッコ
であるか右カッコであるかの特徴抽出を行うので、標準
パターンを必要としない。また、特定パターン本実施例
では「,」の外接矩形枠の領域を決定し黒,白画素数を
数えるだけであるので、文字の正規化処理、および回転
処理も必要とはせず、またパターンマッチングの処理も
必要とせず処理速度も速い。
As described above, according to the present embodiment, the feature extraction of left parenthesis or right parenthesis is performed according to the ratio of the number of white and black dots of the pixels in the circumscribed rectangular frame. do not need. In this embodiment, since only the area of the circumscribed rectangular frame of “,” is determined and the number of black and white pixels is counted, the character normalization process and the rotation process are not required. The processing speed is fast without the need for matching processing.

【0019】なお、本実施例には、(,)、<,
>、{,}等の判定にも適用できる。
In this embodiment, (,), <,
>, {,}, Etc.

【0020】[0020]

【発明の効果】以上のように本発明によれば、パターン
の外接矩形枠の領域を決定し、この枠内の黒,白画素数
を数えるだけで、2つのパターンのうちいずれであるか
を識別することができるため、標準パターンを必要とせ
ずパターンマッチング処理もなく処理速度が速い。
As described above, according to the present invention, the area of a circumscribed rectangular frame of a pattern is determined, and only by counting the number of black and white pixels in this frame, it is possible to determine which of the two patterns. Since the identification can be performed, the processing speed is high without the need for the standard pattern and without the pattern matching processing.

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

【図1】本発明の一実施例の特定パターンの識別方式の
全体構成を示すブロック図
FIG. 1 is a block diagram showing an entire configuration of a specific pattern identification method according to an embodiment of the present invention;

【図2】同実施例の黒画素の連続区間検出部および区間
情報記憶部の働きを説明する説明図
FIG. 2 is an explanatory diagram for explaining functions of a continuous section detecting section and a section information storing section for black pixels according to the embodiment;

【図3】同実施例の外接矩形枠判定部の働きを説明する
説明図
FIG. 3 is an explanatory diagram illustrating an operation of a circumscribed rectangular frame determination unit according to the embodiment;

【図4】同実施例のパターンの黒画素の連結関係を示す
説明図
FIG. 4 is an explanatory diagram showing a connection relationship of black pixels in the pattern of the embodiment.

【図5】(a),(b)はそれぞれ同実施例の右カッ
コ,左カッコの判定をするパターン識別部の説明図
FIGS. 5A and 5B are explanatory diagrams of a pattern identification unit for judging right parenthesis and left parenthesis of the embodiment, respectively.

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

1 画素メモリ部 2 ラスタ・スキャン部 3 黒画素の連続区間検出部 4 区間情報記憶部 5 外接矩形枠判定部 6 パターン識別部 Reference Signs List 1 pixel memory section 2 raster scan section 3 continuous section detection section for black pixels 4 section information storage section 5 circumscribed rectangular frame determination section 6 pattern identification section

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】2つのパターンのうちいずれであるかを識
別するために識別される対象のパターンを記憶する画素
メモリ部と、この画素メモリ部に記憶されたパターンを
1ラインずつ読込んでいくラスタ・スキャン部と、1ラ
イン中で連続する黒画素の始点と終点とを検出する黒画
素の連続区間検出部と、始点および終点の区間を区間情
報として記憶する区間情報記憶部と、前記区間情報をラ
インごとに1ライン前の区間情報と比較して黒画素が連
結しているかどうか判定し前記パターンの外接矩形枠を
決定する外接矩形枠決定部と、前記外接矩形枠内で黒画
素と白画素の数量比を識別することでパターンの形を識
別しいずれのパターンであるか判定するパターン識別部
とを備えた特定パターンの識別方法。
1. A pixel memory unit for storing a pattern to be identified for identifying one of two patterns, and a raster for reading the pattern stored in the pixel memory unit line by line. A scanning unit, a black pixel continuous section detecting unit that detects a start point and an end point of a continuous black pixel in one line, a section information storage unit that stores a start point and an end point section as section information, and the section information. A circumscribed rectangular frame determining unit that determines whether or not black pixels are connected by comparing each line with the section information one line before, and determines a circumscribed rectangular frame of the pattern; A pattern identification unit comprising: a pattern identification unit that identifies a pattern shape by identifying a quantity ratio of pixels and determines which pattern is used.
JP2408122A 1990-12-27 1990-12-27 How to identify specific patterns Expired - Fee Related JP2882056B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2408122A JP2882056B2 (en) 1990-12-27 1990-12-27 How to identify specific patterns

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2408122A JP2882056B2 (en) 1990-12-27 1990-12-27 How to identify specific patterns

Publications (2)

Publication Number Publication Date
JPH04225491A JPH04225491A (en) 1992-08-14
JP2882056B2 true JP2882056B2 (en) 1999-04-12

Family

ID=18517616

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2408122A Expired - Fee Related JP2882056B2 (en) 1990-12-27 1990-12-27 How to identify specific patterns

Country Status (1)

Country Link
JP (1) JP2882056B2 (en)

Also Published As

Publication number Publication date
JPH04225491A (en) 1992-08-14

Similar Documents

Publication Publication Date Title
US5854854A (en) Skew detection and correction of a document image representation
US6839466B2 (en) Detecting overlapping images in an automatic image segmentation device with the presence of severe bleeding
US6798906B1 (en) Image processing apparatus and method including line segment data extraction
US5075895A (en) Method and apparatus for recognizing table area formed in binary image of document
JP3471578B2 (en) Line direction determining device, image tilt detecting device, and image tilt correcting device
JPH07220026A (en) Method and device for picture processing
US7155051B2 (en) Image recognition apparatus, image recognition method and image recognition program for specific pattern
US5014331A (en) Method of detecting an internal point within a closed area
JP2882056B2 (en) How to identify specific patterns
JP3089396B2 (en) Mark reading apparatus and method
JP3171626B2 (en) Character recognition processing area / processing condition specification method
JP3276555B2 (en) Format recognition device and character reader
JP3095470B2 (en) Character recognition device
JPH1153539A (en) Circular pattern discriminating method and storage medium
EP0601730A1 (en) Image processing method for correcting character slant
JP2000076378A (en) Character recognizing method
JP3406942B2 (en) Image processing apparatus and method
JPH0830725A (en) Device and method for processing image
JP2000000524A (en) Method for identifying picture post card and picture postcard identification device
JPH0129643Y2 (en)
JP2022019257A (en) Information processing device, information processing method, and program
JPH11232463A (en) Picture recognizing device and method therefor
JP2001143076A (en) Image processor
JP2002109544A (en) Seal impression positioning method and device
JP2954218B2 (en) Image processing method and apparatus

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees