JP2002183666A - Pattern-recognizing device, image reader, pattern- recognizing method and recording medium - Google Patents

Pattern-recognizing device, image reader, pattern- recognizing method and recording medium

Info

Publication number
JP2002183666A
JP2002183666A JP2000377731A JP2000377731A JP2002183666A JP 2002183666 A JP2002183666 A JP 2002183666A JP 2000377731 A JP2000377731 A JP 2000377731A JP 2000377731 A JP2000377731 A JP 2000377731A JP 2002183666 A JP2002183666 A JP 2002183666A
Authority
JP
Japan
Prior art keywords
pattern
category
input pattern
belongs
recognizing
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
JP2000377731A
Other languages
Japanese (ja)
Inventor
Hikari Endo
光 遠藤
Chikako Yoneyama
知加子 米山
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.)
Fujitsu Frontech Ltd
Original Assignee
Fujitsu Frontech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Frontech Ltd filed Critical Fujitsu Frontech Ltd
Priority to JP2000377731A priority Critical patent/JP2002183666A/en
Publication of JP2002183666A publication Critical patent/JP2002183666A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a new technique for recognizing a pattern, and a technology for realizing this technique. SOLUTION: A shape of an X-direction projection histogram for making a standard pattern of a character 'Large' (a Chinese character) by counting the number of black dots existing in the X direction in accordance with a position in Y direction becomes a unique shape proper to the standard pattern. The other projection histogram made by a similar technique also becomes a unique shape. The number of respective black dots counted by dividing the standard pattern into four partial areas, so as to be respectively equal in the lengths in the XY direction is different by the standard pattern. Thus, the number of black dots for these histograms and the respective partial areas is used as information for expressing a characteristic of the pattern, and a pattern belonging category is recognized.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画素に分解して読
み取られる入力パターンの属するカテゴリの認識を行う
ための技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for recognizing a category to which an input pattern read by being decomposed into pixels belongs.

【0002】[0002]

【従来の技術および発明が解決しようとする課題】入力
パターン、即ち文字や数字、記号、或いは図形などの画
像の属するカテゴリを認識するパターン認識は、様々な
分野に応用できる基本的な技術分野であり、研究・開発
が盛んに行われている。
2. Description of the Related Art Pattern recognition for recognizing input patterns, that is, categories to which images such as letters, numbers, symbols, and figures belong, is a basic technical field applicable to various fields. Yes, research and development are actively conducted.

【0003】そのパターン認識は、予め用意されている
複数の標準パターンを入力パターンと比較して、最も似
ている標準パターンを特定し、その特定した標準パター
ンが表しているカテゴリ名を入力パターンの名称として
出力することを基本としている。このため、認識の対象
とするパターンが多くなるほど、その認識に要する処理
時間が長くなるという傾向がある。そのために、パター
ン認識では、入力パターンを認識する精度の向上の他
に、処理時間の短縮も大きな技術的課題となっている。
In the pattern recognition, a plurality of standard patterns prepared in advance are compared with an input pattern to identify the most similar standard pattern, and a category name represented by the specified standard pattern is identified by the input pattern. It is basically output as a name. For this reason, the processing time required for the recognition tends to increase as the number of patterns to be recognized increases. For this reason, in the pattern recognition, in addition to improving the accuracy of recognizing an input pattern, shortening of a processing time has become a major technical problem.

【0004】パターン認識の手法としては、様々なもの
が開発されている。その手法は、例えば着眼点から、パ
ターン・マッチング法、統計的識別法、構文解析法の3
つに大別される。それらを複数、組み合わせたものも最
近では存在する。しかし、現在でも、より高精度に、或
いはより高速にといった要求を達成することに着目し
て、新たな手法の開発が行われている。
Various techniques for pattern recognition have been developed. For example, from the point of view, there are three methods: pattern matching, statistical identification, and parsing.
It is roughly divided into two. A combination of a plurality of them has recently been available. However, even now, a new method is being developed with a focus on achieving the demand for higher accuracy or higher speed.

【0005】本発明は、パターン認識を行うための新た
な手法とともに、その手法を実現させるための技術を提
供することを目的とする。
An object of the present invention is to provide a new technique for performing pattern recognition and a technique for realizing the technique.

【0006】[0006]

【課題を解決するための手段】本発明の第1〜第4の態
様のパターン認識装置は、共に、画素に分解して読み取
られた入力パターンの属するカテゴリを認識することを
前提とし、それぞれ、以下の手段を具備する。
The pattern recognition apparatuses according to the first to fourth aspects of the present invention are based on the premise that they recognize the category to which the input pattern read out after being decomposed into pixels. The following means are provided.

【0007】第1の態様のパターン認識装置は、入力パ
ターンを複数の領域に分割し、該領域毎に、画素の値が
所定範囲内となっている画素の数を計数する画素数計数
手段と、画素数計数手段が計数した領域毎の画素数の分
布状態から入力パターンの属するカテゴリの候補を特定
する候補特定手段と、候補特定手段が特定した候補を対
象に、入力パターンの属するカテゴリの認識を行うカテ
ゴリ認識手段と、を具備する。
A pattern recognition apparatus according to a first aspect divides an input pattern into a plurality of regions, and for each of the regions, counts the number of pixels having a pixel value within a predetermined range. A candidate specifying means for specifying a candidate of a category to which the input pattern belongs from the distribution state of the number of pixels for each area counted by the pixel number counting means; and a recognition of a category to which the input pattern belongs for the candidates specified by the candidate specifying means. And category recognition means for performing

【0008】第2の態様のパターン認識装置は、カテゴ
リに属する入力パターンが存在しないと考えられる領域
を基に作成された空白パターンを該カテゴリ毎に記憶し
たパターン記憶手段と、パターン記憶手段に記憶された
空白パターンを入力パターンと比較して、該入力パター
ンが属するカテゴリを認識するカテゴリ認識手段と、を
具備する。
[0008] A pattern recognition device according to a second aspect is a pattern storage means for storing, for each category, a blank pattern created based on an area in which an input pattern belonging to a category does not exist, and a pattern storage means. And a category recognizing unit that compares the blank pattern with the input pattern and recognizes a category to which the input pattern belongs.

【0009】第3の態様のパターン認識装置は、入力パ
ターンを構成する画素の位置に注目してヒストグラムを
作成するヒストグラム作成手段と、ヒストグラム作成手
段が作成したヒストグラムを基に、入力パターンの属す
るカテゴリを認識するカテゴリ認識手段と、を具備す
る。
According to a third aspect of the present invention, there is provided a pattern recognition apparatus for generating a histogram by focusing on the positions of pixels constituting an input pattern, and a category to which the input pattern belongs based on the histogram generated by the histogram generation means. Category recognizing means for recognizing.

【0010】なお、上記第3の態様のパターン認識装置
では、ヒストグラム作成手段は、予め定めた方向上の位
置別に、画素の値が所定範囲内となっている画素の数を
計数することでヒストグラムを作成する、ことが望まし
い。また、予め定めた方向として、入力パターンの縦方
向、及び横方向の何れかを少なくとも含む、ことが望ま
しい。
[0010] In the pattern recognition apparatus of the third aspect, the histogram creating means counts the number of pixels having a pixel value within a predetermined range for each position in a predetermined direction to thereby obtain a histogram. It is desirable to create. It is preferable that the predetermined direction includes at least one of the vertical direction and the horizontal direction of the input pattern.

【0011】第4の態様のパターン認識装置は、上記第
1〜第3の態様における構成に加えて、カテゴリ認識手
段が入力パターンの属するカテゴリを認識できなかった
場合に、該入力パターンの濃度を調整するための濃度調
整手段、を更に具備する。
A pattern recognition apparatus according to a fourth aspect, in addition to the configuration according to the first to third aspects, further comprises, when category recognition means cannot recognize the category to which the input pattern belongs, the density of the input pattern is determined. The apparatus further includes a density adjusting unit for adjusting.

【0012】本発明の画像読取装置は、画素に分解して
画像を読み取り、該読み取った画像中に存在するパター
ンの属するカテゴリの認識をパターン認識装置に行わせ
るものであり、画像の読み取りを行う画像読取手段と、
画像読取手段が読み取った画像中に存在するパターンの
属するカテゴリの認識をパターン認識装置に依頼する認
識依頼手段と、パターン認識装置がパターンの属するカ
テゴリを認識できなかった場合に、画像読取手段が画像
を読み取る際の濃度を調整する濃度調整手段と、を具備
する。
The image reading apparatus of the present invention reads an image by decomposing the image into pixels, and causes the pattern recognition apparatus to recognize a category to which a pattern present in the read image belongs, and reads the image. Image reading means;
A recognition requesting unit for requesting the pattern recognition device to recognize a category to which a pattern present in an image read by the image reading unit belongs; and an image reading unit for notifying the category to which the pattern belongs if the pattern recognition device cannot recognize the category to which the pattern belongs. Density adjusting means for adjusting the density when reading the image.

【0013】本発明の第1〜第3の態様のパターン認識
方法は、共に、画素に分解して読み取られた入力パター
ンの属するカテゴリを認識するための方法であり、それ
ぞれ、以下のようにしてその認識を行う。
Each of the pattern recognition methods according to the first to third aspects of the present invention is a method for recognizing a category to which an input pattern read out after being decomposed into pixels. Make that recognition.

【0014】第1の態様のパターン認識方法では、入力
パターンを複数の領域に分割して、該領域毎に、画素の
値が所定範囲内となっている画素の数を計数し、領域毎
に計数した画素数の分布状態から入力パターンの属する
カテゴリの候補を特定し、特定した候補を対象に、該候
補のなかから入力パターンの属するカテゴリを認識す
る。
In the pattern recognition method according to the first aspect, the input pattern is divided into a plurality of regions, and the number of pixels having a pixel value within a predetermined range is counted for each of the regions. A category candidate to which the input pattern belongs is specified from the distribution state of the counted number of pixels, and a category to which the input pattern belongs is recognized from the candidates with respect to the specified candidate.

【0015】第2の態様のパターン認識方法では、カテ
ゴリに属する入力パターンが存在しないと考えられる領
域を基に空白パターンを該カテゴリ別に作成し、カテゴ
リ別に作成した空白パターンを入力パターンと比較し
て、該入力パターンが属するカテゴリを認識する。
In the pattern recognition method according to the second aspect, a blank pattern is created for each category based on an area where an input pattern belonging to the category does not exist, and the blank pattern created for each category is compared with the input pattern. , The category to which the input pattern belongs is recognized.

【0016】第3の態様のパターン認識方法では、入力
パターンを構成する画素の位置に注目してヒストグラム
を作成し、作成したヒストグラムを基に、入力パターン
の属するカテゴリを認識する。
In the pattern recognition method of the third aspect, a histogram is created by focusing on the positions of the pixels constituting the input pattern, and the category to which the input pattern belongs is recognized based on the created histogram.

【0017】本発明の第1〜第3の態様の記録媒体は、
画素に分解して読み取られた入力パターンの属するカテ
ゴリを認識する装置が読み取り可能な記録媒体であっ
て、上記第1〜第3の態様のパターン認識装置の何れか
を実現させるためのプログラムを記録している。
The recording medium according to the first to third aspects of the present invention comprises:
A recording medium readable by an apparatus for recognizing a category to which an input pattern read after being decomposed into pixels, and recording a program for realizing any of the pattern recognition apparatuses according to the first to third aspects. are doing.

【0018】[0018]

【発明の実施の形態】以下、図面を参照しながら、本発
明の実施の形態につき詳細に説明する。図1は、本実施
の形態による画像読取装置、及びパターン認識装置を搭
載した帳票処理装置の概略断面図である。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a schematic sectional view of a form processing apparatus equipped with an image reading device and a pattern recognition device according to the present embodiment.

【0019】この装置は、図1に示すように、筐体に設
けられた挿入口101からバーコードや数字などが印字
された帳票(媒体)を作業員が挿入すると、それを搬送
路102に沿ってリジェクトボックス103に搬送する
ようになっている。その搬送途中で、イメージセンサ
(例えばコンタクトタイプの光学センサ)104によっ
て帳票上のイメージ(バーコードや数字、など)を読み
取り、その内容が認識できた帳票に対して印字を含む所
定の処理を施した後、リジェクトボックス103に搬送
(収納)する。ステッピングモータ107は、帳票を搬
送するうえでの動力源である。印字は、帳票とリボン1
05を特には図示しないプラテンとサーマルヘッド10
6の間に挟み込むことで圧接させ、そのリボン105と
接触しているサーマルヘッド106から熱を供給するこ
とで行うようになっている。リボン巻取モータ108
は、リボン105の巻き取りを行うためのものである。
本実施の形態による画像読取装置は、搬送される帳票上
のイメージを読み取るために搭載され、他のパターン認
識装置は、その画像読取装置が読み取ったイメージ中に
存在する数字を認識するために搭載されている。
In this apparatus, as shown in FIG. 1, when a worker inserts a form (medium) on which a barcode or a number is printed from an insertion port 101 provided in a casing, the worker inserts the form into a transport path 102. Along to the reject box 103. During the transportation, an image (barcode, numeral, etc.) on the form is read by an image sensor (for example, a contact type optical sensor) 104, and a predetermined process including printing is performed on the form whose contents have been recognized. Then, it is transported (stored) in the reject box 103. The stepping motor 107 is a power source for conveying a form. Printing is on the form and ribbon 1
05 and a platen (not shown) and the thermal head 10
6 is pressed between them so that heat is supplied from the thermal head 106 which is in contact with the ribbon 105. Ribbon winding motor 108
Is for winding the ribbon 105.
The image reading device according to the present embodiment is mounted for reading an image on a form to be conveyed, and another pattern recognition device is mounted for recognizing a digit present in the image read by the image reading device. Have been.

【0020】搬送路102上には、帳票検出用に複数の
センサ110〜114が配置されている。それらのセン
サ110〜114は、例えば発光素子、及び受光素子か
らなる光学センサである。より具体的には、例えばセン
サ110〜113はそれらの素子が搬送路102を挟む
形で対向して配置された透過型の光学センサであり、セ
ンサ114はそれらの素子が搬送路102からみて同じ
側に配置された反射型の光学センサである。それら以外
にも、カバーの開閉検出用、リボン105の検出用、及
びリジェクトボックス103の空検出用といった各種セ
ンサが配置されている。また、各種ソレノイド等も設け
られている。プラテンをサーマルヘッド106に向けて
押し付けるのにはソレノイドが用いられている。
On the transport path 102, a plurality of sensors 110 to 114 are arranged for detecting a form. The sensors 110 to 114 are optical sensors including, for example, a light emitting element and a light receiving element. More specifically, for example, the sensors 110 to 113 are transmission-type optical sensors in which those elements are opposed to each other with the transport path 102 interposed therebetween, and the sensor 114 has the same elements as viewed from the transport path 102. It is a reflection type optical sensor arranged on the side. In addition, various sensors are provided for detecting the opening and closing of the cover, detecting the ribbon 105, and detecting the empty state of the reject box 103. Also, various solenoids and the like are provided. A solenoid is used to press the platen toward the thermal head 106.

