JP2012174093A - Recording medium processing apparatus, and method and program for controlling recording medium processing apparatus - Google Patents

Recording medium processing apparatus, and method and program for controlling recording medium processing apparatus Download PDF

Info

Publication number
JP2012174093A
JP2012174093A JP2011036811A JP2011036811A JP2012174093A JP 2012174093 A JP2012174093 A JP 2012174093A JP 2011036811 A JP2011036811 A JP 2011036811A JP 2011036811 A JP2011036811 A JP 2011036811A JP 2012174093 A JP2012174093 A JP 2012174093A
Authority
JP
Japan
Prior art keywords
character
recognition
candidate
magnetic ink
waveform
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
JP2011036811A
Other languages
Japanese (ja)
Inventor
Yoshiaki Kinoshita
禄章 木下
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 JP2011036811A priority Critical patent/JP2012174093A/en
Publication of JP2012174093A publication Critical patent/JP2012174093A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Character Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To suppress erroneous recognition in recognizing magnetic ink characters.SOLUTION: In a check reader 1 equipped with a magnetic head 54 magnetically reading a magnetic ink character recorded on a check 4, a control unit 71 executes: a first recognition phase in which candidates of a character type of the magnetic ink character are selected on the basis of a difference amount calculated in accordance with a difference between a detection waveform obtained by reading the magnetic ink character and a waveform obtained by sliding a reference waveform by a prescribed distance; and a second recognition phase in which candidates of the character type of the magnetic ink character are selected on the basis of a difference amount calculated in accordance with a difference between the detection waveform and a waveform obtained by expanding/contracting the reference waveform by a prescribed distance. Candidates of the character type of the magnetic ink character are determined by comparing the difference amounts of the character types selected as the candidates in the first recognition phase and the difference amounts of the character types selected as the candidates in the second recognition phase.

Description

本発明は、記録媒体処理装置、記録媒体処理装置の制御方法、及びプログラムに関する。   The present invention relates to a recording medium processing apparatus, a control method for the recording medium processing apparatus, and a program.

小切手等の記録媒体に記録された磁気インク文字を読み取る磁気ヘッドを備え、搬送路を搬送される記録媒体の磁気インク文字を読み取って、磁気インク文字を認識する記録媒体処理装置(小切手類読取装置)が知られている(例えば、特許文献1参照)。
このような記録媒体処理装置では、磁気インク文字を読み取って得られる検出波形と、規格で定められた文字種類の基準波形とを比較して、磁気インク文字認識を行い、磁気インク文字の文字種類を判別している。
A recording medium processing device (check device reader) that includes a magnetic head for reading magnetic ink characters recorded on a recording medium such as a check, and that reads magnetic ink characters on a recording medium conveyed on a conveyance path and recognizes the magnetic ink characters ) Is known (see, for example, Patent Document 1).
In such a recording medium processing apparatus, a magnetic ink character recognition is performed by comparing a detection waveform obtained by reading a magnetic ink character with a reference waveform of a character type determined by the standard, and the character type of the magnetic ink character. Is determined.

特開2004−206362号公報JP 2004-206362 A

しかしながら、磁気インク文字認識においては、磁気インク文字の印刷のズレ、記録媒体の搬送状況、磁気ヘッドによる磁気インクの読み取り等に起因して、理想的な波形に対して、検出波形の位置がずれていたり検出波形に伸び縮みが生じていたりする場合がある。
上述した記録媒体処理装置による磁気インク文字の認識の結果は、例えば、小切手に対する各種処理を行う際に利用される。このため、磁気インク文字の認識に際し、検出波形の位置のずれや検出波形の伸び縮みの影響をできるだけ排して、誤認識を抑制したいとするニーズがある。
However, in magnetic ink character recognition, the position of the detected waveform is deviated from the ideal waveform due to misprinting of the magnetic ink character, the state of conveyance of the recording medium, reading of the magnetic ink by the magnetic head, etc. Or the detected waveform may be stretched or contracted.
The result of magnetic ink character recognition by the recording medium processing apparatus described above is used, for example, when various processes are performed on a check. For this reason, when recognizing magnetic ink characters, there is a need to suppress misrecognition by eliminating the influence of the displacement of the detection waveform position and the expansion and contraction of the detection waveform as much as possible.

本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の形態又は適用例として実現することが可能である。   SUMMARY An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following forms or application examples.

[適用例1]本適用例に係る記録媒体処理装置は、記録媒体に記録された磁気インク文字を磁気的に読み取る読取部と、規格で定められた複数の文字種類の基準波形を記憶する記憶部と、前記読取部と前記記憶部とを制御する制御部と、を備え、前記制御部は、前記読取部が前記磁気インク文字を読み取って得られる検出波形と、前記記憶部に記憶された複数の文字種類の基準波形のそれぞれを所定の距離スライドさせた波形と、の差異に応じた差異量を算出し、算出した前記差異量に基づいて前記磁気インク文字の文字種類の候補を選別する第1認識フェーズと、前記検出波形と、前記複数の文字種類の基準波形のそれぞれを所定の距離伸縮させた波形と、の差異に応じた差異量を算出し、算出した前記差異量に基づいて前記磁気インク文字の文字種類の候補を選別する第2認識フェーズと、を実行し、前記第1認識フェーズで前記候補として選別された文字種類の前記差異量と、前記第2認識フェーズで前記候補として選別された文字種類の前記差異量と、を比較して、前記磁気インク文字の文字種類の候補を決定することを特徴とする。   Application Example 1 A recording medium processing apparatus according to this application example stores a reading unit that magnetically reads magnetic ink characters recorded on a recording medium and a reference waveform of a plurality of character types defined by a standard. And a control unit that controls the reading unit and the storage unit, wherein the control unit is stored in the storage unit and a detection waveform obtained by the reading unit reading the magnetic ink characters. A difference amount corresponding to a difference between a plurality of reference waveforms of a plurality of character types and a waveform obtained by sliding each of the reference waveforms by a predetermined distance is calculated, and character type candidates for the magnetic ink characters are selected based on the calculated difference amount. A difference amount according to a difference between the first recognition phase, the detected waveform, and a waveform obtained by expanding and contracting each of the reference waveforms of the plurality of character types by a predetermined distance is calculated, and based on the calculated difference amount Magnetic ink statement A second recognition phase for selecting the character type candidates of the character type, the difference amount of the character types selected as the candidates in the first recognition phase, and the candidate selected in the second recognition phase. The difference amount of the character type is compared to determine a character type candidate for the magnetic ink character.

この構成によれば、第1認識フェーズでは、磁気インク文字を読み取って得られる検出波形と、規格で定められた複数の文字種類の基準波形のそれぞれを所定の距離スライドさせた波形とを比較するので、理想的な波形に対して検出波形の位置がずれている場合に、そのずれの影響を抑えて磁気インク文字の認識を行うことができる。第2認識フェーズでは、検出波形と、複数の文字種類の基準波形のそれぞれを所定の距離伸縮させた波形とを比較するので、検出波形に伸び縮みが生じている場合に、その伸び縮みの影響を抑えて磁気インク文字の認識を行うことができる。
また、第1認識フェーズで候補として選別された文字種類の差異量と、第2認識フェーズで候補として選別された文字種類の差異量とを比較して、磁気インク文字の文字種類の候補を決定する。そのため、文字種類の候補として、上述の2通りの異なる方法による磁気インク文字認識の結果からより確実性が高いと考えられる方を選別できるので、磁気インク文字の誤認識を抑制することが可能となる。
According to this configuration, in the first recognition phase, a detection waveform obtained by reading a magnetic ink character is compared with a waveform obtained by sliding each of a plurality of character type reference waveforms defined in the standard by a predetermined distance. Therefore, when the position of the detected waveform is deviated from the ideal waveform, magnetic ink characters can be recognized while suppressing the influence of the deviation. In the second recognition phase, the detected waveform is compared with a waveform obtained by expanding and contracting each of the reference waveforms of a plurality of character types by a predetermined distance. Therefore, when the detected waveform is expanded or contracted, the influence of the expansion or contraction is generated. It is possible to recognize magnetic ink characters while suppressing the above.
Further, the character type candidate selected in the first recognition phase is compared with the character type difference selected as the candidate in the second recognition phase to determine a character type candidate for the magnetic ink character. To do. For this reason, it is possible to select a character type candidate that is considered to be more reliable from the results of magnetic ink character recognition by the two different methods described above, and thus it is possible to suppress erroneous recognition of magnetic ink characters. Become.

[適用例2]上記適用例に係る記録媒体処理装置であって、前記制御部は、前記第1認識フェーズ及び前記第2認識フェーズのそれぞれでは、算出した前記差異量が小さい順に、少なくとも前記磁気インク文字の文字種類の第1候補、及び、第2候補を選別し、前記第1認識フェーズで前記第1候補、及び、前記第2候補として選別された文字種類のそれぞれの前記差異量と、前記第2認識フェーズで前記第1候補、及び、前記第2候補として選別された文字種類のそれぞれの前記差異量と、を比較して、前記差異量が小さい順に、前記磁気インク文字の文字種類の第1候補、及び、第2候補を決定することが好ましい。   [Application Example 2] The recording medium processing apparatus according to the application example, wherein the control unit includes at least the magnetic field in the first recognition phase and the second recognition phase in ascending order of the calculated difference amount. The first candidate and the second candidate of the character type of the ink character are selected, and the difference amount of each of the character types selected as the first candidate and the second candidate in the first recognition phase; The first candidate and the difference amount of each of the character types selected as the second candidate in the second recognition phase are compared, and the character type of the magnetic ink character is ordered in ascending order of the difference amount. It is preferable to determine the first candidate and the second candidate.

この構成によれば、認識方法が異なる第1認識フェーズ及び第2認識フェーズのそれぞれで差異量が小さい順に第1候補、及び、第2候補として選別された文字種類の中から、さらに差異量が小さい順に第1候補、及び、第2候補を決定するので、磁気インク文字の誤認識を効果的に抑制できる。   According to this configuration, the difference amount is further increased from the first candidate and the character type selected as the second candidate in the order of small difference amount in each of the first recognition phase and the second recognition phase having different recognition methods. Since the first candidate and the second candidate are determined in ascending order, erroneous recognition of magnetic ink characters can be effectively suppressed.

[適用例3]上記適用例に係る記録媒体処理装置であって、前記制御部は、前記第1認識フェーズで前記第1候補として選別された文字種類の前記差異量が、前記第2認識フェーズで前記第1候補として選別された文字種類の前記差異量よりも小さい場合は、前記複数の文字種類の基準波形のそれぞれを前記第1認識フェーズでスライドさせた距離だけスライドさせて、2回目の前記第2認識フェーズを実行し、前記2回目の第2認識フェーズで第1候補、及び、第2候補として選別された文字種類のそれぞれの前記差異量と、前記第1認識フェーズで前記第1候補、及び、前記第2候補として選別された文字種類のそれぞれの前記差異量と、を比較して、前記差異量が小さい順に、前記磁気インク文字の文字種類の第1候補、及び、第2候補を決定することが好ましい。   Application Example 3 In the recording medium processing apparatus according to the application example described above, the control unit determines that the difference amount of the character type selected as the first candidate in the first recognition phase is the second recognition phase. If the difference is smaller than the difference amount of the character type selected as the first candidate, the reference waveform of the plurality of character types is slid by the distance slid in the first recognition phase. The second recognition phase is executed, the first candidate in the second recognition phase for the second time, and the difference amount of each character type selected as the second candidate, and the first amount in the first recognition phase. The candidate and the difference amount of each of the character types selected as the second candidate are compared, and the first candidate of the character type of the magnetic ink character and the second are in order of increasing the difference amount. Weather It is preferable to determine.

この構成によれば、第1認識フェーズで第1候補として選別された文字種類の差異量が、第2認識フェーズで第1候補として選別された文字種類の差異量よりも小さい場合は、検出波形の位置がずれている可能性が高いと考えられる。そのため、第1認識フェーズでスライドさせた距離だけスライドさせた上で第2認識フェーズを再度実行することにより、検出波形の位置のずれ及び伸び縮みの双方の影響を抑えて、磁気インク文字の認識を行うことができる。これにより、誤認識をより効果的に抑制できる。   According to this configuration, when the difference amount of the character type selected as the first candidate in the first recognition phase is smaller than the difference amount of the character type selected as the first candidate in the second recognition phase, the detected waveform It is considered that there is a high possibility that the position of is shifted. Therefore, by re-running the second recognition phase after sliding for the distance slid in the first recognition phase, the influence of both the displacement and expansion / contraction of the detected waveform is suppressed, and magnetic ink character recognition is performed. It can be performed. Thereby, misrecognition can be suppressed more effectively.

[適用例4]上記適用例に係る記録媒体処理装置であって、前記2回目の第2認識フェーズは、前記磁気インク文字のフォントがE−13Bフォントであって、前記第1認識フェーズで前記第1候補として選別された文字種類、及び、前記第2候補として選別された文字種類が「2」及び「5」である場合以外に実行することが好ましい。   Application Example 4 In the recording medium processing apparatus according to the application example, in the second recognition phase for the second time, the font of the magnetic ink character is an E-13B font, and the first recognition phase It is preferable to execute the processing except when the character type selected as the first candidate and the character type selected as the second candidate are “2” and “5”.

この構成によれば、E−13Bフォントにおける文字種類「2」と「5」とでは、磁気インク文字を読み取って得られる検出波形の一端側、及び、他端側が互いに類似しているため、基準波形をスライドさせると「2」と「5」とを誤認識するおそれがある。そのため、第1認識フェーズで第1候補、及び、第2候補として選別された文字種類が「2」及び「5」である場合には、波形をスライドさせた上で行う2回目の第2認識フェーズを実行しないことで、「2」と「5」との誤認識を抑えることができる。   According to this configuration, the character types “2” and “5” in the E-13B font are similar to each other on the one end side and the other end side of the detection waveform obtained by reading the magnetic ink characters. If the waveform is slid, “2” and “5” may be erroneously recognized. Therefore, when the character types selected as the first candidate and the second candidate in the first recognition phase are “2” and “5”, the second second recognition is performed after sliding the waveform. By not executing the phase, erroneous recognition of “2” and “5” can be suppressed.

[適用例5]本適用例に係る記録媒体処理装置の制御方法は、記録媒体に記録された磁気インク文字を磁気的に読み取る読取部を備えた記録媒体処理装置の制御方法であって、前記読取部が前記磁気インク文字を読み取って得られる検出波形と、規格で定められた複数の文字種類の基準波形のそれぞれを所定の距離スライドさせた波形と、の差異に応じた差異量を算出し、算出した前記差異量に基づいて前記磁気インク文字の文字種類の候補を選別する第1認識フェーズと、前記検出波形と、前記複数の文字種類の基準波形のそれぞれを所定の距離伸縮させた波形と、の差異に応じた差異量を算出し、算出した前記差異量に基づいて前記磁気インク文字の文字種類の候補を選別する第2認識フェーズと、を実行し、前記第1認識フェーズで前記候補として選別された文字種類の前記差異量と、前記第2認識フェーズで前記候補として選別された文字種類の前記差異量と、を比較して、前記磁気インク文字の文字種類の候補を決定することを特徴とする。   Application Example 5 A control method for a recording medium processing apparatus according to this application example is a control method for a recording medium processing apparatus including a reading unit that magnetically reads magnetic ink characters recorded on a recording medium, A difference amount corresponding to a difference between a detection waveform obtained by reading the magnetic ink character by the reading unit and a waveform obtained by sliding a reference waveform of a plurality of character types defined in the standard by a predetermined distance is calculated. A first recognition phase for selecting character type candidates of the magnetic ink character based on the calculated difference amount, a waveform obtained by expanding and contracting each of the detection waveform and the reference waveforms of the plurality of character types by a predetermined distance. And a second recognition phase for selecting a character type candidate of the magnetic ink character based on the calculated difference amount, and performing the previous in the first recognition phase. The difference amount of the character type selected as a candidate is compared with the difference amount of the character type selected as the candidate in the second recognition phase to determine a character type candidate of the magnetic ink character. It is characterized by that.

この方法によれば、第1認識フェーズでは、磁気インク文字を読み取って得られる検出波形と、規格で定められた複数の文字種類の基準波形のそれぞれを所定の距離スライドさせた波形とを比較するので、理想的な波形に対して検出波形の位置がずれている場合に、そのずれの影響を抑えて磁気インク文字の認識を行うことができる。第2認識フェーズでは、検出波形と、複数の文字種類の基準波形のそれぞれを所定の距離伸縮させた波形とを比較するので、検出波形に伸び縮みが生じている場合に、その伸び縮みの影響を抑えて磁気インク文字の認識を行うことができる。
また、第1認識フェーズで候補として選別された文字種類の差異量と、第2認識フェーズで候補として選別された文字種類の差異量とを比較して、磁気インク文字の文字種類の候補を決定する。そのため、文字種類の候補として、2通りの異なる方法による磁気インク文字認識の結果からより確実性が高いと考えられる方を選別できるので、磁気インク文字の誤認識を抑制することが可能となる。
According to this method, in the first recognition phase, a detection waveform obtained by reading a magnetic ink character is compared with a waveform obtained by sliding each of a plurality of character type reference waveforms defined in the standard by a predetermined distance. Therefore, when the position of the detected waveform is deviated from the ideal waveform, magnetic ink characters can be recognized while suppressing the influence of the deviation. In the second recognition phase, the detected waveform is compared with a waveform obtained by expanding and contracting each of the reference waveforms of a plurality of character types by a predetermined distance. Therefore, when the detected waveform is expanded or contracted, the influence of the expansion or contraction is generated. It is possible to recognize magnetic ink characters while suppressing the above.
Further, the character type candidate selected in the first recognition phase is compared with the character type difference selected as the candidate in the second recognition phase to determine a character type candidate for the magnetic ink character. To do. Therefore, since it is possible to select a character type candidate that is considered to be more reliable from the results of magnetic ink character recognition by two different methods, it is possible to suppress erroneous recognition of magnetic ink characters.

[適用例6]本適用例に係るプログラムは、記録媒体に記録された磁気インク文字を磁気的に読み取る読取部を備えた記録媒体処理装置の各部を制御する制御部により実行されるプログラムであって、前記制御部を、前記磁気インク文字を読み取って得られる検出波形と、規格で定められた複数の文字種類の基準波形のそれぞれを所定の距離スライドさせた波形と、の差異に応じた差異量を算出し、算出した前記差異量に基づいて前記磁気インク文字の文字種類の候補を選別する第1認識フェーズと、前記検出波形と、前記複数の文字種類の基準波形のそれぞれを所定の距離伸縮させた波形と、の差異に応じた差異量を算出し、算出した前記差異量に基づいて前記磁気インク文字の文字種類の候補を選別する第2認識フェーズと、を実行し、前記第1認識フェーズで前記候補として選別された文字種類の前記差異量と、前記第2認識フェーズで前記候補として選別された文字種類の前記差異量と、を比較して、前記磁気インク文字の文字種類の候補を決定する手段として機能させることを特徴とする。   Application Example 6 A program according to this application example is a program executed by a control unit that controls each unit of a recording medium processing apparatus including a reading unit that magnetically reads magnetic ink characters recorded on a recording medium. The control unit determines a difference according to a difference between a detection waveform obtained by reading the magnetic ink character and a waveform obtained by sliding each of a plurality of character type reference waveforms defined in the standard by a predetermined distance. A first recognition phase for calculating a quantity, and selecting a character type candidate of the magnetic ink character based on the calculated difference quantity, the detected waveform, and the reference waveforms of the plurality of character types are each set at a predetermined distance. A second recognition phase for calculating a difference amount according to a difference between the expanded and contracted waveform and selecting a character type candidate of the magnetic ink character based on the calculated difference amount; and The difference amount of the character type selected as the candidate in the first recognition phase is compared with the difference amount of the character type selected as the candidate in the second recognition phase. It is made to function as a means to determine the character type candidate.

この構成によれば、第1認識フェーズでは、磁気インク文字を読み取って得られる検出波形と、規格で定められた複数の文字種類の基準波形のそれぞれを所定の距離スライドさせた波形とを比較するので、理想的な波形に対して検出波形の位置がずれている場合に、そのずれの影響を抑えて磁気インク文字の認識を行うことができる。第2認識フェーズでは、検出波形と、複数の文字種類の基準波形のそれぞれを所定の距離伸縮させた波形とを比較するので、検出波形に伸び縮みが生じている場合に、その伸び縮みの影響を抑えて磁気インク文字の認識を行うことができる。
また、第1認識フェーズで候補として選別された文字種類の差異量と、第2認識フェーズで候補として選別された文字種類の差異量とを比較して、磁気インク文字の文字種類の候補を決定する。そのため、文字種類の候補として、2通りの異なる方法による磁気インク文字認識の結果からより確実性が高いと考えられる方を選別できるので、磁気インク文字の誤認識を抑制することが可能となる。
According to this configuration, in the first recognition phase, a detection waveform obtained by reading a magnetic ink character is compared with a waveform obtained by sliding each of a plurality of character type reference waveforms defined in the standard by a predetermined distance. Therefore, when the position of the detected waveform is deviated from the ideal waveform, magnetic ink characters can be recognized while suppressing the influence of the deviation. In the second recognition phase, the detected waveform is compared with a waveform obtained by expanding and contracting each of the reference waveforms of a plurality of character types by a predetermined distance. Therefore, when the detected waveform is expanded or contracted, the influence of the expansion or contraction is generated. It is possible to recognize magnetic ink characters while suppressing the above.
Further, the character type candidate selected in the first recognition phase is compared with the character type difference selected as the candidate in the second recognition phase to determine a character type candidate for the magnetic ink character. To do. Therefore, since it is possible to select a character type candidate that is considered to be more reliable from the results of magnetic ink character recognition by two different methods, it is possible to suppress erroneous recognition of magnetic ink characters.

本実施形態に係る小切手読取装置の外観斜視図である。1 is an external perspective view of a check reading apparatus according to the present embodiment. 小切手読取装置の内部構造を示す図である。It is a figure which shows the internal structure of a check reading apparatus. 小切手読取装置の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of a check reading apparatus. 第1の実施形態に係る文字認識部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the character recognition part which concerns on 1st Embodiment. 第1の実施形態に係る文字認識部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the character recognition part which concerns on 1st Embodiment. 第1の実施形態に係る文字認識部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the character recognition part which concerns on 1st Embodiment. 第1の実施形態に係る文字認識部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the character recognition part which concerns on 1st Embodiment. 第1の実施形態に係る文字認識部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the character recognition part which concerns on 1st Embodiment. 第1の実施形態に係る文字認識部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the character recognition part which concerns on 1st Embodiment. 第1の実施形態に係る文字認識部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the character recognition part which concerns on 1st Embodiment. 第1の実施形態に係る文字認識部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the character recognition part which concerns on 1st Embodiment. 検出信号波形データの一例を示す図である。It is a figure which shows an example of detection signal waveform data. 文字波形データの一例を示す図である。It is a figure which shows an example of character waveform data. 差異量を説明するための図である。It is a figure for demonstrating a difference amount. 伸縮テーブルのデータ構造を示す図である。It is a figure which shows the data structure of an expansion-contraction table. 伸縮させた基準波形データを示す図である。It is a figure which shows the expanded reference waveform data. (A)は縮みテーブルを示し、(B)は伸びテーブルを示す図である。(A) shows a contraction table, (B) is a figure which shows an extension table. 第2の実施形態に係る文字認識部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the character recognition part which concerns on 2nd Embodiment. 第3の実施形態に係る文字認識部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the character recognition part which concerns on 3rd Embodiment. (A)はE−13Bフォントにおける文字種類「2」に対応する基準波形データの内容を模式的に示し、(B)はE−13Bフォントにおける文字種類「5」に対応する基準波形データの内容を模式的に示す図である。(A) schematically shows the content of reference waveform data corresponding to the character type “2” in the E-13B font, and (B) shows the content of reference waveform data corresponding to the character type “5” in the E-13B font. FIG.

以下に、本発明の一実施形態である記録媒体処理装置、記録媒体処理装置の制御方法、及び、プログラムについて図面を参照して説明する。なお、参照する各図面において、構成をわかりやすく示すため、各構成要素の寸法の比率、角度等が異なる場合がある。   Hereinafter, a recording medium processing apparatus, a control method for the recording medium processing apparatus, and a program according to an embodiment of the present invention will be described with reference to the drawings. In each drawing referred to, in order to show the configuration in an easy-to-understand manner, the dimensional ratio, angle, and the like of each component may differ.

(第1の実施形態)
<記録媒体処理装置>
第1の実施形態に係る記録媒体処理装置を説明する。本実施形態に係る記録媒体処理装置は、小切手読取装置1とホストコンピューター70とで構成される。
(First embodiment)
<Recording medium processing apparatus>
A recording medium processing apparatus according to the first embodiment will be described. The recording medium processing apparatus according to this embodiment includes a check reading apparatus 1 and a host computer 70.

まず、第1の実施形態に係る小切手読取装置1の概略構成を説明する。図1は、本実施形態に係る小切手読取装置1の外観斜視図である。
小切手読取装置1は、シート状の記録媒体である小切手4に対し、小切手4に記録された磁気インク文字(MICR文字)の読み取りや、小切手4の両面の画像の読み取り、小切手4に対する裏書きに係る所定の画像の記録等の処理を行う装置である。
小切手読取装置1は、本体ケース2と、本体ケース2の上側に被せた蓋ケース3とを備えており、この内部に各部品が組み込まれた構成となっている。
蓋ケース3には、上から見た場合にU形状をした細幅の垂直溝からなる小切手4の搬送路5が形成されており、搬送路5の一方の端は広幅の垂直溝からなる小切手供給部6に連通しており、搬送路5の他方の端は左右に分岐して、それぞれ広幅の垂直溝からなる第1小切手排出部7及び第2小切手排出部8に繋がっている。
First, a schematic configuration of the check reading apparatus 1 according to the first embodiment will be described. FIG. 1 is an external perspective view of a check reading apparatus 1 according to this 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 consisting of a narrow vertical groove having a U shape when viewed from above, and one end of the conveyance path 5 is a check consisting of a wide vertical groove. The other end of the conveyance path 5 branches right and left and is connected to a first check discharge portion 7 and a second check discharge portion 8 each having a wide vertical groove.

小切手4の表面4aには、所定の模様が形成された背景に、金額、振出人、番号、サインなどが記載されており、その下端部分には、図1に示すように、長辺方向に延びる磁気インク文字列4Aが記録されている。磁気インク文字列4Aは、複数の磁気インク文字が横方向に並んで形成されている。
また、小切手4の裏面4bには、裏書き欄が形成されている。この裏書き欄には、後述する記録装置56によって、裏書きに係る所定の画像が記録される。
小切手4は、上端4eが上方に位置し下端4fが下方に位置するように上下方向が揃えられ、かつ、表面4aがU形状の搬送路5の外側を向くように表裏が揃えられた状態(図1に示す状態)で、小切手供給部6に挿入される。小切手供給部6に挿入された小切手4は、後端4dを先頭として搬送路5に送り出される。
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. A predetermined image related to the endorsement is recorded in the endorsement column by a recording device 56 described later.
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.

小切手供給部6から送り出された小切手4は、搬送路5に沿って搬送されながら、表面4aの画像である表面画像、及び、裏面4bの画像である裏面画像が読み取られ、さらに、表面4aに記録されている磁気インク文字列4Aが磁気的に読み取られる。そして、磁気インク文字列4Aの読み取りが成功した小切手4については、裏書きに係る所定の画像の記録が行われた後に、第1小切手排出部7に排出される。
一方、読み取りが失敗した小切手4については、裏書きに係る所定の画像が記録されることなく、第2小切手排出部8に排出される。第2小切手排出部8に排出された小切手4は、読み取りが失敗した原因の究明や、再読み取り等の処理が行われる。
As the check 4 sent out from the check supply unit 6 is conveyed along the conveyance path 5, the front image that is the image of the front surface 4a and the back image that is the image of the back surface 4b are read, and further, the check 4 is transferred to the front surface 4a. The recorded magnetic ink character string 4A 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が同期回転する。
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 delivery mechanism 10 includes a delivery roller 11, a delivery roller 12, a retard roller 13 pressed against the delivery roller 12, a delivery motor 14, and a check pressing hopper 15.
When the feeding motor 14 is driven, the check 4 placed 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 rotate synchronously.

繰り出しローラー11によって小切手4は送り出しローラー12とリタードローラー13の間に送り込まれる。リタードローラー13には所定の回転負荷が与えられており、送り出しローラー12に直接に接触している一枚の小切手4のみが他の小切手4から分離されて搬送路5に送り出される。
搬送路5は上述したようにU形状をしており、小切手供給部6に繋がっている直線状の上流側搬送路部分21と、第1小切手排出部7、第2小切手排出部8に繋がっており、僅かに折れ曲がった状態で延びている下流側搬送路部分23と、これらの間を繋ぐ湾曲搬送路部分22とを備えている。
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, the first check discharge unit 7, and the second check discharge unit 8. In addition, a downstream conveyance path portion 23 extending in a slightly bent state and a curved conveyance path portion 22 that connects the downstream conveyance path portion 22 are provided.

小切手供給部6から搬送路5に送り出された小切手4を当該搬送路5に沿って搬送する小切手搬送機構30は、第1搬送ローラー31〜第6搬送ローラー36と、これらに押し付けられて連れ回りする第1押圧ローラー41〜第6押圧ローラー46と、第1搬送ローラー31〜第6搬送ローラー36を回転駆動するための搬送用モーター37とを備えている。第1搬送ローラー31〜第6搬送ローラー36は同期して回転するようになっている。搬送用モーター37として、例えばステッピングモーターが用いられている。このため、ステッピングモーターを駆動するステップ数により、小切手4の搬送量を知ることができる。   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 pressing roller 41 to the sixth pressing roller 46 and a transport motor 37 for rotationally driving the first transport roller 31 to the sixth transport roller 36 are provided. 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.

第1搬送ローラー31〜第3搬送ローラー33は、上流側搬送路部分21における上流端、その中程の位置、及び湾曲搬送路部分22との境界位置にそれぞれ配置されている。第4搬送ローラー34は湾曲搬送路部分22における下流側の位置に配置されている。第5搬送ローラー35及び第6搬送ローラー36は、下流側搬送路部分23における中程の位置及び下流端にそれぞれ配置されている。   The first conveyance roller 31 to the third conveyance roller 33 are respectively disposed at the upstream end of the upstream conveyance path portion 21, the middle position thereof, and the boundary position with the curved conveyance 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 conveyance roller 31 and the second conveyance roller 32 in the upstream conveyance path portion 21, from the upstream side, a magnet 51 for magnetizing magnetic ink characters, a surface side contact image sensor 52 as an optical reading unit, and A contact image sensor 53 on the back side is arranged. The front-side contact image sensor 52 faces the front surface 4a of the check 4 transported on the transport path 5, and reads a front surface image that is an image of the front surface 4a. The back side contact image sensor 53 faces the back side 4b of the check 4 conveyed on the conveyance path 5, and reads a back side image that is an image of the back side 4b.

また、第2搬送ローラー32及び第3搬送ローラー33の間には、磁気インク文字を読み取る磁気読取部としての磁気ヘッド54が配置されており、磁気ヘッド54には、当該ヘッドに小切手4を押し付けるための押圧ローラー55が対峙している。
下流側搬送路部分23における第5搬送ローラー35及び第6搬送ローラー36の間には、裏書きに係る所定の画像の記録用の記録装置56が配置されている。記録装置56は、搬送路5を搬送される小切手4の裏面4bの適切な位置に、適切な方向で所定の画像を記録可能な、印刷ヘッドやスタンプなどを備えている。
Further, a magnetic head 54 as a magnetic reading unit for reading magnetic ink characters is disposed between the second transport roller 32 and the third transport roller 33, and the check 4 is pressed against the magnetic head 54. The pressing roller 55 for this is opposed.
Between the fifth transport roller 35 and the sixth transport roller 36 in the downstream transport 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が配置されており、ジャム検出器63によって所定時間以上に亘って継続して小切手4が検出されている場合には、搬送路5に小切手4が詰まった紙詰まり状態になったことが分かる。
第5搬送ローラー35の手前側の位置には、記録装置56によって裏書きされる小切手4の有無を検出するための印刷検出器64が配置されている。さらに、第6搬送ローラー36の下流側の位置、すなわち、搬送路5から第1小切手排出部7、第2小切手排出部8に分岐している分岐路9の位置には、これらに排出される小切手4を検出するための排出検出器65が配置されている。
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 sensor 53 and the second transport roller 32, a double feed detector 62 for detecting that the check 4 is transported in an overlapping state is disposed. A jam detector 63 is disposed at a position on the front side of the fourth transport roller 34. When the check 4 is continuously detected by the jam detector 63 over a predetermined time, the transport path 5 is detected. 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 a position on the front 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.

分岐路9には、駆動モーター67(図3参照)によって切り替え操作される切り替え板66が配置されている。切り替え板66は、第1小切手排出部7、第2小切手排出部8に対して、搬送路5の下流端を選択的に切り替え、小切手4を選択された排出部に導くための部材である。   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は、ホスト側制御部73の制御の下、送り出し用モーター14、搬送用モーター37を駆動して小切手4(図1参照)を一枚ずつ搬送路5に送り出させ、送り出された小切手4を搬送路5に沿って搬送させる。制御部71による小切手4の搬送制御は、搬送路5に配置されている用紙長検出器61、重送検出器62、ジャム検出器63、印刷検出器64及び排出検出器65からの検出信号に基づいて行われる。
FIG. 3 is a block diagram showing a functional configuration of the check reading apparatus 1.
The control unit 71 centrally controls each part of the check reading device 1 under the control of the host-side control unit 73 of the host computer 70 described later, and controls the CPU, ROM, RAM, and other peripheral circuits. I have.
The control unit 71 drives the delivery motor 14 and the conveyance motor 37 under the control of the host-side control unit 73 to feed the checks 4 (see FIG. 1) one by one to the conveyance path 5, and the sent checks 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.

小切手4の搬送に伴って、表面側コンタクトイメージセンサー52、及び、裏面側コンタクトイメージセンサー53は、搬送路5を搬送される小切手4の表面の画像、裏面の画像をそれぞれ読み取り、読み取った画像を示す画像データを制御部71に出力する。制御部71は、これら画像データを、ホスト側制御部73に出力する。
また、磁気ヘッド54は、制御部71の制御の下、通過する磁気インク文字列4A(図1参照)によって形成される磁界の変化によって発生する起電力を検出し、検出信号として信号処理回路74に出力する。
As the check 4 is transported, the front-side contact image sensor 52 and the back-side contact image sensor 53 respectively read the image on the front surface and the back surface of the check 4 transported on the transport path 5, and read the read images. The image data shown 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.

信号処理回路74は、増幅器や、ノイズ除去用のフィルター回路、A/D変換器等を備え、磁気ヘッド54から入力された検出信号を、増幅し、波形整形し、データとして制御部71に出力する。制御部71は、信号処理回路74から入力された検出信号を示すデータを、ホスト側制御部73に送信する。
操作部75は、本体ケース2(図1参照)に形成された電源スイッチや、操作スイッチ等の各種スイッチを備え、これらスイッチに対するユーザーの操作を検出し、制御部71に出力する。
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の表面画像や、裏面画像を示すデータや、検出信号を示すデータを記憶する。
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-side control unit 73 includes a character recognition unit 80 described later.
The host-side control unit 73 includes a display 76 that can display various types of information, an operation unit 77 to which input devices such as a keyboard and a mouse are connected, and a storage unit that stores various types of rewritable data such as an EEPROM and a hard disk. 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.

本実施形態では、ホストコンピューター70のホスト側制御部73の制御の下、小切手読取装置1の制御部71が小切手読取装置1の各部を制御する。具体的には、ホスト側制御部73は、そのCPUがROMに記憶されたプログラムを実行して、制御部71を制御するための制御データを生成し、生成した制御データを小切手読取装置1の制御部71に対して出力することにより、小切手読取装置1の各部を制御する。すなわち、本実施形態では、ホストコンピューター70と、小切手読取装置1とが協働して、記録媒体たる小切手4に対して各種処理を実行する記録媒体処理装置として機能する。   In the present embodiment, the control unit 71 of the check reading device 1 controls each part 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. That is, in this embodiment, the host computer 70 and the check reading device 1 cooperate to function as a recording medium processing device that executes various processes on the check 4 as a recording medium.

<文字認識部>
次いで、ホスト側制御部73が備える文字認識部80について説明する。
文字認識部80は、磁気インク文字列4Aを構成する磁気インク文字のそれぞれについて、文字の認識を行う。磁気インク文字とは、所定のフォント(例えば、E−13Bフォント)に準拠して、小切手4に磁気印刷された文字のことであり、1つの磁気インク文字は、予め定められた複数の文字種類のうちのいずれか1つの文字種類に対応している。そして、磁気インク文字の認識とは、読み取った磁気インク文字のそれぞれについて、各磁気インク文字の文字種類を確定し、又は、当該磁気インク文字の文字種類を確定できないことを検出することである。
<Character recognition part>
Next, the character recognition unit 80 included in the host-side control unit 73 will be described.
The character recognition unit 80 performs character recognition for each of the magnetic ink characters constituting the magnetic ink character string 4A. The magnetic ink character is a character magnetically printed on the check 4 in accordance with a predetermined font (for example, E-13B font), and one magnetic ink character has a plurality of predetermined character types. Corresponds to any one character type. The recognition of the magnetic ink character is to determine the character type of each magnetic ink character for each of the read magnetic ink characters or to detect that the character type of the magnetic ink character cannot be determined.

なお、E−13Bフォントでは、磁気インク文字の形状として、「0」〜「9」、トランジット記号(TRANSIT SYMBOL)、アマウント記号(AMOUNT SYMBOL)、オン−アス記号(ON−US SYMBOL)、及び、ダッシュ記号(DASH SYMBOL)の14個の文字種類に対応する形状が用意されている。
また、磁気インク文字列4Aの各磁気インク文字は、小切手4にオフセット印刷により印刷される場合と、レーザー印刷により印刷される場合とがある。そして、オフセット印刷によって印刷されるE−13Bフォントの磁気インク文字と、レーザー印刷によって印刷されるE−13Bフォントの磁気インク文字とでは、その形状が相違している。
In the E-13B font, the shapes of magnetic ink characters are “0” to “9”, transit symbol (TRANSIT SYMBOL), amount symbol (AMOUNT SYMBOL), on-as symbol (ON-US SYMBOL), and Shapes corresponding to 14 character types of dash symbols (DASH SYMBOL) are prepared.
In addition, each magnetic ink character of the magnetic ink character string 4A may be printed on the check 4 by offset printing or may be printed by laser printing. The shape of the magnetic ink character of E-13B font printed by offset printing is different from that of the magnetic ink character of E-13B font printed by laser printing.

本実施形態では、磁気インク文字列4Aに含まれる全ての磁気インク文字について、磁気インク文字の文字種類を確定できれば、磁気インク文字列4Aの読み取りが成功したものと判別され、一方、磁気インク文字の中に、1つでも磁気インク文字の文字種類が確定できないものがあれば、磁気インク文字列4Aの読み取りが失敗したものと判別される。
上述したように、制御部71は、ホスト側制御部73の制御の下、磁気インク文字列4Aの読み取りが成功した小切手4については、当該小切手4を第1小切手排出部7に搬送し、一方、磁気インク文字列4Aの読み取りが失敗した小切手4については、所定の処理を実行した上で、当該小切手4を第2小切手排出部8に搬送する。
以下、文字認識部80の動作について詳述する。
In the present embodiment, if the character type of the magnetic ink character can be determined for all the magnetic ink characters included in the magnetic ink character string 4A, it is determined that the magnetic ink character string 4A has been successfully read. If one of the characters cannot determine the character type of the magnetic ink character, it is determined that the reading of the magnetic ink character string 4A has failed.
As described above, under the control of the host-side control unit 73, the control unit 71 conveys the check 4 to the first check discharge unit 7 for the check 4 for which the magnetic ink character string 4A has been successfully read. For the check 4 for which reading of the magnetic ink character string 4A has failed, the check 4 is conveyed to the second check discharge unit 8 after executing a predetermined process.
Hereinafter, the operation of the character recognition unit 80 will be described in detail.

図4〜図11は、第1の実施形態に係る文字認識部80の動作を示すフローチャートである。
文字認識部80の機能は、ホスト側制御部73のCPUがROMに記憶されたプログラムを実行する等、ハードウェアとソフトウェアとの協働により実現される。
4 to 11 are flowcharts showing the operation of the character recognition unit 80 according to the first embodiment.
The function of the 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.

図4〜図11のフローチャートは、ある1つの小切手4について、当該小切手4に記録された磁気インク文字列4Aの認識を実行する際の文字認識部80の動作を示しているものとする。そして、当該小切手4に記録された磁気インク文字列4Aについて、磁気ヘッド54による読み取りが行われており、信号処理回路74によって、増幅処理や、フィルター処理、波形整形処理等の各種処理が実行されて検出信号を示すデータ(以下、「検出信号波形データ」という)が生成され、制御部71により、検出信号波形データが、ホスト側制御部73に出力されているものとする。さらに、表面側コンタクトイメージセンサー52により、当該小切手4の表面の画像が読み取られ、画像データとして制御部71からホスト側制御部73に出力されているものとする。   The flowcharts of FIGS. 4 to 11 show the operation of the character recognition unit 80 when executing recognition of a magnetic ink character string 4A recorded on a check 4 for a certain check 4. The magnetic ink character string 4A recorded on the check 4 is read by the magnetic head 54, and the signal processing circuit 74 performs various processing such as amplification processing, filtering processing, and waveform shaping processing. It is assumed that data indicating the detection signal (hereinafter referred to as “detection signal waveform data”) is generated and the detection signal waveform data is output to the host-side control unit 73 by the control unit 71. Further, it is assumed that an image of the surface of the check 4 is read by the front-side contact image sensor 52 and output from the control unit 71 to the host-side control unit 73 as image data.

図4を参照し、ホスト側制御部73は、制御部71から入力された検出信号波形データから、磁気インク文字列4Aに含まれる磁気インク文字のうち1つの磁気インク文字について、文字の切り出しを行う(ステップSA1)。文字の切り出しとは、検出信号波形データに基づいて、磁気インク文字列4Aに含まれる磁気インク文字のうち1つの磁気インク文字について、当該磁気インク文字の波形を示す文字波形データを生成することである。
ステップSA1の処理は、例えば、以下のようにして実行される。
Referring to FIG. 4, the host-side control unit 73 cuts out characters from one of the magnetic ink characters included in the magnetic ink character string 4 </ b> A from the detection signal waveform data input from the control unit 71. Perform (step SA1). Character segmentation refers to generating character waveform data indicating the waveform of a magnetic ink character for one magnetic ink character included in the magnetic ink character string 4A based on the detection signal waveform data. is there.
The process of step SA1 is executed as follows, for example.

図12は、検出信号波形データ(一部)の内容の一例を模式的に示す図であり、図13は、ステップSA1における処理により生成された文字波形データの内容の一例を模式的に示す図である。
上述したように、本実施形態では、搬送路5内で小切手4を搬送しつつ、当該小切手4に記録された磁気インク文字列4Aを磁気ヘッド54により読み取るが、その際、磁気ヘッド54では、搬送される小切手4の磁気インク文字列4Aを、後端4d側から前端4g側へ向かって所定のサンプリング周期で磁束を測定することにより、磁気インク文字列4Aの読み取りを実行する。以下の説明では、サンプリング周期の最小単位の間隔を、1サンプリング単位と言うものとする。
FIG. 12 is a diagram schematically illustrating an example of the contents of the detection signal waveform data (part), and FIG. 13 is a diagram schematically illustrating an example of the contents of the character waveform data generated by the processing in step SA1. It is.
As described above, in the present embodiment, the magnetic ink character string 4 </ b> A recorded on the check 4 is read by the magnetic head 54 while the check 4 is being conveyed in the conveyance path 5. The magnetic ink character string 4A of the check 4 being conveyed is read at a predetermined sampling period from the rear end 4d side to the front end 4g side, thereby reading the magnetic ink character string 4A. In the following description, the interval of the minimum unit of the sampling period is referred to as one sampling unit.

図12では、X軸(横軸)は、時間の経過(サンプリング周期の経過)が規定され(原点からX軸右方に向かうに従って、1サンプリング単位が順次経過したことを示す)、Y軸(縦軸)は、時間の経過に伴う磁荷の変化量の相対値が規定されている。そして、図12では、磁気インク文字列4Aにおいて、小切手4の後端4d側から前端4g側に向かって、所定のサンプリング周期毎に磁荷の変化量の相対値がどのように変化したかが示されており、磁気インク文字列4Aに含まれる各磁気インク文字の磁荷の変化量に対応してY軸方向の値が上下すると共に、磁荷の変化量がプラスであるのかマイナスであるのかに応じてY軸方向の値の正負が変化する。   In FIG. 12, the X axis (horizontal axis) defines the passage of time (elapsed sampling period) (indicating that one sampling unit has sequentially passed from the origin to the right of the X axis), and the Y axis ( The vertical axis) defines the relative value of the amount of change in magnetic charge with time. In FIG. 12, in the magnetic ink character string 4A, how the relative value of the change amount of the magnetic charge changes every predetermined sampling period from the rear end 4d side of the check 4 toward the front end 4g side. The value in the Y-axis direction rises and falls according to the amount of change in magnetic charge of each magnetic ink character included in the magnetic ink character string 4A, and the amount of change in magnetic charge is positive or negative. Depending on whether the value is positive or negative in the Y-axis direction.

ここで、本実施形態では、検出信号波形データのX軸方向において、1つの磁気インク文字に対応する波形が占める範囲は、所定の数のサンプリング単位(例えば、70サンプリング単位)と規定されており、この規定に準じるように、各種搬送制御が実行されると共に、1サンプリング単位の長さが規定されている。   Here, in this embodiment, the range occupied by the waveform corresponding to one magnetic ink character in the X-axis direction of the detection signal waveform data is defined as a predetermined number of sampling units (for example, 70 sampling units). In accordance with this rule, various transport controls are executed and the length of one sampling unit is specified.

これを踏まえ、ステップSA1では、文字認識部80は、検出信号波形データが示す波形に基づいて、当該波形の各ピーク位置(極大値、極小値に対応するX軸の値であり、ピーク位置は、所定の周期で現出するよう規定されている)を検出し、検出したピーク位置に基づいて、磁気インク文字列4Aに含まれる磁気インク文字のそれぞれについて、文字開始位置を検出する。そして、文字認識部80は、検出信号波形データが示す波形を、検出した文字開始位置から、1つの磁気インク文字の幅に対応する所定の数のサンプリング単位で切り出す。
その際、文字認識部80は、切り出した波形における最初のピーク位置が、X軸における所定のサンプリング単位目に位置するように、検出信号波形データが示す波形を切り出す。例えば、文字認識部80は、磁気インク文字列4Aに含まれる1つの磁気インク文字について、文字開始位置から11サンプリング目に波形の最初のピーク位置が位置するように、検出信号波形データの波形の切り出しを行う。
Based on this, in step SA1, the character recognition unit 80 is based on the waveform indicated by the detection signal waveform data, and each peak position (the X-axis value corresponding to the maximum value and the minimum value) of the waveform. The character start position is detected for each of the magnetic ink characters included in the magnetic ink character string 4A based on the detected peak position. Then, the character recognition unit 80 cuts out the waveform indicated by the detection signal waveform data from the detected character start position in a predetermined number of sampling units corresponding to the width of one magnetic ink character.
At that time, the character recognition unit 80 cuts out the waveform indicated by the detection signal waveform data so that the first peak position in the cut-out waveform is located at a predetermined sampling unit on the X axis. For example, the character recognition unit 80 determines the waveform of the detection signal waveform data so that the first peak position of the waveform is located at the 11th sampling from the character start position for one magnetic ink character included in the magnetic ink character string 4A. Cut out.

ステップSA1における文字の切り出しにより、磁気インク文字列4Aに含まれる1つの磁気インク文字について、当該磁気インク文字の実際の検出信号に基づいて、図13の例に示すような内容を有する文字波形データが生成される。
なお、ステップSA1の文字の切り出しは、磁気インク文字列4Aに含まれる磁気インク文字のそれぞれについて、小切手4の後端4d側に配置された磁気インク文字から前端4g側に配置された磁気インク文字へ向かって、順番に行われ、切り出された磁気インク文字ごとにステップSA2以下の文字の認識に係る処理が実行される。
以下、ステップSA1において、切り出された1の磁気インク文字のことを「処理対象文字」という。
Character waveform data having the contents shown in the example of FIG. 13 based on the actual detection signal of the magnetic ink character for one magnetic ink character included in the magnetic ink character string 4A by cutting out the character in step SA1. Is generated.
The character cut-out in step SA1 is performed for each magnetic ink character included in the magnetic ink character string 4A from the magnetic ink character arranged on the rear end 4d side of the check 4 to the magnetic ink character arranged on the front end 4g side. Steps SA <b> 2 and subsequent processing relating to character recognition are executed for each magnetic ink character cut out in order.
Hereinafter, one magnetic ink character cut out in step SA1 is referred to as a “processing target character”.

文字の切り出しの実行後、文字認識部80は、生成した処理対象文字の文字波形データについて、各データが示す波形のY軸方向における振幅レベルが、後述するパターンマッチング用の基準波形データのY軸方向における振幅レベルと同等となるよう、データの正規化を行う(ステップSA2)。   After the character segmentation is performed, the character recognition unit 80 determines that the amplitude level in the Y-axis direction of the waveform indicated by each data of the generated character waveform data of the processing target character is the Y-axis of the reference waveform data for pattern matching described later. Data normalization is performed so as to be equivalent to the amplitude level in the direction (step SA2).

図4を参照し、ステップSA2の後には、第1認識フェーズ(ステップSA3)、及び、第2認識フェーズ(ステップSA7)の2つの処理フェーズが含まれている。これら2つの処理フェーズは、いわゆる磁気インク文字認識に係る処理であり、ステップSA1において切り出された磁気インク文字(処理対象文字)に対して順次実行され、これにより、磁気インク文字列4Aに含まれる磁気インク文字のそれぞれに対して1回ずつ実行される。これら2つの処理フェーズは、それぞれ異なる方法により処理対象文字の磁気インク文字認識を行い、当該処理対象文字の文字種類を確定し、又は、確定できないことを検出するフェーズである。   Referring to FIG. 4, step SA2 includes two processing phases: a first recognition phase (step SA3) and a second recognition phase (step SA7). These two processing phases are processes related to so-called magnetic ink character recognition, which are sequentially executed on the magnetic ink characters (processing target characters) cut out in step SA1, and are thereby included in the magnetic ink character string 4A. Run once for each magnetic ink character. These two processing phases are phases in which magnetic ink character recognition of the character to be processed is performed by different methods, and the character type of the character to be processed is determined or it is detected that it cannot be determined.

図5は、ステップSA3の第1認識フェーズにおける文字認識部80の動作を示すフローチャートである。
第1認識フェーズにおいて、まず、文字認識部80は、処理対象文字の文字種類を確定し、又は、確定できないことを検出する処理を実行する第1認識パスを実行する(ステップSB1)。
FIG. 5 is a flowchart showing the operation of the character recognition unit 80 in the first recognition phase of step SA3.
In the first recognition phase, first, the character recognizing unit 80 executes a first recognition pass for executing a process of determining that the character type of the processing target character is not determined or cannot be determined (step SB1).

次いで、文字認識部80は、第1認識パスで処理対象文字の文字種類を確定できたか否かを判別し(ステップSB2)、処理対象文字の文字種類を確定できた場合(ステップSB2:YES)、第1認識フェーズを終了する。一方、処理対象文字の文字種類を確定できなかった場合(ステップSB2:NO)、文字認識部80は、第2認識パスを実行する(ステップSB3)。   Next, the character recognition unit 80 determines whether or not the character type of the processing target character has been determined in the first recognition pass (step SB2), and when the character type of the processing target character has been determined (step SB2: YES). The first recognition phase is finished. On the other hand, when the character type of the character to be processed cannot be determined (step SB2: NO), the character recognition unit 80 executes the second recognition pass (step SB3).

次いで、文字認識部80は、第2認識パスで処理対象文字の文字種類を確定できたか否かを判別し(ステップSB4)、処理対象文字の文字種類を確定できた場合(ステップSB4:YES)、第1認識フェーズを終了する。一方、処理対象文字の文字種類を確定できなかった場合(ステップSB4:NO)、文字認識部80は、第1認識フェーズでは、処理対象文字の文字種類を確定できないと判別する(ステップSB5)。
以下、第1認識パス、及び、第2認識パスの処理について詳述する。
Next, the character recognition unit 80 determines whether or not the character type of the processing target character has been determined in the second recognition pass (step SB4), and when the character type of the processing target character has been determined (step SB4: YES). The first recognition phase is finished. On the other hand, when the character type of the processing target character cannot be determined (step SB4: NO), the character recognition unit 80 determines that the character type of the processing target character cannot be determined in the first recognition phase (step SB5).
Hereinafter, the processing of the first recognition pass and the second recognition pass will be described in detail.

図6は、図5のステップSB1の第1認識パスにおける文字認識部80の動作を示すフローチャートである。
第1認識パスにおいて、文字認識部80は、E−13Bフォントに規定された14個の文字種類の中から、ステップSC2の処理において比較対象とされる文字種類を特定する(ステップSC1)。以下、ステップSC1で特定された文字種類のことを、「比較対象文字種類」というものとする。ステップSC2の処理は、14個の文字種類のそれぞれを比較対象として、順番に、1回ずつ行われることになる。
FIG. 6 is a flowchart showing the operation of the character recognition unit 80 in the first recognition pass of step SB1 of FIG.
In the first recognition pass, the character recognition unit 80 specifies a character type to be compared in the process of step SC2 from the 14 character types defined in the E-13B font (step SC1). Hereinafter, the character type specified in step SC1 is referred to as a “comparison character type”. The process of step SC2 is performed once in order, with each of the 14 character types being compared.

次いで、文字認識部80は、ステップSA1で切り出した処理対象文字の文字波形データの波形と、比較対象文字種類に対応する基準波形データのそれぞれが示す波形との間の差異量を算出する(ステップSC2)。   Next, the character recognition unit 80 calculates a difference amount between the waveform of the character waveform data of the processing target character cut out in step SA1 and the waveform indicated by each of the reference waveform data corresponding to the comparison target character type (step). SC2).

ステップSC2の処理について詳述すると、1つの文字種類に対応する基準波形データとは、当該1つの文字種類に対応する磁気インク文字を磁気ヘッド54によって読み取ったときの検出信号の理想的な波形を示すデータであり、いわゆる磁気インク文字認識におけるパターンマッチング処理で供されるテンプレートデータに該当するデータである。   The processing in step SC2 will be described in detail. The reference waveform data corresponding to one character type is an ideal waveform of a detection signal when a magnetic ink character corresponding to the one character type is read by the magnetic head 54. This is data corresponding to template data provided in pattern matching processing in so-called magnetic ink character recognition.

ここで、上述したように、オフセット印刷によって印刷される磁気インク文字と、レーザー印刷によって印刷される磁気インク文字とでは、その形状が相違している。そのため、基準波形データには、オフセット印刷用の基準波形データと、レーザー印刷用の基準波形データとの2種類のデータがある。第1認識フェーズでは、これらの2種類の基準波形データのうち、いずれか一方の基準波形データが利用されて各種処理が実行される。
なお、例えば、第1認識フェーズではオフセット印刷用の基準波形データを利用して各種処理を実行し、その後に、レーザー印刷用の基準波形データを利用して第1認識フェーズと同様の各種処理を別途実行することにより、2種類のデータの双方を利用して磁気インク文字認識を行う構成としてもよい。
Here, as described above, the magnetic ink characters printed by offset printing and the magnetic ink characters printed by laser printing have different shapes. Therefore, the reference waveform data includes two types of data: reference waveform data for offset printing and reference waveform data for laser printing. In the first recognition phase, various types of processing are executed using any one of these two types of reference waveform data.
For example, in the first recognition phase, various processes are executed using the reference waveform data for offset printing, and thereafter, various processes similar to those in the first recognition phase are performed using the reference waveform data for laser printing. It is good also as a structure which performs magnetic ink character recognition using both of two types of data by performing separately.

図14は、ステップSC2で検出される差異量を説明するための図である。図14において、文字波形データが示す波形は細線で示され、基準波形データが示す波形は太線で示されている。
差異量とは、図14中、斜線で示す領域の大きさのことであり、より具体的には、X軸上に規定された各サンプリング単位における、文字波形データが示す波形のY軸方向の値と、基準波形データが示す波形のY軸方向の値との差の絶対値の総和のことである。1つの文字波形データが示す波形と、1つの基準波形データが示す波形との間の差異量が小さければ小さいほど、当該1つの文字波形データが示す波形と、当該1つの基準波形データが示す波形とが近似しているということであり、当該1つの文字波形データに対応する磁気インク文字の文字種別が、当該1つの基準波形データに対応する文字種類である蓋然性が高いということである。
FIG. 14 is a diagram for explaining the difference amount detected in step SC2. In FIG. 14, the waveform indicated by the character waveform data is indicated by a thin line, and the waveform indicated by the reference waveform data is indicated by a thick line.
The difference amount is the size of the area shown by hatching in FIG. 14, and more specifically, in the Y-axis direction of the waveform indicated by the character waveform data in each sampling unit defined on the X-axis. This is the sum of absolute values of the difference between the value and the value in the Y-axis direction of the waveform indicated by the reference waveform data. The smaller the difference between the waveform indicated by one character waveform data and the waveform indicated by one reference waveform data, the smaller the waveform indicated by the one character waveform data and the waveform indicated by the one reference waveform data. And the character type of the magnetic ink character corresponding to the one character waveform data is highly likely to be the character type corresponding to the one reference waveform data.

処理対象文字の文字波形データが示す波形と、比較対象文字種類に対応する基準波形データの波形との間の差異量を算出した後、文字認識部80は、14種類の全ての文字種類について、差異量の算出が終了したか否かを判別する(ステップSC3)。
14種類の全ての文字種類について、差異量の算出が終了していない場合(ステップSC3:NO)、文字認識部80は、処理手順をステップSC1に戻し、全ての文字種類について差異量の算出が終了した場合(ステップSC3:YES)、処理手順をステップSC4へ移行する。
After calculating the amount of difference between the waveform indicated by the character waveform data of the character to be processed and the waveform of the reference waveform data corresponding to the character type to be compared, the character recognition unit 80 performs the following operation for all 14 types of characters. It is determined whether or not the calculation of the difference amount has been completed (step SC3).
If the calculation of the difference amount has not been completed for all 14 character types (step SC3: NO), the character recognition unit 80 returns the processing procedure to step SC1, and the calculation of the difference amount for all character types is performed. If completed (step SC3: YES), the process proceeds to step SC4.

ステップSC4において、文字認識部80は、差異量が最も小さかった基準波形データに対応する文字種類をパス1用第1候補C11とし、次に差異量が小さかった基準波形データに対応する文字種類をパス1用第2候補C12とする。
上述したように、パス1用第1候補C11とされた文字種類は、処理対象文字の文字種類である蓋然性が最も高く、パス1用第2候補C12とされた文字種類は、処理対象文字の文字種類である蓋然性が2番目に高い。
In step SC4, the character recognizing unit 80 sets the character type corresponding to the reference waveform data having the smallest difference amount as the first candidate C11 for pass 1, and then selects the character type corresponding to the reference waveform data having the smallest difference amount. The second candidate for path 1 is C12.
As described above, the character type set as the first candidate C11 for pass 1 has the highest probability of being the character type of the processing target character, and the character type set as the second candidate C12 for pass 1 is the character type of the processing target character. The probability of being a character type is the second highest.

次いで、文字認識部80は、パス1用第1候補C11とされた文字種類に対応する基準波形データと、処理対象文字の文字波形データとの差異量、及び、パス1用閾値T1を比較し、当該差異量がパス1用閾値T1を上回るか否かを判別する(ステップSC5)。
パス1用閾値T1は、パス1用第1候補C11とされた文字種類を、処理対象文字の文字種類として確定するか否かを判別する際の基準となる値であり、差異量がパス1用閾値T1以下の場合は、後述する他の条件が成立すれば、文字認識部80は、パス1用第1候補C11とされた文字種類を、処理対象文字の文字種類として確定する。
Next, the character recognition unit 80 compares the difference amount between the reference waveform data corresponding to the character type determined as the first candidate C11 for pass 1 and the character waveform data of the character to be processed, and the threshold value T1 for pass 1. Then, it is determined whether or not the difference amount exceeds the pass 1 threshold value T1 (step SC5).
The pass 1 threshold value T1 is a value serving as a reference when determining whether or not to determine the character type set as the first candidate C11 for pass 1 as the character type of the character to be processed. In the case of the threshold value T1 or less, if other conditions described later are satisfied, the character recognition unit 80 determines the character type set as the first candidate for pass 1 C11 as the character type of the processing target character.

パス1用閾値T1は、処理対象文字の文字波形データと、当該処理対象文字の正しい文字種類に対応する基準波形データとの間の差異量のみが、当該パス1用閾値T1以下となり、かつ、当該文字波形データと、他の文字種類に対応する基準波形データとの間の差異量が、当該パス1用閾値T1を上回るようにするという観点から、適切に設定される。具体的には、本実施形態では、パス1用閾値T1は、文字種類ごとに、以下のようにして設定される。
すなわち、事前の試験で、14個の文字種類の磁気インク文字のそれぞれについて、1つの磁気インク文字を実際に読み取ったときの文字波形データと、当該1つの磁気インク文字の正しい文字種類に対応する基準波形データとの間の差異量を、複数回、検出する。そして、1つの磁気インク文字に係るパス1用閾値T1を「パス1用閾値T1=(検出した複数の差異量の平均値)+(検出した複数の差異量の標準偏差)×(所定の係数)」により算出される値とする。(所定の係数)は、パス1用閾値T1を上述した観点に従って設定することを目的として、事前の実験、シミュレーションの結果に基づいて、文字種類ごとに設定される値である。このようにして、パス1用閾値T1を設定することにより、実際に算出される差異量のばらつきを考慮して、パス1用閾値T1を適切な値とすることができる。
The threshold value T1 for pass 1 is such that only the amount of difference between the character waveform data of the character to be processed and the reference waveform data corresponding to the correct character type of the character to be processed is equal to or less than the threshold value for pass 1 T1, and The amount of difference between the character waveform data and the reference waveform data corresponding to another character type is set appropriately from the viewpoint of exceeding the pass 1 threshold value T1. Specifically, in the present embodiment, the pass 1 threshold T1 is set for each character type as follows.
That is, in a preliminary test, for each of the 14 character types of magnetic ink characters, it corresponds to the character waveform data when one magnetic ink character is actually read and the correct character type of the one magnetic ink character. The amount of difference from the reference waveform data is detected a plurality of times. Then, the pass 1 threshold T1 for one magnetic ink character is expressed as “pass 1 threshold T1 = (average value of a plurality of detected difference amounts) + (standard deviation of a plurality of detected difference amounts) × (predetermined coefficient) ) ”. The (predetermined coefficient) is a value set for each character type based on the results of previous experiments and simulations for the purpose of setting the pass 1 threshold value T1 according to the above-described viewpoint. In this way, by setting the pass 1 threshold value T1, it is possible to set the pass 1 threshold value T1 to an appropriate value in consideration of variations in the actually calculated difference amount.

差異量がパス1用閾値T1を上回る場合(ステップSC5:YES)、文字認識部80は、処理対象文字の文字種類を確定することなく、第1認識パスを終了する。
差異量がパス1用閾値T1以下の場合(ステップSC5:NO)、文字認識部80は、さらに、パス1用第2候補C12とされた文字種類に対応する基準波形データと、処理対象文字の文字波形データとの差異量、及び、パス1用閾値T1とを比較し、当該差異量がパス1用閾値T1を上回るか否かを判別する(ステップSC6)。
If the difference amount exceeds the pass 1 threshold T1 (step SC5: YES), the character recognition unit 80 ends the first recognition pass without determining the character type of the processing target character.
When the difference amount is equal to or smaller than the pass 1 threshold value T1 (step SC5: NO), the character recognition unit 80 further includes the reference waveform data corresponding to the character type determined as the pass 1 second candidate C12 and the character to be processed. The difference between the character waveform data and the pass 1 threshold T1 is compared, and it is determined whether or not the difference exceeds the pass 1 threshold T1 (step SC6).

当該差異量がパス1用閾値T1を上回る場合(ステップSC6:YES)、文字認識部80は、パス1用第1候補C11とされた文字種類を、処理対象文字の文字種類として確定し(ステップSC7)、第1認識パスを終了する。
一方で、当該差異量がパス1用閾値T1以下の場合(ステップSC6:NO)、文字認識部80は、処理対象文字の文字種類を確定することなく、第1認識パスを終了する。
When the difference amount exceeds the pass 1 threshold value T1 (step SC6: YES), the character recognition unit 80 determines the character type set as the first pass 1 candidate C11 as the character type of the processing target character (step step). SC7), the first recognition pass is terminated.
On the other hand, when the difference amount is equal to or less than the pass 1 threshold T1 (step SC6: NO), the character recognition unit 80 ends the first recognition pass without determining the character type of the processing target character.

このように、本実施形態では、パス1用第1候補C11とされた文字種類に対応する基準波形データと、処理対象文字の文字波形データとの差異量が、パス1用閾値T1以下の場合であっても、パス1用第2候補C12とされた文字種類に対応する基準波形データと、処理対象文字の文字波形データとの差異量が、パス1用閾値T1以下である場合は、処理対象文字の文字種類を確定しない。これは、以下の理由による。
すなわち、パス1用閾値T1は、処理対象文字の文字波形データと、当該処理対象文字の正しい文字種類に対応する基準波形データとの間の差異量のみが、当該パス1用閾値T1以下となり、かつ、当該文字波形データと、他の文字種類に対応する基準波形データとの間の差異量が、当該パス1用閾値T1を上回るように設定された値である。従って、正常に小切手4が搬送され、磁気ヘッド54により正常に磁気インク文字列4Aが読み取られた場合は、パス1用閾値T1を下回る差異量に係る文字種類は、1つに限定される。このため、パス1用閾値T1を下回る差異量に係る文字種類が複数存在している状況のときは、磁気ヘッド54による読み取りエラーや、小切手4の搬送エラー、その他の何らかの原因により、当該状況が現出している可能性があり、このような状況のときに処理対象文字の文字種類を確定すると、誤認識を招くおそれがあるからである。
Thus, in the present embodiment, when the difference amount between the reference waveform data corresponding to the character type set as the first candidate C11 for pass 1 and the character waveform data of the character to be processed is equal to or less than the threshold value T1 for pass 1. Even if the difference amount between the reference waveform data corresponding to the character type determined as the second candidate C1 for pass 1 and the character waveform data of the character to be processed is equal to or smaller than the threshold value T1 for pass 1, the processing is performed. Does not determine the character type of the target character. This is due to the following reason.
That is, the threshold value T1 for pass 1 is such that only the amount of difference between the character waveform data of the character to be processed and the reference waveform data corresponding to the correct character type of the character to be processed is equal to or less than the threshold value T1 for pass 1. The difference amount between the character waveform data and the reference waveform data corresponding to another character type is a value set so as to exceed the pass 1 threshold value T1. Therefore, when the check 4 is normally conveyed and the magnetic ink character string 4A is normally read by the magnetic head 54, the character type related to the difference amount below the pass 1 threshold T1 is limited to one. For this reason, when there are a plurality of character types related to the difference amount below the pass 1 threshold value T1, the situation may be caused by a reading error by the magnetic head 54, a conveyance error of the check 4, or any other cause. This is because there is a possibility of appearing, and if the character type of the character to be processed is determined in such a situation, there is a risk of erroneous recognition.

図7は、図5のステップSB3の第2認識パスにおける文字認識部80の動作を示すフローチャートである。
第2認識パスにおいて、文字認識部80は、14個の文字種類の中から、ステップSD2、及び、ステップSD3の処理において比較対象とされる文字種類を特定する(ステップSD1)。以下、ステップSD1で特定された文字種類のことを、「比較対象文字種類」というものとする。ステップSD2、及び、ステップSD3の処理は、14個の文字種類のそれぞれを比較対象として、順番に、1回ずつ行われることになる。
FIG. 7 is a flowchart showing the operation of the character recognition unit 80 in the second recognition pass of step SB3 of FIG.
In the second recognition pass, the character recognizing unit 80 specifies the character type to be compared in the process of step SD2 and step SD3 from the 14 character types (step SD1). Hereinafter, the character type specified in step SD1 is referred to as “comparison character type”. The processing in step SD2 and step SD3 is performed once in order, with each of the 14 character types being compared.

次いで、文字認識部80は、処理対象文字の文字波形データの波形と、比較対象文字種類に対応する基準波形データの波形を所定の範囲内で所定の距離だけスライドさせたもののそれぞれとの間の差異量を算出する(ステップSD2)。   Next, the character recognizing unit 80 between the waveform of the character waveform data of the character to be processed and each of the waveforms of the reference waveform data corresponding to the character type to be compared slid by a predetermined distance within a predetermined range. A difference amount is calculated (step SD2).

ステップSD2の処理について一例を挙げて説明すると、例えば、文字波形データのそれぞれにおいて、1つの磁気インク文字に対応する波形が占めるX軸の範囲は、70サンプリング単位と規定されているものとする。この場合、ステップSD2において、例えば、文字認識部80は、基準波形データの波形の全体を、X軸方向左方へ7サンプリング単位分だけスライドした波形と、処理対象文字の文字波形データの波形との間の差異量を算出する。同様にして、文字認識部80は、基準波形データの波形の全体を、X軸方向左方へ、6、5、4、3、2、1、0サンプリング単位分だけスライドした波形のそれぞれと、処理対象文字の文字波形データの波形との間の差異量を算出する。そうすると共に、基準波形データの波形の全体を、X軸方向右方へ、7、6、5、4、3、2、1サンプリング単位分だけスライドした波形のそれぞれと、処理対象文字の文字波形データの波形との間の差異量を算出する。この場合、差異量の算出が15回おこなわれ、15回分の差異量が算出されることとなる。   The processing of step SD2 will be described with an example. For example, in each character waveform data, the X-axis range occupied by the waveform corresponding to one magnetic ink character is defined as 70 sampling units. In this case, in step SD2, for example, the character recognizing unit 80 is configured to slide the entire waveform of the reference waveform data by 7 sampling units leftward in the X-axis direction, and the waveform of the character waveform data of the character to be processed. The difference amount between is calculated. Similarly, the character recognizing unit 80 slides the entire waveform of the reference waveform data to the left in the X-axis direction by 6, 5, 4, 3, 2, 1, 0 sampling units, A difference amount between the waveform of the character waveform data of the character to be processed is calculated. At the same time, the entire waveform of the reference waveform data is slid to the right in the X-axis direction by 7, 6, 5, 4, 3, 2, 1 sampling units, and the character waveform data of the character to be processed. The amount of difference between the waveforms is calculated. In this case, the difference amount is calculated 15 times, and the difference amount for 15 times is calculated.

ここで、小切手4の搬送の状況や、磁気ヘッド54による磁気インク文字列4Aの読み取りの状況、図4のステップSA1の文字の切り出しの処理の状況によっては、文字波形データにおいて、実際の波形のX軸方向における位置が、波形の理想的な位置から数サンプリング単位分ずれることがある。これを踏まえ、上述したように基準波形データの波形を所定の範囲でスライドさせた上で、処理対象文字の文字波形データの波形との間で差異量を検出することにより、上述した「ずれ」を反映して、適切に差異量を算出することができる。   Here, depending on the state of conveyance of the check 4, the state of reading of the magnetic ink character string 4 </ b> A by the magnetic head 54, and the state of the character cutting process in step SA <b> 1 in FIG. The position in the X-axis direction may deviate by several sampling units from the ideal position of the waveform. Based on this, by sliding the waveform of the reference waveform data within a predetermined range as described above, and detecting the difference amount from the waveform of the character waveform data of the character to be processed, the above-described “deviation” Thus, the difference amount can be appropriately calculated.

次いで、文字認識部80は、ステップSD2で算出した差異量のうち、値が最も小さい差異量を、比較対象文字種類の差異量とする(ステップSD3)。上記の例では、文字認識部80は、算出された15回分の差異量のうち、その値が最も小さいものを、比較対象文字種類の差異量として特定する。   Next, the character recognition unit 80 sets the difference amount having the smallest value among the difference amounts calculated in step SD2 as the difference amount of the comparison target character type (step SD3). In the above example, the character recognizing unit 80 specifies the smallest difference value of the calculated 15 differences as the difference amount of the comparison target character type.

次いで、文字認識部80は、14個の文字種類の全てについて、差異量の算出(ステップSD2)、特定(ステップSD3)が終了したか否かを判別する(ステップSD4)。
全ての文字種類について、差異量の算出、特定が終了していない場合(ステップSD4:NO)、文字認識部80は、処理手順をステップSD1に戻す。
一方、全ての文字種類について、差異量の算出、特定が終了している場合(ステップSD4:YES)、文字認識部80は、14種類の文字種類のうち、ステップSD3で特定された差異量が最も小さかった文字種類を、パス2用第1候補C21とし、特定された差異量が2番目に小さかった文字種類を、パス2用第2候補C22とする(ステップSD5)。
Next, the character recognition unit 80 determines whether or not the calculation of the difference amount (step SD2) and the specification (step SD3) have been completed for all 14 character types (step SD4).
When the calculation and identification of the difference amount are not completed for all character types (step SD4: NO), the character recognition unit 80 returns the processing procedure to step SD1.
On the other hand, when the calculation and identification of the difference amount have been completed for all character types (step SD4: YES), the character recognition unit 80 determines that the difference amount identified in step SD3 is the 14 types of character types. The smallest character type is set as the first candidate C2 for pass 2, and the character type with the second smallest specified difference amount is set as the second candidate C22 for pass 2 (step SD5).

次いで、文字認識部80は、パス2用第1候補C21とされた文字種類について、ステップSD3で特定された差異量と、パス2用閾値T2とを比較し、当該差異量がパス2用閾値T2を上回るか否かを判別する(ステップSD6)。
パス2用閾値T2は、パス2用第1候補C21とされた文字種類を、処理対象文字の文字種類として確定するか否かを判別する際の基準となる値であり、差異量がパス2用閾値T2以下の場合は、後述する他の条件が成立すれば、文字認識部80は、パス2用第1候補C21とされた文字種類を、処理対象文字の文字種類として確定する。
Next, the character recognizing unit 80 compares the difference amount specified in step SD3 with the pass 2 threshold value T2 for the character type determined as the pass 2 first candidate C21, and the difference amount is the pass 2 threshold value. It is determined whether or not T2 is exceeded (step SD6).
The threshold value T2 for pass 2 is a value serving as a reference when determining whether or not the character type set as the first candidate C21 for pass 2 is determined as the character type of the character to be processed. In the case of the threshold value T2 or less, if other conditions described later are satisfied, the character recognition unit 80 determines the character type set as the first candidate C21 for pass 2 as the character type of the processing target character.

パス2用閾値T2は、上述したパス1用閾値T1と同様の手法により算出され、設定される。すなわち、事前の試験で、14個の文字種類の磁気インク文字のそれぞれについて、ステップSD2、及び、ステップSD3の処理を実行し、1つの磁気インク文字を実際に読み取ったときの文字波形データと、当該1つの磁気インク文字の正しい文字種類に対応する基準波形データとの間の差異量を、複数回、特定する。
そして、1つの磁気インク文字に係るパス2用閾値T2を「パス2用閾値T2=(特定した複数の差異量の平均値)+(特定した複数の差異量の標準偏差)×(所定の係数)」により算出される値とする。(所定の係数)は、パス2用閾値T2を上述した観点に従って設定することを目的として、事前の実験、シミュレーションの結果に基づいて、文字種類ごとに設定される値である。このようにして、パス2用閾値T2を設定することにより、実際に算出される差異量のばらつきを考慮して、パス2用閾値T2を適切な値とすることができる。
The pass 2 threshold value T2 is calculated and set in the same manner as the pass 1 threshold value T1 described above. That is, in the preliminary test, for each of the 14 character types of magnetic ink characters, the processing of step SD2 and step SD3 is executed, and the character waveform data when one magnetic ink character is actually read; A difference amount between the reference waveform data corresponding to the correct character type of the one magnetic ink character is specified a plurality of times.
Then, the pass 2 threshold T2 for one magnetic ink character is expressed as “pass 2 threshold T2 = (average value of a plurality of specified difference amounts) + (standard deviation of a plurality of specified difference amounts) × (predetermined coefficient) ) ”. The (predetermined coefficient) is a value set for each character type based on the results of previous experiments and simulations for the purpose of setting the threshold value T2 for pass 2 in accordance with the above-described viewpoint. In this way, by setting the pass 2 threshold value T2, it is possible to set the pass 2 threshold value T2 to an appropriate value in consideration of variation in the actually calculated difference amount.

差異量がパス2用閾値T2を上回る場合(ステップSD6:YES)、文字認識部80は、処理対象文字の文字種類を確定することなく、第2認識パスを終了する。
差異量がパス2用閾値T2以下の場合(ステップSD6:NO)、文字認識部80は、さらに、パス2用第2候補C22とされた文字種類について、ステップSD3で特定された差異量と、パス2用閾値T2とを比較し、当該差異量がパス2用閾値T2を上回るか否かを判別する(ステップSD7)。
When the difference amount exceeds the threshold value T2 for pass 2 (step SD6: YES), the character recognition unit 80 ends the second recognition pass without determining the character type of the processing target character.
When the difference amount is equal to or less than the threshold value T2 for pass 2 (step SD6: NO), the character recognition unit 80 further determines the difference amount specified in step SD3 for the character type determined as the second candidate for pass 2 C22. The pass 2 threshold value T2 is compared, and it is determined whether or not the difference amount exceeds the pass 2 threshold value T2 (step SD7).

当該差異量がパス2用閾値T2を上回る場合(ステップSD7:YES)、文字認識部80は、パス2用第1候補C21とされた文字種類を、処理対象文字の文字種類として確定し(ステップSD8)、第2認識パスを終了する。
一方で、当該差異量がパス2用閾値T2以下の場合(ステップSD7:NO)、文字認識部80は、処理対象文字の文字種類を確定することなく、第2認識パスを終了する。
When the difference amount exceeds the pass 2 threshold value T2 (step SD7: YES), the character recognition unit 80 determines the character type set as the pass 2 first candidate C21 as the character type of the processing target character (step step). SD8), the second recognition pass is terminated.
On the other hand, when the difference amount is equal to or smaller than the pass 2 threshold T2 (step SD7: NO), the character recognition unit 80 ends the second recognition pass without determining the character type of the processing target character.

このように、本実施形態では、パス2用第1候補C21とされた文字種類について、ステップSD3で特定された差異量が、パス2用閾値T2以下の場合であっても、パス2用第2候補C22とされた文字種類について、ステップSD3で特定された差異量が、パス2用閾値T2以下である場合は、処理対象文字の文字種類を確定しない。これは、上述したパス1用閾値T1で説明した理由と同様の理由による。
なお、ステップSD3で、パス2用第1候補C21、及び、パス2用第2候補C22とされた文字種類のそれぞれについて特定された差異量は、以降のステップまで保存される。
As described above, in this embodiment, even if the difference amount specified in step SD3 is equal to or smaller than the pass 2 threshold T2 for the character type that is the first pass C2 candidate C21, For the character type determined as the second candidate C22, when the difference amount specified in step SD3 is equal to or less than the threshold value T2 for pass 2, the character type of the character to be processed is not determined. This is due to the same reason as described for the above-described pass 1 threshold T1.
Note that the difference amount specified for each of the character types that are the first candidate C21 for pass 2 and the second candidate C22 for pass 2 in step SD3 is stored until the subsequent steps.

さて、前掲図4を参照し、ステップSA3の第1認識フェーズの実行後、文字認識部80は、第1認識フェーズにおいて、処理対象文字の文字種類が確定できたか否かを判別する(ステップSA4)。   Now, referring to FIG. 4 described above, after the execution of the first recognition phase in step SA3, the character recognition unit 80 determines whether or not the character type of the character to be processed has been confirmed in the first recognition phase (step SA4). ).

処理対象文字の文字種類が確定できた場合(ステップSA4:YES)、文字認識部80は、第2認識フェーズを行うことなく、処理手順をステップSA5へ移行する。ステップSA5では、磁気インク文字列4Aに含まれる全ての磁気インク文字が処理対象文字となったか否か、換言すれば、磁気インク文字列4Aに含まれる磁気インク文字の全てについて、ステップSA1について文字の切り出しが行われ、かつ、文字認識に係る処理が実行されたか否かが判別される。
そして、磁気インク文字列4Aに含まれる全ての磁気インク文字が処理対象文字となっていない場合(ステップSA5:NO)、文字認識部80は、処理手順をステップSA1へ戻して、次の磁気インク文字の切り出しを実行し、一方、磁気インク文字列4Aに含まれる全ての磁気インク文字が処理対象文字となった場合(ステップSA5:YES)、処理手順をステップSA6へ移行する。
If the character type of the character to be processed can be confirmed (step SA4: YES), the character recognition unit 80 proceeds to step SA5 without performing the second recognition phase. In step SA5, it is determined whether or not all magnetic ink characters included in the magnetic ink character string 4A are characters to be processed. In other words, for all the magnetic ink characters included in the magnetic ink character string 4A, the characters for step SA1. Is cut out, and it is determined whether or not processing relating to character recognition has been executed.
If not all magnetic ink characters included in the magnetic ink character string 4A are characters to be processed (step SA5: NO), the character recognition unit 80 returns the processing procedure to step SA1, and the next magnetic ink On the other hand, when the character is cut out and all the magnetic ink characters included in the magnetic ink character string 4A have been processed (step SA5: YES), the processing procedure proceeds to step SA6.

一方、ステップSA4において、第1認識フェーズで処理対象文字の文字種類が確定できなかったと判別した場合(ステップSA4:NO)、文字認識部80は、第2認識フェーズを実行する(ステップSA7)。   On the other hand, if it is determined in step SA4 that the character type of the processing target character cannot be determined in the first recognition phase (step SA4: NO), the character recognition unit 80 executes the second recognition phase (step SA7).

