Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5319726B2 - PATTERN SELECTION DEVICE, PATTERN SELECTION METHOD, AND PROGRAM - Google Patents
[go: Go Back, main page]

JP5319726B2 - PATTERN SELECTION DEVICE, PATTERN SELECTION METHOD, AND PROGRAM - Google Patents

PATTERN SELECTION DEVICE, PATTERN SELECTION METHOD, AND PROGRAM Download PDF

Info

Publication number
JP5319726B2
JP5319726B2 JP2011090230A JP2011090230A JP5319726B2 JP 5319726 B2 JP5319726 B2 JP 5319726B2 JP 2011090230 A JP2011090230 A JP 2011090230A JP 2011090230 A JP2011090230 A JP 2011090230A JP 5319726 B2 JP5319726 B2 JP 5319726B2
Authority
JP
Japan
Prior art keywords
pattern
evaluation value
evaluation
candidate
score
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.)
Active
Application number
JP2011090230A
Other languages
Japanese (ja)
Other versions
JP2012221476A (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.)
Toshiba Corp
Toshiba Digital Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Solutions 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 Corp, Toshiba Solutions Corp filed Critical Toshiba Corp
Priority to JP2011090230A priority Critical patent/JP5319726B2/en
Publication of JP2012221476A publication Critical patent/JP2012221476A/en
Application granted granted Critical
Publication of JP5319726B2 publication Critical patent/JP5319726B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本実施形態は、パターン選択装置、パターン選択方法、およびプログラムに関する   The present embodiment relates to a pattern selection device, a pattern selection method, and a program.

光学式文字認識装置(OCR)に代表される文字認識処理など、認識システムに入力された文字、画像、音声などの未知パターンの所属クラスを特定するパターン認識技術がある。このパターン認識技術では、認識辞書を用いて未知のパターンの所属クラスを識別する。なお、クラスとは認識対象を分類した場合につけられるラベルのことであり、例えば文字認識であれば字種となるし、一般物体認識であればその物体の名称となる。   There is a pattern recognition technique for identifying an affiliation class of unknown patterns such as characters, images, and voices input to a recognition system, such as a character recognition process represented by an optical character recognition device (OCR). In this pattern recognition technique, an affiliation class of an unknown pattern is identified using a recognition dictionary. The class is a label attached when the recognition target is classified. For example, the character type is used for character recognition, and the name of the object is used for general object recognition.

認識辞書は、あらかじめクラス毎に辞書に使用するパターン(以下、辞書パターンという)を用意して作成する。パターン認識技術において認識精度を上げたい場合、一般的にクラスごとに用意される辞書パターンの数を増加させることが行われる。   The recognition dictionary is prepared by preparing a pattern (hereinafter referred to as a dictionary pattern) to be used for the dictionary for each class in advance. When it is desired to increase the recognition accuracy in the pattern recognition technique, generally, the number of dictionary patterns prepared for each class is increased.

しかしながら、この方法には辞書パターンが大量になるため認識辞書の作成に時間がかかること、辞書パターンに認識精度の向上にさほど有効でないパターンが含まれてしまう場合があること、などの問題がある。また、例えばknn法のような辞書パターン、あるいはその一部を認識辞書とする手法を用いた場合には認識辞書の容量が大きくなりやすく、認識処理の速度が低下するという問題もある。   However, this method has problems such as a large amount of dictionary patterns, which takes time to create a recognition dictionary, and the dictionary patterns may include patterns that are not so effective in improving recognition accuracy. . In addition, when a dictionary pattern such as the knn method or a method using a part of the dictionary pattern as a recognition dictionary is used, there is a problem that the capacity of the recognition dictionary tends to increase and the speed of the recognition processing decreases.

効率的なパターン認識を実現できる認識辞書に用いる辞書パターンを選択する方法として、例えばサポートベクターマシン(Support Vector Machine:SVM)がある。この手法においては、クラス境界付近の辞書パターンのみが選択されて認識辞書となり、それ以外のパターンは削除される。言い換えれば、クラス境界の表現に必要な辞書パターンのみ認識辞書に登録することで必要な辞書パターン数を削減している。   As a method for selecting a dictionary pattern used for a recognition dictionary capable of realizing efficient pattern recognition, for example, there is a support vector machine (Support Vector Machine: SVM). In this method, only a dictionary pattern near the class boundary is selected to become a recognition dictionary, and other patterns are deleted. In other words, the number of necessary dictionary patterns is reduced by registering only the dictionary patterns necessary for expressing the class boundaries in the recognition dictionary.

しかしながら、上述の方法では、クラス境界から離れた部分について考慮されていないため、標準的なパターンに対して必ずしも高い確信度が得られないなどの問題が生じることが知られている。また、例えば手書き文字認識などのばらつきの多い問題に適用した場合、クラス境界付近のパターンの比率が高いために削減率が低くなることが多い。   However, it is known that the above-described method does not take into account a portion away from the class boundary, and thus causes a problem that a high certainty factor is not necessarily obtained for a standard pattern. In addition, when applied to a problem with many variations such as handwritten character recognition, the reduction rate is often low because the ratio of patterns near the class boundary is high.

また、例えばベクトル量子化などを行い、各クラスを少数の代表パターンで表現することにより辞書パターン数を削減する方法も知られている。   Also known is a method of reducing the number of dictionary patterns by performing, for example, vector quantization and expressing each class with a small number of representative patterns.

この方法では辞書パターン数を大きく削減できるが、文字認識であれば例えば癖字や異体字など少数の例外的なパターンが削減されやすいため、このような入力に対して脆弱であるという問題がある。   Although this method can greatly reduce the number of dictionary patterns, there is a problem that character recognition is vulnerable to such input because, for example, a small number of exceptional patterns such as characters and variants are easily reduced. .

また、辞書パターンから有効ではないと思われるパターンを人手で削除することも行われているが、特に辞書パターン数が膨大な場合に作業時間が長くなる、選別基準が明確でないため作成される認識辞書にばらつきが出る、などといった点が問題となる。   In addition, a pattern that seems to be ineffective from the dictionary pattern is also deleted manually, but especially when the number of dictionary patterns is enormous, the work time becomes long. The problem is that the dictionaries vary.

特開2000−99723号公報JP 2000-99723 A

本発明が解決しようとする課題は、効率的にパターンを選択することができるパターン選択装置、パターン選択方法、およびパターン選択プログラムの提供をすることである。   An object of the present invention is to provide a pattern selection device, a pattern selection method, and a pattern selection program that can efficiently select a pattern.

本実施形態のパターン選択装置は、第1のパターン群と第1のパターンの評価に用いられる第2のパターン群とを格納した記憶部と、第2のパターンを参照して、第1のパターンの複数の評価値として、第1のパターンが第2のパターンをパターン認識する際の貢献度である第1の評価値と、第1のパターンが、第1のパターンが所属するクラスにおける標準的なパターンであるかを評価する第2の評価値、および第1のパターンがクラスの境界付近のパターンであるかを評価する第3の評価値を算出する評価値算出部と、算出された評価値と評価値ごとの重み付け情報とを用いて、第1のパターンごとのスコアを算出するスコア算出部と、算出されたスコアに基づいて第1のパターンからパターンを選択するパターン選択部と、を備える。   The pattern selection apparatus according to the present embodiment refers to a storage unit that stores a first pattern group and a second pattern group used for evaluation of the first pattern, and refers to the second pattern. As the plurality of evaluation values, the first evaluation value, which is the degree of contribution when the first pattern recognizes the second pattern, and the first pattern are standard in the class to which the first pattern belongs. An evaluation value calculation unit for calculating a second evaluation value for evaluating whether the pattern is a simple pattern, and a third evaluation value for evaluating whether the first pattern is a pattern near the boundary of the class, and the calculated evaluation A score calculation unit that calculates a score for each first pattern using a value and weighting information for each evaluation value, and a pattern selection unit that selects a pattern from the first pattern based on the calculated score. Prepare.

第1の実施形態に係るパターン選択装置の全体構成を示すブロック図。1 is a block diagram showing the overall configuration of a pattern selection device according to a first embodiment. 第1の実施形態に係る候補パターン情報の一例を示す図。The figure which shows an example of the candidate pattern information which concerns on 1st Embodiment. 第1の実施形態に係るパターン選択装置の動作の一例を示すフローチャート。6 is a flowchart illustrating an example of an operation of the pattern selection device according to the first embodiment. 第1の実施形態に係る評価値算出部における評価値の算出手順の一例を示すフローチャート。The flowchart which shows an example of the calculation procedure of the evaluation value in the evaluation value calculation part which concerns on 1st Embodiment. 第1の実施形態に係る評価用パターン情報の一例を示す図。The figure which shows an example of the pattern information for evaluation which concerns on 1st Embodiment. 第1の実施形態に係る評価値の計算式の一例を示す図。The figure which shows an example of the calculation formula of the evaluation value which concerns on 1st Embodiment. 第1の実施形態に係る評価値算出部における評価値の算出手順の一例を示すフローチャート。The flowchart which shows an example of the calculation procedure of the evaluation value in the evaluation value calculation part which concerns on 1st Embodiment. 第1の実施形態に係る評価値算出部における評価値の算出手順の一例を示すフローチャート。The flowchart which shows an example of the calculation procedure of the evaluation value in the evaluation value calculation part which concerns on 1st Embodiment. 第1の実施形態に係る情報記憶部で記憶されている評価値情報格納部のテーブルの一例を示す図。The figure which shows an example of the table of the evaluation value information storage part memorize | stored in the information storage part which concerns on 1st Embodiment. 第1の実施形態に係るスコア算出部におけるスコアの算出手順の一例を示すフローチャート。The flowchart which shows an example of the calculation procedure of the score in the score calculation part which concerns on 1st Embodiment. 第1の実施形態に係る情報記憶部で記憶されている評価値ごとの重み付け情報記憶部45のテーブルの一例を示す図。The figure which shows an example of the table of the weighting information storage part 45 for every evaluation value memorize | stored in the information storage part which concerns on 1st Embodiment. 第1の実施形態に係るスコア情報格納部のテーブルの一例を示す図。The figure which shows an example of the table of the score information storage part which concerns on 1st Embodiment. 第1の実施形態に係るパターン選択基準情報のテーブルの一例を示す図。The figure which shows an example of the table of the pattern selection reference | standard information which concerns on 1st Embodiment. 第2の実施形態に係るパターン選択装置の全体構成の一例を示すブロック図。The block diagram which shows an example of the whole structure of the pattern selection apparatus which concerns on 2nd Embodiment. 第2の実施形態に係るパターン選択装置における情報更新手順を示すフローチャート。9 is a flowchart showing an information update procedure in the pattern selection device according to the second embodiment. 第2の実施形態に係る更新条件の一例を示す図。The figure which shows an example of the update conditions which concern on 2nd Embodiment. 第2の実施形態に係る更新情報の一例を示す図。The figure which shows an example of the update information which concerns on 2nd Embodiment.