【0021】コントローラ(制御プリント板)109
は、装置全体の制御を行うものであり、外部から供給さ
れる電力によって動作する。外部装置(例えばホスト・
コンピュータ)とは、LANを通して信号のやりとりを
行う。
Controller (control printed board) 109
Controls the entire apparatus, and is operated by electric power supplied from the outside. External device (for example, host,
(Computer) and exchanges signals through a LAN.

【0022】図2は、上記コントローラ109の回路ブ
ロック図である。MPU201は、ROM202、20
3に格納されたプログラムを実行することにより、装置
全体の制御を行う。その制御は、RAM204を使用し
ながら、各種センサの検知結果や作業員の指示等に応じ
て行う。なお、ROM202に格納されたプログラム
は、主に装置を初期設定するためのものであり、他方の
ROM203に格納されたプログラムは、主に初期設定
以後の制御動作を行うためのものである。数字を認識す
るための標準パターン(標準文字)を含む各種データは
例えばROM203に格納されている。
FIG. 2 is a circuit block diagram of the controller 109. The MPU 201 has ROMs 202 and 20
3 to control the entire apparatus. The control is performed in accordance with the detection results of various sensors and the instructions of the worker while using the RAM 204. The program stored in the ROM 202 is mainly for initializing the apparatus, and the program stored in the other ROM 203 is mainly for performing control operations after the initial setting. Various data including standard patterns (standard characters) for recognizing numbers are stored in the ROM 203, for example.

【0023】ネットワークインターフェイス205は、
LAN(回線)を介して外部装置との信号のやりとりを
行うものである。バーコードや数字を読み取り、その内
容を認識して処理を行った帳票に関する情報は、このイ
ンターフェイス205を介して外部装置(例えばホスト
コンピュータ)に送られる。
The network interface 205 is
It exchanges signals with external devices via a LAN (line). Information on the form on which the barcode or the number is read and the content is recognized and processed is transmitted to an external device (for example, a host computer) via the interface 205.

【0024】内蔵I/O207は、MPU201がバー
コードデコーダ208にデータを送出する際に用いられ
る。イメージセンサ104で読み取ったバーコードの画
像認識結果、例えばバーコードを構成する各バーの種類
を示すコード列の送出には、その内蔵I/O207が用
いられる。バーコードデコーダ208は、その認識結果
(コード列)からバーコードによって表記された内容を
認識し、その認識結果をMPU201に出力する。
The built-in I / O 207 is used when the MPU 201 sends data to the barcode decoder 208. The built-in I / O 207 is used for transmitting the image recognition result of the barcode read by the image sensor 104, for example, a code string indicating the type of each bar constituting the barcode. The barcode decoder 208 recognizes the content represented by the barcode from the recognition result (code string) and outputs the recognition result to the MPU 201.

【0025】イメージセンサ104は、発光素子、多数
の受光素子を1列、或いは複数列、並べた形で構成され
たデバイス(例えばCCD)、及び駆動回路を備えたも
のである。搬送中の帳票に発光素子から射出した光を反
射させ、その反射光をデバイスの各受光素子で受光する
ことにより、帳票のイメージを1列毎、或いは複数列毎
に読み取ってそのイメージデータを出力する。そのイメ
ージデータは、画素(ドット)の値を予め設定されたし
きい値に従って2値化したものである。そのイメージデ
ータを出力する度に、割り込み信号INT5を割り込み
制御レジスタ206に出力することにより、MPU20
1にその旨を通知する。
The image sensor 104 includes a light-emitting element, a device (for example, a CCD) in which a large number of light-receiving elements are arranged in one or more rows, and a drive circuit. The light emitted from the light-emitting elements is reflected on the form being transported, and the reflected light is received by each light-receiving element of the device, so that the image of the form is read out for each row or for every plurality of rows and the image data is output. I do. The image data is obtained by binarizing the value of a pixel (dot) according to a preset threshold value. By outputting the interrupt signal INT5 to the interrupt control register 206 each time the image data is output, the MPU 20
Notify 1 to that effect.

【0026】上記駆動回路には、バーコードや数字の認
識を適切に行えるようにするために、感度調整機能が搭
載されている。その感度調整機能は、例えば画素の値を
2値化する際に参照するしきい値の設定を変更する機能
である。その感度調整機能により、読み取るイメージの
濃度を必要に応じて調整できるようにしている。なお、
イメージの濃度は、しきい値を低く設定するほど濃くな
り、2値化画像では、黒い部分と読み取られる画素が増
大する形で表れる。
The drive circuit is provided with a sensitivity adjustment function for appropriately recognizing bar codes and numerals. The sensitivity adjustment function is, for example, a function of changing a setting of a threshold value referred to when binarizing a pixel value. The sensitivity adjustment function allows the density of an image to be read to be adjusted as needed. In addition,
The density of the image becomes higher as the threshold value is set lower, and appears in the binarized image in such a manner that black portions and pixels to be read increase.

【0027】CISデータ転送回路(DMA)209
は、イメージセンサ104が帳票を読み取ることで出力
するそれのイメージデータを受け取って、MPU201
が予め指定したRAM204のエリアに転送する。MP
U201は、そのイメージデータからバーコードや数字
のイメージデータをそれぞれ抽出して(切り出して)認
識を行う。バーコードでは、それを構成する各バーの種
類の認識を行い、その認識結果(コード列)をバーコー
ドデコーダ208に送る。数字では、各数字毎に、それ
が属するカテゴリを認識し、その認識結果を用いて所定
の処理を行う。認識できなかった数字が存在している場
合には、イメージセンサ104の感度の調整を行い、帳
票をイメージセンサ104で読み取る位置にまで戻して
イメージの再読み取りを行う。その一方では、帳票上に
形成された、印字を行うべき位置を示す所定のマーク、
例えば枠の位置の検出を行い、その検出結果から印字開
始位置を設定する。
CIS data transfer circuit (DMA) 209
Receives the image data output by the image sensor 104 reading the form, and
Transfer to an area of the RAM 204 designated in advance. MP
The U201 performs recognition by extracting (cutting out) bar code and numeric image data from the image data. In the barcode, the type of each bar constituting the barcode is recognized, and the recognition result (code sequence) is sent to the barcode decoder 208. For numbers, the category to which each number belongs is recognized, and a predetermined process is performed using the recognition result. If there is a number that could not be recognized, the sensitivity of the image sensor 104 is adjusted, the form is returned to the position where the image sensor 104 reads the image, and the image is read again. On the other hand, a predetermined mark that is formed on a form and indicates a position where printing should be performed,
For example, the position of the frame is detected, and the print start position is set based on the detection result.

【0028】CIS I/F210は、MPU201と
イメージセンサ104との間で信号のやりとりを仲介す
る。MPU201は、そのI/F210を介して、帳票
の読み取りを指示する。
The CIS I / F 210 mediates the exchange of signals between the MPU 201 and the image sensor 104. The MPU 201 instructs reading of a form via the I / F 210.

【0029】MPU210は、RAM204に帳票に印
字すべき情報(例えば日付)のイメージデータを用意す
る。サーマルヘッドデータ転送回路211には、そのイ
メージデータを格納したRAM204のエリアの初期
(先頭)アドレスや転送サイズなどを送ることにより、
そのイメージデータをサーマルヘッド駆動回路213に
転送させる。
The MPU 210 prepares image data of information (for example, a date) to be printed on a form in the RAM 204. By sending the initial (head) address and transfer size of the area of the RAM 204 storing the image data to the thermal head data transfer circuit 211,
The image data is transferred to the thermal head drive circuit 213.

【0030】サーマルヘッド106には、例えば発熱素
子が1列に並べた形で設けられている。サーマルヘッド
駆動回路213は、転送されてきたイメージデータに従
ってサーマルヘッド106を駆動することにより、1列
単位で帳票上に印字を行い、1列の印字が終了する度
に、割り込み信号INT6を割り込み制御レジスタ20
6に出力して、MPU201にその旨を通知する。
The thermal head 106 is provided with, for example, heating elements arranged in a line. The thermal head drive circuit 213 drives the thermal head 106 in accordance with the transferred image data to perform printing on a form in units of one row, and controls the interrupt signal INT6 every time printing of one row is completed. Register 20
6 to notify the MPU 201 of the fact.

【0031】内蔵I/O212は、MPU201がサー
マルヘッド駆動回路213にコマンドを送出する際に用
いられる。MPU201は、基本的には、帳票のイメー
ジデータから検出した、印字情報(例えば日付)を印字
すべき枠の位置に応じて印字を指示するコマンドを送出
するタイミングを決定し、その決定したタイミングでそ
のコマンドを内蔵I/O212に送出する。また、必要
に応じて、印字濃度を指定するコマンドを送出すること
により、帳票上に印字される情報の濃淡の調整を行う。
The built-in I / O 212 is used when the MPU 201 sends a command to the thermal head drive circuit 213. The MPU 201 basically determines the timing of transmitting a command for instructing printing in accordance with the position of a frame on which printing information (for example, a date) detected from image data of a form is to be printed, and at the determined timing. The command is sent to the built-in I / O 212. Further, if necessary, a command for designating the print density is transmitted to adjust the density of information printed on the form.

【0032】4つの入出力レジスタ214〜217は、
ステッピングモータ駆動回路219、DCモータ駆動回
路220、及び他の駆動回路群221とMPU201間
でデータのやりとり、或いはMPU201からの指示内
容の伝達に使用される。ステッピングモータ駆動回路2
19はステッピングモータ107の駆動用、DCモータ
駆動回路220はリボン巻取モータ108の駆動用であ
る。他の駆動回路群221は、各種センサの駆動回路、
各種ソレノイドの駆動回路、各種ボタン類の操作検出回
路等をまとめて表したものである。それらの回路のうち
で、センサから出力された信号は、内蔵ADC218に
よってそのレベルに応じたデジタル値に変換された後、
入出力レジスタ214〜217のうちの何れかに格納さ
れる。
The four input / output registers 214 to 217 are
It is used for exchanging data between the stepping motor drive circuit 219, the DC motor drive circuit 220, and the other drive circuit group 221 and the MPU 201, or transmitting instruction contents from the MPU 201. Stepping motor drive circuit 2
19 is for driving the stepping motor 107, and the DC motor drive circuit 220 is for driving the ribbon winding motor 108. Other drive circuit groups 221 include drive circuits for various sensors,
This diagram collectively shows a drive circuit for various solenoids, an operation detection circuit for various buttons, and the like. Among the circuits, the signal output from the sensor is converted into a digital value according to the level by the built-in ADC 218,
It is stored in any of the input / output registers 214 to 217.

【0033】MPU201は、それらレジスタ214〜
217のうちの何れかに格納されたセンサ出力信号のデ
ジタル値を参照して、装置の制御に反映させる。また、
割り込み制御レジスタ206の内容を参照して、帳票の
搬送や印字の制御を行う。
The MPU 201 has these registers 214 to
Reference is made to the digital value of the sensor output signal stored in any one of 217 and is reflected in the control of the device. Also,
With reference to the contents of the interrupt control register 206, control of the conveyance and printing of the form is performed.

【0034】以上の構成において、その動作を説明す
る。ここでは、便宜的に帳票への処理に注目して、始め
に基本的な動作を説明することにする。作業員が帳票を
挿入口101から装置内に挿入すると、センサ110が
それを検知して、それの出力信号が変化する。その出力
信号は、内蔵ADC218によってデジタル値に変換さ
れた後、入出力レジスタ214〜217の何れかに格納
される。そのようにして入出力レジスタ214〜217
の何れかに格納されたセンサ110の出力信号のデジタ
ル値を参照することにより、MPU201は装置内に帳
票が挿入されたことを認識し、それの搬送を開始する。
その搬送は、入出力レジスタ214〜217の何れかを
介してステッピングモータ駆動回路219に、ステッピ
ングモータ107の駆動を指示することで行われる。ス
テッピングモータ107を駆動する際の条件(パルス周
波数、及びパルス数等)は、その際に指定する。
The operation of the above configuration will be described. Here, the basic operation will be described first, focusing on the processing on the form for convenience. When a worker inserts a form into the apparatus from the insertion slot 101, the sensor 110 detects it and the output signal changes. The output signal is converted into a digital value by the built-in ADC 218 and then stored in one of the input / output registers 214 to 217. Thus, the input / output registers 214 to 217
By referring to the digital value of the output signal of the sensor 110 stored in any of the above, the MPU 201 recognizes that the form has been inserted into the apparatus, and starts transporting the form.
The conveyance is performed by instructing the stepping motor drive circuit 219 to drive the stepping motor 107 via any of the input / output registers 214 to 217. The conditions (pulse frequency, pulse number, etc.) for driving the stepping motor 107 are specified at that time.

【0035】挿入口101から搬送を開始した帳票は、
次にセンサ111によって検知される。MPU201
は、そのセンサ111が帳票を検知するのを待って、C
ISI/F210を介してイメージセンサ104に帳票
のイメージの読み取りを指示する。その読み取りの指示
は、例えばセンサ112が帳票を検知しなくなるのを待
って解除する。イメージセンサ104に帳票のイメージ
を読み取らせている間は、ステッピングモータ駆動回路
219がステッピングモータ107を駆動する条件をイ
メージ読み取り用のそれに変更する。それにより、イメ
ージセンサ104が割り込み信号INT5を出力する度
に、それが読み取った列(ライン)分ずつ、帳票を搬送
させる。
The form that has started to be conveyed from the insertion slot 101 is
Next, it is detected by the sensor 111. MPU201
Waits for the sensor 111 to detect the form,
It instructs the image sensor 104 to read a form image via the ISI / F 210. The reading instruction is released after the sensor 112 stops detecting the form, for example. While the image sensor 104 is reading the image of the form, the stepping motor drive circuit 219 changes the conditions for driving the stepping motor 107 to those for image reading. Thus, each time the image sensor 104 outputs the interrupt signal INT5, the form is transported by the number of columns (lines) read by the image sensor 104.

【0036】イメージセンサ104が読み取って出力す
る帳票のイメージデータは、CISデータ転送回路20
9によってRAM204に転送される。MPU201
は、そのイメージデータから、帳票上に印字されたバー
コードや数字のイメージデータをそれぞれ切り出して認
識を行う。バーコードでは、それを構成する各バーの種
類の認識を行い、その認識結果をバーコードデコーダ2
08に送り、バーコードの内容の認識を行わせる。数字
では、各数字毎に、後述するようにして、それが属する
カテゴリを認識し、その認識結果を用いて所定の処理を
行う。認識できなかった数字が存在している場合には、
感度調整を指示するコマンドをイメージセンサ104に
送って感度の設定を変更した後、イメージセンサ104
で読み取る位置にまで帳票を逆搬送(挿入口101に向
けて搬送)してイメージの再読み取りを行う。また、印
字箇所を示す枠の位置を検出して、その枠の内側に印字
すべき情報を印字できるように、搬送方向上、及びそれ
の直交方向(以降、搬送直交方向と呼ぶ)上における印
字開始位置を決定する。
The form image data read and output by the image sensor 104 is transferred to the CIS data transfer circuit 20.
9 to the RAM 204. MPU201
Performs recognition by cutting out bar code and numeric image data printed on a form from the image data. In the barcode, the type of each bar constituting the barcode is recognized, and the recognition result is transmitted to the barcode decoder 2.
08 to make it recognize the contents of the barcode. As described later, for each numeral, a category to which the numeral belongs is recognized, and a predetermined process is performed using the recognition result. If there are numbers that could not be recognized,
After a command to instruct sensitivity adjustment is sent to the image sensor 104 to change the sensitivity setting, the image sensor 104
The document is reversely conveyed (conveyed toward the insertion slot 101) to the position to be read in step, and the image is read again. In addition, the position of the frame indicating the printing position is detected, and the information to be printed inside the frame is printed so that the information to be printed can be printed inside the frame in the transport direction and the orthogonal direction thereof (hereinafter, referred to as the transport orthogonal direction). Determine the starting position.

【0037】数字を全て認識でき、更にデコーダ208
がバーコードの内容を認識できた場合、MPU201
は、帳票をリジェクトボックス103に向けて搬送す
る。デコーダ208がバーコードの内容を認識できなか
った場合には、帳票を逆搬送(挿入口101に向けて搬
送)させ、挿入口101に帳票を搬送する。それによ
り、作業員に帳票の確認を行わせる。
All numbers can be recognized, and the decoder 208
Is able to recognize the contents of the barcode, the MPU 201
Transports the form toward the reject box 103. When the decoder 208 cannot recognize the contents of the barcode, the form is reversely conveyed (conveyed toward the insertion slot 101), and the form is conveyed to the insertion slot 101. This causes the worker to confirm the form.

【0038】リジェクトボックス103に向けて搬送さ
せた帳票は、次にセンサ113によって検知され、例え
ばその位置、或いは付近(以降、便宜的に一時停止位置
と呼ぶ)で搬送が一時、停止される。MPU201は、
センサ113が帳票を検知すると、例えば他の駆動回路
群221中のソレノイド用の駆動回路を駆動することに
より、センサ113から先の搬送路102にステッピン
グモータ107の動力が伝達される状態にさせて、その
先への搬送を所定のタイミングで開始する。その搬送
は、始めに、決定した帳票上の印字開始位置(搬送方向
上の印字開始位置)にサーマルヘッド106が印字でき
る位置まで行う。その位置まで搬送すると、プラテン押
圧用のソレノイドを他の駆動回路群221中のそれに対
応する駆動回路により駆動させて、プラテンとサーマル
ヘッド106とで挟み込んで帳票とリボン105を圧接
させる。それにより、印字が行える状態にする。
The form conveyed toward the reject box 103 is next detected by the sensor 113, and the conveyance is temporarily stopped, for example, at or near that position (hereinafter referred to as a temporary stop position for convenience). The MPU 201
When the sensor 113 detects the form, for example, by driving a solenoid driving circuit in the other driving circuit group 221, the power of the stepping motor 107 is transmitted from the sensor 113 to the preceding conveyance path 102. , The conveyance to the destination is started at a predetermined timing. The transport is first performed to a position where the thermal head 106 can print at the determined print start position on the form (print start position in the transport direction). When the platen is conveyed to that position, the solenoid for pressing the platen is driven by the corresponding drive circuit in the other drive circuit group 221, and is sandwiched between the platen and the thermal head 106 to press the form and the ribbon 105 into pressure. As a result, the printing is made ready.

【0039】その後は、サーマルヘッドデータ転送回路
211に最初の列のイメージデータを転送させ、内蔵I
/O212を介してサーマルヘッド駆動回路213にサ
ーマルヘッド106の駆動を指示する。それにより、印
字開始位置から情報の印字を行わせる。
Thereafter, the thermal head data transfer circuit 211 is caused to transfer the image data of the first column,
An instruction to drive the thermal head 106 is issued to the thermal head drive circuit 213 via / O212. Thereby, the information is printed from the print start position.

【0040】サーマルヘッド駆動回路213がサーマル
ヘッド106を駆動して割り込み信号INT6を出力す
ると、印字を行った列分だけ帳票を搬送させ、データ転
送回路211に次の列のイメージデータを転送させる。
そのようにして、サーマルヘッド106を用いた印字が
終了するまでの間、MPU201は、イメージデータの
転送→サーマルヘッド106の駆動→帳票の搬送→イメ
ージデータの転送、というサイクルの動作を繰り返し行
わせる。なお、1回のサーマルヘッド106の駆動によ
って印字が行われた列分の帳票の搬送は、その列分のパ
ルス数を含む駆動条件をステッピングモータ駆動回路2
19に出力することで実現される。
When the thermal head drive circuit 213 drives the thermal head 106 and outputs the interrupt signal INT6, the thermal head 106 drives the thermal head 106 to convey the form by the number of columns on which printing has been performed, and causes the data transfer circuit 211 to transfer the image data of the next column.
In this way, until printing using the thermal head 106 is completed, the MPU 201 repeatedly performs the operation of the cycle of transferring the image data → driving the thermal head 106 → transporting the form → transferring the image data. . It should be noted that the conveyance of the form for the row on which printing was performed by one drive of the thermal head 106 is performed by changing the driving conditions including the number of pulses for the row to the stepping motor driving circuit 2.
19 is realized.

【0041】印字は、最後の列のイメージデータをサー
マルヘッド駆動回路213に転送してサーマルヘッド1
06を駆動させ、その駆動回路213が割り込み信号I
NT6を出力したのを確認することで完了する。帳票
は、印字を完了させた後にリジェクトボックス103に
搬送して収納させる。その格納により、挿入口101か
ら挿入された帳票に対する処理が完了する。
For printing, the image data of the last column is transferred to the thermal head driving circuit 213 and
06 is driven and its driving circuit 213 outputs the interrupt signal I
It is completed by confirming that NT6 has been output. The form is conveyed and stored in the reject box 103 after printing is completed. By the storage, the processing for the form inserted from the insertion slot 101 is completed.

【0042】本実施の形態では、以下のようにして、イ
メージセンサ104によって読み取った数字(入力パタ
ーン)の認識を行っている。図3〜図18に示す説明図
を参照して詳細に説明する。なお、その認識は、イメー
ジデータ中から切り出して正規化といった前処理を施し
た数字を対象に行う。イメージセンサ104で読み取っ
た数字については、以降、便宜的にスキャナ読取文字と
も呼ぶことにする。
In the present embodiment, the digits (input patterns) read by the image sensor 104 are recognized as follows. This will be described in detail with reference to the explanatory diagrams shown in FIGS. Note that the recognition is performed on numbers that have been cut out from image data and subjected to preprocessing such as normalization. The numbers read by the image sensor 104 are hereinafter also referred to as scanner read characters for convenience.

【0043】図3、及び図4は、文字パターンから抽出
する特徴を説明するための図である。図3は、文字
「大」の標準パターンを例にとって、それから抽出した
特徴を表したものであり、他方の図4は、文字「小」の
標準パターンを例にとって、それから抽出した特徴を表
したものである。始めに、図3、及び図4を参照して、
認識のために文字パターンから抽出する特徴について詳
細に説明する。
FIGS. 3 and 4 are diagrams for explaining features extracted from character patterns. FIG. 3 illustrates the features extracted from the standard pattern of the character “large” as an example, and FIG. 4 illustrates the features extracted from the standard pattern of the character “small” as an example. Things. First, referring to FIGS. 3 and 4,
Features extracted from the character pattern for recognition will be described in detail.

【0044】ROM203に格納されている標準パター
ンは、24×24ドットの領域に、ドット(画素)の値
が1である黒ドット(図中、黒く塗りつぶされた丸)を
展開(配置)して作成されたものである。文字「大」の
標準パターンは、図3(a)に示すように黒ドットが展
開されている。なお、ドットの位置は、左上隅のドット
を基準、即ちその位置を(0,0)として表現すること
にする。その基準とするドットについては、基準ドット
と呼ぶことにする。
The standard pattern stored in the ROM 203 is obtained by developing (arranging) a black dot having a dot (pixel) value of 1 (a black solid circle in the figure) in a 24 × 24 dot area. It was created. In the standard pattern of the character “large”, black dots are developed as shown in FIG. The position of the dot is based on the dot at the upper left corner, that is, the position is expressed as (0, 0). The reference dot is referred to as a reference dot.

【0045】図3(b)は、図3(a)に示す標準パタ
ーンから作成されるX方向(正規化したパターンにおけ
る横方向)の投影ヒストグラムである。X方向の投影と
は、Y方向(正規化したパターンにおける縦方向)上の
位置別に、X方向上に存在する黒ドットの数を計数する
ことで作成されたヒストグラムであるということを表し
ている。図3(c)は、図3(a)に示す標準パターン
から作成されるY方向の投影ヒストグラムである。Y方
向の投影とは、X方向上の位置別に、Y方向上に存在す
る黒ドットの数を計数することで作成されたヒストグラ
ムであるということを表している。X方向の投影、及び
Y方向の投影とは、特に断らない限り、以降もその意味
で用いる。
FIG. 3B is a projection histogram in the X direction (horizontal direction in the normalized pattern) created from the standard pattern shown in FIG. 3A. The projection in the X direction represents a histogram created by counting the number of black dots existing in the X direction for each position in the Y direction (vertical direction in the normalized pattern). . FIG. 3C is a projection histogram in the Y direction created from the standard pattern shown in FIG. The projection in the Y direction indicates that it is a histogram created by counting the number of black dots existing in the Y direction for each position in the X direction. The projection in the X direction and the projection in the Y direction will be used in the same meaning hereinafter unless otherwise specified.

【0046】図3(d)は、図3(a)に示す標準パタ
ーンのX方向上の右側部分の投影ヒストグラムである。
図3(e)は、その標準パターンの下側部分のY方向の
投影ヒストグラムである。ここで、右側部分とは、標準
パターンをY方向に沿って、X方向上の長さ(幅)が等
しい4つの部分領域に分割した場合に、最も右に位置し
ている部分領域のことである。他方の下側部分とは、標
準パターンをX方向に沿って、Y方向上の長さ(高さ)
が等しい4つの部分領域に分割した場合に、最も下に位
置している部分領域のことである。それ以外としては、
特に断らない限り、左側部分とは、標準パターンをY方
向に沿って、X方向上の長さ(幅)が等しい4つの部分
領域に分割した場合に、最も左に位置している部分領域
を指し、上側部分とは、標準パターンをX方向に沿っ
て、Y方向上の長さ(高さ)が等しい4つの部分領域に
分割した場合に、最も上に位置している部分領域のこと
を指す意味で用いることにする。
FIG. 3D is a projection histogram of the right side of the standard pattern shown in FIG. 3A in the X direction.
FIG. 3E is a projection histogram of the lower part of the standard pattern in the Y direction. Here, the right side portion is the rightmost partial region when the standard pattern is divided into four partial regions having the same length (width) in the X direction along the Y direction. is there. The other lower part is the length (height) of the standard pattern in the Y direction along the X direction.
Is the lowermost partial region when divided into four equal partial regions. Otherwise,
Unless otherwise specified, the left part means the leftmost partial area when the standard pattern is divided along the Y direction into four partial areas having the same length (width) in the X direction. The upper part refers to the uppermost partial area when the standard pattern is divided along the X direction into four partial areas having the same length (height) in the Y direction. I will use it in the meaning of pointing.

【0047】図3(a)に示す標準パターンを、XY方
向上の長さがそれぞれ等しいように4つの部分領域に分
割すると、各部分領域内に存在する黒ドットの数は、図
3(f)に示すようになる。なお、そのようにして分け
た4つの部分領域については、以降、その位置に応じ
て、左上領域、右上領域、左下領域、及び右下領域とそ
れぞれ呼ぶことにする。その4つの部分領域に分割され
る元の領域については、便宜的に以降、全体領域と呼ぶ
ことにする。
When the standard pattern shown in FIG. 3A is divided into four partial areas so that the lengths in the XY directions are equal to each other, the number of black dots existing in each partial area becomes as shown in FIG. ). The four partial areas thus divided are hereinafter referred to as an upper left area, an upper right area, a lower left area, and a lower right area, respectively, according to their positions. The original area divided into the four partial areas is hereinafter referred to as an entire area for convenience.

