JP2012159912A - Image processing device and control method of image processing device - Google Patents

Image processing device and control method of image processing device Download PDF

Info

Publication number
JP2012159912A
JP2012159912A JP2011017628A JP2011017628A JP2012159912A JP 2012159912 A JP2012159912 A JP 2012159912A JP 2011017628 A JP2011017628 A JP 2011017628A JP 2011017628 A JP2011017628 A JP 2011017628A JP 2012159912 A JP2012159912 A JP 2012159912A
Authority
JP
Japan
Prior art keywords
axis direction
character
magnetic ink
ink character
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2011017628A
Other languages
Japanese (ja)
Inventor
Keiichiro Kadono
啓一郎 門野
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2011017628A priority Critical patent/JP2012159912A/en
Publication of JP2012159912A publication Critical patent/JP2012159912A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To suppress an occurrence of erroneous recognition of a CMC-7 character caused by recognition of a blot, a signature or the like as a part of the CMC-7 character and to accurately recognize the CMC-7 character when reading the CMC-7 character.SOLUTION: By comparing a cumulative quantity NWH that accumulates a quantity of white pixel regions WG as regions between a vertical bar Rn and a vertical bar R(n+1), in other words, the cumulative quantity NWH per a character height H, length in an X-axis direction, of a magnetic ink character, a position of the magnetic ink character having the character height H in the X-axis direction is determined, the position of the magnetic ink character in the X-axis direction is accurately recognized and pattern matching processing of the magnetic ink character can be performed. In such a manner, it is possible to provide an image processing device that suppresses erroneous recognition of the magnetic ink character and realizes recognition, of which a recognition speed is increased, of the magnetic ink character.

Description

本発明は、画像処理装置、画像処理装置の制御方法に関する。   The present invention relates to an image processing apparatus and a control method for the image processing apparatus.

従来から、小切手などの記録媒体に、磁性物質を含んだインクで印刷されて記録された文字(磁気インク文字)を読み取る文字認識技術の一つに、磁気インク文字認識(MICR:Magnetic Ink Character Reader)がある。磁気インク文字(MICR文字)には、いくつかのフォントがあり、その一つにCMC−7文字が挙げられる。
記録媒体に印刷されて記録されたCMC−7文字を、光学文字認識(OCR:Optical Character Recognition)する方法および装置が開示されている(たとえば、特許文献1参照)。
Conventionally, one of the character recognition technologies that read characters (magnetic ink characters) printed on a recording medium such as a check with ink containing a magnetic substance is a magnetic ink character recognition (MICR: Magnetic Ink Character Reader). ) There are several fonts for magnetic ink characters (MICR characters), one of which is CMC-7.
A method and apparatus for optical character recognition (OCR: Optical Character Recognition) of CMC-7 characters printed and recorded on a recording medium is disclosed (for example, see Patent Document 1).

特開平5−250515号公報Japanese Patent Laid-Open No. 5-250515

しかしながら、CMC−7文字が印刷されて記録された位置または範囲である文字枠の中において、CMC−7文字以外に汚れまたはサインなどが存在していると、CMC−7文字を読み取る際に、汚れまたはサインなどをCMC−7文字の一部と認識することにより、CMC−7文字の誤認識を起こしてしまう。これにより、CMC−7文字を正確に認識するために、何度も読み取りを繰り返して実行する必要があり、CMC−7文字を認識するまでに時間がかかるという課題がある。   However, if there is dirt or a sign other than the CMC-7 character in the character frame which is the position or range where the CMC-7 character is printed and recorded, when reading the CMC-7 character, Recognizing dirt or a sign as a part of the CMC-7 character causes erroneous recognition of the CMC-7 character. As a result, in order to accurately recognize the CMC-7 character, it is necessary to repeatedly read and execute it, and there is a problem that it takes time to recognize the CMC-7 character.

本発明は、上記課題の少なくとも一部を解決するためになされたものである。以下の形態または適用例により実現することが可能である。   The present invention has been made to solve at least a part of the above problems. It can be realized by the following forms or application examples.

[適用例1]本適用例にかかる画像処理装置は、X軸方向に延長する縦バーが、前記X軸方向に直交するY軸方向に間隔を空けて複数配置されて構成されている磁気インク文字を含む画像を処理する画像処理装置であって、少なくとも前記磁気インク文字の前記X軸方向の位置を検出するX軸方向位置検出部とを備え、前記X軸方向位置検出部は、前記磁気インク文字の前記Y軸方向における前記縦バーと他の前記縦バーとの間の領域の数量を算出する数量算出部と、前記数量を累積して前記磁気インク文字の前記X軸方向の長さあたりの累積数量を算出する累積数量算出部と、前記累積数量をもとにして前記磁気インク文字の前記X軸方向の位置を決定するX軸方向位置決定部と、前記磁気インク文字のパターンマッチング処理を実行するパターンマッチング処理部とを有することを要旨とする。   Application Example 1 In the image processing apparatus according to this application example, a plurality of vertical bars extending in the X-axis direction are arranged at intervals in the Y-axis direction orthogonal to the X-axis direction. An image processing apparatus for processing an image including a character, comprising at least an X-axis direction position detection unit for detecting a position of the magnetic ink character in the X-axis direction, wherein the X-axis direction position detection unit A quantity calculation unit for calculating the quantity of an area between the vertical bar and the other vertical bar in the Y-axis direction of the ink character; and the length of the magnetic ink character in the X-axis direction by accumulating the quantity. A cumulative quantity calculation unit that calculates a cumulative quantity per unit, an X-axis direction position determination unit that determines a position of the magnetic ink character in the X-axis direction based on the cumulative quantity, and pattern matching of the magnetic ink character Execute the process And summarized in that with the turn matching processing unit.

これによれば、X軸方向位置決定部において、縦バーと他の縦バーとの間の領域の数量を累積した累積数量、言い換えると磁気インク文字のX軸方向の長さあたりの累積数量を比較することにより、磁気インク文字のX軸方向の位置を決定されて、磁気インク文字のX軸方向の位置を正確に認識して磁気インク文字のパターンマッチング処理を実行することができる。これにより、汚れまたはサインなどを磁気インク文字の一部と認識して磁気インク文字の誤認識を起こしてしまい、正確に認識するまで、磁気インク文字のパターンマッチング処理を何度も繰り返して実行する必要がない。このようにして、磁気インク文字の誤認識を抑制し認識の速度を速めた磁気インク文字の認識の実現を可能とする画像処理装置を提供することができる。   According to this, in the X-axis direction position determination unit, the cumulative quantity obtained by accumulating the quantity of the area between the vertical bar and the other vertical bars, in other words, the cumulative quantity per length in the X-axis direction of the magnetic ink characters is obtained. By comparing, the position of the magnetic ink character in the X-axis direction can be determined, and the position of the magnetic ink character in the X-axis direction can be accurately recognized to execute the pattern matching process of the magnetic ink character. This causes dirt or a signature to be recognized as a part of the magnetic ink character, causing erroneous recognition of the magnetic ink character, and repeatedly performing pattern matching processing of the magnetic ink character until it is accurately recognized. There is no need. In this way, it is possible to provide an image processing apparatus that can realize recognition of magnetic ink characters that suppresses erroneous recognition of magnetic ink characters and accelerates recognition.

[適用例2]本適用例にかかる画像処理装置は、X軸方向に延長する縦バーが、前記X軸方向に直交するY軸方向に間隔を空けて複数配置されて構成されている磁気インク文字を含む画像を処理する画像処理装置であって、少なくとも前記磁気インク文字の前記X軸方向の位置を検出するX軸方向位置検出部とを備え、前記X軸方向位置検出部は、前記磁気インク文字の前記Y軸方向における前記縦バーの領域の数量を算出する数量算出部と、前記数量を累積して前記磁気インク文字の前記X軸方向の長さあたりの累積数量を算出する累積数量算出部と、前記累積数量をもとにして前記磁気インク文字の前記X軸方向の位置を決定するX軸方向位置決定部と、前記磁気インク文字のパターンマッチング処理を実行するパターンマッチング処理部とを有することを要旨とする。   Application Example 2 In the image processing apparatus according to this application example, the magnetic ink is configured such that a plurality of vertical bars extending in the X-axis direction are arranged at intervals in the Y-axis direction orthogonal to the X-axis direction. An image processing apparatus for processing an image including a character, comprising at least an X-axis direction position detection unit for detecting a position of the magnetic ink character in the X-axis direction, wherein the X-axis direction position detection unit A quantity calculation unit for calculating the quantity of the vertical bar area in the Y-axis direction of the ink character; and a cumulative quantity for calculating the cumulative quantity of the magnetic ink character per length in the X-axis direction by accumulating the quantity. A calculation unit; an X-axis direction position determination unit that determines a position of the magnetic ink character in the X-axis direction based on the accumulated quantity; and a pattern matching process that executes a pattern matching process of the magnetic ink character. And summarized in that a and.

これによれば、X軸方向位置決定部において、縦バーの領域の数量を累積した累積数量、言い換えると磁気インク文字のX軸方向の長さあたりの累積数量を比較することにより、磁気インク文字のX軸方向の位置を決定されて、磁気インク文字のX軸方向の位置を正確に認識して磁気インク文字のパターンマッチング処理を実行することができる。これにより、汚れまたはサインなどを磁気インク文字の一部と認識して磁気インク文字の誤認識を起こしてしまい、正確に認識するまで、磁気インク文字のパターンマッチング処理を何度も繰り返して実行する必要がない。このようにして、磁気インク文字の誤認識を抑制し認識の速度を速めた磁気インク文字の認識の実現を可能とする画像処理装置を提供することができる。   According to this, in the X-axis direction position determination unit, the cumulative quantity obtained by accumulating the quantity of the vertical bar area, in other words, the cumulative quantity per length in the X-axis direction of the magnetic ink character is compared, thereby comparing the magnetic ink character. The position in the X-axis direction is determined, the position of the magnetic ink character in the X-axis direction can be accurately recognized, and the pattern matching process of the magnetic ink character can be executed. This causes dirt or a signature to be recognized as a part of the magnetic ink character, causing erroneous recognition of the magnetic ink character, and repeatedly performing pattern matching processing of the magnetic ink character until it is accurately recognized. There is no need. In this way, it is possible to provide an image processing apparatus that can realize recognition of magnetic ink characters that suppresses erroneous recognition of magnetic ink characters and accelerates recognition.

[適用例3]本適用例にかかる画像処理装置の制御方法は、X軸方向に延長する縦バーが、前記X軸方向に直交するY軸方向に間隔を空けて複数配置されて構成されている磁気インク文字を含む画像を処理する画像処理装置の制御方法であって、少なくとも前記磁気インク文字の前記X軸方向の位置を検出するX軸方向位置検出ステップとを備え、前記X軸方向位置検出ステップは、前記磁気インク文字を前記Y軸方向における前記縦バーと他の前記縦バーとの間の領域の数量を算出する数量算出ステップと、前記数量を累積して前記磁気インク文字の前記X軸方向の長さあたりの累積数量を算出する累積数量算出ステップと、前記累積数量をもとにして前記磁気インク文字の前記X軸方向の位置を決定するX軸方向位置決定ステップと、前記磁気インク文字のパターンマッチング処理を実行するパターンマッチング処理ステップとを含むことを要旨とする。   Application Example 3 The control method of the image processing apparatus according to this application example is configured such that a plurality of vertical bars extending in the X-axis direction are arranged at intervals in the Y-axis direction orthogonal to the X-axis direction. A method for controlling an image processing apparatus that processes an image including a magnetic ink character, comprising: an X-axis direction position detection step for detecting at least a position of the magnetic ink character in the X-axis direction, The detecting step includes a quantity calculating step for calculating the quantity of the magnetic ink character in an area between the vertical bar and the other vertical bar in the Y-axis direction, and accumulating the quantity to calculate the magnetic ink character in the magnetic ink character. A cumulative quantity calculating step for calculating a cumulative quantity per length in the X-axis direction; an X-axis direction position determining step for determining a position in the X-axis direction of the magnetic ink character based on the cumulative quantity; And summarized in that includes a pattern matching processing step of performing a pattern matching process of the magnetic ink characters.

これによれば、X軸方向位置決定ステップにおいて、縦バーと他の縦バーとの間の領域の数量を累積した累積数量、言い換えると磁気インク文字のX軸方向の長さあたりの累積数量を比較することにより、磁気インク文字のX軸方向の位置を決定されて、磁気インク文字のX軸方向の位置を正確に認識して磁気インク文字のパターンマッチング処理を実行することができる。これにより、汚れまたはサインなどを磁気インク文字の一部と認識して磁気インク文字の誤認識を起こしてしまい、正確に認識するまで、磁気インク文字のパターンマッチング処理を何度も繰り返して実行する必要がない。このようにして、磁気インク文字の誤認識を抑制し認識の速度を速めた磁気インク文字の認識の実現を可能とする画像処理装置の制御方法を提供することができる。   According to this, in the X-axis direction position determination step, the cumulative quantity obtained by accumulating the quantity of the area between the vertical bar and the other vertical bars, in other words, the cumulative quantity per length of the magnetic ink characters in the X-axis direction is obtained. By comparing, the position of the magnetic ink character in the X-axis direction can be determined, and the position of the magnetic ink character in the X-axis direction can be accurately recognized to execute the pattern matching process of the magnetic ink character. This causes dirt or a signature to be recognized as a part of the magnetic ink character, causing erroneous recognition of the magnetic ink character, and repeatedly performing pattern matching processing of the magnetic ink character until it is accurately recognized. There is no need. In this way, it is possible to provide a control method for an image processing apparatus that can realize recognition of magnetic ink characters that suppresses erroneous recognition of magnetic ink characters and accelerates recognition.

[適用例4]本適用例にかかる画像処理装置の制御方法は、X軸方向に延長する縦バーが、前記X軸方向に直交するY軸方向に間隔を空けて複数配置されて構成されている磁気インク文字を含む画像を処理する画像処理装置の制御方法であって、少なくとも前記磁気インク文字の前記X軸方向の位置を検出するX軸方向位置検出ステップとを備え、前記X軸方向位置検出ステップは、前記磁気インク文字を前記Y軸方向における前記縦バーの領域の数量を算出する数量算出ステップと、前記数量を累積して前記磁気インク文字の前記X軸方向の長さあたりの累積数量を算出する累積数量算出ステップと、前記累積数量をもとにして前記磁気インク文字の前記X軸方向の位置を決定するX軸方向位置決定ステップと、前記磁気インク文字のパターンマッチング処理を実行するパターンマッチング処理ステップとを有することを要旨とする。   Application Example 4 The control method of the image processing apparatus according to this application example is configured such that a plurality of vertical bars extending in the X-axis direction are arranged at intervals in the Y-axis direction orthogonal to the X-axis direction. A method for controlling an image processing apparatus that processes an image including a magnetic ink character, comprising: an X-axis direction position detection step for detecting at least a position of the magnetic ink character in the X-axis direction, The detecting step includes a quantity calculating step of calculating the quantity of the vertical bar area in the Y-axis direction of the magnetic ink character, and accumulating the quantity to accumulate the magnetic ink character per length in the X-axis direction. A cumulative quantity calculating step for calculating a quantity; an X-axis direction position determining step for determining a position of the magnetic ink character in the X-axis direction based on the cumulative quantity; and a pattern of the magnetic ink character. And summarized in that and a pattern matching processing step of performing the down matching.

これによれば、X軸方向位置決定ステップにおいて、縦バーの領域の数量を累積した累積数量、言い換えると磁気インク文字のX軸方向の長さあたりの累積数量を比較することにより、磁気インク文字のX軸方向の位置を決定されて、磁気インク文字のX軸方向の位置を正確に認識して磁気インク文字のパターンマッチング処理を実行することができる。これにより、汚れまたはサインなどを磁気インク文字の一部と認識して磁気インク文字の誤認識を起こしてしまい、正確に認識するまで、磁気インク文字のパターンマッチング処理を何度も繰り返して実行する必要がない。このようにして、磁気インク文字の誤認識を抑制し認識の速度を速めた磁気インク文字の認識の実現を可能とする画像処理装置の制御方法を提供することができる。   According to this, in the X-axis direction position determination step, by comparing the cumulative quantity obtained by accumulating the quantity of the vertical bar area, in other words, the cumulative quantity per length of the magnetic ink letter in the X-axis direction, The position in the X-axis direction is determined, the position of the magnetic ink character in the X-axis direction can be accurately recognized, and the pattern matching process of the magnetic ink character can be executed. This causes dirt or a signature to be recognized as a part of the magnetic ink character, causing erroneous recognition of the magnetic ink character, and repeatedly performing pattern matching processing of the magnetic ink character until it is accurately recognized. There is no need. In this way, it is possible to provide a control method for an image processing apparatus that can realize recognition of magnetic ink characters that suppresses erroneous recognition of magnetic ink characters and accelerates recognition.