以下、本発明のパターン選択装置の実施形態について図面を参照しながら説明する。なお、本実施形態では一例として、文字認識装置の認識辞書を作成するために用いるパターンを選択するパターン選択装置について説明する。   Hereinafter, embodiments of a pattern selection device of the present invention will be described with reference to the drawings. In the present embodiment, as an example, a pattern selection device that selects a pattern used to create a recognition dictionary of a character recognition device will be described.

(第1の実施形態)
図1は、第1の実施形態のパターン選択装置の全体構成を示すブロック図である。
(First embodiment)
FIG. 1 is a block diagram showing the overall configuration of the pattern selection apparatus according to the first embodiment.

図1に示すように、本実施形態のパターン選択装置は、評価値算出部10、スコア作成部20、パターン選択部30、および情報記憶部40を含んで構成される。   As shown in FIG. 1, the pattern selection apparatus according to the present embodiment includes an evaluation value calculation unit 10, a score creation unit 20, a pattern selection unit 30, and an information storage unit 40.

なお、本実施形態のパターン選択装置は、ハードウェアとしてCPU、メインメモリ、外部記憶装置などを備える。外部記憶装置に格納された例えばパターン選択プログラムがCPUによりメインメモリ上にロードされることによって、上記した評価値算出部10、スコア作成部20、およびパターン選択部30が実現される。また、これらの構成要素は、ソフトウェアに代えて、各種の電子部品を組み合わせて構成したハードウェアにより実現されるものであっても良い。   Note that the pattern selection apparatus according to the present embodiment includes a CPU, a main memory, an external storage device, and the like as hardware. For example, the above-described evaluation value calculation unit 10, score creation unit 20, and pattern selection unit 30 are realized by loading a pattern selection program stored in the external storage device onto the main memory by the CPU. In addition, these components may be realized by hardware configured by combining various electronic components instead of software.

情報記憶部40は、候補パターン記憶部41と、評価用パターン記憶部42と、評価値情報記憶部43と、スコア情報記憶部44と、評価値ごとの重み付け情報記憶部45と、パターン選択基準情報記憶部46とを有する。 The information storage unit 40 includes a candidate pattern storage unit 41, an evaluation pattern storage unit 42, an evaluation value information storage unit 43, a score information storage unit 44, a weighting information storage unit 45 for each evaluation value, and a pattern selection criterion. And an information storage unit 46.

候補パターン記憶部41は、辞書パターンの候補である候補パターン(第1のパターン)情報として、候補パターンそのものと、候補パターンに関する情報(以下、情報タグという)とを記憶する。本実施形態ではあらかじめ候補パターンとしてさまざまなパターンが用意されて、情報タグと対応付けて候補パターン記憶部41に記憶されているとする。これらの候補パターンから認識辞書に使用するパターン(以下、辞書パターンという)が選択される。 The candidate pattern storage unit 41 stores the candidate pattern itself and information on the candidate pattern (hereinafter referred to as an information tag) as candidate pattern (first pattern) information that is a candidate for the dictionary pattern. In this embodiment, it is assumed that various patterns are prepared in advance as candidate patterns and stored in the candidate pattern storage unit 41 in association with information tags. From these candidate patterns, a pattern to be used for the recognition dictionary (hereinafter referred to as a dictionary pattern) is selected.

例えば文字認識においては候補パターンは文字画像データであり、候補パターンのタグ情報は候補パターンの識別子、所属するクラス、フォント、傾き、および画像サイズなどを含む。なお、候補パターン記憶部41は後述するパターン選択処理を行う際に外部から入力するようにしても良い。また、識別子は、例えば情報記憶部40への登録順でも良いし、候補パターンをクラスに分類した際のクラスごとの登録順でも良い。 For example, in character recognition, a candidate pattern is character image data, and tag information of the candidate pattern includes a candidate pattern identifier, a class to which the candidate pattern belongs, a font, a tilt, an image size, and the like. The candidate pattern storage unit 41 may be input from the outside when performing pattern selection processing described later. Further, the identifier may be, for example, the registration order in the information storage unit 40 or the registration order for each class when the candidate patterns are classified into classes.

ここで、図2を参照して、本実施形態の候補パターン記憶部41に記憶された候補パターン情報について説明する。 Here, with reference to FIG. 2, the candidate pattern information memorize | stored in the candidate pattern memory | storage part 41 of this embodiment is demonstrated.

図2は、本実施形態に係る候補パターン記憶部41に記憶された候補パターン情報の一例を示す図である。文字認識の際は、候補パターンは例えば文字の画像データを有する。なお、文字認識装置の候補パターンとしては、漢字、数字、ひらがな、カタカナ、アルファベットなど、あらゆる属性の文字パターンを対象とすることが可能であるが、本実施形態では、候補パターンとしてアルファベットを適用する。   FIG. 2 is a diagram illustrating an example of candidate pattern information stored in the candidate pattern storage unit 41 according to the present embodiment. In character recognition, the candidate pattern has, for example, character image data. In addition, as a candidate pattern of the character recognition device, it is possible to target character patterns of all attributes such as kanji, numbers, hiragana, katakana, and alphabets, but in this embodiment, alphabets are applied as candidate patterns. .

図2に示すように、本実施形態の候補パターン記憶部41には、クラス「A」に所属している候補パターン1乃至候補パターン3と、クラス「B」に所属している候補パターン4乃至候補パターン6が格納されている。各候補パターンは候補パターンの画像データ(以下、候補パターン画像という)とこの候補パターン画像に対応する情報タグとを有する。情報タグには、パターンの識別子であるパターンID416と、所属クラス417と、フォント418と、傾き419とが含まれる。なお、傾きは反時計回りの傾きが「−」で示され、時計回りの傾きが「+」で示される。例えば、字形が時計回りに10度傾いている場合は傾き情報は+10であり、字形が反時計回りに20度傾いている場合は傾き情報は−20である。   As shown in FIG. 2, the candidate pattern storage unit 41 of the present embodiment stores candidate patterns 1 to 3 belonging to the class “A” and candidate patterns 4 to 4 belonging to the class “B”. Candidate pattern 6 is stored. Each candidate pattern has image data of a candidate pattern (hereinafter referred to as a candidate pattern image) and an information tag corresponding to the candidate pattern image. The information tag includes a pattern ID 416 that is a pattern identifier, an affiliation class 417, a font 418, and a slope 419. The counterclockwise inclination is indicated by “−”, and the clockwise inclination is indicated by “+”. For example, if the character shape is inclined 10 degrees clockwise, the inclination information is +10, and if the character shape is inclined 20 degrees counterclockwise, the inclination information is -20.

候補パターン1は、候補パターン画像410を有し、パターンIDが「A101」であり、所属クラスが「A」であり、フォントが「フォント1」であり、傾きが「±0」である。候補パターン2は、候補パターン画像411を有し、パターンIDが「A102」であり、所属クラスが「A」であり、フォントが「フォント2」であり、傾きが「+20」である。候補パターン3は、候補パターン画像412を有し、パターンIDが「A103」であり、所属クラスが「A」であり、フォントが「フォント3」であり、傾きが「−30」である。   Candidate pattern 1 has candidate pattern image 410, pattern ID “A101”, belonging class “A”, font “font 1”, and inclination “± 0”. Candidate pattern 2 has candidate pattern image 411, pattern ID is “A102”, belonging class is “A”, font is “font 2”, and inclination is “+20”. Candidate pattern 3 has candidate pattern image 412, pattern ID “A103”, belonging class “A”, font “font 3”, and inclination “−30”.

候補パターン4は、候補パターン画像413を有し、パターンIDが「B101」であり、所属クラスが「B」であり、フォントが「フォント4」であり、傾きが「±0」である。候補パターン5は、候補パターン画像414を有し、パターンIDが「B102」であり、所属クラスが「B」であり、フォントが「フォント5」であり、傾きが「+20」である。候補パターン6は、候補パターン画像415を有し、パターンIDが「B103」であり、所属クラスが「B」であり、フォントが「フォント2」であり、傾きが「−30」である。   Candidate pattern 4 has candidate pattern image 413, pattern ID is “B101”, belonging class is “B”, font is “font 4”, and inclination is “± 0”. Candidate pattern 5 has candidate pattern image 414, pattern ID “B102”, belonging class “B”, font “font 5”, and inclination “+20”. Candidate pattern 6 has candidate pattern image 415, pattern ID is “B103”, belonging class is “B”, font is “font 2”, and inclination is “−30”.

なお、本実施形態では、説明を簡略化するために、図2に示す候補パターン1乃至候補パターン6はすべて、あらかじめ幅100画素、高さ100画素に正規化した画像データであるとする。   In this embodiment, in order to simplify the description, it is assumed that all of candidate patterns 1 to 6 shown in FIG. 2 are image data normalized in advance to a width of 100 pixels and a height of 100 pixels.

また、クラスとはパターンを分類するものであり、対象の候補パターンが上記のようにアルファベットの場合、例えば、アルファベットに含まれる文字種「A〜Z」それぞれに対応するクラス「A〜Z」が用意されていることになる。すなわち、文字種「A」の候補パターン「A」はクラス「A」に所属している。また、文字種だけではなくフォント毎にクラスを分類しても良い。そのため、候補パターンは文字種クラスとフォントクラスに同時に所属するといったように、複数のクラスに同時に所属してもよい。 The class classifies patterns. When the target candidate pattern is alphabetic as described above, for example, classes “AZ” corresponding to the character types “AZ” included in the alphabet are prepared. Will be. That is, the candidate pattern “A” of the character type “A” belongs to the class “A”. In addition to the character type, the class may be classified for each font. Therefore, the candidate pattern may belong to a plurality of classes at the same time, such as belonging to the character type class and the font class at the same time.

評価用パターン記憶部42は、後述する評価値算出部10が候補パターンを評価するために用いる評価用パターン(第2のパターン)の画像データと評価用パターンに関するタグ情報とを対応付けた情報を記憶する。本実施形態では評価用パターンは候補パターン記憶部41に格納された候補パターンからあらかじめ選択され、評価用パターン記憶部42に格納されている。   The evaluation pattern storage unit 42 stores information associating image data of an evaluation pattern (second pattern) used by the evaluation value calculation unit 10 described later for evaluating candidate patterns with tag information related to the evaluation pattern. Remember. In this embodiment, the evaluation pattern is selected in advance from the candidate patterns stored in the candidate pattern storage unit 41 and stored in the evaluation pattern storage unit 42.

すなわち本実施形態では、候補パターン記憶部41に格納された候補パターン1乃至候補パターン6から、文字認識を行いたい対象の文字と同じ所属クラス、同じフォント情報を持つ候補パターンを選択し、評価用パターンとする。すなわち、評価用パターンは、パターン認識を行う対象の属性に基づいて候補パターン群から選択される。なお、評価用パターン記憶部42は候補パターン記憶部41と同様に、後述するパターン選択処理を行う際に外部から入力するようにしても良い。また、評価用パターンとして選択されたパターンは候補パターン群から削除することにしてもよい。   That is, in the present embodiment, a candidate pattern having the same affiliation class and the same font information as the target character to be subjected to character recognition is selected from the candidate patterns 1 to 6 stored in the candidate pattern storage unit 41 and evaluated. A pattern. In other words, the evaluation pattern is selected from the candidate pattern group based on the attribute of the pattern recognition target. The evaluation pattern storage unit 42 may be input from the outside when performing pattern selection processing to be described later, like the candidate pattern storage unit 41. The pattern selected as the evaluation pattern may be deleted from the candidate pattern group.

ここで、図3を参照して、本実施形態の評価用パターン記憶部42に記憶された評価用パターン情報について説明する。評価用パターン情報は候補パターン情報と同様に、評価用パターンそのものと、この評価用パターンに対応する情報タグとを有する。 Here, with reference to FIG. 3, the pattern information for evaluation memorize | stored in the pattern storage part 42 for evaluation of this embodiment is demonstrated. Similar to the candidate pattern information, the evaluation pattern information includes the evaluation pattern itself and an information tag corresponding to the evaluation pattern.

図3は、本実施形態の評価用パターン記憶部42の一例を示す図である。図3に示すように、本実施形態の評価用パターン記憶部42には、クラス「A」に所属している評価用パターン1と、クラス「B」に所属している評価用パターン2とが記憶されている。なお、本実施形態では、説明を簡略化するために図3に示す評価用パターン1乃至評価用パターン24はすべて、幅100画素、高さ100画素であり、図2の候補パターンと同じサイズであるとする。本実施形態の評価用パターンの所属するクラスは、候補パターンの所属するクラスに対応している。すなわち、候補パターン記憶部41に格納された候補パターンのクラスと評価用パターンのクラスは対応関係にある。   FIG. 3 is a diagram illustrating an example of the evaluation pattern storage unit 42 according to the present embodiment. As shown in FIG. 3, the evaluation pattern storage unit 42 of the present embodiment includes an evaluation pattern 1 belonging to the class “A” and an evaluation pattern 2 belonging to the class “B”. It is remembered. In this embodiment, for the sake of simplicity, all of the evaluation patterns 1 to 24 shown in FIG. 3 have a width of 100 pixels and a height of 100 pixels, and have the same size as the candidate pattern of FIG. Suppose there is. The class to which the pattern for evaluation of this embodiment belongs corresponds to the class to which the candidate pattern belongs. That is, the candidate pattern class stored in the candidate pattern storage unit 41 and the evaluation pattern class are in a correspondence relationship.

評価用パターン1は、パターンIDが「A201」であり、所属クラスが「A」であり、フォントが「フォント1」であり、傾きが「±0」である。評価用パターン2は、パターンIDが「B201」であり、所属クラスが「B」であり、フォントが「フォント5」であり、傾きが「+20」である。すなわち、評価用パターン1は候補パターン記憶部41に記憶された候補パターン1であり、評価用パターン2は候補パターン記憶部41に記憶された候補パターン5である。   The evaluation pattern 1 has a pattern ID “A201”, a belonging class “A”, a font “font 1”, and a slope “± 0”. In the evaluation pattern 2, the pattern ID is “B201”, the belonging class is “B”, the font is “font 5”, and the inclination is “+20”. That is, the evaluation pattern 1 is the candidate pattern 1 stored in the candidate pattern storage unit 41, and the evaluation pattern 2 is the candidate pattern 5 stored in the candidate pattern storage unit 41.

評価値情報記憶部43は、評価値算出部10によって算出された候補パターンごとの評価値を格納する。 The evaluation value information storage unit 43 stores the evaluation value for each candidate pattern calculated by the evaluation value calculation unit 10.

スコア情報記憶部44は、スコア作成部20によって算出された候補パターンごとのスコアを格納する。 The score information storage unit 44 stores a score for each candidate pattern calculated by the score creation unit 20.

評価値ごとの重み付け情報記憶部45は、後述する評価値算出部10が評価値を算出する際に用いる評価値ごとの重み付けを行うための重み付け情報を記憶している。この評価値ごとの重み付け情報はあらかじめユーザもしくはシステム設計者などによって設定される。 The weighting information storage unit 45 for each evaluation value stores weighting information for performing weighting for each evaluation value used when the evaluation value calculation unit 10 to be described later calculates the evaluation value. The weighting information for each evaluation value is set in advance by a user or a system designer.

パターン選択基準情報記憶部46は、後述するパターン選択部30によるパターン選択処理の際に候補パターン記憶部41から辞書パターンを選択するための選択基準である。本実施形態ではパターン選択基準情報はあらかじめシステム設計者などによって設定される。 The pattern selection criterion information storage unit 46 is a selection criterion for selecting a dictionary pattern from the candidate pattern storage unit 41 during pattern selection processing by the pattern selection unit 30 described later. In this embodiment, the pattern selection reference information is set in advance by a system designer or the like.

なお、情報記憶部40は、1つ又は複数の記憶ユニットを適宜用いて、1つの記憶ユニットに領域を分けて構成してもよく、別々な記憶ユニットに記憶しても良い。または、それらを組み合わせても良い。情報記憶部40としては、例えば磁気ディスク装置、半導体メモリ、光ディスクメモリなどが用いられる。 Note that the information storage unit 40 may be configured by dividing an area into one storage unit by appropriately using one or a plurality of storage units, or may be stored in separate storage units. Or they may be combined. As the information storage unit 40, for example, a magnetic disk device, a semiconductor memory, an optical disk memory, or the like is used.

評価値算出部10は、スコア作成部20および情報記憶部40に接続される。評価値算出部10は、候補パターン記憶部41に格納されている候補パターン情報と、評価用パターン記憶部42に格納されている評価用パターン情報とを用いて、候補パターンごとの評価値を算出する。 The evaluation value calculation unit 10 is connected to the score creation unit 20 and the information storage unit 40. The evaluation value calculation unit 10 calculates an evaluation value for each candidate pattern using the candidate pattern information stored in the candidate pattern storage unit 41 and the evaluation pattern information stored in the evaluation pattern storage unit 42. To do.

本実施形態における評価値は、候補パターンごとの、貢献度(第1の評価値)、字形の整い具合(第2の評価値)、および距離スコア(第3の評価値)である。貢献度、字形の整い具合、および距離スコアのそれぞれの算出方法については後述する。評価値算出部10で算出されたそれぞれの評価値は、候補パターンごとに評価値情報記憶部43に格納される。 The evaluation values in the present embodiment are the contribution degree (first evaluation value), the shape of the character (second evaluation value), and the distance score (third evaluation value) for each candidate pattern. The calculation method of each of the contribution degree, the shape of the character shape, and the distance score will be described later. Each evaluation value calculated by the evaluation value calculation unit 10 is stored in the evaluation value information storage unit 43 for each candidate pattern.

スコア作成部20は、評価値算出部10とパターン選択部30と情報記憶部40とに接続されている。スコア作成部20は、評価値情報記憶部43に格納された評価値と、評価値ごとの重み付け情報記憶部45に格納された評価値ごとの重み付け情報とを用いて、候補パターンごとにスコアを算出する。なお、本実施形態のスコアの算出方法は、評価値と評価値ごとの重み付け情報とを掛け合わせたものを合計する方法で算出する。ただし、スコアとしては、この結果を例えば5段階に量子化するなどしたものを用いてもよい。スコア作成部20で算出されたスコアは、スコア情報として情報記憶部40のスコア情報記憶部44にスコア順に格納される。 The score creation unit 20 is connected to the evaluation value calculation unit 10, the pattern selection unit 30, and the information storage unit 40. The score creating unit 20 uses the evaluation value stored in the evaluation value information storage unit 43 and the weighting information for each evaluation value stored in the weighting information storage unit 45 for each evaluation value, and calculates a score for each candidate pattern. calculate. Note that the score calculation method of the present embodiment is calculated by a method of summing the product of the evaluation value and the weighting information for each evaluation value. However, a score obtained by quantizing the result into, for example, five levels may be used. The scores calculated by the score creation unit 20 are stored as score information in the score information storage unit 44 of the information storage unit 40 in the order of score.

パターン選択部30は、スコア作成部20と情報記憶部40とに接続されている。パターン選択部30は、上述のスコア作成部20によって算出されたスコアに基づいて、例えばパターン認識装置の認識辞書として用いられるパターン(以下、辞書パターンという)を候補パターン記憶部41に格納された候補パターンから選択する。情報記憶部40の評価用パターン記憶部42とスコア情報記憶部44を用いて、後述する候補パターン選択処理を行う。 The pattern selection unit 30 is connected to the score creation unit 20 and the information storage unit 40. Based on the score calculated by the score creation unit 20 described above, the pattern selection unit 30 stores, for example, a pattern used as a recognition dictionary of the pattern recognition device (hereinafter referred to as a dictionary pattern) stored in the candidate pattern storage unit 41. Select from patterns. Using the evaluation pattern storage unit 42 and the score information storage unit 44 of the information storage unit 40, a candidate pattern selection process described later is performed.

以下、本実施形態のパターン選択装置において、図2に示した6つの候補パターンから、辞書パターンを選択する処理の一例について図4乃至図13を参照して説明する。 Hereinafter, an example of processing for selecting a dictionary pattern from the six candidate patterns shown in FIG. 2 in the pattern selection apparatus of the present embodiment will be described with reference to FIGS. 4 to 13.

図4は本実施形態のパターン選択装置の動作の一例を示すフローチャートである。図4に示すように本実施形態のパターン選択装置は、まず評価値算出部10が候補パターン記憶部41に含まれる候補パターンそれぞれの評価値を算出する評価値算出処理を行う。 FIG. 4 is a flowchart showing an example of the operation of the pattern selection apparatus of this embodiment. As shown in FIG. 4, in the pattern selection apparatus according to the present embodiment, first, the evaluation value calculation unit 10 performs an evaluation value calculation process in which the evaluation value of each candidate pattern included in the candidate pattern storage unit 41 is calculated.

