JP3104355B2 - Feature extraction device - Google Patents

Feature extraction device

Info

Publication number
JP3104355B2
JP3104355B2 JP03351225A JP35122591A JP3104355B2 JP 3104355 B2 JP3104355 B2 JP 3104355B2 JP 03351225 A JP03351225 A JP 03351225A JP 35122591 A JP35122591 A JP 35122591A JP 3104355 B2 JP3104355 B2 JP 3104355B2
Authority
JP
Japan
Prior art keywords
pixel
value
continuity
attribute
unit
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
JP03351225A
Other languages
Japanese (ja)
Other versions
JPH05166008A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP03351225A priority Critical patent/JP3104355B2/en
Publication of JPH05166008A publication Critical patent/JPH05166008A/en
Application granted granted Critical
Publication of JP3104355B2 publication Critical patent/JP3104355B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)
  • Image Analysis (AREA)

Description

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

【産業上の利用分野】本発明は文字等の画像を認識する
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for recognizing images such as characters.

【0001】[0001]

【従来の技術】文字や記号等を認識するための処理を行
なうには、各々の文字や記号の形状の差異を良く表し、
かつ変形や雑音に影響されにくいような特徴を、対象と
する画像から抽出する必要がある。
2. Description of the Related Art In order to perform processing for recognizing characters and symbols, differences in the shapes of the characters and symbols are well represented.
It is necessary to extract features that are not easily affected by deformation and noise from the target image.

【0002】文字や記号は、これを細かい領域に分解す
れば、縦、横、斜め方向のいずれかの線になるので、各
領域に表れた線の方向がその文字や記号の特徴として、
その認識のために有効である。また線の太さに影響され
ないようにするためには、輪郭部のみから特徴を抽出す
ることも有効である。例えば、「外郭方向寄与度特徴に
よる手書き漢字の識別」(電子通信学会論文(D)昭5
8ー論488[Dー143] 萩田、内藤、増田)のよ
うに、輪郭画素から複数の方向に画像を走査して黒画素
が連続する数を調べ、各連結数の割合を特徴とするもの
や、特開昭63ー293691号公報あるいは特開昭6
3ー219089号公報のように文字の輪郭において周
辺画素の状態を調べ、方向を判定して特徴とするもの等
が知られている。
[0002] Characters and symbols can be broken down into small areas to form vertical, horizontal, or diagonal lines. The direction of the line in each area is a characteristic of the character or symbol.
It is effective for its recognition. To avoid being affected by the line thickness, it is effective to extract features only from the outline. For example, "Identification of handwritten kanji by contour direction contribution characteristics" (IEICE Transactions (D) Sho5
8-Theory 488 [D-143] Hagita, Naito, Masuda) Scans the image in multiple directions from the contour pixels, checks the number of consecutive black pixels, and characterizes the ratio of each connected number Or JP-A-63-293691 or JP-A-6-29391.
As disclosed in Japanese Patent Application Laid-Open No. 3-219089, there is known a method in which the state of surrounding pixels is examined in the outline of a character, the direction is determined, and the feature is determined.

【0003】[0003]

【発明が解決しようとする課題】しかし上記論文の方法
においては、特徴の数値は小数で表され、また各方向に
ついての数値を特徴として保持しなければならないため
に、データ量が多くなったり、装置が複雑になったり、
特徴の抽出や比較に時間がかかったりする。
However, in the method described in the above-mentioned paper, the numerical value of the feature is represented by a decimal number, and the numerical value in each direction must be held as a feature. The equipment becomes complicated,
It takes time to extract and compare features.

【0004】また、上記の公開特許公報の方法において
は、周辺の画素の状態しか反映しないため、実際の文字
や記号を構成する線の方向を表さなかったり、雑音など
による輪郭部の細かな凸凹の悪影響を受けたりする。特
に輪郭部では2値化の際の値に近い濃度を持っている画
素が多いため、わずかな雑音により白画素と判定された
り、黒画素と判定されたりするため、凸凹等の変動が多
く発生する。また、輪郭を追跡する処理は並列化するこ
とが難しく特徴の抽出に時間がかかる。
Further, in the method disclosed in the above-mentioned publication, only the state of peripheral pixels is reflected, so that the direction of a line constituting an actual character or symbol is not represented, or a fine outline portion due to noise or the like is not expressed. They may be adversely affected by unevenness. In particular, many pixels in the contour portion have a density close to the value at the time of binarization, so that the pixel is determined to be a white pixel or a black pixel due to slight noise, so that a lot of fluctuation such as unevenness occurs. I do. Further, it is difficult to parallelize the process of tracking the contour, and it takes time to extract features.

【0005】本発明は、上記のような問題点を解決し、
文字や記号を構成する線の位置や方向を有効に表す特徴
を高速で求めるための簡単かつ並列処理が可能な方法に
より、文字や記号を識字率高く、かつ短時間で認識する
手段を提供することをこの発明の目的とする。
[0005] The present invention solves the above problems,
Provide a means for recognizing characters and symbols with a high literacy rate and in a short time by a simple and parallel processing method for quickly obtaining features that effectively represent the positions and directions of lines constituting characters and symbols. This is an object of the present invention.

【0006】[0006]

【問題点を解決するための手段】第1の発明は、入力画
像の各画素を対象に、複数の方向に対する連続性を調
べ、その連続性を表す方向連続値を各方向に対して付与
する方向連続値付与手段と、この方向連続値付与手段に
より得られた各画素の方向連続値に基づいて注目画素が
どの方向属性を持つか判定する方向属性判定手段と、前
記方向属性判定手段により判定された方向属性を持つ画
素を各方向属性毎に計数する方向属性計数手段とを有す
ることを特徴とする。
According to a first aspect of the present invention, continuity in a plurality of directions is checked for each pixel of an input image, and a direction continuity value representing the continuity is given to each direction. Direction continuation value providing means, direction attribute determining means for determining which direction attribute the pixel of interest has based on the direction continuity value of each pixel obtained by the direction continuous value providing means, and determination by the direction attribute determining means Direction attribute counting means for counting pixels having the determined direction attribute for each direction attribute.

【0007】第2の発明は、入力画像の各画素を対象
に、複数の方向に対する連続性を調べ、その連続性を表
す方向連続値を各方向に対して付与する方向連続値付与
手段と、この方向連続値付与手段により得られた各画素
の方向連続値を、入力画像に相当する空間において拡散
させる処理を行い、方向連続値を変更する方向連続値拡
散手段と、この方向連続値拡散手段により変更された各
画素の方向連続値に基づいて注目画素がどの方向属性を
持つか判定する方向属性判定手段と、前記方向属性判定
手段により判定された方向属性を持つ画素を各方向属性
毎に計数する方向属性計数手段とを有することを特徴と
する。
According to a second aspect of the present invention, a direction continuity value assigning means for examining continuity in a plurality of directions for each pixel of an input image and assigning a direction continuity value indicating the continuity to each direction, A direction continuous value diffusing unit for performing a process of diffusing the direction continuous value of each pixel obtained by the direction continuous value providing unit in a space corresponding to the input image to change the direction continuous value; A direction attribute determining means for determining which direction attribute the pixel of interest has based on the direction continuous value of each pixel changed by the above, and a pixel having the direction attribute determined by the direction attribute determining means for each direction attribute And a direction attribute counting means for counting.