図8は、ステップSA7の第2認識フェーズの実行時における文字認識部80の動作を示すフローチャートである。
第2認識フェーズにおいて、まず、文字認識部80は、検出信号波形データに基づいて、処理対象文字の文字間隔を算出する(ステップSE1)。
FIG. 8 is a flowchart showing the operation of the character recognition unit 80 during the execution of the second recognition phase in step SA7.
In the second recognition phase, first, the character recognition unit 80 calculates the character spacing of the processing target character based on the detection signal waveform data (step SE1).

処理対象文字の文字間隔とは、処理対象文字の文字開始位置と、処理対象文字の次の磁気インク文字(磁気インク文字列4Aにおいて、処理対象文字の前端4g側の隣に配列された磁気インク文字)の文字開始位置との離間量のことである。例えば、文字認識部80は、検出信号波形データが示す波形に基づいて、当該波形の各ピーク位置(極大値、極小値に対応するX軸の値)を検出し、検出したピーク位置に基づいて、処理対象文字の文字開始位置と、処理対象文字の次の磁気インク文字の文字開始位置とを検出し、検出した各文字の文字開始位置に基づいて、これら文字開始位置の離間量を検出し、検出した離間量を文字間隔とする。
上述したように、本実施形態では、磁気インク文字列4Aに含まれる各磁気インク文字の文字間隔が一定(例えば、67サンプリング単位)となるように小切手4の搬送制御が実行され、また、サンプリング単位の長さが規定されている。以下、一定となるように規定された文字間隔を「基準文字間隔」というものとする。
The character spacing of the character to be processed is the character start position of the character to be processed and the magnetic ink character next to the character to be processed (magnetic ink arranged next to the front end 4g side of the character to be processed in the magnetic ink character string 4A). Is the distance from the character start position. For example, the character recognition unit 80 detects each peak position (X-axis value corresponding to the maximum value and the minimum value) based on the waveform indicated by the detection signal waveform data, and based on the detected peak position. The character start position of the character to be processed and the character start position of the next magnetic ink character after the character to be processed are detected, and the separation amount of these character start positions is detected based on the detected character start position of each character. The detected separation amount is defined as a character interval.
As described above, in this embodiment, the conveyance control of the check 4 is executed so that the character spacing of each magnetic ink character included in the magnetic ink character string 4A is constant (for example, 67 sampling units), and sampling is performed. The unit length is specified. Hereinafter, the character spacing defined to be constant is referred to as “reference character spacing”.

次いで、文字認識部80は、ステップSE1で検出した処理対象文字の文字間隔と、基準文字間隔とを比較する(ステップSE2)。
ステップSE2において、処理対象文字の文字間隔と、基準文字間隔とが等しい場合(ステップSE2:「文字間隔=基準文字間隔」)、文字認識部80は、第3認識パスを実行し(ステップSE3)、当該第3認識パスにおいて処理対象文字の文字種類が確定できた場合は、第2認識フェーズを終了し、文字種類が確定できなかった場合は、処理対象文字の文字種類が確定できないものと判別し、第2認識フェーズを終了する。
Next, the character recognition unit 80 compares the character spacing of the processing target character detected at step SE1 with the reference character spacing (step SE2).
In step SE2, when the character interval of the character to be processed is equal to the reference character interval (step SE2: “character interval = reference character interval”), the character recognition unit 80 executes the third recognition pass (step SE3). When the character type of the processing target character can be determined in the third recognition pass, the second recognition phase is terminated, and when the character type cannot be determined, it is determined that the character type of the processing target character cannot be determined. Then, the second recognition phase ends.

ステップSE2において、処理対象文字の文字間隔と、基準文字間隔から「1サンプリング単位」減算した値と、が等しい場合(ステップSE2:「文字間隔=基準文字間隔−1」)、文字認識部80は、第4認識パス(ステップSE4)、第5認識パス(ステップSE5)、及び、第3認識パス(ステップSE6)の順に、段階的に認識パスを実行する。その際、いずれかの認識パスにおいて、処理対象文字の文字種類が確定できた場合は、次の認識パスを実行することなく、第2認識フェーズを終了する。また、いずれの認識パスでも処理対象文字の文字種類を確定できなかった場合は、処理対象文字の文字種類が確定できないものと判別し、第2認識フェーズを終了する。   In step SE2, when the character interval of the character to be processed is equal to the value obtained by subtracting “one sampling unit” from the reference character interval (step SE2: “character interval = reference character interval−1”), the character recognition unit 80 The recognition pass is executed step by step in the order of the fourth recognition pass (step SE4), the fifth recognition pass (step SE5), and the third recognition pass (step SE6). At this time, if the character type of the character to be processed can be determined in any recognition pass, the second recognition phase is terminated without executing the next recognition pass. If the character type of the processing target character cannot be determined in any recognition pass, it is determined that the character type of the processing target character cannot be determined, and the second recognition phase ends.

ステップSE2において、処理対象文字の文字間隔が、基準文字間隔から「1サンプリング単位」減算した値を下回る場合(ステップSE2:「文字間隔<基準文字間隔−1」)、文字認識部80は、第5認識パス(ステップSE7)、及び、第3認識パス(ステップSE8)の順に、段階的に認識パスを実行する。その際、いずれかの認識パスにおいて、処理対象文字の文字種類が確定できた場合は、次の認識パスを実行することなく、第2認識フェーズを終了する。また、いずれの認識パスでも処理対象文字の文字種類を確定できなかった場合は、処理対象文字の文字種類が確定できないものと判別し、第2認識フェーズを終了する。   In step SE2, when the character interval of the character to be processed is less than the value obtained by subtracting “one sampling unit” from the reference character interval (step SE2: “character interval <reference character interval−1”), the character recognition unit 80 The recognition pass is executed step by step in the order of 5 recognition pass (step SE7) and third recognition pass (step SE8). At this time, if the character type of the character to be processed can be determined in any recognition pass, the second recognition phase is terminated without executing the next recognition pass. If the character type of the processing target character cannot be determined in any recognition pass, it is determined that the character type of the processing target character cannot be determined, and the second recognition phase ends.

ステップSE2において、処理対象文字の文字間隔と、基準文字間隔に「1サンプリング単位」加算した値と、が等しい場合(ステップSE2:「文字間隔=基準文字間隔+1」)、文字認識部80は、第4認識パス(ステップSE9)、第5認識パス(ステップSE10)、及び、第3認識パス(ステップSE11)の順に、段階的に認識パスを実行する。その際、いずれかの認識パスにおいて、処理対象文字の文字種類が確定できた場合は、次の認識パスを実行することなく、第2認識フェーズを終了する。また、いずれの認識パスでも処理対象文字の文字種類を確定できなかった場合は、処理対象文字の文字種類が確定できないものと判別し、第2認識フェーズを終了する。   In step SE2, when the character interval of the character to be processed is equal to the value obtained by adding “one sampling unit” to the reference character interval (step SE2: “character interval = reference character interval + 1”), the character recognition unit 80 The recognition pass is executed step by step in the order of the fourth recognition pass (step SE9), the fifth recognition pass (step SE10), and the third recognition pass (step SE11). At this time, if the character type of the character to be processed can be determined in any recognition pass, the second recognition phase is terminated without executing the next recognition pass. If the character type of the processing target character cannot be determined in any recognition pass, it is determined that the character type of the processing target character cannot be determined, and the second recognition phase ends.

ステップSE2において、処理対象文字の文字間隔が、基準文字間隔に「1サンプリング単位」加算した値を上回る場合(ステップSE2:「文字間隔>基準文字間隔+1」)、文字認識部80は、第5認識パス(ステップSE12)、及び、第3認識パス(ステップSE13)の順に、段階的に認識パスを実行する。その際、いずれかの認識パスにおいて、処理対象文字の文字種類が確定できた場合は、次の認識パスを実行することなく、第2認識フェーズを終了する。また、いずれの認識パスでも処理対象文字の文字種類を確定できなかった場合は、処理対象文字の文字種類が確定できないものと判別し、第2認識フェーズを終了する。   In step SE2, when the character interval of the character to be processed exceeds the value obtained by adding “one sampling unit” to the reference character interval (step SE2: “character interval> reference character interval + 1”), the character recognition unit 80 The recognition pass is executed step by step in the order of the recognition pass (step SE12) and the third recognition pass (step SE13). At this time, if the character type of the character to be processed can be determined in any recognition pass, the second recognition phase is terminated without executing the next recognition pass. If the character type of the processing target character cannot be determined in any recognition pass, it is determined that the character type of the processing target character cannot be determined, and the second recognition phase ends.

図9は、第3認識パスの実行時における文字認識部80の動作を示すフローチャートである。
第3認識パスでは、後述する両側伸縮比較が行われ、この両側伸縮比較の結果に基づいて、処理対象文字の文字種類の確定、又は、処理対象文字の文字種類が確定できないことの検出が行われる。
FIG. 9 is a flowchart showing the operation of the character recognition unit 80 during execution of the third recognition pass.
In the third recognition pass, both-side expansion / contraction comparison, which will be described later, is performed, and based on the result of this both-side expansion / contraction comparison, the character type of the processing target character is determined or the character type of the processing target character cannot be determined. Is called.

図9を参照し、文字認識部80は、14個の文字種類の中から、ステップSF2以下の処理において比較対象とされる文字種類を特定する(ステップSF1)。以下、ステップSF1で特定された文字種類のことを、「比較対象文字種類」というものとする。ステップSF2以下の処理は、14個の文字種類のそれぞれを比較対象として、順番に、14回行われる。
次いで、文字認識部80は、両側伸縮テーブル90を参照する(ステップSF2)。
Referring to FIG. 9, the character recognition unit 80 specifies a character type to be compared in the process after step SF2 from the 14 character types (step SF1). Hereinafter, the character type specified in step SF1 is referred to as “comparison character type”. The processing after step SF2 is performed 14 times in order, with each of the 14 character types being compared.
Next, the character recognition unit 80 refers to the both-side expansion / contraction table 90 (step SF2).

図15は、両側伸縮テーブル90のデータ構造を模式的に示す図である。
図15に示すように、両側伸縮テーブル90では、14個の文字種類毎にレコードが生成されており、各レコードは、対応する文字種類の伸縮点を示す情報が格納される伸縮点フィールド91、最大縮み量を示すデータが格納される最大縮み量フィールド92、及び、最大伸び量を示すデータが格納される最大伸び量フィールド93の3つのフィールドを備えている。伸縮点、最大縮み量、及び、最大伸び量については、後述する。
FIG. 15 is a diagram schematically showing the data structure of the double-side expansion / contraction table 90.
As shown in FIG. 15, in the double-side expansion / contraction table 90, a record is generated for each of 14 character types, and each record has an expansion / contraction point field 91 in which information indicating the expansion / contraction point of the corresponding character type is stored. There are three fields: a maximum contraction amount field 92 in which data indicating the maximum contraction amount is stored, and a maximum expansion amount field 93 in which data indicating the maximum expansion amount is stored. The expansion / contraction point, the maximum contraction amount, and the maximum extension amount will be described later.

次いで、文字認識部80は、参照した両側伸縮テーブル90において、比較対象文字種類に対応するレコードを取得し、当該レコードの伸縮点フィールド91、最大縮み量フィールド92、及び、最大伸び量フィールド93の各フィールドを参照し、当該比較対象文字種類に係る伸縮点、最大縮み量、及び、最大伸び量のそれぞれの値を取得する(ステップSF3)。   Next, the character recognition unit 80 acquires a record corresponding to the character type to be compared in the referred double-side expansion / contraction table 90, and stores the expansion / contraction point field 91, maximum contraction amount field 92, and maximum expansion amount field 93 of the record. With reference to each field, the respective values of the expansion / contraction point, the maximum contraction amount, and the maximum expansion amount related to the character type to be compared are acquired (step SF3).

次いで、文字認識部80は、ステップSF3で取得した伸縮点、最大縮み量、及び、最大伸び量に基づいて、比較対象文字種類に対応する基準波形データの波形を補正し、補正した波形のそれぞれと、処理対象文字に対応する文字波形データの波形との間の差異量を算出する(ステップSF4)。
以下、ステップSF4の処理について詳述する。
Next, the character recognition unit 80 corrects the waveform of the reference waveform data corresponding to the character type to be compared based on the expansion / contraction point, the maximum contraction amount, and the maximum expansion amount acquired in step SF3, and each of the corrected waveforms is corrected. And the amount of difference between the waveform of the character waveform data corresponding to the processing target character (step SF4).
Hereinafter, the process of step SF4 will be described in detail.

図16は、ステップSF4の処理を説明するために利用する図であり、詳細には、E−13Bフォントにおける文字種類「0」に対応する基準波形データの内容を模式的に示す図である。図16では、文字種類「0」に対応する基準波形データの波形を実線で示しており、波形のX軸方向における幅は70サンプリング単位である。
以下では、比較対象文字種類が文字種類「0」であるものとし、ステップSF4において、文字種類「0」に対応する基準波形データの補正された波形のそれぞれと、処理対象文字に対応する文字波形データの波形との間の差異量を算出する場合を例にして、ステップSF4の処理を説明するものとする。
FIG. 16 is a diagram used for explaining the processing of step SF4, and more specifically, is a diagram schematically showing the content of the reference waveform data corresponding to the character type “0” in the E-13B font. In FIG. 16, the waveform of the reference waveform data corresponding to the character type “0” is indicated by a solid line, and the width of the waveform in the X-axis direction is 70 sampling units.
In the following description, it is assumed that the character type to be compared is the character type “0”. In step SF4, the corrected waveform of the reference waveform data corresponding to the character type “0” and the character waveform corresponding to the character to be processed are displayed. The process of step SF4 will be described by taking as an example the case of calculating the amount of difference from the data waveform.

図15に示すように、本実施形態では、文字種類「0」の伸縮点は「42サンプリング単位目」であり、最大縮み量は「3サンプリング単位」であり、最大伸び量は「6サンプリング単位」である。
ステップSF4において、まず、文字認識部80は、文字種類「0」に対応する基準波形データの波形のうち、伸縮点(42サンプリング単位目)よりX軸方向右方の波形について、最大縮み量である「3サンプリング単位」分、X軸方向左方へスライドさせる。これにより、図16を参照し、基準波形データの波形(実線で示す波形)は、破線で示す波形となるよう補正される。
As shown in FIG. 15, in this embodiment, the expansion / contraction point of the character type “0” is “the 42nd sampling unit”, the maximum contraction amount is “3 sampling units”, and the maximum expansion amount is “6 sampling units”. It is.
In step SF4, first, the character recognizing unit 80 uses the maximum contraction amount for the waveform on the right side in the X-axis direction from the expansion / contraction point (42th sampling unit) among the waveforms of the reference waveform data corresponding to the character type “0”. Slide to the left in the X-axis direction by a certain “3 sampling units”. Thereby, referring to FIG. 16, the waveform of the reference waveform data (the waveform indicated by the solid line) is corrected to become the waveform indicated by the broken line.

次いで、文字認識部80は、補正後の基準波形データの波形と、処理対象文字に対応する文字波形データの波形との間の差異量を算出する。このようにして差異量を算出した場合、基準波形データの波形のうち42サンプリング単位目より右方の波形は、3サンプリング単位分だけX軸方向左方へスライドされている。そのため、例えば、処理対象文字に対応する文字波形データの波形の42サンプリング目の値は、補正「前」の基準波形データの波形の45サンプリング目の値との差分が取られ、また、処理対象文字に対応する文字波形データの波形の43サンプリング目の値は、補正前の基準波形データの波形の46サンプリング目の値との差分が取られることとなる。
すなわち、差異量の算出に際し、n(ただし、n≧42)サンプリング単位目よりX軸方向左方の波形に関しては、処理対象文字の基準波形データのnサンプリング単位目の値と、補正前の基準波形データの波形の「n+3」サンプリング単位目の値との差分が取られることにより、差異量が算出されることとなる。nが70を超える場合は、70サンプリング単位目の値を使用する。
Next, the character recognition unit 80 calculates a difference amount between the corrected waveform of the reference waveform data and the waveform of the character waveform data corresponding to the character to be processed. When the difference amount is calculated in this way, the waveform to the right of the 42th sampling unit among the waveforms of the reference waveform data is slid to the left in the X-axis direction by 3 sampling units. Therefore, for example, the difference between the value of the 42nd sampling of the waveform of the character waveform data corresponding to the character to be processed and the value of the 45th sampling of the waveform of the reference waveform data for correction “before” is taken. The 43rd sampling value of the waveform of the character waveform data corresponding to the character is taken as a difference from the 46th sampling value of the waveform of the reference waveform data before correction.
That is, when calculating the difference amount, regarding the waveform on the left in the X-axis direction from the n (where n ≧ 42) sampling unit, the value of the n sampling unit of the reference waveform data of the character to be processed and the reference before correction By calculating the difference from the value of the “n + 3” sampling unit of the waveform of the waveform data, the difference amount is calculated. When n exceeds 70, the value of the 70th sampling unit is used.

このようにして最大縮み量に係る差異量を算出した後、文字認識部80は、文字種類「0」に対応する基準波形データの波形のうち、伸縮点(42サンプリング単位目)よりX軸方向右方の波形について、最大縮み量である「3サンプリング単位」から「1サンプリング単位」減算した分、すなわち「2サンプリング単位」分、X軸方向左方へスライドさせる。このスライドにより、基準波形データの波形を補正し、補正後の基準波形データの波形と、処理対象文字の文字波形データの波形との間の差異量を検出する。   After calculating the difference amount related to the maximum contraction amount in this way, the character recognition unit 80 in the X-axis direction from the expansion / contraction point (the 42nd sampling unit) among the waveforms of the reference waveform data corresponding to the character type “0”. The right waveform is slid to the left in the X-axis direction by “1 sampling unit” subtracted from “3 sampling units” which is the maximum contraction amount, that is, “2 sampling units”. By this slide, the waveform of the reference waveform data is corrected, and a difference amount between the corrected waveform of the reference waveform data and the waveform of the character waveform data of the character to be processed is detected.

このようにして、文字認識部80は、最大縮み量を「1サンプリング単位」ずつ減算しつつ、減算後の最大縮み量に基づいて基準波形データの波形を補正し、補正後の基準波形データの波形と、処理対象文字の文字波形データの波形との間の差異量を算出する。この差異量の検出は、減算後の最大縮み量の値が「1サンプリング単位」となるまで行われる。すなわち、文字認識部80は、3、2、1サンプリング単位分X軸左方へスライドさせることによって補正した基準波形データの波形のそれぞれと、処理対象文字に対応する文字波形データの波形との間の差異量のそれぞれを算出する。   In this manner, the character recognition unit 80 corrects the waveform of the reference waveform data based on the maximum contraction amount after subtraction while subtracting the maximum contraction amount by “one sampling unit”, and the corrected reference waveform data A difference amount between the waveform and the waveform of the character waveform data of the character to be processed is calculated. This difference amount is detected until the value of the maximum contraction amount after subtraction becomes “one sampling unit”. In other words, the character recognizing unit 80 divides between the waveform of the reference waveform data corrected by sliding to the left of the X axis by 3, 2, 1 sampling unit and the waveform of the character waveform data corresponding to the character to be processed. Each difference amount is calculated.

さらに、文字認識部80は、文字種類「0」に対応する基準波形データの波形のうち、伸縮点(42サンプリング単位目)よりX軸方向右方の波形について、最大伸び量である「6サンプリング単位」分、X軸方向右方へスライドさせる。これにより、図16を参照し、基準波形データの波形(実線で示す波形)は、二点鎖線で示す波形となるよう補正される。   Further, the character recognizing unit 80 sets “6 sampling” which is the maximum expansion amount for the waveform on the right side in the X-axis direction from the expansion / contraction point (42th sampling unit) among the waveforms of the reference waveform data corresponding to the character type “0”. Slide to the right in the X-axis direction by “unit”. Thereby, referring to FIG. 16, the waveform of the reference waveform data (the waveform indicated by the solid line) is corrected to become the waveform indicated by the two-dot chain line.

次いで、文字認識部80は、補正後の基準波形データの波形と、処理対象文字に対応する文字波形データの波形との間の差異量を算出する。このようにして差異量を算出した場合、基準波形データの波形のうち42サンプリング単位目より右方の波形は、6サンプリング単位分だけX軸方向右方へスライドされているため、例えば、処理対象文字に対応する文字波形データの波形の60サンプリング目の値は、補正「前」の基準波形データの波形の54サンプリング目の値との差分が取られる。また、処理対象文字に対応する文字波形データの波形の61サンプリング目の値は、補正前の基準波形データの波形の55サンプリング目の値との差分が取られることとなる。
すなわち、差異量の算出に際し、n(ただし、n≧42)サンプリング単位目よりX軸方向左方の波形に関しては、処理対象文字の基準波形データのnサンプリング単位目の値と、補正前の基準波形データの波形の「n−6」サンプリング単位目の値との差分が取られることにより、差異量が算出されることとなる。n=43〜48の場合は、42サンプリング単位目の値を使用する。
Next, the character recognition unit 80 calculates a difference amount between the corrected waveform of the reference waveform data and the waveform of the character waveform data corresponding to the character to be processed. When the difference amount is calculated in this way, the waveform to the right of the 42th sampling unit among the waveforms of the reference waveform data is slid to the right in the X-axis direction by 6 sampling units. The difference between the value at the 60th sampling of the waveform of the character waveform data corresponding to the character and the value at the 54th sampling of the waveform of the reference waveform data before correction is taken. Also, the 61st sampling value of the waveform of the character waveform data corresponding to the character to be processed is the difference from the 55th sampling value of the waveform of the reference waveform data before correction.
That is, when calculating the difference amount, regarding the waveform on the left in the X-axis direction from the n (where n ≧ 42) sampling unit, the value of the n sampling unit of the reference waveform data of the character to be processed and the reference before correction The difference is calculated by taking the difference from the value of the “n-6” sampling unit of the waveform of the waveform data. In the case of n = 43 to 48, the value of the 42th sampling unit is used.

このようにして最大伸び量に係る差異量を算出した後、文字認識部80は、文字種類「0」に対応する基準波形データの波形のうち、伸縮点(42サンプリング単位目)よりX軸方向右方の波形について、最大伸び量である「6サンプリング単位」から「1サンプリング単位」減算した分、すなわち「5サンプリング単位」分、X軸方向右方へスライドさせる。これにより、基準波形データの波形を補正し、補正後の基準波形データの波形と、処理対象文字の文字波形データの波形との間の差異量を検出する。   After calculating the difference amount related to the maximum elongation in this way, the character recognition unit 80 in the X-axis direction from the expansion / contraction point (42th sampling unit) in the waveform of the reference waveform data corresponding to the character type “0”. The right waveform is slid rightward in the X-axis direction by “1 sampling unit” subtracted from “6 sampling units” which is the maximum extension amount, that is, “5 sampling units”. As a result, the waveform of the reference waveform data is corrected, and a difference amount between the corrected waveform of the reference waveform data and the waveform of the character waveform data of the character to be processed is detected.

このようにして、文字認識部80は、最大伸び量を「1サンプリング単位」ずつ減算しつつ、減算後の最大伸び量に基づいて基準波形データの波形を補正し、補正後の基準波形データの波形と、処理対象文字の文字波形データの波形との間の差異量を算出する。この差異量の検出は、減算後の最大伸び量の値が「1サンプリング単位」となるまで行われる。すなわち、文字認識部80は、6、5、4、3、2、1サンプリング単位分X軸右方へスライドさせることによって補正した基準波形データの波形のそれぞれと、処理対象文字に対応する文字波形データの波形との間の差異量のそれぞれを算出する。   In this manner, the character recognition unit 80 corrects the waveform of the reference waveform data based on the maximum extension amount after subtraction while subtracting the maximum extension amount by “one sampling unit”, and the corrected reference waveform data A difference amount between the waveform and the waveform of the character waveform data of the character to be processed is calculated. This difference amount is detected until the maximum elongation value after subtraction reaches “one sampling unit”. That is, the character recognizing unit 80 converts each of the waveforms of the reference waveform data corrected by sliding to the right of the X axis by 6, 5, 4, 3, 2, 1 sampling units and the character waveform corresponding to the processing target character. Each difference between the waveform of the data is calculated.

さらに、文字認識部80は、基準波形データの波形について補正を行うことなく、処理対象文字に対応する文字波形データの波形と、文字種類「0」に対応する基準波形データの波形との差異量を算出する。   Further, the character recognition unit 80 does not correct the waveform of the reference waveform data, and the amount of difference between the waveform of the character waveform data corresponding to the character to be processed and the waveform of the reference waveform data corresponding to the character type “0”. Is calculated.

以上の例のようにして、ステップSF4では、比較対象文字種類に対応する基準波形データの波形を補正し、補正した波形のそれぞれと、処理対象文字に対応する文字波形データの波形との間の差異量が算出される。上記例で言えば、ステップSF4では、伸縮点よりも右方の波形について、3、2、1サンプリング単位分X軸左方へスライドさせたもの、6、5、4、3、2、1サンプリング単位分X軸方向右方へスライドさせたもの、及び、スライドさせないものそれぞれについて、合計10通りの差異量が算出される。   As in the above example, in step SF4, the waveform of the reference waveform data corresponding to the comparison target character type is corrected, and the waveform between each of the corrected waveforms and the waveform of the character waveform data corresponding to the processing target character is corrected. A difference amount is calculated. In the above example, in step SF4, the waveform to the right of the expansion / contraction point is slid to the left of the X axis by 3, 2, 1 sampling unit, 6, 5, 4, 3, 2, 1 sampling. A total of ten different amounts of difference are calculated for each of the unit slid to the right in the X-axis direction and the non-slidable unit.

ここで、小切手4に対する磁気インク文字列4Aの記録に際し、磁気インク文字が印刷規格の中心値からずれて印刷されることに起因して、磁気インク文字が横方向(X軸に対応する方向)に縮んだ状態で、又は、伸びた状態で印刷されることがある。この場合、検出信号波形データに基づいて生成される文字波形データの波形がX軸方向に伸び、又は、縮む場合がある。また、小切手4の搬送の状況によっては、文字波形データの波形がX軸方向に伸び、又は、縮む場合がある。これを踏まえ、上述したように基準波形データの波形を所定の位置から所定の範囲でスライドさせた上で、処理対象文字の文字波形データの波形との間で差異量を検出することにより、上述した伸びや縮みを反映して、適切に差異量を算出することができる。   Here, when the magnetic ink character string 4A is recorded on the check 4, the magnetic ink character is printed in the horizontal direction (direction corresponding to the X axis) due to the magnetic ink character being printed out of the center value of the printing standard. May be printed in a contracted state or in an extended state. In this case, the waveform of the character waveform data generated based on the detection signal waveform data may extend or contract in the X-axis direction. In addition, depending on the state of conveyance of the check 4, the waveform of the character waveform data may extend or contract in the X-axis direction. Based on this, as described above, the waveform of the reference waveform data is slid within a predetermined range from a predetermined position, and then the difference amount is detected from the waveform of the character waveform data of the character to be processed. The amount of difference can be calculated appropriately reflecting the stretch and shrinkage.