第1実施形態の小切手読取装置を示す外観斜視図。1 is an external perspective view showing a check reading device according to a first embodiment. 第1実施形態の小切手読取装置の内部構造を示す説明図。Explanatory drawing which shows the internal structure of the check reading apparatus of 1st Embodiment. 第1実施形態の小切手読取装置の制御系を示すブロック図。The block diagram which shows the control system of the check reading apparatus of 1st Embodiment. 第1実施形態の光学文字認識部の動作を示すフローチャート。The flowchart which shows operation | movement of the optical character recognition part of 1st Embodiment. 第1実施形態の2値化した文字列対応領域画像データを所定の座標系に展開した状態の一例を模式的に示す図。The figure which shows typically an example of the state which expand | deployed the character string corresponding | compatible area | region image data of 1st Embodiment to the predetermined coordinate system. 第1実施形態のラベリング処理の実行時における光学文字認識部の動作を示すフローチャート。The flowchart which shows operation | movement of the optical character recognition part at the time of execution of the labeling process of 1st Embodiment. 第1実施形態のバンド幅検出処理の実行時における光学文字認識部の動作を示すフローチャート。The flowchart which shows operation | movement of the optical character recognition part at the time of execution of the bandwidth detection process of 1st Embodiment. 第1実施形態の文字列対応領域画像データ上に確定文字枠を表示した様子を示す図。The figure which shows a mode that the fixed character frame was displayed on the character string corresponding | compatible area | region image data of 1st Embodiment. 第1実施形態の生成された文字列画像データを示す図。The figure which shows the character string image data produced | generated of 1st Embodiment. 第1実施形態の磁気インク文字に係る画像および確定文字枠DMを示す概略図。Schematic which shows the image and fixed character frame DM which concern on the magnetic ink character of 1st Embodiment. 光学文字認識部80の制御系の一部を示す概略ブロック図。4 is a schematic block diagram showing a part of a control system of the optical character recognition unit 80. FIG. 第1実施形態の光学文字認識処理の実行時における光学文字認識部の動作を示すフローチャート。The flowchart which shows operation | movement of the optical character recognition part at the time of execution of the optical character recognition process of 1st Embodiment. 第2実施形態の磁気インク文字に係る画像および確定文字枠DMを示す概略図。Schematic which shows the image and fixed character frame DM which concern on the magnetic ink character of 2nd Embodiment. 第2実施形態の光学文字認識処理の実行時における光学文字認識部の動作を示すフローチャート。The flowchart which shows operation | movement of the optical character recognition part at the time of execution of the optical character recognition process of 2nd Embodiment.

以下の実施形態では、画像処理装置として小切手読取装置1を一例に挙げて説明する。   In the following embodiments, a check reading apparatus 1 is described as an example of an image processing apparatus.

(第1実施形態)
以下、図面を参照して本発明の第1実施形態について説明する。
図1は、本実施形態の小切手読取装置1を示す外観斜視図である。
小切手読取装置1は、シート状の記録媒体である小切手4に対し、小切手4に記録された磁気インク文字(MICR文字)の読み取りや、小切手4の両面の画像の読み取り、小切手4に対する裏書きに係る所定の画像の記録等の処理を行う装置である。
小切手読取装置1は、本体ケース2と、この上側に被せた蓋ケース3とを備えており、この内部に各部品が組み込まれた構成となっている。
蓋ケース3には、上から見た場合にU形状をした細幅の垂直溝からなる小切手4の搬送路5が形成されており、この搬送路5の一方の端は広幅の垂直溝からなる小切手供給部6に連通しており、搬送路5の他方の端は左右に分岐して、それぞれ広幅の垂直溝からなる第1小切手排出部7および第2小切手排出部8に繋がっている。
(First embodiment)
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is an external perspective view showing a check reading apparatus 1 of the present embodiment.
The check reading device 1 reads a magnetic ink character (MICR character) recorded on the check 4, reads images on both sides of the check 4, and endorses the check 4 with respect to the check 4 that is a sheet-like recording medium. It is an apparatus that performs processing such as recording of a predetermined image.
The check reading device 1 includes a main body case 2 and a lid case 3 placed on the upper side of the main body case 2, and each component is incorporated therein.
The cover case 3 is formed with a conveyance path 5 of a check 4 composed of a narrow vertical groove having a U shape when viewed from above, and one end of the conveyance path 5 is composed of a wide vertical groove. The other end of the conveyance path 5 branches to the left and right, and is connected to a first check discharge unit 7 and a second check discharge unit 8 each having a wide vertical groove.

小切手4の表面4aには、所定の模様が形成された背景に、金額、振出人、番号、サインなどが記載されており、その下端部分には、図1に示すように、長辺方向に延びる磁気インク文字列4Aが記録されている。磁気インク文字列4Aは、複数の磁気インク文字が横方向に並んで形成されている。
また、小切手4の裏面4bには、裏書き欄が形成されている。この裏書き欄には、記録装置56(図2参照)によって、裏書きに係る所定の画像が記録される。
小切手4は、上端4eが上方に位置し下端4fが下方に位置するように上下方向が揃えられ、かつ、表面4aがU形状の搬送路5の外側を向くように表裏が揃えられた状態(図1に示す状態)で、小切手供給部6に挿入される。小切手供給部6に挿入された小切手4は、後端4dを先頭として搬送路5に送り出される。
小切手供給部6から送り出された小切手4は、搬送路5に沿って搬送されながら、表面4aの画像である表面画像、および裏面4bの画像である裏面画像が読み取られ、さらに、表面4aに記録されている磁気インク文字列4Aが磁気的に読み取られる。そして、磁気インク文字列4Aの読み取りが成功した小切手4については、裏書きに係る所定の画像の記録が行われた後に、第1小切手排出部7に排出される。一方、読み取りが失敗した小切手4については、裏書きに係る所定の画像が記録されることなく、第2小切手排出部8に排出される。第2小切手排出部8に排出された小切手4は、読み取りが失敗した原因の究明や、再読み取り等の処理が行われる。
On the surface 4a of the check 4, a money amount, a payer, a number, a signature, and the like are written on the background on which a predetermined pattern is formed, and the lower end portion thereof has a long side direction as shown in FIG. An extended magnetic ink character string 4A is recorded. The magnetic ink character string 4A is formed by arranging a plurality of magnetic ink characters in the horizontal direction.
In addition, an endorsement column is formed on the back surface 4 b of the check 4. In the endorsement column, a predetermined image related to the endorsement is recorded by the recording device 56 (see FIG. 2).
The check 4 is aligned in the vertical direction so that the upper end 4e is positioned upward and the lower end 4f is positioned downward, and the front and back are aligned so that the surface 4a faces the outside of the U-shaped conveyance path 5 ( In the state shown in FIG. 1, it is inserted into the check supply unit 6. The check 4 inserted into the check supply unit 6 is sent out to the transport path 5 with the rear end 4d as the head.
As the check 4 sent out from the check supply unit 6 is conveyed along the conveyance path 5, the front image as the image of the front surface 4a and the back image as the image of the back surface 4b are read and further recorded on the front surface 4a. The magnetic ink character string 4A being read is magnetically read. The check 4 for which the magnetic ink character string 4 </ b> A has been successfully read is discharged to the first check discharge unit 7 after a predetermined image related to the endorsement is recorded. On the other hand, the check 4 that has failed to be read is discharged to the second check discharge unit 8 without recording a predetermined image related to the endorsement. The check 4 discharged to the second check discharge unit 8 is subjected to processing such as investigation of the cause of reading failure and re-reading.

図2は、小切手読取装置1の内部構造を示す説明図である。
小切手供給部6には、小切手4を搬送路5に送り出すための小切手送り出し機構10が配置されている。小切手送り出し機構10は、繰り出しローラー11、送り出しローラー12、この送り出しローラー12に押し付けられているリタードローラー13、送り出し用モーター14、および小切手押し付け用のホッパー15を備えている。
送り出し用モーター14が駆動すると、小切手供給部6に入れた小切手4がホッパー15によって繰り出しローラー11の側に押し付けられ、この状態で、繰り出しローラー11および送り出しローラー12が同期回転する。
繰り出しローラー11によって小切手4は送り出しローラー12とリタードローラー13の間に送り込まれる。リタードローラー13には所定の回転負荷が与えられており、送り出しローラー12に直接に接触している一枚の小切手4のみが他の小切手4から分離されて搬送路5に送り出される。
搬送路5は上述したようにU形状をしており、小切手供給部6に繋がっている直線状の上流側搬送路部分21と、第1、第2小切手排出部7、8に繋がっており、僅かに折れ曲がった状態で延びている下流側搬送路部分23と、これらの間を繋ぐ湾曲搬送路部分22とを備えている。
FIG. 2 is an explanatory diagram showing the internal structure of the check reading device 1.
The check supply unit 6 is provided with a check delivery mechanism 10 for sending the check 4 to the transport path 5. The check feeding mechanism 10 includes a feeding roller 11, a feeding roller 12, a retard roller 13 pressed against the feeding roller 12, a feeding motor 14, and a check pressing hopper 15.
When the feeding motor 14 is driven, the check 4 put in the check supply unit 6 is pressed against the feeding roller 11 by the hopper 15, and in this state, the feeding roller 11 and the feeding roller 12 are rotated synchronously.
The check 4 is fed between the feed roller 12 and the retard roller 13 by the feed roller 11. The retard roller 13 is given a predetermined rotational load, and only one check 4 that is in direct contact with the delivery roller 12 is separated from the other checks 4 and delivered to the transport path 5.
The conveyance path 5 has a U shape as described above, and is connected to the linear upstream conveyance path portion 21 connected to the check supply unit 6 and the first and second check discharge units 7 and 8. A downstream conveyance path portion 23 that extends in a slightly bent state and a curved conveyance path portion 22 that connects them are provided.

小切手供給部6から搬送路5に送り出された小切手4を当該搬送路5に沿って搬送する小切手搬送機構30は、第1搬送ローラー31〜第6搬送ローラー36と、これらに押し付けられて連れ回りする第1、第2、第3、第4、第5、および第6押圧ローラー41,42,43,44,45,46と、第1搬送ローラー31〜第6搬送ローラー36を回転駆動するための搬送用モーター37とを備えている。第1搬送ローラー31〜第6搬送ローラー36は同期して回転するようになっている。搬送用モーター37として、例えばステッピングモーターが用いられている。このため、ステッピングモーターを駆動するステップ数により、小切手4の搬送量を知ることができる。
第1搬送ローラー31〜第3搬送ローラー33は、上流側搬送路部分21における上流端、その中程の位置、および湾曲搬送路部分22との境界位置にそれぞれ配置されている。第4搬送ローラー34は湾曲搬送路部分22における下流側の位置に配置されている。第5搬送ローラー35および第6搬送ローラー36は、下流側搬送路部分23における中程の位置および下流端にそれぞれ配置されている。
A check conveyance mechanism 30 that conveys the check 4 sent from the check supply unit 6 to the conveyance path 5 along the conveyance path 5 is pressed by the first conveyance roller 31 to the sixth conveyance roller 36 and the rotation. The first, second, third, fourth, fifth, and sixth pressing rollers 41, 42, 43, 44, 45, and 46 and the first transport roller 31 to the sixth transport roller 36 are rotationally driven. And a transfer motor 37. The 1st conveyance roller 31-the 6th conveyance roller 36 rotate in synchronization. For example, a stepping motor is used as the transport motor 37. For this reason, the conveyance amount of the check 4 can be known from the number of steps for driving the stepping motor.
The first transport roller 31 to the third transport roller 33 are respectively disposed at the upstream end of the upstream transport path portion 21, the middle position thereof, and the boundary position with the curved transport path portion 22. The fourth transport roller 34 is disposed at a downstream position in the curved transport path portion 22. The fifth transport roller 35 and the sixth transport roller 36 are respectively disposed at the middle position and the downstream end in the downstream transport path portion 23.

上流側搬送路部分21における第1搬送ローラー31および第2搬送ローラー32の間には、その上流側から磁気インク文字着磁用の磁石51、表面側コンタクトイメージスキャナー52、および裏面側コンタクトイメージスキャナー53が配置されている。表面側コンタクトイメージスキャナー52は、搬送路5を搬送される小切手4の表面4aに対向し、表面4aの画像である表面画像を読み取る。裏面側コンタクトイメージスキャナー53は、搬送路5を搬送される小切手4の裏面4bに対向し、裏面4bの画像である裏面画像を読み取る。   Between the first transport roller 31 and the second transport roller 32 in the upstream transport path portion 21, a magnet 51 for magnetizing magnetic ink characters, a front-side contact image scanner 52, and a back-side contact image scanner from the upstream side. 53 is arranged. The surface-side contact image scanner 52 faces the surface 4a of the check 4 conveyed on the conveyance path 5, and reads a surface image that is an image of the surface 4a. The back surface side contact image scanner 53 faces the back surface 4b of the check 4 conveyed on the conveyance path 5, and reads a back surface image which is an image of the back surface 4b.

また、第2搬送ローラー32および第3搬送ローラー33の間には、磁気インク文字の読み取り用の磁気ヘッド54が配置されており、磁気ヘッド54には、当該ヘッドに小切手4を押し付けるための押圧ローラー55が対峙している。
下流側搬送路部分23における第5搬送ローラー35および第6搬送ローラー36の間には、裏書きに係る所定の画像の記録用の記録装置56が配置されている。記録装置56は、搬送路5を搬送される小切手4の裏面4bの適切な位置に、適切な方向で所定の画像を記録可能な、印刷ヘッドやスタンプなどを備えている。
Further, a magnetic head 54 for reading magnetic ink characters is disposed between the second transport roller 32 and the third transport roller 33, and the magnetic head 54 is pressed to press the check 4 against the head. The roller 55 is confronting.
Between the fifth conveyance roller 35 and the sixth conveyance roller 36 in the downstream conveyance path portion 23, a recording device 56 for recording a predetermined image related to the endorsement is disposed. The recording device 56 includes a print head, a stamp, and the like that can record a predetermined image in an appropriate direction at an appropriate position on the back surface 4b of the check 4 conveyed on the conveyance path 5.

搬送路5には、小切手搬送制御のための各種センサーが配置されている。磁石51の手前側の位置には、送り出される小切手4の長さを検出するための用紙長検出器61が配置されている。裏面側コンタクトイメージスキャナー53と第2搬送ローラー32の間には、小切手4が重なった状態で搬送されていることを検出するための重送検出器62が配置されている。第4搬送ローラー34の手前側の位置にはジャム検出器63が配置されており、この検出器によって所定時間以上に亘って継続して小切手4が検出されている場合には、搬送路5に小切手4が詰まった紙詰まり状態になったことが分かる。第5搬送ローラー35の手間側の位置には、記録装置56によって裏書きされる小切手4の有無を検出するための印刷検出器64が配置されている。さらに、第6搬送ローラー36の下流側の位置、すなわち、搬送路5から第1小切手排出部7、第2小切手排出部8に分岐している分岐路9の位置には、これらに排出される小切手4を検出するための排出検出器65が配置されている。
この分岐路9には、駆動モーター67(図3参照)によって切り替え操作される切り替え板66が配置されている。切り替え板66は、第1小切手排出部7、第2小切手排出部8に対して、搬送路5の下流端を選択的に切り替え、小切手4を選択された排出部に導くための部材である。
Various sensors for check conveyance control are arranged in the conveyance path 5. A paper length detector 61 for detecting the length of the check 4 to be sent out is disposed at a position on the front side of the magnet 51. Between the back side contact image scanner 53 and the second conveyance roller 32, a double feed detector 62 for detecting that the check 4 is conveyed in an overlapped state is disposed. A jam detector 63 is arranged at a position on the front side of the fourth transport roller 34, and when the check 4 is continuously detected for a predetermined time or more by this detector, the jam is detected in the transport path 5. It can be seen that the check 4 is jammed. A print detector 64 for detecting the presence or absence of the check 4 endorsed by the recording device 56 is disposed at the position on the labor side of the fifth transport roller 35. Furthermore, it is discharged into these positions on the downstream side of the sixth transport roller 36, that is, the position of the branch path 9 that branches from the transport path 5 to the first check discharge section 7 and the second check discharge section 8. A discharge detector 65 for detecting the check 4 is arranged.
A switching plate 66 that is switched by a drive motor 67 (see FIG. 3) is disposed in the branch path 9. The switching plate 66 is a member for selectively switching the downstream end of the transport path 5 with respect to the first check discharge unit 7 and the second check discharge unit 8 and guiding the check 4 to the selected discharge unit.

図3は、小切手読取装置1の制御系を示す概略ブロック図である。
制御部71は、ホストコンピューター70のホスト側制御部73の制御の下、小切手読取装置1の各部を中枢的に制御するものであり、CPUや、ROM、RAM、その他の周辺回路等を備えている。
制御部71は、ホストコンピューター70のホスト側制御部73の制御の下、小切手送り出し用モーター14、搬送用モーター37を駆動して小切手4(図1参照)を一枚ずつ搬送路5に送り出させ、送り出された小切手4を搬送路5に沿って搬送させる。制御部71による小切手4の搬送制御は、搬送路5に配置されている用紙長検出器61、重送検出器62、ジャム検出器63、印刷検出器64および排出検出器65からの検出信号に基づいて行われる。
小切手4の搬送に伴って、表面側コンタクトイメージスキャナー52、および裏面側コンタクトイメージスキャナー53は、搬送路5を搬送される小切手4の表面の画像、裏面の画像をそれぞれ読み取り、読み取った画像を示す画像データを制御部71に出力する。制御部71は、これら画像データを、ホスト側制御部73に出力する。
また、磁気ヘッド54は、制御部71の制御の下、通過する磁気インク文字列4A(図1参照)によって形成される磁界の変化によって発生する起電力を検出し、検出信号として信号処理回路74に出力する。
信号処理回路74は、増幅器や、ノイズ除去用のフィルター回路、A/D変換器等を備え、磁気ヘッド54から入力された検出信号を、増幅し、波形整形し、データとして制御部71に出力する。制御部71は、信号処理回路74から入力された検出信号を示すデータを、ホスト側制御部73に送信する。
操作部75は、本体ケース2(図1参照)に形成された電源スイッチや、操作スイッチ等の各種スイッチを備え、これらスイッチに対するユーザーの操作を検出し、制御部71に出力する。
FIG. 3 is a schematic block diagram showing a control system of the check reading apparatus 1.
The control unit 71 centrally controls each unit of the check reading device 1 under the control of the host-side control unit 73 of the host computer 70, and includes a CPU, ROM, RAM, and other peripheral circuits. Yes.
The control unit 71 drives the check delivery motor 14 and the conveyance motor 37 under the control of the host-side control unit 73 of the host computer 70 to send the checks 4 (see FIG. 1) one by one to the conveyance path 5. The sent check 4 is transported along the transport path 5. The conveyance control of the check 4 by the control unit 71 is based on detection signals from the paper length detector 61, the double feed detector 62, the jam detector 63, the print detector 64, and the discharge detector 65 arranged in the conveyance path 5. Based on.
As the check 4 is transported, the front-side contact image scanner 52 and the back-side contact image scanner 53 respectively read the image on the front side and the back side of the check 4 transported on the transport path 5, and show the read images. The image data is output to the control unit 71. The control unit 71 outputs these image data to the host side control unit 73.
Further, the magnetic head 54 detects an electromotive force generated by a change in the magnetic field formed by the passing magnetic ink character string 4A (see FIG. 1) under the control of the control unit 71, and a signal processing circuit 74 as a detection signal. Output to.
The signal processing circuit 74 includes an amplifier, a noise removal filter circuit, an A / D converter, and the like, amplifies the detection signal input from the magnetic head 54, shapes the waveform, and outputs the amplified signal to the control unit 71 as data. To do. The control unit 71 transmits data indicating the detection signal input from the signal processing circuit 74 to the host side control unit 73.
The operation unit 75 includes various switches such as a power switch and operation switches formed on the main body case 2 (see FIG. 1), detects user operations on these switches, and outputs them to the control unit 71.

小切手読取装置1には、通信ケーブル72を介してホストコンピューター70が接続されている。
ホストコンピューター70は、CPUや、ROM、RAM、その他の周辺回路等を備えて構成されたホスト側制御部73を備えている。ホスト側制御部73は、光学文字認識部80を備えている。
このホスト側制御部73には、各種情報を表示可能な表示器76と、キーボード、マウス等の入力デバイスが接続された操作部77と、EEPROMやハードディスク等の書き換え可能に各種データを記憶する記憶部78と、が接続されている。
記憶部78は、小切手読取装置1から入力された小切手4の表面画像や、裏面画像を示すデータや、検出信号を示すデータを記憶する。
本実施形態では、ホストコンピューター70のホスト側制御部73の制御の下、制御部71が小切手読取装置1の各部を制御する。具体的には、ホスト側制御部73は、そのCPUがROMに記憶されたプログラムを実行して、制御部71を制御するための制御データを生成し、生成した制御データを小切手読取装置1の制御部71に対して出力することにより、小切手読取装置1の各部を制御する。本実施形態では、ホストコンピューター70と、小切手読取装置1とが協働して、画像処理装置として機能する。
A host computer 70 is connected to the check reading device 1 via a communication cable 72.
The host computer 70 includes a host-side control unit 73 that includes a CPU, ROM, RAM, and other peripheral circuits. The host control unit 73 includes an optical character recognition unit 80.
The host-side control unit 73 stores a display 76 capable of displaying various types of information, an operation unit 77 to which input devices such as a keyboard and a mouse are connected, and a rewritable memory such as an EEPROM or a hard disk. Part 78 is connected.
The storage unit 78 stores the front image of the check 4 input from the check reading device 1, data indicating the back image, and data indicating the detection signal.
In the present embodiment, the control unit 71 controls each unit of the check reading device 1 under the control of the host-side control unit 73 of the host computer 70. Specifically, the host-side control unit 73 executes a program stored in the ROM by the CPU to generate control data for controlling the control unit 71, and uses the generated control data for the check reading device 1. By outputting to the control unit 71, each part of the check reading device 1 is controlled. In this embodiment, the host computer 70 and the check reading device 1 cooperate to function as an image processing device.

このように、本実施形態に係る小切手読取装置1には、磁気インク文字列4Aを磁気的に読み取る磁気ヘッド54のほか、小切手4の表面を光学的に読み取る表面側コンタクトイメージスキャナー52を備えている。そして、ホストコンピューター70のホスト側制御部73が備える光学文字認識部80は、表面側コンタクトイメージスキャナー52の読み取り結果に基づいて、磁気インク文字列4Aを構成する磁気インク文字のそれぞれについて、光学的な認識を行う。
磁気インク文字とは、所定のフォント、例えばCMC−7に準拠して、小切手4に磁気印刷された文字のことであり、1つの磁気インク文字は、予め定められた複数の文字種類のうちのいずれか1つの文字種類に対応している。そして、磁気インク文字の認識とは、読み取った磁気インク文字のそれぞれについて、各磁気インク文字の文字種類を確定し、または、当該磁気インク文字の文字種類を確定できないことを検出することである。
光学文字認識部80による光学文字認識は、磁気インク文字認識と併せて必ず行うようにしてもよく、また、磁気インク文字認識が失敗した場合に行うようにしてもよい。
以下、光学文字認識部80の動作について詳述する。
As described above, the check reading apparatus 1 according to the present embodiment includes the magnetic head 54 that magnetically reads the magnetic ink character string 4 </ b> A and the surface-side contact image scanner 52 that optically reads the surface of the check 4. Yes. Then, the optical character recognition unit 80 included in the host-side control unit 73 of the host computer 70 optically recognizes each of the magnetic ink characters constituting the magnetic ink character string 4A based on the reading result of the front-side contact image scanner 52. To recognize.
A magnetic ink character is a character magnetically printed on a check 4 in accordance with a predetermined font, for example, CMC-7, and one magnetic ink character is a character of a plurality of predetermined character types. It corresponds to any one character type. Recognizing the magnetic ink character is to determine the character type of each magnetic ink character or to detect that the character type of the magnetic ink character cannot be determined for each of the read magnetic ink characters.
The optical character recognition by the optical character recognition unit 80 may be performed together with the magnetic ink character recognition, or may be performed when the magnetic ink character recognition fails.
Hereinafter, the operation of the optical character recognition unit 80 will be described in detail.

図4は、光学文字認識部80の動作を示すフローチャートである。
この光学文字認識部80の機能は、ホスト側制御部73のCPUがROMに記憶されたプログラムを実行する等、ハードウェアとソフトウェアとの協働により実現される。
以下の説明では、小切手4に記録された磁気インク文字のフォントは、CMC−7とする。CMC−7では、磁気インク文字の形状として、数字10個、英大文字26個、および特殊記号5個の合計41個の文字の文字種類に対応する形状が用意されている。
また、以下の説明では、ある1つの小切手4について、当該小切手4に記録された磁気インク文字列4Aの認識を実行する際の光学文字認識部80の動作を示しているものとする。そして、表面側コンタクトイメージスキャナー52により、当該小切手4の表面の画像が読み取られ、表面画像データとして制御部71からホスト側制御部73に出力されているものとする。
FIG. 4 is a flowchart showing the operation of the optical character recognition unit 80.
The function of the optical character recognition unit 80 is realized by the cooperation of hardware and software, such as the CPU of the host-side control unit 73 executing a program stored in the ROM.
In the following description, the font of magnetic ink characters recorded on the check 4 is CMC-7. In CMC-7, shapes corresponding to the character types of 41 characters in total including 10 numbers, 26 uppercase letters, and 5 special symbols are prepared as shapes of magnetic ink characters.
Further, in the following description, it is assumed that the operation of the optical character recognition unit 80 when executing recognition of the magnetic ink character string 4A recorded on the check 4 for a certain check 4 is shown. Then, it is assumed that the image on the surface of the check 4 is read by the surface-side contact image scanner 52 and is output from the controller 71 to the host-side controller 73 as surface image data.

図4を参照し、光学文字認識部80は、小切手4の表面に係る表面画像データを取得する(ステップSA1)。
次いで、光学文字認識部80は、表面画像データから、文字列対応領域に対応する領域を切り出して、文字列対応領域画像データを生成する(ステップSA2)。ここで、文字列対応領域とは、小切手4において規格により磁気インク文字列4Aが印刷される領域と規定された領域のことである。従って、磁気インク文字列4Aを示す画像は、文字対応領域データに必ず含まれているものの、磁気インク文字列4Aを高い精度で認識するためには、文字対応領域データにおける磁気インク文字列4Aが示す画像の領域をある程度厳密に特定する必要がある。
次いで、光学文字認識部80は、文字列対応領域画像データを、2値化する(ステップSA3)。これにより、文字列対応領域画像データにおいて、ドットマトリクス状に配置された各画素は、黒色を示す値、または白色を示す値のいずれかの値を保持した状態となる。
Referring to FIG. 4, the optical character recognition unit 80 acquires surface image data relating to the surface of the check 4 (step SA1).
Next, the optical character recognition unit 80 cuts out a region corresponding to the character string corresponding region from the surface image data, and generates character string corresponding region image data (step SA2). Here, the character string corresponding region is a region defined as a region on the check 4 where the magnetic ink character string 4A is printed according to the standard. Therefore, although an image showing the magnetic ink character string 4A is always included in the character corresponding area data, in order to recognize the magnetic ink character string 4A with high accuracy, the magnetic ink character string 4A in the character corresponding area data is The region of the image to be shown needs to be specified to some extent strictly.
Next, the optical character recognition unit 80 binarizes the character string corresponding area image data (step SA3). Thereby, in the character string corresponding region image data, each pixel arranged in a dot matrix is in a state of holding either a value indicating black or a value indicating white.

図5は、2値化した文字列対応領域画像データを所定の座標系に展開した状態の一例を模式的に示す図である。
文字列対応領域画像データは、各画素がドットマトリクス状に配置されたデータであるため、これら画像データを座標系に展開することにより、各画素の座標は、座標系において原点として定義された位置からの相対的な位置によって一意に定義される。
図5を参照し、文字列対応領域画像データが示す画像には、磁気インク文字列4Aを示す画像P1が含まれている。磁気インク文字列4Aに係る画像P1は、複数の磁気インク文字を示す画像P2が磁気インク文字列4Aの長手方向(Y軸方向)に並んで構成されている。また、文字列対応領域画像データが示す画像には、磁気インク文字列4Aを示す画像P1のほか、サインに係る画像P3、汚れに係る画像P4等が含まれている。
なお、本実施形態では、所定の座標系におけるX軸、およびY軸と、文字列対応領域画像データとの位置関係は、図5に示す状態であるものとする。すなわち、文字列対応領域画像データは、座標系の第1象限において、磁気インク文字列4Aの長手方向が、Y軸が延びる方向と一致し、また、磁気インク文字列4Aの幅方向が、X軸が延びる方向と一致するように、座標系に展開されるものとする。
FIG. 5 is a diagram schematically illustrating an example of a state in which the binarized character string corresponding region image data is developed in a predetermined coordinate system.
Since the character string corresponding area image data is data in which each pixel is arranged in a dot matrix, the coordinates of each pixel are defined as the origin in the coordinate system by developing the image data in the coordinate system. It is uniquely defined by its relative position from
Referring to FIG. 5, the image indicated by the character string corresponding region image data includes an image P1 indicating the magnetic ink character string 4A. The image P1 related to the magnetic ink character string 4A is configured by arranging images P2 indicating a plurality of magnetic ink characters in the longitudinal direction (Y-axis direction) of the magnetic ink character string 4A. Further, the image indicated by the character string corresponding area image data includes an image P3 indicating a magnetic ink character string 4A, an image P3 related to a sign, an image P4 related to dirt, and the like.
In the present embodiment, it is assumed that the positional relationship between the X-axis and Y-axis in the predetermined coordinate system and the character string corresponding area image data is as shown in FIG. In other words, the character string corresponding area image data indicates that, in the first quadrant of the coordinate system, the longitudinal direction of the magnetic ink character string 4A coincides with the direction in which the Y axis extends, and the width direction of the magnetic ink character string 4A is X It is assumed that the coordinate system is expanded so as to coincide with the direction in which the axis extends.

文字列対応領域画像データを2値化した後、光学文字認識部80は、ラベリング処理を行う(ステップSA4)。   After binarizing the character string corresponding area image data, the optical character recognition unit 80 performs a labeling process (step SA4).

図6は、ステップSA4のラベリング処理の実行時における光学文字認識部80の動作を示すフローチャートである。
図6に示すラベリング処理(ステップSA4)において、まず、光学文字認識部80は、文字列対応領域画像データから、当該画像データに含まれているブロックを検出する(ステップSB1)。
詳述すると、まず、光学文字認識部80は、文字列対応領域画像データを構成する各画素を走査し、黒色を示す値を保持する画素(以下、「黒画素」という。同様に白色を示す値を保持する画素を「白画素」という。)を検出する。黒画素を検出した場合、光学文字認識部80は、当該黒画素に連続している全ての黒画素を検出する。当該黒画素に連続している全ての黒画素とは、白画素によって断絶されることなく、連鎖的に隣接する全ての黒画素のことを言い、例えば、図5において符号A、A1、A2で示される黒画素のかたまりのことである。このようにして検出される連続した黒画素のかたまりが1つの「ブロック」に該当する。光学文字認識部80は、文字列対応領域画像データを構成する各画素を走査し、文字列対応領域画像データが示す画像に含まれるブロックの全てを検出する。
ここで、各文字種類に対応する磁気インク文字のそれぞれの画像は、1つの連続する黒画素のかたまりから構成されている。そして、磁気インク文字の画像となり得、また、磁気インク文字の画像の一部となり得る黒画素のかたまりについて、かたまりを構成する画素の数の最小値と、最大値とは、一意に定められる。
これを踏まえ、光学文字認識部80は、文字列対応領域画像データが示す画像に含まれる連続する黒画素のかたまりのうち、かたまりを構成する画素の数が、上記最小値を下回るか、または上記最大値を上回る場合は、該当するかたまりについては、「ブロック」としない。これにより、例えば、図5を参照して、画素の数が上記最小値を下回るかたまりA1や、画素の数が上記最大値を上回るかたまりA2は、「ブロック」として検出されない。
このようにしてブロックを検出(特定)することにより、検出(特定)されるブロックから、磁気インク文字を示す画像を構成する可能性がない黒画素のかたまりに係るものを除外することができる(ステップSB2)。
FIG. 6 is a flowchart showing the operation of the optical character recognition unit 80 during the execution of the labeling process in step SA4.
In the labeling process (step SA4) shown in FIG. 6, first, the optical character recognition unit 80 detects a block included in the image data from the character string corresponding area image data (step SB1).
More specifically, the optical character recognition unit 80 first scans each pixel constituting the character string corresponding area image data and holds a value indicating black (hereinafter referred to as “black pixel”. Similarly, it indicates white. The pixel holding the value is called “white pixel”). When black pixels are detected, the optical character recognition unit 80 detects all black pixels that are continuous with the black pixels. All black pixels continuous with the black pixel are all black pixels adjacent to each other without being interrupted by white pixels. For example, in FIG. It is a block of black pixels shown. A group of continuous black pixels detected in this way corresponds to one “block”. The optical character recognition unit 80 scans each pixel constituting the character string corresponding area image data and detects all the blocks included in the image indicated by the character string corresponding area image data.
Here, each image of the magnetic ink character corresponding to each character type is composed of a block of one continuous black pixel. The minimum value and the maximum value of the number of pixels constituting the mass are uniquely determined for the mass of black pixels that can be an image of the magnetic ink character and can be a part of the image of the magnetic ink character.
Based on this, the optical character recognizing unit 80 determines whether the number of pixels constituting the cluster out of the continuous black pixel group included in the image indicated by the character string corresponding region image data is less than the minimum value, or If it exceeds the maximum value, the block is not “block”. Accordingly, for example, referring to FIG. 5, the block A1 in which the number of pixels falls below the minimum value and the pool A2 in which the number of pixels exceeds the maximum value are not detected as “blocks”.
By detecting (specifying) a block in this way, it is possible to exclude a block related to a block of black pixels that has no possibility of forming an image showing a magnetic ink character from the detected (specified) block ( Step SB2).

文字列対応領域画像データに含まれるブロック(かたまりA)を検出した後、光学文字認識部80は、複数のブロックのうちから、以下のステップSB3〜ステップSB7の処理を実行する対象となるブロックを特定する。以下の説明では、ステップSB2で特定されたブロックを「処理対象ブロック」という。以下のステップSB3〜ステップSB7の処理は、検出したブロックのそれぞれについて、1回ずつ実行されることとなる。
検出したブロックから処理対象ブロックを特定した後、光学文字認識部80は、処理対象ブロックのブロック枠を検出する(ステップSB3)。
詳述すると、ブロック枠とは、処理対象ブロックを囲う矩形の枠のことであり、X軸方向に延びる2辺と、Y軸方向に延びる2辺とで構成される。ブロック枠のX軸方向に延びる2辺の長さは、ブロックのX軸方向の長さに対応して規定され、また、ブロック枠のY軸方向に延びる2辺の長さは、ブロックのY軸方向の長さに対応して規定される。図5を参照し、例えば、符号BWで示す枠が、対応するブロックのブロック枠に該当する。
なお、ブロック枠を検出するとは、座標系におけるブロック枠の位置を示す情報(例えば、ブロック枠の四隅のそれぞれの座標)を検出することである。
After detecting the block (chunk A) included in the character string corresponding region image data, the optical character recognition unit 80 selects a block to be subjected to the processing of the following steps SB3 to SB7 from among a plurality of blocks. Identify. In the following description, the block identified in step SB2 is referred to as a “processing target block”. The following processing from step SB3 to step SB7 is executed once for each detected block.
After identifying the processing target block from the detected block, the optical character recognition unit 80 detects the block frame of the processing target block (step SB3).
Specifically, the block frame is a rectangular frame that surrounds the processing target block, and includes two sides extending in the X-axis direction and two sides extending in the Y-axis direction. The length of the two sides extending in the X-axis direction of the block frame is defined corresponding to the length of the block in the X-axis direction, and the length of the two sides extending in the Y-axis direction of the block frame is Y of the block It is defined corresponding to the axial length. With reference to FIG. 5, for example, a frame indicated by a symbol BW corresponds to a block frame of a corresponding block.
Note that detecting the block frame means detecting information indicating the position of the block frame in the coordinate system (for example, the respective coordinates of the four corners of the block frame).

次いで、光学文字認識部80は、検出したブロック枠が、1つの磁気インク文字の文字枠である可能性があるか否かを判別する(ステップSB4)。
詳述すると、1つの磁気インク文字の文字枠とは、文字列対応領域画像データの磁気インク文字を示す画像を、上記のブロック枠と同様にして囲う枠のことである。
ここで、上述したように、CMC−7には、41種類の文字種類が用意されているが、41種類の文字種類のそれぞれの画像の文字枠について、文字枠のX軸方向に延びる辺の縦辺長、Y軸方向に延びる辺の横辺長、およびX軸方向に延びる辺の縦辺長とY軸方向に延びる辺の横辺長との比(以下、「縦横比」という)は、それぞれ定まる。従って、ブロック枠が磁気インク文字の文字枠である場合に、当該ブロック枠が取り得るX軸方向に延びる辺の縦辺長の範囲、Y軸方向に延びる辺の横辺長の範囲、および縦横比の範囲は、定まる。これを踏まえ、ステップSB4では、処理対象ブロックのブロック枠の、X軸方向に延びる辺の縦辺長、Y軸方向に延びる辺の横辺長、および縦横比を検出し、これらが、上記の各範囲内に収まっているか否かが判別される。
Next, the optical character recognition unit 80 determines whether there is a possibility that the detected block frame is a character frame of one magnetic ink character (step SB4).
More specifically, the character frame of one magnetic ink character is a frame that encloses an image showing the magnetic ink character of the character string corresponding area image data in the same manner as the block frame.
Here, as described above, 41 types of characters are prepared in CMC-7, but for the character frames of the images of the 41 types of character types, the side of the side extending in the X-axis direction of the character frame is displayed. The ratio of the vertical side length, the horizontal side length of the side extending in the Y-axis direction, and the vertical side length of the side extending in the X-axis direction to the horizontal side length of the side extending in the Y-axis direction (hereinafter referred to as “aspect ratio”) , Respectively. Accordingly, when the block frame is a character frame of magnetic ink characters, the range of the vertical side length of the side extending in the X-axis direction, the range of the horizontal side length of the side extending in the Y-axis direction, and the vertical and horizontal The range of the ratio is determined. Based on this, in step SB4, the vertical side length of the side extending in the X-axis direction, the horizontal side length of the side extending in the Y-axis direction, and the aspect ratio of the block frame of the processing target block are detected. It is discriminated whether or not it falls within each range.

ステップSB4において、ブロック枠が文字枠に該当する可能性があると判別した場合(ステップSB4:YES)、光学文字認識部80は、このブロック枠を候補文字枠KM(KM1、KM2、図5参照)として特定し、処理手順をステップSA8に移行する。
ステップSA8では、ステップSA1で検出した全てのブロックが処理対象ブロックとなったか否かが判別され、全てのブロックが処理対象ブロックとなっていない場合(ステップSB8:NO)、光学文字認識部80は、処理手順をステップSB2へ移行し、全てのブロックが処理対象ブロックとなった場合(ステップSB8:YES)、ラベリング処理(ステップSA4)を終了する。
When it is determined in step SB4 that the block frame may correspond to the character frame (step SB4: YES), the optical character recognition unit 80 uses the block frame as a candidate character frame KM (KM1, KM2, see FIG. 5). ), And the process proceeds to step SA8.
In step SA8, it is determined whether or not all the blocks detected in step SA1 are processing target blocks. If all the blocks are not processing target blocks (step SB8: NO), the optical character recognition unit 80 Then, the process procedure is shifted to step SB2, and when all the blocks are processed blocks (step SB8: YES), the labeling process (step SA4) is ended.

一方、ステップSB4において、ブロック枠が文字枠に該当する可能性がないと判別した場合(ステップSB4:NO)、処理対象ブロックに隣接して周囲に存在するブロックの中に、処理対象ブロックと統合可能なブロックがあるか否かを判別する(ステップSB6)。
詳述すると、処理対象ブロックのブロック枠が、文字枠に該当する可能性がない場合、処理対象ブロックは、単独で、1つの磁気インク文字に対応するブロックではないものの、制御文字を構成する複数の部位のいずれかに対応するブロックである可能性がある。そして、処理対象ブロックが、制御文字を構成する複数の部位のいずれかに対応するブロックである場合、この処理対象ブロックの周囲に、この処理対象ブロックに隣接して、当該制御文字を構成する他のブロックが存在していることとなる。そして、処理対象ブロックと統合可能なブロックとは、1つの制御文字を構成可能な程度に、処理対象ブロックに対して近接した他のブロックのことであり、ステップSB6では、処理対象ブロックと統合可能なブロックが存在するか否かを判別している。
なお、以下の説明では、1の制御文字を構成する1の部位に対応するブロックと、他の部位に対応するブロックとを対応づけることを、「統合」と表現するものとする。
On the other hand, when it is determined in step SB4 that the block frame is not likely to correspond to the character frame (step SB4: NO), the processing target block is integrated into the blocks existing adjacent to the processing target block. It is determined whether there is a possible block (step SB6).
More specifically, if there is no possibility that the block frame of the processing target block corresponds to a character frame, the processing target block is not a block corresponding to one magnetic ink character alone, but a plurality of components constituting a control character. There is a possibility that the block corresponds to any one of the parts. When the processing target block is a block corresponding to any of a plurality of parts constituting the control character, the control character is configured around the processing target block and adjacent to the processing target block. This means that there is a block. The block that can be integrated with the processing target block is another block that is close to the processing target block to the extent that one control character can be configured. In step SB6, it can be integrated with the processing target block. It is determined whether or not a correct block exists.
In the following description, associating a block corresponding to one part constituting one control character with a block corresponding to another part is expressed as “integration”.

ステップSB6において、処理対象ブロックと統合可能なブロックがない場合(ステップSB6:NO)、光学文字認識部80は、処理対象ブロックのブロック枠を候補文字枠KMとして特定することなく、処理手順をステップSB8へ移行する。これは、処理対象ブロックは、磁気インク文字に係るブロックではなく、また、制御文字に係る磁気インク文字を構成する部位に係るブロックでもないためである。
一方ステップSB6において、処理対象ブロックと統合可能なブロックがある場合(ステップSB6:YES)、光学文字認識部80は、統合処理を実行する(ステップSB7)。
In step SB6, when there is no block that can be integrated with the processing target block (step SB6: NO), the optical character recognition unit 80 performs the processing procedure without specifying the block frame of the processing target block as the candidate character frame KM. The process proceeds to SB8. This is because the block to be processed is not a block related to the magnetic ink character, and is not a block related to a part constituting the magnetic ink character related to the control character.
On the other hand, in step SB6, when there is a block that can be integrated with the processing target block (step SB6: YES), the optical character recognition unit 80 executes integration processing (step SB7).

ステップSB7の統合処理により、処理対象ブロックを含む、1つの制御文字に対応するブロック群(統合ブロック)を検出した後、光学文字認識部80は、この統合ブロック全体のブロック枠を候補文字枠として特定し(ステップSB5)、処理手順を上述したステップSB8へ移行する。   After detecting the block group (integrated block) corresponding to one control character including the processing target block by the integration process in step SB7, the optical character recognition unit 80 uses the block frame of the entire integrated block as a candidate character frame. After specifying (step SB5), the process proceeds to step SB8 described above.

図5では、ラベリング処理(ステップSA4)を実行することによって、検出された候補文字枠を符号KMで示している。図5に示すように、候補文字枠KMは、制御文字に関しては、制御文字を構成する各部位に対応するブロックを囲む適切なものとなる。
一方で、ラベリング処理では、1つのブロックのブロック枠が、辺の長さや、縦横比の関係上、磁気インク文字の文字枠となる可能性がある限りにおいて、例えば、候補文字枠KM2に示すように、1つの磁気インク文字に正常に対応していないブロック枠であっても、候補文字枠として特定される。
In FIG. 5, the candidate character frame detected by executing the labeling process (step SA4) is indicated by reference numeral KM. As shown in FIG. 5, the candidate character frame KM is an appropriate one surrounding the block corresponding to each part constituting the control character with respect to the control character.
On the other hand, in the labeling process, as long as there is a possibility that the block frame of one block may become a character frame of magnetic ink characters due to the length of the side and the aspect ratio, for example, as shown in the candidate character frame KM2. Even a block frame that does not normally correspond to one magnetic ink character is identified as a candidate character frame.

図4に示したラベリング処理(ステップSA4)において、候補文字枠を検出した後、光学文字認識部80は、バンド幅検出処理を行う(ステップSA5)。   In the labeling process (step SA4) shown in FIG. 4, after detecting the candidate character frame, the optical character recognition unit 80 performs a bandwidth detection process (step SA5).

図7は、バンド幅検出処理の実行時における光学文字認識部80の動作を示すフローチャートである。
図7を参照し、バンド幅検出処理(ステップSA5)において、まず、光学文字認識部80は、ラベリング処理(ステップSA4)で検出した候補文字枠の中から、ステップSC2以下の所定の処理を実行する対象となる候補文字枠を特定する(ステップSC1)。すなわち、ステップSC2以下の所定の処理は、候補文字枠のそれぞれについて、1回ずつ行われることとなる。以下の説明では、ステップSC1で特定した候補文字枠を「処理対象候補文字枠」」というものとする。
次いで、光学文字認識部80は、処理対象候補文字枠に対応するブロック(処理対象候補文字枠で囲まれたブロック)について、光学文字認識を行う(ステップSC2)。
光学文字認識は、ブロックが示す画像の文字種類を確定し、またはブロックが示す画像の文字種類を確定できないことを判別する処理であり、例えば、14種類の文字種類のそれぞれに対応するビットマップパターンと、処理対象候補文字枠によって切り出される画像データとを比較することにより行われる。
次いで、光学文字認識部80は、処理対象候補文字枠に対応するブロックの光学文字認識が成功(ブロックが示す画像の文字種類が確定)したか否かを判別する(ステップSC3)。
成功した場合(ステップSC3:YES)、光学文字認識部80は、処理対象候補文字枠を確定文字枠として特定し(ステップSC4)、処理手順をステップSC5へ移行する。すなわち、確定文字枠とは、光学文字認識が成功した磁気インク文字に係る画像の文字枠のことである。
一方で、光学文字認識が失敗した場合(ステップSC3:NO)、光学文字認識部80は、処理対象候補文字枠を確定文字枠として特定することなく、処理手順をステップSC5へ移行する。
ステップSC5では、ラベリング処理で検出された候補文字枠の全てが処理対象候補文字枠となったか否かが判別され、全てが処理対象候補文字枠となっていない場合(ステップSC5:NO)、光学文字認識部80は、処理手順をステップSC1へ移行し、一方、候補文字枠の全てが処理対象候補文字枠となった場合(ステップSC5:YES)、処理手順をステップSC6へ移行する。
FIG. 7 is a flowchart showing the operation of the optical character recognition unit 80 when the bandwidth detection process is executed.
Referring to FIG. 7, in the bandwidth detection process (step SA5), first, optical character recognition unit 80 executes a predetermined process after step SC2 from the candidate character frames detected in the labeling process (step SA4). A candidate character frame to be processed is specified (step SC1). That is, the predetermined processing after step SC2 is performed once for each candidate character frame. In the following description, the candidate character frame specified in step SC1 is referred to as a “processing target candidate character frame”.
Next, the optical character recognition unit 80 performs optical character recognition on a block corresponding to the processing target candidate character frame (a block surrounded by the processing target candidate character frame) (step SC2).
Optical character recognition is a process of determining the character type of the image indicated by the block or determining that the character type of the image indicated by the block cannot be determined. For example, a bitmap pattern corresponding to each of the 14 character types And the image data cut out by the processing target candidate character frame.
Next, the optical character recognition unit 80 determines whether or not the optical character recognition of the block corresponding to the processing target candidate character frame has succeeded (the character type of the image indicated by the block is determined) (step SC3).
If successful (step SC3: YES), the optical character recognizing unit 80 specifies the processing target candidate character frame as a confirmed character frame (step SC4), and moves the processing procedure to step SC5. That is, the fixed character frame is a character frame of an image related to a magnetic ink character that has been successfully recognized by optical characters.
On the other hand, when the optical character recognition fails (step SC3: NO), the optical character recognition unit 80 shifts the processing procedure to step SC5 without specifying the processing target candidate character frame as the confirmed character frame.
In step SC5, it is determined whether or not all of the candidate character frames detected in the labeling process are processing target candidate character frames. If all of the candidate character frames are not processing target candidate character frames (step SC5: NO), optical The character recognizing unit 80 moves the processing procedure to step SC1. On the other hand, when all of the candidate character frames become processing target candidate character frames (step SC5: YES), the processing procedure moves to step SC6.

図8は、文字列対応領域画像データ上に確定文字枠を表示した様子を示す図である。
図8において、符号DMで示す枠が、確定文字枠に該当する。
図8に示すように、磁気インク文字列4Aの磁気インク文字に係る画像P2のそれぞれについて、確定文字枠DMが検出される。一方で、画像P5、および画像P6に示すように、磁気インク文字と汚れとが連続一体的に結合して形成されたブロックについては、ステップSC2における光学文字認識の結果、認識が失敗するため(ステップSC3:NO)、対応する確定文字枠DMが検出されない。
FIG. 8 is a diagram illustrating a state in which a confirmed character frame is displayed on the character string corresponding region image data.
In FIG. 8, the frame indicated by the symbol DM corresponds to the confirmed character frame.
As shown in FIG. 8, a fixed character frame DM is detected for each of the images P2 related to the magnetic ink characters of the magnetic ink character string 4A. On the other hand, as shown in the images P5 and P6, the block formed by continuously and integrally combining the magnetic ink characters and the stains fails as a result of optical character recognition in step SC2 ( Step SC3: NO), the corresponding fixed character frame DM is not detected.

ステップSC6において、光学文字認識部80は、ステップSC3において文字認識に成功したと判別されたものが、所定の個数以上あるか否かを判別する。
所定の個数以上存在する場合(ステップSC6:YES)、光学文字認識部80は、バンド下端値を検出する(ステップSC7)。
In step SC6, the optical character recognition unit 80 determines whether there are more than a predetermined number of characters that have been determined to have been successfully recognized in step SC3.
When the predetermined number or more exists (step SC6: YES), the optical character recognition unit 80 detects the lower end value of the band (step SC7).

以下の説明では、説明の便宜のため、確定文字枠DMの4辺のうち、Y軸方向に延びる2辺について、Y軸に近い辺を「確定文字枠DMの下端」と、また、Y軸から遠い辺を「確定文字枠DMの上端」と、表現するものとする。
ステップSC7において、光学文字認識部80は、確定文字枠DMのうち、その下端4fが、最もY軸に近い位置に位置している確定文字枠DMを特定する。
そして、光学文字認識部80は、特定した確定文字枠DMの下端4fのX軸方向の値を検出し、検出した値をバンド下端値とする。
In the following description, for convenience of explanation, of the four sides of the confirmed character frame DM, the two sides extending in the Y-axis direction are defined as the “lower end of the confirmed character frame DM” as the side close to the Y axis, The side far from the position is expressed as “the upper end of the confirmed character frame DM”.
In step SC7, the optical character recognizing unit 80 specifies the confirmed character frame DM in which the lower end 4f of the confirmed character frame DM is located closest to the Y axis.
Then, the optical character recognition unit 80 detects the value in the X-axis direction of the lower end 4f of the specified confirmed character frame DM, and sets the detected value as the band lower end value.