【0008】第3の発明は、入力画像の各画素を対象
に、複数の方向に対する連続性を調べ、その連続性を表
す方向連続値を各方向に対して付与する方向連続値付与
手段と、この方向連続値付与手段により得られた各画素
の方向連続値に基づいて注目画素がどの方向属性を持つ
か判定する方向属性判定手段と、入力画像に相当する空
間を複数の領域に分割する領域分割手段と、この領域分
割手段により分割された領域内で、前記方向属性判定手
段により判定された方向属性を持つ画素を各方向属性毎
にそれぞれ計数する方向属性計数手段とを有することを
特徴とする。
[0008] A third invention is a direction continuity value assigning means for examining continuity in a plurality of directions for each pixel of an input image, and assigning a direction continuity value indicating the continuity to each direction, Direction attribute determining means for determining which direction attribute the pixel of interest has based on the direction continuous value of each pixel obtained by the direction continuous value providing means, and an area for dividing a space corresponding to the input image into a plurality of areas Dividing means, and direction attribute counting means for counting, for each direction attribute, pixels having the direction attribute determined by the direction attribute determining means in the area divided by the area dividing means. I do.

【0009】第4の発明は、力画像の各画素を対象に、
複数の方向に対する連続性を調べ、その連続性を表す方
向連続値を各方向に対して付与する方向連続値付与手段
と、この方向連続値付与手段により得られた各画素の方
向連続値を、入力画像に相当する空間において拡散させ
る処理を行い、方向連続値を変更する方向連続値拡散手
段と、この方向連続値拡散手段により変更された各画素
の方向連続値に基づいて注目画素がどの方向属性を持つ
か判定する方向属性判定手段と、入力画像に相当する空
間を複数の領域に分割する領域分割手段と、この領域分
割手段により分割された領域内で、前記方向属性判定手
段により判定された方向属性を持つ画素を各方向属性毎
にそれぞれ計数する方向属性計数手段とを有することを
特徴とする。
A fourth invention is directed to each pixel of a force image,
Check the continuity in a plurality of directions, a direction continuity value providing means for providing a direction continuity value representing the continuity to each direction, and a direction continuity value of each pixel obtained by the direction continuity value providing means, A direction continuous value diffusion unit that performs a process of diffusing in a space corresponding to the input image and changes the direction continuous value, and in which direction the target pixel is determined based on the direction continuous value of each pixel changed by the direction continuous value diffusion unit. Direction attribute determining means for determining whether or not the area has an attribute; area dividing means for dividing a space corresponding to the input image into a plurality of areas; and in the area divided by the area dividing means, determination is made by the direction attribute determining means. Direction attribute counting means for counting pixels having the determined direction attribute for each direction attribute.

【0010】[0010]

【作用】第1の発明によれば、入力画像の各画素は、ま
ず方向連続値付与手段において複数の方向に対する連続
性が調べられ、その連続性を表す方向連続値が各方向に
対して付与される。次ぎに、方向属性判定手段におい
て、方向連続値付与手段により得られた各画素の方向連
続値に基づいて注目画素がどの方向属性を持つか判定さ
れる。そして最後に、方向属性計数手段において、方向
属性判定手段により判定された方向属性を持つ画素が各
方向属性毎に計数される。したがって、入力画像の各画
素の方向連続値を求めるようにしたので、入力画像を構
成する線の大局的な位置と方向を含む特徴を得ることが
できる。
According to the first aspect of the invention, each pixel of the input image is checked for continuity in a plurality of directions by the direction continuity value providing means, and a direction continuity value indicating the continuity is provided to each direction. Is done. Next, the direction attribute determining unit determines which direction attribute the target pixel has based on the direction continuous value of each pixel obtained by the direction continuous value providing unit. Finally, in the direction attribute counting unit, pixels having the direction attribute determined by the direction attribute determining unit are counted for each direction attribute. Therefore, since the direction continuation value of each pixel of the input image is determined, it is possible to obtain a feature including the global position and direction of the line constituting the input image.

【0011】また、第2の発明は、第1の発明に対し、
方向連続値付与手段により得られた各画素の方向連続値
を、入力画像に相当する空間において拡散させる処理を
行い、方向連続値を変更する方向連続値拡散手段を設け
たものであり、入力画像の輪郭部の凹凸の影響を方向連
続値拡散手段により拡散させることができる。
Further, the second invention is different from the first invention in that
The directional continuity value providing unit performs a process of diffusing the directional continuity value of each pixel obtained in the directional continuity value providing unit in a space corresponding to the input image, and includes directional continuity value diffusion unit for changing the directional continuation value. Can be diffused by the direction continuous value diffusion means.

【0012】さらに、第3,4の発明は、第1,2の発
明に対し、入力画像に相当する空間を複数の領域に分割
する領域分割手段を設け、この領域分割手段により分割
された領域内で各方向属性を持つ画素を計数するように
したもので、より正確に特徴を抽出することができる。
Further, the third and fourth aspects of the present invention are different from the first and second aspects in that an area dividing means for dividing a space corresponding to the input image into a plurality of areas is provided, and the area divided by the area dividing means is provided. The pixels having each direction attribute are counted in the above, so that the feature can be extracted more accurately.

【0013】[0013]

【実施例】以下、図面により本発明の実施例を説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0014】第1図において101は文書等を光学的に
読み取り、光電変換してその文字や記号等を画像データ
とする画像入力装置である。102は入力された画像に
対して2値化、ノイズ成分除去等の処理を行い、その画
像中から1文字に相当する単位領域を順次検出し、その
領域内の画像データを出力する前処理装置である。10
3は本発明の主要部を成す特徴抽出装置である。104
は前記の前処理装置102および特徴抽出装置103を
用いて、予め標準の文字画像から抽出した特徴を、文字
コードと対応して格納する辞書パターン格納装置であ
る。105は特徴抽出装置103から出力された文字画
像の特徴パターンを、辞書パターン格納装置104内の
複数の標準文字画像の特徴と比較し、その結果に応じた
文字コードを出力する特徴比較装置である。
In FIG. 1, reference numeral 101 denotes an image input device which optically reads a document or the like, performs photoelectric conversion, and uses the characters and symbols as image data. Reference numeral 102 denotes a preprocessing device that performs processing such as binarization and noise component removal on an input image, sequentially detects a unit area corresponding to one character from the image, and outputs image data in the area. It is. 10
Reference numeral 3 denotes a feature extraction device which forms a main part of the present invention. 104
Is a dictionary pattern storage device that stores features extracted from a standard character image in advance using the preprocessing device 102 and the feature extraction device 103 in correspondence with character codes. Reference numeral 105 denotes a feature comparison device that compares the feature pattern of the character image output from the feature extraction device 103 with the features of a plurality of standard character images in the dictionary pattern storage device 104, and outputs a character code according to the result. .

【0015】第2図に本発明の主要部をなす特徴抽出装
置103の内部構成を示す。201は画像の各画素を対
象に、複数の方向についてこれに連続する他の画素との
連続性を調べ、その連続性の表す方向連続値を各方向に
対して付与する方向連続値付与部である。202は各画
素に付与された各方向に対する方向連続値を拡散させる
処理を行ない、各画素の方向連続値を修正する方向連続
拡散部である。203は方向連続拡散部202で処理さ
れた方向連続値をもとに各画素がこの方向属性を持つか
を判定する方向属性判定部である。204は一文字の占
める単位領域を規定の形状で多数の素領域に分割する領
域分割部である。205は各素領域において判定された
各方向属性を持つ画素数を計数する方向属性計数部であ
る。206は一文字が占める単位領域において各素領域
の画像の方向属性計数値を集合して、画像特長パターン
を抽出する方向属性集合部である。
FIG. 2 shows the internal configuration of the feature extracting device 103 which is a main part of the present invention. Reference numeral 201 denotes a direction continuity value assigning unit that examines the continuity of each pixel of an image in a plurality of directions with other pixels that are continuous with the direction, and assigns a direction continuity value indicating the continuity to each direction. is there. Reference numeral 202 denotes a direction continuous diffusion unit that performs a process of diffusing the direction continuous value for each direction given to each pixel, and corrects the direction continuous value of each pixel. A direction attribute determination unit 203 determines whether each pixel has the direction attribute based on the direction continuous value processed by the direction continuous diffusion unit 202. An area dividing unit 204 divides a unit area occupied by one character into a number of elementary areas in a prescribed shape. A direction attribute counting unit 205 counts the number of pixels having each direction attribute determined in each element region. Reference numeral 206 denotes a direction attribute collection unit that collects the direction attribute count values of the image of each elementary region in the unit region occupied by one character and extracts an image feature pattern.

【0016】今、この特徴抽出装置103の動作につい
て詳細に述べる。特徴抽出装置に入力される画像は2値
化されているとする。本実施例において各方向に連続す
る画素の列として抽出すべき複数の方向を第3図に示す
ような垂直、水平、右上がり、45度、左あがり45度
の4つの方向とする。以下の説明ではこれらの4つの方
向をそれぞれV、H、R、Lと呼ぶ。本発明の実際の応
用において、抽出方向はこの4つに制約されるものでは
ない。
Now, the operation of the feature extracting device 103 will be described in detail. It is assumed that the image input to the feature extraction device is binarized. In the present embodiment, a plurality of directions to be extracted as a row of pixels that are continuous in each direction are four directions of vertical, horizontal, rising right, 45 degrees, and rising 45 degrees as shown in FIG. In the following description, these four directions are referred to as V, H, R, and L, respectively. In a practical application of the present invention, the extraction direction is not limited to these four directions.

【0017】まず、方向連続値付与部201における処
理について説明する。方向連続値付与部201におい
て、各画素に付与される方向連続値の定義は、1箇の注
目画素から各方向の両方の向きに画像を走査したときに
黒画素が連続する箇数とする。例えば第4図に示す例で
は、注目画素403からH方向の右向き、左向きにそれ
ぞれ画像を走査すると、6箇の黒画素が連続しているの
で、注目画素403におけるH方向の方向連続値は
「6」である。また注目画素が白画素の場合は各方向の
方向連続値は「0」とする。
First, the processing in the direction continuous value providing unit 201 will be described. The direction continuation value assigning unit 201 defines the direction continuation value assigned to each pixel as the number of consecutive black pixels when an image is scanned from one target pixel in both directions in each direction. For example, in the example shown in FIG. 4, when the image is scanned rightward and leftward in the H direction from the pixel of interest 403, six black pixels are continuous. 6 ". When the target pixel is a white pixel, the direction continuation value in each direction is “0”.

【0018】注目画素403の他の方向連続値は同様に
してVが「3」、Rが「3」、そしてLが「5」であ
る。
In the other direction continuous values of the target pixel 403, V is "3", R is "3", and L is "5".

【0019】本実施例で使用する上記の方向連続値は、
単純かつ並列化可能な方法で得ることができる。この方
法を用いてH方向の方向連続値を抽出する例を第5図及
び第11図を用いて説明する。第5図、第11図におい
て、Px,yは入力画像の画素x,yの座標値、Hx,yは水
平方向連続値、wは画素幅、hは画素高さを示す。まず
ステップ10、11において、y=0、x=1を代入し
て初期化する。次ぎにステップ12において、P0,y
黒画素であるか否かを判定する。黒画素でなければステ
ップ13へ進み、H0,yを0とし、一方黒画素であれば
ステップ14へ進み、H0,yを1とする。第5図(a)
に示す画素列の例ではP0,0は白であるから、ステップ
13へ進み、H1,0は0となる。次ぎにステップ15へ
進み、Px,yが黒画素であるか否かを判定する。黒画素
でなければステップ16へ進み、Hx,yを0とし、、一
方黒画素であれば左隣りの水平方向連続値Hx-1,yに1
を加算する。第5図(a)に示す画素列のの例ではP
1,0は白であるから、ステップ16に進み、H1,0は0と
なる。次ぎにステップ18へ進み、xをインクリメント
し、ステップ19ではxがw未満であるか否か(即ち、
右端まで走査したか否か)を判断し、x<wであればス
テップ15に戻り、x<wでなくなるまでステップ15
〜19の処理を繰り返す。これによりH方向に並ぶ一列
の画素列が走査され、第5図(b)に示すように一次的
な水平方向連続値Hx,0が決定される。ステップ19に
おいて、x<wでないと判定された場合は次のステップ
20へ進み、x=w−2を代入する。2を引くのは、右
端の画素501はすでに最終的な水平方向連続値が求ま
っているためである。次ぎにステップ21へ進み、注目
画素が0ではなく(即ち、黒)、かつ注目画素の右隣り
の画素が0でない(即ち、黒)か否かを判定する。注目
画素が黒で、かつ右隣りの画素が黒の場合は、ステップ
22へ進み、注目画素に付与された値を右隣りの画素に
付与された値に等しくする。例えば注目画素503の場
合は、右隣りの画素592の値「2」と等しくする。注
目画素が白または右隣りの画素が白である場合は何も行
わず、ステップ23へ進み、x=x−1とし、次ぎのス
テップ24においてx≧0か否か(即ち、左端まで走査
したか否か)を判定する。x≧0であればステップ15
に戻り、x≧0でなくなるまでステップ21〜24の処
理を繰り返す。以上の1往復の走査処理により、第5図
(c)に示すように、H方向に並ぶ一列の画素列に含ま
れる全画素のH方向の方向連続値が一度に求まる。ステ
ップ24においてx≧0ではないと判定された場合は次
ぎのステップ25へ進み、y=y+1として次の行へ移
り、さらにステップ26においてy<hであるか否か
(即ち、最終行まで走査したか否か)を判定する。y<
hであればステップ11へ戻り、y<hでなければ処理
を終了する。以上の処理は他のH方向に並ぶ画素列とは
互いに独立に行なえるので並列化が可能である。
The above direction continuous value used in the present embodiment is:
It can be obtained in a simple and parallelizable way. An example of extracting a direction continuous value in the H direction using this method will be described with reference to FIGS. 5 and 11. 5 and 11, P x, y indicates the coordinate values of the pixels x, y of the input image, H x, y indicates the continuous value in the horizontal direction, w indicates the pixel width, and h indicates the pixel height. First, in steps 10 and 11, initialization is performed by substituting y = 0 and x = 1. Next, in step 12, it is determined whether P 0, y is a black pixel. If it is not a black pixel, the process proceeds to step 13 and H 0, y is set to 0. If it is a black pixel, the process proceeds to step 14 and H 0, y is set to 1. Fig. 5 (a)
Since P 0,0 is white in the example of the pixel row shown in ( 1) , the process proceeds to step 13, and H 1,0 becomes 0. Next, the routine proceeds to step 15, where it is determined whether or not P x, y is a black pixel. If it is not a black pixel, the process proceeds to step 16 and H x, y is set to 0, while if it is a black pixel, the horizontal continuous value H x-1, y on the left is 1
Is added. In the example of the pixel column shown in FIG.
Since 1,0 is white, the process proceeds to step 16, and H1,0 becomes 0. Next, the process proceeds to step 18 where x is incremented. In step 19, it is determined whether or not x is less than w (that is,
It is determined whether or not the scanning has been performed to the right end). If x <w, the process returns to step 15 until step x <w is not satisfied.
To 19 are repeated. As a result, one pixel row arranged in the H direction is scanned, and a primary horizontal continuous value H x, 0 is determined as shown in FIG. 5B. In step 19, when it is determined that x <w is not satisfied, the process proceeds to the next step 20, where x = w−2 is substituted. The reason why 2 is subtracted is that the final horizontal continuity value has already been obtained for the rightmost pixel 501. Next, the process proceeds to step 21, where it is determined whether the pixel of interest is not 0 (ie, black) and the pixel on the right of the pixel of interest is not 0 (ie, black). If the pixel of interest is black and the pixel on the right is black, the process proceeds to step 22, where the value assigned to the pixel of interest is made equal to the value assigned to the pixel on the right. For example, in the case of the target pixel 503, the value is equal to the value “2” of the pixel 592 on the right side. If the target pixel is white or the pixel on the right side is white, nothing is performed, and the process proceeds to step 23, where x = x−1. Or not). If x ≧ 0, step 15
And the processing of steps 21 to 24 is repeated until x ≧ 0 is not satisfied. By the one round trip scanning process, as shown in FIG. 5 (c), the continuation value in the H direction of all the pixels included in one pixel row arranged in the H direction is obtained at a time. When it is determined in step 24 that x ≧ 0 is not satisfied, the process proceeds to the next step 25, where y = y + 1, and the process proceeds to the next line. In step 26, it is determined whether y <h (that is, scanning is performed up to the last line). Is determined). y <
If h, the process returns to step 11, and if y <h, the process ends. The above processing can be performed independently of the other pixel rows arranged in the H direction, so that parallelization is possible.

【0020】他のV、R、L方向の方向連続値も、それ
ぞれV、R、L方向に並ぶ一列の画素列に対して同様の
処理を行うことにより求めることができる。
The other continuity values in the V, R, and L directions can also be obtained by performing the same processing on one pixel row arranged in the V, R, and L directions.

【0021】方向連続値拡散部における処理の目的は、
方向属性判定部において各画素に付与される方向属性
が、輪郭部の細かな凸凹の悪影響を受けないように、方
向連続値を修正することである。したがって、実際の処
理では方向連続値拡散部における処理が先であるが、説
明では方向属性判定部における処理を先にする。
The purpose of the processing in the direction continuous value diffusion unit is as follows.
The purpose is to correct the direction continuity value so that the direction attribute assigned to each pixel in the direction attribute determination unit is not adversely affected by fine irregularities in the contour portion. Therefore, in the actual process, the process in the direction continuous value diffusion unit is first, but in the description, the process in the direction attribute determination unit is first.

【0022】方向属性判定部では、方向連続値付与部に
より各画素に付与され、方向連続値拡散部により更新さ
れた、各方向に対する方向連続値から、その画素がどの
方向属性を持つかを判定し、方向属性をその画素に付与
する。本実施例では各画素についてV、H、R、Lの4
方向に対する方向連続値がそれぞれ付与されている。
The direction attribute determination unit determines which direction attribute the pixel has from the direction continuity value for each direction, which is provided to each pixel by the direction continuity value provision unit and updated by the direction continuity value diffusion unit. Then, a direction attribute is given to the pixel. In this embodiment, four of V, H, R, and L are set for each pixel.
Direction continuation values for the directions are respectively given.

【0023】第12図において、方向属性判定部の処理
例が示され、まずステップ27、28おいてx=0,y
=0とし、次ぎにステップ29〜31へ進み、方向連続
値拡散部で更新された方向連続値V’x,y、H’x,y
R’x,y、L’x,yを比較し、ステップ32〜35におい
て最大の方向連続値を与える方向を、その画素に付与す
る方向属性Cx,yとする。例えば、前記した注目画素4
03において最大の方向連続値を持つ方向は「H」であ
るから、この画素に付与する方向属性は「H」である。
最大の方向連続値を与える方向が複数ある場合は、それ
らの方向をすべて付与する。但し、R、L方向連続値は
斜め45度に並ぶ画素を計数しているため、幾何的な長
さとして、H、V方向連続値に対して2の平方根を乗じ
て評価する必要がある。従って、上記方向連続値の比較
の際には、R、L方向の方向連続値に2の平方根を乗じ
た上で比較を行う。次ぎにステップ36へ進み、y=y
+1として次の行へ移り、さらにステップ26において
y<hであるか否か(即ち、最終行まで走査したか否
か)を判定する。y<hであればステップ29へ戻り、
ステップ29〜37の処理を繰り返す。y<hでなけれ
ば次のステップ38へ進み、x=x+1として次の列へ
移り、さらにステップ26においてx<wであるか否か
(即ち、左端まで走査したか否か)を判定する。x<w
であればステップ28へ戻り、x<wでなければ処理を
終了する。
FIG. 12 shows a processing example of the direction attribute judging section. First, in steps 27 and 28, x = 0, y
= 0, and then proceed to steps 29 to 31, where the direction continuity values V ′ x, y , H ′ x, y ,
R ′ x, y and L ′ x, y are compared, and the direction giving the maximum direction continuous value in steps 32 to 35 is set as the direction attribute C x, y to be given to the pixel. For example, the above noted pixel 4
Since the direction having the maximum direction continuous value at 03 is “H”, the direction attribute assigned to this pixel is “H”.
If there are a plurality of directions that give the maximum direction continuous value, all of those directions are given. However, since the continuous values in the R and L directions count pixels arranged at an angle of 45 degrees, it is necessary to evaluate the geometric length by multiplying the continuous values in the H and V directions by the square root of 2. Therefore, when comparing the above continuous direction values, the comparison is performed after multiplying the continuous direction values in the R and L directions by the square root of 2. Then, proceed to step 36, where y = y
Then, the process proceeds to the next line as +1. In step 26, it is determined whether y <h (that is, whether the scanning has been performed up to the last line). If y <h, return to step 29,
Steps 29 to 37 are repeated. If y <h, the process proceeds to the next step 38, where x = x + 1, and moves to the next column. In step 26, it is determined whether x <w (that is, whether scanning has been performed to the left end). x <w
If so, the process returns to step 28; otherwise, the process ends.

【0024】尚、方向属性を付与する画素は、文字の輪
郭部の画素とすることが好ましい。輪郭部の画素の定義
は、その画素が黒であり、かつ上下左右4隣接の画素の
少なくとも1つが白であるような画素とする。
It is preferable that the pixel to which the direction attribute is assigned is a pixel at the outline of the character. The definition of the pixel of the contour portion is such that the pixel is black and at least one of four pixels adjacent to the upper, lower, left and right is white.

【0025】次に方向連続拡散部における処理について
説明する。方向連続付与部で得られた方向連続値をその
まま用いて、方向属性判定部で方向属性を付与すること
も可能であるが、輪郭部の細かな凸凹などにより方向属
性が変動してしまうという問題点がある。この問題点を
第6図を用いて説明する。第6図(a)に示すような画
像を例にすると、このように水平に長い線の輪郭には、
方向属性「H]を付与することが、特徴を表す意味で自
然である。この画像に対して方向連続値付与部で得られ
たH方向の方向連続値を第6図(b)に示す。H方向に
対する方向連続値は、線の内部では大きな値が得られて
いるが、輪郭部、特に突き出した部分では小さな値しか
得られない。故にこの方向連続値を用いて方向属性を判
定すると、第6図(c)で黒丸で示した輪郭画素は方向
属性が「H」にならず他の方向属性となってしまう。
Next, the processing in the direction continuous diffusion section will be described. It is possible to use the direction continuation value obtained by the direction continuity providing unit as it is to assign a direction attribute by the direction attribute determination unit, but the direction attribute fluctuates due to fine irregularities in the contour part. There is a point. This problem will be described with reference to FIG. Taking the image as shown in FIG. 6 (a) as an example, the outline of such a horizontally long line
It is natural to give the direction attribute “H” in the sense of expressing the characteristic, and the direction continuous value in the H direction obtained by the direction continuous value providing unit for this image is shown in FIG. As for the direction continuous value in the H direction, a large value is obtained inside the line, but only a small value is obtained in the contour part, especially in the protruding part. The outline pixel indicated by a black circle in FIG. 6C does not have the direction attribute “H”, but has another direction attribute.

【0026】この問題を補うために、線の内部で得られ
ている大きな方向連続値を画像上で拡散させ、輪郭部の
画素にも大きな方向連続値を付与する処理が有効であ
る。第13図において、方向連続拡散部の処理例が示さ
れ、まずステップ40においてx=0とし、次のステッ
プ41へ進み、方向連続値付与部で求めた第1行の画素
の方向連続値Hx,0と第2行の方向連続値Hx,1とを比較
し、いずれか最大である値を方向連続値H’x,0として
付与し直す。次ぎにステップ42へ進み、y=1とし、
さらにステップ43へ進み、注目画素の方向連続値H
x,y、その上の行の方向連続値Hx,y-1及びその下の行の
方向連続値Hx,y+1とを比較し、その中で最大である値
を方向連続値H’x,yとして付与し直す。次ぎにステッ
プ44へ進み、y=y+1とし、さらにステップ45へ
進み、y<h−1であるか否か(即ち、最終行より1つ
手前の行まで走査したか否か)を判定し、y<h−1で
あればステップ43へ戻り、ステップ43〜45の処理
を繰り返す。一方、y<h−1でなければ次のステップ
46へ進み、最終行の方向連続値Hx,h-1とその1つ手
前の行の方向連続値Hx,h-2とを比較し、いずれか最大
である値を方向連続値H’x,h-1として付与し直す。次
ぎにステップ47へ進み、x=x+1とし、さらに次の
ステップ48へ進み、x<wであるか否か(即ち、左端
まで走査したか否か)を判定し、x<wであればステッ
プ41へ戻り、x<wでなければ処理を終了する。第6
図(b)に示した方向連続値を、この処理によって更新
すると第6図(d)に示すような方向連続値が得られ
る。例えば第6図(c)に示めす突起部の輪郭画素60
5においては、更新前では方向連続値「2」が付与され
ていたが、更新後では同じ座標位置の画素605’に
「13」が付与されて十分に大きな方向連続値が得られ
ている。この方向連続値を用いて方向属性を判定する
と、この図形の輪郭部の画素は全て方向属性が「H」と
なり輪郭部の凸凹に左右されずに大局的な線の方向を正
確に抽出することができる。
In order to compensate for this problem, it is effective to diffuse large continuity values obtained inside the line on the image, and to give large continuity values to pixels in the outline. FIG. 13 shows an example of processing by the direction continuous diffusion unit. First, at step 40, x = 0, and the process proceeds to the next step 41, where the direction continuous value H of the pixels in the first row obtained by the direction continuous value providing unit is set. The value x, 0 is compared with the direction continuation value H x, 1 in the second row, and the largest value is reassigned as the direction continuation value H ′ x, 0 . Then, proceed to step 42, set y = 1,
The process further proceeds to step 43, where the direction continuation value H of the pixel of interest is obtained.
x, y , the direction continuation value H x, y-1 of the row above it and the direction continuation value H x, y + 1 of the row below it are compared, and the largest value among them is the direction continuation value H ' Reassign as x, y . Then, the process proceeds to step 44, where y = y + 1. Further, the process proceeds to step 45, where it is determined whether y <h−1 (that is, whether scanning has been performed up to the row immediately before the last row). If y <h-1, the process returns to step 43, and the processes of steps 43 to 45 are repeated. On the other hand, if y <h−1, the process proceeds to the next step 46, where the direction continuous value H x, h−1 of the last row is compared with the direction continuous value H x, h−2 of the immediately preceding row. , Is re-assigned as the direction continuous value H'x, h-1 . Then, the process proceeds to step 47, where x = x + 1, and further proceeds to the next step 48, where it is determined whether or not x <w (that is, whether or not scanning has been performed to the left end). Returning to 41, if x <w, the process ends. Sixth
When the direction continuous value shown in FIG. 6B is updated by this processing, a direction continuous value as shown in FIG. 6D is obtained. For example, the contour pixel 60 of the protrusion shown in FIG.
In 5, the direction continuation value “2” is assigned before the update, but after the update, “13” is assigned to the pixel 605 ′ at the same coordinate position, and a sufficiently large direction continuation value is obtained. When the direction attribute is determined using the direction continuation value, all the pixels in the outline portion of this figure have the direction attribute “H”, and the global line direction can be accurately extracted without being influenced by the unevenness of the outline portion. Can be.

【0027】他のV,R,L方向に対する方向連続値に
も同様の更新処理を行う。本実施例においてV,H,
R,L各方向に対する方向連続値の更新処理で参照する
画素の範囲を第7図に示す。
The same update processing is performed on the direction continuous values in the other V, R, and L directions. In this embodiment, V, H,
FIG. 7 shows the range of pixels referred to in the process of updating the direction continuation value for each of the R and L directions.

【0028】領域分割部は、入力画像に相当する空間を
素領域に分割するためのもので、この実施例において
は、第8図のごとく1文字の占める領域800を縦横各
3分割、合計9箇の素領域に分割している。
The area dividing section divides a space corresponding to an input image into elementary areas. In this embodiment, as shown in FIG. It is divided into the elementary regions.

【0029】次に方向属性計数部における処理について
説明する。方向属性計数部では、各素領域内で各方向属
性を持つ画素を計数する。本実施例では第8図(a)の
ように文字画像を9つの領域に分割し、各領域内でV,
H,R,Lの4つの方向属性を持つ画素を計数するの
で、第9図(a)に示すように、9×4=36種類の値
として得られる。
Next, the processing in the direction attribute counting section will be described. The direction attribute counting unit counts pixels having each direction attribute in each elementary region. In this embodiment, the character image is divided into nine regions as shown in FIG.
Since pixels having four direction attributes of H, R, and L are counted, as shown in FIG. 9A, 9 × 4 = 36 types of values are obtained.

【0030】第14図において、方向属性計数部の処理
例が示され、ここで、Mnは素領域の番号、Fnは第15
図に示すデータ領域、Nは素領域の数(第8図の例では
N=9)をそれぞれ表す。まずステップ49においてn
=0とし、次のステップ50〜53において、素領域M
n内で各方向属性V,H,R,Lを持つ画素を計数し、
データ領域Fn,Fn+N,Fn+2N,Fn+3Nにそれぞれ代入
する。次ぎにステップ54へ進み、n=n+1とし、さ
らに次のステップ55に進み、n<Nであるか否か判定
し、n<Nであればステップ50に戻り、ステップ50
〜55の処理を繰り返し、n<Nでなければ処理を終了
する。これにより第15図に示すように各方向属性V,
H,R,L毎に並べられたデータを得ることができる。
FIG. 14 shows a processing example of the direction attribute counting unit, where M n is the number of the elementary region and F n is the fifteenth region.
The data area shown in the figure and N represent the number of elementary areas (N = 9 in the example of FIG. 8). First, in step 49, n
= 0, and in the next steps 50 to 53, the elementary region M
Count pixels having each direction attribute V, H, R, L in n ,
Data area F n, F n + N, F n + 2N, if the values are the F n + 3N. Next, the process proceeds to step 54, where n = n + 1, and further proceeds to the next step 55, where it is determined whether or not n <N. If n <N, the process returns to step 50, and step 50 is performed.
To 55 are repeated. If n <N, the process is terminated. As a result, as shown in FIG.
Data arranged for each of H, R, and L can be obtained.

【0031】第8図の例において、画像の輪郭に存在す
るすべての画素に対して方向属性を付与すれば、第8図
(c)の例に示すものとなる。第8図(b)は素領域8
02を拡大して示したものであるが、素領域の画像81
0の周辺画素811に注目して、前記したプロセスによ
ってこの画素の方向属性を判定すれば、これは「L」で
ある。画像のすべての周辺画素に対して各方向属性を判
定して、素領域802において各方向についての方向属
性を持つ画素を計数すれば、「H」が0、「V」が1
4、「R」が3、「L」が5箇の存在が確認できる。
In the example of FIG. 8, if the direction attribute is given to all the pixels existing in the outline of the image, the result is as shown in the example of FIG. 8 (c). FIG. 8 (b) shows the element region 8.
02 is an enlarged view of the image 81 of the elementary region.
Focusing on the peripheral pixel 811 of 0, if the direction attribute of this pixel is determined by the above-described process, this is “L”. By determining each direction attribute for all peripheral pixels of the image and counting pixels having direction attributes in each direction in the elementary region 802, “H” is 0 and “V” is 1
4, "R" is 3, and "L" is 5.

【0032】方向属性集合部は各素領域801、80
2、803、…809において各方向属性の画素を計数
した結果を1文字分の単位領域800に集合して第9図
(b)に示すパターンを作り出す。これが読み取った文
字や記号等を処理して抽出した画像特徴パターンであ
る。
The direction attribute set is composed of the elementary regions 801 and 80
The results of counting the pixels of each direction attribute in 2, 803,... 809 are collected in a unit area 800 for one character to create the pattern shown in FIG. 9B. This is an image feature pattern extracted by processing the read characters and symbols.

【0033】さて辞書パターン格納装置104は、予め
標準の文字から以上述べたのと同じ手段で画像特徴を抽
出して、これら標準文字の画像特徴パターンを格納した
メモリである。
The dictionary pattern storage device 104 is a memory in which image features are extracted from standard characters in advance by the same means as described above and image feature patterns of these standard characters are stored.

【0034】特徴比較装置105に方向属性集合部20
6から出力された読み取り画像の画像特徴パターンが入
力され、一方、辞書パターン格納装置104から順次に
呼び出された標準文字の画像特徴パターンと比較され
る。両パターンが最も近似したものをもって認識した文
字または記号とする。
The feature comparison unit 105 is provided with the direction attribute collection unit 20
6, the image feature pattern of the read image output from the dictionary pattern storage device 104 is compared with the image feature pattern of the standard character sequentially read from the dictionary pattern storage device 104. The most similar of both patterns is the recognized character or symbol.

【0035】両パターンの近似度を判定する手段の例と
して、両画像特徴パターンの間のユークリッド距離を計
算するという方法がある。両パターンを第10図に示す
ものとして、この間のユークリッド距離は次式である。
As an example of means for determining the degree of similarity between the two patterns, there is a method of calculating the Euclidean distance between the two image feature patterns. Assuming that both patterns are shown in FIG. 10, the Euclidean distance between them is as follows.

【0036】[0036]

【数1】 (Equation 1)

【0037】この認識結果は、この装置が組み込まれる
システムにおいて規定された文字コード(例えばASC
II)に変換されて、この文字等の認識装置から出力さ
れる。
This recognition result is obtained by using a character code (for example, ASC) defined in a system in which this device is incorporated.
II) and output from the character recognition device.

【0038】本実施例では、本発明に含まれる画像特徴
抽出装置を文字等の認識に利用する場合について説明を
行ったが、本発明の原理によって得られる手段は図形の
認識、文字と図面の分離などにも広く応用が可能であ
る。
In this embodiment, the case where the image feature extraction device included in the present invention is used for recognition of characters and the like has been described. Widely applicable to separation and the like.

【0039】本実施例では方向連続値の定義を、注目画
素から各方向の両方の向きに画像を走査したときに黒画
素が連続する箇数としたが、他の定義を用いてもよい。
例えば、走査の途中で少数の白画素が出現し、再び黒画
素が連続している場合は計数を続けることにより、雑音
に左右されにくくすることも可能である。また注目画素
から各方向の両方の向きに一定の範囲内を走査したとき
に出現する黒画素の箇数としてもよい。また、実施例で
は白画素には方向連続値「0」を付与したが、注目画素
から各方向の両方の向きに画像を走査したときに白画素
が連続する箇数を方向連続値とすることにより白画素に
も「0」以外の方向連続値を付与することも可能であ
る。また本実施例では2値画像を対象としたが、多値画
像を対象とし、注目画素から各方面の両方の向きに一定
の範囲内を走査したときの濃度の総和などを方向連続値
としてもよい。
In this embodiment, the definition of the direction continuity value is the number of consecutive black pixels when the image is scanned in both directions from the target pixel in each direction. However, another definition may be used.
For example, when a small number of white pixels appear in the middle of scanning and black pixels continue again, counting can be continued to make it less susceptible to noise. Alternatively, the number of black pixels that appear when scanning within a certain range in both directions from the target pixel in each direction may be used. Further, in the embodiment, the direction continuous value “0” is assigned to the white pixel, but the number of consecutive white pixels when the image is scanned in both directions from the target pixel is set as the direction continuous value. Accordingly, it is also possible to assign a continuous direction value other than “0” to the white pixel. In this embodiment, a binary image is targeted. However, a multi-valued image is targeted, and a sum of densities when scanning within a certain range in both directions from a target pixel in each direction may be used as a direction continuous value. Good.

【0040】本実施例では方向連続値拡散部202にお
ける処理で、注目画像の付近の画素の方向連続値の最大
値を用いたが、付近の画素の平均値などを代わりに用い
てもよい。
In the present embodiment, in the processing in the direction continuous value diffusion section 202, the maximum value of the direction continuous values of the pixels near the target image is used, but the average value of the nearby pixels may be used instead.

【0041】本実施例では方向連続性判定部203の処
理において最大の方向属性を与える方向が複数ある場合
は、それらの方向すべてを方向属性として付与したが、
いずれか一つの方向のみを方向属性として付与してもよ
い。
In the present embodiment, when there are a plurality of directions giving the maximum direction attribute in the processing of the direction continuity determining unit 203, all of these directions are given as direction attributes.
Only one of the directions may be given as the direction attribute.

【0042】本実施例では輪郭部の画素の定義をその画
素が黒であり、かつ上下左右4隣接の画素の少なくとも
一つが白であるような画素としたが、その画素が黒であ
り、上下左右8隣接の画素の少なくとも1つが白である
ような画素としてもよい。また本実施例では輪郭部の画
素にのみ方向属性を付与したが、全黒画素に方向属性を
付与してもよい。輪郭部のみに方向性を付与する方法に
よれば、文字の線の太さが変わっても方向属性を持つ画
素の数の変化が小さく、画像特徴の抽出が安定してでき
る。
In the present embodiment, the definition of the pixel of the outline portion is such that the pixel is black and at least one of the four adjacent pixels is white. The pixel may be such that at least one of the eight adjacent pixels on the left and right is white. Further, in the present embodiment, the direction attribute is given only to the pixels of the contour portion, but the direction attribute may be given to all the black pixels. According to the method of giving directionality only to the outline portion, even if the thickness of the character line changes, the change in the number of pixels having the direction attribute is small, and the image feature can be stably extracted.

【0043】また画像の芯線を抽出して芯線上の画素に
方向属性を付与してもよい。また、白画素にも方向属性
値を付与した上で白画素に方向属性を付与してもよい。
Alternatively, the skeleton of the image may be extracted and a direction attribute may be assigned to pixels on the skeleton. Further, the direction attribute value may be given to the white pixel, and then the direction attribute may be given to the white pixel.

