JP6555751B2 - Banknote processing apparatus and banknote processing method - Google Patents

Banknote processing apparatus and banknote processing method Download PDF

Info

Publication number
JP6555751B2
JP6555751B2 JP2015232185A JP2015232185A JP6555751B2 JP 6555751 B2 JP6555751 B2 JP 6555751B2 JP 2015232185 A JP2015232185 A JP 2015232185A JP 2015232185 A JP2015232185 A JP 2015232185A JP 6555751 B2 JP6555751 B2 JP 6555751B2
Authority
JP
Japan
Prior art keywords
serial number
banknote
template
character
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2015232185A
Other languages
Japanese (ja)
Other versions
JP2017097785A (en
Inventor
了介 南
了介 南
邦広 漁
邦広 漁
智穂 長谷川
智穂 長谷川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Glory Ltd
Original Assignee
Glory Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Glory Ltd filed Critical Glory Ltd
Priority to JP2015232185A priority Critical patent/JP6555751B2/en
Publication of JP2017097785A publication Critical patent/JP2017097785A/en
Application granted granted Critical
Publication of JP6555751B2 publication Critical patent/JP6555751B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

この発明は、紙幣の記番号を読み取る紙幣処理装置及び紙幣処理方法に関する。   The present invention relates to a banknote processing apparatus and a banknote processing method for reading a serial number of a banknote.

従来、紙幣から記番号を読み取る紙幣処理装置が利用されている。同じ種類の紙幣であっても、各紙幣を記番号に基づいて区別することができるので、各紙幣から読み取った記番号を紙幣処理に利用することができる。例えば、特許文献1には、紙幣から読み取った記番号に含まれる情報から紙幣の製造工場や製造時期を認識して該紙幣の特徴を特定し、特定した特徴に基づいて真偽識別処理を行う方法が開示されている。   Conventionally, banknote processing apparatuses that read serial numbers from banknotes have been used. Even if it is the same kind of banknote, since each banknote can be distinguished based on a serial number, the serial number read from each banknote can be utilized for banknote processing. For example, in Patent Document 1, a bill manufacturing factory and a manufacturing time are recognized from information included in a serial number read from a bill, the feature of the bill is specified, and authenticity identification processing is performed based on the specified feature. A method is disclosed.

記番号の読み取りは、例えば、記番号を含むように紙幣を撮像した画像上で、記番号を形成する各桁の文字が含まれる部分領域を特定して、各桁の文字を文字認識することによって行われる。記番号の印刷位置等が紙幣の種類によって異なる場合があるが、例えば、特許文献2には、紙幣の識別処理を行って紙幣の種類を特定した後、紙幣の種類に応じて紙幣上の記番号を読み取る方法が開示されている。   For example, the serial number is read by identifying a partial area including characters of each digit forming the serial number and recognizing the characters of each digit on an image obtained by imaging a banknote so as to include the serial number. Is done by. Although the printing position of the serial number may differ depending on the type of banknote, for example, in Patent Document 2, after the banknote identification process is performed and the type of banknote is specified, the description on the banknote is determined according to the type of banknote. A method for reading a number is disclosed.

特開2003−272018号公報JP 2003-272018 A 特許第5133348号明細書Japanese Patent No. 5133348

しかしながら、上記従来技術では、紙幣の記番号を正しく読み取れない場合があった。例えば、紙幣の改刷が行われた結果、改刷前の紙幣と改刷後の紙幣は外観が略同じであるにも拘わらず、改刷前の紙幣に印刷されている記番号と、改刷後の紙幣に印刷されている記番号とで、記番号を形成する各桁の文字の大きさ等、記番号フォーマットが変更されている場合がある。このような場合に、改刷後の紙幣を撮像した紙幣画像上で、改刷前紙幣の記番号のフォーマットに基づいて記番号を読み取ろうとしても、改刷後紙幣に印刷されている記番号各桁の位置を特定することができず、正しい文字認識結果を得られない。   However, in the above-described conventional technology, the banknote serial number may not be read correctly. For example, as a result of the banknote revision, the banknote before the revision and the banknote after the revision have substantially the same appearance, but the serial number printed on the banknote before the revision and the revision The serial number format, such as the size of the characters of each digit forming the serial number, may be changed with the serial number printed on the banknote after printing. In such a case, on the banknote image obtained by imaging the banknote after the revision, even if the serial number is read based on the format of the serial number of the banknote before the revision, the serial number printed on the banknote after the revision The position of each digit cannot be specified, and a correct character recognition result cannot be obtained.

また、改刷前紙幣及び改刷後紙幣のそれぞれについて、各記番号フォーマットに基づいて、記番号各桁の文字の位置を特定するための情報を記番号テンプレートとして準備しても、紙幣の外観が略同じであるために、紙幣が改刷前のものであるか改刷後のものであるかを正しく識別することができず、識別結果に基づいて行われる記番号テンプレートの選択を誤り、記番号を正しく読み取れない場合がある。   Moreover, even if the information for specifying the position of the character of each serial number is prepared as the serial number template based on the serial number format for each of the banknote before and after the revision, the appearance of the banknote Are substantially the same, it is impossible to correctly identify whether the banknote is the one before or after the revision, and the selection of the serial number template performed based on the identification result is incorrect. The serial number may not be read correctly.

本発明は、上述した従来技術による問題点を解消するためになされたもので、外観は略同じであるが記番号フォーマットが異なる複数種類の紙幣がある場合でも、各紙幣の記番号を正しく読み取ることができる紙幣処理装置及び紙幣処理方法を提供することを目的とする。   The present invention was made to solve the above-described problems caused by the prior art, and correctly reads the serial number of each banknote even when there are multiple types of banknotes having the same appearance but different serial number formats. An object is to provide a banknote processing apparatus and a banknote processing method.

上述した課題を解決し、目的を達成するため、本発明は、紙幣の記番号を読み取る紙幣処理装置であって、記番号フォーマットが異なる同一金種の紙幣それぞれについて、記番号を撮像した記番号画像上で前記記番号を形成する各文字の位置を特定するために各記番号フォーマットに合わせて準備した複数種類の記番号テンプレートが保存されている記憶部と、紙幣を識別する識別部と、前記識別部による紙幣の識別結果に対応する複数種類の記番号テンプレートの中から、前記紙幣の記番号フォーマットに対応する記番号テンプレートを決定する記番号テンプレート決定部と、前記記番号テンプレート決定部によって決定された記番号テンプレートを利用して前記紙幣の記番号を文字認識する文字認識部とを備えることを特徴とする。 In order to solve the above-described problems and achieve the object, the present invention is a banknote processing apparatus that reads a serial number of a banknote, and for each banknote of the same denomination with a different serial number format, a serial number obtained by imaging the serial number A storage unit storing a plurality of types of serial number templates prepared in accordance with each serial number format in order to specify the position of each character forming the serial number on the image, an identification unit for identifying banknotes, A serial number template determining unit that determines a serial number template corresponding to the serial number format of the banknote from a plurality of types of serial number templates corresponding to the banknote identification result by the identifying unit, and the serial number template determining unit And a character recognizing unit for recognizing the serial number of the bill using the determined serial number template.

また、本発明は、上記発明において、前記記憶部には、複数種類の記番号テンプレートの中から文字認識用の記番号テンプレートを決定する記番号テンプレート決定処理を実行する必要があるか否かを示す情報、及び前記記番号テンプレート決定処理の処理対象となる記番号テンプレートの種類を示す情報が、前記識別部による識別結果に対応付けて設定された記番号認識条件が保存されており、前記記番号テンプレート決定部は、前記識別部による識別結果及び前記記番号認識条件に基づいて、前記記番号テンプレート決定処理を実行することを特徴とする。   Further, according to the present invention, in the above invention, the storage unit determines whether or not it is necessary to execute a serial number template determination process for determining a serial number template for character recognition from a plurality of types of serial number templates. The serial number recognition conditions set in association with the identification result by the identification unit are stored in the information indicating and the information indicating the type of the serial number template to be processed in the serial number template determination process. The number template determination unit executes the serial number template determination process based on the identification result by the identification unit and the serial number recognition condition.

また、本発明は、上記発明において、前記記番号認識条件には、複数種類の記番号テンプレートそれぞれを評価する処理の実行方法を指定する指定情報が含まれており、前記記番号テンプレート決定部は、前記指定情報に基づいて各記番号テンプレートを評価する処理を実行することを特徴とする。   Also, in the present invention, in the above invention, the serial number recognition condition includes designation information that specifies an execution method of a process for evaluating each of a plurality of types of serial number templates, and the serial number template determination unit includes: A process of evaluating each serial number template based on the designation information is executed.

また、本発明は、上記発明において、前記記番号テンプレートは、記番号画像上で、記番号を形成する各文字を内部に含むように設定された複数の文字枠を含み、前記記番号テンプレート決定部は、前記記番号テンプレートで記番号画像上を走査して、記番号を形成する各文字がそれぞれ対応する文字枠内に含まれたことを評価するテンプレート評価値を算出して、前記記番号の文字認識に利用する記番号テンプレートを決定することを特徴とする。   Further, the present invention is the above invention, wherein the serial number template includes a plurality of character frames set so as to include each character forming the serial number on the serial number image, and the serial number template determination The unit scans the serial number image with the serial number template, calculates a template evaluation value that evaluates that each character forming the serial number is included in the corresponding character frame, and the serial number A serial number template used for character recognition is determined.

また、本発明は、上記発明において、前記記番号テンプレートは、前記記番号画像上で、記番号を形成する各文字がそれぞれ対応する前記文字枠内に含まれる位置で、文字を含まない部分領域に設定された背景枠を含み、前記記番号テンプレート決定部は、前記テンプレート評価値で、前記背景枠内に文字が含まれないことを評価することを特徴とする。   Further, the present invention is the above invention, wherein the serial number template is a partial area that does not include a character at a position where each character forming a serial number is included in the corresponding character frame on the serial number image. The serial number template determining unit evaluates that no character is included in the background frame with the template evaluation value.

また、本発明は、上記発明において、前記識別部によって識別された紙幣の金種と、前記記番号テンプレート決定部によって前記紙幣に対応すると決定された記番号テンプレートの種類とに基づいて、前記紙幣の金種の識別結果を決定する
ことを特徴とする。
Moreover, this invention is based on the money type of the banknote identified by the said identification part in the said invention, and the kind of serial number template determined to correspond to the said banknote by the said serial number template determination part. The denomination identification result is determined.

また、本発明は、紙幣処理装置で紙幣の記番号を読み取る紙幣処理方法であって、識別部が紙幣を識別する識別工程と、記番号を撮像した記番号画像上で前記記番号を形成する各文字の位置を特定するために記番号フォーマットに合わせて準備された、前記識別工程で得られた紙幣の識別結果に対応する複数種類の記番号テンプレートの中から、記番号テンプレート決定部が、前記紙幣の記番号フォーマットに対応する記番号テンプレートを決定する記番号テンプレート決定工程と、前記記番号テンプレート決定工程で決定された記番号テンプレートを利用して、文字認識部が、前記紙幣の記番号を文字認識する文字認識工程とを含んだことを特徴とする。 Moreover, this invention is a banknote processing method which reads the serial number of a banknote with a banknote processing apparatus, Comprising: The identification part forms the said serial number on the identification number image which imaged the serial number, and the identification process which identifies a banknote Among a plurality of types of serial number templates corresponding to banknote identification results obtained in the identification process , prepared in accordance with the serial number format in order to specify the position of each character, the serial number template determination unit, Using the serial number template determination step for determining the serial number template corresponding to the serial number format of the banknote and the serial number template determined in the serial number template determination step , the character recognition unit uses the serial number of the banknote. And a character recognition step for recognizing characters.

本発明によれば、例えば、外観は略同じで、記番号の文字サイズや文字間隔等の記番号フォーマットが異なる同一金種の紙幣がある場合に、記番号を撮像した画像上で記番号各桁の文字位置を特定可能な情報を含む記番号テンプレートを、各記番号フォーマットに合わせて複数準備しておいて、紙幣の記番号を読み取る際には、複数の記番号テンプレートの中から、紙幣の記番号フォーマットに対応する記番号テンプレートを選択することができるので、各紙幣の記番号を正しく読み取ることができる。   According to the present invention, for example, when there are banknotes of the same denomination that have substantially the same external appearance and different serial number formats such as serial number character size and character spacing, each serial number on the image obtained by imaging the serial number Prepare multiple serial number templates including information that can specify the character position of the digit according to each serial number format, and when reading the serial number of banknotes, from among the multiple serial number templates, Since the serial number template corresponding to the serial number format is selected, the serial number of each banknote can be read correctly.

図1は、本実施形態に係る紙幣処理装置の構成概略を示すブロック図である。FIG. 1 is a block diagram showing a schematic configuration of the banknote handling apparatus according to the present embodiment. 図2は、改刷前後で記番号フォーマットが変更された紙幣の例を示す模式図である。FIG. 2 is a schematic diagram showing an example of a banknote whose serial number format has been changed before and after the reprinting. 図3は、紙幣処理装置で紙幣の記番号を読み取る処理の流れを示すフローチャートである。FIG. 3 is a flowchart showing a flow of processing for reading the serial number of the banknote by the banknote processing apparatus. 図4は、記番号認識条件の例を示す図である。FIG. 4 is a diagram illustrating an example of serial number recognition conditions. 図5は、記番号テンプレートによる文字画像の取得方法を説明する図である。FIG. 5 is a diagram illustrating a method for acquiring a character image using a serial number template. 図6は、記番号テンプレート決定処理の流れを示すフローチャートである。FIG. 6 is a flowchart showing the flow of the serial number template determination process. 図7は、記番号テンプレートの例を示す図である。FIG. 7 is a diagram illustrating an example of a serial number template. 図8は、図2(b)に示す改刷後紙幣について行われる記番号テンプレート決定処理を説明する図である。FIG. 8 is a diagram for explaining a serial number template determination process performed on the banknote after the revision shown in FIG. 図9は、図2(a)に示す改刷前紙幣について行われる記番号テンプレート決定処理を説明する図である。FIG. 9 is a diagram for explaining a serial number template determination process performed for the banknote before the revision shown in FIG. 図10は、記番号認識条件の別の例を示す図である。FIG. 10 is a diagram illustrating another example of serial number recognition conditions.

以下に、添付図面を参照して、本発明に係る紙幣処理装置及び紙幣処理方法について詳細に説明する。まず、本実施形態に係る紙幣処理装置で行う紙幣処理方法の概要を説明すると、紙幣処理装置では、例えば同一金種で記番号フォーマットが異なる紙幣等、金種の識別結果が同一になるにも拘わらず記番号フォーマットが異なる複数種類の紙幣がある場合に、これら各紙幣の記番号フォーマットに合わせて、記番号を撮像した記番号画像上で記番号各桁の文字の位置を特定するための記番号テンプレートが予め準備されている。そして、紙幣の記番号を読み取る際に、紙幣を識別した結果、識別結果に対応して複数種類の記番号テンプレートが準備されている場合には、これらの中から紙幣の記番号フォーマットに対応する記番号テンプレートを選択して、該記番号テンプレートによって記番号を読み取ることができる。記番号テンプレートの選択は、各記番号テンプレートによって記番号各桁の文字の位置を特定できるか否かを評価することによって行うが、評価する記番号テンプレートの処理順序を指定したり、複数の記番号テンプレートの評価処理を並列して実行するように指定したり、記番号テンプレート評価処理の実行方法を指定できるようになっている。   Below, with reference to an accompanying drawing, a bill processing device and a bill processing method concerning the present invention are explained in detail. First, the outline of the banknote processing method performed in the banknote processing apparatus according to the present embodiment will be described. In the banknote processing apparatus, for example, banknotes having the same denomination and different serial number formats have the same denomination identification result. Regardless of whether there are multiple types of banknotes with different serial number formats, the position of the character of each serial number is specified on the serial number image obtained by imaging the serial number according to the serial number format of each banknote. A serial number template is prepared in advance. And when reading the serial number of a banknote, as a result of identifying a banknote, when multiple types of serial number templates are prepared corresponding to the identification result, it corresponds to the serial number format of a banknote from these. A serial number template can be selected and a serial number can be read by the serial number template. The serial number template is selected by evaluating whether each serial number template can identify the position of the character in each digit of the serial number. The number template evaluation process can be specified to be executed in parallel, and the serial number template evaluation process execution method can be specified.

図1は、本実施形態に係る紙幣処理装置1の構成概略を示すブロック図である。紙幣処理装置1は、紙幣画像撮像部10、識別部20、記憶部30及び制御部40を含んでいる。なお、紙幣画像撮像部10及び識別部20については、紙幣処理装置1がこれらを有さず、紙幣の記番号を撮像した画像及び紙幣の識別結果が外部装置から紙幣処理装置1へ入力される態様とすることもできるが、本実施形態では、紙幣画像撮像部10及び識別部20が紙幣処理装置1内に内蔵されているものとして説明する。   FIG. 1 is a block diagram showing a schematic configuration of a banknote handling apparatus 1 according to the present embodiment. The banknote processing apparatus 1 includes a banknote image capturing unit 10, an identification unit 20, a storage unit 30, and a control unit 40. In addition, about the banknote image imaging part 10 and the identification part 20, the banknote processing apparatus 1 does not have these, The image which imaged the serial number of the banknote, and the identification result of a banknote are input into the banknote processing apparatus 1 from an external device. Although it can also be set as an aspect, in this embodiment, it demonstrates as what the banknote image imaging part 10 and the identification part 20 are incorporated in the banknote processing apparatus 1. FIG.

紙幣画像撮像部10は、例えば、紙幣を搬送する搬送部と、搬送部によって搬送される紙幣を撮像するラインセンサとを含み、紙幣の表面全体の画像及び裏面全体の画像を撮像する機能を有する。   The banknote image capturing unit 10 includes, for example, a transport unit that transports banknotes and a line sensor that captures banknotes transported by the transport unit, and has a function of capturing an image of the entire front surface and an entire back surface of the banknote. .

識別部20は、紙幣画像撮像部10で撮像された紙幣画像を利用して紙幣の金種を識別する機能を有する。また、識別部20は、紙幣画像撮像部10のラインセンサ以外にも各種センサを利用して、紙幣の厚みや、磁気、紫外光、赤外光等に関する紙幣の特徴を取得して紙幣の識別処理を行う機能を有するが、これらについては従来技術を利用可能であるため詳細な説明は省略する。   The identification unit 20 has a function of identifying the denomination of the banknote using the banknote image captured by the banknote image capturing unit 10. Further, the identification unit 20 uses various sensors in addition to the line sensor of the banknote image capturing unit 10 to acquire banknote characteristics related to banknote thickness, magnetism, ultraviolet light, infrared light, and the like, thereby identifying the banknote. Although it has a function to perform processing, since these can use conventional techniques, detailed description thereof will be omitted.

記憶部30は不揮発性の記憶装置から成り、記憶部30には、記番号認識条件31、記番号テンプレートデータ32及び文字認識用データ33が保存されている。また、記憶部30は、紙幣画像撮像部10で撮像された紙幣画像、紙幣画像から記番号部分を切り出した記番号画像、記番号画像から記番号各桁の文字部分を切り出した文字画像等、処理途中で発生する画像や、制御部40が動作する際に生ずる各種データの一時保存にも利用される。記番号認識条件31は、紙幣画像に含まれる記番号を読み取る際に行う各処理に関する情報を含んでいる。記番号テンプレートデータ32は、紙幣画像に含まれる記番号各桁の文字の位置を特定するために、紙幣の種類毎に記番号フォーマットに合わせて準備された記番号テンプレートを含んでいる。文字認識用データ33は、記番号各桁の文字を文字認識するための辞書データ等の情報を含んでいる。これらについての詳細は後述する。   The storage unit 30 includes a non-volatile storage device, and the storage unit 30 stores a serial number recognition condition 31, a serial number template data 32, and character recognition data 33. Moreover, the memory | storage part 30 is the banknote image imaged by the banknote image imaging part 10, the serial number image which cut out the serial number part from the banknote image, the character image which cut out the character part of each serial number from the serial number image, etc. It is also used for temporarily storing images generated during processing and various data generated when the control unit 40 operates. The serial number recognition condition 31 includes information regarding each process performed when reading the serial number included in the banknote image. The serial number template data 32 includes a serial number template prepared in accordance with the serial number format for each type of banknote in order to specify the position of the character of each serial number included in the banknote image. The character recognition data 33 includes information such as dictionary data for character recognition of the characters of each digit of the serial number. Details of these will be described later.

制御部40は、記番号画像取得部41、記番号テンプレート決定部42及び文字認識部43を有している。記番号画像取得部41は、紙幣画像撮像部10で撮像された紙幣全面の画像から、記番号全体を含む部分領域の画像を切り出した記番号画像を取得する機能を有する。また、記番号画像取得部41は、記番号テンプレートを利用して、記番号画像から、記番号各桁の文字を1文字ずつ含む部分領域の画像を切り出した文字画像を取得する機能を有する。記番号テンプレート決定部42は、記番号画像取得部41によって切り出された記番号画像に対応する記番号テンプレートが複数種類ある場合に、記番号画像に対応する記番号テンプレートを決定する機能を有する。文字認識部43は、記番号画像取得部41によって取得された各文字画像に含まれる文字を文字認識する機能を有する。これら各部の機能及び動作についての詳細は後述する。   The control unit 40 includes a serial number image acquisition unit 41, a serial number template determination unit 42, and a character recognition unit 43. The serial number image acquiring unit 41 has a function of acquiring a serial number image obtained by cutting out an image of a partial region including the entire serial number from the image of the entire banknote imaged by the banknote image capturing unit 10. Moreover, the serial number image acquisition part 41 has a function which acquires the character image which cut out the image of the partial area | region which contains one character of each digit of a serial number from a serial number image using a serial number template. The serial number template determination unit 42 has a function of determining a serial number template corresponding to a serial number image when there are a plurality of types of serial number templates corresponding to the serial number image cut out by the serial number image acquisition unit 41. The character recognition unit 43 has a function of recognizing characters included in each character image acquired by the serial number image acquisition unit 41. Details of the functions and operations of these units will be described later.

次に、改刷によって、同一金種の紙幣に印刷される記番号のフォーマットが変更された場合を例に、記番号を読み取る紙幣処理装置1の動作について説明する。図2は、改刷前後で記番号フォーマットが変更された紙幣の例を示す模式図である。図2(a)は、改刷前の紙幣を撮像した紙幣画像100を示しており、同図(b)は、改刷後の紙幣を撮像した紙幣画像200を示している。同一金種の2種類の紙幣は、改刷前後で記番号フォーマットが異なるが、外観は略同じであり、識別部20によって識別した場合にも同一金種であるとの識別結果が得られる。   Next, the operation of the banknote processing apparatus 1 that reads the serial number will be described by taking as an example the case where the format of the serial number printed on the banknote of the same denomination is changed by reprinting. FIG. 2 is a schematic diagram showing an example of a banknote whose serial number format has been changed before and after the reprinting. FIG. 2A shows a banknote image 100 obtained by imaging a banknote before reprinting, and FIG. 2B shows a banknote image 200 obtained by imaging a banknote after reprinting. Two types of banknotes of the same denomination have different serial number formats before and after the reprinting, but the appearance is substantially the same, and even when they are identified by the identification unit 20, an identification result that is the same denomination is obtained.

図2(a)に示すように、改刷前紙幣に印刷されている記番号110は、全ての桁の文字が同じ文字サイズで印刷されている。これに対して、図2(b)に示すように、改刷後紙幣に印刷されている記番号210には、文字サイズが異なる桁が含まれている。具体的には、記番号210の左端を第1桁として、第4桁〜第9桁で、各桁の文字サイズが徐々に大きくなっている。   As shown to Fig.2 (a), as for the serial number 110 currently printed on the banknote before revision, the character of all the digits is printed by the same character size. On the other hand, as shown in FIG. 2B, the serial number 210 printed on the banknote after the revision includes digits with different character sizes. Specifically, the left end of the serial number 210 is the first digit, and the character size of each digit is gradually increased from the fourth digit to the ninth digit.

図3は、紙幣処理装置1で紙幣の記番号を読み取る処理の流れを示すフローチャートである。まず、紙幣画像撮像部10が、記番号が印刷されている紙幣全面を撮像した紙幣画像を取得する(ステップS1)。紙幣画像が取得されると、識別部20が紙幣画像等を利用して紙幣の金種を識別する(ステップS2)。   FIG. 3 is a flowchart showing a flow of processing for reading the serial number of the banknote by the banknote processing apparatus 1. First, the banknote image imaging part 10 acquires the banknote image which imaged the whole banknote on which the serial number is printed (step S1). If a banknote image is acquired, the identification part 20 will identify the money type of a banknote using a banknote image etc. (step S2).

紙幣の金種が識別されると、記番号テンプレート決定部42が、記憶部30の記番号認識条件31を参照して(ステップS3)、記番号を含む画像上で記番号各桁の文字位置を特定するために利用する記番号テンプレートを、複数種類の記番号テンプレートの中から選択する必要があるか否かを判定する(ステップS4)。   When the denomination of the banknote is identified, the serial number template determination unit 42 refers to the serial number recognition condition 31 in the storage unit 30 (step S3), and the character position of each serial number on the image including the serial number It is determined whether or not it is necessary to select a serial number template to be used for specifying the serial number from a plurality of types of serial number templates (step S4).

図4は、記番号認識条件31の例を示す図である。記番号認識条件31には、識別結果、記番号テンプレート評価要否、及び評価対象記番号テンプレートの項目が含まれている。識別結果の項目は、識別部20によって紙幣を識別して得られる金種の識別結果を示している。記番号テンプレート評価要否の項目は、各識別結果について、記番号テンプレートを選択する処理が必要であるか否かを示している。評価対象記番号テンプレートの項目は、記番号テンプレートを選択する処理で評価対象となる記番号テンプレートの種類を示している。ただし、記番号テンプレートを選択する必要がない場合には、評価対象記番号テンプレートの項目に、識別結果に対応する1種類の記番号テンプレートが示されることになる。   FIG. 4 is a diagram illustrating an example of the serial number recognition condition 31. The serial number recognition condition 31 includes items of an identification result, serial number template evaluation necessity, and evaluation target serial number template. The item of the identification result indicates the identification result of the denomination obtained by identifying the banknote by the identification unit 20. The serial number template evaluation necessity item indicates whether or not a process for selecting a serial number template is required for each identification result. The item of the evaluation target serial number template indicates the type of serial number template to be evaluated in the process of selecting the serial number template. However, if it is not necessary to select a serial number template, one type of serial number template corresponding to the identification result is indicated in the item of the evaluation target serial number template.

記番号認識条件31には、紙幣処理装置1で処理される可能性がある各金種について、記番号テンプレート評価要否及び評価対象記番号テンプレートの情報が予め設定されている。また、評価対象記番号テンプレートの項目に示された各記番号テンプレートは、記番号テンプレートデータ32として記憶部30に保存されている。   In the serial number recognition condition 31, for each denomination that may be processed by the banknote processing apparatus 1, the serial number template evaluation necessity and the information of the evaluation target serial number template are set in advance. Each serial number template shown in the item of the evaluation target serial number template is stored in the storage unit 30 as serial number template data 32.

例えば、図2に示す紙幣画像100、200が同じ金種Bの紙幣の画像である場合には、改刷前紙幣の記番号110のフォーマットと、改刷後紙幣の記番号210のフォーマットとが異なるので、いずれの記番号フォーマットで記番号を読み取るかを決定する必要がある。このため、金種Bの紙幣については、図4に示すように、記番号認識条件31の記番号テンプレート評価要否の項目が「要」と設定される。また、評価対象記番号テンプレートの項目には、改刷前紙幣の記番号フォーマットに合わせて予め準備された記番号テンプレートY1、及び改刷後紙幣の記番号フォーマットに合わせて予め準備された記番号テンプレートY2の2種類の記番号テンプレートを示す情報が設定される。   For example, when the banknote images 100 and 200 shown in FIG. 2 are images of banknotes of the same denomination B, the format of the serial number 110 of the banknote before the revision and the format of the serial number 210 of the banknote after the revision are as follows. Since they are different, it is necessary to determine which serial number format is used to read the serial number. For this reason, as shown in FIG. 4, the serial number template evaluation necessity item of the serial number recognition condition 31 is set to “necessary” for the banknote of denomination B. In addition, the item of the evaluation target serial number template includes a serial number template Y1 prepared in advance according to the serial number format of the banknote before the revision, and a serial number prepared in advance according to the serial number format of the banknote after the revision. Information indicating two types of serial number templates of the template Y2 is set.

また、例えば、識別部20によって金種Cと識別される紙幣に、記番号フォーマットが異なる3種類の紙幣が含まれる場合には、図4に示すように、記番号テンプレート評価要否の項目が「要」と設定される。また、金種Cの評価対象記番号テンプレートの項目には、各紙幣の記番号フォーマットに対応して予め準備された3種類の記番号テンプレートZ1、Z2、Z3を示す情報が設定される。一方、識別部20によって金種Aと識別される紙幣の記番号フォーマットが1種類しかない場合には、記番号テンプレートを選択する処理は必要ない。このため、金種Aの記番号テンプレート評価要否の項目は「不要」と設定され、評価対象記番号テンプレートの項目には金種Aの記番号フォーマットに対応して予め準備された記番号テンプレートXを示す情報のみが設定される。   Further, for example, when the banknote identified by the identifying unit 20 as the denomination C includes three types of banknotes having different serial number formats, as shown in FIG. “Necessary” is set. In addition, information indicating three types of serial number templates Z1, Z2, and Z3 prepared in advance corresponding to the serial number format of each banknote is set in the item of the evaluation target serial number template of the denomination C. On the other hand, when there is only one type of serial number format of the banknote identified by the identifying unit 20 as the denomination A, there is no need to select a serial number template. For this reason, the serial number template evaluation necessity item of the denomination A is set as “unnecessary”, and the serial number template prepared in advance corresponding to the serial number format of the denomination A is included in the item of the evaluation target serial number template. Only information indicating X is set.

記番号読み取りの処理対象が金種Aの紙幣である場合には、識別部20による紙幣の識別結果が金種Aとなる。この識別結果に基づいて、図4に示す記番号認識条件31を参照した記番号テンプレート決定部42は、金種Aの紙幣については、記番号テンプレートを選択する処理が不要であると判定する(図3ステップS4;No)。そして、記番号テンプレート決定部42は、記憶部30の記番号テンプレートデータ32の中から、金種Aに対応する記番号テンプレートXを読み込む(ステップS6)。   When the processing target of serial number reading is a banknote of denomination A, the banknote identification result by the identification unit 20 is denomination A. Based on the identification result, the serial number template determination unit 42 that refers to the serial number recognition condition 31 shown in FIG. 4 determines that the processing for selecting the serial number template is not required for the banknote of denomination A ( FIG. 3 step S4; No). And the serial number template determination part 42 reads the serial number template X corresponding to the money type A from the serial number template data 32 of the memory | storage part 30 (step S6).

続いて、記番号画像取得部41が、金種Aの紙幣全面を撮像した紙幣画像から、記番号を含む部分領域を切り出した記番号画像を取得する(ステップS7)。そして、記番号画像取得部41は、先に読み込まれた金種Aの記番号テンプレートXを利用して、記番号画像上での記番号の位置を特定し(ステップS8)、記番号を形成する各桁の文字画像を取得する(ステップS9)。各桁の文字を1文字ずつ含む文字画像が得られると、文字認識部43は、各文字画像に含まれる文字を文字認識して(ステップS10)、処理を終了する。   Then, the serial number image acquisition part 41 acquires the serial number image which cut out the partial area | region containing a serial number from the banknote image which imaged the banknote whole surface of the money type A (step S7). And the serial number image acquisition part 41 pinpoints the position of the serial number on a serial number image using the serial number template X of the money type A read previously (step S8), and forms a serial number A character image of each digit to be acquired is acquired (step S9). When a character image including one character for each digit is obtained, the character recognition unit 43 recognizes characters included in each character image (step S10) and ends the process.

記番号テンプレートを利用して記番号各桁の文字を文字認識するステップS7〜S10の処理を、具体例を挙げて説明する。図5は、記番号テンプレートX(320)による文字画像の取得方法を説明する図である。図5(a)は記番号テンプレートX(320)を示し、同図(b)は金種Aの紙幣画像300を示し、同図(c)は紙幣画像300から記番号310を含む部分領域を切り出した記番号画像301を示している。また、図5(d)は、同図(a)に示す記番号テンプレートX(320)を利用して、同図(c)に示す記番号画像301上で、記番号310の位置を特定した状態を示している。また、図5(e)は、同図(d)に示す記番号位置の特定結果に基づいて、記番号画像301から、記番号310各桁の文字を切り出して得られる文字画像302の一例を示している。なお、図5(b)には紙幣画像300の一部を示しているが、紙幣画像300は紙幣全面を撮像した画像である。   The process of steps S7 to S10 for recognizing the character of each digit of the serial number using the serial number template will be described with a specific example. FIG. 5 is a diagram for explaining a method of acquiring a character image using the serial number template X (320). 5A shows a serial number template X (320), FIG. 5B shows a banknote image 300 of denomination A, and FIG. 5C shows a partial area including the serial number 310 from the banknote image 300. The cut out serial number image 301 is shown. FIG. 5D uses the serial number template X (320) shown in FIG. 5A to identify the position of the serial number 310 on the serial number image 301 shown in FIG. Indicates the state. FIG. 5 (e) shows an example of a character image 302 obtained by cutting out characters of each serial number 310 from the serial number image 301 based on the identification result of the serial number position shown in FIG. 5 (d). Show. 5B shows a part of the banknote image 300. The banknote image 300 is an image obtained by capturing the entire banknote.

図5(a)に示すように、記番号テンプレートX(320)は、破線で示した3つの余白枠(背景枠)321〜323と、実線で示した8つの文字枠324〜331とを含んでいる。記番号テンプレートX(320)は、図5(d)に示すように、記番号画像301に含まれる記番号310の記番号フォーマットに合わせて予め準備されている。   As shown in FIG. 5A, the serial number template X (320) includes three blank frames (background frames) 321 to 323 indicated by broken lines and eight character frames 324 to 331 indicated by solid lines. It is out. The serial number template X (320) is prepared in advance according to the serial number format of the serial number 310 included in the serial number image 301, as shown in FIG.

具体的には、余白枠321〜323は、図5(d)に示すように、記番号テンプレートX(320)によって記番号310の位置を特定した際に、各枠内に、記番号310を形成する文字が含まれないように設定されている。一方、文字枠324〜331は、記番号テンプレートX(320)によって記番号310の位置を特定した際に、記番号310を形成する各桁の文字が、対応する文字枠324〜331内に1文字ずつ含まれるように設定されている。なお、余白枠は、記番号の背景について設定された背景枠の一種である。背景枠として、余白に設定した枠の他、記番号以外の文字を含むように設定した枠や、マークや図柄を含むように設定した枠等を利用することもできる。   Specifically, as shown in FIG. 5D, the margin frames 321 to 323 have the serial number 310 in each frame when the position of the serial number 310 is specified by the serial number template X (320). It is set not to include characters to be formed. On the other hand, when the position of the serial number 310 is specified by the serial number template X (320), the character frames 324 to 331 indicate that the character of each digit forming the serial number 310 is 1 in the corresponding character frame 324 to 331. It is set to include characters. The margin frame is a kind of background frame set for the background of the serial number. As a background frame, in addition to a frame set as a margin, a frame set to include characters other than a serial number, a frame set to include a mark or a pattern, and the like can also be used.

識別部20によって、紙幣画像300を取得した紙幣が金種Aの紙幣であると識別されると、記番号画像取得部41は、図5(c)に示すように、紙幣画像300から、記番号310が印刷されている部分領域を切り出した記番号画像301を取得する(図3ステップS7)。記番号画像301は、記番号310の周囲の模様や文字等の余計な部分をなるべく含まないように紙幣画像300から切り出されるが、記番号画像301として切り出す部分領域の位置及び大きさを示す情報は、記番号認識条件31に含まれている。   If the banknote which acquired the banknote image 300 is identified by the identification part 20 as a banknote of the money type A, the serial number image acquisition part 41 will be described from the banknote image 300, as shown in FIG.5 (c). The serial number image 301 obtained by cutting out the partial area where the number 310 is printed is acquired (step S7 in FIG. 3). The serial number image 301 is cut out from the banknote image 300 so as not to include extra portions such as patterns and characters around the serial number 310 as much as possible, but information indicating the position and size of the partial area to be cut out as the serial number image 301 Is included in the serial number recognition condition 31.

記番号テンプレートを形成する各枠のサイズ及び位置関係は固定されている。記番号画像取得部41は、図5(a)に示す記番号テンプレートX(320)を利用して、同図(c)に示す記番号画像301上を走査しながら、各位置で、記番号テンプレートX(320)を評価するためのテンプレート評価値を算出する。そして、記番号画像取得部41は、算出したテンプレート評価値に基づいて、図5(d)に示すように、記番号テンプレートX(320)の各文字枠324〜331内に、対応する各文字を含む位置を特定する(図3ステップS8)。   The size and positional relationship of each frame forming the serial number template are fixed. The serial number image acquisition unit 41 uses the serial number template X (320) shown in FIG. 5A to scan the serial number image 301 shown in FIG. A template evaluation value for evaluating the template X (320) is calculated. Then, the serial number image acquisition unit 41, based on the calculated template evaluation value, displays the corresponding characters in the character frames 324 to 331 of the serial number template X (320) as shown in FIG. Is specified (step S8 in FIG. 3).

各余白枠321〜323を評価する背景枠評価値は、図5(d)に示すように枠内が余白となったときに評価値が最大値を示し、枠内に記番号310を形成する文字の一部が含まれると評価値が低下するように設定されている。一方、文字枠324〜331を評価する文字枠評価値は、図5(d)に示すように枠内に文字が含まれるときに評価値が最大値を示し、文字の一部が枠からはみ出ると評価値が低下するように設定されている。記番号画像取得部41は、各枠321〜331の評価値の合計値を、記番号テンプレートX(320)を評価するテンプレート評価値として、記番号画像301上でテンプレート評価値が最大値を示す位置を探索する。この結果、テンプレート評価値が最大値を示す位置が、図5(d)に示す記番号テンプレートX(320)の位置となる。   As shown in FIG. 5D, the background frame evaluation values for evaluating the margin frames 321 to 323 indicate the maximum value when the inside of the frame becomes a margin, and the serial number 310 is formed in the frame. The evaluation value is set to decrease when a part of the character is included. On the other hand, the character frame evaluation value for evaluating the character frames 324 to 331 shows the maximum value when a character is included in the frame as shown in FIG. 5D, and a part of the character protrudes from the frame. And the evaluation value is set to decrease. The serial number image acquisition unit 41 uses the total value of the evaluation values of the frames 321 to 331 as a template evaluation value for evaluating the serial number template X (320), and the template evaluation value indicates the maximum value on the serial number image 301. Search for a location. As a result, the position where the template evaluation value shows the maximum value is the position of the serial number template X (320) shown in FIG.

なお、テンプレート評価値を算出する際には、例えば、背景枠及び文字枠のそれぞれを、記番号を形成する文字を取り囲む大きさの文字部と、文字部に接する環状領域の外周部とに分割して、文字部及び外周部の各領域内の画素値の濃度平均値から評価値を算出できるが、背景枠及び文字枠を利用して、記番号が含まれる画像上を走査しながら評価値を算出して記番号の位置を特定する方法については、国際公開第2012/120587号に記載しているため詳細は省略する。   When calculating the template evaluation value, for example, each of the background frame and the character frame is divided into a character part having a size surrounding the character forming the serial number and an outer peripheral part of the annular region in contact with the character part. The evaluation value can be calculated from the average density value of the pixel values in each area of the character portion and the outer peripheral portion, but the evaluation value is scanned while scanning the image including the serial number using the background frame and the character frame. Since the method for calculating the position of the serial number by calculating the value is described in International Publication No. 2012/120587, the details are omitted.

記番号テンプレートX(320)を利用して、記番号画像301上で図5(d)に示すように記番号310の位置を特定すると、記番号画像取得部41は、記番号テンプレートX(320)に含まれる各文字枠324〜331で囲まれている部分領域を切り出して、図5(e)に示すように、文字画像302とする。図5(e)には、記番号310の第1桁の「P」の文字画像302の例を示しているが、記番号画像取得部41は、図5(c)に示す記番号310各桁の文字画像302を取得する。8桁の記番号310から得られた8つの文字画像302それぞれには、文字が1文字だけ含まれている。   When the position of the serial number 310 is specified on the serial number image 301 as shown in FIG. 5D by using the serial number template X (320), the serial number image acquisition unit 41 reads the serial number template X (320). ) Included in each character frame 324 to 331 is cut out to form a character image 302 as shown in FIG. FIG. 5E shows an example of the character image 302 of the first digit “P” of the serial number 310, but the serial number image acquisition unit 41 includes each of the serial numbers 310 shown in FIG. A digit character image 302 is acquired. Each of the eight character images 302 obtained from the eight-digit serial number 310 includes only one character.

記憶部30の文字認識用データ33には、記番号各桁の文字に対応する辞書データが予め準備されており、文字認識部43は、各文字画像302に対応する辞書データを利用して、各文字画像302に含まれる文字の文字認識を行うようになっている(図3ステップS10)。なお、各金種の紙幣の記番号各桁の文字と、文字認識用の辞書データとの関係を示す情報は、記憶部30の記番号認識条件31に含まれる。   In the character recognition data 33 of the storage unit 30, dictionary data corresponding to the character of each digit of the serial number is prepared in advance, and the character recognition unit 43 uses the dictionary data corresponding to each character image 302, Character recognition of characters included in each character image 302 is performed (step S10 in FIG. 3). Information indicating the relationship between the character of each serial number of the banknote of each denomination and the dictionary data for character recognition is included in the serial number recognition condition 31 of the storage unit 30.

一方、記番号読み取りの処理対象が、図2(b)に示す金種Bの改刷後紙幣である場合には、改刷後紙幣の紙幣画像200が取得され(図3ステップS1)、識別部20によって金種Bの紙幣であるとする識別結果が得られる(ステップS2)。記番号テンプレート決定部42は、この識別結果に基づいて図4に示す記番号認識条件31を参照し(ステップS3)、金種Bの紙幣については、2種類の記番号テンプレートY1、Y2の中から1つを選択する処理が必要であると判定する(ステップS4;Yes)。そして、記番号テンプレート決定部42は、2種類の記番号テンプレートY1、Y2の中から、図2(b)の改刷後紙幣に対応する記番号テンプレートを選択するための記番号テンプレート決定処理を開始する(ステップS5)。   On the other hand, when the processing target of serial number reading is the banknote after reprinting of the denomination B shown in FIG. 2B, the banknote image 200 of the banknote after reprinting is acquired (step S1 in FIG. 3) and identified. The identification result that it is the banknote of the denomination B is obtained by the part 20 (step S2). The serial number template determination unit 42 refers to the serial number recognition condition 31 shown in FIG. 4 based on the identification result (step S3), and for the banknote of the denomination B, among the two types of serial number templates Y1 and Y2. It is determined that the process of selecting one from the above is necessary (step S4; Yes). And the serial number template determination part 42 performs the serial number template determination process for selecting the serial number template corresponding to the banknote after revision in FIG.2 (b) from two types of serial number templates Y1 and Y2. Start (step S5).