【0048】一方、図4(a)に示す文字「小」の標準
パターンでは、Y方向の投影ヒストグラムは図4(b)
に示すようになり、X方向の投影ヒストグラムは図4
(c)に示すようになる。上側部分のY方向の投影ヒス
トグラムは図4(d)に示すようになる。図4(a)に
示す標準パターンを4つの部分領域に分割すると、各領
域内に存在する黒ドットの数は図4(e)に示すように
なる。
On the other hand, in the standard pattern of the character "small" shown in FIG. 4A, the projection histogram in the Y direction is shown in FIG.
The projection histogram in the X direction is shown in FIG.
The result is as shown in FIG. The projection histogram of the upper part in the Y direction is as shown in FIG. When the standard pattern shown in FIG. 4A is divided into four partial areas, the number of black dots existing in each area becomes as shown in FIG.

【0049】図3(b)〜(e)、及び図4(b)〜
(d)から明らかなように、上述したようにして、黒ド
ットの存在する位置に着目して作成したヒストグラムは
ユニークな形状となる。このことから、本実施の形態で
は、そのようなヒストグラムはパターン(文字)の特徴
を表す情報として認識に利用している。
FIGS. 3 (b) to 3 (e) and FIGS. 4 (b) to 4 (b)
As is clear from (d), the histogram created focusing on the position where the black dot exists as described above has a unique shape. For this reason, in the present embodiment, such a histogram is used for recognition as information representing the characteristics of a pattern (character).

【0050】また、図3(f)、及び図4(e)から明
らかなように、4つに分割した各部分領域内に存在する
黒ドット数、及びそれらの間の比も、パターンによって
異なる。例えば文字「大」の標準パターンでは部分領域
間における黒ドット数の差が比較的に小さいのに対し、
文字「小」の標準パターンでは、右下領域内に存在する
黒ドットが他と比較して明らかに少なくなっている。こ
のことから、本実施の形態では、各部分領域内の黒ドッ
ト数の分布状態もパターン(文字)の特徴を表す情報と
して認識に利用している。なお、その情報を用いた認識
は、比較的に処理が軽い、高精度の認識が困難、といっ
た理由から、入力パターンの属するカテゴリの候補を特
定するために行っている。それにより、上記ヒストグラ
ムによる認識に先だって行っている。
Further, as is apparent from FIGS. 3F and 4E, the number of black dots present in each of the four divided partial areas and the ratio between them also differ depending on the pattern. . For example, in the standard pattern of the character "Large", the difference in the number of black dots between partial areas is relatively small,
In the standard pattern of the character "small", the number of black dots existing in the lower right area is clearly smaller than the others. For this reason, in the present embodiment, the distribution state of the number of black dots in each partial area is also used for recognition as information representing the characteristics of a pattern (character). Recognition using the information is performed in order to specify a category candidate to which the input pattern belongs, because the processing is relatively light and high-precision recognition is difficult. Thereby, the recognition is performed prior to the recognition using the histogram.

【0051】本実施の形態では、数字を対象にその認識
を行うようになっている。図5は、各数字の標準パター
ンから抽出された特徴を説明する図である。その図5に
おいて、XはX方向の投影、YはY方向の投影をそれぞ
れ表している。なお、標準パターンは、24×24ドッ
トの領域に黒ドットを展開(配置)して作成されたもの
である。
In the present embodiment, the recognition is performed for numbers. FIG. 5 is a diagram for explaining features extracted from the standard pattern of each numeral. In FIG. 5, X represents projection in the X direction, and Y represents projection in the Y direction. The standard pattern is created by developing (arranging) black dots in a 24 × 24 dot area.

【0052】図5に示すように、本実施の形態では、数
字「0」〜「9」の各標準パターン毎に認識用の特徴を
抽出するようになっている。具体的には、ヒストグラム
としては、全体(全体領域)の他に、それを右側部分、
左側部分、上側部分、及び下側部分の4つの部分領域に
分けて、それぞれ、X方向の投影ヒストグラム、及びY
方向の投影ヒストグラムを作成している。黒ドット分布
としては、図3(f)、及び図4(e)と同じく、左上
領域、左下領域、右上領域、及び右下領域の各部分領域
毎に、その部分領域内に存在する黒ドットの数を計数し
ている。
As shown in FIG. 5, in this embodiment, features for recognition are extracted for each standard pattern of numbers "0" to "9". Specifically, as the histogram, besides the whole (entire area),
The projection histogram in the X direction is divided into four partial areas, that is, a left part, an upper part, and a lower part.
The projection histogram of the direction is created. As shown in FIG. 3 (f) and FIG. 4 (e), the black dot distribution includes, for each of the upper left area, lower left area, upper right area, and lower right area, a black dot existing in the partial area. Is counted.