【0044】本実施例では単位領域を9つの素領域に分
解したが、分解の数は前述したよううに9つに限らな
い。また、各素領域が重なり合ってもかまわない。ま
た、方向属性を持つ画素の各方向別集計は素領域内の総
ての方向について行うことを省略し、素領域の位置に応
じて一部の方向属性についてのみ行ってもよい。
In this embodiment, the unit area is decomposed into nine elementary areas, but the number of decompositions is not limited to nine as described above. In addition, the respective element regions may overlap. Further, the counting of pixels having the direction attribute for each direction may be omitted for all directions in the elementary region, and may be performed for only a part of the direction attributes according to the position of the elementary region.

【0045】本実施例では特徴比較装置105におい
て、パターン間の近似度の尺度としてユークリッド距離
を用いたが、他の尺度でもよい。例えば、マハラノビス
距離、単純類似度、複合類似度などが応用可能である。
In the present embodiment, the Euclidean distance is used as a measure of the degree of similarity between patterns in the feature comparison device 105, but another measure may be used. For example, Mahalanobis distance, simple similarity, composite similarity, and the like are applicable.

【0046】[0046]

【発明の効果】以上、詳細に行った説明のように本発明
の文字等の認識装置は画像の各画素に対して方向連続値
を付与、この方向連続値に対してこれを拡散する処理を
行うので、文字の輪郭における細かい凸凹や対象領域に
おける汚れ等の雑音からの悪影響が取り除かれる。取り
扱うデータは整数であり、また本構成によるプロセスは
並列処理が可能であるから全体の処理が高速化される。
また、本構成は従来の技術に比べて簡単である。したが
って文字等の特徴抽出に時間がかからず、また識字率が
向上し、装置を経済的に提供できる。
As described in detail above, the character recognition apparatus of the present invention performs a process of assigning a direction continuous value to each pixel of an image and diffusing the direction continuous value. As a result, adverse effects from noise such as fine irregularities in the outline of the character and dirt in the target area are removed. The data to be handled is an integer, and the process according to this configuration can be performed in parallel, so that the entire process is speeded up.
Further, this configuration is simpler than the conventional technology. Therefore, it does not take long time to extract features such as characters, the literacy rate is improved, and the apparatus can be provided economically.

【0047】[0047]

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

【図1】本発明の文字等の全体構成図、FIG. 1 is an overall configuration diagram of characters and the like according to the present invention;

【図2】本発明に具備される特徴抽出装置の構成を示す
構成図、
FIG. 2 is a configuration diagram showing a configuration of a feature extraction device provided in the present invention;

【図3】実施例で用いる4方向の説明図、FIG. 3 is an explanatory view in four directions used in the embodiment;

【図4】方向連続値の説明図、FIG. 4 is an explanatory diagram of a direction continuous value,

【図5】方向連続値の抽出方法の説明図、FIG. 5 is an explanatory diagram of a method of extracting direction continuous values,

【図6】方向連続値拡散部の処理の説明図、FIG. 6 is an explanatory diagram of a process of a direction continuous value spreading unit,

【図7】同上の実施例において各方向に対する方向連続
値の更新処理で参照する画素範囲を示す説明図、
FIG. 7 is an explanatory diagram showing a pixel range referred to in a process of updating a direction continuous value in each direction in the embodiment.

【図8】領域分割部により分割する素領域の一例を示す
説明図、
FIG. 8 is an explanatory diagram showing an example of an elementary region divided by a region dividing unit;

【図9】画像特徴パターンを示す説明図、FIG. 9 is an explanatory diagram showing an image feature pattern;

【図10】第10図はユークリッド距離計算式の記号を
示す説明図、
FIG. 10 is an explanatory diagram showing symbols of a Euclidean distance calculation formula,

【図11】水平方向の方向連続値を抽出する処理の例を
示すフローチャート、
FIG. 11 is a flowchart illustrating an example of a process of extracting continuous direction values in the horizontal direction.

【図12】方向属性を付与する処理の例を示すフローチ
ャート、
FIG. 12 is a flowchart illustrating an example of a process of assigning a direction attribute,

【図13】水平方向の方向連続値を拡散させる処理の例
を示すフローチャート、
FIG. 13 is a flowchart showing an example of a process of diffusing a horizontal direction continuous value;

【図14】方向属性を計数し特徴量を求める処理の例を
示すフローチャート、
FIG. 14 is a flowchart illustrating an example of a process of calculating a feature amount by counting direction attributes;

【図15】計数した方向属性を格納するデータ領域を示
す説明図。
FIG. 15 is an explanatory diagram showing a data area for storing counted direction attributes.