図6は、記番号テンプレート決定処理の流れを示すフローチャートである。図7は、記番号テンプレートの例を示す図である。図7(a)は、図2(a)に示す金種Bの改刷前紙幣の記番号フォーマットに合わせて準備された記番号テンプレートY1(120)を示し、図7(b)は、図2(b)に示す金種Bの改刷後紙幣の記番号フォーマットに合わせて準備された記番号テンプレートY2(220)を示している。   FIG. 6 is a flowchart showing the flow of the serial number template determination process. FIG. 7 is a diagram illustrating an example of a serial number template. Fig.7 (a) shows the serial number template Y1 (120) prepared according to the serial number format of the banknote before revision of the money type B shown to Fig.2 (a), FIG.7 (b) is FIG. The serial number template Y2 (220) prepared according to the serial number format of the banknote after reprinting of the denomination B shown in 2 (b) is shown.

図7(a)に示すように、記番号テンプレートY1(120)は、破線で示した3つの余白枠121〜123と、実線で示した9つの文字枠124〜132とを含んでいる。図7(b)に示すように、記番号テンプレートY2(220)は、破線で示した3つの余白枠221〜223と、実線で示した9つの文字枠224〜232とを含んでいる。記番号テンプレートY1(120)では、図2(a)に示す改刷前紙幣の記番号フォーマットに合わせて、全ての文字枠124〜132が同じサイズとなっている。一方、記番号テンプレートY2(220)では、図2(b)に示す改刷後紙幣の記番号フォーマットに合わせて、一部の文字枠228〜232のサイズが異なっている。具体的には、記番号テンプレートY2(220)の4つの文字枠224〜227は同じサイズであるが、5つの文字枠228〜232は右側の桁ほど縦横のサイズが徐々に大きくなっている。   As shown in FIG. 7A, the serial number template Y1 (120) includes three blank frames 121 to 123 indicated by broken lines and nine character frames 124 to 132 indicated by solid lines. As shown in FIG. 7B, the serial number template Y2 (220) includes three blank frames 221 to 223 indicated by broken lines and nine character frames 224 to 232 indicated by solid lines. In the serial number template Y1 (120), all the character frames 124 to 132 have the same size in accordance with the serial number format of the banknote before the revision shown in FIG. On the other hand, in the serial number template Y2 (220), the sizes of some of the character frames 228 to 232 are different in accordance with the serial number format of the banknote after the revision shown in FIG. Specifically, the four character frames 224 to 227 of the serial number template Y2 (220) have the same size, but the vertical and horizontal sizes of the five character frames 228 to 232 gradually increase toward the right digit.

記番号テンプレート決定処理では、評価対象記番号テンプレートとして設定されている2つの記番号テンプレートY1、Y2のそれぞれを評価して、紙幣の記番号フォーマットに対応する記番号テンプレートが決定される。紙幣処理装置1では、複数の記番号テンプレートを評価する際に、記番号テンプレートの処理を並列して行うか否かや、記番号テンプレートの処理を順に行う場合の処理順序等を設定できるようになっているが、以下では、記番号テンプレートY2の評価処理を説明した後、記番号テンプレートY1の評価処理について説明する。   In the serial number template determination process, each of the two serial number templates Y1 and Y2 set as the evaluation target serial number template is evaluated, and the serial number template corresponding to the serial number format of the banknote is determined. In the banknote handling apparatus 1, when evaluating a plurality of serial number templates, it is possible to set whether or not serial number template processing is performed in parallel, a processing order when serial number template processing is sequentially performed, and the like. However, in the following, after describing the evaluation process of the serial number template Y2, the evaluation process of the serial number template Y1 will be described.

図8は、図2(b)に示す改刷後紙幣について行われる記番号テンプレート決定処理を説明する図である。図8(a)は、金種Bの改刷後紙幣の紙幣画像200を示し、同図(b)は紙幣画像200から記番号210を含む部分領域を切り出した記番号画像201を示している。図8(c)は、記番号テンプレートY2を利用して、同図(b)に示す記番号画像201上で、記番号210の位置を特定した状態を示している。図8(d)は、記番号テンプレートY1を利用して、同図(b)に示す記番号画像201上で、記番号210の位置を特定した状態を示している。なお、図8(a)には紙幣画像200の一部を示しているが、紙幣画像200は、図2(b)に示すように紙幣全面を撮像した画像である。   FIG. 8 is a diagram for explaining a serial number template determination process performed on the banknote after the revision shown in FIG. FIG. 8A shows a banknote image 200 of a banknote after renovation of denomination B, and FIG. 8B shows a serial number image 201 obtained by cutting out a partial region including the serial number 210 from the banknote image 200. . FIG. 8C shows a state in which the position of the serial number 210 is specified on the serial number image 201 shown in FIG. 8B using the serial number template Y2. FIG. 8D shows a state where the position of the serial number 210 is specified on the serial number image 201 shown in FIG. 8B using the serial number template Y1. 8A shows a part of the banknote image 200, the banknote image 200 is an image obtained by imaging the entire banknote as shown in FIG. 2B.

記番号テンプレート決定処理を開始した記番号テンプレート決定部42は、まず、図8(a)に示す紙幣画像200から、記番号210が印刷されている部分領域を切り出して、同図(b)に示す記番号画像201を取得する(図6ステップS11)。記番号画像201は、記番号210の周囲の模様や文字等の余計な部分をなるべく含まないように紙幣画像200から切り出されるが、記番号画像201として切り出す部分領域の位置及び大きさを示す情報は、記番号認識条件31に含まれている。   The serial number template determination unit 42 that has started the serial number template determination process first cuts out a partial area on which the serial number 210 is printed from the banknote image 200 shown in FIG. The serial number image 201 shown is acquired (step S11 in FIG. 6). The serial number image 201 is cut out from the banknote image 200 so as not to include extra portions such as patterns and characters around the serial number 210 as much as possible, but information indicating the position and size of the partial area to be cut out as the serial number image 201 Is included in the serial number recognition condition 31.

記番号テンプレート決定部42は、記番号認識条件31に設定されている情報に基づいて、記憶部30の記番号テンプレートデータ32から、図7(b)に示す1つ目の記番号テンプレートY2(220)を読み込む(図6ステップS12)。そして、記番号テンプレート決定部42は、記番号テンプレートY2(220)で、図8(b)に示す記番号画像201上を走査して、図8(c)に示すように、記番号210の位置を特定する(ステップS13)。すなわち、記番号テンプレートY2(220)のテンプレート評価値が最大値を示す位置を特定する。そして、記番号テンプレート決定部42は、図8(c)に示す位置で得られたテンプレート評価値(最大値)を、記番号テンプレートY2(220)のテンプレート評価値E1とする。なお、これらの処理は、図5で説明した記番号画像取得部41による処理と同様に行われる。   Based on the information set in the serial number recognition condition 31, the serial number template determination unit 42 uses the first serial number template Y <b> 2 (FIG. 7B) from the serial number template data 32 in the storage unit 30. 220) is read (step S12 in FIG. 6). Then, the serial number template determining unit 42 scans the serial number image 201 shown in FIG. 8B with the serial number template Y2 (220), and as shown in FIG. The position is specified (step S13). That is, the position where the template evaluation value of the serial number template Y2 (220) shows the maximum value is specified. Then, the serial number template determination unit 42 sets the template evaluation value (maximum value) obtained at the position shown in FIG. 8C as the template evaluation value E1 of the serial number template Y2 (220). These processes are performed in the same manner as the process by the serial number image acquisition unit 41 described in FIG.

記番号テンプレートY2のテンプレート評価値E1を取得すると、記番号テンプレート決定部42は、評価対象となる記番号テンプレートが残っているか否かを判定する(図6ステップS14)。図4に示すように、記番号認識条件31では、金種Bの紙幣について、記番号テンプレートY1も評価対象として設定されている。このため、記番号テンプレート決定部42は、評価対象となる記番号テンプレートY1が残っていると判定して(ステップS14;No)、記憶部30の記番号テンプレートデータ32から、図7(a)に示す2つ目の記番号テンプレートY1(120)を読み出す(図6ステップS12)。   When the template evaluation value E1 of the serial number template Y2 is acquired, the serial number template determination unit 42 determines whether or not the serial number template to be evaluated remains (step S14 in FIG. 6). As shown in FIG. 4, in the serial number recognition condition 31, the serial number template Y <b> 1 is also set as the evaluation target for the banknote of the denomination B. Therefore, the serial number template determination unit 42 determines that the serial number template Y1 to be evaluated remains (step S14; No), and from the serial number template data 32 in the storage unit 30, FIG. The second serial number template Y1 (120) shown in FIG. 6 is read (step S12 in FIG. 6).

記番号テンプレートY1(120)を読み込んだ記番号テンプレート決定部42は、記番号テンプレートY1(120)で、図8(b)に示す記番号画像201上を走査して、図8(d)に示すように、記番号210の位置を特定する(図6ステップS13)。すなわち、記番号テンプレートY1(120)のテンプレート評価値が最大値を示す位置を特定する。そして、記番号テンプレート決定部42は、図8(d)に示す位置で得られたテンプレート評価値(最大値)を、記番号テンプレートY1(120)のテンプレート評価値E2とする。図8(d)に示すように、金種Bの改刷前紙幣用に準備された記番号テンプレートY1(120)を利用して、改刷後紙幣の記番号画像201上で記番号210の位置を特定すると、記番号210の一部の桁の文字が、記番号テンプレートY1(120)の文字枠からずれた状態となる。   The serial number template determination unit 42 that has read the serial number template Y1 (120) scans the serial number image 201 shown in FIG. 8B with the serial number template Y1 (120), and displays FIG. 8D. As shown, the position of serial number 210 is specified (step S13 in FIG. 6). That is, the position where the template evaluation value of the serial number template Y1 (120) shows the maximum value is specified. The serial number template determination unit 42 sets the template evaluation value (maximum value) obtained at the position shown in FIG. 8D as the template evaluation value E2 of the serial number template Y1 (120). As shown in FIG. 8D, using the serial number template Y1 (120) prepared for the banknote before the reprint of the denomination B, the serial number 210 of the serial number image 201 of the banknote after the reform is used. When the position is specified, the characters of some digits of the serial number 210 are shifted from the character frame of the serial number template Y1 (120).

記番号テンプレートY1のテンプレート評価値E2を取得すると、記番号テンプレート決定部42は、評価対象となる記番号テンプレートが残っているか否かを判定する(図6ステップS14)。そして、図4に示す記番号認識条件31から、金種Bの紙幣について評価対象として設定された2種類の記番号テンプレートY1、Y2の評価を終えたことを認識すると(ステップS14;Yes)、記番号テンプレート決定部42は、評価値を求めた2種類の記番号テンプレートY1、Y2の中から、記番号210の文字認識に利用する記番号テンプレートを決定する(ステップS15)。   When the template evaluation value E2 of the serial number template Y1 is acquired, the serial number template determination unit 42 determines whether or not the serial number template to be evaluated remains (step S14 in FIG. 6). And if it recognizes from the serial number recognition conditions 31 shown in FIG. 4 that the evaluation of two types of serial number templates Y1 and Y2 set as the evaluation object for the banknote of the denomination B is completed (step S14; Yes), The serial number template determination unit 42 determines a serial number template to be used for character recognition of the serial number 210 from the two types of serial number templates Y1 and Y2 for which evaluation values have been obtained (step S15).

具体的には、記番号テンプレートY2のテンプレート評価値E1と、記番号テンプレートY1のテンプレート評価値E2とを比較して、評価値が大きい(評価が高い)記番号テンプレートを記番号210の文字認識に利用するよう決定する。   Specifically, the template evaluation value E1 of the serial number template Y2 is compared with the template evaluation value E2 of the serial number template Y1, and a serial number template having a large evaluation value (high evaluation) is recognized by the character of the serial number 210. Decide to use.

テンプレート評価値は、記番号テンプレートを形成する各余白枠の枠内に文字を含まず、かつ、各文字枠の枠内に、対応する記番号各桁の文字を含む状態となったときに最大値を示し、余白枠に文字を含んだり文字枠から文字が外れたりすると評価値が下がるよう設定されている。このため、図8(b)に示す改刷後紙幣の記番号画像201では、図8(c)に示す記番号テンプレートY2(220)のテンプレート評価値E1の方が、図8(d)に示す記番号テンプレートY1(120)のテンプレート評価値E2より大きくなる。この結果、記番号テンプレート決定部42は、改刷後紙幣の記番号210の文字認識に利用する記番号テンプレートは記番号テンプレートY2(220)であると決定して(図6ステップS15)、記番号テンプレート決定処理を終了する。   The template evaluation value is maximum when no character is included in each margin frame forming the serial number template, and each character frame includes characters of the corresponding serial number. This value is set so that the evaluation value decreases when the margin frame contains a character or the character falls outside the character frame. For this reason, in the serial number image 201 of the banknote after revision shown in FIG. 8 (b), the template evaluation value E1 of the serial number template Y2 (220) shown in FIG. 8 (c) is shown in FIG. 8 (d). It becomes larger than the template evaluation value E2 of the serial number template Y1 (120) shown. As a result, the serial number template determination unit 42 determines that the serial number template used for character recognition of the serial number 210 of the banknote after reprinting is the serial number template Y2 (220) (step S15 in FIG. 6). The number template determination process ends.

こうして、記番号テンプレート決定部42によって、記番号210の文字認識に利用する記番号テンプレートが決定されると(図3ステップS5)、記番号画像取得部41が、決定された記番号テンプレートY2(220)を利用して、記番号210を形成する各桁の文字を1文字ずつ含む部分領域を切り出した文字画像を取得する(ステップS9)。   Thus, when the serial number template determining unit 42 determines the serial number template to be used for character recognition of the serial number 210 (step S5 in FIG. 3), the serial number image acquiring unit 41 determines the serial number template Y2 ( 220), a character image obtained by cutting out a partial region including one character of each digit forming the serial number 210 is obtained (step S9).

具体的には、記番号テンプレートY2(220)を利用して記番号画像201上で記番号210の位置を特定した図8(c)に示す位置で、各文字枠224〜232で囲まれる部分領域を切り出して9つの文字画像を取得する。そして、文字認識部43が、各文字画像に含まれる文字の文字認識を行う(図3ステップS10)。記憶部30の文字認識用データ33には、記番号各桁の文字に対応する辞書データが予め準備されているので、文字認識部43は、各文字画像に対応する辞書データを利用して、各文字画像302の文字認識を行う。なお、各金種の紙幣の記番号各桁の文字と、文字認識用の辞書データとの関係を示す情報は、記憶部30の記番号認識条件31に含まれている。   Specifically, the portion surrounded by the character frames 224 to 232 at the position shown in FIG. 8C in which the position of the serial number 210 is specified on the serial number image 201 using the serial number template Y2 (220). The region is cut out to obtain nine character images. Then, the character recognition unit 43 performs character recognition of characters included in each character image (step S10 in FIG. 3). Since the character recognition data 33 in the storage unit 30 is prepared in advance with dictionary data corresponding to the character of each serial number, the character recognition unit 43 uses the dictionary data corresponding to each character image, Character recognition of each character image 302 is performed. Information indicating the relationship between the character of each serial number of the banknote of each denomination and the dictionary data for character recognition is included in the serial number recognition condition 31 of the storage unit 30.

このように、2種類の記番号テンプレートY1、Y2を評価して、記番号210を文字認識するための記番号テンプレートY2を決定することにより、図8(b)に示す改刷後紙幣の記番号画像201上で、図8(c)に示すように記番号210の位置を特定することができる。そして、記番号210を形成する各桁の文字を1文字ずつ含む文字画像を取得することにより、正確な文字認識を行うことができる。   In this way, by evaluating the two types of serial number templates Y1 and Y2 and determining the serial number template Y2 for character recognition of the serial number 210, the banknotes after reprinting shown in FIG. On the number image 201, the position of the serial number 210 can be specified as shown in FIG. An accurate character recognition can be performed by acquiring a character image including one character of each digit forming the serial number 210.

図2(a)に示す金種Bの改刷前紙幣を記番号読み取りの処理対象としている場合にも、同様に、紙幣画像100を取得して識別部20によって金種Bの紙幣であると識別した後、図4に示す記番号認識条件31に基づいて、2種類の記番号テンプレートY1、Y2の中から、改刷前紙幣に対応する記番号テンプレートを選択するための記番号テンプレート決定処理が行われる。   Similarly, when the banknote before reprinting of the denomination B shown in FIG. 2A is the processing target for reading the serial number, the banknote image 100 is acquired and the identification unit 20 determines that the banknote is of the denomination B. After identification, based on the serial number recognition condition 31 shown in FIG. 4, a serial number template determination process for selecting a serial number template corresponding to the banknote before revision from two types of serial number templates Y1 and Y2. Is done.

図9は、図2(a)に示す改刷前紙幣について行われる記番号テンプレート決定処理を説明する図である。図9(a)に示すように、記番号テンプレートY1(120)を利用して、改刷前紙幣の記番号画像101上で記番号110の位置を特定した場合には、記番号110を形成する各桁の文字が、記番号テンプレートY1(120)の対応する各文字枠内に含まれる状態となる。一方、図9(b)に示すように、記番号テンプレートY2(220)を利用して記番号110の位置を特定した場合には、記番号110の一部の桁の文字が、記番号テンプレートY2(220)の文字枠からずれた状態となる。   FIG. 9 is a diagram for explaining a serial number template determination process performed for the banknote before the revision shown in FIG. As shown in FIG. 9A, when the position of the serial number 110 is specified on the serial number image 101 of the banknote before revision using the serial number template Y1 (120), the serial number 110 is formed. The character of each digit to be included is included in each corresponding character frame of the serial number template Y1 (120). On the other hand, as shown in FIG. 9B, when the position of the serial number 110 is specified using the serial number template Y2 (220), the characters of some digits of the serial number 110 are converted into the serial number template. The state is shifted from the character frame of Y2 (220).

このため、図9(a)に示す記番号テンプレートY1(120)のテンプレート評価値の方が、同図(b)に示す記番号テンプレートY2(220)の評価値より大きくなる。この結果、記番号テンプレート決定部42は、改刷前紙幣の記番号110の文字認識に利用する記番号テンプレートは記番号テンプレートY1(120)であると決定する。そして、記番号テンプレートが決定されると、記番号画像取得部41が、決定された記番号テンプレートY1(120)を利用して、記番号210を形成する各桁の文字を1文字ずつ含む9つの文字画像を取得し、文字認識部43が、各文字画像に含まれる文字の文字認識を行う。この結果、記番号110を形成する各桁の文字を1文字ずつ含む文字画像を利用して正確に文字を認識することができる。   For this reason, the template evaluation value of the serial number template Y1 (120) shown in FIG. 9A is larger than the evaluation value of the serial number template Y2 (220) shown in FIG. 9B. As a result, the serial number template determining unit 42 determines that the serial number template used for character recognition of the serial number 110 of the banknote before reprinting is the serial number template Y1 (120). When the serial number template is determined, the serial number image acquisition unit 41 uses the determined serial number template Y1 (120) to include one character for each digit forming the serial number 210. Two character images are acquired, and the character recognition unit 43 performs character recognition of the characters included in each character image. As a result, a character can be accurately recognized using a character image including one character of each digit forming the serial number 110.

このように、紙幣処理装置1では、記番号認識条件31を利用して、識別部20による1つの金種識別結果に複数の記番号テンプレートを割り当て、各記番号テンプレートを評価するように設定することができる。また、紙幣の記番号を撮像した画像上で、各記番号テンプレートを移動させながら、記番号を形成する各文字が、記番号テンプレートの対応する各文字枠内に含まれる位置を探索して、記番号テンプレートの各文字枠と記番号を形成する各文字との対応を評価するテンプレート評価値を算出することができる。そして、各記番号テンプレートについて算出したテンプレート評価値を比較することにより、記番号の文字認識に利用する記番号テンプレートを決定することができる。決定した記番号テンプレートを利用すれば、記番号画像から、記番号各桁の文字を1文字ずつ含む文字画像を取得することができるので、記番号の文字認識を正確に行うことができる。   Thus, in the banknote processing apparatus 1, using the serial number recognition condition 31, a plurality of serial number templates are assigned to one denomination identification result by the identification unit 20, and each serial number template is set to be evaluated. be able to. Moreover, on the image which imaged the serial number of a banknote, while each serial number template is moved, each character which forms a serial number searches for the position included in each character frame corresponding to the serial number template, A template evaluation value for evaluating the correspondence between each character frame of the serial number template and each character forming the serial number can be calculated. And the serial number template utilized for the character recognition of a serial number can be determined by comparing the template evaluation value calculated about each serial number template. If the determined serial number template is used, a character image including one character of each digit of the serial number can be acquired from the serial number image, so that the character recognition of the serial number can be performed accurately.

なお、紙幣処理装置1では、評価対象とする記番号テンプレートが複数種類ある場合に、記番号認識条件31で、記番号テンプレートの評価順序を指定することも可能となっている。また、全ての記番号テンプレートについてテンプレート評価値を算出して、文字認識に利用する記番号テンプレートを決定する例を示したが、テンプレート評価値が予め設定された閾値を超える記番号テンプレートが現れた場合には、残りの記番号テンプレートの評価は行わずに、閾値を超えた記番号テンプレートを文字認識に利用するよう決定する設定とすることもできる。   Note that in the banknote handling apparatus 1, when there are a plurality of types of serial number templates to be evaluated, it is also possible to specify the evaluation order of the serial number templates in the serial number recognition condition 31. Moreover, although the template evaluation value was calculated about all the serial number templates and the serial number template used for character recognition was determined, the serial number template in which a template evaluation value exceeded the preset threshold value appeared In this case, the remaining serial number templates may not be evaluated, and the serial number template exceeding the threshold may be determined to be used for character recognition.

例えば、市場で流通する紙幣のほとんどが改刷前紙幣で、改刷後紙幣の流通が開始されたばかりの場合には、記番号認識条件31で、改刷前紙幣用の記番号テンプレートを先に評価して、改刷後紙幣用の記番号テンプレートを後で評価するように処理順序を設定する。そして、改刷前紙幣用の記番号テンプレートの評価値が所定の閾値を超えて、記番号が改刷前紙幣のものであることが明らかとなった場合には、改刷後テンプレートの評価を省略するように設定する。これにより、記番号テンプレートの選択処理に係る処理負荷を軽減することができる。   For example, when most of the banknotes distributed in the market are banknotes before reprinting and distribution of banknotes after reprinting has just started, the serial number template for banknotes before reprinting is first set according to the serial number recognition condition 31. The processing order is set so that the serial number template for banknotes after reprinting is evaluated later. If the evaluation value of the serial number template for the banknote before the revision exceeds the predetermined threshold and it is clear that the serial number is that of the banknote before the revision, the template after the revision is evaluated. Set to omit. Thereby, the processing load concerning the selection processing of a serial number template can be reduced.

また、紙幣処理装置1の識別部20が、図2に示す改刷前紙幣及び改刷後紙幣の両方を、同一の金種Bであると識別する態様に限定されるものではなく、例えば、改刷前の紙幣を金種B1、改刷後の紙幣を金種B2というように、識別部20が紙幣の新旧を区別して識別する場合にも、複数の記番号テンプレートを評価して、文字認識に利用する記番号テンプレートを決定するように記番号認識条件31を設定することができる。   Moreover, the identification part 20 of the banknote processing apparatus 1 is not limited to the aspect which identifies both the banknote before reprinting shown in FIG. 2 and the banknote after reprinting as the same denomination B, for example, Even when the discriminating unit 20 distinguishes between new and old banknotes such as a denomination B1 for a banknote before reprinting and a denomination B2 for a banknote after reprinting, a plurality of serial number templates are evaluated and characters The serial number recognition condition 31 can be set so as to determine the serial number template used for recognition.

図10は、記番号認識条件31の別の例を示す図である。例えば、図10に示すように、識別部20が、金種Bの改刷前紙幣をB1紙幣、金種Bの改刷後紙幣をB2紙幣と区別して識別する場合に、識別部20による識別結果がB1であれば、B1紙幣の記番号のフォーマットに合わせて準備した記番号テンプレートY1と、B2紙幣の記番号フォーマットに合わせて準備した記番号テンプレートY2とを対象として記番号テンプレート決定処理を実行し、記番号の文字認識に利用する記番号テンプレートを決定するように設定する。また、識別部20による識別結果がB2である場合にも、B1紙幣用の記番号テンプレートY1及びB2紙幣用の記番号テンプレートY2を対象として記番号テンプレート決定処理を実行し、記番号の文字認識に利用する記番号テンプレートを決定するように設定する。この設定に基づいて記番号テンプレート決定処理を実行することにより、B1紙幣及びB2紙幣のいずれを処理対象とする場合でも、各紙幣に応じた記番号テンプレートを決定して記番号を正確に読み取ることができる。   FIG. 10 is a diagram illustrating another example of the serial number recognition condition 31. For example, as shown in FIG. 10, when the identification unit 20 distinguishes and identifies the banknotes before denomination of the denomination B as B1 banknotes and the banknotes after denomination of the denomination B as B2 banknotes, identification by the identification unit 20 If the result is B1, serial number template determination processing is performed for the serial number template Y1 prepared according to the serial number format of the B1 banknote and the serial number template Y2 prepared according to the serial number format of the B2 banknote. Execute and set to determine the serial number template to be used for serial number character recognition. Further, even when the identification result by the identification unit 20 is B2, the serial number template determination process is executed for the serial number template Y1 for the B1 banknote and the serial number template Y2 for the B2 banknote, and the serial number character recognition is performed. Set to determine the serial number template to be used. By executing the serial number template determination process based on this setting, the serial number template corresponding to each banknote is determined and the serial number is accurately read regardless of whether the B1 banknote or the B2 banknote is to be processed. Can do.

例えば、識別部20によってB1紙幣と識別された紙幣について記番号テンプレート決定処理を行ったにも拘わらず、B1紙幣用の記番号テンプレートY1のテンプレート評価値より、B2紙幣用の記番号テンプレートY2のテンプレート評価値の方が高い評価となった場合には、記番号テンプレート決定部42は、識別部20による識別結果と、テンプレート評価値の評価結果とが矛盾することを報知する信号を出力する。これを受けて、識別部20による識別結果が誤っている可能性があることが認識した紙幣処理装置1では、所定の処理を実行することができる。例えば、識別部20による識別結果に、B1紙幣とする識別結果が誤っている可能性を示す情報を付加する処理、識別部20による識別結果をB1紙幣からB2紙幣に修正する処理、識別部20による金種識別の処理内容や判定用閾値を変更して金種を再識別する処理等を実行するように設定することができる。   For example, although the serial number template determination process is performed on the banknote identified as the B1 banknote by the identification unit 20, the serial number template Y2 for the B2 banknote is determined based on the template evaluation value of the serial number template Y1 for the B1 banknote. When the template evaluation value is higher, the serial number template determination unit 42 outputs a signal notifying that the identification result by the identification unit 20 and the evaluation result of the template evaluation value contradict each other. In response to this, the banknote processing apparatus 1 that has recognized that the identification result by the identification unit 20 may be incorrect can execute a predetermined process. For example, a process of adding information indicating the possibility that the identification result for the B1 banknote is incorrect to the identification result by the identification unit 20, a process for correcting the identification result by the identification unit 20 from the B1 banknote to the B2 banknote, the identification unit 20 It is possible to set so as to execute a process of re-identifying the denomination by changing the denomination identifying process content and the threshold for determination.

具体的には、例えば、識別部20が、解像度の低い画像を利用して紙幣の金種識別を行っている場合等に、識別部20による金種識別の結果よりも、記番号テンプレート決定部42による記番号テンプレート決定処理の結果を優先するように設定する。このように設定した場合、例えば、識別部20がB1紙幣であると識別した紙幣について記番号テンプレート決定処理が行われ、記番号テンプレート決定部42が、この紙幣に対応する記番号テンプレートはB1紙幣用の記番号テンプレートY1であると決定すると、この紙幣はB1紙幣であるとする識別部20の金種識別結果が維持される。一方、識別部20がB1紙幣であると識別したにも拘わらず、記番号テンプレート決定部42が、この紙幣に対応する記番号テンプレートはB2紙幣用の記番号テンプレートY2であると決定した場合には、識別部20と記番号テンプレート決定部42の間で処理結果に矛盾があることを示す報知信号が記番号テンプレート決定部42から出力される。この報知信号が出力されると、制御部40は、識別部20による処理結果よりも記番号テンプレート決定部42による処理結果を優先して、この紙幣の金種はB2であると決定する。このように、紙幣処理装置1では、識別部20によって識別された紙幣の金種と、記番号テンプレート決定部42によって、この紙幣に対応すると決定された記番号テンプレートの種類とに基づいて、紙幣の金種の識別結果を決定することも可能となっている。   Specifically, for example, when the identification unit 20 performs denomination identification of banknotes using an image with low resolution, the serial number template determination unit is more than the result of denomination identification by the identification unit 20. 42 is set so that the result of the serial number template determination processing by 42 is prioritized. When set in this way, for example, the serial number template determination process is performed on the banknote identified by the identifying unit 20 as a B1 banknote, and the serial number template determining unit 42 corresponds to the banknote as the serial number template. If it determines that it is the serial number template Y1 for use, the denomination identification result of the identification part 20 that this banknote is a B1 banknote will be maintained. On the other hand, when the identification number template determination unit 42 determines that the serial number template corresponding to the banknote is the serial number template Y2 for the B2 banknote, even though the identification unit 20 has identified it as a B1 banknote. The serial number template determination unit 42 outputs a notification signal indicating that there is a contradiction in processing results between the identification unit 20 and the serial number template determination unit 42. When this notification signal is output, the control unit 40 prioritizes the processing result by the serial number template determination unit 42 over the processing result by the identification unit 20, and determines that the denomination of the banknote is B2. As described above, in the banknote processing apparatus 1, the banknote is based on the denomination of the banknote identified by the identification unit 20 and the type of the serial number template determined by the serial number template determination unit 42 to correspond to this banknote. It is also possible to determine the identification result of the denomination.

また、記番号認識条件31では、例えば、図10に示す金種Cの紙幣のように、外観が略同じで識別部20によって区別できない可能性があるC1紙幣〜C3紙幣については、C1紙幣の記番号フォーマットに合わせて準備した記番号テンプレートZ1、C2紙幣の記番号フォーマットに合わせて準備した記番号テンプレートZ2、及びC3紙幣の記番号フォーマットに合わせて準備した記番号テンプレートZ3の中から、記番号の文字認識に利用する記番号テンプレートを選択するように設定して、識別部20によって他の紙幣と明確に区別して識別できるC4紙幣については、記番号テンプレートを選択する処理は行わずに、C4紙幣の記番号フォーマットに合わせて準備した記番号テンプレートZ4を利用するように設定することもできる。   Moreover, in serial number recognition conditions 31, about the C1 banknote-C3 banknote which may be indistinguishable by the identification part 20, for example like the banknote of the money type C shown in FIG. Serial number template Z1 prepared according to serial number format, serial number template Z2 prepared according to serial number format of C2 banknote, and serial number template Z3 prepared according to serial number format of C3 banknote For C4 banknotes, which are set to select a serial number template to be used for character recognition of numbers and can be clearly distinguished from other banknotes by the identification unit 20, the process of selecting the serial number template is not performed. It can be set to use the serial number template Z4 prepared according to the serial number format of C4 banknotes. That.

また、記番号テンプレート決定処理については、各記番号テンプレートのテンプレート評価値を算出する処理を1つずつ順に行う他、複数の処理を並行して行うように設定することもできる。この場合も、記番号認識条件31で、処理を並行して行う記番号テンプレートの種類を指定できるようになっている。   In addition, the serial number template determination process can be set to perform a plurality of processes in parallel in addition to sequentially performing the process of calculating the template evaluation value of each serial number template. Also in this case, the serial number recognition condition 31 allows the type of serial number template to be processed in parallel to be specified.

例えば、紙幣処理装置1内に、制御部40を複数設けて、記番号テンプレート決定処理の並列処理を実現する。そして、図10に示すように、記番号認識条件31の評価処理方法の項目(指定情報)で、記番号テンプレートの評価処理の実行方法を指定する。例えば、第1制御部及び第2制御部の2つの制御部40を設けて、図10に示すように、識別部20による識別結果がB1紙幣又はB2紙幣であった場合には、第1制御部で記番号テンプレートY1を評価する処理を行い、この処理と並行して、第2制御部で記番号テンプレートY2を評価する処理を行うよう指定することができる。また、識別部20による識別結果がC1紙幣、C2紙幣又はC3紙幣であった場合には、第1制御部で記番号テンプレートZ1を評価する処理を行い、この処理と並行して、第2制御部で記番号テンプレートZ2及びZ3を評価する処理を行うよう指定することができる。このとき、第2制御部では、記番号テンプレートZ2を評価する処理を先に行った後に、記番号テンプレートZ3を評価するように処理順序を指定することもできる。記番号テンプレート決定部42は、評価処理方法の項目で設定された通りに記番号テンプレート決定処理を実行する。複数の制御部40を設けて、各記番号テンプレートを評価する処理を並列処理として実行すれば、記番号の文字認識にかかる処理時間を短縮することができる。   For example, a plurality of control units 40 are provided in the banknote processing apparatus 1 to realize parallel processing of serial number template determination processing. Then, as shown in FIG. 10, the execution method of the serial number template evaluation process is specified in the item (specification information) of the evaluation processing method of the serial number recognition condition 31. For example, when the two control units 40 of the first control unit and the second control unit are provided and the identification result by the identification unit 20 is a B1 banknote or a B2 banknote as shown in FIG. 10, the first control is performed. It is possible to specify that the serial number template Y1 is evaluated by the unit and in parallel with this process, the second control unit evaluates the serial number template Y2. Moreover, when the identification result by the identification part 20 is a C1 banknote, a C2 banknote, or a C3 banknote, the process which evaluates the serial number template Z1 in a 1st control part is performed, and 2nd control is performed in parallel with this process. Can be specified to perform the process of evaluating the serial number templates Z2 and Z3. At this time, in the second control unit, the processing order may be specified so that the serial number template Z3 is evaluated after the serial number template Z2 is first evaluated. The serial number template determination unit 42 executes serial number template determination processing as set in the item of the evaluation processing method. If the process which evaluates each serial number template is performed as a parallel process by providing the some control part 40, the processing time concerning the character recognition of a serial number can be shortened.

なお、並列処理の数については特に限定されず、制御部40の機能に応じて3つ以上の処理を並行して行う態様であってもよい。また、制御部40を複数設けるとしたが、1つの制御部が記番号画像取得部41、記番号テンプレート決定部42及び文字認識部43を有する一方で、他の制御部は記番号テンプレート決定部42のみを有する態様であっても構わない。   Note that the number of parallel processes is not particularly limited, and three or more processes may be performed in parallel according to the function of the control unit 40. Although a plurality of control units 40 are provided, one control unit includes a serial number image acquisition unit 41, a serial number template determination unit 42, and a character recognition unit 43, while the other control unit includes a serial number template determination unit. It is possible to have only 42.

本実施形態では、紙幣に印刷されている記番号のフォーマットが異なる例として、記番号の文字サイズが異なる例を示したが、記番号フォーマットの差違がこれに限定されるものではなく、記番号を形成する各桁の文字の文字間隔が異なる場合、記番号を形成する各桁の文字の色が異なる場合等にも、同様に、各記番号フォーマットに応じた記番号テンプレートを予め準備して、記番号の文字認識に利用する記番号フォーマットを選択することができる。例えば、各記番号フォーマットで記番号を形成する文字の色が異なる場合には、記番号テンプレートに含まれる文字枠内で背景と異なる色の画素を抽出して、この画素の色が、文字枠について設定された色と一致する場合に、この文字枠の評価値が高くなるように評価値の算出方法を設定すればよい。   In the present embodiment, as an example in which the serial number format printed on the banknote is different, an example in which the serial number has a different character size is shown, but the difference in the serial number format is not limited to this, and the serial number Similarly, when the character spacing of each digit forming the character number is different, or when the character color of each digit forming the serial number is different, a serial number template corresponding to each serial number format is prepared in advance. The serial number format used for character recognition of serial numbers can be selected. For example, if the color of the characters forming the serial number is different in each serial number format, a pixel of a color different from the background is extracted from the character frame included in the serial number template, and the color of this pixel is the character frame. The evaluation value calculation method may be set so that the evaluation value of the character frame becomes high when the color matches the color set for.

上述してきたように、本実施形態に係る紙幣処理装置1では、紙幣を撮像した画像から、紙幣に印刷されている記番号各桁の文字を文字認識するために利用する記番号テンプレートを紙幣の種類毎に準備して、識別部20による1つの識別結果に複数の記番号テンプレートを割り当てることができる。そして、識別部20による識別結果が得られた際に、この識別結果に複数種類の記番号テンプレートが割り当てられている場合には、これらの記番号テンプレートの中から、記番号の文字認識に利用する記番号テンプレートを決定することができる。例えば、外観が略同じであるが記番号フォーマットが異なる複数種類の紙幣がある場合でも、各紙幣の記番号フォーマットに応じた記番号テンプレートを予め準備しておくことにより、紙幣の外観等に基づいて紙幣の種類を識別した後、この紙幣用に準備された記番号テンプレートを決定して、記番号を正確に文字認識することができる。   As described above, in the banknote handling apparatus 1 according to the present embodiment, the serial number template used for character recognition of the characters of each serial number printed on the banknote from the image obtained by imaging the banknote is the banknote number. A plurality of serial number templates can be assigned to one identification result by the identification unit 20 by preparing for each type. When a plurality of types of serial number templates are assigned to the identification result when the identification result by the identification unit 20 is obtained, it is used for character recognition of the serial number from these serial number templates. The serial number template to be determined can be determined. For example, even when there are a plurality of types of banknotes having the same appearance but different serial number formats, by preparing in advance a serial number template corresponding to the serial number format of each banknote, based on the external appearance of the banknotes, etc. After identifying the type of banknote, the serial number template prepared for the banknote is determined, and the serial number can be accurately recognized.

以上のように、本発明に係る紙幣処理装置及び紙幣処理方法は、外観は略同じであるが記番号フォーマットが異なる複数種類の紙幣がある場合でも各紙幣の記番号を正しく読み取るために有用である。   As described above, the banknote processing apparatus and the banknote processing method according to the present invention are useful for correctly reading the serial number of each banknote even when there are a plurality of types of banknotes having the same appearance but different serial number formats. is there.

1 紙幣処理装置
10 紙幣画像撮像部
20 識別部
30 記憶部
40 制御部
41 記番号画像取得部
42 記番号テンプレート決定部
43 文字認識部
DESCRIPTION OF SYMBOLS 1 Banknote processing apparatus 10 Banknote image imaging part 20 Identification part 30 Storage part 40 Control part 41 Serial number image acquisition part 42 Serial number template determination part 43 Character recognition part

Claims (7)

紙幣の記番号を読み取る紙幣処理装置であって、
記番号フォーマットが異なる同一金種の紙幣それぞれについて、記番号を撮像した記番号画像上で前記記番号を形成する各文字の位置を特定するために各記番号フォーマットに合わせて準備した複数種類の記番号テンプレートが保存されている記憶部と、
紙幣を識別する識別部と、
前記識別部による紙幣の識別結果に対応する複数種類の記番号テンプレートの中から、前記紙幣の記番号フォーマットに対応する記番号テンプレートを決定する記番号テンプレート決定部と、
前記記番号テンプレート決定部によって決定された記番号テンプレートを利用して前記紙幣の記番号を文字認識する文字認識部と
を備えることを特徴とする紙幣処理装置。
A bill processing apparatus for reading a serial number of a bill,
For each banknote of the same denomination with a different serial number format, a plurality of types prepared according to each serial number format in order to identify the position of each character forming the serial number on the serial number image obtained by imaging the serial number A storage unit storing a serial number template;
An identification unit for identifying bills;
A serial number template determination unit that determines a serial number template corresponding to the serial number format of the banknote from a plurality of types of serial number templates corresponding to the banknote identification result by the identification unit;
A banknote processing apparatus comprising: a character recognition unit that recognizes the serial number of the banknote using the serial number template determined by the serial number template determination unit.
前記記憶部には、複数種類の記番号テンプレートの中から文字認識用の記番号テンプレートを決定する記番号テンプレート決定処理を実行する必要があるか否かを示す情報、及び前記記番号テンプレート決定処理の処理対象となる記番号テンプレートの種類を示す情報が、前記識別部による識別結果に対応付けて設定された記番号認識条件が保存されており、
前記記番号テンプレート決定部は、前記識別部による識別結果及び前記記番号認識条件に基づいて、前記記番号テンプレート決定処理を実行する
ことを特徴とする請求項1に記載の紙幣処理装置。
In the storage unit, information indicating whether it is necessary to execute a serial number template determination process for determining a serial number template for character recognition from a plurality of types of serial number templates, and the serial number template determination process Information indicating the type of the serial number template to be processed is stored as a serial number recognition condition set in association with the identification result by the identification unit,
The banknote processing apparatus according to claim 1, wherein the serial number template determination unit executes the serial number template determination process based on an identification result by the identification unit and the serial number recognition condition.
前記記番号認識条件には、複数種類の記番号テンプレートそれぞれを評価する処理の実行方法を指定する指定情報が含まれており、
前記記番号テンプレート決定部は、前記指定情報に基づいて各記番号テンプレートを評価する処理を実行することを特徴とする請求項2に記載の紙幣処理装置。
The serial number recognition condition includes designation information for designating an execution method of a process for evaluating each of a plurality of types of serial number templates.
The banknote processing apparatus according to claim 2, wherein the serial number template determination unit executes a process of evaluating each serial number template based on the designation information.
前記記番号テンプレートは、記番号画像上で、記番号を形成する各文字を内部に含むように設定された複数の文字枠を含み、
前記記番号テンプレート決定部は、前記記番号テンプレートで記番号画像上を走査して、記番号を形成する各文字がそれぞれ対応する文字枠内に含まれたことを評価するテンプレート評価値を算出して、前記記番号の文字認識に利用する記番号テンプレートを決定する
ことを特徴とする請求項1〜3のいずれか1項に記載の紙幣処理装置。
The serial number template includes a plurality of character frames set to include each character forming the serial number on the serial number image,
The serial number template determining unit scans a serial number image with the serial number template and calculates a template evaluation value for evaluating that each character forming the serial number is included in a corresponding character frame. And the serial number template utilized for the character recognition of the said serial number is determined, The banknote processing apparatus of any one of Claims 1-3 characterized by the above-mentioned.
前記記番号テンプレートは、前記記番号画像上で、記番号を形成する各文字がそれぞれ対応する前記文字枠内に含まれる位置で、文字を含まない部分領域に設定された背景枠を含み、
前記記番号テンプレート決定部は、前記テンプレート評価値で、前記背景枠内に文字が含まれないことを評価する
ことを特徴とする請求項4に記載の紙幣処理装置。
The serial number template includes a background frame set in a partial area that does not include a character at a position where each character forming a serial number is included in the corresponding character frame on the serial number image,
The banknote processing apparatus according to claim 4, wherein the serial number template determination unit evaluates that the character is not included in the background frame with the template evaluation value.
前記識別部によって識別された紙幣の金種と、前記記番号テンプレート決定部によって前記紙幣に対応すると決定された記番号テンプレートの種類とに基づいて、前記紙幣の金種の識別結果を決定する
ことを特徴とする請求項1〜5のいずれか1項に記載の紙幣処理装置。
Determining the identification result of the denomination of the banknote based on the denomination of the banknote identified by the identification unit and the type of the serial number template determined to correspond to the banknote by the serial number template determination unit. The banknote processing apparatus according to any one of claims 1 to 5.
紙幣処理装置で紙幣の記番号を読み取る紙幣処理方法であって、
識別部が紙幣を識別する識別工程と、
記番号を撮像した記番号画像上で前記記番号を形成する各文字の位置を特定するために記番号フォーマットに合わせて準備された、前記識別工程で得られた紙幣の識別結果に対応する複数種類の記番号テンプレートの中から、記番号テンプレート決定部が、前記紙幣の記番号フォーマットに対応する記番号テンプレートを決定する記番号テンプレート決定工程と、
前記記番号テンプレート決定工程で決定された記番号テンプレートを利用して、文字認識部が前記紙幣の記番号を文字認識する文字認識工程と
を含んだことを特徴とする紙幣処理方法。
A banknote processing method for reading a banknote serial number with a banknote processing apparatus,
An identification step in which the identification unit identifies the banknote;
A plurality corresponding to banknote identification results obtained in the identification step , prepared in accordance with the serial number format to identify the position of each character forming the serial number on the serial number image obtained by imaging the serial number from the kind of the serial number template, serial number template determination unit, and a serial number template determination step of determining a serial number template corresponding to the serial number format of the bill,
The banknote processing method characterized by including the character recognition process in which a character recognition part recognizes the serial number of the said banknote using the serial number template determined at the said serial number template determination process.
JP2015232185A 2015-11-27 2015-11-27 Banknote processing apparatus and banknote processing method Active JP6555751B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015232185A JP6555751B2 (en) 2015-11-27 2015-11-27 Banknote processing apparatus and banknote processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015232185A JP6555751B2 (en) 2015-11-27 2015-11-27 Banknote processing apparatus and banknote processing method

Publications (2)

Publication Number Publication Date
JP2017097785A JP2017097785A (en) 2017-06-01
JP6555751B2 true JP6555751B2 (en) 2019-08-07

Family

ID=58803998

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015232185A Active JP6555751B2 (en) 2015-11-27 2015-11-27 Banknote processing apparatus and banknote processing method

Country Status (1)

Country Link
JP (1) JP6555751B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697443B (en) * 2017-10-23 2022-10-11 深圳怡化电脑股份有限公司 Paper money serial number segmentation method and device
CN109389124B (en) * 2018-10-29 2019-09-13 苏州派维斯信息科技有限公司 Receipt categories of information recognition methods
JP7337572B2 (en) 2019-07-08 2023-09-04 グローリー株式会社 Serial number reading device, paper sheet processing device, and serial number reading method
JP7372633B2 (en) * 2020-03-31 2023-11-01 ローレルバンクマシン株式会社 Paper sheet identification device and paper sheet identification method
CN112816502A (en) * 2021-01-05 2021-05-18 中钞印制技术研究院有限公司 Bill quality evaluation method, bill quality evaluation apparatus, and readable storage medium
CN117710987A (en) * 2024-02-06 2024-03-15 武汉卓目科技有限公司 Crown word size segmentation method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
JP2017097785A (en) 2017-06-01

Similar Documents

Publication Publication Date Title
JP6555751B2 (en) Banknote processing apparatus and banknote processing method
JP5624671B2 (en) Character string cutting method and character string cutting device
US7991197B2 (en) Sheet identifying apparatus and sheet identifying method
US9977957B2 (en) Method and system for identifying characters on a valuable medium
JP6925615B2 (en) Identity verification document authenticity system, method and program
WO2013140563A1 (en) System for reading paper sheet serial number, and method for reading paper sheet serial number
US9219827B2 (en) Image inspection system and image inspection method
JP6900164B2 (en) Information processing equipment, information processing methods and programs
JP2008282267A (en) Scene discrimination device and scene discrimination method
JP6342739B2 (en) Paper sheet identification apparatus, paper sheet processing apparatus, and paper sheet identification method
JP7350637B2 (en) High-speed image distortion correction for image inspection
JP2008234625A (en) Information processing method, information processor, and program
JP4946750B2 (en) Setting method, identification method and program
JP2008282085A (en) Scene discrimination device and scene discrimination method
JP6624120B2 (en) Character recognition device, character recognition method, character recognition program, and computer-readable recording medium storing character recognition program
JP2002092683A (en) Device for discriminating between true and false medium
JP2008284868A (en) Printing method, printer, and program
JP6540597B2 (en) INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, AND PROGRAM
JP6250526B2 (en) Weighing meter reader and program
CN102682308A (en) Imaging processing method and device
US20130156288A1 (en) Systems And Methods For Locating Characters On A Document
JP2009093335A (en) Identification method and program
JP7310151B2 (en) Mark selection device and image processing device
JP2009272714A (en) Image processing apparatus, image processing method, program, and recording medium with the program stored
EP4318304A1 (en) Information reading device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180913

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190419

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190507

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190521

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190611

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190704

R150 Certificate of patent or registration of utility model

Ref document number: 6555751

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150