【0053】数字「0」〜「9」のなかで数字「1」
「4」「7」は、全体領域のX方向の投影ヒストグラム
の形状が他と大きく異なっている。数字「2」は、数字
「3」や「5」と類似しているように見える。しかし、
数字「3」や「5」とは異なり、Y方向における中央付
近で折り返すような折れ曲がった線が存在しないため、
その中央付近の黒ドット数が数字「3」や「5」のそれ
よりも少なくなっている。このため、数字「2」は、全
体領域のX方向の投影ヒストグラムから認識することが
できる。数字「6」では下部分、数字「9」では上部分
にループ状の線が存在しているため、Y方向上におい
て、そのループ状の線が形成されている部分とそうでな
い部分とでは、全体的な黒ドット数に明確な差が生じて
いる。このことから、数字「6」及び「9」も、全体領
域のX方向の投影ヒストグラムから認識することができ
る。従って、全体領域のX方向の投影ヒストグラムから
認識するのが困難なのは、数字「0」「3」「5」及び
「8」ということになる。数字「0」は数字「8」と区
別し難く、数字「3」は数字「5」と区別し難い。
The number "1" among the numbers "0" to "9"
“4” and “7” are significantly different from the others in the shape of the projection histogram in the X direction of the entire area. The number "2" appears to be similar to the numbers "3" and "5". But,
Unlike the numbers "3" and "5", there is no bent line that wraps around the center in the Y direction,
The number of black dots near the center is smaller than that of the numbers “3” and “5”. Therefore, the number “2” can be recognized from the projection histogram in the X direction of the entire area. Since a loop-shaped line exists in the lower part of the number “6” and in an upper part of the number “9”, in the Y direction, the portion where the loop-shaped line is formed and the portion where it is not are: There is a clear difference in the total number of black dots. From this, the numbers “6” and “9” can also be recognized from the projection histogram in the X direction of the entire area. Therefore, what is difficult to recognize from the projection histogram in the X direction of the entire area is the numbers “0”, “3”, “5”, and “8”. The number “0” is difficult to distinguish from the number “8”, and the number “3” is difficult to distinguish from the number “5”.

【0054】数字「8」は、数字「0」とは異なり、X
及びY方向上の中央付近でラインが交差するパターンで
ある。このため、X方向上の中央付近の黒ドット数は、
全体的に数字「0」のそれよりも多くなっている。右部
分や左部分では、Y方向上の中央付近の黒ドット数が局
所的に少なくなっているという数字「0」にはない特徴
が表れている。このことから、数字「8」及び「0」
は、最終的に、全体領域のY方向の投影ヒストグラム、
右部分のX方向の投影ヒストグラム、或いは左部分のX
方向の投影ヒストグラムから認識することができる。
The number “8” is different from the number “0”,
And a pattern in which lines intersect near the center in the Y direction. Therefore, the number of black dots near the center in the X direction is
Overall, it is more than that of the number "0". In the right part and the left part, the number of black dots near the center in the Y direction is locally reduced, which is a feature that is not in the number “0”. From this, the numbers "8" and "0"
Is finally the projection histogram in the Y direction of the whole area,
X-direction projection histogram in right part or X in left part
The direction can be recognized from the projection histogram.

【0055】数字「3」及び「5」については、数字
「3」及び「5」は共に、上部に横線を持つパターンで
あるが、数字「3」ではその横線の右側に線が続いてい
るのに対し、数字「5」では逆に左側に線が続いてい
る。このため、上部分のY方向の投影ヒストグラムに
は、その違いによって形状に明らかな差が生じている。
このことから、数字「3」及び「5」は、上部分のY方
向の投影ヒストグラムから認識することができる。
Regarding the numbers "3" and "5", the numbers "3" and "5" are both patterns having a horizontal line at the top, but a line continues to the right of the horizontal line in the number "3". On the other hand, in the case of the number “5”, a line continues to the left. For this reason, the shape of the upper part projection histogram in the Y direction has a clear difference due to the difference.
From this, the numbers “3” and “5” can be recognized from the projection histogram in the Y direction of the upper part.

【0056】上述したことから明らかなように、パター
ンから作成するヒストグラムを比較することにより、言
い換えれば、パターンを操作して別のパターンを新たに
作成し、その作成したパターンを比較することにより、
パターンの認識を行うことができる。本実施の形態で
は、入力パターンの属するカテゴリを仮定する(候補を
特定する)形でヒストグラムをパターンの認識に用いて
いる。
As is apparent from the above, by comparing the histograms created from the patterns, in other words, by manipulating the patterns to create another new pattern and comparing the created patterns,
Pattern recognition can be performed. In the present embodiment, a histogram is used for pattern recognition in a manner that assumes a category to which an input pattern belongs (specifies a candidate).

【0057】なお、ヒストグラムの作成方法としては、
上述したようなものに限定されるものではない。ヒスト
グラムを作成するうえでの全体領域の分割の仕方、作成
の対象となる部分領域などを含め、様々な変形を行うこ
とができる。入力パターンの属するカテゴリを仮定する
のであれば、多くのヒストグラムを作成しなくても良
い。
As a method for creating a histogram,
It is not limited to the above. Various modifications can be made, including how to divide the entire area when creating the histogram, the partial area to be created, and the like. If the category to which the input pattern belongs is assumed, it is not necessary to create many histograms.

【0058】一方、黒ドット分布(全体領域を4つの部
分領域に分割した際の各部分領域の黒ドット数)でも、
数字によって他と明確な違いが生じている。例えば数字
「1」では、左下領域に黒ドットが存在しないという他
の数字にはない特徴がある。数字「7」では右下領域に
黒ドットが存在しないという他の数字にはない特徴があ
る。このため、それらの数字「1」及び「7」について
は、黒ドット分布から認識することができる。
On the other hand, in the black dot distribution (the number of black dots in each partial area when the entire area is divided into four partial areas),
The numbers make a clear difference. For example, the numeral “1” has a feature that no black dot exists in the lower left area, which is not found in other numerals. The numeral "7" has a characteristic that no black dot exists in the lower right area, which is not found in other numerals. Therefore, those numbers “1” and “7” can be recognized from the black dot distribution.

【0059】他の数字では、数字「0」及び「8」で
は、各部分領域の黒ドット数に大きな差がないという特
徴がある。数字「2」では左上領域、及び右下領域の黒
ドット数が他の部分領域のそれと比較して少ないという
特徴がある。数字「3」では、左下領域の黒ドット数が
他の部分領域のそれと比較して少ないという特徴があ
る。右上領域の黒ドット数については、数字「5」のそ
れと比較して少ないという特徴がある。数字「4」で
は、右上領域の黒ドット数が他の部分領域のそれと比較
して非常に少ないという特徴がある。数字「5」では、
左下領域の黒ドット数が他の部分領域と比較して少な
く、左上領域の黒ドット数が最も多いといった特徴があ
る。数字「6」では、右上領域の黒ドット数が他の部分
領域のそれと比較して少ないという特徴がある。数字
「9」では、上側に位置する左上領域、及び右上領域の
黒ドット数が、下側に位置する左下領域、及び右下領域
のそれよりも多いという特徴がある。
As for other numbers, the numbers "0" and "8" are characterized in that there is no large difference in the number of black dots in each partial area. The number "2" is characterized in that the number of black dots in the upper left area and the lower right area is smaller than that in other partial areas. The number "3" is characterized in that the number of black dots in the lower left area is smaller than that in other partial areas. The number of black dots in the upper right area is smaller than that of the number “5”. The number "4" has a feature that the number of black dots in the upper right area is very small as compared with that of the other partial areas. In the number "5",
There is a feature that the number of black dots in the lower left area is smaller than that of other partial areas, and the number of black dots in the upper left area is largest. The numeral "6" has a feature that the number of black dots in the upper right area is smaller than that in the other partial areas. The numeral "9" is characterized in that the number of black dots in the upper left area and the upper right area located on the upper side is larger than that in the lower left area and the lower right area located on the lower side.

【0060】このように、各数字には、黒ドット分布に
上述したような特徴が存在する。このため、黒ドット分
布から入力パターン(数字)の属するカテゴリとして考
えられる候補を特定したり、入力パターンによっては属
するカテゴリを特定することができる。その特定は、入
力パターンを部分領域に分割し、各部分領域毎に黒ドッ
ト数を計数して、それを標準パターンのそれと比較する
ことで行うことができる。
As described above, each numeral has the above-described characteristics in the black dot distribution. For this reason, it is possible to specify a candidate considered as a category to which the input pattern (number) belongs from the black dot distribution, or to specify a category to which the input pattern belongs depending on the input pattern. The identification can be performed by dividing the input pattern into partial areas, counting the number of black dots for each partial area, and comparing the number with that of the standard pattern.

【0061】なお、黒ドット分布から特定する候補は、
入力パターンが数字「0」であれば、例えば数字「0」
及び「8」である。以下、同様に、入力パターンが数字
「1」であれば例えば数字「1」であり、入力パターン
が数字「2」であれば例えば数字「2」であり、入力パ
ターンが数字「3」であれば例えば数字「3」「5」及
び「9」であり、入力パターンが数字「4」であれば例
えば数字「4」であり、入力パターンが数字「5」であ
れば例えば数字「3」「5」及び「9」であり、入力パ
ターンが数字「6」であれば例えば数字「6」であり、
入力パターンが数字「7」であれば例えば数字「7」で
あり、入力パターンが数字「8」であれば例えば数字
「0」及び「8」であり、入力パターンが数字「9」で
あれば例えば数字「3」「5」及び「9」である。
The candidate specified from the black dot distribution is
If the input pattern is the number “0”, for example, the number “0”
And “8”. Hereinafter, similarly, if the input pattern is the number “1”, the number is “1”, for example, if the input pattern is the number “2”, the number is “2”, and if the input pattern is the number “3”. For example, the numbers are "3", "5" and "9". If the input pattern is the number "4", the number is "4". If the input pattern is the number "5", the numbers are "3" and "9". 5 "and" 9 ", and if the input pattern is the number" 6 ", for example, the number is" 6 ";
If the input pattern is the number "7", it is, for example, the number "7". If the input pattern is the number "8", it is, for example, the numbers "0" and "8". For example, the numbers "3", "5" and "9".

【0062】黒ドット分布による認識は、比較的に処理
が軽く、高精度の認識が困難、といった特性となってい
る。そのため、本実施の形態では、入力パターンの属す
るカテゴリの候補を特定するために行っている。比較的
に軽い処理で候補を絞り、比較的に重い処理でカテゴリ
を認識するようにすることで、全体としての処理の負荷
は軽減される。それにより、認識精度は低下させること
なく、パターン認識に要する時間の短縮化、即ち認識処
理の高速化を実現させている。
The recognition based on the black dot distribution has such characteristics that the processing is relatively light and high-precision recognition is difficult. Therefore, in the present embodiment, this is performed in order to specify a category candidate to which the input pattern belongs. By narrowing down candidates by relatively light processing and recognizing categories by relatively heavy processing, the overall processing load is reduced. As a result, the time required for pattern recognition is reduced, that is, the speed of the recognition process is increased without reducing the recognition accuracy.

【0063】なお、黒ドット数を計数するうえでの全体
領域の分割の仕方や計数の対象とする部分領域などは、
上述したようなものに限定されるものではない。認識の
対象となる入力パターンの形状などに応じて適宜、定め
ても良い。
The method of dividing the whole area when counting the number of black dots and the partial area to be counted are as follows.
It is not limited to the above. It may be appropriately determined according to the shape of the input pattern to be recognized.

【0064】上記ヒストグラムやそれを作成する領域を
示すデータ、各部分領域の黒ドット数、及び各部分領域
を示すデータなどは、例えばROM203に格納されて
いる。それにより、MPU201は、ROM203に格
納されたそれらのデータを参照して、ヒストグラム、及
び黒ドット分布による認識を行う。なお、ヒストグラム
や各部分領域の黒ドット数などについては、必要に応じ
て、作成、或いは計数すれば良いことから、ROM20
3に格納させるなどの形で予め用意しなくとも良い。
For example, the ROM 203 stores the histogram, data indicating an area for creating the histogram, the number of black dots in each partial area, and data indicating each partial area. Thereby, the MPU 201 refers to the data stored in the ROM 203 and performs recognition based on the histogram and the black dot distribution. The histogram and the number of black dots in each partial area may be created or counted as necessary.
It does not have to be prepared in advance, for example, by storing it in the storage device 3.

【0065】本実施の形態では、上記ヒストグラム、及
び黒ドット分布による認識の他に、パターン・マッチン
グによる認識を行っている。そのパターン・マッチング
は、以下のようにして行っている。図6〜図18を参照
して詳細に説明する。
In the present embodiment, in addition to the recognition based on the histogram and the black dot distribution, recognition based on pattern matching is performed. The pattern matching is performed as follows. This will be described in detail with reference to FIGS.

【0066】図6は、標準パターンを入力パターンと重
ね合わせた様子を示す図である。数字「0」の標準パタ
ーンを例にとって、それを数字「0」〜「9」の各入力
パターンと重ね合わせた様子を各入力パターン別に示し
たものである。
FIG. 6 is a diagram showing a state where the standard pattern is superimposed on the input pattern. For example, a standard pattern of a number “0” is shown for each input pattern, which is superimposed on each of the input patterns of numbers “0” to “9”.

【0067】上記イメージセンサ104は、例えば帳票
上のイメージを200DPI(1cm当たりのドット数
が約79個。以降、79DPCと表現する)で読み取る
ようになっている。標準パターンは24×24ドットで
ある。このことから、上記正規化は、イメージセンサ1
04で読み取った入力パターン(数字)の大きさをその
標準パターンの大きさに合わせる形で行っている。その
正規化によって標準パターンの大きさに合わせた入力パ
ターンを入力パターン(数字「0」〜「9」)別に標準
パターンと重ね合わせると、図6(a)〜(j)に示す
ようになる。
The image sensor 104 reads an image on a form, for example, at 200 DPI (the number of dots per cm is about 79; hereinafter, expressed as 79 DPC). The standard pattern is 24 × 24 dots. From this, the normalization is performed by the image sensor 1
The size of the input pattern (number) read at step 04 is adjusted to the size of the standard pattern. 6A to 6J are obtained by superimposing an input pattern matched to the size of the standard pattern on the basis of the normalization by the input patterns (numbers “0” to “9”).

【0068】標準パターンと入力パターン間の類似度を
表す数値は、黒ドットが一致する割合に着目して算出し
ている。具体的には、パターンの総黒ドット数のなかで
一致、即ちパターン間で対応付けられたドットが共に黒
ドットとなっているドットの数を計数し、その計数した
ドット数(一致ドット数)を総黒ドット数で割ることで
算出している。パーセントを単位とするために、その算
出値には更に100を掛けている。なお、その算出値に
ついては、一致割合、それをパーセントで表した値につ
いては一致率と呼ぶことにする。
The numerical value representing the degree of similarity between the standard pattern and the input pattern is calculated by paying attention to the ratio of coincidence of the black dots. Specifically, the number of dots that match each other in the total number of black dots of the pattern, that is, the number of dots in which both dots associated with the pattern are black dots, is counted, and the counted number of dots (the number of matching dots) Is divided by the total number of black dots. The calculated value is further multiplied by 100 to make the unit a percentage. The calculated value is referred to as a coincidence ratio, and a value expressed as a percentage is referred to as a coincidence ratio.

【0069】パターンは、標準パターンと入力パターン
の2種類が存在する。このことから、本実施の形態で
は、一致率はパターン別に算出している。更には、標準
パターンと入力パターンを重ね合わせて得られるパター
ン(以降、合成パターンと呼ぶ)の一致率も算出してい
る。以降、それらの一致率については、総黒ドット数が
入力パターンであれば入力パターン一致率、それが標準
パターンであれば標準パターン一致率、それが合成パタ
ーンであれば合成パターン一致率とそれぞれ呼ぶことに
する。
There are two types of patterns, a standard pattern and an input pattern. For this reason, in the present embodiment, the coincidence rate is calculated for each pattern. Further, the matching rate of a pattern obtained by superimposing the standard pattern and the input pattern (hereinafter, referred to as a combined pattern) is also calculated. Hereinafter, the matching rates are referred to as an input pattern matching rate if the total number of black dots is an input pattern, a standard pattern matching rate if the total pattern is a standard pattern, and a combined pattern matching rate if the total pattern is a synthetic pattern. I will.

【0070】図7は、標準パターンと入力パターン間の
一致率を説明する図である。数字「0」〜「9」の各標
準パターン(図中では標準文字と表記)と数字「0」〜
「9」の各入力パターン(図中ではスキャナ読取文字と
表記)別に、それらの間の一致率を表したものである。
上段に入力パターン一致率、下段に標準パターン一致
率、全体に合成パターン一致率をそれぞれ示してある。
FIG. 7 is a diagram for explaining the coincidence rate between the standard pattern and the input pattern. Each of the standard patterns of numbers “0” to “9” (expressed as standard characters in the figure) and the numbers “0” to
For each input pattern "9" (indicated as a scanner read character in the figure), the matching rate between them is shown.
The upper part shows the input pattern matching rate, the lower part shows the standard pattern matching rate, and the whole shows the combined pattern matching rate.

【0071】図7に示すように、標準パターンと入力パ
ターンの一致率は、同じカテゴリに属するもの同士のと
きに最も値が大きくなる。このことから明らかなよう
に、一致率から入力パターンの属するカテゴリを判断す
ることができる。
As shown in FIG. 7, the coincidence rate between the standard pattern and the input pattern has the largest value when the patterns belong to the same category. As is apparent from this, the category to which the input pattern belongs can be determined from the matching rate.

【0072】値の算出方法から、合成パターン一致率は
入力パターン一致率、及び標準パターン一致率以下とな
る。属するカテゴリが異なっているにも係わらず、パタ
ーンの総黒ドット数などによって入力パターン一致率、
或いは標準パターン一致率が大きな値となっても、合成
パターン一致率は比較的に小さな値となる傾向がある。
言い換えれば、属するカテゴリが一致していれば、各一
致率の値は大きく(平均値は大きく)、且つそれらの値
は小さな範囲に収まる、という傾向がある。このため、
算出方法が異なる一致率を複数、算出し、それらの値を
参照することにより、認識精度をより向上させることが
できる。このことから、本実施の形態では、複数の一致
率を算出して入力パターンの認識を行っている。
From the value calculation method, the combined pattern coincidence rate is equal to or less than the input pattern coincidence rate and the standard pattern coincidence rate. Despite the different categories to which it belongs, the input pattern matching rate,
Alternatively, even if the standard pattern coincidence rate is a large value, the composite pattern coincidence rate tends to be a relatively small value.
In other words, if the categories to which they belong match, there is a tendency that the value of each matching rate is large (the average value is large) and those values fall within a small range. For this reason,
Recognition accuracy can be further improved by calculating a plurality of matching rates having different calculation methods and referring to those values. For this reason, in the present embodiment, the input pattern is recognized by calculating a plurality of matching rates.

【0073】パターンが同じカテゴリ同士のときに一致
率が最も大きくなるが、何らかの理由、例えばパターン
の重ね合わせ方によっては、入力パターンが本来、属す
るカテゴリとは異なるカテゴリの標準パターンとの一致
率が最も大きくなることがあり得る。このことから、本
実施の形態では、次のようなパターン・マッチングも行
っている。
The matching rate is highest when the categories have the same pattern. However, for some reason, for example, how the patterns are overlapped, the matching rate of the input pattern with the standard pattern of a category different from the category to which the input pattern originally belongs is different. Can be the largest. For this reason, in the present embodiment, the following pattern matching is also performed.

【0074】数字「0」〜「9」の各パターンは、それ
ぞれ固有の形状をしている。そのために、手書きのパタ
ーンであっても、黒ドットが存在し難い領域が存在す
る。本実施の形態では、そのことに着目し、カテゴリ別
に、黒ドットの存在する可能性が最も低いと考えられる
領域(空白領域)内に黒ドットを配置(展開)したパタ
ーン(以降、空白パターンと呼ぶ)を用意し、その空白
パターンを入力パターンと重ね合わせて一致率を求める
マッチングを行っている。
Each of the patterns "0" to "9" has a unique shape. Therefore, there is an area where a black dot is unlikely to exist even in a handwritten pattern. In the present embodiment, attention is paid to this, and for each category, a pattern in which black dots are arranged (developed) in an area (blank area) where it is considered that the possibility of the presence of black dots is the lowest (hereinafter referred to as a blank pattern) ) Is prepared, and the blank pattern is overlapped with the input pattern to perform matching for obtaining a matching rate.

【0075】図8〜図17は、空白パターンを入力パタ
ーンと重ね合わせた様子を示す図である。図8は、数字
「0」の空白パターンを、数字「0」「2」「6」
「8」及び「9」の各入力パターンと重ね合わせた様子
を入力パターン別に示したものである。以下、同様に、
図9は数字「1」の空白パターンを数字「1」及び
「7」の各入力パターン、図10は数字「2」の空白パ
ターンを数字「0」「2」「3」「7」及び「9」の各
入力パターン、図11は数字「3」の空白パターンを数
字「2」「3」「5」「6」及び「8」の各入力パター
ン、図12は数字「4」の空白パターンを数字「4」の
入力パターン、図13は数字「5」の空白パターンを数
字「3」及び「5」の各入力パターン、図14は数字
「6」の空白パターンを数字「0」「3」「6」及び
「8」の各入力パターン、図15は数字「7」の空白パ
ターンを数字「1」「2」及び「7」の各入力パター
ン、図16は数字「8」の空白パターンを数字「0」
「2」「3」「6」「8」及び「9」の各入力パター
ン、図17は数字「9」の空白パターンを数字「0」
「8」及び「9」の各入力パターン、と重ね合わせた様
子を入力パターン別にそれぞれ示したものである。な
お、上述したように空白パターン毎に選別した入力パタ
ーンは、標準パターンによるマッチングで誤認識する可
能性が考えられるカテゴリの入力パターンである。
FIGS. 8 to 17 are diagrams showing a state in which a blank pattern is superimposed on an input pattern. FIG. 8 shows the blank pattern of the number “0” as the number “0” “2” “6”.
The state of superimposition with each of the input patterns “8” and “9” is shown for each input pattern. Hereinafter, similarly,
FIG. 9 shows the blank pattern of the number “1” as each input pattern of the numbers “1” and “7”, and FIG. 10 shows the blank pattern of the number “2” as the numbers “0”, “2”, “3”, “7” and “7”. 9 is the input pattern of FIG. 11, the blank pattern of the number "3" is the input pattern of the numbers "2", "3", "5", "6" and "8", and FIG. 12 is the blank pattern of the number "4". 13 is an input pattern of the number "4", FIG. 13 is a blank pattern of the number "5", each input pattern of the numbers "3" and "5", and FIG. 14 is a blank pattern of the number "6". 15 is a blank pattern of the number "7", FIG. 15 is a blank pattern of the numbers "1", "2" and "7", and FIG. 16 is a blank pattern of the number "8". To the number "0"
Each input pattern of “2”, “3”, “6”, “8” and “9”, FIG. 17 shows the blank pattern of the number “9” as the number “0”
The respective input patterns “8” and “9” are shown for each input pattern. The input patterns selected for each blank pattern as described above are input patterns of a category in which the possibility of erroneous recognition by matching with the standard pattern is considered.

【0076】図8〜図17に示すように、空白パターン
は同じカテゴリの入力パターンとは一致する部分が無
い、即ちパターン間で対応付けられたドットが共に黒ド
ットとなることが無いようになっている。しかし、空白
パターンは属するカテゴリのパターンの空白領域内に黒
ドットを配置して作成しているために、カテゴリが異な
る入力パターンの殆どと一致する部分が生じてしまうよ
うになっている。一致する部分が生じない入力パターン
があっても、そのときの空白パターンが属するカテゴリ
のパターン(標準パターン、或いは入力パターン)は、
その入力パターンの属するカテゴリの空白パターンと一
致する部分が生じてしまうようになっている。具体的に
は、図16(b)に示すように、数字「2」の入力パタ
ーンは数字「8」の空白パターンと一致する部分が生じ
なくとも、図10(e)に示すように、数字「8」の入
力パターンは数字「2」の空白パターンと一致する部分
が生じてしまうようになっている。このことは、空白パ
ターンによるマッチングだけでも、入力パターンの認識
を行えることを意味する。
As shown in FIGS. 8 to 17, the blank pattern has no portion that matches the input pattern of the same category, that is, the dots associated between the patterns do not become black dots. ing. However, since the blank pattern is created by arranging black dots in the blank area of the pattern of the category to which the blank pattern belongs, a portion corresponding to most of the input patterns having different categories is generated. Even if there is an input pattern that does not produce a matching part, the pattern (standard pattern or input pattern) of the category to which the blank pattern belongs at that time is
A portion that matches the blank pattern of the category to which the input pattern belongs is generated. Specifically, as shown in FIG. 16 (b), the input pattern of the numeral “2” does not have a portion corresponding to the blank pattern of the numeral “8”. The input pattern of “8” has a portion that matches the blank pattern of the number “2”. This means that an input pattern can be recognized only by matching using a blank pattern.

【0077】空白パターンと入力パターン間の類似度を
表す数値としては、標準パターンによるマッチングと同
様に、3種類の一致率を算出している。その一致率につ
いては、標準パターンによるマッチングを行う際に算出
する一致率と区別するために、以降、禁止一致率と呼ぶ
ことにする。3種類の禁止一致率については、一致する
黒ドットの総数を割る総黒ドット数が入力パターンのそ
れであれば入力パターン禁止一致率、その総黒ドット数
が空白パターンのそれであれば空白パターン禁止一致
率、その総黒ドット数が空白パターンと入力パターンを
重ね合わせて得られる合成パターンのそれであれば合成
パターン禁止一致率と呼ぶことにする。
As numerical values indicating the similarity between the blank pattern and the input pattern, three types of coincidence rates are calculated in the same manner as in the case of the matching using the standard pattern. The coincidence rate is hereinafter referred to as a prohibited coincidence rate in order to distinguish it from a coincidence rate calculated when performing matching using a standard pattern. For the three types of prohibited match rates, the input pattern prohibited match rate if the total number of black dots divided by the total number of matching black dots is that of the input pattern, and the blank pattern prohibited match if the total black dot number is that of the blank pattern. If the ratio and the total number of black dots are those of a composite pattern obtained by superimposing a blank pattern and an input pattern, it will be referred to as a composite pattern inhibition matching rate.

【0078】図18は、空白パターンと入力パターン間
の禁止一致率を説明する図である。数字「0」〜「9」
の各空白パターン(図中では標準文字の禁止領域と表
記)と数字「0」〜「9」の各入力パターン(図中では
スキャナ読取文字と表記)別に、それらの間の禁止一致
率を表したものである。上段に入力パターン禁止一致
率、下段に空白パターン禁止一致率、全体に合成パター
ン禁止一致率をそれぞれ示してある。なお、禁止一致率
が記載されていない欄は、図8〜図17の説明図で空白
パターンと入力パターンを重ね合わせた様子を示してい
ないカテゴリの組み合わせを表している。
FIG. 18 is a diagram for explaining the forbidden coincidence rate between the blank pattern and the input pattern. Number "0" to "9"
For each blank pattern (indicated as a prohibited area of standard characters in the figure) and each input pattern of numbers "0" to "9" (indicated as a scanner read character in the figure), the prohibition matching rate between them is shown. It was done. The upper part shows the input pattern prohibition coincidence rate, the lower part shows the blank pattern prohibition coincidence rate, and the whole shows the combined pattern prohibition coincidence rate. Note that the column in which the prohibition matching rate is not described indicates a combination of categories that does not show a state in which the blank pattern and the input pattern are superimposed in the explanatory diagrams of FIGS.

【0079】空白パターンは上述したように作成してい
ることから、図18に示すように、空白パターンと入力
パターンの禁止一致率は、同じカテゴリに属するもの同
士のときに最も値が小さくなる。数字「8」の空白パタ
ーンでは、数字「2」及び「8」の各入力パターンのと
きに禁止一致率が全て0となっている(図16参照)。
しかし、数字「2」の空白パターンでは、数字「8」の
入力パターンのときに禁止一致率は全て0とならない
(図10参照)。このため、禁止一致率から入力パター
ンの属するカテゴリを判断することができる。
Since the blank pattern is created as described above, as shown in FIG. 18, the forbidden coincidence rate between the blank pattern and the input pattern has the smallest value when they belong to the same category. In the blank pattern of the numeral "8", the prohibition coincidence rate is all 0 in each of the input patterns of the numerals "2" and "8" (see FIG. 16).
However, in the blank pattern of the numeral “2”, the prohibition coincidence rate is not all 0 when the input pattern is the numeral “8” (see FIG. 10). For this reason, the category to which the input pattern belongs can be determined from the prohibited match rate.

【0080】上記空白パターンは、例えば標準パターン
と同様に、ROM203に格納されている。それによ
り、MPU201は、ROM203に格納されている空
白パターンを用いて入力パターンの認識を行うようにな
っている。
The blank pattern is stored in the ROM 203, for example, like the standard pattern. Thereby, the MPU 201 recognizes the input pattern using the blank pattern stored in the ROM 203.

【0081】本実施の形態では、上述した複数の手法を
必要に応じて用いる形で入力パターンの認識、即ちそれ
が属するカテゴリの認識を行っている。それにより、認
識精度の向上とともに、認識に要する時間の短縮を図っ
ている。以降は、図19〜図24に示す各種フローチャ
ートを参照して、MPU201の動作について詳細に説
明する。
In this embodiment, recognition of an input pattern, that is, recognition of a category to which the input pattern belongs, is performed by using the above-described plurality of methods as necessary. Thereby, the recognition accuracy is improved and the time required for the recognition is reduced. Hereinafter, the operation of the MPU 201 will be described in detail with reference to various flowcharts shown in FIGS.

【0082】図19は、全体の処理の流れを示すフロー
チャートである。挿入口101から挿入される帳票(媒
体)に対応するためにMPU201が実行する処理に注
目して、その流れを表したものである。始めに図19を
参照して、その全体の処理について詳細に説明する。な
お、図19に示すフローチャートは、MPU201がR
OM202、或いは203に格納されたプログラムを読
み出して実行することで実現される。
FIG. 19 is a flowchart showing the flow of the entire processing. The flow is shown focusing on processing executed by the MPU 201 in order to correspond to a form (medium) inserted from the insertion slot 101. First, the overall processing will be described in detail with reference to FIG. It should be noted that the flowchart shown in FIG.
This is realized by reading and executing the program stored in the OM 202 or 203.

【0083】先ず、ステップS1では、挿入口101か
ら挿入された帳票(媒体)をセンサ110が検知するの
を待って、それをイメージセンサ104で読み取る位置
まで搬送する。その位置まで搬送したか否かの確認は、
センサ111の検知結果を基に行う。
First, in step S 1, the document (medium) inserted from the insertion slot 101 is waited for to be detected by the sensor 110, and is conveyed to a position where it is read by the image sensor 104. Checking whether or not it has been transported to that position,
This is performed based on the detection result of the sensor 111.

【0084】センサ111が帳票を検知すると、ステッ
プS2に移行して、イメージセンサ104によるそのイ
メージの読み取りを行う。そのイメージの読み取りは、
上述したように、センサ112が帳票を検知しなくなる
のを待って終了させる。
When the sensor 111 detects the form, the process proceeds to step S2, and the image is read by the image sensor 104. Reading that image
As described above, the process is terminated after the sensor 112 stops detecting the form.

【0085】帳票のイメージの読み取りが終了した後は
ステップS3に移行する。そのステップS3では、イメ
ージセンサ104によって読み取った文字(入力パター
ン)の認識を行うOCR文字認識処理を実行する。続く
ステップS4では、文字の認識が行えたか否か判定す
る。イメージセンサ104で読み取ったイメージのなか
に存在する、認識の対象となる文字を全て認識できた場
合、その旨が判定され、印字などを行いつつ、帳票をリ
ジェクトボックス103に搬送してそこに収納させた
後、一連の処理を終了する。そうでない場合には、その
旨が判定されてステップS5に移行する。
After the reading of the form image is completed, the process proceeds to step S3. In step S3, an OCR character recognition process for recognizing a character (input pattern) read by the image sensor 104 is executed. In a succeeding step S4, it is determined whether or not the character has been recognized. If all of the characters to be recognized in the image read by the image sensor 104 can be recognized, it is determined to that effect, and the form is conveyed to the reject box 103 while being printed and stored therein. After that, a series of processing ends. Otherwise, it is determined so and the process proceeds to step S5.

【0086】ステップS5では、イメージセンサ104
が読み取るイメージの濃度を調整するイメセン濃度調整
処理を実行する。その後は、上記ステップS1に戻り、
帳票をイメージセンサ104で読み取る位置まで搬送
(逆搬送)する。それにより、再度、帳票のイメージを
読み取って文字(入力パターン)の認識を行う。
In step S5, the image sensor 104
Executes an image sensing density adjusting process for adjusting the density of the image read by. Thereafter, the process returns to step S1, and
The form is transported (reverse transport) to a position where the form is read by the image sensor 104. Thereby, the image of the form is read again to recognize the character (input pattern).

【0087】図20は、上記ステップS3として実行さ
れるOCR文字認識処理のフローチャートである。次
に、図20を参照して、そのOCR文字認識処理につい
て詳細に説明する。なお、その図20には、便宜的に、
OCR文字認識処理として実行される処理のなかで、1
文字(入力パターン)の認識を行うために実行される主
要な処理を抽出してその流れを表してある。
FIG. 20 is a flowchart of the OCR character recognition process executed as step S3. Next, the OCR character recognition processing will be described in detail with reference to FIG. In FIG. 20, for convenience,
Among the processing executed as the OCR character recognition processing, 1
The main processing executed to recognize a character (input pattern) is extracted and the flow is shown.

【0088】先ず、ステップS11では、文字(入力パ
ターン)を構成する黒ドットの分布に着目して認識を行
うドット分布認識処理を実行する。続くステップS12
では、ヒストグラムに着目して認識を行う投影ヒストグ
ラム認識処理を実行する。一連の処理はその実行後に終
了する。
First, in step S11, a dot distribution recognizing process for performing recognition by paying attention to the distribution of black dots forming a character (input pattern) is executed. Subsequent step S12
Then, a projection histogram recognition process for performing recognition focusing on the histogram is executed. A series of processing ends after the execution.

【0089】上記ドット分布認識処理、及び投影ヒスト
グラム認識処理は、1文字(入力パターン)を対象に認
識を行うようになっている。それにより、OCR文字認
識処理は、認識の対象とする文字を変えながら、それら
の処理を文字毎に実行することにより、認識すべき文字
(入力パターン)の認識を行うようになっている。
In the dot distribution recognition processing and the projection histogram recognition processing, recognition is performed for one character (input pattern). Thus, in the OCR character recognition processing, the characters to be recognized (input patterns) are recognized by executing the processing for each character while changing the characters to be recognized.

【0090】図21は、上記ステップS11として実行
されるドット分布認識処理のフローチャートである。次
に、その認識処理について、図21を参照して詳細に説
明する。
FIG. 21 is a flowchart of the dot distribution recognizing process executed as step S11. Next, the recognition processing will be described in detail with reference to FIG.

【0091】先ず、ステップS21では、RAM204
に格納されている、イメージセンサ104によって読み
取ったイメージデータ中から認識の対象とする入力パタ
ーン(文字)を一つ切り出し、正規化などを含む前処理
を行う。続くステップS22では、切り出して正規化し
たパターンの幅、及び高さを例えばドット数で求める。
その後はステップS23に移行する。
First, in step S21, the RAM 204
, One input pattern (character) to be recognized is cut out from the image data read by the image sensor 104, and preprocessing including normalization is performed. In the following step S22, the width and height of the cut-out and normalized pattern are determined by, for example, the number of dots.
After that, it moves to step S23.

【0092】ステップS23では、求めた入力パターン
の幅、及び高さから、それを4つの部分領域に分割す
る。次に移行するステップS24では、4分割して得ら
れた各部分領域毎に、そこに存在している黒ドット数を
計数する。その計数が終了すると、ステップS25に移
行する。
In step S23, the input pattern is divided into four partial areas based on the obtained width and height. In the next step S24, the number of black dots existing there is counted for each partial area obtained by dividing into four. When the counting is completed, the process proceeds to step S25.

【0093】ステップS25では、計数した各部分領域
の黒ドット数の分布状態から、入力パターンが属するカ
テゴリを仮定、即ちその候補を特定する。続くステップ
S26では、その候補の空白パターンや標準パターンを
入力パターンと比較して認識を行うためのマッチング処
理を実行する。そのマッチング処理の実行後はステップ
S27に移行する。
In step S25, the category to which the input pattern belongs is assumed, that is, the candidate is specified from the distribution state of the counted number of black dots in each partial area. In a succeeding step S26, a matching process for performing recognition by comparing the blank pattern or the standard pattern of the candidate with the input pattern is executed. After the execution of the matching process, the process proceeds to step S27.

【0094】ステップS27では、そのマッチング処理
による認識結果を判定する。そのマッチング処理を実行
することで入力パターンの属するカテゴリを認識できた
場合、その旨が判定され、ここで一連の処理を終了す
る。そうでない場合には、その旨が判定されてステップ
S25に戻り、再度、入力パターンの属するカテゴリの
仮定を行う。そのステップS27では、特に図示してい
ないが、ステップS25で別のカテゴリを仮定できたか
否かの判定も合わせて行い、それが仮定できなければ、
その旨を判定して一連の処理を終了させるようになって
いる。
In the step S27, the recognition result by the matching process is determined. When the category to which the input pattern belongs can be recognized by executing the matching processing, it is determined that the category is included, and a series of processing ends here. If not, it is determined so and the process returns to step S25, where the category to which the input pattern belongs is assumed again. In step S27, although not shown, it is also determined whether another category has been assumed in step S25, and if it cannot be assumed,
After that, a series of processing is terminated.

【0095】上記ステップS25〜S27で形成される
処理ループは、ステップS25で別のカテゴリを仮定で
きなくなるか、或いはマッチング処理によって入力パタ
ーンの属するカテゴリを認識するまでの間、繰り返し実
行される。それにより、黒ドット分布から特定した候補
のなかから入力パターンが属するカテゴリの認識を行う
ようになっている。
The processing loop formed in steps S25 to S27 is repeatedly executed until another category cannot be assumed in step S25 or the category to which the input pattern belongs is recognized by the matching processing. Thereby, the category to which the input pattern belongs is recognized from among the candidates specified from the black dot distribution.

【0096】黒ドット分布からのカテゴリの仮定は、予
め用意した空白パターンや標準パターンによる認識と比
較して短時間で行うことができる。カテゴリを仮定し、
その仮定したカテゴリの空白パターンや標準パターンを
用いてマッチングを行うために、全てのパターンとのマ
ッチングを行う従来と比較して、マッチングを行う回数
を大きく低減させることができる。このことから、認識
にかかる時間も短縮することになる。また、仮定は、空
白パターンや標準パターンを用いたマッチングによって
検証される形となるため、高い認識精度が維持される。
The assumption of the category from the black dot distribution can be made in a shorter time as compared with recognition using a blank pattern or a standard pattern prepared in advance. Assuming categories,
Since matching is performed using blank patterns and standard patterns of the assumed category, the number of times of matching can be greatly reduced as compared with the related art in which matching with all patterns is performed. This also reduces the time required for recognition. In addition, since the assumption is a form verified by matching using a blank pattern or a standard pattern, high recognition accuracy is maintained.

【0097】次に、上記ステップS26として実行され
るマッチング処理について、図22に示すそのフローチ
ャートを参照して詳細に説明する。先ず、ステップS3
1では、直前に実行したステップS25で仮定されたカ
テゴリの空白パターン(図中では禁止領域と表記)をR
OM203から読み出し、入力パターンとのマッチング
(重ね合わせる形での比較)を行い、各種禁止一致率を
算出する。続くステップS32では、それら禁止一致率
の平均値が5%未満か否か判定する。その平均値が5%
未満であった場合、判定はYESとなってステップS3
4に移行する。そうでない場合には、判定はNOとな
り、仮定したカテゴリに入力パターンは属さないとし
て、ここで一連の処理を終了する。
Next, the matching processing executed as step S26 will be described in detail with reference to the flowchart shown in FIG. First, step S3
In step 1, the blank pattern of the category assumed in step S25 executed immediately before (indicated as a prohibited area in the figure) is represented by R.
It reads out from the OM 203, performs matching with the input pattern (comparison by superimposition), and calculates various prohibited coincidence rates. In a succeeding step S32, it is determined whether or not the average value of the forbidden coincidence rates is less than 5%. The average value is 5%
If it is less than the predetermined value, the determination becomes YES and step S3
Move to 4. Otherwise, the determination is NO, and the input pattern does not belong to the assumed category, and a series of processing ends here.

【0098】空白パターンとのマッチングから仮定のカ
テゴリに入力パターンが属さないと判定する基準とした
5%未満という数値は、図18に示すように、空白パタ
ーンと入力パターンのカテゴリが同じのとき以外では、
数字「8」の空白パターンを数字「2」の入力パターン
とマッチングさせたときに満たす可能性がある。このた
め、ステップS34では、仮定されたカテゴリの標準パ
ターン(図中では標準文字と表記)とのマッチングを行
い、各種一致率を算出する。次に移行するステップS3
5では、それら一致率の平均値、或いはそのなかの2つ
以上の一致率が70%を越えているか否か判定する。そ
の平均値、或いは算出した一致率の2つ以上が70%よ
りも大きかった場合、判定はYESとなってステップS
36に移行し、入力パターンのカテゴリを標準パターン
のカテゴリに決定、即ち仮定のカテゴリが正しいとした
後、一連の処理を終了する。それらの何れでもない場合
には、判定はNOとなり、ここで一連の処理を終了す
る。
The numerical value of less than 5% as a criterion for judging that the input pattern does not belong to the assumed category based on the matching with the blank pattern is a value other than when the category of the blank pattern and the category of the input pattern are the same as shown in FIG. Then
There is a possibility that the blank pattern of the number “8” is filled when matched with the input pattern of the number “2”. For this reason, in step S34, matching with the standard pattern of the assumed category (indicated as a standard character in the figure) is performed, and various matching rates are calculated. Next step S3
In 5, it is determined whether the average value of the coincidence rates or two or more coincidence rates among them exceeds 70%. If the average value or two or more of the calculated coincidence ratios are greater than 70%, the determination is YES and step S
The flow shifts to 36, where the category of the input pattern is determined to be the category of the standard pattern, that is, the assumed category is correct, and a series of processes is ended. If neither of them is satisfied, the determination is NO, and a series of processing ends here.

【0099】ステップS36の処理を実行することで、
図21に示すステップS27では入力パターンの認識が
行えた(OK)と判定する。それにより、ドット分布認
識処理の実行も終了することになる。ステップS35の
判定がNOであれば、そのステップS27では入力パタ
ーンの認識が行えなかった(NG)と判定することか
ら、ステップS25に戻って再度、カテゴリの仮定を行
うことになる。
By executing the processing of step S36,
In step S27 shown in FIG. 21, it is determined that the input pattern has been recognized (OK). Thereby, the execution of the dot distribution recognition processing is also ended. If the determination in step S35 is NO, it is determined in step S27 that the input pattern could not be recognized (NG), so the process returns to step S25 and the category is assumed again.

【0100】上述したように、本実施の形態では、空白
パターンとのマッチングを標準パターンとのマッチング
の前に行っている。これは、空白パターンとのマッチン
グのほうが標準パターンとのマッチングよりも短時間で
行えるためである。言い換えれば、比較的に長い時間が
必要な標準パターンとのマッチングは必要に応じて行う
ようにすることにより、結果として処理時間を短縮でき
るためである。
As described above, in this embodiment, matching with a blank pattern is performed before matching with a standard pattern. This is because matching with a blank pattern can be performed in a shorter time than matching with a standard pattern. In other words, by performing matching with a standard pattern requiring a relatively long time as needed, the processing time can be shortened as a result.

【0101】図23は、図20に示すOCR文字認識処
理内でステップS12として実行される投影ヒストグラ
ム認識処理のフローチャートである。次に、図23を参
照して、その投影ヒストグラム認識処理について詳細に
説明する。なお、図23に示すフローチャートは、直前
に実行されるドット分布認識処理で入力パターンの認識
を行えなかった場合に実行される処理を抽出した表した
ものである。投影ヒストグラム認識処理では、そのドッ
ト分布認識処理で入力パターンを認識していれば、図2
3に示す認識に係わる処理を実行することなく、一連の
処理を終了するようになっている。それにより、不必要
に処理時間が長くなるのを回避させている。
FIG. 23 is a flowchart of the projection histogram recognition process executed as step S12 in the OCR character recognition process shown in FIG. Next, the projection histogram recognition processing will be described in detail with reference to FIG. Note that the flowchart shown in FIG. 23 illustrates a process extracted when the input pattern cannot be recognized in the immediately preceding dot distribution recognition process. In the projection histogram recognition process, if the input pattern has been recognized in the dot distribution recognition process, FIG.
A series of processes is terminated without executing the processes related to recognition shown in FIG. This prevents the processing time from becoming unnecessarily long.

【0102】先ず、ステップS41では、図5に示すよ
うにして、入力パターン(文字)の全体領域、或いはそ
の部分領域のX方向、及びY方向の投影ヒストグラムを
それぞれ作成する。続くステップS42では、作成した
投影ヒストグラムの形状から、入力パターンの属するカ
テゴリを仮定する。
First, in step S41, as shown in FIG. 5, projection histograms in the X direction and the Y direction of the entire area of the input pattern (character) or its partial area are created. In the following step S42, a category to which the input pattern belongs is assumed from the shape of the created projection histogram.

【0103】入力パターンの属すると仮定するカテゴリ
は、全体領域のX方向、及びY方向の投影ヒストグラム
をそれぞれ作成したのであれば、例えば入力パターンが
数字「0」であれば数字「0」及び「8」である。以
下、同様に、入力パターンが数字「1」であれば数字
「1」、入力パターンが数字「2」であれば数字「2」
及び「3」、入力パターンが数字「3」であれば数字
「2」「3」及び「5」、入力パターンが数字「4」で
あれば数字「4」、入力パターンが数字「5」であれば
数字「2」「3」及び「5」、入力パターンが数字
「6」であれば数字「6」、入力パターンが数字「7」
であれば数字「7」、入力パターンが数字「8」であれ
ば数字「0」及び「8」、入力パターンが数字「9」で
あれば数字「9」、である。
The categories assumed to belong to the input pattern are as follows: if the projection histograms in the X direction and the Y direction of the whole area are respectively created, for example, if the input pattern is the number “0”, the numbers “0” and “ 8 ". Hereinafter, similarly, when the input pattern is the number “1”, the number is “1”, and when the input pattern is the number “2”, the number is “2”.
And "3", if the input pattern is the number "3", the numbers "2", "3" and "5", if the input pattern is the number "4", the number "4" and the input pattern is the number "5" If there are, the numbers "2", "3" and "5", and if the input pattern is the number "6", the number "6" and the input pattern is the number "7"
If the input pattern is the numeral "7", if the input pattern is the numeral "8", the numeral is "0" and "8". If the input pattern is the numeral "9", the numeral is "9".

【0104】ステップS42に続くステップS43で
は、ステップS42で仮定した候補の空白パターンや標
準パターンを用いて、図22に示すマッチング処理を実
行する。その後に移行するステップS44では、そのマ
ッチング処理による認識結果を判定する。そのマッチン
グ処理を実行することで入力パターンの属するカテゴリ
を認識できた場合、その旨が判定され、ここで一連の処
理を終了する。そうでない場合には、その旨が判定され
てステップS42に戻り、再度、入力パターンの属する
カテゴリの仮定を行う。そのステップS44では、特に
図示していないが、ステップS42で別のカテゴリを仮
定できたか否かの判定も合わせて行い、それが仮定でき
なければ、その旨を判定して一連の処理を終了させるよ
うになっている。
In step S43 following step S42, the matching process shown in FIG. 22 is executed using the blank patterns and standard patterns of the candidates assumed in step S42. Thereafter, in step S44, a recognition result by the matching process is determined. When the category to which the input pattern belongs can be recognized by executing the matching processing, it is determined that the category is included, and a series of processing ends here. If not, it is determined so and the process returns to step S42 to again assume the category to which the input pattern belongs. In step S44, although not particularly shown, it is also determined whether another category has been assumed in step S42, and if it cannot be assumed, the fact is determined and the series of processing is terminated. It has become.

【0105】上記ステップS42〜S44で形成される
処理ループは、ステップS42で別のカテゴリを仮定で
きなくなるか、或いはマッチング処理によって入力パタ
ーンの属するカテゴリを認識するまでの間、繰り返し実
行される。それにより、作成したヒストグラムから特定
した候補のなかから入力パターンが属するカテゴリの認
識を行うようになっている。
The processing loop formed in steps S42 to S44 is repeatedly executed until another category cannot be assumed in step S42 or until the category to which the input pattern belongs is recognized by the matching processing. Thereby, the category to which the input pattern belongs is recognized from among the candidates specified from the created histogram.

【0106】図24は、図19に示す処理内でステップ
S5として実行されるイメセン濃度調整処理のフローチ
ャートである。次に、その濃度調整処理について、図2
4を参照して詳細に説明する。
FIG. 24 is a flowchart of the imesene density adjustment process executed as step S5 in the process shown in FIG. Next, FIG.
This will be described in detail with reference to FIG.

【0107】上述したように、図20に示すOCR文字
認識処理でステップS12の投影ヒストグラム認識処理
は入力パターン毎に実行される。その投影ヒストグラム
認識処理を入力パターン毎に実行していくなかで、図2
3に示すステップS42で別のカテゴリを仮定できなく
なった(入力パターンの認識が行えなかったことを意味
する)とステップS44で判定することがあった場合
に、図19のステップS4で認識結果がNGと判定され
る。イメセン濃度調整処理は、それによって実行され
る。
As described above, in the OCR character recognition processing shown in FIG. 20, the projection histogram recognition processing in step S12 is executed for each input pattern. As the projection histogram recognition process is executed for each input pattern, FIG.
If it is determined in step S44 that another category cannot be assumed in step S42 (meaning that the input pattern cannot be recognized) in step S42 shown in FIG. 3, the recognition result is determined in step S4 in FIG. It is determined as NG. The imesene density adjustment processing is executed thereby.

【0108】先ず、ステップS51では、入力パターン
の線を、OCR文字認識処理の実行時に最もそれに類似
していた(一致率の平均値が高かった)標準パターンの
それと線の位置を対応させて比較して、入力パターンの
線が標準パターンのそれよりも太いか否か判定する。入
力パターンの線のほうが標準パターンの線より太かった
場合、判定はYESとなってステップS52に移行す
る。そうでない場合には、判定はNOとなってステップ
S53に移行する。
First, in step S51, the line of the input pattern is compared with that of the standard pattern which was most similar to the OCR character recognition processing (the average value of the coincidence rate was high) in correspondence with the position of the line. Then, it is determined whether or not the line of the input pattern is thicker than that of the standard pattern. If the line of the input pattern is thicker than the line of the standard pattern, the determination is YES and the process moves to step S52. Otherwise, the determination is no and the process moves to step S53.

【0109】ステップS52では、イメージデータを2
値化するためのしきい値を現在値よりも所定値だけ高く
設定させることを指示するコマンドをイメージセンサ1
04に送出することにより、イメージセンサ104で読
み取るイメージの濃度を淡くさせた後、一連の処理を終
了する。他方のステップS53では、そのしきい値を現
在値よりも所定値だけ低く設定させることを指示するコ
マンドをイメージセンサ104に送出することにより、
イメージセンサ104で読み取るイメージの濃度を濃く
させた後、一連の処理を終了する。
In step S52, the image data is
The image sensor 1 issues a command to set a threshold value for conversion into a value higher than the current value by a predetermined value.
04, the density of the image read by the image sensor 104 is reduced, and then a series of processing ends. In the other step S53, a command for instructing the threshold to be set lower than the current value by a predetermined value is sent to the image sensor 104,
After the density of the image read by the image sensor 104 is increased, a series of processing ends.

【0110】本実施の形態では、帳票上に印字された、
認識の対象となる数字のフォントに合わせて標準パター
ン、及び空白パターンを用意している。そのようなパタ
ーンを用意しても、入力パターンを読み取る際の濃度が
濃すぎると、入力パターンを形成する線が太くなり、一
致率の低下や禁止一致率の増大を招く。その濃度が淡く
ても、入力パターンの線が細くなったり、部分的に線が
消えてしまい、結果として、一致率の低下や禁止一致率
の増大を招いてしまう。しかし、上述したようにしてそ
の濃度(ここではしきい値)を調整すれば、適切な濃度
(印字された認識の対象となる数字の濃度にとって適切
な濃度)でイメージを読み取ることができるようにな
る。このため、読み取る際の濃度によって入力パターン
(印字された数字)を認識できないということが回避で
き、それを認識できない帳票の数を最小限に抑えること
ができる。
In the present embodiment, the form printed on the form
Standard patterns and blank patterns are prepared according to the font of the numbers to be recognized. Even if such a pattern is prepared, if the density at the time of reading the input pattern is too high, the line forming the input pattern becomes thicker, causing a decrease in the matching rate and an increase in the forbidden matching rate. Even if the density is low, the line of the input pattern becomes thin or the line disappears partially, and as a result, the matching rate decreases and the prohibited matching rate increases. However, if the density (here, the threshold value) is adjusted as described above, an image can be read at an appropriate density (density appropriate for the density of the number to be printed and recognized). Become. For this reason, it can be avoided that the input pattern (printed number) cannot be recognized depending on the density at the time of reading, and the number of forms that cannot recognize the input pattern can be minimized.

【0111】なお、本実施の形態では、イメージセンサ
104がイメージデータを2値化して出力することか
ら、その濃度調整を行うと、帳票のイメージの読み取り
を再度、行うようになっているが、イメージデータを多
値で出力するものであれば、そのイメージデータを認識
が終了するまで保存しておくことで、再度の読み取りを
不要にしても良い。このことから、濃度を調整する機能
はパターン認識装置に搭載させても良い。
In the present embodiment, since the image sensor 104 binarizes and outputs image data, when the density is adjusted, the image of the form is read again. If the image data is output as multi-valued data, the image data may be stored until the recognition is completed, so that it is not necessary to read the image data again. For this reason, the function of adjusting the density may be installed in the pattern recognition device.

【0112】入力パターンの認識を行う手順やそのため
に採用する手法については、本実施の形態に限定される
ものではなく、様々に変更することができる。例えば黒
ドット分布による認識、ヒストグラムによる認識、及び
空白パターンによる認識の各手法は、上述したように、
何れも単独で用いることができる。このため、それらの
手法は、それを用いる順序を含め、様々に組み合わせる
ことができる。具体的な手順としては、例えば図21に
示すドット分布認識処理では、黒ドット分布からのカテ
ゴリの仮定(候補の特定)と、その仮定が正しいか否か
の空白パターンや標準パターンによる検証と、を1セッ
トにして、カテゴリを仮定する度にそれを行うようにな
っているが、入力パターンの属すると考えられるカテゴ
リを全て一度に仮定し、そのなかから入力パターンの属
するカテゴリを認識するようにしても良い。そのように
しても、入力パターンとマッチングさせるパターンの数
を抑えられるため、認識にかかる処理時間を短縮させる
ことができる。また、仮定したカテゴリのなかから最も
入力パターンと類似しているパターンを特定できるた
め、認識精度の向上も期待できる。これは、図23に示
す投影ヒストグラム認識処理でも同様である。
The procedure for recognizing an input pattern and the method adopted for that purpose are not limited to the present embodiment, but can be variously changed. For example, the respective methods of recognition based on black dot distribution, recognition based on a histogram, and recognition based on a blank pattern are as described above.
Any of them can be used alone. Thus, the techniques can be combined in various ways, including the order in which they are used. As a specific procedure, for example, in the dot distribution recognition processing shown in FIG. Is set as a set, and it is performed each time a category is assumed. However, all categories considered to belong to the input pattern are assumed at once, and the category to which the input pattern belongs is recognized from among them. May be. Even in such a case, since the number of patterns to be matched with the input pattern can be suppressed, the processing time required for recognition can be reduced. In addition, since the pattern that is most similar to the input pattern can be specified from the assumed category, improvement in recognition accuracy can be expected. This is the same in the projection histogram recognition processing shown in FIG.

【0113】認識の対象となる入力パターンについて
は、本実施の形態では数字としているが、それに限定さ
れるものではない。手書きか否かに係わらず、他の文字
や記号などが認識の対象であっても良い。本発明を適用
した画像読取装置、及びパターン認識装置を搭載させる
装置も、帳票処理装置に限定されるものではない。
The input pattern to be recognized is a numeral in the present embodiment, but is not limited to this. Regardless of whether it is handwritten or not, other characters or symbols may be the target of recognition. The device on which the image reading device and the pattern recognition device to which the present invention is applied is not limited to the form processing device.

【0114】上述したような画像読取装置、或いはパタ
ーン認識装置の動作を実現させるようなプログラムは、
ROM、CD−ROM、フロッピー(登録商標)ディス
ク、或いは光磁気ディスク等の記録媒体に記録させて配
布しても良い。或いは、公衆網等で用いられる伝送媒体
を介して、そのプログラムの一部、若しくは全部を配信
するようにしても良い。そのようにした場合には、作業
員(ユーザ)はプログラムを取得して既存の装置にロー
ド(記録媒体(ROM等)の交換等を含む)することに
より、その装置に本発明を適用させることができる。こ
のことから、記録媒体は、プログラムを配信する装置が
アクセスできるものであっても良い。
A program for realizing the operation of the above-described image reading apparatus or pattern recognition apparatus is as follows.
The program may be distributed on a recording medium such as a ROM, a CD-ROM, a floppy (registered trademark) disk, or a magneto-optical disk. Alternatively, part or all of the program may be distributed via a transmission medium used in a public network or the like. In such a case, the worker (user) obtains the program and loads it onto an existing device (including the exchange of a recording medium (ROM, etc.), etc.) to apply the present invention to that device. Can be. For this reason, the recording medium may be one that can be accessed by an apparatus that distributes the program.

【0115】[0115]

【発明の効果】以上説明したように本発明では、入力パ
ターンを複数の領域に分割して、領域毎に、画素の値が
所定範囲内となっている画素の数を計数し、領域毎に計
数した画素数の分布状態から入力パターンの属するカテ
ゴリの候補を特定し、特定した候補のなかから入力パタ
ーンの属するカテゴリを認識する。
As described above, according to the present invention, the input pattern is divided into a plurality of regions, and the number of pixels having a pixel value within a predetermined range is counted for each region, and for each region, The category candidate to which the input pattern belongs is specified from the distribution state of the counted number of pixels, and the category to which the input pattern belongs is recognized from the specified candidates.

【0116】入力パターンはカテゴリによって形状が異
なる。それにより、入力パターンを分割して得られる領
域内に存在する値が所定範囲内となっている画素の数
や、領域間における画素数の差や比などもカテゴリによ
って変化する。このため、領域毎に計数した画素数の分
布状態から入力パターンの属するカテゴリの候補を特定
(認識)することができる。
The shape of the input pattern differs depending on the category. As a result, the number of pixels whose values within a region obtained by dividing the input pattern are within a predetermined range, the difference or ratio of the number of pixels between regions, and the like also change depending on the category. For this reason, the category candidate to which the input pattern belongs can be specified (recognized) from the distribution state of the number of pixels counted for each region.

【0117】その候補の特定は、パターン同士を比較す
るようなことがないことから、比較的に容易に、即ち短
時間に行うことができる。特定した候補のなかから入力
パターンの属するカテゴリを認識すると、その認識のた
めに入力パターンと比較するパターンの数が全体的に低
減する。これらのことから、結果として、入力パターン
の認識をより短い時間で行うことができる。
Since there is no need to compare patterns, the candidate can be specified relatively easily, that is, in a short time. When the category to which the input pattern belongs is identified from the identified candidates, the number of patterns to be compared with the input pattern for the recognition is reduced as a whole. As a result, the input pattern can be recognized in a shorter time.

【0118】本発明では、カテゴリに属する入力パター
ンが存在しないと考えられる領域を基に空白パターンを
カテゴリ別に作成し、カテゴリ別に作成した空白パター
ンを入力パターンと比較して、入力パターンが属するカ
テゴリを認識する。
In the present invention, a blank pattern is created for each category based on an area where an input pattern belonging to the category does not exist, and the blank pattern created for each category is compared with the input pattern to determine the category to which the input pattern belongs. recognize.

【0119】入力パターンはカテゴリによって形状が異
なる。それにより、入力パターンを構成する線などが存
在しない、或いは存在する可能性が低いと考えられる領
域(部分)はカテゴリ毎にユニークなものになる。この
ため、空白パターンを入力パターンと比較することによ
り、その入力パターンの属するカテゴリを認識すること
ができる。
The shape of the input pattern differs depending on the category. As a result, an area (part) in which a line or the like constituting the input pattern does not exist or is considered to be unlikely to exist is unique for each category. Therefore, by comparing the blank pattern with the input pattern, the category to which the input pattern belongs can be recognized.

【0120】本発明では、入力パターンを構成する画素
の位置に注目してヒストグラムを一つ以上、作成し、作
成したヒストグラムを基に、入力パターンの属するカテ
ゴリを認識する。
In the present invention, one or more histograms are created by paying attention to the positions of the pixels constituting the input pattern, and the category to which the input pattern belongs is recognized based on the created histogram.

【0121】入力パターンはカテゴリによって形状が異
なる。それにより、画素の位置に注目してヒストグラム
を作成すると、その形状に入力パターンの形状が反映さ
れた形となり、カテゴリ毎にユニークなものとなる。こ
のため、そのようにして作成したヒストグラムを基に、
入力パターンの属するカテゴリを認識することができ
る。
The shape of the input pattern differs depending on the category. As a result, when a histogram is created by focusing on the pixel position, the shape becomes a shape in which the shape of the input pattern is reflected on the shape, and the shape becomes unique for each category. Therefore, based on the histogram thus created,
The category to which the input pattern belongs can be recognized.

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

【図1】本実施の形態による画像読取装置、及びパター
ン認識装置を搭載した帳票処理装置の概略断面図であ
る。
FIG. 1 is a schematic cross-sectional view of a form processing device equipped with an image reading device and a pattern recognition device according to an embodiment.

【図2】コントローラの回路ブロック図である。FIG. 2 is a circuit block diagram of a controller.

【図3】文字パターンから抽出する特徴を説明するため
の図である(その1)。
FIG. 3 is a diagram for explaining features extracted from a character pattern (part 1).

【図4】文字パターンから抽出する特徴を説明するため
の図である(その2)。
FIG. 4 is a diagram for explaining features extracted from a character pattern (part 2).

【図5】各数字の標準パターンから抽出される特徴を説
明する図である。
FIG. 5 is a diagram illustrating features extracted from a standard pattern of each numeral.

【図6】標準パターンを入力パターンと重ね合わせた様
子を示す図である。
FIG. 6 is a diagram showing a state in which a standard pattern is superimposed on an input pattern.

【図7】標準パターンと入力パターン間の一致率を説明
する図である。
FIG. 7 is a diagram illustrating a matching rate between a standard pattern and an input pattern.

【図8】空白パターンを入力パターンと重ね合わせた様
子を示す図である(0の空白パターンのとき)。
FIG. 8 is a diagram showing a state in which a blank pattern is superimposed on an input pattern (when a blank pattern is 0).

【図9】空白パターンを入力パターンと重ね合わせた様
子を示す図である(1の空白パターンのとき)。
FIG. 9 is a diagram showing a state in which a blank pattern is superimposed on an input pattern (in the case of a blank pattern of 1).

【図10】空白パターンを入力パターンと重ね合わせた
様子を示す図である(2の空白パターンのとき)。
FIG. 10 is a diagram illustrating a state in which a blank pattern is superimposed on an input pattern (in the case of a blank pattern of 2).

【図11】空白パターンを入力パターンと重ね合わせた
様子を示す図である(3の空白パターンのとき)。
FIG. 11 is a diagram showing a state in which a blank pattern is superimposed on an input pattern (when the blank pattern is 3).