そして、各文字種類の伸縮点や、最大縮み量、最大伸び量は、磁気インク文字の伸びや縮みを反映して差異量を適切に算出することを目的として、事前の試験やシミュレーションの結果に基づいて、以下の観点で設定される。
すなわち、伸縮点は、磁気インク文字の基準波形データに対応する波形を、例えば、ピーク位置の密度に応じて分割したときの分割位置に対応する点が設定される。また、伸縮点は、磁気インク文字の基準波形データに対応する波形について、単位あたりの変化量が小さい点が設定される。
また、最大縮み量、及び、最大伸び量は、1つの文字種類に対応する基準波形データの波形を、最大縮み量、又は、最大伸び量に基づいて補正した場合であっても、当該1つの文字種類以外の文字種類の基準波形データの波形に近似してこない場合は、これらの値が大きく設定され、一方、近似してくる場合は、これらの値は、小さく設定される。
The stretch points, maximum shrinkage, and maximum stretch for each character type are based on the results of prior tests and simulations for the purpose of appropriately calculating the difference, reflecting the stretch and shrinkage of the magnetic ink characters. Based on the following points.
That is, the expansion / contraction point is set to a point corresponding to the division position when the waveform corresponding to the reference waveform data of the magnetic ink character is divided according to the density of the peak position, for example. Further, as the expansion / contraction point, a point with a small change amount per unit is set for the waveform corresponding to the reference waveform data of the magnetic ink character.
In addition, the maximum shrinkage amount and the maximum stretch amount are the same even when the waveform of the reference waveform data corresponding to one character type is corrected based on the maximum shrinkage amount or the maximum stretch amount. These values are set large if they are not approximated to the waveform of the reference waveform data of a character type other than the character type, whereas these values are set small if they are approximated.

ステップSF4において、比較対象文字種類に対応する基準波形データの波形を補正し、補正した波形のそれぞれと、処理対象文字に対応する文字波形データの波形との間の差異量を算出した後、文字認識部80は、算出した差異量のうち、その値が最も小さいものを特定し、特定した差異量を、比較対象文字種類の差異量として特定する(ステップSF5)。   In step SF4, after correcting the waveform of the reference waveform data corresponding to the type of character to be compared and calculating the difference between each of the corrected waveforms and the waveform of the character waveform data corresponding to the character to be processed, the character The recognizing unit 80 identifies the calculated difference amount having the smallest value, and identifies the identified difference amount as the difference amount of the comparison target character type (step SF5).

次いで、文字認識部80は、14個の文字種類の全てについて、差異量の算出(ステップSF4)、特定(ステップSF5)が終了したか否かを判別する(ステップSF6)。
全ての文字種類について、差異量の算出、特定が終了していない場合(ステップSF6:NO)、文字認識部80は、処理手順をステップSF1に戻す。
一方、全ての文字種類について、差異量の算出、特定が終了している場合(ステップSF6:YES)、文字認識部80は、14個の文字種類のうち、特定された差異量が最も小さかった文字種類を、パス3用第1候補C31とし、特定された差異量が2番目に小さかった文字種類を、パス3用第2候補C32とする(ステップSF7)。
Next, the character recognition unit 80 determines whether or not the calculation of the difference amount (step SF4) and the specification (step SF5) have been completed for all 14 character types (step SF6).
When the calculation and identification of the difference amount are not completed for all character types (step SF6: NO), the character recognition unit 80 returns the processing procedure to step SF1.
On the other hand, when the calculation and identification of the difference amount have been completed for all character types (step SF6: YES), the character recognition unit 80 has the smallest identified difference amount among the 14 character types. The character type is set as the first candidate C3 for pass 3, and the character type having the second smallest difference is specified as the second candidate C32 for pass 3 (step SF7).

次いで、文字認識部80は、パス3用第1候補C31とされた文字種類について、ステップSF5で特定された差異量と、パス3用閾値T3とを比較し、当該差異量がパス3用閾値T3を上回るか否かを判別する(ステップSF8)。
パス3用閾値T3は、パス3用第1候補C31とされた文字種類を、処理対象文字の文字種類として確定するか否かを判別する際の基準となる値であり、差異量がパス3用閾値T3以下の場合は、後述する他の条件が成立すれば、文字認識部80は、パス3用第1候補C31とされた文字種類を、処理対象文字の文字種類として確定する。
Next, the character recognizing unit 80 compares the difference amount specified in step SF5 with the pass 3 threshold value T3 for the character type determined as the first pass 3 candidate C31, and the difference amount is determined as the pass 3 threshold value. It is determined whether or not T3 is exceeded (step SF8).
The threshold value T3 for pass 3 is a value serving as a reference when determining whether or not the character type set as the first candidate C31 for pass 3 is determined as the character type of the character to be processed. In the case of the threshold value T3 or less, if other conditions to be described later are satisfied, the character recognition unit 80 determines the character type set as the first candidate C31 for pass 3 as the character type of the processing target character.

パス3用閾値T3は、上述したパス1用閾値T1と同様の手法により算出され、設定される。すなわち、事前の試験で、14個の文字種類の磁気インク文字のそれぞれについて、ステップSF2〜ステップSF5の処理を実行し、1つの磁気インク文字を実際に読み取ったときの文字波形データと、当該1つの磁気インク文字の正しい文字種類に対応する基準波形データとの間の差異量を、複数回、特定する。そして、1つの磁気インク文字に係るパス3用閾値T3を「パス3用閾値T3=(特定した複数の差異量の平均値)+(特定した複数の差異量の標準偏差)×(所定の係数)」により算出される値とする。(所定の係数)は、パス3用閾値T3を上述した観点に従って設定することを目的として、事前の実験、シミュレーションの結果に基づいて、文字種類ごとに設定される値である。このようにして、パス3用閾値T3を設定することにより、実際に算出される差異量のばらつきを考慮して、パス3用閾値T3を適切な値とすることができる。   The pass 3 threshold value T3 is calculated and set by the same method as the pass 1 threshold value T1 described above. That is, in the preliminary test, the processing of step SF2 to step SF5 is executed for each of the 14 types of magnetic ink characters, and the character waveform data when one magnetic ink character is actually read, and the 1 A difference amount between the reference waveform data corresponding to the correct character type of one magnetic ink character is specified a plurality of times. Then, the pass 3 threshold value T3 relating to one magnetic ink character is expressed as “pass 3 threshold value T3 = (average value of a plurality of specified difference amounts) + (standard deviation of a plurality of specified difference amounts) × (predetermined coefficient) ) ”. The (predetermined coefficient) is a value set for each character type based on the results of previous experiments and simulations for the purpose of setting the pass 3 threshold T3 in accordance with the above-described viewpoint. By setting the pass 3 threshold value T3 in this way, it is possible to set the pass 3 threshold value T3 to an appropriate value in consideration of the variation in the actually calculated difference amount.

差異量がパス3用閾値T3を上回る場合(ステップSF8:YES)、文字認識部80は、処理対象文字の文字種類を確定することなく、第3認識パスを終了する。
差異量がパス3用閾値T3以下の場合(ステップSF8:NO)、文字認識部80は、さらに、パス3用第2候補C32とされた文字種類について、ステップSF5で特定された差異量と、パス3用閾値T3とを比較し、当該差異量がパス3用閾値T3を上回るか否かを判別する(ステップSF9)。
If the difference amount exceeds the threshold 3 for pass 3 (step SF8: YES), the character recognition unit 80 ends the third recognition pass without determining the character type of the processing target character.
When the difference amount is equal to or less than the pass 3 threshold value T3 (step SF8: NO), the character recognition unit 80 further determines the difference amount specified in step SF5 for the character type that is the second candidate for pass 3 C32. The pass 3 threshold value T3 is compared to determine whether or not the difference amount exceeds the pass 3 threshold value T3 (step SF9).

当該差異量がパス3用閾値T3を上回る場合(ステップSF9:YES)、文字認識部80は、パス3用第1候補C31とされた文字種類を、処理対象文字の文字種類として確定し(ステップSF10)、第3認識パスを終了する。
一方で、当該差異量がパス3用閾値T3以下の場合(ステップSF9:NO)、文字認識部80は、パス3用第2候補C32とされた文字種類に係る差異量が、パス3用第1候補C31とされた文字種類に係る差異量の5/4倍以上の大きさがあるか否かを判別する(ステップSF11)。
When the difference amount exceeds the pass 3 threshold value T3 (step SF9: YES), the character recognition unit 80 determines the character type set as the pass 3 first candidate C31 as the character type of the processing target character (step SF10), the third recognition pass is terminated.
On the other hand, when the difference amount is equal to or less than the pass 3 threshold T3 (step SF9: NO), the character recognition unit 80 determines that the difference amount related to the character type determined as the pass 3 second candidate C32 is the pass 3 pass number. It is determined whether or not there is a size of 5/4 or more of the difference amount related to the character type set as one candidate C31 (step SF11).

5/4倍以上の大きさがある場合(ステップSF11:YES)、文字認識部80は、パス3用第1候補C31とされた文字種類を、処理対象文字の文字種類として確定し(ステップSF10)、第3認識パスを終了する。
一方、5/4倍以上の大きさがない場合(ステップSF11:NO)、文字認識部80は、処理対象文字の文字種類を確定することなく、第3認識パスを終了する。
If the size is 5/4 or more (step SF11: YES), the character recognition unit 80 determines the character type set as the first candidate C31 for pass 3 as the character type of the processing target character (step SF10). ), The third recognition pass is terminated.
On the other hand, when the size is not 5/4 or more (step SF11: NO), the character recognition unit 80 ends the third recognition pass without determining the character type of the processing target character.

このように、本実施形態では、パス3用第1候補C31に係る差異量、及び、パス3用第2候補C32に係る差異量の双方が、パス3用閾値T3を下回る場合、パス3用第2候補C32に係る差異量が、パス3用第1候補C31に係る差異量の5/4倍以上の大きさがあるか否か判別され、5/4倍以上の大きさがある場合は、パス3用第1候補C31とされた文字種類を、処理対象文字の文字種類として確定する。これは、以下の理由による。
すなわち、パス3用第2候補C32に係る差異量が、パス3用第1候補C31に係る差異量の5/4倍以上の大きさがある場合、パス3用第1候補C31に係る差異量は、パス3用第2候補C32に係る差異量と比較して、十分に小さい値であると言うことができ、従って、パス3用第1候補C31とされた文字種類は、他の文字種類と比較して、処理対処文字の文字種類である蓋然性が十分に高いと言うことができるからである。
As described above, in this embodiment, when both the difference amount related to the first candidate C31 for path 3 and the difference amount related to the second candidate C32 for path 3 are less than the threshold value T3 for path 3, It is determined whether or not the difference amount related to the second candidate C32 has a size that is 5/4 or more of the difference amount related to the first candidate C31 for pass 3, and if there is a size that is 5/4 or more times The character type determined as the first candidate C31 for pass 3 is determined as the character type of the processing target character. This is due to the following reason.
That is, when the difference amount related to the second candidate C32 for path 3 is greater than or equal to 5/4 times the difference amount related to the first candidate C31 for path 3, the difference amount related to the first candidate C31 for path 3 Can be said to be a sufficiently small value compared to the difference amount relating to the second candidate C32 for pass 3, and therefore, the character type set as the first candidate C31 for pass 3 is another character type. This is because it can be said that the probability of the character type of the processed character is sufficiently high.

次いで、第4認識パスについて、図9を援用して説明する。
第4認識パスの動作は、図9のステップSF11の処理、すなわち、パス3用第2候補C32に係る差異量が、パス3用第1候補C31に係る差異量の5/4倍以上の大きさがあるか否かを判別する処理がない点において、第3認識パスの動作と異なっている。これにより、パス3用第1候補C31に係る差異量、及び、パス3用第2候補C32に係る差異量のいずれも、パス3用閾値T3を下回るような場合は、処理対象文字の文字種類を確定すると誤認識を招くおそれがあるとして、処理対象文字の文字種類が確定されない。
このように第4認識パスは、第3認識パスよりも、処理対象文字の文字種類を確定する条件が厳しくなっており、図8に示すように、必ず第3認識パスよりも前のステップで実行される。
Next, the fourth recognition path will be described with reference to FIG.
The operation of the fourth recognition pass is the same as the processing of step SF11 in FIG. This is different from the operation of the third recognition pass in that there is no process for determining whether or not there is a problem. Thereby, when both the difference amount related to the first candidate C31 for pass 3 and the difference amount related to the second candidate C32 for pass 3 are less than the threshold value T3 for pass 3, the character type of the character to be processed If it is determined that there is a risk of erroneous recognition, the character type of the character to be processed is not determined.
In this way, the condition for determining the character type of the character to be processed is stricter in the fourth recognition pass than in the third recognition pass, and as shown in FIG. Executed.

図10は、第5認識パスの実行時における文字認識部80の動作を示すフローチャートである。
図10を参照し、第5認識パスにおいて、まず、文字認識部80は、処理対象文字の文字波形データの波形に「縮み」が発生している可能性があるのか、又は、「伸び」が発生している可能性があるのかを判別する(ステップSG1)。
FIG. 10 is a flowchart showing the operation of the character recognition unit 80 during execution of the fifth recognition pass.
Referring to FIG. 10, in the fifth recognition pass, first, the character recognition unit 80 determines whether “shrinkage” may occur in the waveform of the character waveform data of the character to be processed, or “elongation” occurs. It is determined whether or not there is a possibility (step SG1).

文字認識部80は、処理対象文字の文字波形データの波形に「縮み」が発生している可能性があるか否か、また、「伸び」が発生している可能性があるか否かを、以下のようにして判別する。
すなわち、処理対象文字の文字間隔が基準文字間隔よりも小さい場合、処理対象文字の波形のX軸における幅が、正常な状態と比較して、縮小しているということであり、この場合は、文字認識部80は、処理対象文字の文字波形データの波形に「縮み」が発生している可能性があると判別する。一方、処理対象文字の文字間隔が基準文字間隔よりも大きい場合、処理対象文字の波形のX軸における幅が、正常な状態と比較して、伸張しているということであり、この場合は、文字認識部80は、処理対象文字の文字波形データの波形に「伸び」が発生している可能性があると判別する。
The character recognition unit 80 determines whether or not “shrinkage” may occur in the waveform of the character waveform data of the processing target character, and whether or not “elongation” may occur. The determination is made as follows.
That is, when the character interval of the processing target character is smaller than the reference character interval, the width of the waveform of the processing target character on the X axis is reduced compared to a normal state. In this case, The character recognition unit 80 determines that “shrinkage” may occur in the waveform of the character waveform data of the character to be processed. On the other hand, when the character interval of the processing target character is larger than the reference character interval, the width of the waveform of the processing target character on the X axis is expanded as compared with the normal state. In this case, The character recognition unit 80 determines that “elongation” may occur in the waveform of the character waveform data of the character to be processed.

ステップSG1において、「縮み」が発生している可能性があると判別した場合(ステップSG1:「縮み」)、文字認識部80は、14個の文字種類の中から、ステップSG3以下の処理において比較対象とされる文字種類を特定する(ステップSG2)。以下、ステップSG2で特定された文字種類のことを、「比較対象文字種類」というものとする。ステップSG3以下の処理は、14個の文字種類のそれぞれについて、順番に、1回ずつ行われる。
次いで、文字認識部80は、縮みテーブル94を参照する(ステップSG3)。
If it is determined in step SG1 that there is a possibility that “shrinkage” has occurred (step SG1: “shrinkage”), the character recognition unit 80 performs processing in step SG3 and subsequent steps from among 14 character types. A character type to be compared is specified (step SG2). Hereinafter, the character type specified in step SG2 is referred to as “comparison character type”. The processes after step SG3 are performed once in turn for each of the 14 character types.
Next, the character recognition unit 80 refers to the shrinkage table 94 (step SG3).

図17(A)は、縮みテーブル94のデータ構造を模式的に示す図である。
図17(A)に示すように、縮みテーブル94では、14個の文字種類毎に、伸縮点を示す情報と、最大縮み量を示す情報とが対応づけて記憶されている。
なお、両側伸縮テーブル90と、縮みテーブル94において、同一の文字種類については、縮みテーブル94における最大縮み量の値は、両側伸縮テーブル90における最大縮み量の値以上となっている。
FIG. 17A is a diagram schematically showing the data structure of the shrinkage table 94.
As shown in FIG. 17A, in the contraction table 94, information indicating the expansion / contraction point and information indicating the maximum contraction amount are stored in association with each other for every 14 character types.
Note that, for the same character type in the both-side expansion / contraction table 90 and the contraction table 94, the maximum contraction amount value in the contraction table 94 is equal to or greater than the maximum contraction amount value in the double-side expansion / contraction table 90.

次いで、文字認識部80は、参照した縮みテーブル94において、比較対象文字種類に対応するレコードを参照し、比較対象文字種類に係る伸縮点、及び、最大縮み量のそれぞれの値を取得する(ステップSG4)。   Next, the character recognizing unit 80 refers to the record corresponding to the comparison target character type in the referred contraction table 94, and acquires the respective values of the expansion / contraction point and the maximum contraction amount related to the comparison target character type (step S40). SG4).

次いで、文字認識部80は、ステップSG4で取得した伸縮点、及び、最大縮み量に基づいて、比較対象文字種類に対応する基準波形データの波形を補正し、補正した波形のそれぞれと、処理対象文字に対応する文字波形データの波形との間の差異量を算出する(ステップSG5)。   Next, the character recognition unit 80 corrects the waveform of the reference waveform data corresponding to the character type to be compared based on the expansion / contraction point and the maximum contraction amount acquired in step SG4, The difference between the waveform of the character waveform data corresponding to the character is calculated (step SG5).

より詳細には、文字認識部80は、比較対象文字種類に対応する基準波形データの波形のうち、伸縮点よりX軸右方の波形について、最大縮み量の値を上限として、最大縮み量を「1サンプリング単位」ずつ減算しつつ、減算後の最大縮み量に基づいて基準波形データの波形を補正し、補正後の基準波形データの波形と、処理対象文字の文字波形データの波形との間の差異量を算出する。この差異量の算出は、減算後の最大縮み量の値が「0サンプリング単位」となるまで行われる。
例えば、比較対象文字種類が文字種類「0」の場合、図17(A)の縮みテーブル94を参照して、最大縮み量は、「3サンプリング単位」である。この場合、文字認識部80は、伸縮点より右方の波形について、3、2、1、0サンプリング単位分X軸左方へスライドさせることによって補正した基準波形データの波形のそれぞれと、処理対象文字に対応する文字波形データの波形との間の差異量のそれぞれを算出する。
More specifically, the character recognizing unit 80 sets the maximum amount of shrinkage with the maximum shrinkage amount as an upper limit for the waveform to the right of the X axis from the stretch point among the waveforms of the reference waveform data corresponding to the character type to be compared. While subtracting “one sampling unit” at a time, the waveform of the reference waveform data is corrected based on the maximum contraction amount after the subtraction, and between the waveform of the corrected reference waveform data and the waveform of the character waveform data of the character to be processed The amount of difference is calculated. The calculation of the difference amount is performed until the value of the maximum contraction amount after subtraction becomes “0 sampling unit”.
For example, when the comparison target character type is the character type “0”, the maximum contraction amount is “3 sampling units” with reference to the contraction table 94 in FIG. In this case, the character recognizing unit 80 processes each of the waveforms of the reference waveform data corrected by sliding the waveform to the right of the expansion / contraction point by sliding it to the left of the X axis by 3, 2, 1, 0 sampling units, and the processing target. Each difference between the waveform of the character waveform data corresponding to the character is calculated.

次いで、文字認識部80は、ステップSG5で算出した差異量のうち、その値が最も小さいものを特定し、特定した差異量を、比較対象文字種類の差異量として特定する(ステップSG6)。   Next, the character recognizing unit 80 specifies the smallest difference value calculated in step SG5, and identifies the identified difference amount as the difference amount of the comparison target character type (step SG6).

次いで、文字認識部80は、14個の文字種類の全てについて、差異量の算出(ステップSG5)、特定(ステップSG6)が終了したか否かを判別する(ステップSG7)。
全ての文字種類について、差異量の算出、特定が終了していない場合(ステップSG7:NO)、文字認識部80は、処理手順をステップSG2に戻す。
一方、全ての文字種類について、差異量の算出、特定が終了している場合(ステップSG7:YES)、文字認識部80は、14個の文字種類のうち、特定された差異量の値が最も小さかった文字種類を、パス5用第1候補C51とし、特定された差異量の値が2番目に小さかった文字種類を、パス5用第2候補C52とする(ステップSG8)。
Next, the character recognition unit 80 determines whether or not the calculation of the difference amount (step SG5) and the specification (step SG6) have been completed for all 14 character types (step SG7).
When the calculation and identification of the difference amount are not completed for all character types (step SG7: NO), the character recognition unit 80 returns the processing procedure to step SG2.
On the other hand, when the calculation and identification of the difference amount have been completed for all the character types (step SG7: YES), the character recognition unit 80 determines that the value of the identified difference amount is the highest among the 14 character types. The smaller character type is set as the first candidate C51 for pass 5, and the character type whose value of the specified difference amount is the second smallest is set as the second candidate C52 for pass 5 (step SG8).

次いで、文字認識部80は、パス5用第1候補C51とされた文字種類について、ステップSG6で特定された差異量と、パス5用閾値T5とを比較し、当該差異量がパス5用閾値T5を上回るか否かを判別する(ステップSG9)。
パス5用閾値T5は、パス5用第1候補C51とされた文字種類を、処理対象文字の文字種類として確定するか否かを判別する際の基準となる値であり、差異量がパス5用閾値T5以下の場合は、後述する他の条件が成立すれば、文字認識部80は、パス5用第1候補C51とされた文字種類を、処理対象文字の文字種類として確定する。
Next, the character recognition unit 80 compares the difference amount specified in step SG6 with the pass 5 threshold value T5 for the character type determined as the pass 5 first candidate C51, and the difference amount is determined as the pass 5 threshold value. It is determined whether or not T5 is exceeded (step SG9).
The pass 5 threshold value T5 is a value serving as a reference when determining whether or not the character type set as the first candidate C51 for pass 5 is to be determined as the character type of the character to be processed. In the case of the threshold value T5 or less, if other conditions described later are satisfied, the character recognition unit 80 determines the character type set as the first candidate C51 for pass 5 as the character type of the processing target character.

差異量がパス5用閾値T5を上回る場合(ステップSG9:YES)、文字認識部80は、処理対象文字の文字種類を確定することなく、第5認識パスを終了する。
差異量がパス5用閾値T5以下の場合(ステップSG9:NO)、文字認識部80は、さらに、パス5用第2候補C52とされた文字種類について、ステップSG6で特定された差異量と、パス5用閾値T5とを比較し、当該差異量がパス5用閾値T5を上回るか否かを判別する(ステップSG10)。
When the difference amount exceeds the threshold value 5 for pass 5 (step SG9: YES), the character recognition unit 80 ends the fifth recognition pass without determining the character type of the processing target character.
When the difference amount is equal to or less than the pass 5 threshold value T5 (step SG9: NO), the character recognition unit 80 further determines the difference amount specified in step SG6 for the character type determined as the pass 5 second candidate C52. The pass 5 threshold value T5 is compared to determine whether or not the difference amount exceeds the pass 5 threshold value T5 (step SG10).

当該差異量がパス5用閾値T5を上回る場合(ステップSG10:YES)、文字認識部80は、パス5用第1候補C51とされた文字種類を、処理対象文字の文字種類として確定し(ステップSG11)、第5認識パスを終了する。
一方で、当該差異量がパス5用閾値T5以下の場合(ステップSG10:NO)、文字認識部80は、処理対象文字の文字種類を確定することなく、第5認識パスを終了する。
When the difference amount exceeds the pass 5 threshold value T5 (step SG10: YES), the character recognition unit 80 determines the character type set as the first pass 5 candidate C51 as the character type of the processing target character (step SG11), the fifth recognition pass is terminated.
On the other hand, when the difference amount is equal to or less than the pass 5 threshold value T5 (step SG10: NO), the character recognition unit 80 ends the fifth recognition pass without determining the character type of the processing target character.

このように、本実施形態では、パス5用第1候補C51とされた文字種類について、ステップSG6で特定された差異量が、パス5用閾値T5以下の場合であっても、パス5用第2候補C52とされた文字種類について、ステップSG6で特定された差異量が、パス5用閾値T5以下である場合は、処理対象文字の文字種類を確定しない。これは、上述したパス1用閾値T1で説明した理由と同様の理由による。   As described above, in the present embodiment, even if the difference amount specified in step SG6 is less than or equal to the pass 5 threshold T5 for the character type that is the first candidate C51 for pass 5, For the character type determined as the second candidate C52, when the difference amount specified in step SG6 is equal to or less than the pass 5 threshold T5, the character type of the character to be processed is not fixed. This is due to the same reason as described for the above-described pass 1 threshold T1.

また、本実施形態では、処理対象文字に対応する文字波形データの波形について、「縮み」が発生している可能性がある場合は、文字認識部80は、比較対象文字種類に対応する基準波形データの波形のうち、伸縮点よりX軸右方の波形について、最大縮み量の値を上限として、所定の量だけX軸「左方」へスライドさせる。このスライドによって基準波形データの波形を補正し、補正後の基準波形データの波形と、処理対象文字の文字波形データの波形との間の差異量を算出する。   In this embodiment, if there is a possibility that “shrinkage” has occurred in the waveform of the character waveform data corresponding to the character to be processed, the character recognition unit 80 uses the reference waveform corresponding to the character type to be compared. Among the data waveforms, the waveform on the right side of the X axis from the expansion / contraction point is slid to the X axis “left” by a predetermined amount with the maximum shrinkage amount as the upper limit. The waveform of the reference waveform data is corrected by this slide, and the difference amount between the corrected waveform of the reference waveform data and the waveform of the character waveform data of the character to be processed is calculated.

ここで、基準波形データの波形のうち、伸縮点よりX軸右方の波形について、X軸方向左方へスライドさせた場合、基準波形データの波形の全体としては、所定の範囲でX軸左方へ向かって縮んだ状態となる(例えば、図16参照)。
つまり、本実施形態では、文字波形データの波形に「縮み」が発生している可能性がある場合は、当該「縮み」に対応させて、基準波形データの波形を縮ませた上で、差異量を算出している。これにより、文字波形データの波形の「縮み」に対応して、適切に差異量を算出することができると共に、「伸び」に対応した補正を施した基準波形データと、処理対象文字の文字波形データとの間で差異量を算出しないため、処理効率が向上する。
Here, among the waveforms of the reference waveform data, when the waveform to the right of the X-axis from the expansion / contraction point is slid to the left in the X-axis direction, the entire waveform of the reference waveform data is left in the X-axis within a predetermined range. It will be in the state shrunk toward (for example, refer to Drawing 16).
In other words, in this embodiment, if there is a possibility that “shrinkage” has occurred in the waveform of the character waveform data, the waveform of the reference waveform data is shrunk in correspondence with the “shrinkage” and then the difference is made. The amount is calculated. As a result, the difference amount can be calculated appropriately in response to the “shrinkage” of the waveform of the character waveform data, and the reference waveform data corrected for “elongation” and the character waveform of the character to be processed Since a difference amount is not calculated from data, processing efficiency is improved.

一方、ステップSG1において、「伸び」が発生している可能性があると判別した場合(ステップSG1:「伸び」)、文字認識部80は、14個の文字種類の中から、ステップSG13以下の処理において比較対象とされる文字種類を特定する(ステップSG12)。以下、ステップSG12で特定された文字種類のことを、「比較対象文字種類」というものとする。ステップSG13以下の処理は、14個の文字種類のそれぞれについて、順番に、14回行われる。
次いで、文字認識部80は、伸びテーブル95を参照する(ステップSG13)。
On the other hand, if it is determined in step SG1 that there is a possibility that “elongation” has occurred (step SG1: “elongation”), the character recognizing unit 80 performs step SG13 and subsequent steps out of 14 character types. A character type to be compared in the process is specified (step SG12). Hereinafter, the character type specified in step SG12 is referred to as “comparison character type”. The process after step SG13 is performed 14 times in order for each of the 14 character types.
Next, the character recognition unit 80 refers to the stretch table 95 (step SG13).

図17(B)は、伸びテーブル95のデータ構造を模式的に示す図である。
図17(B)に示すように、伸びテーブル95では、14個の文字種類毎に、伸縮点を示す情報と、最大伸び量を示す情報とが対応づけて記憶されている。
なお、両側伸縮テーブル90と、伸びテーブル95において、同一の文字種類については、伸びテーブル95における最大伸び量の値は、両側伸縮テーブル90における最大伸び量の値以上となっている。
FIG. 17B is a diagram schematically showing the data structure of the extension table 95.
As shown in FIG. 17B, in the stretch table 95, information indicating the expansion / contraction point and information indicating the maximum expansion amount are stored in association with each other for each of the 14 character types.
For the same character type in the both-side expansion / contraction table 90 and the extension table 95, the value of the maximum extension amount in the extension table 95 is equal to or greater than the value of the maximum extension amount in the both-side extension table 90.

次いで、文字認識部80は、参照した伸びテーブル95において、比較対象文字種類に対応するレコードを参照し、比較対象文字種類に係る伸縮点、及び、最大伸び量のそれぞれの値を取得する(ステップSG14)。   Next, the character recognizing unit 80 refers to the record corresponding to the character type to be compared in the referenced expansion table 95, and acquires the respective expansion / contraction points and the maximum expansion amount related to the character type to be compared (step). SG14).

次いで、文字認識部80は、ステップSG14で取得した伸縮点、及び、最大伸び量に基づいて、比較対象文字種類に対応する基準波形データの波形を補正し、補正した波形のそれぞれと、処理対象文字に対応する文字波形データの波形との間の差異量を算出する(ステップSG15)。   Next, the character recognition unit 80 corrects the waveform of the reference waveform data corresponding to the character type to be compared based on the expansion / contraction point acquired in step SG14 and the maximum extension amount, A difference amount between the waveform of the character waveform data corresponding to the character is calculated (step SG15).

より詳細には、文字認識部80は、比較対象文字種類に対応する基準波形データの波形のうち、伸縮点よりX軸右方の波形について、最大伸び量の値を上限として、最大伸び量を「1サンプリング単位」ずつ減算しつつ、減算後の最大伸び量だけ、X軸右方向へスライドさせることによって基準波形データの波形を補正し、補正後の基準波形データの波形と、処理対象文字の文字波形データの波形との間の差異量を算出する。この差異量の検出は、減算後の最大伸び量の値が「0サンプリング単位」となるまで行われる。
例えば、比較対象文字種類が文字種類「0」の場合、図17(B)の伸びテーブル95を参照して、最大伸び量は、「6サンプリング単位」である。この場合、文字認識部80は、伸縮点より右方の波形について、6、5、4、3、2、1、0サンプリング単位分X軸右方へスライドさせることによって補正した基準波形データの波形のそれぞれと、処理対象文字に対応する文字波形データの波形との間の差異量のそれぞれを算出する。
More specifically, the character recognizing unit 80 sets the maximum elongation amount with respect to the waveform of the reference waveform data corresponding to the character type to be compared with the maximum elongation amount as the upper limit for the waveform to the right of the X axis from the expansion / contraction point. While subtracting by “one sampling unit”, the waveform of the reference waveform data is corrected by sliding to the right of the X axis by the maximum extension amount after subtraction, and the waveform of the corrected reference waveform data and the character of the processing target character are corrected. The amount of difference between the waveform of the character waveform data is calculated. This difference amount is detected until the maximum elongation value after subtraction becomes “0 sampling unit”.
For example, when the character type to be compared is the character type “0”, the maximum extension amount is “6 sampling units” with reference to the extension table 95 in FIG. In this case, the character recognizing unit 80 corrects the waveform of the reference waveform data corrected by sliding the waveform on the right side of the expansion / contraction point to the right of the X axis by 6, 5, 4, 3, 2, 1, 0 sampling units. And the amount of difference between the waveform and the waveform of the character waveform data corresponding to the character to be processed is calculated.

次いで、文字認識部80は、ステップSG15で算出した差異量のうち、その値が最も小さいものを特定し、特定した差異量を、比較対象文字種類の差異量として特定する(ステップSG16)。   Next, the character recognizing unit 80 identifies the difference amount calculated in step SG15 having the smallest value, and identifies the identified difference amount as the difference amount of the comparison target character type (step SG16).

次いで、文字認識部80は、14個の文字種類の全てについて、差異量の算出(ステップSG15)、特定(ステップSG16)が終了したか否かを判別する(ステップSG17)。   Next, the character recognizing unit 80 determines whether the calculation of the difference amount (step SG15) and the specification (step SG16) have been completed for all 14 character types (step SG17).

全ての文字種類について、差異量の算出、特定が終了していない場合(ステップSG17:NO)、文字認識部80は、処理手順をステップSG12に戻す。
一方、全ての文字種類について、差異量の算出、特定が終了している場合(ステップSG17:YES)、文字認識部80は、ステップSG18〜ステップSG21の各処理を実行する。ステップSG18〜ステップSG21の処理は、上述した、ステップSG8〜ステップSG11の処理と同様なため、その説明を省略する。
When the calculation and identification of the difference amount are not completed for all character types (step SG17: NO), the character recognition unit 80 returns the processing procedure to step SG12.
On the other hand, when the calculation and identification of the difference amount have been completed for all character types (step SG17: YES), the character recognition unit 80 executes the processes of step SG18 to step SG21. Since the process of step SG18-step SG21 is the same as the process of step SG8-step SG11 mentioned above, the description is abbreviate | omitted.

このように、本実施形態では、処理対象文字に対応する文字波形データの波形について、「伸び」が発生している可能性がある場合は、文字認識部80は、比較対象文字種類に対応する基準波形データの波形のうち、伸縮点よりX軸右方の波形について、最大伸び量の値を上限として、所定の量だけX軸右方へスライドさせる。このスライドによって基準波形データの波形を補正し、補正後の基準波形データの波形と、処理対象文字の文字波形データの波形との間の差異量を算出する。   As described above, in this embodiment, when there is a possibility that “elongation” has occurred in the waveform of the character waveform data corresponding to the character to be processed, the character recognition unit 80 corresponds to the character type to be compared. Of the waveform of the reference waveform data, the waveform on the right side of the X-axis from the expansion / contraction point is slid to the right of the X-axis by a predetermined amount with the maximum elongation value as the upper limit. The waveform of the reference waveform data is corrected by this slide, and the difference amount between the corrected waveform of the reference waveform data and the waveform of the character waveform data of the character to be processed is calculated.

ここで、基準波形データの波形のうち、伸縮点よりX軸右方の波形について、X軸右方へスライドさせた場合、基準波形データの波形の全体としては、所定の範囲でX軸右方へ向かって伸びた状態となる(例えば、図16参照)。
つまり、本実施形態では、文字波形データの波形に「伸び」が発生している可能性がある場合は、当該「伸び」に対応させて、基準波形データの波形を伸ばした上で、差異量を算出している。これにより、文字波形データの波形の「伸び」に対応して、適切に差異量を算出することができると共に、「縮み」に対応した補正を施した基準波形データと、処理対象文字の文字波形データとの間で差異量を算出しないため、処理効率が向上する。
Here, among the waveforms of the reference waveform data, when the waveform on the X axis right side from the expansion / contraction point is slid to the X axis right side, the entire waveform of the reference waveform data is X axis right side within a predetermined range. It will be in the state extended toward (for example, refer to Drawing 16).
In other words, in this embodiment, if there is a possibility that “elongation” has occurred in the waveform of the character waveform data, the waveform of the reference waveform data is expanded corresponding to the “elongation”, and then the difference amount Is calculated. As a result, it is possible to appropriately calculate the difference amount corresponding to the “elongation” of the waveform of the character waveform data, and to perform the correction corresponding to “shrinkage” and the character waveform of the character to be processed. Since a difference amount is not calculated from data, processing efficiency is improved.

さて、図8を参照し、本実施形態では、処理対象文字の文字間隔と、基準文字間隔とが等しい場合(ステップSE2:「文字間隔=基準文字間隔」)、第3認識パスにより、処理対象文字の認識を行う。これは、以下の理由による。
すなわち、処理対象文字の文字間隔と、基準文字間隔とが等しい場合、処理対象文字の文字波形データの波形について、伸びや縮みが発生していない場合が多く、また、伸びや縮みが発生している場合であっても、伸びと、縮みとのうちいずれか一方が発生している可能性が高いとは言えない。これを踏まえ、上記の場合は、伸び、及び、縮みのいずれも反映して差異量を算出した上で処理対象文字の認識を実行する第3認識パスのみを実行する構成とし、処理効率の向上を図っている。なお、処理対象文字の文字間隔と、基準文字間隔とが等しい場合は、正常に磁気ヘッド54による読み取りや、小切手4の搬送が実行された可能性が高いことを踏まえ、本実施形態では、文字種類の確定の条件が厳しい第4認識パスを行わない構成となっているが、第3認識パスの実行の前に、第4認識パスを行う構成であってもよい。
Now, referring to FIG. 8, in the present embodiment, when the character spacing of the character to be processed is equal to the reference character spacing (step SE2: “character spacing = reference character spacing”), the third recognition pass causes the processing target to be processed. Recognize characters. This is due to the following reason.
In other words, when the character spacing of the character to be processed is equal to the reference character spacing, the waveform of the character waveform data of the character to be processed is often not stretched or shrunk, and the stretch or shrinkage has occurred. Even if it is, it cannot be said that there is a high possibility that one of the expansion and the contraction has occurred. Based on this, in the above case, it is configured to execute only the third recognition pass that performs recognition of the character to be processed after calculating the difference amount reflecting both expansion and contraction, thereby improving processing efficiency. I am trying. In the present embodiment, if the character spacing of the character to be processed is equal to the reference character spacing, it is highly likely that the reading by the magnetic head 54 or the conveyance of the check 4 has been executed normally. Although the configuration is such that the fourth recognition pass is not performed with strict type determination conditions, the configuration may be such that the fourth recognition pass is performed before the execution of the third recognition pass.

また、図8を参照し、本実施形態では、処理対象文字の文字間隔と、基準文字間隔から「1サンプリング単位」減算した値と、が等しい場合(ステップSE2:「文字間隔=基準文字間隔−1」)、文字認識部80は、第4認識パス(ステップSE4)、第5認識パス(ステップSE5)、及び、第3認識パス(ステップSE6)の順に、段階的に認識パスを実行する。これは、以下の理由による。
すなわち、処理対象文字の文字間隔と、基準文字間隔から「1サンプリング単位」減算した値と、が等しい場合、文字間隔が、基準文字間隔よりも「1サンプリング単位」小さく、処理対象文字の波形のX軸における幅が、正常な状態と比較して、1サンプリング単位分、縮小しているということである。この場合、処理対象文字の波形が縮んでいる可能性は、処理対象文字の波形が伸びている可能性よりも高いと言える。ただし、文字間隔と、基準文字間隔との差が「1サンプリング単位」以上存在している場合と比較して、処理対象文字の波形に「縮み」が発生している可能性は、「伸び」が発生している可能性と比較して、著しく高いわけではなく、また、「縮み」が発生している場合であっても、「1サンプリング単位」に対応する非常に小さな縮みである可能性が高い。
これを踏まえ、本実施形態では、上記の場合、第4認識パス、第5認識パス、及び、第3認識パスの順に段階的に認識に係る処理を実行する。
Referring to FIG. 8, in the present embodiment, when the character interval of the character to be processed is equal to the value obtained by subtracting “one sampling unit” from the reference character interval (step SE2: “character interval = reference character interval— 1 "), the character recognition unit 80 executes the recognition pass step by step in the order of the fourth recognition pass (step SE4), the fifth recognition pass (step SE5), and the third recognition pass (step SE6). This is due to the following reason.
That is, when the character interval of the processing target character is equal to the value obtained by subtracting “one sampling unit” from the reference character interval, the character interval is smaller by “one sampling unit” than the reference character interval, and the waveform of the processing target character That is, the width on the X-axis is reduced by one sampling unit as compared with the normal state. In this case, it can be said that the possibility that the waveform of the character to be processed is contracted is higher than the possibility that the waveform of the character to be processed is extended. However, compared with the case where the difference between the character spacing and the reference character spacing is “1 sampling unit” or more, the possibility that “shrinkage” occurs in the waveform of the character to be processed is “stretching”. Compared to the possibility of occurrence of the occurrence of a "shrinkage", it is not extremely high, and even if a "shrinkage" occurs, the possibility of a very small shrinkage corresponding to "one sampling unit" Is expensive.
In consideration of this, in the present embodiment, in the above case, the process related to the recognition is executed step by step in the order of the fourth recognition pass, the fifth recognition pass, and the third recognition pass.

詳述すると、処理対象文字の波形に「縮み」が発生している可能性は、「伸び」が発生している可能性と比較して、著しく高いわけではないことを考慮し、まず、伸び、及び、縮みのいずれも反映して差異量を算出した上で処理対象文字の認識を実行する第4認識パスを実行し、効率よく処理対象文字の認識を行う。第4認識パスで処理対象文字の文字種類の確定ができなかった場合は、処理対象文字の波形が縮んでいる可能性が、処理対象文字の波形が伸びている可能性よりも高いことを考慮して、第5認識パスを実行し、処理対象文字の波形が縮んでいる場合に特化した処理対象文字の認識を行う。   In detail, considering that the possibility that “shrinkage” has occurred in the waveform of the character to be processed is not significantly higher than the possibility that “elongation” has occurred, The fourth recognition pass for executing the recognition of the processing target character after calculating the difference amount by reflecting both the contraction and the contraction is performed to efficiently recognize the processing target character. If the character type of the processing target character cannot be determined in the fourth recognition pass, the possibility that the waveform of the processing target character is contracted is higher than the possibility that the waveform of the processing target character is expanded Then, the fifth recognition pass is executed to recognize the processing target character specialized when the waveform of the processing target character is contracted.

なお、処理対象文字の波形に「縮み」が発生している可能性がある場合(図10のステップSG1:「縮み」)、第5認識パスでは、縮みテーブル94が参照されることとなるが、上述したように、両側伸縮テーブル90と、縮みテーブル94において、同一の文字種類については、縮みテーブル94における最大縮み量の値は、両側伸縮テーブル90における最大縮み量の値以上の値となっている。従って、第5認識パスの方が、第4認識パスよりも、処理対象文字の波形の「縮み」により対応した処理対象文字の認識を実現可能である。
そして、第5認識パスで処理対象文字の文字種類の確定ができなかった場合は、第4認識パスよりも文字種類の確定のための条件が緩い第3認識パスを実行する。これにより、確定された文字種類が正しい文字種類であることの信頼性を担保しつつ、文字種類の確定の成功率を向上している。
If there is a possibility that “shrinkage” has occurred in the waveform of the character to be processed (step SG1: “shrinkage” in FIG. 10), the shrinkage table 94 will be referred to in the fifth recognition pass. As described above, for the same character type in the both-side expansion / contraction table 90 and the contraction table 94, the value of the maximum contraction amount in the contraction table 94 is greater than or equal to the value of the maximum contraction amount in the both-side expansion / contraction table 90. ing. Therefore, the fifth recognition pass can realize the recognition of the processing target character corresponding to the “shrinkage” of the waveform of the processing target character than the fourth recognition pass.
When the character type of the processing target character cannot be determined in the fifth recognition pass, the third recognition pass is executed, which has a looser condition for determining the character type than the fourth recognition pass. This improves the success rate of character type determination while ensuring the reliability that the determined character type is the correct character type.

また、図8を参照し、本実施形態では、処理対象文字の文字間隔が、基準文字間隔から「1サンプリング単位」減算した値を下回る場合(ステップSE2:「文字間隔<基準文字間隔−1」)、文字認識部80は、第5認識パス(ステップSE7)、及び、第3認識パス(ステップSE8)の順に、段階的に認識パスを実行する。これは、以下の理由による。
すなわち、処理対象文字の文字間隔が、基準文字間隔から「1サンプリング単位」減算した値を下回る場合、処理対象文字の波形が縮んでいる可能性が比較的高いと言える。
これを踏まえ、まず、文字認識部80は、まず、処理対象文字の波形が縮んでいる場合に特化した処理対象文字の認識を行う第5認識パスを実行し、効率よく処理対象文字の認識を行う。そして、第5認識パスで処理対象文字の文字種類の確定ができなかった場合は、伸び、及び、縮みのいずれも反映して差異量を算出した上で処理対象文字の認識を実行する第3認識パスを行っている。
Referring to FIG. 8, in the present embodiment, when the character interval of the character to be processed is less than a value obtained by subtracting “one sampling unit” from the reference character interval (step SE2: “character interval <reference character interval−1”). ), The character recognition unit 80 executes the recognition pass step by step in the order of the fifth recognition pass (step SE7) and the third recognition pass (step SE8). This is due to the following reason.
That is, when the character spacing of the processing target character is less than the value obtained by subtracting “one sampling unit” from the reference character spacing, it can be said that the possibility that the waveform of the processing target character is contracted is relatively high.
Based on this, first, the character recognition unit 80 first executes a fifth recognition pass for recognizing the processing target character specialized when the waveform of the processing target character is contracted, and efficiently recognizes the processing target character. I do. If the character type of the processing target character cannot be determined in the fifth recognition pass, the processing unit character recognition is performed after calculating the difference amount reflecting both expansion and contraction. A recognition pass is in progress.

また、図8を参照し、本実施形態では、処理対象文字の文字間隔と、基準文字間隔に「1サンプリング単位」加算した値と、が等しい場合(ステップSE2:「文字間隔=基準文字間隔+1」)、文字認識部80は、第4認識パス(ステップSE9)、第5認識パス(ステップSE10)、及び、第3認識パス(ステップSE11)の順に、段階的に認識パスを実行する。これは、以下の理由による。
すなわち、処理対象文字の文字間隔と、基準文字間隔に「1サンプリング単位」加算した値と、が等しい場合、文字間隔が、基準文字間隔よりも「1サンプリング単位」大きく、処理対象文字の波形のX軸における幅が、正常な状態と比較して、1サンプリング単位分、伸張しているということである。この場合、処理対象文字の波形が伸びている可能性は、処理対象文字の波形が縮んでいる可能性よりも高いと言える。ただし、文字間隔と、基準文字間隔との差が「1サンプリング単位」以上存在している場合と比較して、処理対象文字の波形に「伸び」が発生している可能性は、「縮み」が発生している可能性と比較して、著しく高いわけではなく、また、「伸び」が発生している場合であっても、「1サンプリング単位」に対応する非常に小さな伸びである可能性が高い。
これを踏まえ、本実施形態では、上記の場合、第4認識パス、第5認識パス、及び、第3認識パスの順に段階的に認識に係る処理を実行する。
Referring to FIG. 8, in the present embodiment, when the character interval of the character to be processed is equal to the value obtained by adding “one sampling unit” to the reference character interval (step SE2: “character interval = reference character interval + 1”). ”), The character recognition unit 80 executes the recognition pass step by step in the order of the fourth recognition pass (step SE9), the fifth recognition pass (step SE10), and the third recognition pass (step SE11). This is due to the following reason.
That is, when the character interval of the processing target character is equal to the value obtained by adding “one sampling unit” to the reference character interval, the character interval is “one sampling unit” larger than the reference character interval, and the waveform of the processing target character is This means that the width on the X-axis is extended by one sampling unit as compared with the normal state. In this case, it can be said that the possibility that the waveform of the processing target character is expanded is higher than the possibility that the waveform of the processing target character is contracted. However, compared with the case where the difference between the character spacing and the reference character spacing is “1 sampling unit” or more, the possibility that “elongation” has occurred in the waveform of the character to be processed is “shrinkage”. Compared to the possibility of occurrence of, it is not extremely high, and even if "elongation" occurs, there is a possibility of very small elongation corresponding to "one sampling unit" Is expensive.
In consideration of this, in the present embodiment, in the above case, the process related to the recognition is executed step by step in the order of the fourth recognition pass, the fifth recognition pass, and the third recognition pass.

詳述すると、処理対象文字の波形に「伸び」が発生している可能性は、「縮み」が発生している可能性と比較して、著しく高いわけではないことを考慮し、まず、伸び、及び、縮みのいずれも反映して差異量を算出した上で処理対象文字の認識を実行する第4認識パスを実行し、効率よく処理対象文字の認識を行う。第4認識パスで処理対象文字の文字種類の確定ができなかった場合は、処理対象文字の波形が伸びている可能性が、処理対象文字の波形が縮んでいる可能性よりも高いことを考慮して、第5認識パスを実行し、処理対象文字の波形が伸びている場合に特化した処理対象文字の認識を行う。   In detail, considering that the possibility of “stretching” in the waveform of the character to be processed is not significantly higher than the possibility of “shrinking”, The fourth recognition pass for executing the recognition of the processing target character after calculating the difference amount by reflecting both the contraction and the contraction is performed to efficiently recognize the processing target character. If the character type of the character to be processed cannot be determined in the fourth recognition pass, the possibility that the waveform of the character to be processed is stretched is higher than the possibility that the waveform of the character to be processed is contracted Then, the fifth recognition pass is executed to recognize the processing target character specialized when the waveform of the processing target character is extended.

なお、処理対象文字の波形に「伸び」が発生している可能性がある場合(図10のステップSG1:「伸び」)、第5認識パスでは、伸びテーブル95が参照されることとなるが、上述したように、両側伸縮テーブル90と、伸びテーブル95において、同一の文字種類については、伸びテーブル95における最大伸び量の値は、両側伸縮テーブル90における最大伸び量の値以上の値となっている。従って、第5認識パスの方が、第4認識パスよりも、処理対象文字の波形の「伸び」により対応した処理対象文字の認識を実現可能である。
そして、第5認識パスで処理対象文字の文字種類の確定ができなかった場合は、第4認識パスよりも文字種類の確定のための条件が緩い第3認識パスを実行する。これにより、確定された文字種類が正しい文字種類であることの信頼性を担保しつつ、文字種類の確定の成功率を向上している。
When there is a possibility that “elongation” has occurred in the waveform of the character to be processed (step SG1: “elongation” in FIG. 10), the extension table 95 is referred to in the fifth recognition pass. As described above, in the both-side expansion / contraction table 90 and the extension table 95, for the same character type, the value of the maximum extension amount in the extension table 95 is equal to or greater than the value of the maximum extension amount in the both-side extension table 90. ing. Therefore, the fifth recognition pass can realize the recognition of the processing target character corresponding to the “elongation” of the waveform of the processing target character than the fourth recognition pass.
When the character type of the processing target character cannot be determined in the fifth recognition pass, the third recognition pass is executed, which has a looser condition for determining the character type than the fourth recognition pass. This improves the success rate of character type determination while ensuring the reliability that the determined character type is the correct character type.

また、図8を参照し、本実施形態では、処理対象文字の文字間隔が、基準文字間隔に「1サンプリング単位」加算した値を上回る場合(ステップSE2:「文字間隔>基準文字間隔+1」)、文字認識部80は、第5認識パス(ステップSE12)、及び、第3認識パス(ステップSE13)の順に、段階的に認識パスを実行する。これは、以下の理由による。
すなわち、処理対象文字の文字間隔が、基準文字間隔に「1サンプリング単位」加算した値を上回る場合、処理対象文字の波形が伸びている可能性が比較的高いと言える。
これを踏まえ、まず、文字認識部80は、まず、処理対象文字の波形が伸びている場合に特化した処理対象文字の認識を行う第5認識パスを実行し、効率よく処理対象文字の認識を行う。そして、第5認識パスで処理対象文字の文字種類の確定ができなかった場合は、伸び、及び、縮みのいずれも反映して差異量を算出した上で処理対象文字の認識を実行する第3認識パスを行っている。
Referring to FIG. 8, in the present embodiment, when the character spacing of the character to be processed exceeds a value obtained by adding “one sampling unit” to the reference character spacing (step SE2: “character spacing> reference character spacing + 1”). The character recognition unit 80 executes the recognition pass step by step in the order of the fifth recognition pass (step SE12) and the third recognition pass (step SE13). This is due to the following reason.
That is, if the character interval of the character to be processed exceeds the value obtained by adding “one sampling unit” to the reference character interval, it can be said that there is a relatively high possibility that the waveform of the character to be processed is extended.
Based on this, first, the character recognition unit 80 first executes the fifth recognition pass for recognizing the processing target character specialized when the waveform of the processing target character is extended, and efficiently recognizes the processing target character. I do. If the character type of the processing target character cannot be determined in the fifth recognition pass, the processing unit character recognition is performed after calculating the difference amount reflecting both expansion and contraction. A recognition pass is in progress.

以上、第2認識フェーズの処理について説明したが、第2認識フェーズにおいて、処理対象文字の文字種類を確定できなかった場合、必ず、第3認識パスが実行され、第3認識パスの実行に伴って、パス3用第1候補C31、及び、パス3用第2候補C32が特定された状態となる。また、パス3用第1候補C31、及び、パス3用第2候補C32とされた文字種類のそれぞれについて特定された差異量は、以降のステップまで保存される。   The processing in the second recognition phase has been described above. However, if the character type of the processing target character cannot be determined in the second recognition phase, the third recognition pass is always executed, and the execution of the third recognition pass is performed. Thus, the first candidate for path 3 C31 and the second candidate for path 3 C32 are identified. Further, the difference amounts specified for the respective character types that are the first candidate for pass 3 C31 and the second candidate for pass 3 C32 are stored until the subsequent steps.

さて、前掲図4を参照し、文字認識部80は、第2認識フェーズ(ステップSA7)の実行後、第2認識フェーズにおいて処理対象文字の文字種類が確定したか否かを判別し(ステップSA8)、確定できた場合は(ステップSA8:YES)、処理手順をステップSA5へ移行する。
確定できなかった場合は(ステップSA8:NO)、第1認識フェーズの第2認識パスで特定されたパス2用第1候補C21、及び、パス2用第2候補C22のそれぞれについて特定された差異量と、第2認識フェーズの第3認識パスで特定されたパス3用第1候補C31、及び、パス3用第2候補C32のそれぞれについて特定された差異量とを比較する(ステップSA9)。
Now, referring to FIG. 4, the character recognition unit 80 determines whether or not the character type of the character to be processed has been determined in the second recognition phase after the second recognition phase (step SA7) is executed (step SA8). ) If it can be confirmed (step SA8: YES), the process proceeds to step SA5.
When it cannot be determined (step SA8: NO), the difference specified for each of the first candidate C21 for pass 2 and the second candidate C22 for pass 2 specified in the second recognition pass of the first recognition phase The amount is compared with the difference amount specified for each of the path 3 first candidate C31 and the path 3 second candidate C32 specified in the third recognition pass of the second recognition phase (step SA9).

ステップSA9における差異量の比較の結果、文字認識部80は、4つの候補の中で差異量が最も小さかった候補の文字種類を、磁気インク文字認識における第1候補C41と決定し、差異量が2番目に小さかった文字種類を、磁気インク文字認識における第2候補C42と決定して(ステップSA10)、処理手順をステップSA5へ移行する。ただし、差異量が2番目に小さかった候補の文字種類が差異量が最も小さかった候補の文字種類と同じ場合は、その次に差異量が小さかった文字種類を、磁気インク文字認識における第2候補C42とする。
後述する光学認識処理(ステップSA18)において、これら第1候補C41、及び、第2候補C42と、光学文字認識において仮確定された文字と、が一致するか否かが判別される。
As a result of the comparison of the difference amount in step SA9, the character recognition unit 80 determines the character type of the candidate having the smallest difference amount among the four candidates as the first candidate C41 in magnetic ink character recognition, and the difference amount is The second smallest character type is determined as the second candidate C42 in magnetic ink character recognition (step SA10), and the processing procedure proceeds to step SA5. However, if the character type of the candidate having the second smallest amount of difference is the same as the character type of the candidate having the smallest amount of difference, the character type having the next smallest amount of difference is designated as the second candidate in magnetic ink character recognition. C42.
In an optical recognition process (step SA18), which will be described later, it is determined whether or not these first candidate C41 and second candidate C42 match the characters temporarily determined in the optical character recognition.

ここで、第1認識フェーズの第2認識パスでは、処理対象文字の文字波形データの波形にずれがある場合を想定して、ずれを反映した上で差異量の算出が行われているが、波形の伸び縮みは反映されていない。一方、第2認識フェーズの第3認識パスでは、処理対象文字の文字波形データの波形に伸び縮みがある場合を想定して、伸び縮みを反映した上で差異量の算出が行われているが、波形のずれは反映されていない。
そのため、例えば、ステップSA1での文字の切り出し位置にずれがある場合、第1認識フェーズの第2認識パスで算出される差異量は、第2認識フェーズの第3認識パスで算出される差異量よりも小さくなる可能性が高い。また、印刷等に起因して磁気インク文字の伸び縮みがある場合、第2認識フェーズの第3認識パスで算出される差異量は第1認識フェーズの第2認識パスで算出される差異量よりも小さくなる可能性が高い。
そこで、第1認識フェーズの第2認識パスで算出された差異量と、第2認識フェーズの第3認識パスで算出された差異量とを比較して、差異量が小さかった方の文字種類を候補とすることで、より確実性が高い文字種類の候補を得ることができる。
Here, in the second recognition pass of the first recognition phase, assuming that there is a deviation in the waveform of the character waveform data of the character to be processed, the difference amount is calculated after reflecting the deviation. The expansion and contraction of the waveform is not reflected. On the other hand, in the third recognition pass of the second recognition phase, the difference amount is calculated after reflecting the expansion / contraction assuming that the waveform of the character waveform data of the character to be processed has expansion / contraction. The waveform shift is not reflected.
Therefore, for example, when there is a shift in the character cutout position in step SA1, the difference amount calculated in the second recognition pass of the first recognition phase is the difference amount calculated in the third recognition pass of the second recognition phase. Is likely to be smaller. Further, when there is expansion or contraction of magnetic ink characters due to printing or the like, the difference amount calculated in the third recognition pass of the second recognition phase is larger than the difference amount calculated in the second recognition pass of the first recognition phase. Is likely to be smaller.
Therefore, the difference amount calculated in the second recognition pass of the first recognition phase is compared with the difference amount calculated in the third recognition pass of the second recognition phase, and the character type with the smaller difference amount is selected. By using candidates, it is possible to obtain character type candidates with higher certainty.

さて、前掲図4を参照し、ステップSA5において、磁気インク文字列4Aに含まれる全ての磁気インク文字が処理対象文字となったと判別された場合(ステップSA5:YES)、文字認識部80は、磁気インク文字列4Aに含まれる磁気インク文字の数を検出する(ステップSA6)。
次いで、文字認識部80は、磁気インク文字列4Aに含まれる全ての磁気インク文字について、文字種類が確定したか否かを判別する(ステップSA16)。
Now, referring to FIG. 4 described above, when it is determined in step SA5 that all magnetic ink characters included in the magnetic ink character string 4A have been processed (step SA5: YES), the character recognition unit 80 The number of magnetic ink characters included in the magnetic ink character string 4A is detected (step SA6).
Next, the character recognition unit 80 determines whether or not the character type has been determined for all the magnetic ink characters included in the magnetic ink character string 4A (step SA16).

全ての磁気インク文字について文字種類が確定した場合(ステップSA16:YES)、ホスト側制御部73は、磁気インク文字列4Aの読み取りが成功したものとして、磁気インク文字列4Aの読み取りが成功した場合に行うべき処理を行う(ステップSA17)。磁気インク文字列4Aの読み取りが成功した場合に行うべき処理には、例えば、磁気インク文字列4Aが示す情報を記憶部78に記憶し、また、制御部71に記録装置56を制御させて、小切手4の裏面に裏書きに係る所定の画像を記録し、また、第1小切手排出部7に小切手4を排出する等の処理が含まれる。
一方、磁気インク文字列4Aに含まれる磁気インク文字について、1つでも文字種類が確定しなかったものが存在した場合(ステップSA16:NO)、文字認識部80は、文字種類が確定しなかった磁気インク文字に対して光学的な文字の認識を実行する光学認識処理(ステップSA18)を実行する。
When the character type is determined for all the magnetic ink characters (step SA16: YES), the host-side control unit 73 assumes that the magnetic ink character string 4A has been successfully read, and that the magnetic ink character string 4A has been successfully read. The process to be performed is performed (step SA17). The processing to be performed when the reading of the magnetic ink character string 4A is successful includes, for example, storing the information indicated by the magnetic ink character string 4A in the storage unit 78, and causing the control unit 71 to control the recording device 56, A predetermined image related to the endorsement is recorded on the back surface of the check 4, and the first check discharge unit 7 discharges the check 4.
On the other hand, when at least one of the magnetic ink characters included in the magnetic ink character string 4A has not been determined (step SA16: NO), the character recognition unit 80 has not determined the character type. An optical recognition process (step SA18) for executing optical character recognition on the magnetic ink character is executed.

次いで、文字認識部80は、光学認識処理により、文字種類が確定していなかった全ての磁気インク文字について、文字種類が確定したか否かを判別し(ステップSA19)、全ての磁気インク文字について、文字種類が確定した場合は(ステップSA19:YES)、磁気インク文字列4Aの読み取りが成功した場合に行うべき処理を行う(ステップSA17)。一方、1つでも文字種類が確定しなかった磁気インク文字が存在する場合(ステップSA19:NO)、ホスト側制御部73は、磁気インク文字列4Aの読み取りが失敗した場合に行うべき処理を行う(ステップSA20)。   Next, the character recognition unit 80 determines whether or not the character type has been determined for all the magnetic ink characters whose character type has not been determined by the optical recognition process (step SA19), and for all the magnetic ink characters. If the character type is determined (step SA19: YES), processing to be performed when the magnetic ink character string 4A is successfully read is performed (step SA17). On the other hand, if there is at least one magnetic ink character whose character type has not been determined (step SA19: NO), the host-side control unit 73 performs processing to be performed when reading of the magnetic ink character string 4A fails. (Step SA20).

磁気インク文字列4Aの読み取りが失敗した場合に行うべき処理として、ホスト側制御部73は、制御部71を制御して、裏書きに係る画像の印刷等を行うことなく、第2小切手排出部8に小切手4を搬送する処理を行う。第2小切手排出部8に排出された小切手4は、読み取りが失敗した原因の究明や、再読み取り等の処理が行われる。   As a process to be performed when reading of the magnetic ink character string 4A fails, the host-side control unit 73 controls the control unit 71 to perform the second check discharge unit without printing an image related to the endorsement. The process of conveying the check 4 to 8 is performed. 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.

図11は、ステップSA18の光学認識処理の実行時における文字認識部80の動作を示すフローチャートである。
光学認識処理において、まず、文字認識部80は、表面側コンタクトイメージセンサー52の読み取り結果に基づいて生成された、小切手4の表面の画像を示すデータに基づいて、磁気インク文字列4Aに含まれる磁気インク文字の光学文字認識を実行する(ステップSK1)。
FIG. 11 is a flowchart showing the operation of the character recognition unit 80 when the optical recognition process in step SA18 is executed.
In the optical recognition process, first, the character recognition unit 80 is included in the magnetic ink character string 4A based on data indicating the image of the surface of the check 4 generated based on the reading result of the front-side contact image sensor 52. Optical character recognition of magnetic ink characters is executed (step SK1).

ステップSK1では、例えば、文字認識部80は、小切手4の表面を示す画像データにおいて、磁気インク文字列4Aの画像に対応するデータの範囲を特定すると共に、特定した範囲のデータについて、磁気インク文字ごとに画像データを切り出す。
次いで、文字認識部80は、14種類の文字種類のそれぞれに対応するビットマップパターンと、切り出した磁気インク文字の画像データとを比較することにより、磁気インク文字のそれぞれの文字種類を仮確定する。なお、ステップSK1で確定された文字種類は、最終的な文字種類の確定ではないため、「仮確定」と表現する。
In step SK1, for example, the character recognition unit 80 specifies the range of data corresponding to the image of the magnetic ink character string 4A in the image data indicating the surface of the check 4, and uses the magnetic ink character for the specified range of data. The image data is cut out every time.
Next, the character recognition unit 80 tentatively determines each character type of the magnetic ink character by comparing the bitmap pattern corresponding to each of the 14 character types with the image data of the cut out magnetic ink character. . Note that the character type determined in step SK1 is not final character type determination, and is therefore expressed as “provisional determination”.

次いで、文字認識部80は、ステップSK1の光学文字認識の結果に基づいて、磁気インク文字列4Aに含まれる磁気インク文字の文字数を検出する(ステップSK2)。   Next, the character recognition unit 80 detects the number of magnetic ink characters included in the magnetic ink character string 4A based on the result of optical character recognition in step SK1 (step SK2).

次いで、文字認識部80は、図4のステップSA6で検出した文字数、すなわち、磁気ヘッド54により読み取られた検出信号波形データに基づいて検出された文字数と、ステップSK2で検出された文字数とが一致するか否かを判別する(ステップSK3)。   Next, the character recognition unit 80 matches the number of characters detected in step SA6 in FIG. 4, that is, the number of characters detected based on the detection signal waveform data read by the magnetic head 54, and the number of characters detected in step SK2. It is determined whether or not to perform (step SK3).

文字数が一致しない場合(ステップSK3:NO)、文字認識部80は、磁気インク文字列4Aの読み取りに失敗したと判別し(ステップSK4)、光学認識処理を終了する。これは、以下の理由による。
すなわち、ステップSK5以下の処理は、ステップSK1における光学文字認識処理の結果を利用して、文字種類が確定していない磁気インク文字について、文字種類の確定を試みる処理である。従って、上記文字数が異なっている場合は、検出信号波形データに基づいて切り出した磁気インク文字のそれぞれと、光学的な文字認識により切り出した磁気インク文字のそれぞれとの対応関係について確実性が担保できず、ステップSK1における光学文字認識処理の結果を利用した文字種類の確定を実行できないからである。
If the number of characters does not match (step SK3: NO), the character recognition unit 80 determines that reading of the magnetic ink character string 4A has failed (step SK4), and ends the optical recognition process. This is due to the following reason.
That is, the processing after step SK5 is processing for attempting to determine the character type for the magnetic ink character whose character type has not been determined using the result of the optical character recognition processing at step SK1. Therefore, when the number of characters is different, certainty can be guaranteed for the correspondence between each magnetic ink character cut out based on the detection signal waveform data and each magnetic ink character cut out by optical character recognition. This is because the character type cannot be determined using the result of the optical character recognition process in step SK1.

文字数が一致する場合(ステップSK3:YES)、文字認識部80は、図4のステップSA8において文字種類を確定できないと判別された磁気インク文字の中から1つの磁気インク文字をステップSK6以下の処理を行う対象として特定する(ステップSK5)。ステップSK5以下の処理は、磁気インク文字認識では文字種類が確定できなかった磁気インク文字のそれぞれについて、順番に、行われる。以下、ステップSK5で特定された磁気インク文字を「処理対象文字」というものとする。   When the number of characters matches (step SK3: YES), the character recognition unit 80 processes one magnetic ink character from the magnetic ink characters determined to be unable to determine the character type in step SA8 in FIG. (Step SK5). The processes after step SK5 are sequentially performed for each magnetic ink character whose character type cannot be determined by magnetic ink character recognition. Hereinafter, the magnetic ink character specified in step SK5 is referred to as a “processing target character”.

次いで、文字認識部80は、処理対象文字について、ステップSK1で仮確定された文字種類を取得する(ステップSK6)。
次いで、文字認識部80は、処理対象文字について、ステップSK1で仮確定された文字種類と、上述したステップSA10において第1候補C41とされた文字種類、及び、第2候補C42とされた文字種類のいずれかと、が一致するか否かを判別する(ステップSK7)。
Next, the character recognition unit 80 acquires the character type temporarily determined in step SK1 for the processing target character (step SK6).
Next, the character recognition unit 80 determines the character type temporarily determined in step SK1, the character type determined as the first candidate C41 in step SA10, and the character type determined as the second candidate C42 for the processing target character. It is determined whether or not any of the above matches (step SK7).

一致する場合(ステップSK7:YES)、文字認識部80は、仮確定した文字を、処理対象文字の文字種類として確定し(ステップSK8)、処理手順をステップSK9へ移行する。
一方、一致しない場合(ステップSK7:NO)、文字認識部80は、処理対象文字について、光学文字認識を利用した文字認識によっても文字種類を確定できないと判別し(ステップSK10)、処理手順をステップSK9へ移行する。
If they match (step SK7: YES), the character recognizing unit 80 determines the temporarily determined character as the character type of the processing target character (step SK8), and shifts the processing procedure to step SK9.
On the other hand, if they do not match (step SK7: NO), the character recognition unit 80 determines that the character type of the processing target character cannot be determined even by character recognition using optical character recognition (step SK10), and the processing procedure is stepped. Move to SK9.

ステップSK9において、文字認識部80は、図4のステップSA8において文字種類を確定できないと判別された磁気インク文字の全てが、処理対象文字となったか否かを判別する。全ての磁気インク文字が処理対象文字となっていない場合(ステップSK9:NO)、文字認識部80は、処理手順をステップSK5へ戻す。
一方、全ての磁気インク文字が処理対象文字となった場合(ステップSK9:YES)、文字認識部80は、文字種類を確定できない磁気インク文字が1つでもあるか否か、すなわち、ステップSK10において、文字種類を確定できないと判別された磁気インク文字が1つでも存在するか否かを判別する(ステップSK11)。
In step SK9, the character recognizing unit 80 determines whether or not all the magnetic ink characters determined to be unable to determine the character type in step SA8 in FIG. 4 have been processed. If not all magnetic ink characters are characters to be processed (step SK9: NO), the character recognition unit 80 returns the processing procedure to step SK5.
On the other hand, when all the magnetic ink characters have been processed (step SK9: YES), the character recognition unit 80 determines whether there is even one magnetic ink character whose character type cannot be determined, that is, in step SK10. Then, it is determined whether or not there is even one magnetic ink character determined that the character type cannot be determined (step SK11).

文字種類を確定できなかったものが1つも存在しない場合(ステップSK11:NO)、文字認識部80は、磁気インク文字列4Aの読み取りに成功したと判別し(ステップSK12)、光学認識処理を終了する。
一方、文字種類を確定できなかったものが1つでも存在する場合(ステップSK11:YES)、文字認識部80は、磁気インク文字列4Aの読み取りに失敗したと判別し(ステップSK4)、光学認識処理を終了する。
If there is no character type that cannot be determined (step SK11: NO), the character recognition unit 80 determines that the magnetic ink character string 4A has been successfully read (step SK12), and ends the optical recognition process. To do.
On the other hand, if there is even one character type that cannot be determined (step SK11: YES), the character recognition unit 80 determines that reading of the magnetic ink character string 4A has failed (step SK4), and optical recognition is performed. The process ends.

このように、本実施形態では、ステップSK1の光学文字認識処理において処理対象文字の文字種類を仮確定し、当該仮確定した文字種類が、ステップSA10において第1候補C41とされた文字種類、及び、第2候補C42とされた文字種類のいずれかと一致する場合にのみ、当該仮確定した文字種類を、処理対象文字の文字種類として確定する。これは、以下の理由による。
すなわち、ステップSK1の光学文字認識処理は、小切手4の表面を示す画像データに基づいて、光学文字認識により、磁気インク文字の文字種類を仮確定する。ここで、小切手4の表面には、ペン等でサインが記入されている場合が多く、当該サインが、磁気インク文字列4Aの誤認識の原因となる場合があることが知られている。
これを踏まえ、本実施形態では、磁気的な処理による文字種類の確定ができなかった磁気インク文字について、単純に光学文字認識によって文字種類を確定しない。光学文字認識により仮確定した文字種類が、第1認識フェーズ、及び、第2認識フェーズにおける認識結果から正しい文字種類である蓋然性が最も高いとされた第1候補C41に係る文字種類、及び、正しい文字種類である蓋然性が2番目に高いとされた第2候補C42に係る文字種類のいずれかと一致する場合にのみ、仮確定した文字種類を、処理対象文字の文字種類として確定する。これにより、誤認識を効果的に抑制している。
As described above, in the present embodiment, the character type of the character to be processed is provisionally determined in the optical character recognition process of step SK1, and the character type that has been provisionally determined is the character type that is determined as the first candidate C41 in step SA10, and Only when it matches one of the character types determined as the second candidate C42, the temporarily determined character type is determined as the character type of the processing target character. This is due to the following reason.
That is, in the optical character recognition process in step SK1, the character type of the magnetic ink character is provisionally determined by optical character recognition based on the image data indicating the surface of the check 4. Here, in many cases, a signature is written on the surface of the check 4 with a pen or the like, and it is known that the signature may cause erroneous recognition of the magnetic ink character string 4A.
Based on this, in the present embodiment, the character type is not determined simply by optical character recognition for the magnetic ink character for which the character type cannot be determined by magnetic processing. The character type temporarily determined by the optical character recognition is the character type related to the first candidate C41 that is most likely to be the correct character type from the recognition results in the first recognition phase and the second recognition phase, and is correct. The character type temporarily determined is determined as the character type of the processing target character only when the character type matches with any one of the character types related to the second candidate C42 that is considered to be the second highest in probability. As a result, erroneous recognition is effectively suppressed.

特に、第1認識フェーズ、及び、第2認識フェーズの双方の認識結果から正しい文字種類である蓋然性が最も高いと考えられる第1候補C41、及び、正しい文字種類である蓋然性が2番目に高いと考えられる第2候補C42を選別しており、候補とする文字種類の信頼性が高いといえる。そのため、これらの第1候補C41、及び、第2候補C42を利用して文字種類を確定することにより、誤認識を抑制した信頼性の高い認識結果を得ることができる。   In particular, the first candidate C41, which has the highest probability of being the correct character type from the recognition results of both the first recognition phase and the second recognition phase, and the second highest probability of being the correct character type The possible second candidates C42 are selected, and it can be said that the reliability of the character type as a candidate is high. Therefore, by using these first candidate C41 and second candidate C42 to determine the character type, it is possible to obtain a highly reliable recognition result in which erroneous recognition is suppressed.

なお、磁気インク文字列4Aに含まれる磁気インク文字のそれぞれについて、磁気インク文字認識による文字種類の確定、及び、光学文字認識による文字種類の確定を行い、磁気的な処理によって確定した文字種類と、光学文字認識によって確定した文字種類が一致する場合に、磁気インク文字の文字種類の最終的な確定を行うようにし、磁気インク文字の誤認識の低下を図ることも考えられる。しかしながら、この場合、誤認識は低下するものの、文字種類の確定の成功率(認識率)が低下することが考えられる。本実施形態では、上述した動作を実行するため、誤認識を抑制しつつ、認識率の低下を効果的に防止できる。   For each of the magnetic ink characters included in the magnetic ink character string 4A, the character type determined by magnetic ink character recognition and the character type determined by optical character recognition are determined, and the character type determined by magnetic processing is determined. If the character types determined by optical character recognition match, the final determination of the character type of the magnetic ink character may be performed to reduce the erroneous recognition of the magnetic ink character. However, in this case, it is conceivable that the success rate (recognition rate) of character type determination is reduced, although the erroneous recognition is reduced. In this embodiment, since the operation | movement mentioned above is performed, the fall of a recognition rate can be prevented effectively, suppressing misrecognition.

以上説明したように、本実施形態では、磁気インク文字を異なる方法によって磁気インク文字認識するとして、第1認識フェーズ、及び、第2認識フェーズを備え、これら処理フェーズにおける磁気インク文字認識の結果のそれぞれに基づいて、磁気インク文字が示す文字種類を確定する。
これにより、異なる方法によって磁気インク文字認識する2つの処理フェーズにおける磁気インク文字認識の結果に基づいて、多面的に磁気インク文字が示す文字種類の認識を行うことができ、磁気インク文字の誤認識を抑制することが可能となる。
As described above, this embodiment includes the first recognition phase and the second recognition phase for recognizing magnetic ink characters by different methods, and the results of magnetic ink character recognition in these processing phases. Based on each, the character type which a magnetic ink character shows is decided.
Thereby, based on the results of magnetic ink character recognition in the two processing phases for recognizing magnetic ink characters by different methods, the character type indicated by the magnetic ink characters can be recognized in many ways, and erroneous recognition of magnetic ink characters can be performed. Can be suppressed.

本実施形態では、第1認識フェーズにおいて、磁気インク文字を読み取って得られる検出波形と、規格で定められた複数の文字種類の基準波形のそれぞれを所定の距離スライドさせた波形との差異に応じた差異量を算出し、ずれを反映して算出した差異量に基づいて、磁気インク文字の文字種類の候補としてパス2用第1候補C21、及び、パス2用第2候補C22を選別する。
これにより、理想的な波形に対して検出波形の位置がずれている場合に、そのずれの影響を抑えて磁気インク文字の認識を行うことができる。
In the present embodiment, in the first recognition phase, according to the difference between the detected waveform obtained by reading the magnetic ink character and the waveform obtained by sliding each of the reference waveforms of a plurality of character types defined in the standard by a predetermined distance. The first difference C21 for pass 2 and the second candidate C22 for pass 2 are selected as candidates for the character type of the magnetic ink character based on the difference amount calculated by reflecting the difference.
Thereby, when the position of the detected waveform is deviated from the ideal waveform, the magnetic ink character can be recognized while suppressing the influence of the deviation.

また、本実施形態では、第2認識フェーズにおいて、磁気インク文字を読み取って得られる検出波形と、規格で定められた複数の文字種類の基準波形のそれぞれを所定の距離伸縮させた波形との差異に応じた差異量を算出し、伸び縮みを反映して算出した差異量に基づいて、磁気インク文字の文字種類の候補としてパス3用第1候補C31、及び、パス3用第2候補C32を選別する。
これにより、検出波形に伸び縮みが生じている場合に、その伸び縮みの影響を抑えて磁気インク文字の認識を行うことができる。
In the present embodiment, in the second recognition phase, a difference between a detection waveform obtained by reading a magnetic ink character and a waveform obtained by expanding and contracting each of a plurality of character type reference waveforms defined by the standard by a predetermined distance. Based on the difference amount calculated by reflecting the expansion and contraction, the first candidate C31 for pass 3 and the second candidate C32 for pass 3 are selected as the character type candidates for the magnetic ink characters. Sort out.
Thereby, when expansion / contraction has occurred in the detected waveform, the influence of the expansion / contraction can be suppressed and magnetic ink characters can be recognized.

さらに、本実施形態では、第2認識フェーズまでで処理対象文字の文字種類を確定できなかった場合、ステップSA9において、第1認識フェーズで選別されたパス2用第1候補C21、及び、パス2用第2候補C22のそれぞれの差異量と、第2認識フェーズで選別されたパス3用第1候補C31、及び、パス3用第2候補C32のそれぞれの差異量とを比較する。そして、ステップSA10では、ステップSA9における比較の結果から、差異量が小さい順に、磁気インク文字の文字種類の第1候補C41、及び、第2候補C42を決定する。
そのため、磁気インク文字認識により処理対象文字の文字種類を確定できない場合でも、第1認識フェーズ、及び、第2認識フェーズの双方の認識結果から正しい文字種類である蓋然性が最も高いと考えられる第1候補C41、及び、正しい文字種類である蓋然性が2番目に高いと考えられる第2候補C42が選別される。これにより、1つの処理フェーズのみの結果から文字種類の候補を選別する場合に比べて、より確実性が高い候補が得られるので、磁気インク文字の誤認識を効果的に抑制できる。
Furthermore, in this embodiment, when the character type of the character to be processed cannot be determined until the second recognition phase, in step SA9, the first candidate C21 for pass 2 selected in the first recognition phase and the pass 2 Each difference amount of the second candidate C22 for use is compared with each difference amount of the first candidate C31 for pass 3 and the second candidate C32 for pass 3 selected in the second recognition phase. In step SA10, the first candidate C41 and the second candidate C42 of the character type of the magnetic ink character are determined in ascending order of the difference amount from the comparison result in step SA9.
Therefore, even when the character type of the character to be processed cannot be determined by magnetic ink character recognition, it is considered that the probability of being the correct character type is the highest from the recognition results in both the first recognition phase and the second recognition phase. A candidate C41 and a second candidate C42 that is considered to have the second highest probability of being the correct character type are selected. Thereby, since a candidate with higher certainty can be obtained as compared with the case of selecting character type candidates from the result of only one processing phase, erroneous recognition of magnetic ink characters can be effectively suppressed.

(第2の実施形態)
次に、第2の実施形態に係る記録媒体処理装置、記録媒体処理装置の制御方法、及び、プログラムを説明する。
(Second Embodiment)
Next, a recording medium processing apparatus, a control method for the recording medium processing apparatus, and a program according to the second embodiment will be described.

第2の実施形態に係る記録媒体処理装置、記録媒体処理装置の制御方法、及び、プログラムは、第1の実施形態に係る記録媒体処理装置、記録媒体処理装置の制御方法、及び、プログラムに対して、ステップSA11,SA12,SA13,SA14の処理をさらに含む点が異なっているが、その他の構成はほぼ同じである。図18は、第2の実施形態に係る文字認識部80の動作を示すフローチャートである。なお、第1の実施形態と共通する構成については、同一の符号を付しその説明を省略する。   The recording medium processing apparatus, the recording medium processing apparatus control method, and the program according to the second embodiment are the same as the recording medium processing apparatus, the recording medium processing apparatus control method, and the program according to the first embodiment. Thus, the difference is that the processes of steps SA11, SA12, SA13, and SA14 are further included, but the other configurations are substantially the same. FIG. 18 is a flowchart showing the operation of the character recognition unit 80 according to the second embodiment. In addition, about the structure which is common in 1st Embodiment, the same code | symbol is attached | subjected and the description is abbreviate | omitted.

第2の実施形態では、図18に示すステップSA9において、第1認識フェーズで選別されたパス2用第1候補C21、及び、パス2用第2候補C22のそれぞれの差異量と、第2認識フェーズで選別されたパス3用第1候補C31、及び、パス3用第2候補C32のそれぞれの差異量とを比較する。   In the second embodiment, the difference between the first candidate C21 for pass 2 and the second candidate C22 for pass 2 selected in the first recognition phase in step SA9 shown in FIG. The difference amounts of the first candidate C31 for pass 3 selected in the phase and the second candidate C32 for pass 3 are compared.

ステップSA9の比較において、第1認識フェーズで選別されたパス2用第1候補C21の差異量が、第2認識フェーズで選別されたパス3用第1候補C31の差異量よりも小さい場合(ステップSA11:YES)、文字認識部80は、基準波形データの波形を、例えば、パス2用第1候補C21についてスライドさせた量(スライド量)だけスライドさせることにより、第1認識フェーズでのスライド量を反映させる(ステップSA12)。
なお、第1認識フェーズにおいて差異量を算出した際の、ステップSD2における基準波形データの波形のスライド量は保存されているものとする。
In the comparison of step SA9, when the difference amount of the first candidate C21 for pass 2 selected in the first recognition phase is smaller than the difference amount of the first candidate C31 for pass 3 selected in the second recognition phase (step (SA11: YES), the character recognition unit 80 slides the waveform of the reference waveform data by, for example, the amount (slide amount) slid with respect to the first candidate C21 for pass 2 to thereby slide the first recognition phase. Is reflected (step SA12).
It is assumed that the slide amount of the waveform of the reference waveform data in step SD2 when the difference amount is calculated in the first recognition phase is stored.

次いで、基準波形データの波形に第1認識フェーズでのスライド量を反映させた状態で、第2認識フェーズを再度実行する(ステップSA13)。なお、2回目の第2認識フェーズ(ステップSA13)における処理は、第1認識フェーズでのスライド量を反映させて行うこと以外は、1回目の第2認識フェーズ(ステップSA7)における処理と同じである。   Next, the second recognition phase is executed again in a state in which the slide amount in the first recognition phase is reflected in the waveform of the reference waveform data (step SA13). The process in the second recognition phase (step SA13) for the second time is the same as the process in the second recognition phase (step SA7) for the first time except that the process is performed by reflecting the slide amount in the first recognition phase. is there.

2回目の第2認識フェーズ(ステップSA13)の実行後、文字認識部80は、処理対象文字の文字種類が確定したか否かを判別し(ステップSA14)、確定できた場合は(ステップSA14:YES)、処理手順をステップSA5へ移行する。   After execution of the second recognition phase (step SA13) for the second time, the character recognition unit 80 determines whether or not the character type of the character to be processed has been confirmed (step SA14), and if it can be confirmed (step SA14: YES), the process proceeds to step SA5.

確定できなかった場合は(ステップSA14:NO)、2回目の第2認識フェーズで新たに選別されたパス3用第1候補C31、及び、パス3用第2候補C32のそれぞれの差異量と、第1認識フェーズで選別されたパス2用第1候補C21、及び、パス2用第2候補C22のそれぞれの差異量とを比較する。
差異量の比較の結果、4つの候補の中で差異量が最も小さかった候補の文字種類を、磁気インク文字認識における第1候補C41と決定し、差異量が2番目に小さかった文字種類を、磁気インク文字認識における第2候補C42と決定して(ステップSA10)、処理手順をステップSA5へ移行する。
ただし、差異量が2番目に小さかった候補の文字種類が差異量が最も小さかった候補の文字種類と同じ場合は、その次に差異量が小さかった文字種類を、磁気インク文字認識における第2候補C42とする。
If it cannot be determined (step SA14: NO), the difference amounts of the first candidate C31 for pass 3 and the second candidate C32 for pass 3 newly selected in the second second recognition phase, The difference amounts of the first candidate C21 for pass 2 and the second candidate C22 for pass 2 selected in the first recognition phase are compared.
As a result of the comparison of the difference amounts, the character type of the candidate having the smallest difference amount among the four candidates is determined as the first candidate C41 in the magnetic ink character recognition, and the character type having the second smallest difference amount is determined. It determines as the 2nd candidate C42 in magnetic ink character recognition (step SA10), and transfers a process sequence to step SA5.
However, if the character type of the candidate having the second smallest amount of difference is the same as the character type of the candidate having the smallest amount of difference, the character type having the next smallest amount of difference is designated as the second candidate in magnetic ink character recognition. C42.

このように、ステップSA9の比較において、第1認識フェーズのパス2用第1候補C21の差異量が第2認識フェーズのパス3用第1候補C31の差異量よりも小さい場合に、第1認識フェーズでのスライド量を反映させて第2認識フェーズを再度実行するのは、以下の理由による。
すなわち、第1認識フェーズでパス2用第1候補C21として選別された文字種類の差異量が、第2認識フェーズでパス3用第1候補C31として選別された文字種類の差異量よりも小さい場合は、ステップSA1での文字の切り出し位置のずれ等により検出波形の位置がずれている可能性が高いと考えられる。そのような場合に、波形の位置がずれたままの状態(スライド量を反映しない状態)で基準波形に伸び縮みを反映して差異量の算出を行っても、差異量が小さくならない可能性が高い。
そこで、このような場合に、第1認識フェーズでのスライド量だけ基準波形データの波形をスライドさせた上で2回目の第2認識フェーズを実行すれば、検出波形の位置のずれが反映され、さらに波形の伸び縮みが反映されるので、検出波形の位置のずれ及び伸び縮みの影響を抑えて、磁気インク文字の認識を行うことができる。これにより、認識率を向上できる。
Thus, in the comparison of step SA9, when the difference amount of the first candidate C21 for pass 2 in the first recognition phase is smaller than the difference amount of the first candidate C31 for pass 3 in the second recognition phase, the first recognition The reason why the second recognition phase is executed again by reflecting the slide amount in the phase is as follows.
That is, the difference amount of the character type selected as the first candidate C21 for pass 2 in the first recognition phase is smaller than the difference amount of the character type selected as the first candidate C31 for pass 3 in the second recognition phase. It is considered that there is a high possibility that the position of the detected waveform is shifted due to the shift of the character cutout position in step SA1. In such a case, even if the difference amount is calculated by reflecting the expansion / contraction on the reference waveform in a state where the position of the waveform remains shifted (a state where the slide amount is not reflected), the difference amount may not be reduced. high.
Therefore, in such a case, if the second recognition phase is executed for the second time after the waveform of the reference waveform data is slid by the slide amount in the first recognition phase, the displacement of the position of the detected waveform is reflected, Furthermore, since the expansion / contraction of the waveform is reflected, it is possible to recognize the magnetic ink character while suppressing the influence of the position shift of the detection waveform and the expansion / contraction. Thereby, a recognition rate can be improved.

なお、第1認識フェーズでパス2用第1候補C21として選別された文字種類の差異量が、第2認識フェーズでパス3用第1候補C31として選別された文字種類の差異量よりも大きい場合は、検出波形の位置がずれている可能性が高いとはいえない。このような場合に、第1認識フェーズでのスライド量を反映させて第2認識フェーズを再度実行すると、かえって検出波形と基準波形との間の差異量が大きくなってしまうおそれがある。
したがって、本実施形態では、パス2用第1候補C21の差異量がパス3用第1候補C31の差異量よりも小さい場合にのみ、第1認識フェーズでのスライド量を反映させて第2認識フェーズを再度実行することとしている。
The difference amount of the character type selected as the first candidate C21 for pass 2 in the first recognition phase is larger than the difference amount of the character type selected as the first candidate C31 for pass 3 in the second recognition phase. However, it cannot be said that there is a high possibility that the position of the detected waveform is shifted. In such a case, if the slide amount in the first recognition phase is reflected and the second recognition phase is executed again, the difference amount between the detected waveform and the reference waveform may be increased.
Therefore, in the present embodiment, the second recognition is performed by reflecting the slide amount in the first recognition phase only when the difference amount of the first candidate C21 for pass 2 is smaller than the difference amount of the first candidate C31 for pass 3. The phase is to be executed again.

(第3の実施形態)
次に、第3の実施形態に係る記録媒体処理装置、記録媒体処理装置の制御方法、及び、プログラムを説明する。
(Third embodiment)
Next, a recording medium processing device, a control method for the recording medium processing device, and a program according to a third embodiment will be described.

第3の実施形態に係る記録媒体処理装置、記録媒体処理装置の制御方法、及び、プログラムは、第2の実施形態に対して、第1認識フェーズで選別されたパス2用第1候補C21、及び、パス2用第2候補C22が「2」及び「5」である場合には、ステップSA11,SA12,SA13,SA14の処理を実行しない点が異なっているが、その他の構成はほぼ同じである。図19は、第3の実施形態に係る文字認識部80の動作を示すフローチャートである。なお、第2の実施形態と共通する構成については、同一の符号を付しその説明を省略する。   The recording medium processing apparatus, the control method for the recording medium processing apparatus, and the program according to the third embodiment are the first candidate C21 for pass 2 selected in the first recognition phase with respect to the second embodiment, And when the second candidate C22 for path 2 is “2” and “5”, it is different in that the processes of steps SA11, SA12, SA13, and SA14 are not executed, but the other configurations are almost the same. is there. FIG. 19 is a flowchart showing the operation of the character recognition unit 80 according to the third embodiment. In addition, about the structure which is common in 2nd Embodiment, the same code | symbol is attached | subjected and the description is abbreviate | omitted.

第3の実施形態では、図19に示すステップSA9において、第1認識フェーズで選別されたパス2用第1候補C21、及び、パス2用第2候補C22の文字種類が、「2」及び「5」であるかを判別する(ステップSA15)。   In the third embodiment, the character types of the first candidate C21 for pass 2 and the second candidate C22 for pass 2 selected in the first recognition phase in step SA9 shown in FIG. 19 are “2” and “ 5 ”(step SA15).

パス2用第1候補C21、及び、パス2用第2候補C22のいずれか一方が「2」及び「5」のいずれか一方であり、かつ、パス2用第1候補C21、及び、パス2用第2候補C22の他方が「2」及び「5」の他方である場合(ステップSA15:YES)、ステップSA11,SA12,SA13,SA14の処理を実行しない。この場合、4つの候補の中で差異量が最も小さかった候補の文字種類を、磁気インク文字認識における第1候補C41と決定し、差異量が2番目に小さかった文字種類を、磁気インク文字認識における第2候補C42と決定して(ステップSA10)、処理手順をステップSA5へ移行する。   One of the second candidate C21 for path 2 and the second candidate C22 for path 2 is either one of “2” and “5”, and the first candidate C21 for path 2 and path 2 When the other second candidate C22 is the other of “2” and “5” (step SA15: YES), the processes of steps SA11, SA12, SA13, and SA14 are not executed. In this case, the candidate character type having the smallest difference amount among the four candidates is determined as the first candidate C41 in magnetic ink character recognition, and the character type having the second smallest difference amount is determined as the magnetic ink character recognition. Is determined as the second candidate C42 (step SA10), and the processing procedure proceeds to step SA5.

一方、パス2用第1候補C21、及び、パス2用第2候補C22が「2」及び「5」以外である場合(ステップSA15:NO)、第2の実施形態と同様に、ステップSA11,SA12,SA13,SA14の処理を実行する。   On the other hand, when the first candidate for path 2 C21 and the second candidate for path 2 C22 are other than “2” and “5” (step SA15: NO), as in the second embodiment, steps SA11, The processing of SA12, SA13, and SA14 is executed.

パス2用第1候補C21、及び、パス2用第2候補C22が「2」及び「5」である場合に、ステップSA11,SA12,SA13,SA14の処理を実行しない理由を以下に説明する。図20(A)はE−13Bフォントにおける文字種類「2」に対応する基準波形データの内容を模式的に示す図であり、図20(B)はE−13Bフォントにおける文字種類「5」に対応する基準波形データの内容を模式的に示す図である。   The reason why the processes of steps SA11, SA12, SA13, and SA14 are not executed when the first candidate C21 for path 2 and the second candidate C22 for path 2 are “2” and “5” will be described below. FIG. 20A is a diagram schematically showing the content of the reference waveform data corresponding to the character type “2” in the E-13B font, and FIG. 20B shows the character type “5” in the E-13B font. It is a figure which shows typically the content of corresponding reference waveform data.

図20(A),(B)に示すように、E−13Bフォントにおける文字種類「2」の文字波形データと文字種類「5」の文字波形データとは互いに類似している。より具体的には、図20(A)に示す「2」の文字波形データにおける一端側の1サンプリング単位目から28サンプリング単位目の部分W2aと、図20(B)に示す「5」の文字波形データにおける一端側の1サンプリング単位目から28サンプリング単位目の部分W5aとでは、波形及びピーク位置がほぼ同じである。
また、図20(A)に示す「2」の文字波形データにおける他端側の29サンプリング単位目から57サンプリング単位目の部分W2bと、図20(B)に示す「5」の文字波形データにおける他端側の36サンプリング単位目から64サンプリング単位目の部分W5bとでは、波形がほぼ同じである。そして、部分W2bのピーク位置と部分W5bのピーク位置とは7サンプリング単位程度ずれているが、部分W5bを図20(B)におけるX軸方向左方に7サンプリング単位分スライドさせると、部分W2bと部分W5bとで波形及びピーク位置はほぼ同じとなる。
As shown in FIGS. 20A and 20B, the character waveform data of the character type “2” and the character waveform data of the character type “5” in the E-13B font are similar to each other. More specifically, the portion W2a from the first sampling unit to the 28th sampling unit on the one end side in the character waveform data “2” shown in FIG. 20A and the character “5” shown in FIG. In the waveform data, the waveform and the peak position are substantially the same in the portion W5a of the first sampling unit to the twenty-eighth sampling unit on one end side.
Further, in the character waveform data “2” shown in FIG. 20A, the portion W2b from the 29th sampling unit to the 57th sampling unit on the other end side and the character waveform data “5” shown in FIG. The waveform is substantially the same in the portion W5b from the 36th sampling unit to the 64th sampling unit on the other end side. The peak position of the portion W2b and the peak position of the portion W5b are shifted by about 7 sampling units. When the portion W5b is slid to the left in the X-axis direction in FIG. 20B by 7 sampling units, the portion W2b The waveform and the peak position are substantially the same in the portion W5b.

上述した通り、第1認識フェーズの第2認識パス(ステップSD2)では、基準波形データの波形全体を、X軸方向左方へ7サンプリング単位分スライドさせて差異量を算出するとともに、X軸方向右方へ7サンプリング単位分スライドさせて差異量を算出する。そうすると、比較対象文字種類が「2」又は「5」である場合、基準波形データの波形を7サンプリング単位分スライドさせると、基準波形データの文字種類が「2」及び「5」のいずれの場合でも、処理対象文字の文字波形データの波形に対して、一端側の部分W2aと部分W5aと、又は、他端側の部分W2bと部分W5bと、のいずれかが重なるので、差異量は小さくなる。
そのため、文字種類の「2」と「5」とを識別する場合、第1認識フェーズにおいて波形のずれを反映して差異量を比較しても確実性の高い選別ができるとはいい難く、第1認識フェーズにおけるスライド量を反映して第2認識フェーズを再度実行した場合、かえって誤認識を招くおそれがある。
As described above, in the second recognition pass (step SD2) of the first recognition phase, the entire waveform of the reference waveform data is slid to the left by 7 sampling units in the X axis direction, and the difference amount is calculated. Slide to the right for 7 sampling units to calculate the difference. Then, when the character type of the comparison target is “2” or “5”, when the waveform of the reference waveform data is slid by 7 sampling units, the character type of the reference waveform data is “2” or “5”. However, since either the portion W2a and the portion W5a on the one end side or the portion W2b and the portion W5b on the other end side overlap with the waveform of the character waveform data of the character to be processed, the difference amount becomes small. .
Therefore, when discriminating between the character types “2” and “5”, it is difficult to say that sorting with high certainty can be performed even if the amount of difference is compared in the first recognition phase, reflecting the waveform shift. If the second recognition phase is executed again by reflecting the slide amount in the first recognition phase, there is a risk of erroneous recognition.

本実施形態では、第1認識フェーズで選別されたパス2用第1候補C21、及び、パス2用第2候補C22が「2」及び「5」である場合は、ステップSA11,SA12,SA13,SA14の処理を実行せず、第1候補C41と第2候補C42とを決定するので、文字種類の「2」と「5」との間で誤認識、あるいは、認識不可能が生じることを防止できる。   In the present embodiment, when the first candidate for path 2 C21 and the second candidate for path 2 C22 selected in the first recognition phase are “2” and “5”, steps SA11, SA12, SA13, Since the first candidate C41 and the second candidate C42 are determined without executing the process of SA14, erroneous recognition or inability to recognize between the character types “2” and “5” is prevented. it can.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形及び応用が可能である。   The above-described embodiment is merely an aspect of the present invention, and can be arbitrarily modified and applied within the scope of the present invention.

例えば、上述した実施形態では、ホストコンピューター70が文字認識部80を備え、磁気インク文字の認識を実行する構成であったが、この文字認識部80の機能を、小切手読取装置1に持たせるようにし、小切手読取装置1が単独で、磁気インク文字の認識に係る各種処理を実行する構成としてもよい。この場合、小切手読取装置1が、記録媒体処理装置として機能する。   For example, in the above-described embodiment, the host computer 70 includes the character recognition unit 80 and executes the recognition of the magnetic ink characters. However, the check reader 1 has the function of the character recognition unit 80. In addition, the check reading device 1 may be configured to execute various processes related to the recognition of the magnetic ink characters alone. In this case, the check reading device 1 functions as a recording medium processing device.

1…小切手読取装置(記録媒体処理装置)、4…小切手(記録媒体)、4A…磁気インク文字列、54…磁気ヘッド(磁気読取部)、70…ホストコンピューター(記録媒体処理装置)、71…制御部、73…ホスト側制御部。   DESCRIPTION OF SYMBOLS 1 ... Check reading apparatus (recording medium processing apparatus), 4 ... Check (recording medium), 4A ... Magnetic ink character string, 54 ... Magnetic head (magnetic reading part), 70 ... Host computer (recording medium processing apparatus), 71 ... Control unit 73... Host side control unit.

Claims (6)

記録媒体に記録された磁気インク文字を磁気的に読み取る読取部と、
規格で定められた複数の文字種類の基準波形を記憶する記憶部と、
前記読取部と前記記憶部とを制御する制御部と、を備え、
前記制御部は、
前記読取部が前記磁気インク文字を読み取って得られる検出波形と、前記記憶部に記憶された複数の文字種類の基準波形のそれぞれを所定の距離スライドさせた波形と、の差異に応じた差異量を算出し、算出した前記差異量に基づいて前記磁気インク文字の文字種類の候補を選別する第1認識フェーズと、
前記検出波形と、前記複数の文字種類の基準波形のそれぞれを所定の距離伸縮させた波形と、の差異に応じた差異量を算出し、算出した前記差異量に基づいて前記磁気インク文字の文字種類の候補を選別する第2認識フェーズと、を実行し、
前記第1認識フェーズで前記候補として選別された文字種類の前記差異量と、前記第2認識フェーズで前記候補として選別された文字種類の前記差異量と、を比較して、前記磁気インク文字の文字種類の候補を決定することを特徴とする記録媒体処理装置。
A reading unit that magnetically reads magnetic ink characters recorded on a recording medium;
A storage unit for storing a reference waveform of a plurality of character types defined in the standard;
A control unit for controlling the reading unit and the storage unit,
The controller is
A difference amount corresponding to a difference between a detection waveform obtained by reading the magnetic ink character by the reading unit and a waveform obtained by sliding a plurality of character type reference waveforms stored in the storage unit by a predetermined distance And a first recognition phase for selecting character type candidates for the magnetic ink characters based on the calculated difference amount;
A difference amount according to a difference between the detected waveform and a waveform obtained by expanding and contracting each of the plurality of character type reference waveforms by a predetermined distance is calculated, and the character of the magnetic ink character is calculated based on the calculated difference amount. Performing a second recognition phase for selecting candidate types,
The difference amount of the character type selected as the candidate in the first recognition phase and the difference amount of the character type selected as the candidate in the second recognition phase are compared, and the magnetic ink character A recording medium processing apparatus for determining a character type candidate.
前記制御部は、
前記第1認識フェーズ及び前記第2認識フェーズのそれぞれでは、算出した前記差異量が小さい順に、少なくとも前記磁気インク文字の文字種類の第1候補、及び、第2候補を選別し、
前記第1認識フェーズで前記第1候補、及び、前記第2候補として選別された文字種類のそれぞれの前記差異量と、前記第2認識フェーズで前記第1候補、及び、前記第2候補として選別された文字種類のそれぞれの前記差異量と、を比較して、前記差異量が小さい順に、前記磁気インク文字の文字種類の第1候補、及び、第2候補を決定することを特徴とする請求項1に記載の記録媒体処理装置。
The controller is
In each of the first recognition phase and the second recognition phase, at least a first candidate and a second candidate of the character type of the magnetic ink character are selected in ascending order of the calculated difference amount,
The difference amount of each character type selected as the first candidate and the second candidate in the first recognition phase, and the first candidate and the second candidate in the second recognition phase The first and second candidates for the character type of the magnetic ink character are determined in order of increasing difference. Item 8. A recording medium processing apparatus according to Item 1.
前記制御部は、
前記第1認識フェーズで前記第1候補として選別された文字種類の前記差異量が、前記第2認識フェーズで前記第1候補として選別された文字種類の前記差異量よりも小さい場合は、前記複数の文字種類の基準波形のそれぞれを前記第1認識フェーズでスライドさせた距離だけスライドさせて、2回目の前記第2認識フェーズを実行し、
前記2回目の第2認識フェーズで第1候補、及び、第2候補として選別された文字種類のそれぞれの前記差異量と、前記第1認識フェーズで前記第1候補、及び、前記第2候補として選別された文字種類のそれぞれの前記差異量と、を比較して、前記差異量が小さい順に、前記磁気インク文字の文字種類の第1候補、及び、第2候補を決定することを特徴とする請求項2に記載の記録媒体処理装置。
The controller is
When the difference amount of the character type selected as the first candidate in the first recognition phase is smaller than the difference amount of the character type selected as the first candidate in the second recognition phase, the plurality of differences Each of the reference waveforms of the character types is slid by the distance slid in the first recognition phase, and the second recognition phase is executed for the second time.
The difference amount of each character type selected as the first candidate and the second candidate in the second recognition phase of the second time, and the first candidate and the second candidate in the first recognition phase The difference amount of each of the selected character types is compared, and the first candidate and the second candidate of the character type of the magnetic ink character are determined in ascending order of the difference amount. The recording medium processing apparatus according to claim 2.
前記2回目の第2認識フェーズは、前記磁気インク文字のフォントがE−13Bフォントであって、前記第1認識フェーズで前記第1候補として選別された文字種類、及び、前記第2候補として選別された文字種類が「2」及び「5」である場合以外に実行することを特徴とする請求項3に記載の記録媒体処理装置。   In the second recognition phase for the second time, the font of the magnetic ink character is an E-13B font, the character type selected as the first candidate in the first recognition phase, and the selection as the second candidate The recording medium processing apparatus according to claim 3, wherein the recording medium processing apparatus is executed except when the character types are “2” and “5”. 記録媒体に記録された磁気インク文字を磁気的に読み取る読取部を備えた記録媒体処理装置の制御方法であって、
前記読取部が前記磁気インク文字を読み取って得られる検出波形と、規格で定められた複数の文字種類の基準波形のそれぞれを所定の距離スライドさせた波形と、の差異に応じた差異量を算出し、算出した前記差異量に基づいて前記磁気インク文字の文字種類の候補を選別する第1認識フェーズと、
前記検出波形と、前記複数の文字種類の基準波形のそれぞれを所定の距離伸縮させた波形と、の差異に応じた差異量を算出し、算出した前記差異量に基づいて前記磁気インク文字の文字種類の候補を選別する第2認識フェーズと、を実行し、
前記第1認識フェーズで前記候補として選別された文字種類の前記差異量と、前記第2認識フェーズで前記候補として選別された文字種類の前記差異量と、を比較して、前記磁気インク文字の文字種類の候補を決定することを特徴とする記録媒体処理装置の制御方法。
A control method of a recording medium processing apparatus including a reading unit that magnetically reads magnetic ink characters recorded on a recording medium,
Calculates the difference amount according to the difference between the detection waveform obtained by the reading unit reading the magnetic ink characters and the waveform obtained by sliding each of the reference waveforms of a plurality of character types defined by the standard by a predetermined distance And a first recognition phase for selecting character type candidates of the magnetic ink characters based on the calculated difference amount;
A difference amount according to a difference between the detected waveform and a waveform obtained by expanding and contracting each of the plurality of character type reference waveforms by a predetermined distance is calculated, and the character of the magnetic ink character is calculated based on the calculated difference amount. Performing a second recognition phase for selecting candidate types,
The difference amount of the character type selected as the candidate in the first recognition phase and the difference amount of the character type selected as the candidate in the second recognition phase are compared, and the magnetic ink character A control method for a recording medium processing apparatus, wherein a character type candidate is determined.
記録媒体に記録された磁気インク文字を磁気的に読み取る読取部を備えた記録媒体処理装置の各部を制御する制御部により実行されるプログラムであって、
前記制御部を、
前記磁気インク文字を読み取って得られる検出波形と、規格で定められた複数の文字種類の基準波形のそれぞれを所定の距離スライドさせた波形と、の差異に応じた差異量を算出し、算出した前記差異量に基づいて前記磁気インク文字の文字種類の候補を選別する第1認識フェーズと、
前記検出波形と、前記複数の文字種類の基準波形のそれぞれを所定の距離伸縮させた波形と、の差異に応じた差異量を算出し、算出した前記差異量に基づいて前記磁気インク文字の文字種類の候補を選別する第2認識フェーズと、を実行し、
前記第1認識フェーズで前記候補として選別された文字種類の前記差異量と、前記第2認識フェーズで前記候補として選別された文字種類の前記差異量と、を比較して、前記磁気インク文字の文字種類の候補を決定する手段として機能させることを特徴とするプログラム。
A program executed by a control unit that controls each unit of a recording medium processing apparatus including a reading unit that magnetically reads magnetic ink characters recorded on a recording medium,
The control unit
A difference amount corresponding to a difference between a detection waveform obtained by reading the magnetic ink character and a waveform obtained by sliding a reference waveform of a plurality of character types determined by the standard by a predetermined distance is calculated and calculated. A first recognition phase for selecting character type candidates for the magnetic ink character based on the difference amount;
A difference amount according to a difference between the detected waveform and a waveform obtained by expanding and contracting each of the plurality of character type reference waveforms by a predetermined distance is calculated, and the character of the magnetic ink character is calculated based on the calculated difference amount. Performing a second recognition phase for selecting candidate types,
The difference amount of the character type selected as the candidate in the first recognition phase and the difference amount of the character type selected as the candidate in the second recognition phase are compared, and the magnetic ink character A program which functions as means for determining a character type candidate.
JP2011036811A 2011-02-23 2011-02-23 Recording medium processing apparatus, and method and program for controlling recording medium processing apparatus Withdrawn JP2012174093A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011036811A JP2012174093A (en) 2011-02-23 2011-02-23 Recording medium processing apparatus, and method and program for controlling recording medium processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011036811A JP2012174093A (en) 2011-02-23 2011-02-23 Recording medium processing apparatus, and method and program for controlling recording medium processing apparatus

Publications (1)

Publication Number Publication Date
JP2012174093A true JP2012174093A (en) 2012-09-10

Family

ID=46976936

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011036811A Withdrawn JP2012174093A (en) 2011-02-23 2011-02-23 Recording medium processing apparatus, and method and program for controlling recording medium processing apparatus

Country Status (1)

Country Link
JP (1) JP2012174093A (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
US7980468B2 (en) Processing method and apparatus for recording media having printed magnetic ink characters
KR101685473B1 (en) Image processing apparatus and image processing method
JP2012174093A (en) Recording medium processing apparatus, and method and program for controlling recording medium processing apparatus
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
JPH0789363B2 (en) Character recognition device
JP2012168837A (en) Recording medium processor, control method of recording medium processor, and program
JP2008305187A (en) Information processing device, information processing method, and program
JP2012198852A (en) Recording medium processor, control method thereof and program
JP2012185762A (en) Recording medium processor, control method of recording medium processor, and program
JP2012243063A (en) Recording medium processor, control method for recording medium processor and program
JP2012221276A (en) Recording medium processor, control method of the same and program
JP2012252560A (en) Recording medium processor, control method of the same and program
JP3092576B2 (en) Character recognition device
US9031309B2 (en) Recording media processing device, control method of a recording media processing device, and storage medium
US9576211B2 (en) Device, method, and storage medium for magnetic ink character peak detection and recognition
JP2013025350A (en) Recording medium processing device, control method of the same, and program
JP2012159912A (en) Image processing device and control method of image processing device
JP2013020414A (en) Recording medium processor, control method of the same and program
US9129175B2 (en) Recording media processing device, control method of a recording media processing device, and computer-readable recording medium
JP2007280385A (en) Pattern matching processing method and device
JP2017199326A (en) Character reading device
US9047530B2 (en) Recording media processing device, control method of a recording media processing device, and computer-readable recording medium storing a program
JP4136257B2 (en) Character recognition device, character recognition method, and storage 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: 20140513