次いで、光学文字認識部80は、バンド上端値を検出する(ステップSC8)。
詳述すると、光学文字認識部80は、確定文字枠DMのうち、最もY軸との離間距離が大きい上端4eを有する確定文字枠DMを特定する。
そして、光学文字認識部80は、特定した確定文字枠DMの上端4eのX軸方向の値を検出し、検出した値をバンド上端値とする。
Next, the optical character recognition unit 80 detects the band upper end value (step SC8).
More specifically, the optical character recognition unit 80 identifies a confirmed character frame DM having an upper end 4e having the largest separation distance from the Y axis among the confirmed character frames DM.
Then, the optical character recognition unit 80 detects the value in the X-axis direction of the upper end 4e of the identified fixed character frame DM, and sets the detected value as the band upper end value.

次いで、光学文字認識部80は、ステップSC7で検出したバンド下端値と、ステップSC8で検出したバンド上端値との間に論理的な矛盾があるか否かを判別する(ステップSC9)。
論理的な矛盾とは、例えば、バンド上端値よりも、バンド下端値が大きいことや、また、バンド上端値とバンド下端値との差が想定される値よりも著しく小さく、または大きいことである。
矛盾がない場合(ステップSC9:NO)、光学文字認識部80は、所定の座標系のX軸において、バンド下端値と、バンド上端値とで挟まれる範囲に多少のマージンを付けた範囲を、バンド幅として検出し(ステップSC10)、検出したバンド幅で文字対応領域画像データを切り出して、文字列画像データを生成する(ステップSC11)。
Next, the optical character recognition unit 80 determines whether or not there is a logical contradiction between the band lower limit value detected in step SC7 and the band upper limit value detected in step SC8 (step SC9).
The logical contradiction is, for example, that the band lower end value is larger than the band upper end value, and that the difference between the band upper end value and the band lower end value is significantly smaller or larger than an assumed value. .
If there is no contradiction (step SC9: NO), the optical character recognizing unit 80, on the X axis of the predetermined coordinate system, sets a range obtained by adding a slight margin to a range sandwiched between the band lower end value and the band upper end value. It detects as a bandwidth (step SC10), cuts out character corresponding area image data with the detected bandwidth, and generates character string image data (step SC11).

図9は、ステップSC11で生成された文字列画像データを示す図である。
図9に示すように、上述した手法によりバンド幅を検出すると共に、検出したバンド幅に基づいて文字列対応領域画像データを切り出して文字列画像データを生成することにより、図9に示すように、文字列画像データは、磁気インク文字列4Aが配置された領域について、磁気インク文字列4Aの幅の大きさ相当に切り出されたデータとなる。これにより、文字列画像データから磁気インク文字列4Aの周囲に存在していた汚れに係る画像等を極力排除でき、特に、図8と図9とにおける画像P5、および画像P6の比較において明らかなように、磁気インク文字に係る画像と連続一体的に形成された汚れに係る画像も文字列画像データから除外された状態となる。
FIG. 9 is a diagram showing the character string image data generated in step SC11.
As shown in FIG. 9, by detecting the bandwidth by the method described above and generating character string image data by cutting out the character string corresponding region image data based on the detected bandwidth as shown in FIG. The character string image data is data cut out in a region corresponding to the magnetic ink character string 4A corresponding to the width of the magnetic ink character string 4A. As a result, it is possible to eliminate as much as possible the image related to the dirt existing around the magnetic ink character string 4A from the character string image data, and it is particularly clear in the comparison between the images P5 and P6 in FIGS. As described above, the image related to the stain formed continuously and integrally with the image related to the magnetic ink character is also excluded from the character string image data.

検出した確定文字枠を利用して、バンド上端値、およびバンド下端値を算出し、これらの値に基づいてバンド幅を検出する場合、検出したバンド幅の値の信頼性を確保するためには、ハンド幅検出の前提となる確定文字枠がある程度の個数存在することが求められる。これを踏まえ、ステップSC6(図7参照)において、文字認識に成功したブロックの個数(=検出された確定文字枠の個数)が、バンド幅の信頼性を確保できるような所定の個数以上あるか否かを判別し、所定の個数を下回る場合は、光学文字認識部80は、他の手法でバンド幅を検出する予備バンド幅検出処理(ステップSC12)を実行する。
また、検出したバンド上端値と、バンド下端値に論理的な矛盾がある場合(ステップSC9)、バンド幅を検出することが不可能なため、光学文字認識部80は、予備バンド幅検出処理(ステップSC12)を実行する。
In order to ensure the reliability of the detected bandwidth value when the band upper limit value and the band lower limit value are calculated using the detected fixed character frame and the band width is detected based on these values. Therefore, it is required that a certain number of fixed character frames as a premise of hand width detection exist. Based on this, in step SC6 (see FIG. 7), is the number of blocks successfully recognized (= number of confirmed character frames detected) equal to or greater than a predetermined number that can ensure the reliability of the bandwidth? If the number is less than the predetermined number, the optical character recognition unit 80 performs a preliminary bandwidth detection process (step SC12) for detecting the bandwidth by another method.
If there is a logical contradiction between the detected band upper limit value and the band lower limit value (step SC9), the bandwidth cannot be detected, so the optical character recognition unit 80 performs the preliminary bandwidth detection process ( Step SC12) is executed.

予備バンド幅検出処理(ステップSC12)により、バンド幅を検出した後、光学文字認識部80は、検出したバンド幅で文字列対応領域画像データを切り出して、文字列画像データを生成する(ステップSC11)。
このように、本実施形態では、ステップSC6において、認識に成功したブロックの個数が所定の個数を下回ったと判別されたり、算出したバンド上端値、およびバンド下端値に論理的な矛盾があったりした場合であっても、予備バンド幅検出処理により、バンド幅が検出される構成となっている。
After detecting the bandwidth by the preliminary bandwidth detection processing (step SC12), the optical character recognition unit 80 cuts out the character string corresponding region image data with the detected bandwidth and generates character string image data (step SC11). ).
Thus, in this embodiment, in step SC6, it is determined that the number of blocks that have been successfully recognized has fallen below a predetermined number, or there is a logical contradiction between the calculated band upper limit value and band lower limit value. Even in this case, the bandwidth is detected by the spare bandwidth detection process.

ステップSA5のバンド幅検出処理(図4参照)によりバンド幅を検出し、文字列画像データ(図9参照)を生成した後、光学文字認識部80は、光学文字認識処理を実行する(ステップSA6)。
この光学文字認識処理では、光学文字認識部80は、文字列画像データに基づいて、磁気インク文字の画像の可能性があるブロックの検出、ブロックごとのパターンマッチングによる文字認識等、光学文字認識に係る一連の処理が実行され、改めて、磁気インク文字列4Aに含まれる磁気インク文字の光学的な認識が実行される。
After the bandwidth is detected by the bandwidth detection process (see FIG. 4) in step SA5 and character string image data (see FIG. 9) is generated, the optical character recognition unit 80 executes the optical character recognition process (step SA6). ).
In this optical character recognition process, the optical character recognition unit 80 performs optical character recognition, such as detection of a block that may be an image of a magnetic ink character, character recognition by pattern matching for each block, based on character string image data. A series of such processing is executed, and optical recognition of the magnetic ink character included in the magnetic ink character string 4A is executed again.

図10は、磁気インク文字に係る画像および確定文字枠DMを示す概略図である。
磁気インク文字(MICR文字)のフォントの一つであるCMC−7は、数字10個(「0」〜「9」)、英大文字26個(「A」〜「Z」)、および特殊記号5個の合計41個の文字を有する。そして、CMC−7文字は、記録媒体に印刷されて記録され、磁気的に判別し得るものである。CMC−7文字は、7本の縦バーRn(nは、1から7の自然数)を複数種類の間隔で配列している。
41個のCMC−7文字それぞれの画像の文字枠(確定文字枠DM)において、文字枠(確定文字枠DM)のX軸方向(縦軸方向)に延びる辺の長さ(縦辺長)、Y軸方向(横軸方向)に延びる辺の長さ(横辺長)、および縦辺長と横辺長との比(以下、「縦横比」という)は、それぞれ定まる。そして、縦辺長と、CMC−7の複数種類の文字の大きさとを比較することにより、磁気インク文字のX軸方向の長さである文字高Hが規定される。
FIG. 10 is a schematic diagram showing an image and a confirmed character frame DM relating to magnetic ink characters.
CMC-7, which is one of the fonts of magnetic ink characters (MICR characters), has 10 numbers (“0” to “9”), 26 capital letters (“A” to “Z”), and special symbol 5 A total of 41 characters. The CMC-7 characters are printed and recorded on a recording medium, and can be discriminated magnetically. The CMC-7 character has seven vertical bars Rn (n is a natural number from 1 to 7) arranged at a plurality of types of intervals.
In the character frame (determined character frame DM) of the image of each of the 41 CMC-7 characters, the length of the side (vertical side length) extending in the X-axis direction (vertical axis direction) of the character frame (determined character frame DM), The length of the side (horizontal side length) extending in the Y-axis direction (horizontal axis direction) and the ratio of the vertical side length to the horizontal side length (hereinafter referred to as “aspect ratio”) are respectively determined. Then, by comparing the length of the vertical side with the size of a plurality of types of characters of CMC-7, the character height H, which is the length of the magnetic ink character in the X-axis direction, is defined.

図10に示すように、CMC−7文字は、黒画素領域BGで表示され、黒画素領域BGがX軸方向に配置されて棒状に形成された縦バーRnを7列配置することにより構成されている。そして、7列の縦バーRnは、Y軸方向に配置され、縦バーRnの組み合わせにより構成されている。図10では、7列の縦バーRnを、便宜上、図示左側から縦バーR1,R2,R3,R4,R5,R6,R7と例示する。
縦バーRnの組み合わせは、たとえば縦バーRnと縦バーR(n+1)との間隔(白画素領域WG、図示斜線部および/または破線で囲われた白色部)がそれぞれ規定され、また7列の縦バーRnのいずれかはX軸方向に複数に分割されて規定され黒画素領域BGと白画素領域WG(図示斜線部および/または破線で囲われた白色部)とで表示される。このようにして、CMC−7文字を形成している。
As shown in FIG. 10, the CMC-7 character is displayed by the black pixel region BG, and the black pixel region BG is arranged in the X-axis direction and is configured by arranging seven vertical bars Rn formed in a bar shape. ing. The seven vertical bars Rn are arranged in the Y-axis direction and are configured by combinations of the vertical bars Rn. In FIG. 10, for convenience, seven columns of vertical bars Rn are illustrated as vertical bars R1, R2, R3, R4, R5, R6, and R7 from the left side of the figure.
The combinations of the vertical bars Rn define, for example, an interval between the vertical bar Rn and the vertical bar R (n + 1) (white pixel region WG, hatched portion in the figure and / or a white portion surrounded by a broken line), and 7 columns. One of the vertical bars Rn is defined by being divided into a plurality of parts in the X-axis direction, and is displayed with a black pixel region BG and a white pixel region WG (a shaded portion and / or a white portion surrounded by a broken line in the drawing). In this way, CMC-7 characters are formed.

そして、CMC−7文字の文字高Hは、文字高Hを16分割する高さ(H/16)の画素Gを適用して、画素GがY軸方向に複数配置されて構成された画素行Lを、X軸方向に連続する16行配置することにより構成されている。
また、CMC−7文字を囲う文字枠(確定文字枠DM)は、画素行Lが複数列連続して配置されることで構成されている。
ここで、画素GのX軸方向の大きさ(寸法)は、上述のように、文字高Hを16分割する画素Gを適用するとしたが、これに限るものではなく、光学文字認識に用いる光学文字認識装置の解像度により適宜決定される。また、画素GのY軸方向の大きさは、本実施形態では、縦バーRnのY軸方向の大きさと、1つの画素GのY軸方向の大きさとが同一になる構成として説明するが、これに限るものではなく、縦バーRnのY軸方向の大きさが、複数の画素Gにより構成されるとしてもよい。
A character height H of the CMC-7 character is a pixel row formed by applying a plurality of pixels G in the Y-axis direction by applying a pixel G having a height (H / 16) that divides the character height H into 16 parts. L is configured by arranging 16 rows continuous in the X-axis direction.
A character frame (determined character frame DM) surrounding the CMC-7 character is configured by arranging a plurality of pixel rows L in succession.
Here, as described above, the size (dimension) of the pixel G in the X-axis direction applies the pixel G that divides the character height H into 16, but the present invention is not limited to this. It is determined appropriately depending on the resolution of the character recognition device. In the present embodiment, the size of the pixel G in the Y axis direction is described as a configuration in which the size of the vertical bar Rn in the Y axis direction is the same as the size of one pixel G in the Y axis direction. However, the size of the vertical bar Rn in the Y-axis direction may be configured by a plurality of pixels G.

そして、X軸方向に配置される各画素行Lは、Y軸方向に配置された7列の縦バーRnと交差(直交)するため、CMC−7文字を表示する黒画素領域BGと、縦バーRnと縦バーR(n+1)との間隔を表示する白画素領域WG(図示斜線部および/または破線で囲われた白色部)とで構成される。このため、画素行Lが文字高Hの磁気インク文字を構成する場合、画素行Lに黒画素領域BGは最大で7つ配置され、黒画素領域BGと黒画素領域BGとの間には白画素領域WG(図示斜線部および/または破線で囲われた白色部)が配置される。
一方で、画素行Lが文字高Hの磁気インク文字を構成しない場合、画素行Lは白画素領域WG(破線で囲われた白色部)だけで構成される、または連続する黒画素領域BGまたは少数の黒画素領域BGと白画素領域WG(図示斜線部および/または破線で囲われた白色部)とで構成される。
Since each pixel row L arranged in the X-axis direction intersects (orthogonalizes) seven columns of vertical bars Rn arranged in the Y-axis direction, a black pixel region BG displaying CMC-7 characters, A white pixel region WG (a white portion surrounded by a hatched portion and / or a broken line in the drawing) that displays an interval between the bar Rn and the vertical bar R (n + 1). For this reason, when the pixel row L constitutes a magnetic ink character having a character height H, a maximum of seven black pixel regions BG are arranged in the pixel row L, and a white pixel is between the black pixel region BG and the black pixel region BG. A pixel region WG (a shaded portion and / or a white portion surrounded by a broken line) is arranged.
On the other hand, when the pixel row L does not constitute a magnetic ink character having a character height H, the pixel row L is constituted only by the white pixel region WG (white portion surrounded by a broken line) or a continuous black pixel region BG or It is composed of a small number of black pixel regions BG and white pixel regions WG (the shaded portion in the figure and / or the white portion surrounded by a broken line).

図11は、光学文字認識部80の制御系の一部を示す概略ブロック図である。図12は、ステップSA6の光学文字認識処理の実行時における光学文字認識部80の動作を示すフローチャートである。   FIG. 11 is a schematic block diagram showing a part of the control system of the optical character recognition unit 80. FIG. 12 is a flowchart showing the operation of the optical character recognition unit 80 when the optical character recognition process in step SA6 is executed.

図11に示すように、光学文字認識部80は、Y軸方向位置検出部81と、X軸方向位置検出部82とを備えている。X軸方向位置検出部82は、数量算出部83と、累積数量算出部84と、X軸方向位置決定部85と、パターンマッチング処理部86とを備えている。   As shown in FIG. 11, the optical character recognition unit 80 includes a Y-axis direction position detection unit 81 and an X-axis direction position detection unit 82. The X-axis direction position detection unit 82 includes a quantity calculation unit 83, a cumulative quantity calculation unit 84, an X-axis direction position determination unit 85, and a pattern matching processing unit 86.

図12を参照し、光学文字認識処理(ステップSA6)において、まず、光学文字認識部80のY軸方向位置検出部81では、バンド幅検出処理(ステップSA5)で生成した文字列画像データ(図9参照)の中から、磁気インク文字のY軸方向の位置を検出するY軸方向位置検出ステップを実施する(S101)。
具体的には、文字列対応領域のY軸方向のプラス(+)側またはマイナス(−)側から、黒画素領域BGを検出することで、磁気インク文字のY軸方向の位置を検出する。
Referring to FIG. 12, in the optical character recognition process (step SA6), first, in the Y-axis direction position detection unit 81 of the optical character recognition unit 80, the character string image data (FIG. 5) generated by the bandwidth detection process (step SA5). 9), a Y-axis direction position detecting step for detecting the position of the magnetic ink character in the Y-axis direction is performed (S101).
Specifically, the position of the magnetic ink character in the Y-axis direction is detected by detecting the black pixel region BG from the plus (+) side or the minus (−) side in the Y-axis direction of the character string corresponding region.

次に、X軸方向位置検出部82では、検出された確定文字枠DMの中から、図10に実線両端矢印および一点鎖線両端矢印で示す文字高Hの磁気インク文字のX軸方向の位置を検出するX軸方向位置検出ステップを実施する(S102)。
まず、X軸方向位置検出ステップ(S102)では、確定文字枠DMにおいて、1画素GあたりのY軸方向の画素行Lにおける縦バーRnと縦バーR(n+1)との間の領域としての白画素領域WGの数量NWを算出する数量算出ステップを数量算出部83で実施する(S103)。たとえば、図10に示された画素行L(La、Lb、・・・、Lv、Lw)ごとの白画素領域WGの数量NW(NWa、NWb、・・・、NWv、NWw)を算出する。
ここで、白画素領域WGの数量NWは、白画素領域WG(図示斜線部および/または破線で囲われた白色部)の数量を一つ一つ算出すると限るものではなく、白画素領域WG(破線で囲われた白色部)が画素行LのY軸方向に複数隣接して繋がっている場合においては、白画素領域WGの数量NWは1算出単位として算出し、白画素領域WG(破線で囲われた白色部)が画素行LのY軸方向に複数隣接して繋がっていなく単独である場合においては、白画素領域WGの数量NWを1として算出する。
Next, the X-axis direction position detection unit 82 determines the position in the X-axis direction of the magnetic ink character having the character height H indicated by the solid-line double-ended arrow and the dashed-dotted double-ended arrow in FIG. An X-axis direction position detecting step for detecting is performed (S102).
First, in the X-axis direction position detection step (S102), white as a region between the vertical bar Rn and the vertical bar R (n + 1) in the pixel row L in the Y-axis direction per pixel G in the fixed character frame DM. A quantity calculating step for calculating the quantity NW of the pixel region WG is performed by the quantity calculating unit 83 (S103). For example, the quantity NW (NWa, NWb,..., NWv, NWw) of the white pixel area WG for each pixel row L (La, Lb,..., Lv, Lw) shown in FIG. 10 is calculated.
Here, the quantity NW of the white pixel area WG is not limited to calculating the quantity of the white pixel area WG (the white part surrounded by the hatched portion and / or the broken line in the drawing) one by one. In the case where a plurality of white portions surrounded by a broken line are connected adjacently in the Y-axis direction of the pixel row L, the quantity NW of the white pixel regions WG is calculated as one calculation unit, and the white pixel region WG (in broken lines) In the case where a plurality of enclosed white portions) are not connected adjacently in the Y-axis direction of the pixel row L and are independent, the number NW of the white pixel regions WG is calculated as 1.

そして、X軸方向に連続して配置される16行の画素行Lにおいて、白画素領域WGの数量NWを累積して磁気インク文字の文字高H(X軸方向の長さ)あたりの累積数量NWHを算出する累積数量算出ステップを累積数量算出部84で実施する(S104)。これにより、文字高Hあたりの白画素領域WGの累積数量NWHを算出する。このようにして、バーRnと縦バーR(n+1)との間の領域としての白画素領域WGの数量を累積した累積数量NWHは、磁気インク文字の文字高H(X軸方向の長さ)あたりの累積数量NWHを示す。
詳述すると、図10に示すように、確定文字枠DMの縦辺長に沿って、文字高HをX軸方向に1画素G(1画素行L)ずつずらすことにより、磁気インク文字の文字高Hあたりの白画素領域WGの累積数量NWH(NWHa、NWHb、・・・、NWHv、NWHw)を算出する。
たとえば、X軸方向に連続して配置される16行の画素行Lbから画素行Lqにおいて、白画素領域WGの数量NWを累積して、累積数量NWH(NWHb)を算出する。これにより、磁気インク文字の文字高Hあたりの白画素領域WGの累積数量NWHbを算出する。同様にして、画素行Lcから画素行Lr、画素行Ldから画素行Ls、画素行Leから画素行Lt、画素行Lfから画素行Lu、および画素行Lgから画素行Lvにおいて、累積数量NWHc、累積数量NWHd、累積数量NWHe、累積数量NWHf、および累積数量NWHgを算出する。図10に示すように、実線両端矢印および一点鎖線両端矢印で示す文字高Hの位置において、累積数量NWHは、それぞれ累積数量NWHb=30、累積数量NWHc=36、累積数量NWHd=41、累積数量NWHe=47、累積数量NWHf=46、累積数量NWHg=44である。
Then, in 16 pixel rows L arranged continuously in the X-axis direction, the quantity NW of the white pixel region WG is accumulated to accumulate the quantity per character height H (length in the X-axis direction) of the magnetic ink characters. The cumulative quantity calculation step for calculating NWH is performed by the cumulative quantity calculation unit 84 (S104). Thereby, the cumulative quantity NWH of the white pixel area WG per character height H is calculated. In this way, the cumulative quantity NWH obtained by accumulating the quantity of the white pixel area WG as the area between the bar Rn and the vertical bar R (n + 1) is the character height H (length in the X-axis direction) of the magnetic ink character. The cumulative quantity NWH per unit is shown.
More specifically, as shown in FIG. 10, by shifting the character height H by one pixel G (one pixel row L) in the X-axis direction along the length of the vertical side of the confirmed character frame DM, the character of the magnetic ink character is displayed. The accumulated quantity NWH (NWHa, NWHb,..., NWHv, NWHw) of the white pixel region WG per high H is calculated.
For example, the cumulative quantity NWH (NWHb) is calculated by accumulating the quantity NW of the white pixel region WG from the 16 pixel lines Lb to the pixel line Lq arranged continuously in the X-axis direction. Thereby, the cumulative quantity NWHb of the white pixel region WG per character height H of the magnetic ink character is calculated. Similarly, in the pixel row Lc to the pixel row Lr, the pixel row Ld to the pixel row Ls, the pixel row Le to the pixel row Lt, the pixel row Lf to the pixel row Lu, and the pixel row Lg to the pixel row Lv, the cumulative quantity NWHc, The cumulative quantity NWHd, the cumulative quantity NWHHe, the cumulative quantity NWHf, and the cumulative quantity NWHg are calculated. As shown in FIG. 10, at the position of the character height H indicated by the solid-line double-ended arrow and the dashed-dotted double-ended arrow, the accumulated quantity NWH is accumulated quantity NWHb = 30, accumulated quantity NWHc = 36, accumulated quantity NWHd = 41, accumulated quantity, respectively. NWHe = 47, cumulative quantity NWHf = 46, cumulative quantity NWHg = 44.

さらに、この文字高Hあたりの白画素領域WGの累積数量NWHを比較することにより、文字高Hの磁気インク文字のX軸方向の位置を決定するX軸方向位置決定ステップをX軸方向位置決定部85で実施する(S105)。
上述のように、画素行Lが文字高Hの磁気インク文字を構成する場合、画素行Lに黒画素領域BGは最大で7つ配置され、黒画素領域BGと黒画素領域BGとの間には白画素領域WG(図示斜線部)が配置されるため、画素行Lが文字高Hの磁気インク文字を構成する場合の白画素領域WGの数量NWは、画素行Lが文字高Hの磁気インク文字を構成しない場合に比べて大きい。
そのため、文字高Hあたりの白画素領域WGの累積数量NWHが最大となる文字高HのX軸方向の位置を、文字高Hの磁気インク文字の位置と決定する。図10では、画素行Leから画素行Ltの累積数量NWHe=47が最大となり、実線両端矢印で示す位置を、文字高Hの磁気インク文字の位置と決定する。
Further, by comparing the cumulative quantity NWH of the white pixel area WG per character height H, an X-axis direction position determining step for determining the position in the X-axis direction of the magnetic ink character having the character height H is determined. It implements in the part 85 (S105).
As described above, when the pixel row L constitutes a magnetic ink character having a character height H, seven black pixel regions BG are arranged in the pixel row L at a maximum, and between the black pixel region BG and the black pixel region BG. Since the white pixel region WG (the hatched portion in the figure) is arranged, the quantity NW of the white pixel region WG when the pixel row L constitutes a magnetic ink character with a character height H is the magnetic quantity with the pixel row L being a character height H. Larger than when ink characters are not configured.
Therefore, the position in the X-axis direction of the character height H at which the cumulative quantity NWH of the white pixel area WG per character height H is maximum is determined as the position of the magnetic ink character with the character height H. In FIG. 10, the cumulative quantity NWHe = 47 from the pixel row Le to the pixel row Lt is the maximum, and the position indicated by the solid-line double-ended arrow is determined as the position of the magnetic ink character having the character height H.

詳述すると、文字高Hが、磁気インク文字のX軸方向の位置に合致している場合、言い換えると、実線両端矢印で示した位置である場合、文字高Hあたりの白画素領域WGの累積数量NWH(累積数量NWHe=47)が、最大となっている。
一方で、文字高Hが、磁気インク文字のX軸方向の位置に合致していない場合、言い換えると、一点鎖線両端矢印で示した位置である場合、文字高Hあたりの白画素領域WGの累積数量NWHが磁気インク文字のX軸方向の位置に合致している場合に比べて小さくなっている。
たとえば、累積数量NWHb=30、累積数量NWHc=36、累積数量NWHd=41であれば、磁気インク文字を構成しない画素行La、Lb、Lcの白画素領域WGの数量NWb=0、NWc=1、NWd=0がそれぞれ加算(算出)される代わりに、磁気インク文字を構成する画素行Lr、Ls、Ltの白画素領域WGの数量NWr=6、NWs=6、NWt=6がそれぞれ減算(算出)される。このため、磁気インク文字のX軸方向の位置に合致している場合、文字高Hあたりの白画素領域WGの累積数量NWHが、最大となっている。
More specifically, when the character height H matches the position of the magnetic ink character in the X-axis direction, in other words, when the character height H is the position indicated by the solid-line double-ended arrow, the accumulated white pixel area WG per character height H is accumulated. The quantity NWH (cumulative quantity NWHe = 47) is the maximum.
On the other hand, when the character height H does not coincide with the position of the magnetic ink character in the X-axis direction, in other words, when the character height H is the position indicated by the double-dotted arrow, the accumulation of the white pixel area WG per character height H is accumulated. The quantity NWH is smaller than the case where the quantity NWH matches the position of the magnetic ink character in the X-axis direction.
For example, if the cumulative quantity NWHb = 30, the cumulative quantity NWHc = 36, and the cumulative quantity NWHd = 41, the quantity NWb = 0 and NWc = 1 of the white pixel areas WG of the pixel rows La, Lb, and Lc that do not constitute the magnetic ink character. , NWd = 0 are added (calculated), respectively, and the numbers NWr = 6, NWs = 6, and NWt = 6 of the white pixel regions WG of the pixel rows Lr, Ls, and Lt constituting the magnetic ink character are respectively subtracted ( Calculated). For this reason, when the magnetic ink character matches the position in the X-axis direction, the cumulative quantity NWH of the white pixel region WG per character height H is the maximum.

磁気インク文字のパターンマッチング処理を実行するパターンマッチング処理ステップをパターンマッチング処理部86で実施する(S106)。これにより、磁気インク文字の認識を実現する。   A pattern matching processing step for executing the pattern matching processing of magnetic ink characters is performed by the pattern matching processing unit 86 (S106). Thereby, recognition of magnetic ink characters is realized.

本実施形態によれば、縦バーRnと縦バーR(n+1)との間の領域としての白画素領域WGの数量を累積した累積数量NWH、言い換えると磁気インク文字の文字高H(X軸方向の長さ)あたりの累積数量NWHを比較することにより、文字高Hの磁気インク文字のX軸方向の位置を決定されて、磁気インク文字のX軸方向の位置を正確に認識して磁気インク文字のパターンマッチング処理を実行することができる。これにより、汚れまたはサインなどを磁気インク文字の一部と認識して磁気インク文字の誤認識を起こしてしまい、正確に認識するまで、磁気インク文字のパターンマッチング処理を何度も繰り返して実行する必要がない。このようにして、磁気インク文字の誤認識を抑制し認識の速度を速めた磁気インク文字の認識の実現を可能とする画像処理装置を提供することができる。   According to this embodiment, the cumulative quantity NWH obtained by accumulating the quantity of the white pixel area WG as the area between the vertical bar Rn and the vertical bar R (n + 1), in other words, the character height H (X-axis direction) of the magnetic ink character. The X-axis direction position of the magnetic ink character with the character height H is determined by accurately comparing the accumulated quantity NWH per length of the magnetic ink character, and the magnetic ink character accurately recognizes the X-axis direction position of the magnetic ink character. Character pattern matching processing can be executed. This causes dirt or a signature to be recognized as a part of the magnetic ink character, causing erroneous recognition of the magnetic ink character, and repeatedly performing pattern matching processing of the magnetic ink character until it is accurately recognized. There is no need. In this way, it is possible to provide an image processing apparatus that can realize recognition of magnetic ink characters that suppresses erroneous recognition of magnetic ink characters and accelerates recognition.

そして、X軸方向位置決定ステップにおいて、縦バーRnと縦バーR(n+1)との間の領域としての白画素領域WGの数量を累積した累積数量NWH、言い換えると磁気インク文字の文字高H(X軸方向の長さ)あたりの累積数量NWHを比較することにより、文字高Hの磁気インク文字のX軸方向の位置を決定されて、磁気インク文字のX軸方向の位置を正確に認識して磁気インク文字のパターンマッチング処理を実行することができる。これにより、汚れまたはサインなどを磁気インク文字の一部と認識して磁気インク文字の誤認識を起こしてしまい、正確に認識するまで、磁気インク文字のパターンマッチング処理を何度も繰り返して実行する必要がない。このようにして、磁気インク文字の誤認識を抑制し認識の速度を速めた磁気インク文字の認識の実現を可能とする画像処理装置の制御方法を提供することができる。   In the position determination step in the X-axis direction, the cumulative quantity NWH obtained by accumulating the quantity of the white pixel area WG as an area between the vertical bar Rn and the vertical bar R (n + 1), in other words, the character height H ( By comparing the cumulative quantity NWH per length in the X-axis direction, the position in the X-axis direction of the magnetic ink character with the character height H is determined, and the position in the X-axis direction of the magnetic ink character is accurately recognized. Thus, pattern matching processing of magnetic ink characters can be executed. This causes dirt or a signature to be recognized as a part of the magnetic ink character, causing erroneous recognition of the magnetic ink character, and repeatedly performing pattern matching processing of the magnetic ink character until it is accurately recognized. There is no need. In this way, it is possible to provide a control method for an image processing apparatus that can realize recognition of magnetic ink characters that suppresses erroneous recognition of magnetic ink characters and accelerates recognition.

(第2実施形態)
以下、図面を参照して本発明の第2実施形態について説明する。
第2実施形態の小切手読取装置1、および小切手読取装置1の制御方法は、図1から図9および図11に示した第1実施形態と同様の構成であるが、図10および図12に示した小切手読取装置1の制御方法の光学文字認識処理が相違する。このため、同様の構成については、同一の符号を付与し、説明を省略する。以下、図13および図14を参照して、第1実施形態と相違する小切手読取装置1の制御方法の光学文字認識処理について説明する。
(Second Embodiment)
The second embodiment of the present invention will be described below with reference to the drawings.
The check reading device 1 of the second embodiment and the control method of the check reading device 1 have the same configuration as that of the first embodiment shown in FIGS. 1 to 9 and 11, but are shown in FIGS. 10 and 12. The optical character recognition process of the control method of the check reading device 1 is different. For this reason, about the same structure, the same code | symbol is provided and description is abbreviate | omitted. Hereinafter, with reference to FIG. 13 and FIG. 14, the optical character recognition process of the control method of the check reading apparatus 1 different from the first embodiment will be described.

図13は、磁気インク文字に係る画像および確定文字枠DMを示す概略図である。
磁気インク文字(MICR文字)のフォントの一つであるCMC−7は、数字10個(「0」〜「9」)、英大文字26個(「A」〜「Z」)、および特殊記号5個の合計41個の文字を有する。そして、CMC−7文字は、記録媒体に印刷されて記録され、磁気的に判別し得るものである。CMC−7文字は、7本の縦バーRn(nは、1から7の自然数)を複数種類の間隔で配列している。
41個のCMC−7文字それぞれの画像の文字枠(確定文字枠DM)において、文字枠(確定文字枠DM)のX軸方向(縦軸方向)に延びる辺の長さ(縦辺長)、Y軸方向(横軸方向)に延びる辺の長さ(横辺長)、および縦辺長と横辺長との比(以下、「縦横比」という)は、それぞれ定まる。そして、縦辺長と、CMC−7の複数種類の文字の大きさとを比較することにより、文字高Hが規定される。
FIG. 13 is a schematic diagram showing an image and a confirmed character frame DM relating to magnetic ink characters.
CMC-7, which is one of the fonts of magnetic ink characters (MICR characters), has 10 numbers (“0” to “9”), 26 capital letters (“A” to “Z”), and special symbol 5 A total of 41 characters. The CMC-7 characters are printed and recorded on a recording medium, and can be discriminated magnetically. The CMC-7 character has seven vertical bars Rn (n is a natural number from 1 to 7) arranged at a plurality of types of intervals.
In the character frame (determined character frame DM) of the image of each of the 41 CMC-7 characters, the length of the side (vertical side length) extending in the X-axis direction (vertical axis direction) of the character frame (determined character frame DM), The length of the side (horizontal side length) extending in the Y-axis direction (horizontal axis direction) and the ratio of the vertical side length to the horizontal side length (hereinafter referred to as “aspect ratio”) are respectively determined. And the character height H is prescribed | regulated by comparing the length of a vertical side and the magnitude | size of the multiple types of character of CMC-7.

図13に示すように、CMC−7文字は、黒画素領域BGで表示され、黒画素領域BGがX軸方向に配置されて棒状に形成された縦バーRnを7列配置することにより構成されている。そして、7列の縦バーRnは、Y軸方向に配置され、縦バーRnの組み合わせにより構成されている。図13では、7列の縦バーRnを、便宜上、図示左側から縦バーR1,R2,R3,R4,R5,R6,R7と例示する。
縦バーRnの組み合わせは、たとえば縦バーRnと縦バーR(n+1)との間隔(白画素領域WG、図示破線で囲われた白色部)がそれぞれ規定され、また7列の縦バーRnのいずれかはX軸方向に複数に分割されて規定され黒画素領域BGと白画素領域WG(図示破線で囲われた白色部)とで表示される。このようにして、CMC−7文字を形成している。
As shown in FIG. 13, the CMC-7 character is displayed by the black pixel region BG, and the black pixel region BG is arranged in the X-axis direction and is configured by arranging seven columns of vertical bars Rn formed in a bar shape. ing. The seven vertical bars Rn are arranged in the Y-axis direction and are configured by combinations of the vertical bars Rn. In FIG. 13, for convenience, seven rows of vertical bars Rn are illustrated as vertical bars R1, R2, R3, R4, R5, R6, and R7 from the left side of the figure.
As the combinations of the vertical bars Rn, for example, the interval between the vertical bar Rn and the vertical bar R (n + 1) (white pixel region WG, white portion surrounded by a broken line in the figure) is defined. This is defined by being divided into a plurality of parts in the X-axis direction, and is displayed by a black pixel region BG and a white pixel region WG (a white portion surrounded by a broken line in the drawing). In this way, CMC-7 characters are formed.

そして、CMC−7文字の文字高Hは、文字高Hを16分割する高さ(H/16)の画素Gを適用して、画素GがY軸方向に複数配置されて構成された画素行Lを、X軸方向に連続する16行配置することにより構成されている。
また、CMC−7文字を囲う文字枠(確定文字枠DM)は、画素行Lが複数列連続して配置されることで構成されている。
ここで、画素GのX軸方向の大きさ(寸法)は、上述のように、文字高Hを16分割する画素Gを適用するとしたが、これに限るものではなく、光学文字認識に用いる光学文字認識装置の解像度により適宜決定される。また、画素GのY軸方向の大きさは、本実施形態では、縦バーRnのY軸方向の大きさと、1つの画素GのY軸方向の大きさとが同一になる構成として説明するが、これに限るものではなく、縦バーRnのY軸方向の大きさが、複数の画素Gにより構成されるとしてもよい。
A character height H of the CMC-7 character is a pixel row formed by applying a plurality of pixels G in the Y-axis direction by applying a pixel G having a height (H / 16) that divides the character height H into 16 parts. L is configured by arranging 16 rows continuous in the X-axis direction.
A character frame (determined character frame DM) surrounding the CMC-7 character is configured by arranging a plurality of pixel rows L in succession.
Here, as described above, the size (dimension) of the pixel G in the X-axis direction applies the pixel G that divides the character height H into 16, but the present invention is not limited to this. It is determined appropriately depending on the resolution of the character recognition device. In the present embodiment, the size of the pixel G in the Y axis direction is described as a configuration in which the size of the vertical bar Rn in the Y axis direction is the same as the size of one pixel G in the Y axis direction. However, the size of the vertical bar Rn in the Y-axis direction may be configured by a plurality of pixels G.

そして、X軸方向に配置される各画素行Lは、Y軸方向に配置された7列の縦バーRnと交差(直交)するため、CMC−7文字を表示する黒画素領域BGと、縦バーRnと縦バーR(n+1)との間隔を表示する白画素領域WG(図示破線で囲われた白色部)とで構成される。このため、画素行Lが文字高Hの磁気インク文字を構成する場合、画素行Lに黒画素領域BGは最大で7つ配置され、黒画素領域BGと黒画素領域BGとの間には白画素領域WG(図示破線で囲われた白色部)が配置される。
一方で、画素行Lが文字高Hの磁気インク文字を構成しない場合、画素行Lは白画素領域WG(破線で囲われた白色部)だけで構成される、または連続する黒画素領域BGまたは少数の黒画素領域BGと白画素領域WG(図示破線で囲われた白色部)とで構成される。
Since each pixel row L arranged in the X-axis direction intersects (orthogonalizes) seven columns of vertical bars Rn arranged in the Y-axis direction, a black pixel region BG displaying CMC-7 characters, A white pixel region WG (a white portion surrounded by a broken line in the drawing) that displays an interval between the bar Rn and the vertical bar R (n + 1). For this reason, when the pixel row L constitutes a magnetic ink character having a character height H, a maximum of seven black pixel regions BG are arranged in the pixel row L, and a white pixel is between the black pixel region BG and the black pixel region BG. A pixel region WG (white portion surrounded by a broken line in the drawing) is arranged.
On the other hand, when the pixel row L does not constitute a magnetic ink character having a character height H, the pixel row L is constituted only by the white pixel region WG (white portion surrounded by a broken line) or a continuous black pixel region BG or It is composed of a small number of black pixel regions BG and white pixel regions WG (white portions surrounded by broken lines in the drawing).

図14は、ステップSA6の光学文字認識処理の実行時における光学文字認識部80の動作を示すフローチャートである。   FIG. 14 is a flowchart showing the operation of the optical character recognition unit 80 when the optical character recognition process in step SA6 is executed.

図14を参照し、光学文字認識処理(ステップSA6)において、まず、第1実施形態と同様に、光学文字認識部80のY軸方向位置検出部81では、バンド幅検出処理(ステップSA5)で生成した文字列画像データ(図9参照)の中から、磁気インク文字のY軸方向の位置を検出するY軸方向位置検出ステップを実施する(S101)。
具体的には、文字列対応領域のY軸方向のプラス(+)側またはマイナス(−)側から、黒画素領域BGを検出することで、磁気インク文字のY軸方向の位置を検出する。
Referring to FIG. 14, in the optical character recognition process (step SA6), first, as in the first embodiment, the Y-axis direction position detection unit 81 of the optical character recognition unit 80 performs the bandwidth detection process (step SA5). A Y-axis direction position detecting step for detecting the position of the magnetic ink character in the Y-axis direction from the generated character string image data (see FIG. 9) is performed (S101).
Specifically, the position of the magnetic ink character in the Y-axis direction is detected by detecting the black pixel region BG from the plus (+) side or the minus (−) side in the Y-axis direction of the character string corresponding region.

次に、検出された確定文字枠DMの中から、図13に実線両端矢印および一点鎖線両端矢印で示す文字高Hの磁気インク文字のX軸方向の位置を検出するX軸方向位置検出ステップを実施する(S112)。
まず、確定文字枠DMにおいて、1画素GあたりのY軸方向の画素行Lにおける縦バーRの領域としての黒画素領域BGの数量NBを算出する数量算出ステップを数量算出部83で実施する(S113)。たとえば、図13に示された画素行L(La、Lb、・・・、Lv、Lw)ごとの黒画素領域BGの数量NB(NBa、NBb、・・・、NBv、NBw)を算出する。
Next, an X-axis direction position detecting step for detecting the position in the X-axis direction of the magnetic ink character having the character height H indicated by the solid-line double-ended arrow and the dashed-dotted double-ended arrow in FIG. 13 from the detected fixed character frame DM is performed. Implement (S112).
First, in the fixed character frame DM, the quantity calculation unit 83 performs a quantity calculation step for calculating the quantity NB of the black pixel area BG as the area of the vertical bar R in the pixel row L in the Y-axis direction per pixel G ( S113). For example, the quantity NB (NBa, NBb,..., NBv, NBw) of the black pixel region BG for each pixel row L (La, Lb,..., Lv, Lw) shown in FIG. 13 is calculated.

そして、X軸方向に連続して配置される16行の画素行Lにおける黒画素領域BGの数量NBを累積して磁気インク文字の文字高H(X軸方向の長さ)あたりの累積数量NBHを算出する。これにより、文字高Hあたりの黒画素領域BGの累積数量NBHを算出する累積数量算出ステップを累積数量算出部84で実施する(S114)。
詳述すると、図13に示すように、確定文字枠DMの縦辺長に沿って、文字高HをX軸方向に1画素G(1画素行L)ずつずらすことにより、磁気インク文字の文字高Hあたりの黒画素領域BGの累積数量NBH(NBHa、NBHb、・・・、NBHv、NBHw)を算出する。
たとえば、X軸方向に連続して配置される16行の画素行Lbから画素行Lqにおいて、黒画素領域BGの数量NWを累積して、累積数量NBH(NBHb)を算出する。これにより、磁気インク文字の文字高Hあたりの黒画素領域BGの累積数量NBHbを算出する。同様にして、画素行Lcから画素行Lr、画素行Ldから画素行Ls、画素行Leから画素行Lt、画素行Lfから画素行Lu、および画素行Lgから画素行Lvにおいて、累積数量NBHc、累積数量NBHd、累積数量NBHe、累積数量NBHf、および累積数量NBHgを算出する。図13に示すように、実線両端矢印および一点鎖線両端矢印で示す文字高Hの位置において、累積数量NBHは、それぞれ累積数量NBHb=45、累積数量NBHc=52、累積数量NBHd=57、累積数量NBHe=63、累積数量NBHf=61、累積数量NBHg=58である。
Then, the cumulative quantity NBH per character height H (length in the X-axis direction) of the magnetic ink character is accumulated by accumulating the quantity NB of the black pixel regions BG in the 16 pixel rows L arranged continuously in the X-axis direction. Is calculated. As a result, the cumulative quantity calculation step for calculating the cumulative quantity NBH of the black pixel region BG per character height H is performed by the cumulative quantity calculation unit 84 (S114).
More specifically, as shown in FIG. 13, by shifting the character height H by one pixel G (one pixel row L) in the X-axis direction along the length of the vertical side of the confirmed character frame DM, the character of the magnetic ink character is displayed. The cumulative quantity NBH (NBHa, NBHb,..., NBHv, NBHw) of the black pixel region BG per high H is calculated.
For example, the cumulative quantity NBH (NBHb) is calculated by accumulating the quantity NW of the black pixel region BG in 16 pixel lines Lb to Lq arranged continuously in the X-axis direction. Thereby, the cumulative quantity NBHb of the black pixel region BG per character height H of the magnetic ink character is calculated. Similarly, in the pixel row Lc to the pixel row Lr, the pixel row Ld to the pixel row Ls, the pixel row Le to the pixel row Lt, the pixel row Lf to the pixel row Lu, and the pixel row Lg to the pixel row Lv, the cumulative quantity NBHc, Cumulative quantity NBHd, cumulative quantity NBHe, cumulative quantity NBHf, and cumulative quantity NBHg are calculated. As shown in FIG. 13, at the position of the character height H indicated by the solid-line double-ended arrow and the dashed-dotted double-ended arrow, the accumulated quantity NBH is accumulated quantity NBHb = 45, accumulated quantity NBHc = 52, accumulated quantity NBHd = 57, accumulated quantity, respectively. NBHe = 63, cumulative quantity NBHf = 61, cumulative quantity NBHg = 58.

さらに、この文字高Hあたりの黒画素領域BGの累積数量NBHを比較することにより、文字高Hの磁気インク文字のX軸方向の位置を決定するX軸方向位置決定ステップをX軸方向位置決定部85で実施する(S115)。
第1実施形態と同様に、画素行Lが文字高Hの磁気インク文字を構成する場合、画素行Lに黒画素領域BGは最大で7つ配置され、黒画素領域BGと黒画素領域BGとの間には白画素領域WG(図示斜線部)が配置されるため、画素行Lが文字高Hの磁気インク文字を構成する場合の黒画素領域BGの数量NBは、画素行Lが文字高Hの磁気インク文字を構成しない場合に比べて大きい。
このため、文字高Hあたりの黒画素領域BGの累積数量NBHが最大となる文字高HのX軸方向の位置を、文字高Hの磁気インク文字の位置と決定する。図13では、画素行Leから画素行Ltの累積数量NBHe=63が最大となり、実線両端矢印で示す位置を、文字高Hの磁気インク文字の位置と決定する。
Further, by comparing the accumulated quantity NBH of the black pixel region BG per character height H, an X-axis direction position determining step for determining the position in the X-axis direction of the magnetic ink character having the character height H is determined. It implements in the part 85 (S115).
As in the first embodiment, when the pixel row L constitutes a magnetic ink character having a character height H, a maximum of seven black pixel regions BG are arranged in the pixel row L, and the black pixel region BG and the black pixel region BG Since the white pixel region WG (the hatched portion in the drawing) is arranged between the black pixel region BG when the pixel row L constitutes a magnetic ink character having a character height H, the pixel row L has a character height. It is larger than the case where H magnetic ink characters are not formed.
For this reason, the position in the X-axis direction of the character height H at which the cumulative quantity NBH of the black pixel region BG per character height H is maximum is determined as the position of the magnetic ink character with the character height H. In FIG. 13, the cumulative quantity NBHe = 63 from the pixel row Le to the pixel row Lt is the maximum, and the position indicated by the solid-line double-ended arrow is determined as the position of the magnetic ink character with the character height H.

詳述すると、文字高Hが、磁気インク文字のX軸方向の位置に合致している場合、言い換えると、実線両端矢印で示した位置である場合、文字高Hあたりの黒画素領域BGの累積数量NBH(累積数量NBHe=63)が、最大となっている。
一方で、文字高Hが、磁気インク文字のX軸方向の位置に合致していない場合、言い換えると、一点鎖線両端矢印で示した位置である場合、文字高Hあたりの黒画素領域BGの累積数量NBHが磁気インク文字のX軸方向の位置に合致している場合に比べて小さくなっている。
たとえば、累積数量NBHb=45、累積数量NBHc=52、累積数量NBHd=57であれば、磁気インク文字を構成しない画素行La、Lb、Lcの黒画素領域BGの数量NBb=0、NBc=2、NBd=1がそれぞれ加算(算出)される代わりに、磁気インク文字を構成する画素行Lr、Ls、Ltの黒画素領域BGの数量NBr=7、NBs=7、NBt=7がそれぞれ減算(算出)される。このため、磁気インク文字のX軸方向の位置に合致している場合、文字高Hあたりの黒画素領域BGの累積数量NBHが、最大となっている。
More specifically, when the character height H matches the position in the X-axis direction of the magnetic ink character, in other words, when the character height H is the position indicated by the solid-line double-ended arrow, the black pixel region BG per character height H is accumulated. The quantity NBH (cumulative quantity NBHe = 63) is the maximum.
On the other hand, when the character height H does not match the position of the magnetic ink character in the X-axis direction, in other words, when the character height H is the position indicated by the dashed-dotted double-ended arrow, the black pixel region BG per character height H is accumulated. The quantity NBH is smaller than the case where the quantity NBH matches the position of the magnetic ink character in the X-axis direction.
For example, if the cumulative quantity NBHb = 45, the cumulative quantity NBHc = 52, and the cumulative quantity NBHd = 57, the quantity NBb = 0, NBc = 2 of the black pixel areas BG of the pixel rows La, Lb, Lc that do not constitute the magnetic ink character. , NBd = 1 are added (calculated), respectively, and the quantities NBr = 7, NBs = 7, and NBt = 7 of the black pixel regions BG of the pixel rows Lr, Ls, and Lt constituting the magnetic ink character are respectively subtracted ( Calculated). For this reason, when the magnetic ink character matches the position in the X-axis direction, the cumulative quantity NBH of the black pixel region BG per character height H is the maximum.

磁気インク文字のパターンマッチング処理を実行するパターンマッチング処理ステップをパターンマッチング処理部86で実施する(S106)。これにより、磁気インク文字の認識を実現する。   A pattern matching processing step for executing the pattern matching processing of magnetic ink characters is performed by the pattern matching processing unit 86 (S106). Thereby, recognition of magnetic ink characters is realized.

本実施形態では、図13に示すように、縦バーRnのY軸方向の大きさ(寸法)と、1つの画素GのY軸方向の大きさとが同一になる構成として説明したが、これに限るものではなく、縦バーRnのY軸方向の大きさが、複数の画素Gにより構成されるとしてもよい。その場合、黒画素領域BGの数量を算出する。そして、黒画素領域BGの数量とは、黒画素領域BGの数量として算出されず、黒画素領域BGが複数隣接して繋がっている場合において、黒画素領域BGの数量は1つとして算出する。   In the present embodiment, as illustrated in FIG. 13, the size (dimension) of the vertical bar Rn in the Y-axis direction and the size of one pixel G in the Y-axis direction have been described as being the same. The size of the vertical bar Rn in the Y-axis direction may be configured by a plurality of pixels G. In that case, the quantity of the black pixel region BG is calculated. The number of black pixel regions BG is not calculated as the number of black pixel regions BG, but when the plurality of black pixel regions BG are adjacently connected, the number of black pixel regions BG is calculated as one.

本実施形態によれば縦バーの領域の数量を累積した累積数量NWH、言い換えると磁気インク文字の文字高H(X軸方向の長さ)あたりの累積数量NWHを比較することにより、文字高Hの磁気インク文字のX軸方向の位置を決定されて、磁気インク文字のX軸方向の位置を正確に認識して磁気インク文字のパターンマッチング処理を実行することができる。これにより、汚れまたはサインなどを磁気インク文字の一部と認識して磁気インク文字の誤認識を起こしてしまい、正確に認識するまで、磁気インク文字のパターンマッチング処理を何度も繰り返して実行する必要がない。このようにして、磁気インク文字の誤認識を抑制し認識の速度を速めた磁気インク文字の認識の実現を可能とする画像処理装置を提供することができる。   According to the present embodiment, by comparing the cumulative quantity NWH obtained by accumulating the quantity of the vertical bar area, in other words, the cumulative quantity NWH per character height H (length in the X-axis direction) of the magnetic ink character, the character height H The position of the magnetic ink character in the X-axis direction is determined, the position of the magnetic ink character in the X-axis direction can be accurately recognized, and the pattern matching process of the magnetic ink character can be executed. This causes dirt or a signature to be recognized as a part of the magnetic ink character, causing erroneous recognition of the magnetic ink character, and repeatedly performing pattern matching processing of the magnetic ink character until it is accurately recognized. There is no need. In this way, it is possible to provide an image processing apparatus that can realize recognition of magnetic ink characters that suppresses erroneous recognition of magnetic ink characters and accelerates recognition.

そして、X軸方向位置決定ステップにおいて、縦バーの領域の数量を累積した累積数量NWH、言い換えると磁気インク文字の文字高H(X軸方向の長さ)あたりの累積数量NWHを比較することにより、文字高Hの磁気インク文字のX軸方向の位置を決定されて、磁気インク文字のX軸方向の位置を正確に認識して磁気インク文字のパターンマッチング処理を実行することができる。これにより、汚れまたはサインなどを磁気インク文字の一部と認識して磁気インク文字の誤認識を起こしてしまい、正確に認識するまで、磁気インク文字のパターンマッチング処理を何度も繰り返して実行する必要がない。このようにして、磁気インク文字の誤認識を抑制し認識の速度を速めた磁気インク文字の認識の実現を可能とする画像処理装置の制御方法を提供することができる。   Then, in the X-axis direction position determining step, by comparing the accumulated quantity NWH obtained by accumulating the quantity of the vertical bar area, in other words, the accumulated quantity NWH per character height H (length in the X-axis direction) of the magnetic ink character. The position of the magnetic ink character having the character height H in the X-axis direction is determined, and the position of the magnetic ink character in the X-axis direction can be accurately recognized to execute the magnetic ink character pattern matching process. This causes dirt or a signature to be recognized as a part of the magnetic ink character, causing erroneous recognition of the magnetic ink character, and repeatedly performing pattern matching processing of the magnetic ink character until it is accurately recognized. There is no need. In this way, it is possible to provide a control method for an image processing apparatus that can realize recognition of magnetic ink characters that suppresses erroneous recognition of magnetic ink characters and accelerates recognition.

1…小切手読取装置、2…本体ケース、3…蓋ケース、4…小切手、4A…磁気インク文字列、4a…表面、4b…裏面、4d…後端、4e…上端、4f…下端、5…搬送路、6…小切手供給部、7…第1小切手排出部、8…第2小切手排出部、8…第2小切手排出部、9…分岐路、10…小切手送り出し機構、11…繰り出しローラー、12…送り出しローラー、13…リタードローラー、14…送り出し用モーター、15…ホッパー、21…上流側搬送路部分、22…湾曲搬送路部分、23…下流側搬送路部分、30…小切手搬送機構、31…第1搬送ローラー、32…第2搬送ローラー、33…第3搬送ローラー、34…第4搬送ローラー、35…第5搬送ローラー、36…第6搬送ローラー、37…搬送用モーター、41,42,43,44,45,46…押圧ローラー、51…磁石、52…表面側コンタクトイメージスキャナー、53…裏面側コンタクトイメージスキャナー、54…磁気ヘッド、55…押圧ローラー、56…記録装置、61…用紙長検出器、62…重送検出器、63…ジャム検出器、64…印刷検出器、65…排出検出器、66…切り替え板、67…駆動モーター、70…ホストコンピューター、71…制御部、72…通信ケーブル、73…ホスト側制御部、74…信号処理回路、75…操作部、76…表示器、77…操作部、78…記憶部、80…光学文字認識部、81…Y軸方向位置検出部、82…X軸方向位置検出部、83…数量算出部、84…累積数量算出部、85…X軸方向位置決定部、86…パターンマッチング処理部、A,A1,A2…かたまり、KM,KM1,KM2…候補文字枠、P1,P2,P3,P4,P5,P6…画像、R,R1,R2,R3,R4,R5,R6,R7、Rn、R(n+1)…縦バー。   DESCRIPTION OF SYMBOLS 1 ... Check reading device, 2 ... Main body case, 3 ... Cover case, 4 ... Check, 4A ... Magnetic ink character string, 4a ... Front surface, 4b ... Back surface, 4d ... Rear end, 4e ... Upper end, 4f ... Lower end, 5 ... Conveyance path, 6 ... check supply unit, 7 ... first check discharge unit, 8 ... second check discharge unit, 8 ... second check discharge unit, 9 ... branch path, 10 ... check feed mechanism, 11 ... feed roller, 12 DESCRIPTION OF SYMBOLS ... Sending roller, 13 ... Retard roller, 14 ... Sending motor, 15 ... Hopper, 21 ... Upstream conveyance path part, 22 ... Curve conveyance path part, 23 ... Downstream conveyance path part, 30 ... Check conveyance mechanism, 31 ... 1st conveyance roller, 32 ... 2nd conveyance roller, 33 ... 3rd conveyance roller, 34 ... 4th conveyance roller, 35 ... 5th conveyance roller, 36 ... 6th conveyance roller, 37 ... Motor for conveyance, 41, 42, 4 , 44, 45, 46 ... pressure roller, 51 ... magnet, 52 ... front side contact image scanner, 53 ... back side contact image scanner, 54 ... magnetic head, 55 ... pressure roller, 56 ... recording device, 61 ... paper length detection 62 ... double feed detector, 63 ... jam detector, 64 ... print detector, 65 ... discharge detector, 66 ... switching plate, 67 ... drive motor, 70 ... host computer, 71 ... control unit, 72 ... communication Cable 73 73 Host side control unit 74 Signal processing circuit 75 Operation unit 76 Display unit 77 Operation unit 78 Storage unit 80 Optical character recognition unit 81 Y-axis direction position detection unit , 82 ... X-axis direction position detection unit, 83 ... Quantity calculation unit, 84 ... Cumulative quantity calculation unit, 85 ... X-axis direction position determination unit, 86 ... Pattern matching processing unit, A, A1, A2 ... Accumulation, KM, KM1, KM2 ... candidate character frames, P1, P2, P3, P4, P5, P6 ... image, R, R1, R2, R3, R4, R5, R6, R7, Rn, R (n + 1) ... vertical bar.

Claims (4)

X軸方向に延長する縦バーが、前記X軸方向に直交するY軸方向に間隔を空けて複数配置されて構成されている磁気インク文字を含む画像を処理する画像処理装置であって、
少なくとも前記磁気インク文字の前記X軸方向の位置を検出するX軸方向位置検出部とを備え、
前記X軸方向位置検出部は、前記磁気インク文字の前記Y軸方向における前記縦バーと他の前記縦バーとの間の領域の数量を算出する数量算出部と、
前記数量を累積して前記磁気インク文字の前記X軸方向の長さあたりの累積数量を算出する累積数量算出部と、
前記累積数量をもとにして前記磁気インク文字の前記X軸方向の位置を決定するX軸方向位置決定部と、
前記磁気インク文字のパターンマッチング処理を実行するパターンマッチング処理部とを有することを特徴とする画像処理装置。
An image processing apparatus for processing an image including magnetic ink characters in which a plurality of vertical bars extending in the X-axis direction are arranged at intervals in the Y-axis direction orthogonal to the X-axis direction,
An X-axis direction position detection unit that detects at least the position of the magnetic ink character in the X-axis direction,
The X-axis direction position detection unit is a quantity calculation unit that calculates the number of regions between the vertical bar and the other vertical bar in the Y-axis direction of the magnetic ink character;
A cumulative quantity calculation unit for accumulating the quantity and calculating a cumulative quantity per length of the magnetic ink characters in the X-axis direction;
An X-axis direction position determining unit that determines a position of the magnetic ink character in the X-axis direction based on the accumulated quantity;
An image processing apparatus comprising: a pattern matching processing unit that executes pattern matching processing of the magnetic ink characters.
X軸方向に延長する縦バーが、前記X軸方向に直交するY軸方向に間隔を空けて複数配置されて構成されている磁気インク文字を含む画像を処理する画像処理装置であって、
少なくとも前記磁気インク文字の前記X軸方向の位置を検出するX軸方向位置検出部とを備え、
前記X軸方向位置検出部は、前記磁気インク文字の前記Y軸方向における前記縦バーの領域の数量を算出する数量算出部と、
前記数量を累積して前記磁気インク文字の前記X軸方向の長さあたりの累積数量を算出する累積数量算出部と、
前記累積数量をもとにして前記磁気インク文字の前記X軸方向の位置を決定するX軸方向位置決定部と、
前記磁気インク文字のパターンマッチング処理を実行するパターンマッチング処理部とを有することを特徴とする画像処理装置。
An image processing apparatus for processing an image including magnetic ink characters in which a plurality of vertical bars extending in the X-axis direction are arranged at intervals in the Y-axis direction orthogonal to the X-axis direction,
An X-axis direction position detection unit that detects at least the position of the magnetic ink character in the X-axis direction,
The X-axis direction position detection unit is a quantity calculation unit that calculates the number of the vertical bar regions in the Y-axis direction of the magnetic ink characters;
A cumulative quantity calculation unit for accumulating the quantity and calculating a cumulative quantity per length of the magnetic ink characters in the X-axis direction;
An X-axis direction position determining unit that determines a position of the magnetic ink character in the X-axis direction based on the accumulated quantity;
An image processing apparatus comprising: a pattern matching processing unit that executes pattern matching processing of the magnetic ink characters.
X軸方向に延長する縦バーが、前記X軸方向に直交するY軸方向に間隔を空けて複数配置されて構成されている磁気インク文字を含む画像を処理する画像処理装置の制御方法であって、
少なくとも前記磁気インク文字の前記X軸方向の位置を検出するX軸方向位置検出ステップとを備え、
前記X軸方向位置検出ステップは、前記磁気インク文字を前記Y軸方向における前記縦バーと他の前記縦バーとの間の領域の数量を算出する数量算出ステップと、
前記数量を累積して前記磁気インク文字の前記X軸方向の長さあたりの累積数量を算出する累積数量算出ステップと、
前記累積数量をもとにして前記磁気インク文字の前記X軸方向の位置を決定するX軸方向位置決定ステップと、
前記磁気インク文字のパターンマッチング処理を実行するパターンマッチング処理ステップとを含むことを特徴とする画像処理装置の制御方法。
This is a control method for an image processing apparatus for processing an image including magnetic ink characters in which a plurality of vertical bars extending in the X-axis direction are arranged at intervals in the Y-axis direction orthogonal to the X-axis direction. And
An X-axis direction position detecting step for detecting at least a position of the magnetic ink character in the X-axis direction,
The X-axis direction position detection step includes a quantity calculation step for calculating the quantity of the magnetic ink character in an area between the vertical bar and the other vertical bar in the Y-axis direction;
A cumulative quantity calculating step of calculating the cumulative quantity per length of the magnetic ink characters in the X-axis direction by accumulating the quantity;
An X-axis direction position determining step for determining a position of the magnetic ink character in the X-axis direction based on the accumulated quantity;
And a pattern matching processing step for performing pattern matching processing of the magnetic ink characters.
X軸方向に延長する縦バーが、前記X軸方向に直交するY軸方向に間隔を空けて複数配置されて構成されている磁気インク文字を含む画像を処理する画像処理装置の制御方法であって、
少なくとも前記磁気インク文字の前記X軸方向の位置を検出するX軸方向位置検出ステップとを備え、
前記X軸方向位置検出ステップは、前記磁気インク文字を前記Y軸方向における前記縦バーの領域の数量を算出する数量算出ステップと、
前記数量を累積して前記磁気インク文字の前記X軸方向の長さあたりの累積数量を算出する累積数量算出ステップと、
前記累積数量をもとにして前記磁気インク文字の前記X軸方向の位置を決定するX軸方向位置決定ステップと、
前記磁気インク文字のパターンマッチング処理を実行するパターンマッチング処理ステップとを有することを特徴とする画像処理装置の制御方法。
This is a control method for an image processing apparatus for processing an image including magnetic ink characters in which a plurality of vertical bars extending in the X-axis direction are arranged at intervals in the Y-axis direction orthogonal to the X-axis direction. And
An X-axis direction position detecting step for detecting at least a position of the magnetic ink character in the X-axis direction,
The X-axis direction position detecting step includes a quantity calculating step for calculating the quantity of the vertical bar area in the Y-axis direction for the magnetic ink character;
A cumulative quantity calculating step of calculating the cumulative quantity per length of the magnetic ink characters in the X-axis direction by accumulating the quantity;
An X-axis direction position determining step for determining a position of the magnetic ink character in the X-axis direction based on the accumulated quantity;
And a pattern matching processing step for performing pattern matching processing of the magnetic ink characters.
JP2011017628A 2011-01-31 2011-01-31 Image processing device and control method of image processing device Withdrawn JP2012159912A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011017628A JP2012159912A (en) 2011-01-31 2011-01-31 Image processing device and control method of image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011017628A JP2012159912A (en) 2011-01-31 2011-01-31 Image processing device and control method of image processing device

Publications (1)

Publication Number Publication Date
JP2012159912A true JP2012159912A (en) 2012-08-23

Family

ID=46840419

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011017628A Withdrawn JP2012159912A (en) 2011-01-31 2011-01-31 Image processing device and control method of image processing device

Country Status (1)

Country Link
JP (1) JP2012159912A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9042633B2 (en) 2012-07-18 2015-05-26 Seiko Epson Corporation Recording media processing device, control method of a recording media processing device, and non-transitory storage medium
US9047530B2 (en) 2012-07-18 2015-06-02 Seiko Epson Corporation Recording media processing device, control method of a recording media processing device, and computer-readable recording medium storing a program
US9576211B2 (en) 2012-07-09 2017-02-21 Seiko Epson Corporation Device, method, and storage medium for magnetic ink character peak detection and recognition

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9576211B2 (en) 2012-07-09 2017-02-21 Seiko Epson Corporation Device, method, and storage medium for magnetic ink character peak detection and recognition
US9042633B2 (en) 2012-07-18 2015-05-26 Seiko Epson Corporation Recording media processing device, control method of a recording media processing device, and non-transitory storage medium
US9047530B2 (en) 2012-07-18 2015-06-02 Seiko Epson Corporation Recording media processing device, control method of a recording media processing device, and computer-readable recording medium storing a program

Similar Documents

Publication Publication Date Title
JP2004259254A (en) Magnetic ink character reading device and its reading processing method
US9420137B2 (en) Image-reading apparatus, image-processing method, and computer program product
JP2009282691A (en) Image processor, bar code processor and image processing method
JP2012159912A (en) Image processing device and control method of image processing device
US8369601B2 (en) Method of processing a check in an image-based check processing system and an apparatus therefor
US20020028020A1 (en) Image processing device, image processing method, and image processing program
JP6023491B2 (en) Optical reading method and apparatus for booklet-shaped print media
US7738696B2 (en) Image processing apparatus and method for extracting a document area
JP2012226633A (en) Recording medium processing device, control method of recording medium processing device, and program
JP2012221337A (en) Recording medium processor, control method of the same and program
JP2012185763A (en) Recording medium processor, control method of recording medium processor, and program
JP2012198852A (en) Recording medium processor, control method thereof and program
US20100104130A1 (en) Document processing apparatus and document processing method
JP2012168837A (en) Recording medium processor, control method of recording medium processor, and program
JP2012150691A (en) Recording medium processor, composite processor, control method of recording medium processor and program
US8761487B2 (en) Methods of operating an image-based check processing system to detect a double feed condition of checks and an apparatus therefor
US20130336569A1 (en) Recording media processing device, control method of a recording media processing device, and storage medium
JP2012221276A (en) Recording medium processor, control method of the same and program
JP2012160098A (en) Image processing device and control method of image processing device
JP2012150690A (en) Recording medium processor, composite processor, control method of recording medium processor and program
JP2012252560A (en) Recording medium processor, control method of the same and program
JP2012243063A (en) Recording medium processor, control method for recording medium processor and program
JP2012185762A (en) Recording medium processor, control method of recording medium processor, and program
JP2012150692A (en) Recording medium processor, composite processor, control method of recording medium processor and program
WO2011129114A1 (en) Form, form processing device, form processing method, and recording medium

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140401