【符号の説明】 101:画像入力装置、102:前処理装置、103:
特徴抽出装置、104:辞書パターン格納装置、10
5:特徴比較装置、201:方向連続値付与部、20
2:方向連続値拡散部、204:領域分割部、205:
方向属性計数部、206:方向属性集合部、301:画
素、401、501、601:白画素、402、50
2、602:黒画素、403、701、702、70
3、704、811:注目画素、603:方向連続値付
与部で得られるH方向の方向連続値、604:方向属性
が「H」になる輪郭部の画素、605:方向属性が
「H」以外になる輪郭画素の画素、606:方向連続値
拡散部で得られるH方向の方向連続値、800:1文字
分の単位領域、801、802、…809:素領域。
[Description of Signs] 101: Image input device, 102: Pre-processing device, 103:
Feature extraction device, 104: dictionary pattern storage device, 10
5: feature comparison device, 201: direction continuous value giving unit, 20
2: Direction continuous value diffusion unit, 204: region division unit, 205:
Direction attribute counting unit, 206: Direction attribute collection unit, 301: pixel, 401, 501, 601: white pixel, 402, 50
2, 602: black pixel, 403, 701, 702, 70
3, 704, 811: pixel of interest, 603: direction continuous value in the H direction obtained by the direction continuous value assigning unit, 604: pixel of a contour part whose direction attribute is "H", 605: direction attribute other than "H" , 606: H-direction continuity value obtained by the direction continuity value diffusion unit, 800: unit area for one character, 801, 802,... 809: elementary area.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平3−175591(JP,A) 特開 平3−182986(JP,A) 特開 昭59−184977(JP,A) 特開 昭63−157290(JP,A) 特開 平2−15388(JP,A) 特開 平2−228788(JP,A) 特開 平2−187884(JP,A) 特開 昭56−87169(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06K 9/46 G06K 9/48 G06K 9/62 G06T 7/60 JICSTファイル(JOIS)────────────────────────────────────────────────── (5) Continuation of the front page (56) References JP-A-3-175591 (JP, A) JP-A-3-182986 (JP, A) JP-A-59-184977 (JP, A) JP-A-63-184977 157290 (JP, A) JP-A-2-15388 (JP, A) JP-A-2-228788 (JP, A) JP-A-2-18784 (JP, A) JP-A-56-87169 (JP, A) (58) Field surveyed (Int.Cl. 7 , DB name) G06K 9/46 G06K 9/48 G06K 9/62 G06T 7/60 JICST file (JOIS)

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力画像の各画素を対象に、複数の方向に
対する連続性を調べ、その連続性を表す方向連続値を各
方向に対して付与する方向連続値付与手段と、 この方向連続値付与手段により得られた各画素の方向連
続値を、入力画像に相当する空間において、輪郭内部の
画素の方向連続値を輪郭画素の方向連続値に拡散させる
処理を行うことによって、方向連続値を変更する方向連
続値拡散手段と、この方向連続値拡散手段により変更さ
れた各画素の方向連続値に基づいて注目画素がどの方向
属性を持つか判定する方向属性判定手段と、 前記方向属性判定手段により判定された方向属性を持つ
画素を各方向属性毎に計数する方向属性計数手段とを有
することを特徴とする特徴抽出装置。
1. A direction continuity value assigning means for examining continuity in a plurality of directions with respect to each pixel of an input image, and assigning a direction continuity value representing the continuity to each direction. The direction continuity value of each pixel obtained by the assigning means is subjected to a process of diffusing the direction continuity value of the pixel inside the contour to the direction continuation value of the contour pixel in a space corresponding to the input image, so that the direction continuity value is obtained. A direction continuous value diffusing unit to be changed, a direction attribute determining unit that determines which direction attribute the pixel of interest has based on the direction continuous value of each pixel changed by the direction continuous value diffusing unit, and the direction attribute determining unit A direction attribute counting unit for counting pixels having the direction attribute determined by the above for each direction attribute.
【請求項2】入力画像の各画素を対象に、複数の方向に
対する連続性を調べ、その連続性を表す方向連続値を各
方向に対して付与する方向連続値付与手段と、 この方向連続値付与手段により得られた各画素の方向連
続値を、入力画像に相当する空間において、輪郭内部の
画素の方向連続値を輪郭画素の方向連続値に拡散させる
処理を行うことによって、方向連続値を変更する方向連
続値拡散手段と、 この方向連続値拡散手段により変更された各画素の方向
連続値に基づいて注目画素がどの方向属性を持つか判定
する方向属性判定手段と、 入力画像に相当する空間を複数の領域に分割する領域分
割手段と、 この領域分割手段により分割された領域内で、前記方向
属性判定手段により判定された方向属性を持つ画素を各
方向属性毎にそれぞれ計数する方向属性計数手段とを有
することを特徴とする特徴抽出装置。
2. A direction continuity value assigning means for examining continuity in a plurality of directions for each pixel of an input image, and assigning a direction continuity value representing the continuity to each direction. The direction continuity value of each pixel obtained by the assigning means is subjected to a process of diffusing the direction continuity value of the pixel inside the contour to the direction continuation value of the contour pixel in a space corresponding to the input image, so that the direction continuity value is obtained. A direction continuous value diffusion unit to be changed; a direction attribute determination unit for determining which direction attribute the target pixel has based on the direction continuous value of each pixel changed by the direction continuous value diffusion unit; Area dividing means for dividing the space into a plurality of areas; and pixels having the direction attribute determined by the direction attribute determining means in each of the areas divided by the area dividing means. A feature extraction device comprising: a direction attribute counting means for counting.
【請求項3】入力画像の各画素を対象に、複数の方向に
対する連続性を調べ、その連続性を表す方向連続値を各
方向に対して付与するステップ1と、 前記ステップ1により得られた各画素の方向連続値を、
入力画像に相当する空間において、輪郭内部の画素の方
向連続値を輪郭画素の方向連続値に拡散させる処理を行
うことによって、方向連続値を変更するステップ2と、 前記ステップ2により変更された各画素の方向連続値に
基づいて注目画素がどの方向属性を持つか判定するステ
ップ3と、 前記ステップ3により判定された方向属性を持つ画素を
各方向属性毎に計数するステップ4とを有することを特
徴とする特徴抽出方法。
3. A step 1 in which continuity in a plurality of directions is checked for each pixel of the input image, and a direction continuity value representing the continuity is given to each direction. The direction continuous value of each pixel is
Step 2 of changing the direction continuity value by performing a process of diffusing the direction continuity value of the pixel inside the contour into the direction continuation value of the contour pixel in the space corresponding to the input image; A step of determining which direction attribute the target pixel has based on the direction continuous value of the pixel; and a step of counting pixels having the direction attribute determined in step 3 for each direction attribute. The feature extraction method to be the feature.
【請求項4】入力画像の各画素を対象に、複数の方向に
対する連続性を調べ、その連続性を表す方向連続値を各
方向に対して付与するステップ1と、 前記ステップ1により得られた各画素の方向連続値を、
入力画像に相当する空間において、輪郭内部の画素の方
向連続値を輪郭画素の方向連続値に拡散させる処理を行
うことによって、方向連続値を変更するステップ2と、 前記ステップ2により変更された各画素の方向連続値に
基づいて注目画素がどの方向属性を持つか判定するステ
ップ3と、 入力画像に相当する空間を複数の領域に分割するステッ
プ4と、 前記ステップ4により分割された領域内で、前記ステッ
プ3により判定された方向属性を持つ画素を各方向属性
毎にそれぞれ計数するステップ5とを有することを特徴
とする特徴抽出方法。
4. A step 1 in which continuity in a plurality of directions is checked for each pixel of the input image, and a direction continuity value representing the continuity is given to each direction. The direction continuous value of each pixel is
Step 2 of changing the direction continuity value by performing a process of diffusing the direction continuity value of the pixel inside the contour into the direction continuation value of the contour pixel in the space corresponding to the input image; Step 3 of determining which direction attribute the pixel of interest has based on the direction continuation value of the pixel; Step 4 of dividing the space corresponding to the input image into a plurality of regions; A step of counting pixels having the direction attribute determined in step 3 for each direction attribute.
JP03351225A 1991-12-13 1991-12-13 Feature extraction device Expired - Fee Related JP3104355B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03351225A JP3104355B2 (en) 1991-12-13 1991-12-13 Feature extraction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03351225A JP3104355B2 (en) 1991-12-13 1991-12-13 Feature extraction device

Publications (2)

Publication Number Publication Date
JPH05166008A JPH05166008A (en) 1993-07-02
JP3104355B2 true JP3104355B2 (en) 2000-10-30

Family

ID=18415896

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03351225A Expired - Fee Related JP3104355B2 (en) 1991-12-13 1991-12-13 Feature extraction device

Country Status (1)

Country Link
JP (1) JP3104355B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2973944B2 (en) * 1996-06-26 1999-11-08 富士ゼロックス株式会社 Document processing apparatus and document processing method

Also Published As

Publication number Publication date
JPH05166008A (en) 1993-07-02

Similar Documents

Publication Publication Date Title
US4903312A (en) Character recognition with variable subdivisions of a character region
US5321770A (en) Method for determining boundaries of words in text
EP0483391B1 (en) Automatic signature verification
US5373566A (en) Neural network-based diacritical marker recognition system and method
US4757551A (en) Character recognition method and system capable of recognizing slant characters
US5841905A (en) Business form image identification using projected profiles of graphical lines and text string lines
JP2002133426A (en) Ruled line extracting device for extracting ruled line from multiple image
US5054102A (en) Self-centering character stroke thickening for optical character recognition
US4628533A (en) Pattern recognition apparatus
JP3104355B2 (en) Feature extraction device
JP4390523B2 (en) Segmentation of composite image by minimum area
JP4194309B2 (en) Document direction estimation method and document direction estimation program
JP3113769B2 (en) Character recognition device
JP2865529B2 (en) Fingerprint collation device
JP2832928B2 (en) Character recognition method
JP2613211B2 (en) Image input device
JPH03126188A (en) Character recognizing device
JP3127413B2 (en) Character recognition device
JP3578247B2 (en) Character recognition method and device
JP2575402B2 (en) Character recognition method
JP3365941B2 (en) Character pattern recognition method and apparatus
JPH02166583A (en) Character recognizing device
JPH0159627B2 (en)
JPH0495180A (en) Segment/curve recognizing system
JPH0557633B2 (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070901

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080901

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090901

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100901

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110901

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees