Movatterモバイル変換


[0]ホーム

URL:


JPH06348898A - Code recognition device - Google Patents

Code recognition device

Info

Publication number
JPH06348898A
JPH06348898AJP5138417AJP13841793AJPH06348898AJP H06348898 AJPH06348898 AJP H06348898AJP 5138417 AJP5138417 AJP 5138417AJP 13841793 AJP13841793 AJP 13841793AJP H06348898 AJPH06348898 AJP H06348898A
Authority
JP
Japan
Prior art keywords
group
segment
groups
connection relation
code
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.)
Pending
Application number
JP5138417A
Other languages
Japanese (ja)
Inventor
Hiroshi Tsukada
弘志 塚田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba CorpfiledCriticalToshiba Corp
Priority to JP5138417ApriorityCriticalpatent/JPH06348898A/en
Publication of JPH06348898ApublicationCriticalpatent/JPH06348898A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

PURPOSE:To accurately recognize codes without being influenced by both the deformation of the codes and the difference of fonts, etc., by classifying the codes by the matching degree of the standard pattern of the codes and segment connection relation. CONSTITUTION:A character recognition processor 11 receives commands from a host computer 10, performs a picture processing or the like and recognizes characters. That is, code picture data are divided into respective row elements at every line, the respective row elements are divided into respective groups by respective conditions and the up and down connection relation for instance among the respective groups and the attributes of the respective groups, whether or not they come to clauses or not for instance, are judged. The, based on the respective group connection relation and group attributes, the respective groups are classified into base groups and sub groups corresponding to prescribed respective regulation, the sub groups between them are integrated in the base group and the codes are divided into respective segment. Then, the connection relation of the segments is judged and the codes are classified by the matching degree of the standard pattern of the codes with the segment connection relation.

Description

Translated fromJapanese
【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、工業用テレビジョン
(ITV)カメラ等を用いて光学的に文字等の読取りを
行う符号認識装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a code recognition device for optically reading characters and the like using an industrial television (ITV) camera or the like.

【0002】[0002]

【従来の技術】かかる文字認識は、予め基準となる文字
イメージを計算機内に記憶させておき、ITVカメラに
より入力される認識すべき文字イメージと基準文字イメ
ージとの同一座標における画素の明暗を比較し、その一
致する割合によって文字を認識している。
2. Description of the Related Art In such character recognition, a reference character image is stored in advance in a computer, and the character image to be recognized input by an ITV camera and the reference character image are compared in terms of brightness of pixels at the same coordinates. Then, the characters are recognized by the matching ratio.

【0003】しかしながら、このような文字認識の方法
では、ITVカメラにより文字を撮像して入力する場
合、その入力条件により文字が変型して文字を正確に認
識することができないことがある。又、同一の文字種で
もフォントが異なる場合、文字の認識が不能となった
り、他の文字と誤認識することがある。
However, in such a character recognition method, when a character is imaged and input by an ITV camera, the character may be deformed due to the input condition and the character may not be recognized correctly. Further, if the same character type and different fonts are used, the characters may not be recognized or may be erroneously recognized as other characters.

【0004】[0004]

【発明が解決しようとする課題】以上のように文字が変
型して文字を正確に認識できかったり、又、同一の文字
種でもフォントが異なる場合、文字の認識不能や他の文
字と誤認識することがある。そこで本発明は、符号の変
型やフォントの違い等に影響されずに符号を正確に認識
できる符号認識装置を提供することを目的とする。
As described above, when the characters are deformed and the characters cannot be recognized correctly, or when the same character type but different fonts are used, the characters cannot be recognized or are erroneously recognized as other characters. Sometimes. Therefore, an object of the present invention is to provide a code recognizing device that can accurately recognize a code without being affected by a modification of the code or a difference in font.

【0005】[0005]

【課題を解決するための手段】請求項1によれば、符号
画像データを各ラインごとの各行要素に分け、これら行
要素を各条件により各グループに分割するグループ分割
手段と、このグループ分割手段により得られた各グルー
プ間の接続関係及びこれらグループの属性を判断する接
続関係判断手段と、この接続関係判断手段により得られ
たグループ接続関係及びグループ属性を基に所定の各規
則に従って各グループを基底グループ及びサブグループ
に分類し、このうちサブグループを基底グループに統合
して符号を各セグメントに分割するセグメント分割手段
と、このセグメント分割手段により得られた各セグメン
トの接続関係を判断し、このセグメント接続関係と符号
の基準パターンとの一致度から符号を分類する分類手段
と備えて上記目的を達成しようとする符号認識装置であ
る。
According to a first aspect of the present invention, the code image data is divided into each line element for each line, and the group element is divided into each group according to each condition, and the group dividing means. The connection relation judging means for judging the connection relation between each group and the attributes of these groups obtained by the above, and each group according to each predetermined rule based on the group connection relation and the group attribute obtained by this connection relation judging means. It is classified into base groups and subgroups, and among these, the subgroups are combined into base groups to divide the code into segments, and the connection relationship of each segment obtained by this segment dividing means is determined. The above-mentioned object is provided with a classifying unit that classifies the codes based on the degree of coincidence between the segment connection relationship and the code reference pattern Is a code recognition device trying to achieve that.

【0006】請求項2によれば、符号画像データを各ラ
インごとの各行要素に分け、これら行要素を各条件によ
り各グループに分割するグループ分割手段と、このグル
ープ分割手段により得られた各グループ間の接続関係及
びこれらグループの属性を判断する接続関係判断手段
と、この接続関係判断手段により得られたグループ接続
関係及びグループ属性を基に所定の各規則に従って各グ
ループを基底グループ及びサブグループに分類し、この
うちサブグループを基底グループに統合して符号を各セ
グメントに分割するセグメント分割手段と、このセグメ
ント分割手段により得られた各セグメントの接続関係を
判断し、このセグメント接続関係と符号の基準パターン
との一致度から符号を分類する分類手段と、この分類手
段により符号分類の後に、各セグメントの傾き等の幾何
学的な特徴量のマッチングを行って最終的に符号を確定
する符号確定手段とを備えて上記目的を達成しようとす
る符号認識装置である。
According to the second aspect, the code image data is divided into each row element for each line, and the group division means for dividing these row elements into each group according to each condition, and each group obtained by this group division means. Connection group and subgroups according to predetermined rules based on the group connection relationship and group attributes obtained by this connection relationship determination means A segment dividing unit that classifies the sub-groups into a base group and divides the code into each segment, and the connection relationship of each segment obtained by this segment dividing unit is determined, and the segment connection relationship and the code A classifying unit that classifies the codes based on the degree of coincidence with the reference pattern, and a code classifying unit that classifies the codes. To a code recognition apparatus which attempts to achieve the above object and a code determining means for determining a final code by performing a matching geometric characteristic quantity, such as the slope of each segment.

【0007】請求項3によれば、グループ分割手段は、
符号画像データを1ラインごとにスキャンして符号を各
行要素に分け、これら行要素の長さの比及びこれら行要
素の端の連続性の各条件により各行要素を各グループに
分割する機能を有している。
According to claim 3, the group dividing means is
The code image data is scanned line by line to divide the code into each row element, and each row element is divided into each group according to the conditions of the length ratio of these row elements and the continuity of the ends of these row elements. is doing.

【0008】請求項4によれば、接続関係判断手段は、
各グループごとに上下、左右及び中央に接続されている
グループを判断してグループの接続関係を作成し、かつ
各グループごとに端、節及び路が存在するかを判断して
グループ属性を作成する機能を有している。
According to the fourth aspect, the connection relation judging means is
Create a group connection relationship by judging the groups that are connected vertically, horizontally, and in the center of each group, and create group attributes by judging whether there are edges, nodes, or paths for each group. It has a function.

【0009】請求項5によれば、セグメント分割手段
は、グループ属性の上端及び下端、他のグループと接続
関係を持たないグループ、グループ属性の路を持つグル
ープがグループ属性の路を持つグループと複数接続して
いるか又はグループ属性の端を持つグループと接続して
いる場合のいずれかのグループ、及びグループ属性の分
岐又は合流を持つグループを基底グループと選定する機
能を有している。
According to a fifth aspect of the invention, the segment dividing means includes a group attribute having an upper end and a lower end, a group having no connection relationship with another group, a group having a group attribute path and a group having a group attribute path. It has a function of selecting, as a base group, a group that is either connected or has a group attribute end and a group that has a group attribute branch or merge.

【0010】[0010]

【作用】請求項1によれば、符号画像データを各ライン
ごとの各行要素に分けてこれら行要素を各条件により各
グループに分割し、これらグループ間の例えば上下の接
続関係及びこれらグループの属性、例えば節にあたるか
を判断する。次にこれらグループ接続関係及びグループ
属性を基に所定の各規則に従って各グループを基底グル
ープ及びサブグループに分類し、このうちサブグループ
を基底グループに統合して符号を各セグメントに分割す
る。そして、このセグメントの接続関係を判断し、この
セグメント接続関係と符号の基準パターンとの一致度か
ら符号を分類する。
According to the first aspect of the present invention, the code image data is divided into each line element for each line, and these line elements are divided into each group according to each condition. For example, the upper and lower connection relationships between these groups and the attributes of these groups. , For example, determine if it corresponds to a clause. Next, each group is classified into a base group and a sub group according to a predetermined rule based on the group connection relation and the group attribute, and the sub group is integrated into the base group to divide the code into each segment. Then, the connection relationship of this segment is determined, and the code is classified based on the degree of coincidence between this segment connection relationship and the reference pattern of the code.

【0011】請求項2によれば、上記請求項1によりセ
グメントの接続関係を判断し、このセグメント接続関係
と符号の基準パターンとの一致度から符号を分類した
後、各セグメントの傾き等の幾何学的な特徴量のマッチ
ングを行って最終的に符号を確定する。
According to a second aspect of the present invention, the connection relationship of the segments is determined according to the first aspect, the codes are classified based on the degree of coincidence between the segment connection relationship and the reference pattern of the codes, and then the geometrical shape such as the inclination of each segment. Finally, the sign is determined by performing the matching of the geometrical feature amount.

【0012】請求項3によれば、各行要素のグループへ
の分割は、各行要素の長さの比及びこれら行要素の端の
連続性の各条件により行う。請求項4によれば、各グル
ープの接続関係は、各グループにおいて上下、左右及び
中央に接続されているかを判断し、かつグループ属性は
各グループごとに端、節及び路であるかを判断して行っ
ている。
According to the third aspect, the division of each row element into groups is performed according to each condition of the length ratio of each row element and the continuity of the ends of these row elements. According to claim 4, the connection relationship of each group determines whether the groups are connected vertically, horizontally and in the center, and whether the group attributes are end, node and road for each group. I am going.

【0013】請求項5によれば、セグメントへの分割
は、グループ属性の上端及び下端、他のグループと接続
関係を持たないグループ、グループ属性の路を持つグル
ープがグループ属性の路を持つグループと複数接続して
いるか又はグループ属性の端を持つグループと接続して
いる場合のいずれかのグループを基底グループと選定し
ている。
According to a fifth aspect of the present invention, the division into segments is divided into upper and lower ends of a group attribute, a group having no connection relationship with other groups, a group having a group attribute path, and a group having a group attribute path. A group which is connected to a plurality of groups or is connected to a group having an end of the group attribute is selected as a base group.

【0014】[0014]

【実施例】以下、本発明の一実施例について図面を参照
して説明する。図1は文字認識装置の構成図である。ス
テーシ1上には、認識すべき文字の記載された読取り対
象物1が載置されている。又、計測ヘッド3が設けら
れ、この計測ヘッド3における移動端部4にITVカメ
ラ5が取り付けられている。なお、移動端部4は、矢印
(イ)方向、すなわち対象物2に対して昇降する方向に
移動自在となっている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a character recognition device. A reading target 1 on which characters to be recognized are written is placed on the station 1. Further, a measuring head 3 is provided, and an ITV camera 5 is attached to a moving end portion 4 of this measuring head 3. The moving end 4 is movable in the direction of arrow (a), that is, in the direction of moving up and down with respect to the object 2.

【0015】これらステージ1及び計測ヘッド3は、ス
テージコントローラ6により動作制御されている。一
方、ホスト計算機10が設けられ、これに文字認識処理
装置11が接続されている。この文字認識処理装置11
は、ホスト計算機10からの指令を受けて画像処理等を
行って文字認識を行う機能を有するもので、次の各機能
を有している。すなわち、画像入力部12はITVカメ
ラ5からの映像信号を入力する機能を有するものであ
り、前処理部13は画像入力部12からの映像信号に対
してノイズ処理等の前処理及び2値化処理を行う機能を
有している。
The operation of the stage 1 and the measuring head 3 is controlled by a stage controller 6. On the other hand, a host computer 10 is provided, to which the character recognition processing device 11 is connected. This character recognition processing device 11
Has a function of receiving a command from the host computer 10 to perform image processing and the like to perform character recognition, and has the following functions. That is, the image input unit 12 has a function of inputting the video signal from the ITV camera 5, and the preprocessing unit 13 performs preprocessing such as noise processing and binarization on the video signal from the image input unit 12. It has the function of performing processing.

【0016】構造解析部14は、ITVカメラ5の撮像
により得られる文字画像データから文字を各セグメント
に解析し、これらセグメントにより表される文字と基準
文字パターンとの一致度から文字を分類する機能を有し
ている。
The structure analysis unit 14 analyzes the character image data obtained by the ITV camera 5 into each segment, and classifies the character based on the degree of coincidence between the character represented by these segments and the reference character pattern. have.

【0017】具体的には、グループ分割部、接続関係判
断部、セグメント分割部及び分類部の各機能を有してい
る。グループ分割部は、文字画像データを1ラインごと
にスキャンして文字を各行要素に分け、これら行要素の
長さの比及びこれら行要素の端の連続性の各条件により
各行要素を各グループに分割する機能を有している。
Specifically, it has the functions of a group division unit, a connection relation determination unit, a segment division unit, and a classification unit. The group division unit scans the character image data line by line to divide the characters into line elements, and divides the line elements into groups according to the length ratio of these line elements and the continuity of the edges of these line elements. It has the function of dividing.

【0018】接続関係判断部は、各グループごとに上
下、左右及び中央に接続されているグループを判断して
グループの接続関係を作成し、かつ各グループごとに
端、節及び路が存在するかを判断してグループ属性を作
成する機能を有している。
The connection relation judging unit judges the groups connected vertically, horizontally, and centrally for each group and creates the connection relation of the groups, and whether there is an end, a node or a path for each group. It has a function of determining the group attribute and creating a group attribute.

【0019】セグメント分割部は、接続関係判断部によ
り得られた各グループの接続関係及び各グループ属性を
基に、所定の各規則に従って各グループを基底グループ
及びサブグループに分類し、このうちサブグループを基
底グループに統合して文字を各セグメントに分割する機
能を有している。
The segment division unit classifies each group into a base group and a subgroup according to each predetermined rule based on the connection relation and each group attribute of each group obtained by the connection relation determination unit, and among these, the subgroup Has a function of integrating characters into a base group and dividing a character into each segment.

【0020】分類部は、セグメント分割部により得られ
た各セグメントの接続関係を判断し、このセグメント接
続関係と文字の基準パターンとの一致度から文字を分類
する機能を有している。
The classifying unit has a function of judging the connection relation of each segment obtained by the segment dividing unit and classifying the characters based on the degree of coincidence between the segment connection relation and the reference pattern of the character.

【0021】特徴抽出部15は、分類部による文字分類
の後に、各セグメントの傾き、曲り、サイズ等の幾何学
的な構造や特徴を使ってマッチングを行って最終的に文
字を確定する機能を有している。
After the character classification by the classification unit, the feature extraction unit 15 has a function of finally determining the character by performing matching using the geometrical structure and features such as inclination, bending, and size of each segment. Have

【0022】画像表示部16は、画像入力部12から入
力されたディジタル映像信号による文字画像データをモ
ニタテレビジョン18に表示する機能を有している。
又、画像格納部17は、上記文字画像データや構造解析
部の処理で得られる各画像データを格納する機能を有し
ている。
The image display unit 16 has a function of displaying on the monitor television 18 character image data based on a digital video signal input from the image input unit 12.
Further, the image storage unit 17 has a function of storing the character image data and each image data obtained by the processing of the structure analysis unit.

【0023】次に上記の如く構成された装置の作用につ
いて図2及び図3に示す文字認識処理フローチャートに
従って説明する。ITVカメラ5は、ステージ1上に載
置された対象物の文字「A」を撮像してその画像信号を
出力する。この画像信号は、文字認識処理装置11の画
像入力部12に送られる。
Next, the operation of the apparatus configured as described above will be described with reference to the character recognition processing flowcharts shown in FIGS. The ITV camera 5 images the character “A” of the object placed on the stage 1 and outputs the image signal. This image signal is sent to the image input unit 12 of the character recognition processing device 11.

【0024】この画像入力部12はステップ#1におい
て画像信号を入力し、次に前処理部13はステップ#2
において画像信号に対してノイズ処理等の前処理を実行
し、ステップ#3において2値化処理を行う。この2値
化処理により得られる2値化文字画像データは、画像格
納部17に記憶される。
The image input section 12 inputs the image signal in step # 1, and the preprocessing section 13 then inputs the image signal in step # 2.
In step 2, preprocessing such as noise processing is performed on the image signal, and binarization processing is performed in step # 3. The binarized character image data obtained by this binarization processing is stored in the image storage unit 17.

【0025】次に構造解析部14は、2値化文字画像デ
ータから文字「A」を各セグメントに構造解析する。す
なわち、構造解析部14のグループ分割部は、図4に示
す文字画像データの文字「A」に対して1ラインごとに
スキャンしながら文字を各行要素に分ける。
Next, the structure analysis unit 14 carries out a structure analysis of the character "A" into each segment from the binarized character image data. That is, the group division unit of the structure analysis unit 14 divides the character into each line element while scanning the character “A” of the character image data shown in FIG. 4 line by line.

【0026】次にグループ分割部は、ステップ#4にお
いて各条件「1」「2」を用いて各行要素を各グループ
に分割する。ここで、各条件「1」「2」は次の通りで
ある。
Next, the group division unit divides each row element into each group using the conditions "1" and "2" in step # 4. Here, the respective conditions “1” and “2” are as follows.

【0027】条件「1」は、行要素の長さの比であっ
て、上下に位置する2つの行要素の長さを比べ、その比
がある範囲(設定値)内であることである。例えば、図
5に示すように行要素の長さの比が0.5〜2.0の範
囲を外れた場合に別グループと判別する。この場合、同
図(a) では別グループと判別され、同図(b) では同一グ
ループと判別される。
The condition "1" is the ratio of the lengths of the line elements, and the lengths of two line elements located above and below are compared, and the ratio is within a certain range (set value). For example, as shown in FIG. 5, when the length ratio of the row elements is out of the range of 0.5 to 2.0, it is determined as another group. In this case, it is determined that they are different groups in FIG. 7A and that they are the same group in FIG.

【0028】条件「2」は、行要素の端の連続性であっ
て、左右の少なくとも一方の端が上下の行で連続である
ことである。なお、ノイズの影響を最大2画素とするな
らば、端の位置の差が2以下であるならば連続とする。
例えば、図6に示すようにノイズの影響を最大2画素と
すると、同図(a) 〜(c) は全て別グループとなる。
The condition "2" is the continuity of the ends of the line elements, and at least one of the left and right ends is continuous in the upper and lower lines. Note that if the influence of noise is 2 pixels at the maximum, it is continuous if the difference between the edge positions is 2 or less.
For example, if the influence of noise is 2 pixels at the maximum as shown in FIG. 6, all of the figures (a) to (c) are in different groups.

【0029】従って、グループ分割部は、上記各条件
「1」「2」に基づいて図4に示す文字画像データの各
行要素を図7に示すように各グループに分割する。次に
接続関係判断部は、ステップ#5において各グループご
とに上下、左右及び中央に接続されているグループを判
断してグループの接続関係を作成し、かつ各グループご
とに端、節及び路が存在するかを判断してグループ属性
を作成する。 [1]ここで、グループの接続関係として次の事項を定
義する。
Therefore, the group dividing section divides each line element of the character image data shown in FIG. 4 into each group as shown in FIG. 7 based on the above conditions "1" and "2". Next, in step # 5, the connection relation determining unit determines the groups connected vertically, horizontally, and centrally for each group to create the connection relation of the groups, and for each group, the end, the node, and the road are connected. Create a group attribute by determining if it exists. [1] Here, the following items are defined as the connection relationship of groups.

【0030】(1)[TB]…Top−Bottom (上下の接
続) 自身の上端が他のグループの下端に接続している。 (2)[BT]…Bottom −Top(下上の接続) 自身の下端が他のグループの上端に接続している。
(1) [TB] ... Top-Bottom (upper and lower connections) The upper end of itself is connected to the lower ends of other groups. (2) [BT] ... Bottom-Top (connection on the bottom) The bottom of itself is connected to the top of another group.

【0031】これら[TB][BT]の各々について、
上端・下端の接続位置によって以下の3つの場合に分け
られる。 (a) [R]…Right(右の接続) 自身の上端[TB]又は下端[BT]に他のグループが
接続している場合で、その接続位置が右側であるもの。
この関係をそれぞれ[TB−R][BT−R]として表
す。
For each of these [TB] and [BT],
It is divided into the following three cases depending on the connecting positions of the upper and lower ends. (a) [R] ... Right (right connection) When another group is connected to the upper end [TB] or the lower end [BT] of itself, the connection position is on the right side.
These relationships are represented as [TB-R] and [BT-R], respectively.

【0032】(c) [L]…Left (左の接続) 自身の上端[TB]又は下端[BT]に他のグループが
接続している場合で、その接続位置が左側であるもの。
この関係をそれぞれ[TB−L][BT−L]として表
す。
(C) [L] ... Left (left connection) When another group is connected to its upper end [TB] or lower end [BT], the connection position is on the left side.
This relationship is represented as [TB-L] [BT-L].

【0033】(d) [C]…Center (中央の接続) 自身の上端[TB]又は下端[BT]に他のグループが
接続している場合で、その接続位置が中央であるもの。
この関係をそれぞれ[TB−C][BT−C]として表
す。 [2]次にグループの属性 上記各グループの接続関係から導かれるグループ属性と
して以下に示すものを定義する。
(D) [C] ... Center (center connection) When another group is connected to its own upper end [TB] or lower end [BT], the connection position is the center.
These relationships are represented as [TB-C] and [BT-C], respectively. [2] Group Attributes Next, the following group attributes are defined as the group attributes derived from the connection relationship of each group.

【0034】(1)[END]…End(端) 他のグループとの接続関係が存在しないか、又は他グル
ープとの接続が上端(TB接続)又は下端(BT接続)
のどちらか一方だけ存在するグループ。
(1) [END] ... End (end) There is no connection relationship with another group, or the connection with another group is the upper end (TB connection) or the lower end (BT connection).
A group where only one of the two exists.

【0035】(2)[NODE]…Node (節) 2つ以上のグループが自身の上端に接続(合流[MI
X])するか、又は2つ以上のグループが自身の下端に
接続(分岐[DIV])しているグループ。
(2) [NODE] ... Node (section) Two or more groups are connected to their upper ends (merge [MIDE]
X]), or two or more groups are connected (branch [DIV]) to their lower ends.

【0036】(3)[PATH]…Path (路) 自身の上端と下端にそれぞれ1つの他グループとの接続
を持つグループ。 (4)[BASE]…Base (基底) 各々の文字の幾何学的構造を維持する上での必要なグル
ープ。
(3) [PATH] ... Path (Road) A group having a connection with another group at each of the upper and lower ends of itself. (4) [BASE] ... Base (base) A necessary group for maintaining the geometric structure of each character.

【0037】従って、接続関係判断部は、ステップ#6
において上記各定義に従って各グループの接続関係を作
成し、かつ各グループごとに端、節及び路のグループ属
性を作成する。例えば、図8に示す各グループ「1」〜
「6」に対するグループ接続関係を作成すると、図9に
示す通りとなる。例えば、グループ「1」は、グループ
「2」の左端の上部に接続され、かつグルーブ属性とし
て上端に存在していることを示す。又、グループ「2」
は、左下端にグループ「3」が接続され、右下端にグル
ープ「4」が接続され、左上端にグループ「1」が接続
され、かつグループ属性として分岐が存在していること
を表している。
Therefore, the connection relation judging section carries out step # 6.
In step 1, the connection relation of each group is created in accordance with the above definitions, and the end, node and road group attributes are created for each group. For example, each group "1" shown in FIG.
When the group connection relation for "6" is created, it becomes as shown in FIG. For example, the group “1” is connected to the upper left end of the group “2” and also exists at the upper end as a groove attribute. Also, group "2"
Indicates that the group “3” is connected to the lower left corner, the group “4” is connected to the lower right corner, the group “1” is connected to the upper left corner, and a branch exists as a group attribute. .

【0038】この結果、図9に示すグループ接続関係に
基づいてグループ接続関係をグラフ表現すると、図10
に示す通りとなる。次にセグメント分割部は、ステップ
#7において図9に示すグループ接続関係表を基に、各
規則[1]〜[4]に従って各グループを基底グループ
及びサブグループに分類し、そしてステップ#8におい
て各サブグループを基底グループに統合して文字を各セ
グメントに分割する。
As a result, when the group connection relationship is expressed in a graph based on the group connection relationship shown in FIG. 9, FIG.
It becomes as shown in. Next, in step # 7, the segment division unit classifies each group into a base group and a sub group according to each rule [1] to [4] based on the group connection relation table shown in FIG. 9, and in step # 8. Characters are divided into segments by consolidating each subgroup into a base group.

【0039】ここで、基底グループとサブグループとの
判別方法は、次の各規則[1]〜[4]に従って行われ
る。 規則[1]グループ属性[END](上端又は下端)を
もつグループは基底グループである。
Here, the method of discriminating between the base group and the sub group is performed according to the following rules [1] to [4]. Rule [1] A group having a group attribute [END] (upper end or lower end) is a base group.

【0040】規則[2]他のグループと接続関係を持た
ないグループは基底グループである。 規則[3]グループ属性[PATH]をもつグループが
グループ属性[PATH]をのつグループと複数接続し
ているかグループ属性[END]をもつグループと接続
している場合、いずれか1つを基底グループと選定し、
他をサブグループとして選定する。
Rule [2] A group that has no connection relationship with other groups is a base group. Rule [3] When a group having the group attribute [PATH] is connected to a plurality of groups having the group attribute [PATH] or is connected to a group having the group attribute [END], one of them is a base group. And select
Select the other as a subgroup.

【0041】規則[4]グループ属性[NODE](分
岐又は合流)をもつグループは基底グループである。 これら4つの規則を基本として、各々のグループの大き
さ・幅・長さの情報を加味して、基底グループとサブグ
ループとの判別を行う。図10では基底グループとサブ
グループとの区別を図11に示す円模様により表わして
いる。
Rule [4] A group having a group attribute [NODE] (branch or merge) is a base group. Based on these four rules, the information on the size, width, and length of each group is added to determine the base group and the subgroup. In FIG. 10, the distinction between the base group and the sub groups is represented by the circle pattern shown in FIG.

【0042】具体的に上記各規則[1]〜[4]につい
て説明する。図12及び図13に示す[case0][case
1]は、規則[1]についての例である。規則[1]で
は、グループ属性[END]をもつグループは基底グル
ープであるが、幅・長さ・面積からサブグループの判定
するものと基底グループと判定するものに分かれる。
The above rules [1] to [4] will be specifically described. [Case0] and [case] shown in FIGS.
1] is an example of rule [1]. In the rule [1], the group having the group attribute [END] is a base group, but it is divided into a subgroup judgment based on the width / length / area and a base group judgment based on the area.

【0043】図14に示す[case2]は、規則[2]に
ついての例である。この場合もグループの幅・長さ・面
積からサブグループと判定するものと基底グループと判
定するものに分かれる。この場合、サブグループとは判
定されたグループは、他の基底グループと統合されず削
除される。
[Case 2] shown in FIG. 14 is an example of the rule [2]. In this case as well, the group is divided into the sub group and the base group based on the width, length, and area of the group. In this case, the group determined to be the sub group is deleted without being integrated with other base groups.

【0044】図15に示す[case3]は、規則[3]に
ついての例である。グループ属性[PATH]をもつグ
ループが複数接続している場合、そのグループの中から
基底とするグループを選択しなければならない。そのた
め、幅・長さ・面積を考慮して基底となるグループを決
定する。基底グループが選択された後に他のグループ属
性[PATH]をもつサブグループはその基底グループ
に統合される。
[Case 3] shown in FIG. 15 is an example of the rule [3]. When a plurality of groups having the group attribute [PATH] are connected, the base group must be selected from the groups. Therefore, the base group is determined in consideration of the width, length, and area. After the base group is selected, subgroups with other group attributes [PATH] are merged into that base group.

【0045】図16に示す[case4]も規則[3]につ
いての例であるが、[case4]左図のグループ番号
「2」「3」は、もともと1つの領域であったものが、
ノイズ等によって数画素のぬけが生じてしまい行要素の
グループ化の時点で2つになってしまった場合である。
これにより、上下の接続領域もグループ属性[NOD
E]をもつことになってしまう。このような場合は、グ
ループ番号「2」「3」はサブグループとなり、グルー
プ番号「1」「4」の属性も変更することになる。
Although [case4] shown in FIG. 16 is also an example of the rule [3], the group numbers "2" and "3" in the left diagram of [case4] are originally one area,
This is a case where some pixels are missing due to noise or the like, and there are two pixels at the time of grouping row elements.
As a result, the upper and lower connection areas also have the group attribute [NOD
E]. In such a case, the group numbers “2” and “3” are subgroups, and the attributes of the group numbers “1” and “4” are also changed.

【0046】図17及び図18に示す[case5][case
6]は規則[4]についての例である。グループ属性
[NODE]をもつグループは、[case5]のグループ
番号「2」や[case6]のグループ番号「3」のよう
に、面積や幅・長さが小さくとも基底グループとして判
定する。
[Case 5] and [case] shown in FIGS. 17 and 18.
6] is an example for rule [4]. A group having the group attribute [NODE] is determined as a base group even if the area, width, and length are small, such as the group number “2” of [case 5] and the group number “3” of [case 6].

【0047】このようにしてグループの評価・統合によ
り図8に示すグループの画像は、図19に示すセグメン
ト画像となる。同図では文字を各セグメント「1」〜
「6」により表している。ここで、セグメントとは、統
合されたグループを指し、セグメント番号「1」〜
「6」はグループ番号を整理したものが与えられてい
る。
In this way, the group image shown in FIG. 8 becomes the segment image shown in FIG. 19 by the group evaluation / integration. In the same figure, characters are assigned to each segment "1"-
It is represented by "6". Here, the segment refers to an integrated group, and segment number "1"-
“6” is given as an organized group number.

【0048】又、図19に示すセグメント画像は、図2
0に示すグラフ表現により表される。そして、セグメン
ト分割部は、ステップ#9において各セグメント「1」
〜「6」の接続関係とセグメント属性を求め、次のステ
ップ#10においてセグメント接続関係を作成する。図
21はこのセグメント接続関係を示している。例えば、
セグメント「1」は、左下端にセグメント「2」が接続
され、右下端にセグメント「3」が接続され、かつグル
ープ属性として上端であり分岐が存在していることを表
している。
Further, the segment image shown in FIG. 19 is shown in FIG.
It is represented by the graph representation shown at 0. Then, the segment division unit determines each segment “1” in step # 9.
~ The connection relation of "6" and the segment attribute are obtained, and in the next step # 10, the segment connection relation is created. FIG. 21 shows this segment connection relationship. For example,
The segment “1” indicates that the segment “2” is connected to the lower left end, the segment “3” is connected to the lower right end, and the segment attribute is the upper end and there is a branch.

【0049】次に分類部は、ステップ#11においてセ
グメント分割部により得られた各セグメント接続関係に
基づいて、このセグメント接続関係により表される文字
と基準パターンとの一致度から文字を分類する。すなわ
ち、各グループ「1」〜「9」を整理、統合して各セグ
メント「1」〜「6」とし、これらセグメント「1」〜
「6」の接続関係を決定した後に、入力した文字画像デ
ータをそのトポロジカルにな構造によって分類する。こ
の分類は、事前に用意された文字の基準パターンから求
めたゼグメント接続関係表と入力パターンから求めたセ
グメント接続関係表との一致度を求めることで行う。
Next, the classification unit classifies the characters based on the degree of coincidence between the character represented by the segment connection relationship and the reference pattern based on the segment connection relationship obtained by the segment division unit in step # 11. That is, each group “1” to “9” is organized and integrated into each segment “1” to “6”, and these segments “1” to
After the connection relation of "6" is determined, the input character image data is topologically classified by the structure. This classification is performed by obtaining the degree of coincidence between the segment connection relation table obtained from the character reference pattern prepared in advance and the segment connection relation table obtained from the input pattern.

【0050】次に特徴抽出部15は、ステップ#12に
おいて分類部による文字分類の後に、各セグメントの傾
き、曲り、サイズ等の幾何学的な構造や特徴を使ってマ
ッチングを行って最終的に文字を確定する。
Next, in step # 12, the feature extraction unit 15 performs character matching by the classification unit, and then performs matching using geometrical structures and features such as inclination, bend, and size of each segment to finally perform matching. Confirm the character.

【0051】すなわち、上記トポロジカルな構造マッチ
ングによる文字分類では、図22、図23に示すような
文字「B」と図24、図25に示すような文字「8」等
の文字が同一構造をもつ文字として同一視される。この
ような文字グループについては、トポロジカルな構造評
価による文字分類の後に、セグメントの傾き、曲り、サ
イズ等の幾何学的な特徴量を使ったマッチングを実施し
て最終的な文字を確定する。
That is, in the character classification by the topological structure matching, the character "B" as shown in FIGS. 22 and 23 and the character "8" as shown in FIGS. 24 and 25 have the same structure. Identified as a character. For such a character group, after the character classification by the topological structure evaluation, matching using geometrical feature quantities such as the inclination, bending, and size of the segment is performed to determine the final character.

【0052】具体的に図22、図23に示すような文字
「B」と図24、図25に示すような文字「8」とを例
にして説明すると、図26に示すように文字「B」のセ
グメント「1」「7」と対応する文字「8」のセグメン
ト「1」「7」のサイズ(面積、幅、長さ)の比較によ
って区別される。
Specifically, the character "B" as shown in FIGS. 22 and 23 and the character "8" as shown in FIGS. 24 and 25 will be described as an example. As shown in FIG. Are distinguished by comparing the sizes (area, width, length) of the segments "1" and "7" of "" and the corresponding segments "1" and "7" of the character "8".

【0053】又、図27に示すように文字「B」と
「8」の各セグメント「1」「2」又は(「5」
「7」)を曲線とし、その曲率を比較することで区別す
る。このように上記一実施例においては、文字画像デー
タの各行要素を各グループに分割してその接続関係及び
これらグループの属性を判断し、これらグループ接続関
係等を基に各グループを基底グループ及びサブグループ
に分類し、このうちサブグループを基底グループに統合
して文字を各セグメントに分割し、これらセグメントの
接続関係と文字の基準パターンとの一致度から文字を分
類し、この後に各セグメントの傾き等の幾何学的な構造
によるマッチングを行って最終的に文字を確定するよう
にしたので、文字入力条件の変化により文字の変型や、
同一文字種でもフォントが異なっている場合において
も、誤認識することなく、文字を正確に認識することが
できる。
Further, as shown in FIG. 27, the segments "1", "2" or ("5" of the characters "B" and "8" are shown.
"7") is used as a curve, and the curvatures are compared to make a distinction. As described above, in the above-described embodiment, each line element of the character image data is divided into each group, the connection relationship and attributes of these groups are determined, and each group is divided into a base group and a sub group based on the group connection relationship. The characters are classified into groups, the subgroups are integrated into the base groups, the characters are divided into each segment, and the characters are classified based on the correspondence between these segments and the reference pattern of the characters. Since the characters are finally decided by performing matching based on the geometrical structure such as, character variations and changes due to changes in character input conditions,
Even if the same character type and different fonts are used, it is possible to correctly recognize the character without erroneous recognition.

【0054】なお、本発明は上記一実施例に限定される
ものでなくその要旨を変更しない範囲で変形してもよ
い。例えば、文字認識に限ることはなく、図形の認識や
地図記号等のシンボルに対しても同様に適用して認識す
るようにしてもよい。
The present invention is not limited to the above-mentioned embodiment, and may be modified within the scope of the invention. For example, the recognition is not limited to the character recognition, and the recognition may be applied similarly to the recognition of a figure or a symbol such as a map symbol.

【0055】[0055]

【発明の効果】以上詳記したように本発明によれば、符
号の変型やフォントの違い等に影響されずに符号を正確
に認識できる符号認識装置を提供できる。
As described above in detail, according to the present invention, it is possible to provide a code recognizing device capable of accurately recognizing a code without being affected by a modification of the code or a difference in font.

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

【図1】本発明に係わる符号認識装置の一実施例を示す
構成図。
FIG. 1 is a configuration diagram showing an embodiment of a code recognition device according to the present invention.

【図2】同装置の文字認識処理フローチャート。FIG. 2 is a character recognition processing flowchart of the apparatus.

【図3】同装置の文字認識処理フローチャート。FIG. 3 is a flowchart of character recognition processing of the device.

【図4】文字画像データにおける行要素を示す模式図。FIG. 4 is a schematic diagram showing line elements in character image data.

【図5】行要素をグループに分割する条件を示す図。FIG. 5 is a diagram showing conditions for dividing a row element into groups.

【図6】行要素をグループに分割する条件を示す図。FIG. 6 is a diagram showing a condition for dividing a row element into groups.

【図7】行要素をグループに分割した模式図。FIG. 7 is a schematic diagram in which line elements are divided into groups.

【図8】行要素をグループに分割した模式図。FIG. 8 is a schematic diagram in which line elements are divided into groups.

【図9】グループの接続関係を示す図。FIG. 9 is a diagram showing a group connection relationship.

【図10】グループ接続関係をグラフ表現した図。FIG. 10 is a graph representation of group connection relationships.

【図11】サブグループの基底グループへの統合を示す
図。
FIG. 11 shows the integration of subgroups into base groups.

【図12】サブグループと基底グループとの判別を示す
図。
FIG. 12 is a diagram showing discrimination between a sub group and a base group.

【図13】サブグループと基底グループとの判別を示す
図。
FIG. 13 is a diagram showing discrimination between a sub group and a base group.

【図14】サブグループの基底グループへの統合を示す
図。
FIG. 14 shows the integration of subgroups into base groups.

【図15】サブグループと基底グループとの判別を示す
図。
FIG. 15 is a diagram showing discrimination between a sub group and a base group.

【図16】サブグループと基底グループとの判別を示す
図。
FIG. 16 is a diagram showing discrimination between a sub group and a base group.

【図17】サブグループと基底グループとの判別を示す
図。
FIG. 17 is a diagram showing discrimination between a sub group and a base group.

【図18】サブグループと基底グループとの判別を示す
図。
FIG. 18 is a diagram showing discrimination between a sub group and a base group.

【図19】グループをセグメントで表した図。FIG. 19 is a diagram showing a group by segment.

【図20】セグメントをグラフ表現した図。FIG. 20 is a graph representation of a segment.

【図21】セグメントの接続関係を示す図。FIG. 21 is a diagram showing a connection relationship of segments.

【図22】トポロジカルな構造が等しい文字のセグメン
ト画像を示す模式図。
FIG. 22 is a schematic diagram showing segment images of characters having the same topological structure.

【図23】同セグメント画像をグラフ表現した図。FIG. 23 is a graph representation of the segment image.

【図24】トポロジカルな構造が等しい文字のセグメン
ト画像を示す模式図。
FIG. 24 is a schematic diagram showing segment images of characters having the same topological structure.

【図25】同セグメント画像をグラフ表現した図。FIG. 25 is a graph representation of the segment image.

【図26】各文字のサイズのセグメント比較を示す図。FIG. 26 is a diagram showing a segment comparison of the size of each character.

【図27】各文字の曲りのセグメント比較を示す図。FIG. 27 is a view showing segment comparison of bending of each character.

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

1…ステージ、2…読取り対象物、3…計測ヘッド、5
…ITVカメラ、6…ステージコントローラ、10…ホ
スト計算機、11…文字認識処理装置、12…画像入力
部、13…前処理部、14…構造解析部、15…特徴抽
出部、16…画像表示部、17…画像格納部、18…モ
ニタテレビジョン。
1 ... Stage, 2 ... Object to be read, 3 ... Measuring head, 5
... ITV camera, 6 ... Stage controller, 10 ... Host computer, 11 ... Character recognition processing device, 12 ... Image input unit, 13 ... Preprocessing unit, 14 ... Structural analysis unit, 15 ... Feature extraction unit, 16 ... Image display unit , 17 ... Image storage unit, 18 ... Monitor television.

Claims (5)

Translated fromJapanese
【特許請求の範囲】[Claims]【請求項1】 符号画像データを各ラインごとの各行要
素に分け、これら行要素を各条件により各グループに分
割するグループ分割手段と、 このグループ分割手段により得られた各グループ間の接
続関係及びこれらグループの属性を判断する接続関係判
断手段と、 この接続関係判断手段により得られたグループ接続関係
及びグループ属性を基に所定の各規則に従って前記各グ
ループを基底グループ及びサブグループに分類し、この
うち前記サブグループを前記基底グループに統合して前
記符号画像データ中の符号を各セグメントに分割するセ
グメント分割手段と、 このセグメント分割手段により得られた各セグメントの
接続関係を判断し、このセグメント接続関係と符号の基
準パターンとの一致度から符号を分類する分類手段と、
を具備したことを特徴とする符号認識装置。
1. A group dividing means for dividing code image data into respective row elements for each line and dividing these row elements into respective groups according to respective conditions, and a connection relation between the respective groups obtained by the group dividing means, Based on the connection relation determining means for determining the attributes of these groups and the group connection relation and the group attributes obtained by this connection relation determining means, the respective groups are classified into base groups and subgroups according to predetermined rules, and A segment dividing unit that integrates the subgroups into the base group to divide the code in the code image data into each segment, and a connection relation of each segment obtained by the segment dividing unit is determined, and the segment connection is performed. A classifying unit that classifies the codes based on the degree of agreement between the relationship and the reference pattern of the codes,
A code recognition device comprising:
【請求項2】 符号画像データを各ラインごとの各行要
素に分け、これら行要素を各条件により各グループに分
割するグループ分割手段と、 このグループ分割手段により得られた各グループ間の接
続関係及びこれらグループの属性を判断する接続関係判
断手段と、 この接続関係判断手段により得られたグループ接続関係
及びグループ属性を基に所定の各規則に従って前記各グ
ループを基底グループ及びサブグループに分類し、この
うち前記サブグループを前記基底グループに統合して前
記符号画像データ中の符号を各セグメントに分割するセ
グメント分割手段と、 このセグメント分割手段により得られた各セグメントの
接続関係を判断し、このセグメント接続関係と符号の基
準パターンとの一致度から符号を分類する分類手段と、 この分類手段により符号分類の後に、前記各セグメント
の傾き等の幾何学的な特徴量のマッチングを行って最終
的に符号を確定する符号確定手段と、を具備したことを
特徴とする符号認識装置。
2. A group division means for dividing the code image data into each row element for each line, and dividing these row elements into each group according to each condition, and a connection relation between each group obtained by this group division means and Based on the connection relation determining means for determining the attributes of these groups and the group connection relation and the group attributes obtained by this connection relation determining means, the respective groups are classified into base groups and subgroups according to predetermined rules, and A segment dividing unit that integrates the subgroups into the base group to divide the code in the code image data into each segment, and a connection relation of each segment obtained by the segment dividing unit is determined, and the segment connection is performed. A classifying means for classifying the codes based on the degree of agreement between the relationship and the reference pattern of the codes; After code classified by stage, code recognition apparatus characterized by comprising the a code determining means for determining a final code by performing the matching of the geometric features of such inclination of each segment.
【請求項3】 グループ分割手段は、符号画像データを
1ラインごとにスキャンして符号を各行要素に分け、こ
れら行要素の長さの比及びこれら行要素の端の連続性の
各条件により前記各行要素を各グループに分割する機能
を有することを特徴とする請求項1又は2記載の符号認
識装置。
3. The group dividing means scans the code image data line by line to divide the code into respective row elements, and according to each condition of the length ratio of these row elements and the continuity of the ends of these row elements. 3. The code recognition device according to claim 1, having a function of dividing each row element into each group.
【請求項4】 接続関係判断手段は、各グループごとに
上下、左右及び中央に接続されているグループを判断し
てグループの接続関係を作成し、かつ前記各グループご
とに端、節及び路が存在するかを判断してグループ属性
を作成する機能を有することを特徴とする請求項1又は
2記載の符号認識装置。
4. The connection relation determining means determines a group connected vertically, horizontally, and centrally for each group to create a group connection relation, and for each group, an end, a node, and a path are connected. 3. The code recognition device according to claim 1, further comprising a function of creating a group attribute by judging whether or not it exists.
【請求項5】 セグメント分割手段は、グループ属性の
上端及び下端、他のグループと接続関係を持たないグル
ープ、グループ属性の路を持つグループがグループ属性
の路を持つグループと複数接続しているか又はグループ
属性の端を持つグループと接続している場合のいずれか
のグループ、及びグループ属性の分岐又は合流を持つグ
ループを基底グループと選定する機能を有することを特
徴とする請求項1又は2記載の符号認識装置。
5. The segment dividing means has a plurality of upper and lower ends of a group attribute, a group having no connection relationship with other groups, a group having a group attribute path, and a plurality of groups having a group attribute path, or 3. A function of selecting, as a base group, any group connected to a group having an end of a group attribute and a group having a branch or a merge of the group attribute as a base group. Code recognition device.
JP5138417A1993-06-101993-06-10 Code recognition devicePendingJPH06348898A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
JP5138417AJPH06348898A (en)1993-06-101993-06-10 Code recognition device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
JP5138417AJPH06348898A (en)1993-06-101993-06-10 Code recognition device

Publications (1)

Publication NumberPublication Date
JPH06348898Atrue JPH06348898A (en)1994-12-22

Family

ID=15221482

Family Applications (1)

Application NumberTitlePriority DateFiling Date
JP5138417APendingJPH06348898A (en)1993-06-101993-06-10 Code recognition device

Country Status (1)

CountryLink
JP (1)JPH06348898A (en)

Similar Documents

PublicationPublication DateTitle
JP3302147B2 (en) Document image processing method
JP3308032B2 (en) Skew correction method, skew angle detection method, skew correction device, and skew angle detection device
US5799115A (en)Image filing apparatus and method
US5335290A (en)Segmentation of text, picture and lines of a document image
JP2002133426A (en) Ruled line extraction device for extracting ruled lines from multi-valued images
JPH08305796A (en) Pattern extraction device, pattern re-recognition table creation device, and pattern recognition device
JP3411472B2 (en) Pattern extraction device
US6175664B1 (en)Optical character reader with tangent detection for detecting tilt of image data
JP3586949B2 (en) Form recognition device
JPH064704A (en)Ruled line discriminating method and area discriminating method
JPH06348898A (en) Code recognition device
JP2858530B2 (en) Edge enhancement device
JP3622347B2 (en) Form recognition device
JPH07220081A (en)Segmenting method for graphic of image recognizing device
JP3187895B2 (en) Character area extraction method
JP4329226B2 (en) Reference mark detection method, reference mark detection device, and optical character reader
JP2004334913A (en) Form recognition device and form recognition method
JP3095470B2 (en) Character recognition device
JP3019897B2 (en) Line segmentation method
JPH07182459A (en)Table structure extracting device
JPH07141465A (en) Document image skew detection method
JPH08221506A (en) Form document recognition device and form document recognition method
JP3710164B2 (en) Image processing apparatus and method
JP3275475B2 (en) Character string recognition device with known character sequence
JPH0757047A (en)Character segmentation system

[8]ページ先頭

©2009-2025 Movatter.jp