具体的には、評価値算出部はまず貢献度算出処理を行う(ステップS1)。次に、評価値算出部10は字形の整い具合算出処理を行う(ステップS2)。続いて、評価値算出部10は距離スコア算出処理を行う(ステップS3)。ステップS1乃至ステップS3において算出された各評価値は、評価値算出部10によって候補パターン毎に評価値記憶部43に格納される。 Specifically, the evaluation value calculation unit first performs a contribution calculation process (step S1). Next, the evaluation value calculation unit 10 performs a character shape calculation process (step S2). Subsequently, the evaluation value calculation unit 10 performs a distance score calculation process (step S3). Each evaluation value calculated in steps S1 to S3 is stored in the evaluation value storage unit 43 for each candidate pattern by the evaluation value calculation unit 10.

スコア作成部20は、算出された評価値と、評価値ごとの重み付け情報記憶部45に格納された評価値ごとの重み付け情報とを用いて、スコア算出処理を行う(ステップS4)。パターン選択部30は、ステップS4で算出されたスコアとパターン選択基準情報記憶部46に格納されたパターン選択基準情報とを用いて、候補パターン記憶部41から辞書パターンを選択する(ステップS5)。これにより、パターン選択装置は動作を終了する。 The score creation unit 20 performs a score calculation process using the calculated evaluation value and the weighting information for each evaluation value stored in the weighting information storage unit 45 for each evaluation value (step S4). The pattern selection unit 30 selects a dictionary pattern from the candidate pattern storage unit 41 using the score calculated in step S4 and the pattern selection reference information stored in the pattern selection reference information storage unit 46 (step S5). As a result, the pattern selection apparatus ends the operation.

ここで、図5乃至図8を参照して、図4のステップS1乃至ステップS3における評価値算出処理について説明する。 Here, with reference to FIG. 5 to FIG. 8, the evaluation value calculation processing in step S1 to step S3 of FIG. 4 will be described.

図5は、図4のステップS1における貢献度算出処理の手順の一例を示すフローチャートである。 FIG. 5 is a flowchart showing an example of the procedure of the contribution calculation process in step S1 of FIG.

まず、評価値算出部10は、評価用パターン記憶部42に記憶された評価用パターンから特定の評価用パターンを標本として選択し、図2の候補パターンを用いてk近傍法(k−nearest neighbor algorithm:knn法)によるパターン認識を行う(ステップS11)。すなわち、全ての候補パターンを認識辞書として用いて選択した評価用パターンを認識する。なお、knn法は、パターン認識においてよく用いられる技術である。 First, the evaluation value calculation unit 10 selects a specific evaluation pattern as a sample from the evaluation patterns stored in the evaluation pattern storage unit 42, and uses the k-nearest neighbor (k-nearest neighbor) using the candidate pattern of FIG. pattern recognition by algorithm (knnn method) is performed (step S11). That is, the selected evaluation pattern is recognized using all candidate patterns as a recognition dictionary. The knn method is a technique often used in pattern recognition.

評価値算出部10は、候補パターンごとに出現回数と正解回数を算出する(ステップS12)。出現回数は、対象の候補パターンが標本である評価用パターンの近傍に現れた回数であり、正解回数は対象の候補パターンが同じクラスの評価用パターンの近傍に現れた回数である。 The evaluation value calculation unit 10 calculates the number of appearances and the number of correct answers for each candidate pattern (step S12). The number of appearances is the number of times that the target candidate pattern appears in the vicinity of the evaluation pattern as a sample, and the number of correct answers is the number of times that the target candidate pattern appears in the vicinity of the evaluation pattern of the same class.

評価用パターン記憶部42に登録されたすべての評価用パターンについてパターン認識を行った場合(ステップS13がYes)、評価値算出部10は、候補パターンごとの出現回数と正解回数それぞれの累積値を算出する(ステップS14)。すなわち、対象の候補パターンについて、ステップS12で算出した候補パターンごとの出現回数と正解回数とをそれぞれ合計する。 When pattern recognition is performed for all the evaluation patterns registered in the evaluation pattern storage unit 42 (Yes in step S13), the evaluation value calculation unit 10 calculates the accumulated number of the number of appearances and the number of correct answers for each candidate pattern. Calculate (step S14). That is, for the target candidate pattern, the number of appearances and the number of correct answers for each candidate pattern calculated in step S12 are summed.

評価値算出部10は、候補パターンごとの出現回数の累積値と正解回数の累積値を用いて、図6の式(イ)によって貢献度を算出し(ステップS15)、貢献度算出処理を終了する。 The evaluation value calculation unit 10 calculates the contribution by the equation (A) in FIG. 6 using the cumulative value of the number of appearances and the cumulative value of the number of correct answers for each candidate pattern (step S15), and ends the contribution degree calculation process. To do.

なお、すべての評価用パターンをパターン認識してない場合、すなわち、評価用パターン記憶部42に登録された評価用パターン情報にステップS11を行っていない評価用パターンが存在する場合(ステップS13がNo)、評価値算出部10はパターン認識を行っていない次の評価用パターンを標本とし(ステップS16)、ステップS11にもどりパターン認識を行う。ただし、評価値算出部10で用いる評価用パターンは評価用パターン記憶部42に記憶された評価用パターンから任意に選択した一部に限ってもよい。この場合、対象としない評価用パターンに対しては上記の処理を行わない。 When not all the patterns for evaluation are recognized, that is, when there is an evaluation pattern for which step S11 is not performed in the pattern information for evaluation registered in the pattern storage unit for evaluation 42 (No in step S13). ), The evaluation value calculation unit 10 uses the next evaluation pattern that has not been subjected to pattern recognition as a sample (step S16), and returns to step S11 to perform pattern recognition. However, the evaluation pattern used in the evaluation value calculation unit 10 may be limited to a part arbitrarily selected from the evaluation patterns stored in the evaluation pattern storage unit 42. In this case, the above-described processing is not performed for evaluation patterns that are not targeted.

式(イ)から明らかであるように、貢献度は、該当する候補パターンが評価用パターンの近傍として選択された場合に、評価用パターンと候補パターンとが同じクラスである比率である。言い換えれば、ある候補パターンの近傍にある評価用パターンのうち、該候補パターンと同じクラスであるパターンの比率である。すなわち、貢献度が高い候補パターンの近傍には該候補パターンと同じクラスが多く分布していると考えることができ、結果として入力されたパターンを候補パターンと同じクラスに識別することが妥当だと考えられる。 As is clear from the equation (a), the contribution is a ratio in which the evaluation pattern and the candidate pattern are in the same class when the corresponding candidate pattern is selected as the vicinity of the evaluation pattern. In other words, it is the ratio of patterns in the same class as the candidate pattern among the evaluation patterns in the vicinity of the candidate pattern. That is, it can be considered that many of the same classes as the candidate pattern are distributed in the vicinity of the candidate pattern having a high contribution, and as a result, it is appropriate to identify the input pattern as the same class as the candidate pattern. Conceivable.

すなわち、貢献度が高い候補パターンは、入力されたパターンの正しいクラスを決定するのに貢献する。 That is, a candidate pattern with a high contribution contributes to determining the correct class of the input pattern.

なお、本実施例では評価値の算出基準として出現回数・正解回数の累積値を用いたが、入力されたパターンと近傍として選択された候補パターンとの距離が近いほどそれらが同じクラスである可能性が高いことを考慮し、例えば該候補パターンと入力されたパターンとの距離の逆数の合計などのように距離に基づいて貢献度を算出してもよい。なお、ここでいう距離とはKnn法に用いられる距離のことである。 In this embodiment, the cumulative value of the number of appearances and the number of correct answers is used as the evaluation value calculation criterion. However, the closer the distance between the input pattern and the candidate pattern selected as the neighborhood, the more likely they are in the same class. In consideration of the high possibility, the contribution may be calculated based on the distance, such as the sum of the reciprocal of the distance between the candidate pattern and the input pattern. In addition, the distance here is a distance used in the Knn method.

この場合の計算は、例えば以下のように行う。ある候補パターンxが評価用パターンyの近傍として選択された場合、xとyの距離Dx,yiを、候補パターンxと評価用パターンyの同じ位置の画素それぞれに対して、画素値の差の二乗を求めて合計し、その平方根をとったものとする。 The calculation in this case is performed as follows, for example. When a certain candidate pattern x is selected as the vicinity of the evaluation pattern y i , the distance D x, y i between x and y i is set to the pixel at the same position in the candidate pattern x and the evaluation pattern y i. It is assumed that the square of the difference of values is obtained and summed, and the square root is taken.

ここで、前記の距離の逆数を候補パターンxが近傍に出現した全ての評価用パターンy,y,y,・・・,yについて合計した値であるDに対する、上記の評価用パターンのうちクラスがxと同じである評価用パターンy,y,y,・・・,yについてのみ合計した値であるDの割合を貢献度としてもよい。 Here, the above evaluation with respect to D 1 , which is the sum of all the evaluation patterns y 1 , y 2 , y 3 ,..., N n in which the candidate pattern x appears in the vicinity of the reciprocal of the distance. use evaluation pattern y 1 class is the same as the x of the patterns, y 2, y 3, ··· , the ratio of D 2 may be contribution is the total value only for y m.

なお、Dx,yiがあらかじめ定めた閾値Thよりも小さい場合、Dx,yiの値をThとするようにしてもよい。また、評価用パターンとの距離が0の候補パターンが存在した場合、すなわち評価用パターンがある候補パターンと完全に一致する場合、該評価用パターンを上記の計算から除外して貢献度を求めてもよいし、貢献度を100としてもよい。上記のような計算によれば、評価用パターンと候補パターンとの距離が近いほど貢献度の算出に大きく影響するようにできる。次に、図7を参照して、図4のステップS2における字形の整い具合算出処理について説明する。図7は、評価値算出部10による字形の整い具合算出処理の手順の一例を示すフローチャートである。 If D x, yi is smaller than a predetermined threshold value Th , the value of D x, yi may be set to Th. In addition, when there is a candidate pattern whose distance from the evaluation pattern is 0, that is, when the evaluation pattern completely matches a certain candidate pattern, the evaluation pattern is excluded from the above calculation and the contribution is obtained. Alternatively, the contribution may be 100. According to the calculation as described above, the calculation of the contribution can be greatly influenced as the distance between the evaluation pattern and the candidate pattern is shorter. Next, with reference to FIG. 7, the character shape calculation processing in step S2 of FIG. 4 will be described. FIG. 7 is a flowchart illustrating an example of a procedure for calculating the shape of the character by the evaluation value calculation unit 10.

まず、評価値算出部10は、候補パターンの画像サイズと画素階調とを正規化する(ステップS21)。これらの正規化はあらかじめ定められた基準にしたがって行われる。本実施例の場合、画素階調は文字のある画素が黒、ない画素が白の2階調に正規化される。 First, the evaluation value calculation unit 10 normalizes the image size and pixel gradation of the candidate pattern (step S21). These normalizations are performed according to predetermined criteria. In this embodiment, the pixel gradation is normalized to two gradations in which a pixel with characters is black and a pixel without characters is white.

次に、正規化された候補パターンとテンプレートのパターンにおいて同じ位置の画素を比較し、両方に黒画素が出現している画素位置の数を算出する(ステップS22)。 Next, pixels at the same position in the normalized candidate pattern and the template pattern are compared, and the number of pixel positions where black pixels appear in both are calculated (step S22).

なお、本実施形態のテンプレートは、本実施形態の候補パターンの所属するクラスにおける標準的なパターンであり、あらかじめ候補パターン記憶部41の候補パターン情報から作成される。例えば、候補パターン情報からクラスごと、またはフォントごとに傾きが0のパターンを選択する。選択した候補パターンの平均をとったものをテンプレートとする。選択されたパターンが複数ある場合、それらのうちの一つを選択してテンプレートとしてもよい。その場合、例えば全ての選択されたパターンの平均をとったパターンとの距離が最も近い選択されたパターンを選択するなどすればよい。すなわち、ユーザがパターン認識を行いたい対象として最も標準的であると定めた候補パターンをテンプレートに設定する。   The template of the present embodiment is a standard pattern in the class to which the candidate pattern of the present embodiment belongs, and is created from candidate pattern information in the candidate pattern storage unit 41 in advance. For example, a pattern having a slope of 0 is selected for each class or font from the candidate pattern information. The average of the selected candidate patterns is used as a template. When there are a plurality of selected patterns, one of them may be selected as a template. In that case, for example, a selected pattern having the shortest distance from the average pattern of all the selected patterns may be selected. That is, a candidate pattern determined to be the most standard target for the user to perform pattern recognition is set in the template.

なお、テンプレートは上述した作成方法のほかにも、図3に示した評価用パターン群の中からあらかじめ設定してもいいし、評価用パターン群とは別のパターンをあらかじめテンプレートとして登録しても良い。例えば、あらかじめ、クラスごと、またはフォントごとに傾きがない候補パターンを1つ用意し、テンプレートタグをつけ、テンプレートが必要な場合には、このテンプレートタグのついた候補パターンをテンプレートとしてもよい。   In addition to the creation method described above, the template may be set in advance from the evaluation pattern group shown in FIG. 3, or a pattern different from the evaluation pattern group may be registered in advance as a template. good. For example, one candidate pattern without inclination for each class or font is prepared in advance, a template tag is attached, and when a template is required, the candidate pattern with this template tag may be used as a template.

ここでは、図2に示した候補パターンのうち、クラスAのテンプレートを候補パターン1とし、クラスBのテンプレートを候補パターン4とする。 Here, among the candidate patterns shown in FIG. 2, a class A template is set as candidate pattern 1, and a class B template is set as candidate pattern 4.

次に、評価値算出部10は、正規化された候補パターンと上記テンプレートパターンのそれぞれの同じ位置の画素において、両方に黒画素が出現している画素位置の数を算出する(図7のステップS22)。 Next, the evaluation value calculation unit 10 calculates the number of pixel positions at which black pixels appear in both of the normalized candidate pattern and the template pattern at the same position (step in FIG. 7). S22).

次に、評価値算出部10は、正規化された候補パターンと上記テンプレートパターンのそれぞれの同じ位置の画素において、少なくとも一方に黒画素が出現している画素位置の数を算出する(図7のステップS23)。 Next, the evaluation value calculation unit 10 calculates the number of pixel positions where a black pixel appears in at least one of the normalized candidate pattern and the pixel at the same position in the template pattern (FIG. 7). Step S23).

評価値算出部10は、図7のステップS22で算出した、同じ画素位置に黒画素が出現している画素位置の数をXとし、図7のステップS23で算出した、どちらか一方にでも黒画素が出現している画素位置の数をYとし、図6の式(ロ)によって字形の整い具合を求める(ステップS24)。これにより、評価値算出部10は字形の整い具合算出処理を終了する。 The evaluation value calculation unit 10 sets the number of pixel positions where black pixels appear at the same pixel position calculated in step S22 in FIG. 7 as X, and calculates black in either one calculated in step S23 in FIG. The number of pixel positions where the pixel appears is Y, and the shape of the character shape is obtained by the equation (b) in FIG. 6 (step S24). Thereby, the evaluation value calculation unit 10 ends the character shape calculation process.

すなわち字形の整い具合とは、ユーザがパターン認識を行う対象として標準的であると定めたパターンにどれだけ類似しているかを示す評価値である。 That is, the shape of the character shape is an evaluation value indicating how similar to the pattern that the user has determined to be standard as an object for pattern recognition.

続いて、図8を参照して、評価値算出部10による距離スコア算出処理について説明する。図8は距離スコア算出処理の一例を示すフローチャートである。 Next, a distance score calculation process by the evaluation value calculation unit 10 will be described with reference to FIG. FIG. 8 is a flowchart showing an example of the distance score calculation process.

まず、評価値算出部10は候補パターンをの画像サイズと画素階調とを正規化する(ステップS31)。これらの正規化はあらかじめ定められた基準にしたがって行われる。なお、ステップS31の処理は、字形の整い具合算出処理におけるステップS21の処理と同じである。このため、ステップS31の処理を行わず、ステップS21の正規化後のデータを使用しても良い。 First, the evaluation value calculation unit 10 normalizes the image size and pixel gradation of the candidate pattern (step S31). These normalizations are performed according to predetermined criteria. Note that the processing in step S31 is the same as the processing in step S21 in the character shape calculation processing. For this reason, the data after normalization in step S21 may be used without performing the process in step S31.

評価値算出部10は、正規化された候補パターンを用いて、クラス内の平均パターンを作成する(ステップS32)。平均パターンとは、同一位置における同一クラス内の候補パターンの画素値の平均値を求めることで作成される。 The evaluation value calculation unit 10 creates an average pattern in the class using the normalized candidate pattern (step S32). The average pattern is created by obtaining an average value of pixel values of candidate patterns in the same class at the same position.

次に、評価値算出部10は候補パターンごとに、ステップS32で作成した平均パターンとの距離を算出する(ステップS33)。ここでの距離とは、候補パターンと平均パターンの同じ位置の画素それぞれに対して、画素値の差の二乗を求めて合計し、その合計値の平方根をとったものである。 Next, the evaluation value calculation unit 10 calculates the distance from the average pattern created in step S32 for each candidate pattern (step S33). The distance here is obtained by calculating and summing the square of the difference between the pixel values for each pixel at the same position in the candidate pattern and the average pattern, and taking the square root of the total value.

評価値算出部10は、算出した距離をlogで変換し(ステップS34)、変換した値を正規化して0から100の範囲にし(ステップS35)、距離スコア算出処理を終了する。この正規化後の値を同クラス内での距離スコアとする。 The evaluation value calculation unit 10 converts the calculated distance by log (step S34), normalizes the converted value to a range from 0 to 100 (step S35), and ends the distance score calculation process. This normalized value is used as a distance score in the same class.

平均パターンとは、与えられた候補パターン内における当該クラスの分布の中心である。言い換えると、当該クラスは平均パターンを中心に分布していると考えることができる。すなわち、距離スコアの小さい候補パターンは、平均パターンとの距離が近い、つまり当該クラスの分布の中心付近に位置する、言い換えれば候補パターンからはそのクラスらしいと考えられるパターンである。逆に、距離スコアが大きい候補パターンは、当該クラスの分布の中心から外れた場所に位置する、言い換えればそのクラスにおいて例外的であると考えられる候補パターンである。 The average pattern is the center of the distribution of the class in a given candidate pattern. In other words, it can be considered that the class is distributed around the average pattern. That is, a candidate pattern with a small distance score is a pattern that is close to the average pattern, that is, located near the center of the distribution of the class, in other words, a pattern that seems to be a class from the candidate pattern. Conversely, a candidate pattern with a large distance score is a candidate pattern that is located at a location outside the center of the distribution of the class, in other words, a candidate pattern that is considered exceptional in that class.

距離スコア算出処理終了後、評価値算出部10は、これらの各評価値を評価値テーブルとして評価値情報記憶部43に登録する。図9に評価値テーブルの一例を示す。図9に示すように、評価値テーブルは、パターンID431、貢献度432、字形の整い具合433、および距離スコア434の項目を有し、候補パターンごとの評価値が格納される。パターンID431には、図2に示した候補パターンのIDが格納される。 After completion of the distance score calculation process, the evaluation value calculation unit 10 registers these evaluation values in the evaluation value information storage unit 43 as an evaluation value table. FIG. 9 shows an example of the evaluation value table. As shown in FIG. 9, the evaluation value table has items of pattern ID 431, contribution degree 432, character shape adjustment 433, and distance score 434, and evaluation values for each candidate pattern are stored. The pattern ID 431 stores the ID of the candidate pattern shown in FIG.

なお、貢献度、字形の整い具合、距離スコアは順次算出しても良いし、同時に算出しても良い。また、貢献度、字形の整い具合、距離スコアのそれぞれの算出方法は、前述した方法のほかどのような方法を用いても良い。 The contribution degree, the shape of the character shape, and the distance score may be calculated sequentially or simultaneously. In addition to the method described above, any method may be used as a method for calculating the contribution degree, the shape of the character shape, and the distance score.

図10乃至図12を参照して、図4のステップS4におけるスコア作成処理について説明する。図10は、スコア作成部20によるスコア作成処理の一例を示すフローチャートである。 The score creation process in step S4 of FIG. 4 will be described with reference to FIGS. FIG. 10 is a flowchart illustrating an example of score creation processing by the score creation unit 20.

スコア作成部20は、評価値情報記憶部43に格納された評価値と、評価値ごとの重み付け情報記憶部45とを参照してスコアを算出する(ステップS41)。なお、ここでは、各評価値と評価値ごとの重み付け情報とをかけ合わせた値の合計値を候補パターンのスコアとして扱う。 The score creation unit 20 calculates a score with reference to the evaluation value stored in the evaluation value information storage unit 43 and the weighting information storage unit 45 for each evaluation value (step S41). Here, the total value of the values obtained by multiplying each evaluation value and the weighting information for each evaluation value is treated as the score of the candidate pattern.

ここで、図11を参照して評価値ごとの重み付け情報について説明する。評価値ごとの重み付け情報は、あらかじめユーザ、もしくは本実施形態のパターン選択装置作成者によって設定され、テーブルとして重み付け情報記憶部45に格納されている。図11に示すように、本実施形態の評価値ごとの重み付け情報は、貢献度、字形の整い具合、および距離スコアのそれぞれに対して0から1の間の値であって、合計値が「1」になるように設定されている。この評価値ごとの重み付け情報を設定することで、本実施形態のパターン選択装置はユーザの要望に沿った候補パターンの選択を可能とする。 Here, the weighting information for each evaluation value will be described with reference to FIG. The weighting information for each evaluation value is set in advance by the user or the pattern selection device creator of the present embodiment, and stored in the weighting information storage unit 45 as a table. As shown in FIG. 11, the weighting information for each evaluation value according to the present embodiment is a value between 0 and 1 for each of the contribution degree, the shape of the character shape, and the distance score, and the total value is “ 1 "is set. By setting the weighting information for each evaluation value, the pattern selection device according to the present embodiment enables selection of candidate patterns according to the user's request.

パターン認識においては、辞書作成用パターンとして選択された候補パターンに類似したパターンの認識率が高くなるため、このスコアの算出の際の重み付けによってどのようなパターンを高い認識率で認識するのかが決定する。例えば、貢献度の重み付けを高くすると、周辺に他のクラスの候補パターンが少ない候補パターンが優先され、そのクラスである可能性の高い、言い換えれば他のクラスである可能性の低いパターンに対する認識率が高くなる。字形の整い具合を高くすると、ユーザが当該クラスにおいて標準的であると定めたパターンに似たパターンの割合が高くなるため、認識対象が活字のように字形のばらつきが少ない場合、効率的に認識率を向上させることが期待できる。距離スコアの重み付けを高くすると、クラス内における例外的な辞書パターンの割合が高くなるため、手書き文字のようにクラス内のばらつきが大きい場合や、画像にノイズが混入してる場合等に対する効率的に認識率を向上させることが期待できる。 In pattern recognition, since the recognition rate of patterns similar to the candidate pattern selected as the dictionary creation pattern is high, it is determined what pattern is recognized with high recognition rate by weighting when calculating this score To do. For example, if the contribution weight is increased, a candidate pattern with a small number of candidate patterns in other classes is given priority, and the recognition rate for a pattern that is likely to be that class, in other words, a pattern that is unlikely to be another class. Becomes higher. Increasing the shape of the character shape increases the percentage of patterns that are similar to the patterns that the user has determined to be standard in the class. The rate can be expected to improve. Increasing the weight of the distance score increases the percentage of exceptional dictionary patterns in the class, so it can be efficiently used when there are large variations in the class, such as handwritten characters, or when there is noise in the image. It can be expected to improve the recognition rate.

図10の説明に戻る。スコア作成部20は、ステップS41で求めたスコアを数値の高い順に登録してスコアテーブルを作成し(ステップS42)、作成したスコアテーブルをスコア情報記憶部44に登録する(ステップS43)。 Returning to the description of FIG. The score creation unit 20 creates a score table by registering the scores obtained in step S41 in descending order of numerical values (step S42), and registers the created score table in the score information storage unit 44 (step S43).

例えば、図2の候補パターン1のスコアを算出する場合を説明する。図2の候補パターン1は、図9に示すように、貢献度が75、字形の整い具合が100、距離スコアが80である。図11に示すように、貢献度の重み付け情報は、貢献度が0.5、字形の整い具合の重み付け情報が0.25、距離スコアの重み付け情報が0.25である。スコアはそれぞれをかけ合わせた合計であるため、この候補パターン411のスコアは「82.5」となる。その他の候補パターンに関しても同様にスコアを求める。 For example, a case where the score of candidate pattern 1 in FIG. 2 is calculated will be described. As shown in FIG. 9, candidate pattern 1 in FIG. 2 has a contribution degree of 75, a letter shape of 100, and a distance score of 80. As shown in FIG. 11, the contribution weighting information is 0.5 for the contribution, 0.25 for the shape adjustment, and 0.25 for the distance score. Since the score is a total obtained by multiplying the respective scores, the score of the candidate pattern 411 is “82.5”. Scores are similarly obtained for other candidate patterns.

図12に、本実施形態に係るスコアテーブルの一例を示す。図12に示すように、スコアテーブルはパターンNo、パターンID、スコアの項目を有する。Noは、スコアの登録順序が登録される。パターンIDは登録された候補パターンのIDが登録される。スコアは、スコア作成部20が算出したスコアがパターンIDに対応して登録される。 FIG. 12 shows an example of the score table according to the present embodiment. As shown in FIG. 12, the score table has items of pattern No., pattern ID, and score. For No, the registration order of scores is registered. The ID of the registered candidate pattern is registered as the pattern ID. As the score, the score calculated by the score creating unit 20 is registered in correspondence with the pattern ID.

スコア作成部20がスコアテーブルを作成すると、本実施形態のパターン選択部30は、パターン選択基準46を参照してスコアテーブルの上位から順番に辞書パターンを選択する。図13にパターン選択基準の一例を示す。   When the score creation unit 20 creates the score table, the pattern selection unit 30 of the present embodiment refers to the pattern selection criterion 46 and selects dictionary patterns in order from the top of the score table. FIG. 13 shows an example of pattern selection criteria.

図13に示すように、パターン選択基準には、辞書パターンを選択する数が登録されている。本実施形態では「3」であるため、パターン選択部30によって、図2のスコアテーブルのNo1乃至No3の候補パターンが認識辞書を作成するのに用いる辞書パターンとして選択される。   As shown in FIG. 13, the number for selecting a dictionary pattern is registered in the pattern selection criterion. Since it is “3” in the present embodiment, the pattern selection unit 30 selects candidate patterns No. 1 to No. 3 in the score table of FIG. 2 as dictionary patterns used to create a recognition dictionary.

本実施形態では、辞書は選択された辞書作成用パターンの集合である。なお、辞書の作成方法については、部分空間法等の異なる認識手法に合わせた辞書の作成用法を選択しても良い。   In the present embodiment, the dictionary is a set of selected dictionary creation patterns. As a dictionary creation method, a dictionary creation method adapted to a different recognition method such as a subspace method may be selected.

このように本実施形態によれば、候補パターンそれぞれに対して算出したスコアに基づいて候補パターンからパターンを選択することにより、効率的にパターンを選択することができる。さらに、パターンを選択する際の基準を明確にすることができる。   Thus, according to this embodiment, a pattern can be efficiently selected by selecting a pattern from a candidate pattern based on the score calculated with respect to each candidate pattern. Furthermore, the criteria for selecting a pattern can be clarified.

例えば、本実施形態によれば、重み付け情報によって指定されたバランスに適合したクラス境界付近のパターンと標準的なパターンとを選択することが可能である。したがって、クラス間境界付近パターンとクラス内の標準的なパターンとがバランスよく含まれ構成された認識辞書を作成することが可能である。また、本実施形態によると。パターン認識の認識精度を低減せずに、認識辞書に使用するパターンを減少することが可能である。   For example, according to the present embodiment, it is possible to select a pattern near the class boundary and a standard pattern that match the balance specified by the weighting information. Therefore, it is possible to create a recognition dictionary that includes a pattern near the boundary between classes and a standard pattern in the class in a balanced manner. Also according to this embodiment. It is possible to reduce the patterns used in the recognition dictionary without reducing the recognition accuracy of pattern recognition.

なお、評価用パターン、評価値ごとの重み付け情報、およびパターン選択基準はそれぞれ、ユーザが認識したい対象に合わせて変更が可能である。   Note that the evaluation pattern, the weighting information for each evaluation value, and the pattern selection criterion can be changed according to the object that the user wants to recognize.

(第2の実施形態)
以下、図14乃至図17を参照して、第2の実施形態のパターン選択装置について説明する。なお、第1の実施形態と同一の構成には同一の符号を付し、説明は省略する。
(Second Embodiment)
Hereinafter, a pattern selection apparatus according to the second embodiment will be described with reference to FIGS. 14 to 17. In addition, the same code | symbol is attached | subjected to the structure same as 1st Embodiment, and description is abbreviate | omitted.

図14は、第2の実施形態のパターン選択装置の全体構成を示すブロック図である。 FIG. 14 is a block diagram illustrating the overall configuration of the pattern selection apparatus according to the second embodiment.

図14に示すように、本実施形態のパターン選択装置は、図1に示したパターン選択装置の構成に再選択判定部31、認識辞書作成部32、更新条件記憶部47、更新情報記憶部48、情報入力部50、および情報更新部60をさらに有する構成である。なお、本実施形態の再選択判定部31および認識辞書作成部32はパターン選択部30が有する。 As shown in FIG. 14, the pattern selection device of the present embodiment has a reselection determination unit 31, a recognition dictionary creation unit 32, an update condition storage unit 47, and an update information storage unit 48 in the configuration of the pattern selection device shown in FIG. 1. The information input unit 50 and the information update unit 60 are further included. Note that the reselection determination unit 31 and the recognition dictionary creation unit 32 of the present embodiment are included in the pattern selection unit 30.

情報入力部50は、ユーザが更新情報を入力するために用いる。情報入力部50は、例えばキーボードやマウスである。   The information input unit 50 is used by the user to input update information. The information input unit 50 is a keyboard or a mouse, for example.

更新条件記憶部47には後述するパターン選択条件の更新条件が格納される。この更新条件は後述するパターン更新処理において用いられる。   The update condition storage unit 47 stores an update condition of a pattern selection condition described later. This update condition is used in a pattern update process described later.

更新情報記憶部48には後述する更新情報が格納される。更新情報は、更新対象となる情報の項目名と変更後の情報とを含む。なお、本実施形態では、更新情報および更新条件はパターン選択基準情報記憶部46のパターン選択基準を更新するための情報である。また、パターン選択基準情報以外に、選択条件情報、評価値の数や種類、評価値ごとの重み付け情報、スコアの算出方法等を更新しても良い。   The update information storage unit 48 stores update information to be described later. The update information includes the item name of the information to be updated and the changed information. In the present embodiment, the update information and the update condition are information for updating the pattern selection criterion in the pattern selection criterion information storage unit 46. In addition to the pattern selection reference information, selection condition information, the number and type of evaluation values, weighting information for each evaluation value, a score calculation method, and the like may be updated.

再選択判定部31は、更新条件に基づいてパターン選択を再度行うかどうかを判定する。   The reselection determination unit 31 determines whether to perform pattern selection again based on the update condition.

認識辞書作成部32はパターン選択部30が選択したパターンに基づいてパターン認識装置によるパターン認識において用いられる認識辞書を作成する。   The recognition dictionary creation unit 32 creates a recognition dictionary used in pattern recognition by the pattern recognition device based on the pattern selected by the pattern selection unit 30.

情報更新部60は更新情報記憶部48の更新情報に基づいてパターン選択基準を更新する。   The information update unit 60 updates the pattern selection criterion based on the update information stored in the update information storage unit 48.

以下、図15を参照して、本実施形態のパターン選択装置を用いてパターン認識装置の認識辞書を作成する際のパターン選択基準更新処理手順について説明する。   Hereinafter, with reference to FIG. 15, a pattern selection reference update processing procedure when creating a recognition dictionary of the pattern recognition apparatus using the pattern selection apparatus of the present embodiment will be described.

図15は、本実施形態のパターン選択装置に係る認識辞書を作成する場合のパターン選択条件更新手順の一例を示すフローチャートである。   FIG. 15 is a flowchart showing an example of a pattern selection condition update procedure when creating a recognition dictionary according to the pattern selection device of this embodiment.

まず、ユーザは情報入力部50を用いて、パターン選択基準の更新情報と更新条件とを入力する(ステップS51)。   First, the user uses the information input unit 50 to input pattern selection reference update information and update conditions (step S51).

ここで、図16および図17に、パターン選択の更新条件471とパターン選択基準の更新情報481の一例を示す。図16に示すように、パターン選択の更新条件471は、最大パターン数472と最低認識率473とを有する。最大パターン数472は、パターン選択部30によって候補パターン群から選択されるパターンの最大数示す。最低認識率473は、パターン選択部30によって選択されたパターンに基づいて作成された認識辞書を用いて、評価用パターン群を認識した場合に最低限必要とされる認識率を定めたものである。なお、認識率とは、例えばパターンを認識した回数に対する、パターン認識の正解数である。   Here, FIGS. 16 and 17 show an example of the pattern selection update condition 471 and the pattern selection reference update information 481. As shown in FIG. 16, the pattern selection update condition 471 has a maximum number of patterns 472 and a minimum recognition rate 473. The maximum number of patterns 472 indicates the maximum number of patterns selected from the candidate pattern group by the pattern selection unit 30. The minimum recognition rate 473 defines the minimum recognition rate required when an evaluation pattern group is recognized using a recognition dictionary created based on the pattern selected by the pattern selection unit 30. . The recognition rate is, for example, the number of correct pattern recognitions with respect to the number of times the pattern is recognized.

図17に示すように、パターン選択基準の更新情報481は、パターン選択数変更単位482を有する。パターン選択数変更単位482はパターン選択部30が再度パターンを選択する際のパターン数の増減値を定めたものである。   As shown in FIG. 17, the pattern selection reference update information 481 includes a pattern selection number change unit 482. The pattern selection number change unit 482 defines an increase / decrease value of the number of patterns when the pattern selection unit 30 selects a pattern again.

入力されたパターン選択の更新条件471は、情報記憶部40の選択条件情報記憶部47に記憶され、更新情報481は、情報記憶部40の更新情報記憶部48に記憶される(ステップS52)。   The input pattern selection update condition 471 is stored in the selection condition information storage unit 47 of the information storage unit 40, and the update information 481 is stored in the update information storage unit 48 of the information storage unit 40 (step S52).

続いて、本実施形態のパターン選択装置は、図4に示したパターン選択処理を行い、候補パターン群から辞書パターンを選択する(ステップS53)。パターン選択部30の認識辞書作成部32はは、選択されたた辞書パターンを用いて認識辞書を作成する(ステップS54)。   Subsequently, the pattern selection apparatus of the present embodiment performs the pattern selection process shown in FIG. 4 and selects a dictionary pattern from the candidate pattern group (step S53). The recognition dictionary creation unit 32 of the pattern selection unit 30 creates a recognition dictionary using the selected dictionary pattern (step S54).

パターン選択部30が認識辞書を作成すると、再選択判定部31は作成された認識辞書を用いて評価用パターン記憶部42に格納された評価用パターンのパターン認識を行う。このパターン認識は、例えばknn法を用いて行われる(ステップS55)。なお、ステップS55で用いる評価用パターンは、ステップS53のパターン選択処理で用いられる評価用パターンでも良いし、あらかじめパターン選択条件更新処理用に登録されていても良い。また、再選択判定部31がパターン認識を行うのではなく、外部のパターン認識装置を用いてパターン認識を行い、再選択判定部31は認識結果を用いるようにしても良い。   When the pattern selection unit 30 creates a recognition dictionary, the reselection determination unit 31 performs pattern recognition of the evaluation pattern stored in the evaluation pattern storage unit 42 using the created recognition dictionary. This pattern recognition is performed using, for example, the knn method (step S55). Note that the evaluation pattern used in step S55 may be an evaluation pattern used in the pattern selection process in step S53, or may be registered in advance for the pattern selection condition update process. Alternatively, the reselection determination unit 31 may perform pattern recognition using an external pattern recognition device instead of performing pattern recognition, and the reselection determination unit 31 may use the recognition result.

再選択判定部31は、認識辞書作成部32が作成した認識辞書によってパターン認識を行った場合の認識率を算出する(ステップS56)。算出した認識率がステップS51で入力されたパターン選択の更新条件471を満たす場合(ステップS57がYes)、再選択判定部31は、パターン再選択を行わず、パターン選択基準更新処理を終了する。すなわち、算出された認識率が更新条件471の最低認識率473を超える場合に、パターン選択条件更新処理を終了する。   The reselection determination unit 31 calculates a recognition rate when pattern recognition is performed using the recognition dictionary created by the recognition dictionary creation unit 32 (step S56). When the calculated recognition rate satisfies the pattern selection update condition 471 input in step S51 (Yes in step S57), the reselection determination unit 31 ends the pattern selection reference update process without performing pattern reselection. That is, when the calculated recognition rate exceeds the minimum recognition rate 473 of the update condition 471, the pattern selection condition update process is terminated.

算出した認識率がステップS51で入力されたパターン選択の更新条件471を満たさない場合(ステップS57がNo)、再選択判定部31はパターン選択基準を更新すると判定し、この判定結果に基づいて、パターン選択部30は更新情報481を用いてパターン選択基準記憶部46に格納されたパターン選択基準を更新する(ステップS58)。具体的には、パターン選択基準の更新情報481のパターン選択数変更単位482に基づいて、パターン選択基準のパターン選択数を追加する。その後、本実施形態のパターン選択装置は、更新されたパターン選択基準を用いて、ステップS53から処理を繰り返す。   When the calculated recognition rate does not satisfy the pattern selection update condition 471 input in step S51 (No in step S57), the reselection determination unit 31 determines to update the pattern selection reference, and based on the determination result, The pattern selection unit 30 updates the pattern selection reference stored in the pattern selection reference storage unit 46 using the update information 481 (step S58). Specifically, the pattern selection reference pattern selection number is added based on the pattern selection reference change unit 482 of the pattern selection reference update information 481. Thereafter, the pattern selection apparatus according to the present embodiment repeats the processing from step S53 using the updated pattern selection reference.

このように本実施形態によれば、パターン選択部30がパターン選択基準に基づいて候補パターンから選択したパターンを、パターン選択基準の更新条件に基づいて判定し、判定結果に基づいて、追加するパターンを算出したスコアを参照して選択することを可能とする。すなわち、認識対象をパターン認識する際に、ユーザの求める認識率を満たす認識辞書を作成可能な最小数の辞書作成用パターンを候補パターンから選択することが可能である。   As described above, according to the present embodiment, the pattern selected by the pattern selection unit 30 based on the pattern selection criterion is determined based on the update condition of the pattern selection criterion, and the pattern to be added based on the determination result. It is possible to select with reference to the calculated score. That is, when the recognition target is recognized as a pattern, the minimum number of dictionary creation patterns that can create a recognition dictionary that satisfies the recognition rate required by the user can be selected from the candidate patterns.

以上、本発明のいくつかの実施形態を説明したが、これら実施形態は例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   As mentioned above, although some embodiment of this invention was described, these embodiment is shown as an example and is not intending limiting the range of invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalents thereof.

また、第1のおよび第2の実施形態では評価用パターンは候補パターン群から選択するとしたが、その場合に情報タグを用いて評価用パターンの絞りこみを行うことも可能である。例えば傾き±10以上のものは削除しても良い。または、候補パターン群から選択する評価用パターンの数に上限を設定し、クラスごとにランダムにパターンを削除しても良い。これは、第2の実施形態のパターン選択装置において辞書パターンと評価用パターンに同一のパターンが含まれないようにするためである。なお、この場合にはクラスやフォントごとに、パターン数に偏りがないように選択するようにしても良い。   In the first and second embodiments, the evaluation pattern is selected from the candidate pattern group. In this case, the evaluation pattern can be narrowed down using an information tag. For example, those having an inclination of ± 10 or more may be deleted. Alternatively, an upper limit may be set for the number of patterns for evaluation selected from the candidate pattern group, and the patterns may be deleted randomly for each class. This is to prevent the same pattern from being included in the dictionary pattern and the evaluation pattern in the pattern selection device of the second embodiment. In this case, selection may be made so that there is no bias in the number of patterns for each class or font.

また、第1および第2の実施形態は文字認識装置に用いるパターンを例に挙げて説明したが、文字以外にも、顔や指紋などの画像や音声などのパターンにも用いることが可能である。   In the first and second embodiments, the pattern used for the character recognition device has been described as an example. However, in addition to characters, it can also be used for patterns such as images and sounds such as faces and fingerprints. .

第1および第2の実施形態ではパターン認識に用いる認識辞書の作成を例としてあげたが、例えばパターン認識装置のテストに用いるテストパターンのスコアを算出することで、どのテストパターンを重要視するかを判断するようなことを行ってもよい。   In the first and second embodiments, the creation of a recognition dictionary used for pattern recognition is given as an example. For example, which test pattern is important by calculating the test pattern score used for the test of the pattern recognition device You may do something like that.

この例の場合、例えば認識されなかったテストパターンが存在した場合、そのテストパターンのスコアを算出する。 In this example, for example, when there is a test pattern that has not been recognized, the score of the test pattern is calculated.

例えばスコアの算出において距離スコアの重み付けを大きくしている場合、スコアが大きいということは非常に例外的なパターンであるということであり、そのようなパターンを正しく認識できるようにした場合、いままで正常に認識できていたテストパターンが誤認識されるなどの弊害が起きることがある。このため、スコアがあらかじめ設定された閾値を超えた場合、そのテストパターンをテストパターン集合から削除する。これにより、極端に例外的なパターンが存在するために認識率が実際以上に低く評価されることを避けることができる。 For example, when the weight of the distance score is increased in the calculation of the score, a large score means that it is a very exceptional pattern, and if such a pattern can be correctly recognized, until now Detrimental effects such as erroneous recognition of test patterns that could be recognized normally may occur. For this reason, when the score exceeds a preset threshold, the test pattern is deleted from the test pattern set. As a result, it is possible to avoid that the recognition rate is evaluated to be lower than actual because there is an extremely exceptional pattern.

また、認識されなかったテストパターンに限定する必要はなく、全てのテストパターンに対してスコアを求めて、スコアに従ってどのテストパターンを重要視するかを決定することもできる。この場合、例えば認識率を図る際に認識したパターン数、正解したパターン数を用いるところを、それぞれ認識したパターンのスコアの合計、正解したパターンのスコアの合計を用いるなどとしてもよい。 Further, it is not necessary to limit to test patterns that have not been recognized, and it is also possible to obtain scores for all the test patterns and determine which test patterns are regarded as important according to the scores. In this case, for example, using the number of recognized patterns and the number of correct patterns when the recognition rate is set may be used as the sum of the scores of the recognized patterns and the sum of the correct patterns.

なお、テストパターンのスコアを算出する際には、候補パターンとは異なり貢献度が算出できない。そのため、代わりにテストパターンの近傍10パターン中の、テストパターンと同じクラスに所属する候補パターンの割合を算出する等の、別の評価値の算出方法を用いることで代用が可能である。あるいは、貢献度として規定の値、例えば0を用いることとしてもよい。
Note that, when calculating the test pattern score, the contribution cannot be calculated unlike the candidate pattern. Therefore, it is possible to substitute by using another evaluation value calculation method such as calculating the ratio of candidate patterns belonging to the same class as the test pattern in the 10 patterns near the test pattern. Alternatively, a prescribed value, for example, 0 may be used as the contribution degree.

1…パターン選択装置、10…評価値算出部、20…スコア作成部、30…パターン選択部、40…情報記憶部、41…候補パターン情報、42…評価用パターン情報、43…評価値情報記憶部44…スコア情報記憶部45…重み付け情報、46…パターン選択基準情報 DESCRIPTION OF SYMBOLS 1 ... Pattern selection apparatus, 10 ... Evaluation value calculation part, 20 ... Score preparation part, 30 ... Pattern selection part, 40 ... Information storage part, 41 ... Candidate pattern information, 42 ... Pattern information for evaluation, 43 ... Evaluation value information storage Unit 44 ... Score information storage unit 45 ... Weighting information, 46 ... Pattern selection reference information

Claims (6)

第1のパターン群と前記第1のパターンの評価に用いられる第2のパターン群とを格納した記憶部と、
前記第2のパターンを参照して、前記第1のパターンの複数の評価値として、前記第1のパターンが前記第2のパターンをパターン認識する際の貢献度である第1の評価値、前記第1のパターンが、前記第1のパターンが所属するクラスにおける標準的なパターンであるかを評価する第2の評価値、および前記第1のパターンが前記クラス間境界付近のパターンであるかを評価する第3の評価値を算出する評価値算出部と、
算出された前記評価値と前記評価値ごとの重み付け情報とを用いて、前記第1のパターンごとのスコアを算出するスコア算出部と、
算出された前記スコアに基づいて前記第1のパターンからパターンを選択するパターン選択部と、
を備えるパターン選択装置。
A storage unit storing a first pattern group and a second pattern group used for evaluation of the first pattern;
With reference to the second pattern, as a plurality of evaluation values of the first pattern, a first evaluation value that is a contribution degree when the first pattern recognizes the second pattern, A second evaluation value for evaluating whether the first pattern is a standard pattern in a class to which the first pattern belongs, and whether the first pattern is a pattern near the boundary between classes. An evaluation value calculation unit for calculating a third evaluation value to be evaluated;
A score calculation unit that calculates a score for each of the first patterns using the calculated evaluation value and weighting information for each evaluation value;
A pattern selection unit that selects a pattern from the first pattern based on the calculated score;
A pattern selection device comprising:
前記第2のパターン群は、前記第1のパターン群の中から、パターン認識の対象に基づいて選択されたパターンである請求項1に記載のパターン選択装置。   The pattern selection apparatus according to claim 1, wherein the second pattern group is a pattern selected based on a pattern recognition target from the first pattern group. 前記パターン選択部は、前記スコア算出部が算出したスコアの高い順から規定数の前記第1のパターンを選択する請求項1乃至請求項2に記載のパターン選択装置。   The pattern selection device according to claim 1, wherein the pattern selection unit selects a prescribed number of the first patterns in descending order of the scores calculated by the score calculation unit. 前記パターン選択部で選択されたパターンからパターン認識辞書を作成する認識辞書作成部をさらに備える請求項1乃至請求項3に記載のパターン選択装置。   The pattern selection apparatus according to claim 1, further comprising a recognition dictionary creation unit that creates a pattern recognition dictionary from the pattern selected by the pattern selection unit. 第1のパターン群と前記第1のパターンの評価に用いられる第2のパターン群とを格納した記憶部を備えるパターン選択装置において、
前記第2のパターンを参照して、前記第1のパターンの複数の評価値として、前記第1のパターンが前記第2のパターンをパターン認識する際の貢献度である第1の評価値と、前記第1のパターンが、前記第1のパターンが所属するクラスにおける標準的なパターンであるかを評価する第2の評価値、および前記第1のパターンが前記クラス境界付近のパターンであるかを評価する第3の評価値を算出するステップと、
算出された前記評価値と前記評価値ごとの重み付け情報とを用いて、前記第1のパターンごとのスコアを算出するステップと、
算出された前記スコアに基づいて前記第1のパターンからパターンを選択するステップと、
を備えるパターン選択方法。
In a pattern selection device comprising a storage unit storing a first pattern group and a second pattern group used for evaluation of the first pattern,
With reference to the second pattern, as a plurality of evaluation values of the first pattern, a first evaluation value that is a contribution degree when the first pattern recognizes the second pattern; A second evaluation value for evaluating whether the first pattern is a standard pattern in a class to which the first pattern belongs; and whether the first pattern is a pattern near the class boundary. Calculating a third evaluation value to be evaluated;
Calculating a score for each of the first patterns using the calculated evaluation value and weighting information for each of the evaluation values;
Selecting a pattern from the first pattern based on the calculated score;
A pattern selection method comprising:
第1のパターン群と前記第1のパターンの評価に用いられる第2のパターン群とを格納した記憶部を備えるパターン選択装置におけるプログラムであって、
コンピュータに、
前記第2のパターンを参照して前記第1のパターンの複数の評価値して、前記第1のパターンが前記第2のパターンをパターン認識する際の貢献度である第1の評価値と、前記第1のパターンが、前記第1のパターンが所属するクラスにおける標準的なパターンであるかを評価する第2の評価値、および前記第1のパターンが前記クラス間境界付近のパターンであるかを評価する第3の評価値を算出する機能と、
算出された前記評価値と前記評価値ごとの重み付け情報とを用いて、前記第1のパターンごとのスコアを算出する機能と、
算出された前記スコアに基づいて前記第1のパターンからパターンを選択する機能と、
を実現させるプログラム。
A program in a pattern selection device including a storage unit storing a first pattern group and a second pattern group used for evaluation of the first pattern,
On the computer,
A plurality of evaluation values of the first pattern with reference to the second pattern, and a first evaluation value that is a contribution degree when the first pattern recognizes the second pattern; A second evaluation value for evaluating whether the first pattern is a standard pattern in a class to which the first pattern belongs, and whether the first pattern is a pattern near the boundary between classes. A function of calculating a third evaluation value for evaluating
A function for calculating a score for each of the first patterns using the calculated evaluation value and weighting information for each of the evaluation values;
A function of selecting a pattern from the first pattern based on the calculated score;
A program that realizes
JP2011090230A 2011-04-14 2011-04-14 PATTERN SELECTION DEVICE, PATTERN SELECTION METHOD, AND PROGRAM Active JP5319726B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011090230A JP5319726B2 (en) 2011-04-14 2011-04-14 PATTERN SELECTION DEVICE, PATTERN SELECTION METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011090230A JP5319726B2 (en) 2011-04-14 2011-04-14 PATTERN SELECTION DEVICE, PATTERN SELECTION METHOD, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2012221476A JP2012221476A (en) 2012-11-12
JP5319726B2 true JP5319726B2 (en) 2013-10-16

Family

ID=47272854

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011090230A Active JP5319726B2 (en) 2011-04-14 2011-04-14 PATTERN SELECTION DEVICE, PATTERN SELECTION METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP5319726B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6866929B2 (en) * 2017-10-13 2021-04-28 日本電気株式会社 Biometric device and biometric authentication method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3249654B2 (en) * 1993-08-31 2002-01-21 富士通株式会社 Creating a dictionary for character recognition
JP3995181B2 (en) * 1999-12-14 2007-10-24 沖電気工業株式会社 Individual identification device

Also Published As

Publication number Publication date
JP2012221476A (en) 2012-11-12

Similar Documents

Publication Publication Date Title
US20120243779A1 (en) Recognition device, recognition method, and computer program product
US20110106772A1 (en) Data processing apparatus, data processing method, program, and integrated circuit
WO2021095176A1 (en) Learning device, learning method, and recording medium
JP6897749B2 (en) Learning methods, learning systems, and learning programs
US20200042883A1 (en) Dictionary learning device, dictionary learning method, data recognition method, and program storage medium
CN115516484A (en) Method and system for maximizing risk detection coverage with constraints
US10635991B2 (en) Learning method, information processing device, and recording medium
WO2020065908A1 (en) Pattern recognition device, pattern recognition method, and pattern recognition program
JPWO2006073081A1 (en) Identification data learning system, learning device, identification device, and learning method
JP4802176B2 (en) Pattern recognition apparatus, pattern recognition program, and pattern recognition method
JP5319726B2 (en) PATTERN SELECTION DEVICE, PATTERN SELECTION METHOD, AND PROGRAM
US20220027677A1 (en) Information processing device, information processing method, and storage medium
CN113537158B (en) Image target detection method, device, equipment and storage medium
JP2021005159A (en) Information processing apparatus and program
JP2006127446A (en) Image processing apparatus, image processing method, program, and recording medium
JP2002099916A (en) Pattern-classifying method, its device, and computer- readable storage medium
US12406512B2 (en) Information processing apparatus, information processing method, computer program product, and recording medium
JP6591945B2 (en) Information terminal, information processing method, program, and information processing system
JP2016062249A (en) Identification dictionary learning system, recognition dictionary learning method and recognition dictionary learning program
US20210019554A1 (en) Information processing device and information processing method
JP6076128B2 (en) Character recognition device and character recognition method
JP2014146183A (en) Information processing device, information processing method, and program
US12573222B2 (en) Detecting reliability using augmented reality
CN119313891B (en) Target recognition method, electronic device and computer-readable storage medium
US12555364B2 (en) Information processing apparatus, information processing method, and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120910

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130607

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130614

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130711

R150 Certificate of patent or registration of utility model

Ref document number: 5319726

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350