【図12】空白パターンを入力パターンと重ね合わせた
様子を示す図である(4の空白パターンのとき)。
FIG. 12 is a diagram showing a state in which a blank pattern is superimposed on an input pattern (in the case of a blank pattern of 4).

【図13】空白パターンを入力パターンと重ね合わせた
様子を示す図である(5の空白パターンのとき)。
FIG. 13 is a diagram illustrating a state in which a blank pattern is superimposed on an input pattern (in the case of a blank pattern of 5).

【図14】空白パターンを入力パターンと重ね合わせた
様子を示す図である(6の空白パターンのとき)。
FIG. 14 is a diagram showing a state in which a blank pattern is superimposed on an input pattern (in the case of a blank pattern of 6).

【図15】空白パターンを入力パターンと重ね合わせた
様子を示す図である(7の空白パターンのとき)。
FIG. 15 is a diagram showing a state in which a blank pattern is superimposed on an input pattern (when the blank pattern is 7).

【図16】空白パターンを入力パターンと重ね合わせた
様子を示す図である(8の空白パターンのとき)。
FIG. 16 is a diagram illustrating a state in which a blank pattern is superimposed on an input pattern (in the case of a blank pattern of 8).

【図17】空白パターンを入力パターンと重ね合わせた
様子を示す図である(9の空白パターンのとき)。
FIG. 17 is a diagram showing a state in which a blank pattern is superimposed on an input pattern (in the case of a blank pattern of 9).

【図18】空白パターンと入力パターン間の禁止一致率
を説明する図である。
FIG. 18 is a diagram illustrating a prohibited match rate between a blank pattern and an input pattern.

【図19】全体の処理の流れを示すフローチャートであ
る。
FIG. 19 is a flowchart showing the flow of the entire processing.

【図20】OCR文字認識処理のフローチャートであ
る。
FIG. 20 is a flowchart of an OCR character recognition process.

【図21】ドット分布認識処理のフローチャートであ
る。
FIG. 21 is a flowchart of a dot distribution recognition process.

【図22】マッチング処理のフローチャートである。FIG. 22 is a flowchart of a matching process.

【図23】投影ヒストグラム認識処理のフローチャート
である。
FIG. 23 is a flowchart of a projection histogram recognition process.

【図24】イメセン濃度調整処理のフローチャートであ
る。
FIG. 24 is a flowchart of an imesene density adjustment process.

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

102 搬送路 104 イメージセンサ 107 ステッピングモータ 109 コントローラ 110〜114 センサ 201 MPU 202、203 ROM 204 RAM 206 割り込み制御レジスタ 209 CISデータ転送回路 210 CIS I/F 212 内蔵I/O 214〜217 入出力レジスタ 218 内蔵ADC 219 ステッピングモータ駆動回路 102 Conveyance path 104 Image sensor 107 Stepping motor 109 Controller 110-114 Sensor 201 MPU 202, 203 ROM 204 RAM 206 Interrupt control register 209 CIS data transfer circuit 210 CIS I / F 212 Built-in I / O 214-217 Input / output register 218 Built-in ADC 219 Stepping motor drive circuit

フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G06T 7/00 300 G06T 7/00 300G Fターム(参考) 5B064 AA01 AB13 BA01 CA11 DA05 DB06 DB12 DC27 DC37 DC39 DC42 EA38 5L096 BA17 CA02 EA13 FA36 GA19 GA28 JA03 JA06 Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat II (reference) G06T 7/00 300 G06T 7/00 300G F term (reference) 5B064 AA01 AB13 BA01 CA11 DA05 DB06 DB12 DC27 DC37 DC39 DC42 EA38 5L096 BA17 CA02 EA13 FA36 GA19 GA28 JA03 JA06

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 画素に分解して読み取られた入力パター
ンの属するカテゴリを認識する装置において、 前記入力パターンを複数の領域に分割し、該領域毎に、
前記画素の値が所定範囲内となっている画素の数を計数
する画素数計数手段と、 前記画素数計数手段が計数した領域毎の画素数の分布状
態から前記入力パターンの属するカテゴリの候補を特定
する候補特定手段と、 前記候補特定手段が特定した候補を対象に、前記入力パ
ターンの属するカテゴリの認識を行うカテゴリ認識手段
と、 を具備することを特徴とするパターン認識装置。
1. An apparatus for recognizing a category to which an input pattern read by being decomposed into pixels, wherein the input pattern is divided into a plurality of regions, and for each of the regions,
A pixel number counting unit that counts the number of pixels whose pixel values are within a predetermined range; and a category candidate to which the input pattern belongs from a distribution state of the pixel number for each area counted by the pixel number counting unit. A pattern recognition apparatus comprising: a candidate specifying unit for specifying; and a category recognizing unit for recognizing a category to which the input pattern belongs for the candidates specified by the candidate specifying unit.
【請求項2】 画素に分解して読み取られた入力パター
ンの属するカテゴリを認識する装置において、 前記カテゴリに属する入力パターンが存在しないと考え
られる領域を基に作成された空白パターンを該カテゴリ
毎に記憶したパターン記憶手段と、 前記パターン記憶手段に記憶された空白パターンを前記
入力パターンと比較して、該入力パターンが属するカテ
ゴリを認識するカテゴリ認識手段と、 を具備することを特徴とするパターン認識装置。
2. An apparatus for recognizing a category to which an input pattern read by being decomposed into pixels belongs, wherein a blank pattern created based on an area in which the input pattern belonging to the category does not exist does not exist. Pattern recognition means comprising: a stored pattern storage means; and a category recognition means for recognizing a category to which the input pattern belongs by comparing a blank pattern stored in the pattern storage means with the input pattern. apparatus.
【請求項3】 画素に分解して読み取られた入力パター
ンの属するカテゴリを認識する装置において、 前記入力パターンを構成する画素の位置に注目してヒス
トグラムを作成するヒストグラム作成手段と、 前記ヒストグラム作成手段が作成したヒストグラムを基
に、前記入力パターンの属するカテゴリを認識するカテ
ゴリ認識手段と、 を具備することを特徴とするパターン認識装置。
3. An apparatus for recognizing a category to which an input pattern read after being decomposed into pixels, wherein a histogram creating unit which creates a histogram by focusing on a position of a pixel constituting the input pattern; A category recognition unit for recognizing a category to which the input pattern belongs based on the histogram created by the pattern recognition apparatus.
【請求項4】 前記ヒストグラム作成手段は、予め定め
た方向上の位置別に、前記画素の値が所定範囲内となっ
ている画素の数を計数することで前記ヒストグラムを作
成する、 ことを特徴とする請求項3記載のパターン認識装置。
4. The histogram creating means creates the histogram by counting the number of pixels in which the value of the pixel is within a predetermined range for each position in a predetermined direction. The pattern recognition device according to claim 3, wherein
【請求項5】 前記予め定めた方向として、前記入力パ
ターンの縦方向、及び横方向の何れかを少なくとも含
む、 ことを特徴とする請求項4記載のパターン認識装置。
5. The pattern recognition device according to claim 4, wherein the predetermined direction includes at least one of a vertical direction and a horizontal direction of the input pattern.
【請求項6】 前記カテゴリ認識手段が前記入力パター
ンの属するカテゴリを認識できなかった場合に、該入力
パターンの濃度を調整するための濃度調整手段、 を更に具備することを特徴とする請求項1〜5のうちの
何れか1項に記載のパターン認識装置。
6. The apparatus according to claim 1, further comprising a density adjusting unit for adjusting the density of the input pattern when the category recognizing unit cannot recognize the category to which the input pattern belongs. The pattern recognition device according to any one of claims 1 to 5.
【請求項7】 画素に分解して画像を読み取り、該読み
取った画像中に存在するパターンの属するカテゴリの認
識をパターン認識装置に行わせる装置において、 前記画像の読み取りを行う画像読取手段と、 前記画像読取手段が読み取った画像中に存在するパター
ンの属するカテゴリの認識を前記パターン認識装置に依
頼する認識依頼手段と、 前記パターン認識装置が前記パターンの属するカテゴリ
を認識できなかった場合に、前記画像読取手段が前記画
像を読み取る際の濃度を調整する濃度調整手段と、 を具備することを特徴とする画像読取装置。
7. An apparatus for reading an image by decomposing the image into pixels and for causing a pattern recognition device to recognize a category to which a pattern present in the read image belongs, an image reading means for reading the image, A recognition requesting unit for requesting the pattern recognition device to recognize a category to which a pattern present in an image read by the image reading unit belongs; and if the pattern recognition device cannot recognize the category to which the pattern belongs, the image An image reading apparatus comprising: a density adjusting unit that adjusts the density when the reading unit reads the image.
【請求項8】 画素に分解して読み取られた入力パター
ンの属するカテゴリを認識するための方法であって、 前記入力パターンを複数の領域に分割して、該領域毎
に、前記画素の値が所定範囲内となっている画素の数を
計数し、 前記領域毎に計数した画素数の分布状態から前記入力パ
ターンの属するカテゴリの候補を特定し、 前記特定した候補を対象に、該候補のなかから前記入力
パターンの属するカテゴリを認識する、 ことを特徴とするパターン認識方法。
8. A method for recognizing a category to which an input pattern read after being decomposed into pixels, wherein the input pattern is divided into a plurality of regions, and for each of the regions, the value of the pixel is Counting the number of pixels falling within a predetermined range, identifying a candidate for a category to which the input pattern belongs from the distribution state of the number of pixels counted for each area, and targeting the identified candidate, among the candidates Recognizing a category to which the input pattern belongs from the following.
【請求項9】 画素に分解して読み取られた入力パター
ンの属するカテゴリを認識するための方法であって、 前記カテゴリに属する入力パターンが存在しないと考え
られる領域を基に空白パターンを該カテゴリ別に作成
し、 前記カテゴリ別に作成した空白パターンを前記入力パタ
ーンと比較して、該入力パターンが属するカテゴリを認
識する、 ことを特徴とするパターン認識方法。
9. A method for recognizing a category to which an input pattern read by being decomposed into pixels belongs, wherein a blank pattern is classified for each category based on an area where an input pattern belonging to the category does not exist. And a blank pattern created for each category is compared with the input pattern to recognize a category to which the input pattern belongs.
【請求項10】 画素に分解して読み取られた入力パタ
ーンの属するカテゴリを認識するための方法であって、 前記入力パターンを構成する画素の位置に注目してヒス
トグラムを作成し、 前記作成したヒストグラムを基に、前記入力パターンの
属するカテゴリを認識する、 ことを特徴とするパターン認識方法。
10. A method for recognizing a category to which an input pattern read after being decomposed into pixels, wherein a histogram is created by focusing on positions of pixels constituting the input pattern, and the created histogram is created. And recognizing a category to which the input pattern belongs based on the following.
【請求項11】 画素に分解して読み取られた入力パタ
ーンの属するカテゴリを認識する装置が読み取り可能な
記録媒体であって、 前記入力パターンを複数の領域に分割し、該領域毎に、
前記画素の値が所定範囲内となっている画素の数を計数
する機能と、 前記計数する機能により計数した領域毎の画素数の分布
状態から前記入力パターンの属するカテゴリの候補を特
定する機能と、 前記特定する機能により特定した候補を対象に、前記入
力パターンの属するカテゴリの認識を行う機能と、 を実現させるためのプログラムを記録した記録媒体。
11. A recording medium readable by an apparatus that recognizes a category to which an input pattern read by being decomposed into pixels belongs, wherein the input pattern is divided into a plurality of areas, and for each of the areas,
A function of counting the number of pixels whose pixel values are within a predetermined range; and a function of specifying a category candidate to which the input pattern belongs from a distribution state of the number of pixels for each area counted by the counting function. And a function of recognizing a category to which the input pattern belongs with respect to a candidate specified by the specifying function.
【請求項12】 画素に分解して読み取られた入力パタ
ーンの属するカテゴリを認識する装置が読み取り可能な
記録媒体であって、 前記カテゴリに属する入力パターンが存在しないと考え
られる領域を基に作成された空白パターンを、該カテゴ
リ毎に記憶手段から読み出す機能と、 前記読み出す機能により読み出された空白パターンを前
記入力パターンと比較して、該入力パターンが属するカ
テゴリを認識する機能と、 を実現させるためのプログラムを記録した記録媒体。
12. A recording medium readable by an apparatus that recognizes a category to which an input pattern read by being decomposed into pixels belongs, wherein the recording medium is created based on an area where an input pattern belonging to the category does not exist. And a function of comparing the blank pattern read by the reading function with the input pattern and recognizing a category to which the input pattern belongs. Recording medium on which a program for recording is recorded.
【請求項13】 画素に分解して読み取られた入力パタ
ーンの属するカテゴリを認識する装置が読み取り可能な
記録媒体であって、 前記入力パターンを構成する画素の位置に注目してヒス
トグラムを作成する機能と、 前記作成する機能により作成したヒストグラムを基に、
前記入力パターンの属するカテゴリを認識する機能と、 を実現させるためのプログラムを記録した記録媒体。
13. A recording medium readable by an apparatus for recognizing a category to which an input pattern read after being decomposed into pixels, the function of creating a histogram focusing on the positions of pixels constituting the input pattern And, based on the histogram created by the creating function,
And a function of recognizing a category to which the input pattern belongs.
JP2000377731A 2000-12-12 2000-12-12 Pattern-recognizing device, image reader, pattern- recognizing method and recording medium Pending JP2002183666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000377731A JP2002183666A (en) 2000-12-12 2000-12-12 Pattern-recognizing device, image reader, pattern- recognizing method and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000377731A JP2002183666A (en) 2000-12-12 2000-12-12 Pattern-recognizing device, image reader, pattern- recognizing method and recording medium

Publications (1)

Publication Number Publication Date
JP2002183666A true JP2002183666A (en) 2002-06-28

Family

ID=18846407

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000377731A Pending JP2002183666A (en) 2000-12-12 2000-12-12 Pattern-recognizing device, image reader, pattern- recognizing method and recording medium

Country Status (1)

Country Link
JP (1) JP2002183666A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004295416A (en) * 2003-03-26 2004-10-21 Matsushita Electric Works Ltd Image processing apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004295416A (en) * 2003-03-26 2004-10-21 Matsushita Electric Works Ltd Image processing apparatus

Similar Documents

Publication Publication Date Title
JP5214330B2 (en) Image processing apparatus, barcode processing apparatus, and image processing method
US4933979A (en) Data reading apparatus for reading data from form sheet
JP2004259254A (en) Magnetic ink character reading device and its reading processing method
JP3640573B2 (en) Bar code reading method and bar code reading system
WO1991017519A1 (en) Row-by-row segmentation and thresholding for optical character recognition
JP4945739B2 (en) Character string recognition method and character string recognition apparatus
JP5630689B2 (en) Character recognition method and character recognition device
US11430235B2 (en) Image processing apparatus, image processing method, and storage medium
JPH07182448A (en) Character recognition method
JP2002183666A (en) Pattern-recognizing device, image reader, pattern- recognizing method and recording medium
JP6624120B2 (en) Character recognition device, character recognition method, character recognition program, and computer-readable recording medium storing character recognition program
JP2008084105A (en) Character cutout method and character recognition device
US8125691B2 (en) Information processing apparatus and method, computer program and computer-readable recording medium for embedding watermark information
JP2021076882A (en) Image reading and processing system
JPH10207978A (en) Character pattern collating method and device therefor
JP4009314B2 (en) Form layout identification method and form layout identification system
JP2002024743A (en) Image reading system and image reading method
JPH09128477A (en) Method and apparatus for read or bar code
JP2578767B2 (en) Image processing method
JP2002259909A (en) Character reader
JP2001084333A (en) Character reader
JPH09259196A (en) Optical character reader and its control method
JP2006040256A (en) Magnetic ink character reading apparatus and method, program and pos terminal equipment
JPH0769938B2 (en) Character reader
JPH0962789A (en) Mark recognition method for optical character reader

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030902