JP4163972B2 - Reader - Google Patents
Reader Download PDFInfo
- Publication number
- JP4163972B2 JP4163972B2 JP2003034233A JP2003034233A JP4163972B2 JP 4163972 B2 JP4163972 B2 JP 4163972B2 JP 2003034233 A JP2003034233 A JP 2003034233A JP 2003034233 A JP2003034233 A JP 2003034233A JP 4163972 B2 JP4163972 B2 JP 4163972B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- processing
- coin
- processing data
- width
- 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.)
- Expired - Fee Related
Links
Images
Description
【0001】
【発明の属する技術分野】
本発明は、硬貨やメダル等を読み取るための読取装置に関するものである。
【0002】
【従来の技術】
硬貨を読み取るための読取装置としては、例えば特許文献1に記載されているような硬貨識別装置がある。この硬貨識別装置は、硬貨の画像データを画像メモリに取り込み、画像処理して硬貨データの特徴抽出等を行うことによって、硬貨を識別するものである。
【0003】
【特許文献1】
特開平9−91485号公報
【0004】
【発明が解決しようとする課題】
しかしながら、上記従来技術においては、硬貨の画像情報を画像メモリに格納した後、複雑な演算処理を行うため、硬貨の識別処理に時間がかかってしまう。処理スピードを上げるには高速CPUを使用することが考えられるが、高速CPUは高価である。また、画像取込用の大容量画像メモリも高価である。
【0005】
本発明の目的は、処理時間の短縮化及び低コスト化を図ることができる読取装置を提供することである。
【0006】
【課題を解決するための手段】
本発明の読取装置は、読取対象物を撮像する撮像手段と、撮像手段により形成された読取対象物の画像データを第1のデータと第2のデータとに二値化する二値化手段と、第1のデータが第1の所定個数連続するとき、該データを処理したこの処理データを第1のデータに設定し、第1のデータが第1の所定個数連続するものでないとき、該データを処理したこの処理データを第2のデータに設定する処理データ設定手段と、処理データ設定手段で設定された処理データにおける第2のデータの個数を積算して、読取対象物の幅を求める幅算出手段とを備えたことを特徴とするものである。
【0007】
このような読取装置において、例えば硬貨の識別を行う場合は、まず撮像手段により形成された硬貨の画像データを所定の基準値と比較して、第1のデータ(例えば「0」)と第2のデータ(例えば「1」)とに二値化する。そして、「0」が第1の所定個数連続するときは、処理データを「0」に設定し、「0」が第1の所定個数連続するものでないときは、処理データを「1」に設定する。そして、処理データの「1」の個数を積算して硬貨幅を求める。このとき、識別対象の硬貨と識別対象でない硬貨とで、処理データ設定手段で設定される処理データのパターンが異なって最終的に得られる硬貨幅の値が異なるように、二値化のための基準値及び第1の所定個数を設定する。
【0008】
このようにして読取対象物の識別を行うことにより、特徴抽出等の複雑な画像処理を行う必要がなくなる。従って、特に高速CPUを使わなくても、読取対象物の識別処理に要する時間を短縮することができる。また、読取対象物の画像データを大容量の画像メモリに取り込む必要もなくなる。このように高速CPUや大容量の画像メモリを使わなくて済むため、コスト削減を図ることができる。
【0009】
好ましくは、処理データ設定手段は、前回設定した処理データが第1のデータの場合、二値化手段により二値化されたデータが第2の所定個数連続して第2のデータのとき、処理データを第2のデータに設定し、前回設定した処理データが第2のデータの場合、二値化手段により二値化されたデータが第1の所定個数連続して第1のデータのとき、処理データを第1のデータに設定する。
【0010】
例えば、前回設定した処理データが「0」の場合、二値化データが第2の所定個数連続して「1」のときは、処理データを「1」に設定し、そうでないときは処理データを「0」に設定する。また、前回設定した処理データが「1」の場合、二値化データが第1の所定個数連続して「0」のときは、処理データを「0」に設定し、そうでないときは処理データを「1」に設定する。つまり、前回設定した処理データが「0」の場合、二値化データが「1」であっても、その「1」が第2の所定個数連続しないときは、処理データは「0」に設定される。従って、例えば撮像面に付いたゴミ等が撮像されて、二値化データが瞬間的に「1」となっても、その「1」が第2の所定個数続かない限りは無視されることになるため、ゴミ等を読取対象物の一部と誤認識することが防止される。
【0011】
この場合、好ましくは、幅算出手段は、第2の所定個数から第1の所定個数を減じた値を初期値として、処理データ設定手段で設定された第2のデータの個数を積算する。処理データ設定手段では、第1のデータ及び第2のデータの連続性を見て処理データを設定するため、処理データ設定手段で設定された第2のデータの個数から求められる読取対象物の幅は、実際の読取対象物の幅と若干異なることがある。そこで、上記のような初期値を設定して第2のデータの個数を積算することにより、読取対象物の幅がほぼ正確な値として得られるようになる。これにより、特に径の小さな読取対象物の識別において有利となる。
【0012】
また、好ましくは、処理データ設定手段は、読取対象物の領域に応じて第1の所定個数の値を変更して処理する。これにより、読取対象物とこれに類似する物とで、処理データ設定手段で設定される処理データのパターンの違いをより明確にすることが可能となるため、読取対象物の識別が行いやすくなる。
【0013】
このとき、好ましくは、第1の所定個数の値は、読取対象物の中心部に対応する処理と読取対象物の端部に対応する処理とで異なっている。この場合には、例えば同じ径を有する500円硬貨と500ウォン硬貨とで、処理データ設定手段で設定される処理データのパターンの違いを十分に出すことができる。
【0014】
さらに、好ましくは、幅算出手段で求めた読取対象物の幅データに基づいて、読取対象物の種類及び真偽を判定する判定手段を更に備える。これにより、読取対象物の幅の読み取りだけでなく、読取対象物の種類及び真偽の判定が自動的に行われるので、ユーザー等の負担を軽減することができる。
【0015】
【発明の実施の形態】
以下、本発明に係る読取装置の好適な実施形態について、図面を参照して説明する。
【0016】
図1は、本発明に係る読取装置の一実施形態を示す概略構成図である。同図において、読取装置1は、銀行用ATMや卓上機等の硬貨搬送部に組み込まれ、硬貨2の判別・識別を行う装置である。
【0017】
読取装置1はケース3を有し、このケース3の上面に形成された開口部には、サファイアガラス等からなる窓ガラス4が配置されている。また、ケース3の上面には、搬送路5が窓ガラス4を挟むように配置されている。搬送路5の上部には、硬貨2を矢印方向に搬送するためのベルトコンベア6が配置されている。搬送路5の両側には、図2に示すように、硬貨2の搬送中に硬貨2が搬送路5の外側にはみ出るのを防ぐための規制ガイド7が配置されている。
【0018】
ケース3の内部における窓ガラス4の近傍には、ベルトコンベア6によって搬送される硬貨2の表面を下方より照らすための照明用光源8が配置されている。この照明用光源8は、例えば硬貨2の搬送方向に対して垂直な方向に配列された複数対のLEDで構成されている(図2参照)。
【0019】
また、ケース3の内部における照明用光源8の下方には、硬貨2で反射した光を所定の方向に反射させる光学ミラー9,10と、光学ミラー10で反射した光を結像させる結像レンズ11と、この結像レンズ11によって結像された硬貨2の表面の像を撮像する撮像素子12とが配置されている。撮像素子12は、例えばラインイメージセンサである。
【0020】
さらに、ケース3の内部には硬貨識別部13が配置されている。硬貨識別部13は、撮像素子12により形成された硬貨2の画像データを入力し、硬貨2の識別処理を行う。このような硬貨識別部13による硬貨識別処理の手順を図3に示す。
【0021】
図3において、まず撮像素子12によって得られた走査方向の画像データを入力し、図4に示すような各走査ラインLにおける硬貨2の幅Wを求める(手順51)。
【0022】
図5は、一つの走査ラインLにおける硬貨2の幅Wを求める処理手順の詳細を示すフローチャートである。同図において、まず初期設定として、処理データを全て「0」とする(手順61)。ここで、処理データとは、直径が等しい500円硬貨(図6(a)参照)と500ウォン硬貨(図6(b)参照)とが識別可能となるように、後述する二値化データを補正したデータである。
【0023】
続いて、撮像素子12の画素データ(画像アナログデータ)をA/D変換し、画像デジタルデータを生成する(手順62)。続いて、画像デジタルデータと所定の基準値(二値化閾値)とを比較することにより、画像デジタルデータを「0」と「1」に二値化する(手順63)。なお、「0」は黒データであり、「1」は白データである。
【0024】
次いで、前回設定した処理データが「0」かどうかを判断する(手順64)。このとき、前回設定した処理データが「0」のときは、二値化データがk個連続して「1」かどうかを判断する(手順65)。そして、二値化データがk個連続して「1」のときは、処理データを「1」に設定し(手順66)、そうでないときは処理データを「0」に設定する(手順67)。
【0025】
一方、手順64で、前回設定した処理データが「0」でなく「1」と判断されたときは、二値化データがm個連続して「0」かどうかを判断する(手順68)。そして、二値化データがm個連続して「0」のときは、処理データを「0」に設定し(手順69)、そうでないときは処理データを「1」に設定する(手順70)。
【0026】
ここで、二値化閾値及びk,mの値は、図2に示すような硬貨2の向きにかかわらず、500円硬貨と500ウォン硬貨とで処理データのパターンに違いが生じるように設定されている。また、両者の処理データのパターンの違いをより鮮明にすべく、mの値は、硬貨2の中心部に対応する部分の処理と硬貨2の周縁部に対応する部分の処理とで異なるように設定されている。なお、このような設定条件は、予め実験等を行うことで導き出される。
【0027】
次いで、処理データが「0」から「1」に変化したかどうかを判断し(手順71)、処理データが「0」から「1」に変化したときは、カウンタの値(初期値)を「k−m」に設定する(手順72)。そして、カウンタをリセットして、処理データにおける連続した「1」の個数のカウントを開始する(手順73)。
【0028】
一方、手順71で、処理データが「0」から「1」に変化していないと判断されたときは、処理データが引き続き「1」であるかどうかを判断する(手順74)。そして、処理データが引き続き「1」のときは、連続した「1」の個数のカウントをそのまま継続し(手順75)、処理データが引き続き「1」でないときは、処理データが「1」から「0」に変化したかどうかを判断する(手順76)。このとき、処理データが「1」から「0」に変化したと判断されたときは、連続した「1」の個数のカウントを停止する(手順77)。また、処理データが「1」から「0」に変化していない、つまり処理データが引き続き「0」であると判断されたときは、何も処理を行わない。
【0029】
次いで、一つの走査ラインの全ての画像データについて処理データの設定が終了したかどうかを判断する(手順78)。このとき、全ての画像データについての処理データの設定が未だ終了していないと判断されたときは、mの値を変更するタイミングか、つまり硬貨2の周縁部に対応する部分の処理から硬貨2の中心部に対応する部分の処理に切り替わったか、或いは硬貨2の中心部に対応する部分の処理から硬貨2の周縁部に対応する部分の処理に切り替わったかどうかを判断する(手順79)。そして、mの値を変更するタイミングのときは、mの値を、硬貨の中心部または周縁部に対応する部分の処理に用いる値に変更し、手順64に戻り(手順80)、mの値を変更するタイミングでないときは、そのまま手順64に戻る。
【0030】
一方、手順78で、一つの走査ラインの全ての画像データについての処理データの設定が終了したときは、上記の連続した「1」のカウント数から、その走査ラインにおける硬貨2の幅Wを求める(手順81)。
【0031】
以上の硬貨幅の算出処理において、上記の手順68〜70により、前回設定した処理データが「1」の場合には、二値化データとして「0」がm個連続するときのみ、処理データが「0」に設定される。このため、二値化データ群における硬貨2に相当する部分に「0」があっても、その「0」がm個続かない限り、処理データは「1」に設定される。
【0032】
また、上記の手順65〜67により、前回設定した処理データが「0」の場合には、二値化データとして「1」がk個連続するときのみ、処理データが「0」に設定される。このため、例えば撮像面である窓ガラス4にゴミ等が付いた場合、硬貨2が窓ガラス4まで搬送される前に、ゴミ等が撮像されることで二値化データとして不要な「1」が立っても、その「1」がk個続かない限り、処理データは「0」に設定される。従って、窓ガラス4に付着したゴミ等が、硬貨2の一部として誤認識されることは無い。
【0033】
また、そのように処理データは「0」、「1」の連続性を見て設定されるものであるため、kの値とmの値とが異なっていると、処理データにおける連続した「1」の数が、硬貨幅に対応する「1」の数と異なることがある。これに対し本処理では、上記の手順72によりカウンタの値を「k−m」に設定してから、処理データにおける連続した「1」の数をカウントするので、連続した「1」のカウント数(積算値)は、硬貨幅に対応する「1」の数に一致するようになる。従って、一つの走査ラインにおける硬貨幅を高精度に求めることができる。
【0034】
図7は、二値化データ及び処理データの一例を示したものであり、kの値は「2」、mの値は「4」に設定されている。このとき、カウンタの値を「−2(k−m)」に設定した後に、処理データの「1」の数がカウントされるので、処理データにおける「1」の数が22個であるにもかかわらず、「1」のカウント数は20個となり、硬貨幅に相当する「1」の数に合致する。
【0035】
図3に戻り、上述した硬貨幅の算出処理を全ての走査ラインについて実行し(手順51)、走査ライン毎の硬貨幅データの分布(図9参照)を生成する。そして、その硬貨幅データの分布に基づいて、硬貨2の金種及び真偽の判定を行う(手順52)。
【0036】
以上のような硬貨識別部13において、図5に示す手順62,63は、撮像手段12により形成された読取対象物2の画像データを第1のデータと第2のデータとに二値化する二値化手段を構成する。同手順61,64〜70,79,80は、第1のデータが第1の所定個数連続するときは、該データを処理したこの処理データを第1のデータに設定し、第1のデータが第1の所定個数連続するものでないときは、該データを処理したこの処理データを第2のデータに設定する処理データ設定手段を構成する。同手順71〜78,81は、処理データ設定手段で設定された処理データにおける第2のデータの個数を積算して、読取対象物2の幅を求める幅算出手段を構成する。また、図3に示す手順52は、幅算出手段で求めた読取対象物2の幅データに基づいて、読取対象物2の種類及び真偽を判定する判定手段を構成する。
【0037】
次に、硬貨識別部13によって500円硬貨と500ウォン硬貨を識別処理したときの様子を比較して説明する。
【0038】
まず、500円硬貨の画像アナログデータをA/D変換することで、図8(a)に示すような画像デジタルデータが得られる。ここで、図8(a)は、図6(a)に示す500円硬貨画像Iyの走査ラインLyにおける画像データを示したものである。図8(a)の縦軸は白黒レベルを示しており、白レベルが高くなっている領域が500円硬貨に相当する部分である。
【0039】
このような画像データを二値化閾値と比較することで、図8(b)に示すような二値化データが得られる。そして、この二値化データに対して図5に示す手順64〜70の処理を行うことで、図8(c)に示すような処理データが得られる。
【0040】
このとき、図8(b)に示す二値化データにおいて、「0」から「1」に変化したときは、必ずその「1」がk個以上連続し、また「1」から「0」に変化しても、その「0」がm個以上連続することはない。従って、二値化データから得られる処理データとしては、図8(c)に示すように、「1」パルスを一つだけ有するものとなる。
【0041】
そして、このような処理データにおける「1」の個数をカウントすることで、500円硬貨画像Iyの走査ラインLyにおける硬貨幅が得られる。
【0042】
以上のような硬貨幅の算出は、500円硬貨画像Iyの全ての走査ラインLyについて行われる。これにより、図9に示すような走査ライン毎の硬貨幅データの分布が得られる。なお、図9の縦軸は、500円硬貨画像Iyに対応する走査ラインを示し、図9の横軸は、各走査ラインにおける硬貨幅を示している。図9から分かるように、500円硬貨の中心部を通る走査ラインにおける硬貨幅データに多少のデータ抜けが見られるが、硬貨幅は各走査ラインに応じてほぼ適正に変化している。
【0043】
一方、500ウォン硬貨の画像アナログデータをA/D変換することで、図10(a)に示すような画像デジタルデータが得られる。ここで、図10(a)は、図6(b)に示す500ウォン硬貨画像Iwの走査ラインLwにおける画像データを示したものである。
【0044】
このような画像データを二値化閾値と比較することで、図10(b)に示すような二値化データが得られる。そして、この二値化データに対して図5に示す手順64〜70の処理を行うことで、図10(c)に示すような処理データが得られる。
【0045】
このとき、図10(b)に示す二値化データにおいて、「0」から「1」に変化したときに、その「1」がk個以上連続しない部分があり、また「1」から「0」に変化したときに、その「0」がm個以上連続する部分がある。従って、二値化データから得られる処理データとしては、図10(c)に示すように、「1」のデータ抜けによって「1」パルスを複数有するものとなる。
【0046】
そして、このような処理データにおける「1」の個数をカウントすることで、500ウォン硬貨画像Iwの走査ラインLwにおける硬貨幅が得られる。このとき、複数の「1」パルスの中で、例えば最後に得られた「1」パルスのカウント数が、走査ラインLwにおける硬貨幅として選択される。
【0047】
以上のような硬貨幅の算出を500ウォン硬貨画像Iwの全ての走査ラインLwについて行うことで、図11に示すような走査ライン毎の硬貨幅データの分布が得られる。図11から分かるように、500ウォン硬貨の中心部を通る走査ラインにおける硬貨幅データの大部分にデータ抜けが発生している。また、硬貨幅の最大値が、図9に示す500円硬貨の硬貨幅の最大値よりも小さくなっている。
【0048】
このように500円硬貨と500ウォン硬貨とで走査ライン毎の硬貨幅データの分布が全く異なるので、500円硬貨と500ウォン硬貨との判別が確実に行える。
【0049】
以上のように本実施形態にあっては、二値化データにおける「0」、「1」の所定の連続性に応じた処理データを生成し、この処理データから硬貨2の幅を求めると共に、硬貨幅情報に基づいて硬貨2の金種・真偽判定を行うので、特徴抽出等といった複雑な画像処理が不要となる。従って、硬貨2の識別処理に要する時間が短縮化される。これにより、処理スピードを上げるために高価な高速CPUを使用しなくてすむ。また、高価な大容量画像メモリに画像データを取り込む必要もない。従って、読取装置1のコストを大幅に削減できる。
【0050】
なお、本発明は、上記実施形態に限定されるものではない。例えば、上記実施形態では、処理データにおける「1」の個数をカウントして硬貨幅データを得るものとしたが、データの「0」と「1」とを反転させて、処理データにおける「0」の個数をカウントしてもよい。
【0051】
また、上記実施形態の読取装置1は、500円硬貨を識別するものであるが、本発明は、他の硬貨の識別を行うものにも適用可能である。また、本発明は、そのような硬貨には限定されず、メダル等の識別にも適用できる。
【0052】
【発明の効果】
本発明によれば、第1のデータが第1の所定個数連続するとき、該データを処理したこの処理データを第1のデータに設定し、第1のデータが第1の所定個数連続するものでないとき、該データを処理したこの処理データを第2のデータに設定し、その第2のデータの個数を積算して読取対象物の幅を求めるので、読取対象物の読み取り処理を高速にかつ安価で行うことができる。
【図面の簡単な説明】
【図1】本発明に係る読取装置の一実施形態を示す概略構成図である。
【図2】図1に示す硬貨の搬送経路を示す平面図である。
【図3】硬貨識別部による硬貨識別処理の手順を示すフローチャートである。
【図4】硬貨画像の走査ラインを示す図である。
【図5】図3に示す各走査ラインにおける硬貨幅の算出処理手順の詳細を示すフローチャートである。
【図6】500円硬貨画像及び500ウォン硬貨画像を示す図である。
【図7】二値化データ及び処理データの一例を示す表である。
【図8】500円硬貨を撮像したときの画像データ、二値化データ、処理データの一例を示す図である。
【図9】500円硬貨を撮像したときの走査ライン毎の硬貨幅データの分布の一例を示す図である。
【図10】500ウォン硬貨を撮像したときの画像データ、二値化データ、処理データの一例を示す図である。
【図11】500ウォン硬貨を撮像したときの走査ライン毎の硬貨幅データの分布の一例を示す図である。
【符号の説明】
1…読取装置、2…硬貨(読取対象物)、12…撮像素子(撮像手段)、13…硬貨識別部(二値化手段、処理データ設定手段、幅算出手段、判定手段)。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a reading device for reading coins, medals and the like.
[0002]
[Prior art]
As a reading device for reading a coin, for example, there is a coin identifying device as described in
[0003]
[Patent Document 1]
Japanese Patent Laid-Open No. 9-91485
[Problems to be solved by the invention]
However, in the above prior art, since the coin image information is stored in the image memory and then complicated calculation processing is performed, it takes time for the coin identification processing. To increase the processing speed, it is conceivable to use a high-speed CPU, but the high-speed CPU is expensive. A large-capacity image memory for capturing images is also expensive.
[0005]
An object of the present invention is to provide a reading apparatus capable of shortening the processing time and reducing the cost.
[0006]
[Means for Solving the Problems]
The reading apparatus according to the present invention includes an imaging unit that images a reading object, and a binarization unit that binarizes image data of the reading object formed by the imaging unit into first data and second data. When the first data continues for the first predetermined number, the processed data obtained by processing the data is set as the first data. When the first data does not continue for the first predetermined number, the data The processing data setting means for setting the processed data processed as above to the second data and the width for obtaining the width of the reading object by integrating the number of the second data in the processing data set by the processing data setting means And a calculating means.
[0007]
In such a reading apparatus, for example, when identifying a coin, first, the image data of the coin formed by the imaging means is compared with a predetermined reference value, and the first data (for example, “0”) and the second data are compared. And binarized (for example, “1”). If “0” continues for the first predetermined number, the processing data is set to “0”. If “0” does not continue for the first predetermined number, the processing data is set to “1”. To do. Then, the coin width is obtained by integrating the number of “1” in the processing data. At this time, for the binarization, the coin data to be identified and the coin not to be identified are different in the pattern of the processing data set by the processing data setting means and the coin width value finally obtained is different. A reference value and a first predetermined number are set.
[0008]
By identifying the reading object in this manner, it is not necessary to perform complicated image processing such as feature extraction. Therefore, the time required for the identification processing of the reading object can be shortened without using a high-speed CPU. In addition, it is not necessary to load the image data of the reading object into a large-capacity image memory. In this way, it is not necessary to use a high-speed CPU or a large-capacity image memory, so that the cost can be reduced.
[0009]
Preferably, the processing data setting means performs processing when the previously set processing data is the first data, and when the data binarized by the binarization means is the second predetermined number of consecutive data. When the data is set to the second data and the previously set processing data is the second data, when the data binarized by the binarizing means is the first data continuously for the first predetermined number of times, The processing data is set to the first data.
[0010]
For example, if the previously set processing data is “0”, the processing data is set to “1” when the binarized data is “1” for the second predetermined number of consecutive numbers, otherwise the processing data is set. Is set to “0”. When the previously set processing data is “1”, the processing data is set to “0” when the binarized data is “0” continuously for the first predetermined number, otherwise the processing data is set. Is set to “1”. In other words, if the previously set process data is “0”, even if the binarized data is “1”, the process data is set to “0” if the “1” does not continue for the second predetermined number. Is done. Therefore, for example, even if dust or the like on the imaging surface is imaged and the binarized data instantaneously becomes “1”, it will be ignored unless “1” continues for the second predetermined number. Therefore, it is possible to prevent erroneous recognition of dust or the like as a part of the reading object.
[0011]
In this case, it is preferable that the width calculating unit integrates the number of second data set by the processing data setting unit using a value obtained by subtracting the first predetermined number from the second predetermined number as an initial value. The processing data setting means sets the processing data by looking at the continuity of the first data and the second data, so that the width of the reading object obtained from the number of the second data set by the processing data setting means May be slightly different from the actual width of the reading object. Therefore, by setting the initial values as described above and integrating the number of second data, the width of the reading object can be obtained as an almost accurate value. This is advantageous particularly in identifying a reading object having a small diameter.
[0012]
Preferably, the processing data setting means changes the first predetermined number of values in accordance with the area of the reading object. As a result, it becomes possible to further clarify the difference in the pattern of the processing data set by the processing data setting means between the reading target object and a similar object, so that the reading target object can be easily identified. .
[0013]
At this time, preferably, the first predetermined number of values are different between a process corresponding to the center portion of the reading object and a process corresponding to the end portion of the reading object. In this case, for example, a difference in processing data pattern set by the processing data setting means can be sufficiently obtained between a 500 yen coin and a 500 won coin having the same diameter.
[0014]
Furthermore, it is preferable to further include a determination unit that determines the type and authenticity of the reading object based on the width data of the reading object obtained by the width calculation unit. As a result, not only the width of the reading object is read, but also the type and authenticity of the reading object are automatically determined, so that the burden on the user or the like can be reduced.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, a preferred embodiment of a reading apparatus according to the invention will be described with reference to the drawings.
[0016]
FIG. 1 is a schematic configuration diagram showing an embodiment of a reading apparatus according to the present invention. In the figure, a
[0017]
The
[0018]
An
[0019]
Further, below the
[0020]
Furthermore, a
[0021]
3, first, image data in the scanning direction obtained by the
[0022]
FIG. 5 is a flowchart showing details of a processing procedure for obtaining the width W of the
[0023]
Subsequently, the pixel data (image analog data) of the
[0024]
Next, it is determined whether or not the previously set processing data is “0” (procedure 64). At this time, if the previously set processing data is “0”, it is determined whether or not k binarized data is “1” (step 65). When k binarized data are “1” in succession, the processing data is set to “1” (procedure 66). Otherwise, the processing data is set to “0” (procedure 67). .
[0025]
On the other hand, when it is determined in
[0026]
Here, the binarization threshold and the values of k and m are set so that the processing data pattern differs between the 500 yen coin and the 500 won coin regardless of the orientation of the
[0027]
Next, it is determined whether or not the processing data has changed from “0” to “1” (procedure 71). When the processing data has changed from “0” to “1”, the counter value (initial value) is changed to “1”. km ”(procedure 72). Then, the counter is reset to start counting the number of consecutive “1” s in the processing data (procedure 73).
[0028]
On the other hand, when it is determined in
[0029]
Next, it is determined whether or not the processing data has been set for all image data of one scanning line (procedure 78). At this time, when it is determined that the setting of the processing data for all the image data has not been completed yet, the
[0030]
On the other hand, when the setting of the processing data for all the image data of one scanning line is completed in the
[0031]
In the above coin width calculation processing, when the previously set processing data is “1” according to the
[0032]
Further, when the previously set process data is “0” by the
[0033]
In addition, since the processing data is set in view of the continuity of “0” and “1” as described above, if the value of k is different from the value of m, the continuous “1” in the processing data is set. The number of “” may be different from the number of “1” corresponding to the coin width. On the other hand, in the present process, since the counter value is set to “km” by the
[0034]
FIG. 7 shows an example of binarized data and processing data. The value of k is set to “2” and the value of m is set to “4”. At this time, after setting the counter value to “−2 (km)”, the number of “1” s in the processing data is counted, so the number of “1” s in the processing data is 22 Regardless, the count number of “1” is 20, which matches the number of “1” corresponding to the coin width.
[0035]
Returning to FIG. 3, the coin width calculation process described above is executed for all scanning lines (procedure 51), and a distribution of coin width data for each scanning line (see FIG. 9) is generated. Then, based on the distribution of the coin width data, the denomination and authenticity of the
[0036]
In the
[0037]
Next, a description will be given by comparing the state when the
[0038]
First, image analog data as shown in FIG. 8A is obtained by A / D converting image analog data of 500 yen coins. Here, FIG. 8A shows image data on the scanning line L y of the 500-yen coin image I y shown in FIG. The vertical axis of FIG. 8A indicates the black and white level, and the region where the white level is high is a portion corresponding to a 500 yen coin.
[0039]
By comparing such image data with a binarization threshold value, binarization data as shown in FIG. 8B is obtained. Then, processing data as shown in FIG. 8C is obtained by performing the processing of
[0040]
At this time, in the binarized data shown in FIG. 8B, when “0” is changed to “1”, k or more “1” s are always consecutive, and from “1” to “0”. Even if it changes, the number of “0” s does not continue more than m. Accordingly, the processing data obtained from the binarized data has only one “1” pulse as shown in FIG.
[0041]
Then, by counting the number of "1" in such a process the data, the coin width is obtained in the scanning line L y of 500 yen coin image I y.
[0042]
The calculation of the coin width as described above is performed for all scanning lines L y of the 500-yen coin image I y . Thereby, the distribution of coin width data for each scanning line as shown in FIG. 9 is obtained. In addition, the vertical axis | shaft of FIG. 9 shows the scanning line corresponding to 500 yen coin image Iy, and the horizontal axis of FIG. 9 has shown the coin width in each scanning line. As can be seen from FIG. 9, some data omission is seen in the coin width data in the scanning line passing through the center of the 500 yen coin, but the coin width changes almost appropriately according to each scanning line.
[0043]
On the other hand, the image digital data as shown in FIG. 10A is obtained by A / D converting the analog image data of the 500 won coin. Here, FIG. 10 (a) shows the image data in the scanning line L w of 500 won coin image I w shown in Figure 6 (b).
[0044]
By comparing such image data with a binarization threshold value, binarization data as shown in FIG. 10B is obtained. Then, processing data as shown in FIG. 10C is obtained by performing the processing of
[0045]
At this time, in the binarized data shown in FIG. 10B, when “0” is changed to “1”, there are portions where “1” does not continue k or more, and “1” to “0”. "," There is a portion where "0" continues for m or more. Accordingly, as shown in FIG. 10C, the processing data obtained from the binarized data has a plurality of “1” pulses due to the missing data of “1”.
[0046]
Then, by counting the number of “1” in such processing data, the coin width in the scanning line L w of the 500 won coin image I w can be obtained. In this case, among the plurality of "1" pulses, for example, counting the number of finally obtained "1" pulse is selected as the coin width in the scanning line L w.
[0047]
By performed for all the scanning lines L w of 500 won coin image I w calculated coins width as described above, the distribution of the coin width data of the scan lines each, as shown in FIG. 11 is obtained. As can be seen from FIG. 11, data loss occurs in most of the coin width data in the scanning line passing through the center of the 500 won coin. Moreover, the maximum value of the coin width is smaller than the maximum value of the coin width of the 500 yen coin shown in FIG.
[0048]
Thus, since the distribution of coin width data for each scanning line is completely different between the 500 yen coin and the 500 won coin, it is possible to reliably discriminate between the 500 yen coin and the 500 won coin.
[0049]
As described above, in the present embodiment, processing data corresponding to the predetermined continuity of “0” and “1” in the binarized data is generated, and the width of the
[0050]
The present invention is not limited to the above embodiment. For example, in the above embodiment, the coin width data is obtained by counting the number of “1” in the processing data, but “0” in the processing data is inverted by reversing the data “0” and “1”. May be counted.
[0051]
Moreover, although the
[0052]
【The invention's effect】
According to the present invention, when the first data continues for the first predetermined number, the processed data obtained by processing the data is set as the first data, and the first data continues for the first predetermined number. Otherwise, the processing data obtained by processing the data is set as the second data, and the number of the second data is integrated to obtain the width of the reading object. It can be done inexpensively.
[Brief description of the drawings]
FIG. 1 is a schematic configuration diagram showing an embodiment of a reading apparatus according to the present invention.
FIG. 2 is a plan view showing a coin conveyance path shown in FIG. 1;
FIG. 3 is a flowchart showing a procedure of coin identifying processing by a coin identifying unit.
FIG. 4 is a diagram showing scanning lines of coin images.
FIG. 5 is a flowchart showing details of a coin width calculation processing procedure in each scanning line shown in FIG. 3;
FIG. 6 is a diagram showing a 500 yen coin image and a 500 won coin image.
FIG. 7 is a table showing an example of binarized data and processing data.
FIG. 8 is a diagram illustrating an example of image data, binarized data, and processing data when a 500 yen coin is imaged.
FIG. 9 is a diagram showing an example of the distribution of coin width data for each scanning line when a 500 yen coin is imaged.
FIG. 10 is a diagram illustrating an example of image data, binarized data, and processing data when a 500 won coin is imaged.
FIG. 11 is a diagram showing an example of the distribution of coin width data for each scanning line when a 500 won coin is imaged.
[Explanation of symbols]
DESCRIPTION OF
Claims (6)
前記撮像手段により形成された前記読取対象物の画像データを第1のデータと第2のデータとに二値化する二値化手段と、
前記第1のデータが第1の所定個数連続するとき、該データを処理したこの処理データを前記第1のデータに設定し、前記第1のデータが前記第1の所定個数連続するものでないとき、該データを処理したこの処理データを前記第2のデータに設定する処理データ設定手段と、
前記処理データ設定手段で設定された前記処理データにおける前記第2のデータの個数を積算して、前記読取対象物の幅を求める幅算出手段とを備えたことを特徴とする読取装置。An imaging means for imaging a reading object;
Binarization means for binarizing the image data of the reading object formed by the imaging means into first data and second data;
When the first predetermined number of the first data continues, the processed data obtained by processing the data is set as the first data, and the first data does not continue the first predetermined number Processing data setting means for setting the processing data obtained by processing the data as the second data;
A reading apparatus comprising: a width calculating unit that calculates the width of the reading object by adding up the number of the second data in the processing data set by the processing data setting unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003034233A JP4163972B2 (en) | 2003-02-12 | 2003-02-12 | Reader |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003034233A JP4163972B2 (en) | 2003-02-12 | 2003-02-12 | Reader |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2004246502A JP2004246502A (en) | 2004-09-02 |
JP4163972B2 true JP4163972B2 (en) | 2008-10-08 |
Family
ID=33019983
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003034233A Expired - Fee Related JP4163972B2 (en) | 2003-02-12 | 2003-02-12 | Reader |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4163972B2 (en) |
-
2003
- 2003-02-12 JP JP2003034233A patent/JP4163972B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2004246502A (en) | 2004-09-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3652545B2 (en) | Coin discrimination device | |
JP4113393B2 (en) | Coin discrimination method and apparatus | |
EP2530659A1 (en) | Method and device for obtaining paper current or financial bill number, and recognition method and device for paper currency or financial bill number | |
JPH11175797A (en) | Paper sheet discriminating device | |
WO2014173012A1 (en) | Ash deposition detection method and system in financial paper recognition module | |
US20130142442A1 (en) | System and method for document location and recognition | |
US20060177093A1 (en) | Sheet identifying device and method | |
JP4163972B2 (en) | Reader | |
JP3777775B2 (en) | Inclined image processing method | |
JPH03191495A (en) | Paper money identifying device | |
JP2002092683A (en) | Device for discriminating between true and false medium | |
JP2005031901A (en) | Coin identifying device and method | |
JP2003244434A (en) | Document authenticity discriminating apparatus and method therefor | |
JP3711737B2 (en) | Method for detecting tilt angle of imaging medium | |
US20090294244A1 (en) | Currency Validator with Rejected Bill Image Storage | |
JP2006221431A (en) | Embossed character reading device | |
JP4382579B2 (en) | Paper sheet identification apparatus and method | |
JPH07129812A (en) | Bill discriminating device | |
JP2007241701A (en) | Coin image discrimination device | |
JP2003196657A (en) | Pattern recognition device | |
JP5953614B2 (en) | Disc discrimination method, disc discrimination device, and disc sorting device | |
JP2002056427A (en) | Coin identifying device | |
JP4231445B2 (en) | Coin identification device | |
JP4176611B2 (en) | Coin discrimination method and apparatus | |
JP2002074445A (en) | Identifying device for circular object |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060209 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080716 |
|
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: 20080722 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080725 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110801 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110801 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120801 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130801 Year of fee payment: 5 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |