JP4384791B2 - Print detection device - Google Patents

Print detection device Download PDF

Info

Publication number
JP4384791B2
JP4384791B2 JP2000198122A JP2000198122A JP4384791B2 JP 4384791 B2 JP4384791 B2 JP 4384791B2 JP 2000198122 A JP2000198122 A JP 2000198122A JP 2000198122 A JP2000198122 A JP 2000198122A JP 4384791 B2 JP4384791 B2 JP 4384791B2
Authority
JP
Japan
Prior art keywords
color
reference value
density
determination
frequency distribution
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
Application number
JP2000198122A
Other languages
Japanese (ja)
Other versions
JP2002015304A (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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2000198122A priority Critical patent/JP4384791B2/en
Publication of JP2002015304A publication Critical patent/JP2002015304A/en
Application granted granted Critical
Publication of JP4384791B2 publication Critical patent/JP4384791B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Spectrometry And Color Measurement (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Image Analysis (AREA)
  • Record Information Processing For Printing (AREA)
  • Character Input (AREA)
  • Image Input (AREA)
  • Image Processing (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、預金通帳等における印字済み行等の印字を検出する印字検出装置に関するものである。
【0002】
【従来の技術】
図2は、従来の光学式文字読取装置(以下、「OCR」という)の一例を示す構成図である。
このOCRは、読み取り対象の帳票1に可視光を照射し、読み取り領域の画像を画素に分解し、その赤(R)、緑(G)、青(B)の反射光のレベルを検出するカラーイメージセンサ11を有している。カラーイメージセンサ11から出力されるアナログ電圧の出力信号r,g,bは、それぞれアナログ/ディジタル変換回路(以下、「ADC」という)12a,12b,12cに与えられるようになっている。ADC12a〜12cは、それぞれ出力信号r,g,bを、ディジタル値に変換するものである。
【0003】
ADC12a〜12cの出力側は、白黒のレベル補正を行う補正回路13に接続されている。補正回路13の出力側は、最大値検出回路14と色判定回路15に接続されている。最大値検出回路14は、補正回路13で補正されて出力された各画素のR,G,Bデータの内の最大値MAXを検出するものである。また色判定回路15は、色差(即ち、R,G,Bデータの差)に基づいて画素毎に有彩色か無彩色かを判定して色情報COLを出力するものである。
【0004】
最大値検出回路14と色判定回路15の出力側は、データ整列回路16を介してイメージメモリ17に接続されている。データ整列回路16は、画素毎に最大値MAXと色情報COLを整列し、イメージメモリ17に格納するものである。イメージメモリ17は、システムバス18に接続されている。システムバス18には、イメージメモリ17のほか、フラッシュメモリ19や、中央処理装置(以下、「CPU」という)20等が接続されている。フラッシュメモリ19は、文字等を構成する画素を識別するための閾値等の各種パラメータを保持するものである。CPU20は、イメージメモリ17中のデータをフラッシュメモリ19に保持された閾値と比較し、読み取った領域に印字文字が存在するか否かを判定すると共に、存在する印字文字を認識するものである。
【0005】
このようなOCRでは、読み取り対象の帳票1の画像は、カラーイメージセンサ11でR,G,B成分の画素に分解されて読み取られ、ADC12a〜12cでディジタル値に変換された後、補正回路13でレベル補正が行われる。補正されたR,G,Bデータは、最大値検出回路14で画素毎に最大値MAXが検出されると共に、色判定回路15でその画素が有彩色か無彩色かが判定され、色情報COLが出力される。各画素毎の最大値MAXと色情報COLは、データ整列回路16で整列され、画像データとしてイメージメモリ17に順次格納される。
【0006】
読み取り領域の画像データがイメージメモリ17に格納された後、その画像データはCPU20によって読み出され、フラッシュメモリ19に予め保持されている閾値と比較され、文字の検出や検出した文字の認識が行われる。
【0007】
【発明が解決しようとする課題】
しかしながら、従来のOCRでは、次のような課題があった。
預金通帳等のように比較的濃い印字の裏写りと地紋が重なった場合、印字された文字と裏写り+地紋とのレベル差が小さくなり、文字が印字された行を検出することが困難となる。特に印字のインクが薄い場合、印字済みの行が識別できなくなるという問題があった。このため、例えば銀行端末のように、帳票や通帳を読み取る装置では、帳票の文字や印影を読み取るためのカラーセンサに加えて、通帳のページマークや印字済みの行を確実に検出するために赤外線センサを併用するようにしており、装置の規模が大きくなるという課題があった。
【0008】
本発明は、前記従来技術が持っていた課題を解決し、カラーイメージセンサを用いて通帳等の上の印字を検出することができる印字検出装置を提供するものである。
【0009】
【課題を解決するための手段】
前記課題を解決するために、本発明の内の第1の発明は、印字検出装置において、画像のイメージを色別の画素に分解して読み取るカラーイメージセンサと、前記カラーイメージセンサで読み取られたイメージから無彩色と有彩色の画素を識別する色判定手段と、印字の有無の判定基準となる濃度で印字されて前記カラーイメージセンサで読み取られ、前記色判定手段で無彩色と判定された基準媒体の画素濃度の頻度分布に基づいて印字濃度の判定基準値を生成する基準値生成手段と、前記カラーイメージセンサで読み取られて前記色判定手段で無彩色と判定された読み取り対象の通帳のイメージを構成する画素の濃度を、前記判定基準値と比較して印字の有無を判定する印字判定手段とを備えている。
【0012】
そして、カラーイメージセンサで読み取られて色判定手段で有彩色と判定された通帳の色別の画素濃度の頻度分布に基づいて該通帳の地紋の色別の濃度を検出し、検出した地紋の色別の濃度に基づいて判定基準値を補正する基準値補正手段を設けている。更に、印字判定手段は、基準値補正手段で補正された判定基準値に従って通帳の印字の有無を判定するように構成している。
【0016】
第1の発明によれば、次のような作用が行われる。
まず、印字の有無の判定基準となる濃度で印字が行われた基準媒体が、カラーイメージセンサで読み取られ、基準値生成手段で画素濃度の頻度分布に基づいて判定基準値が生成される。
【0017】
次に、読み取り対象の通帳がカラーイメージセンサで読み取られ、読み取られた画素の色が色判定手段で判定される。基準値補正手段では、画素の色別の濃度に基づいて通帳の色別の地紋の濃度が検出され、これに基づいて判定基準値が補正される。印字判定手段では、補正された判定基準値に従って通帳の印字の有無が判定される。
【0018】
第2の発明は、第1の発明の基準値補正手段を、通帳の読み取り領域を分割する領域信号に基づいて該通帳の地紋の画素濃度の頻度分布を算出し、分割された領域毎に該頻度分布に従って判定基準値を補正するように構成している。
【0019】
第2の発明によれば、第1の発明の基準値補正手段において次のような作用が行われる。
例えば、通帳の搬送機構等から基準値補正手段に、通帳の読み取り領域を分割する領域信号が与えられると、この領域信号に基づいて通帳の地紋の画素濃度の頻度分布が算出される。分割された領域毎に、算出された頻度分布に従って判定基準値の補正が行われる。
【0020】
【発明の実施の形態】
(第1の実施形態)
図1は、本発明の第1の実施形態を示す印字検出装置の構成図であり、図2中の要素と共通の要素には共通の符号が付されている。
この印字検出装置は、読み取り対象の通帳2に可視光を照射し、読み取り領域の画像を画素に分解し、その赤(R)、緑(G)、青(B)の反射光のレベルを検出するカラーイメージセンサ11を有している。カラーイメージセンサ11のアナログ電圧の出力信号r,g,bは、それぞれADC12a,12b,12cに与えられるようになっている。ADC12a〜12cは、それぞれ反射光のR,G,B成分に対応する出力信号r,g,bを、ディジタル値に変換するものである。
【0021】
ADC12a〜12cの出力側は、白及び黒レベルの補正を行う補正回路13に接続されている。補正回路13の出力側は、最大値検出回路14と色判定手段(例えば、色判定回路)15に接続されている。最大値検出回路14は、補正回路13で補正されて出力された画素毎に、R,G,Bデータの内の最大値MAXを検出するものである。また色判定回路15は、色差に基づいて画素毎に有彩色か無彩色かを判定し、色情報COLを出力するものである。
【0022】
最大値検出回路14と色判定回路15の出力側は、データ整列回路16を介してイメージメモリ17に接続されている。データ整列回路16は、画素毎に最大値MAXと色情報COLを整列し、画像データとしてイメージメモリ17に格納するものである。イメージメモリ17は、システムバス18に接続されている。システムバス18には、フラッシュメモリ19や印字判定手段及び基準値補正手段(例えば、CPU)20に加えて、頻度分布メモリ21が接続されている。
【0023】
フラッシュメモリ19は、文字等を構成する画素を識別するための判定基準値(例えば、基準値スライス)等の閾値や、地紋濃度に応じてこの閾値を補正するための補正値テーブル等の各種パラメータを保持する不揮発性メモリである。CPU20は、イメージメモリ17に格納された画像データの各画素を、フラッシュメモリ19に保持された閾値と比較して、読み取った領域に印字された文字が存在するか否かを判定すると共に、基準値スライスの補正等の各種の処理と制御を行うものである。
【0024】
更に、最大値検出回路14と色判定回路15の出力側は、基準値生成手段(例えば、頻度分布生成回路)22に接続され、この頻度分布生成回路22に、頻度分布メモリ21と領域切替回路23とが接続されている。頻度分布生成回路22は、最大値検出回路14から与えられる最大値MAXと、色判定回路15から与えられる色情報COLに基づいて、読み取った領域の各画素の最大値MAXのヒストグラムを生成するものである。
【0025】
領域切替回路23は、例えば図示しない通帳搬送機構等から与えられる領域信号に従って、頻度分布生成回路22に対して頻度分布を生成する領域の切り替えを制御する切替信号SELを出力するものである。頻度分布生成回路22で生成されたヒストグラムは、頻度分布メモリ21に格納されるようになっている。
【0026】
図3(a)〜(c)は、図1による印字検出処理動作の説明図である。以下、この図3(a)〜(c)を参照しつつ、図1の動作を、(A)調整時の処理と、(B)運用時の処理に分けて説明する。
【0027】
(A) 調整時の処理
地紋が印刷されていない白地の通帳に、黒と認識させる下限濃度の文字と、白と認識させる上限濃度の文字が印刷された「基準媒体」を準備し、この基準媒体をカラーイメージセンサ11で読み取らせる。
カラーイメージセンサ11の出力信号r,g,bは、ADC12a〜12cでディジタル値に変換された後、補正回路13でレベル補正が行われる。補正されたR,G,Bデータは、最大値検出回路14で画素毎に最大値MAXが検出されると共に、色判定回路15でその画素が有彩色か無彩色かが判定されて色情報COLが出力される。各画素毎の最大値MAXと色情報COLは、頻度分布生成回路22に与えられる。
【0028】
頻度分布生成回路22では、図3(a)に示すように、色判定回路15で無彩色と判定された画素について、最大値検出回路14で検出された最大値MAXのレベル(階調)のヒストグラムが生成され、頻度分布メモリ21に格納される。更に、頻度分布メモリ21に格納された無彩色ヒストグラムから、黒と認識させる下限濃度の文字と、白と認識させる上限濃度の文字の境界の階調が検出され、基準値スライスが決定されてフラッシュメモリ19に登録される。
【0029】
(B) 運用時の処理
読み取り対象の通帳2がカラーイメージセンサ11で読み取られると、このカラーイメージセンサ11の出力信号r,g,bは、ADC12a〜12cでディジタル値に変換された後、補正回路13でレベル補正が行われる。補正されたR,G,Bデータは、最大値検出回路14で最大値MAXが検出される。また、色判定回路15では、画素毎にR,G,Bデータの差に基づいて有彩色か無彩色かの色情報COLが出力される。各画素毎の最大値MAXと色情報COLは、データ整列回路16と頻度分布生成回路22に与えられる。
データ整列回路16では、画素毎に最大値MAXとそれに対応する色情報COLとが整列され、画像データとしてイメージメモリ17に順次格納される。
【0030】
一方、頻度分布生成回路22では、最大値MAXのレベルのヒストグラムが生成される。この時、頻度分布生成回路22では、領域切替回路23から与えられる切替信号SELに従って領域が切り替えられる。例えば、図1中の帳票2では、各ページの先頭部のページマーク、印字行の内で濃い色の地紋が印刷された領域X、及び薄い色の地紋が印刷された領域Yの3種類の領域に切り替えられる。これにより、頻度分布生成回路22では、切り替えられた領域毎に分割された3つの領域毎のヒストグラムが生成される。
【0031】
ヒストグラムは、色情報COLに基づいて、図3(b),(c)に示すように、有彩色ヒストグラムと無彩色ヒストグラムが別々に生成され、頻度分布メモリ21に格納される。
通帳2の読み取りが終了した後、領域毎に頻度分布メモリ21中の有彩色ヒストグラムがCPU20によって読み出され、図3(b)に示すように、地紋の色の濃度の最大値MAXが検出される。更に、CPU20によって、フラッシュメモリ19中に保持されている補正値テーブルが参照され、地紋濃度に対応する補正値によって基準値スライスが補正されて2値化スライス(=基準値スライス−補正値)が算出される。
【0032】
その後、イメージメモリ17に格納された画像データの最大値MAXが、CPU20によって算出された2値化スライスと、各画素毎に比較される。そして、最大値MAXが基準値スライス以下であれば黒、最大値MAXが基準値スライスを越えていれば白として2値化される。この時、通帳2の地紋の濃度は2値化スライス以上であるので、白となる。更に、画素毎に2値化されたデータに基づいて、CPU20によって各行毎の印字の有無が判定される。
【0033】
以上のように、この第1の実施形態の印字検出装置は、次の(1)〜(3)のような利点がある。
(1) 頻度分布生成回路22と頻度分布メモリ21を有し、調整時に「基準媒体」に基づいて生成したヒストグラムから文字の検出基準となる基準値スライスを決定するようにしている。これにより、赤外線センサを併用しなくても、カラーイメージセンサ11から得られた画像データで、濃い地紋の上に印字された文字の有無を検出することができる。
【0034】
(2) CPU20では、有彩色ヒストグラムから得られた地紋の濃度に基づいて、基準値スライスを補正して2値化スライスを算出するようにしている。これにより、地紋の濃度に影響されず、より確実に印字文字の有無を検出することができる。
【0035】
(3) 読み取り対象の通帳2を、ページマークや地紋の濃淡の異なる領域毎に分割し、それぞれのヒストグラムを生成するための領域切替回路23を有している。これにより、各種の通帳に対応して確実に印字文字やページマークの検出を行うことができる。
【0036】
(第2の実施形態)
図4は、本発明の第2の実施形態を示す印字検出装置の構成図であり、図1中の要素と共通の要素には共通の符号が付されている。
この実施形態の印字検出装置と、図1の印字検出装置との相違は、図1の印字検出装置では、各画素のR,G,Bデータの内の最大値MAXに基づいてヒストグラムを生成するようにしているのに対して、この印字検出装置では、R,G,Bデータ毎にヒストグラムを生成していることである。
【0037】
即ち、この印字検出装置は、3組の頻度分布生成回路22a,22b,22cと、3組の頻度分布メモリ21a,21b,21cを備えている。各頻度分布生成回路22a〜22cには、補正回路13からR,B,Gデータがそれぞれ与えられると共に、色判定回路15から色情報COLが共通に与えられるようになっている。また、頻度分布生成回路22a〜22cには、それぞれ生成したヒストグラムを格納するための頻度分布メモリ21a〜21cが接続され、これらの頻度分布メモリ21a〜21cは、システムバス18に接続されている。その他の構成は、図1と同様である。
【0038】
このような印字検出装置では、読み取り対象の帳票がカラーイメージセンサ11で読み取られると、読み取られた領域の画像データがイメージメモリ17に格納されると共に、R,G,Bデータ毎の有彩色ヒストグラムが頻度分布生成回路22a〜22cによって生成され、それぞれ頻度分布メモリ21a〜21cに格納される。
【0039】
帳票の読み取り終了後に、CPU20によって、有彩色ヒストグラムからR,G,Bデータ毎に、地紋濃度の最大値が検出される。R,G,Bデータ毎の地紋濃度と、それぞれの色差によって地紋の色と濃淡が認識され、それによって予めフラッシュメモリ19中に保持されている補正値テーブルが参照され、地紋濃度に対応する補正値によって基準値スライスが補正されて2値化スライスが算出される。
【0040】
その後、イメージメモリ17に格納された画像データの最大値MAXと2値化スライスとが、CPU20によって各画素毎に比較され、画像データの2値化が行われる。更にCPU20によって、画素毎に2値化されたデータに基づいて、各行毎に印字の有無が判定される。
【0041】
以上のように、この第2の実施形態の印字検出装置は、R,G,Bデータ毎に頻度分布生成回路22a〜22cと、頻度分布メモリ21a〜21cを有している。これにより、前記(1),(2)の利点に加えて、更に通帳の様々な地紋に対応することが可能になり、印字文字の検出精度を更に向上することができるという利点がある。
【0042】
なお、本発明は、上記実施形態に限定されず、種々の変形が可能である。この変形例としては、例えば、次の(a)〜(c)のようなものがある。
(a) 図1の印字検出装置は、地紋の濃度が異なる複数の領域を区別してヒストグラムを生成するために領域切替回路23を有しているが、地紋の濃度が均一であったり、濃度の差が小さい通帳等を読み取りの対象としている場合には、この領域切替回路23を削除しても良い。
【0043】
(b) CPU20では、頻度分布メモリ21に格納された有彩色ヒストグラムから、地紋の色の濃度の最大値MAXを検出し、この地紋濃度に対応する補正値によって基準値スライスを補正して2値化スライスを算出するようにしているが、実際の補正値があまり大きくない場合には、この処理を省略しても良い。
【0044】
(c) 図1及び図4の印字検出装置は、CPU20によって印字文字の有無を検出するようにしているが、更に、印字文字が検出されたときに、その文字を認識するように構成することも可能である。即ち、上記実施形態で説明した処理は、文字認識処理やマーク読取処理の前処理として適用することが可能である。これにより、地紋の上に印刷された文字やマークを精度良く認識することが可能になる。
【0045】
【発明の効果】
以上詳細に説明したように、第1の発明によれば、カラーイメージセンサで読み取った基準媒体の画素濃度の頻度分布に基づいて判定基準値を生成する基準値生成手段を有している。更に、カラーイメージセンサで読み取った通帳の画素の内の無彩色画素を判定する色判定手段を有している。これにより、通帳の無彩色の画素の濃度を判定基準値と比較することにより、通帳等の上の印字を検出することができる。
【0047】
その上、通帳の地紋の色別の濃度に基づいて判定基準値を補正する基準値補正手段を有しているので、地紋の色や濃度に左右されず、通帳等の上の印字をより確実に検出することができる。
【0048】
第2の発明によれば、通帳の領域毎に補正値を求めてこれに基づいて判定基準値を補正する基準値補正手段を有している。これにより、地紋の色や濃度の異なる領域を有する通帳においても、確実に印字を検出することができる。
【図面の簡単な説明】
【図1】本発明の第1の実施形態を示す印字検出装置の構成図である。
【図2】従来のOCRの一例を示す構成図である。
【図3】図1による印字検出処理動作の説明図である。
【図4】本発明の第2の実施形態を示す印字検出装置の構成図である。
【符号の説明】
2 通帳
11 カラーイメージセンサ
12a〜12c ADC(アナログ/ディジタル変換回路)
14 最大値検出回路
15 色判定回路
16 データ整列回路
17 イメージメモリ
19 フラッシュメモリ
20 CPU(中央処理装置)
21,21a〜21c 頻度分布メモリ
22,22a〜22c 頻度分布生成回路
23 領域切替回路
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a print detection device that detects printing of printed lines or the like in a bankbook or the like.
[0002]
[Prior art]
FIG. 2 is a block diagram showing an example of a conventional optical character reader (hereinafter referred to as “OCR”).
This OCR irradiates visible light onto the form 1 to be read, decomposes the image in the reading area into pixels, and detects the red (R), green (G), and blue (B) reflected light levels. An image sensor 11 is included. The analog voltage output signals r, g, and b output from the color image sensor 11 are supplied to analog / digital conversion circuits (hereinafter referred to as “ADC”) 12a, 12b, and 12c, respectively. The ADCs 12a to 12c convert the output signals r, g, and b into digital values, respectively.
[0003]
The output sides of the ADCs 12a to 12c are connected to a correction circuit 13 that performs black and white level correction. The output side of the correction circuit 13 is connected to the maximum value detection circuit 14 and the color determination circuit 15. The maximum value detection circuit 14 detects the maximum value MAX among the R, G, and B data of each pixel that has been corrected and output by the correction circuit 13. The color determination circuit 15 determines whether each pixel is a chromatic color or an achromatic color based on a color difference (that is, a difference between R, G, and B data) and outputs color information COL.
[0004]
The output sides of the maximum value detection circuit 14 and the color determination circuit 15 are connected to the image memory 17 via the data alignment circuit 16. The data alignment circuit 16 aligns the maximum value MAX and the color information COL for each pixel and stores them in the image memory 17. The image memory 17 is connected to the system bus 18. In addition to the image memory 17, a flash memory 19 and a central processing unit (hereinafter referred to as “CPU”) 20 are connected to the system bus 18. The flash memory 19 holds various parameters such as a threshold value for identifying pixels constituting a character or the like. The CPU 20 compares the data in the image memory 17 with a threshold value held in the flash memory 19 to determine whether or not a print character exists in the read area and recognizes the existing print character.
[0005]
In such OCR, the image of the document 1 to be read is decomposed and read into R, G, B component pixels by the color image sensor 11, converted into digital values by the ADCs 12 a to 12 c, and then the correction circuit 13. Level correction is performed. In the corrected R, G, B data, the maximum value MAX is detected for each pixel by the maximum value detection circuit 14, and the color determination circuit 15 determines whether the pixel is chromatic or achromatic, and color information COL. Is output. The maximum value MAX and the color information COL for each pixel are aligned by the data alignment circuit 16 and sequentially stored in the image memory 17 as image data.
[0006]
After the image data in the reading area is stored in the image memory 17, the image data is read by the CPU 20 and compared with a threshold value stored in advance in the flash memory 19 to detect characters and recognize the detected characters. Is called.
[0007]
[Problems to be solved by the invention]
However, the conventional OCR has the following problems.
When a background print with a relatively dark print overlaps with the background pattern, such as a bankbook, the level difference between the printed character and the show-through + background pattern is reduced, making it difficult to detect the line on which the character is printed. Become. In particular, when the printing ink is thin, there is a problem that a printed line cannot be identified. For this reason, in a device that reads a form or a passbook, such as a bank terminal, in addition to a color sensor for reading the letters and imprints of the form, an infrared ray is used to reliably detect passbook page marks and printed lines. A sensor is used in combination, and there is a problem that the scale of the apparatus becomes large.
[0008]
The present invention solves the problems of the prior art and provides a print detection device capable of detecting printing on a passbook or the like using a color image sensor.
[0009]
[Means for Solving the Problems]
In order to solve the above-mentioned problems, a first invention of the present invention is a print detection apparatus, wherein a color image sensor that separates an image of an image into pixels of different colors and reads the image, and the color image sensor reads the image. Color determination means for identifying achromatic and chromatic pixels from an image, and a reference that is printed at a density that is a determination criterion for the presence or absence of printing, is read by the color image sensor, and is determined as an achromatic color by the color determination means A reference value generation unit that generates a determination reference value of a print density based on a frequency distribution of pixel density of a medium; and an image of a passbook to be read that has been read by the color image sensor and determined to be achromatic And a print determining means for determining the presence or absence of printing by comparing the density of the pixels constituting the above with the determination reference value.
[0012]
Then, based on the frequency distribution of the pixel density of each passbook color that has been read by the color image sensor and determined to be chromatic by the color determination means, the density of the passbook background color is detected, and the detected background color Reference value correction means for correcting the determination reference value based on another density is provided. Further, the print determination unit is configured to determine whether or not the passbook is printed according to the determination reference value corrected by the reference value correction unit.
[0016]
According to the first invention, the following operation is performed.
First, a reference medium on which printing is performed with a density that is a determination criterion for the presence or absence of printing is read by a color image sensor, and a determination reference value is generated based on a frequency distribution of pixel density by a reference value generation unit.
[0017]
Next, the passbook to be read is read by the color image sensor, and the color of the read pixel is determined by the color determination means. The reference value correction means detects the density of the background pattern for each color of the passbook based on the density of each pixel color, and corrects the determination reference value based on this. The print determination means determines whether the passbook is printed according to the corrected determination reference value.
[0018]
In the second invention, the reference value correcting means of the first invention calculates the frequency distribution of the pixel density of the copy-forgery-inhibited pattern based on the area signal for dividing the reading area of the bankbook, and for each divided area, The determination reference value is corrected according to the frequency distribution.
[0019]
According to the second invention, the following operation is performed in the reference value correcting means of the first invention.
For example, when an area signal for dividing the reading area of the passbook is given to the reference value correction means from the passbook transport mechanism or the like, the frequency distribution of the pixel density of the background pattern of the passbook is calculated based on this area signal. For each divided area, the determination reference value is corrected according to the calculated frequency distribution.
[0020]
DETAILED DESCRIPTION OF THE INVENTION
(First embodiment)
FIG. 1 is a configuration diagram of a print detection apparatus showing a first embodiment of the present invention. Elements common to those in FIG. 2 are denoted by common reference numerals.
This print detection device irradiates the passbook 2 to be read with visible light, decomposes the image of the reading area into pixels, and detects the red (R), green (G), and blue (B) reflected light levels. A color image sensor 11 is provided. The analog voltage output signals r, g, and b of the color image sensor 11 are supplied to the ADCs 12a, 12b, and 12c, respectively. The ADCs 12a to 12c convert the output signals r, g, and b corresponding to the R, G, and B components of the reflected light into digital values, respectively.
[0021]
The output sides of the ADCs 12a to 12c are connected to a correction circuit 13 that corrects white and black levels. The output side of the correction circuit 13 is connected to a maximum value detection circuit 14 and a color determination means (for example, a color determination circuit) 15. The maximum value detection circuit 14 detects the maximum value MAX of the R, G, B data for each pixel corrected and output by the correction circuit 13. The color determination circuit 15 determines whether each pixel is a chromatic color or an achromatic color based on the color difference, and outputs color information COL.
[0022]
The output sides of the maximum value detection circuit 14 and the color determination circuit 15 are connected to the image memory 17 via the data alignment circuit 16. The data alignment circuit 16 aligns the maximum value MAX and the color information COL for each pixel and stores them in the image memory 17 as image data. The image memory 17 is connected to the system bus 18. A frequency distribution memory 21 is connected to the system bus 18 in addition to the flash memory 19, print determination means, and reference value correction means (for example, CPU) 20.
[0023]
The flash memory 19 has various parameters such as a threshold value such as a determination reference value (for example, a reference value slice) for identifying pixels constituting a character and the like, and a correction value table for correcting this threshold value according to the background pattern density. Is a non-volatile memory. The CPU 20 compares each pixel of the image data stored in the image memory 17 with a threshold value held in the flash memory 19 to determine whether or not a character printed in the read area exists, Various processes such as correction of value slices and control are performed.
[0024]
Further, the output side of the maximum value detection circuit 14 and the color determination circuit 15 is connected to a reference value generation means (for example, a frequency distribution generation circuit) 22, and the frequency distribution generation circuit 22 includes a frequency distribution memory 21 and a region switching circuit. 23 is connected. The frequency distribution generation circuit 22 generates a histogram of the maximum value MAX of each pixel in the read area based on the maximum value MAX given from the maximum value detection circuit 14 and the color information COL given from the color determination circuit 15. It is.
[0025]
The area switching circuit 23 outputs a switching signal SEL for controlling switching of the area for generating the frequency distribution to the frequency distribution generating circuit 22 in accordance with an area signal given from, for example, a passbook transport mechanism (not shown). The histogram generated by the frequency distribution generation circuit 22 is stored in the frequency distribution memory 21.
[0026]
3A to 3C are explanatory diagrams of the print detection processing operation according to FIG. Hereinafter, with reference to FIGS. 3A to 3C, the operation of FIG. 1 will be described separately for (A) adjustment processing and (B) operation processing.
[0027]
(A) A “reference medium” is prepared in which a lower density character to be recognized as black and an upper density character to be recognized as white are printed on a white background passbook on which a processing copy-forgery-inhibited pattern is not printed. The medium is read by the color image sensor 11.
The output signals r, g, and b of the color image sensor 11 are converted into digital values by the ADCs 12a to 12c, and then subjected to level correction by the correction circuit 13. In the corrected R, G, B data, the maximum value MAX is detected for each pixel by the maximum value detection circuit 14, and the color determination circuit 15 determines whether the pixel is a chromatic color or an achromatic color, and the color information COL. Is output. The maximum value MAX and the color information COL for each pixel are given to the frequency distribution generation circuit 22.
[0028]
In the frequency distribution generation circuit 22, as shown in FIG. 3A, the level (gradation) of the maximum value MAX detected by the maximum value detection circuit 14 for the pixel determined to be achromatic by the color determination circuit 15. A histogram is generated and stored in the frequency distribution memory 21. Further, from the achromatic histogram stored in the frequency distribution memory 21, the gradation of the boundary between the lower density character recognized as black and the upper density character recognized as white is detected, and the reference value slice is determined and flashed. Registered in the memory 19.
[0029]
(B) Processing during operation When the passbook 2 to be read is read by the color image sensor 11, the output signals r, g and b of the color image sensor 11 are converted into digital values by the ADCs 12a to 12c and then corrected. The circuit 13 performs level correction. The maximum value MAX is detected by the maximum value detection circuit 14 from the corrected R, G, B data. The color determination circuit 15 outputs color information COL indicating whether the color is chromatic or achromatic based on the difference between the R, G, and B data for each pixel. The maximum value MAX and the color information COL for each pixel are given to the data alignment circuit 16 and the frequency distribution generation circuit 22.
In the data alignment circuit 16, the maximum value MAX and the corresponding color information COL are aligned for each pixel, and are sequentially stored in the image memory 17 as image data.
[0030]
On the other hand, the frequency distribution generation circuit 22 generates a histogram of the level of the maximum value MAX. At this time, in the frequency distribution generation circuit 22, the regions are switched according to the switching signal SEL provided from the region switching circuit 23. For example, in the form 2 in FIG. 1, there are three types of pages: a page mark at the top of each page, an area X in which a dark background pattern is printed, and an area Y in which a light background pattern is printed. Switch to the area. As a result, the frequency distribution generation circuit 22 generates a histogram for each of the three areas divided for each switched area.
[0031]
As shown in FIGS. 3B and 3C, the chromatic color histogram and the achromatic color histogram are separately generated based on the color information COL and stored in the frequency distribution memory 21.
After the reading of the passbook 2 is completed, the chromatic color histogram in the frequency distribution memory 21 is read by the CPU 20 for each area, and the maximum density MAX of the tint block color density is detected as shown in FIG. The Further, the CPU 20 refers to the correction value table held in the flash memory 19, and the reference value slice is corrected by the correction value corresponding to the tint block density, so that the binarized slice (= reference value slice-correction value) is obtained. Calculated.
[0032]
Thereafter, the maximum value MAX of the image data stored in the image memory 17 is compared with the binarized slice calculated by the CPU 20 for each pixel. If the maximum value MAX is equal to or less than the reference value slice, the data is binarized as black, and if the maximum value MAX exceeds the reference value slice, it is binarized as white. At this time, the density of the tint block in the passbook 2 is equal to or higher than the binarized slice, and thus becomes white. Furthermore, based on the binarized data for each pixel, the CPU 20 determines the presence or absence of printing for each line.
[0033]
As described above, the print detection apparatus according to the first embodiment has the following advantages (1) to (3).
(1) A frequency distribution generation circuit 22 and a frequency distribution memory 21 are provided, and a reference value slice serving as a character detection reference is determined from a histogram generated based on the “reference medium” at the time of adjustment. Accordingly, it is possible to detect the presence / absence of characters printed on a dark tint pattern from image data obtained from the color image sensor 11 without using an infrared sensor.
[0034]
(2) The CPU 20 corrects the reference value slice based on the tint block density obtained from the chromatic color histogram to calculate a binarized slice. As a result, it is possible to more reliably detect the presence or absence of a print character without being affected by the density of the background pattern.
[0035]
(3) The bankbook 2 to be read is divided into areas with different shades of page marks and tint blocks, and an area switching circuit 23 is provided for generating respective histograms. Thereby, it is possible to reliably detect a print character and a page mark corresponding to various passbooks.
[0036]
(Second Embodiment)
FIG. 4 is a configuration diagram of a print detection apparatus showing a second embodiment of the present invention, and elements common to those in FIG. 1 are denoted by common reference numerals.
The difference between the print detection apparatus of this embodiment and the print detection apparatus of FIG. 1 is that the print detection apparatus of FIG. 1 generates a histogram based on the maximum value MAX of the R, G, B data of each pixel. In contrast, this print detection apparatus generates a histogram for each of R, G, and B data.
[0037]
That is, the print detection apparatus includes three sets of frequency distribution generation circuits 22a, 22b, and 22c and three sets of frequency distribution memories 21a, 21b, and 21c. Each of the frequency distribution generation circuits 22a to 22c is supplied with R, B, and G data from the correction circuit 13 and is commonly supplied with color information COL from the color determination circuit 15. The frequency distribution generation circuits 22 a to 22 c are connected to frequency distribution memories 21 a to 21 c for storing the generated histograms, and these frequency distribution memories 21 a to 21 c are connected to the system bus 18. Other configurations are the same as those in FIG.
[0038]
In such a print detection device, when a form to be read is read by the color image sensor 11, image data of the read area is stored in the image memory 17, and a chromatic histogram for each of the R, G, B data. Are generated by the frequency distribution generation circuits 22a to 22c and stored in the frequency distribution memories 21a to 21c, respectively.
[0039]
After reading the form, the CPU 20 detects the maximum tint block density for each of the R, G, and B data from the chromatic color histogram. The tint block density for each of the R, G, and B data, and the color and shade of the tint block are recognized based on the respective color differences, so that a correction value table stored in advance in the flash memory 19 is referred to and correction corresponding to the tint block density is performed. The reference value slice is corrected by the value, and a binarized slice is calculated.
[0040]
Thereafter, the maximum value MAX of the image data stored in the image memory 17 and the binarized slice are compared for each pixel by the CPU 20 to binarize the image data. Further, the CPU 20 determines the presence / absence of printing for each row based on the binarized data for each pixel.
[0041]
As described above, the print detection apparatus according to the second embodiment includes the frequency distribution generation circuits 22a to 22c and the frequency distribution memories 21a to 21c for each of R, G, and B data. Thereby, in addition to the advantages (1) and (2), it is possible to cope with various background patterns of the passbook, and there is an advantage that the detection accuracy of printed characters can be further improved.
[0042]
In addition, this invention is not limited to the said embodiment, A various deformation | transformation is possible. Examples of this modification include the following (a) to (c).
(A) The print detection apparatus of FIG. 1 has a region switching circuit 23 for generating a histogram by distinguishing a plurality of regions having different background pattern densities. When a bankbook or the like having a small difference is to be read, the area switching circuit 23 may be deleted.
[0043]
(B) The CPU 20 detects the maximum value MAX of the tint block color density from the chromatic color histogram stored in the frequency distribution memory 21, and corrects the reference value slice by the correction value corresponding to the tint block density to obtain a binary value. However, this process may be omitted if the actual correction value is not so large.
[0044]
(C) The print detection apparatus of FIGS. 1 and 4 is configured to detect the presence or absence of a print character by the CPU 20, but is further configured to recognize the character when the print character is detected. Is also possible. That is, the processing described in the above embodiment can be applied as preprocessing for character recognition processing or mark reading processing. This makes it possible to accurately recognize characters and marks printed on the background pattern.
[0045]
【The invention's effect】
As described above in detail, according to the first aspect of the invention, the reference value generating means for generating the determination reference value based on the frequency distribution of the pixel density of the reference medium read by the color image sensor is provided. Further, color determination means for determining achromatic pixels among the passbook pixels read by the color image sensor is provided. Thereby, the print on the passbook or the like can be detected by comparing the density of the achromatic pixel of the passbook with the determination reference value.
[0047]
In addition, since it has a reference value correction means that corrects the judgment reference value based on the density of the background color of the passbook, it is more reliable to print on the passbook etc. regardless of the color or density of the background Can be detected.
[0048]
According to the second aspect of the invention, the correction value is obtained for each bankbook area, and the reference value correction means for correcting the determination reference value based on the correction value is provided. As a result, even in a passbook having areas with different tint block colors and densities, printing can be reliably detected.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of a print detection apparatus according to a first embodiment of the present invention.
FIG. 2 is a configuration diagram illustrating an example of a conventional OCR.
3 is an explanatory diagram of a print detection processing operation according to FIG. 1. FIG.
FIG. 4 is a configuration diagram of a print detection apparatus showing a second embodiment of the present invention.
[Explanation of symbols]
2 Passbook 11 Color Image Sensors 12a-12c ADC (Analog / Digital Conversion Circuit)
14 Maximum value detection circuit 15 Color determination circuit 16 Data alignment circuit 17 Image memory 19 Flash memory 20 CPU (central processing unit)
21, 21a-21c Frequency distribution memory 22, 22a-22c Frequency distribution generation circuit 23 Area switching circuit

Claims (2)

画像のイメージを色別の画素に分解して読み取るカラーイメージセンサと、
前記カラーイメージセンサで読み取られたイメージから無彩色と有彩色の画素を識別する色判定手段と、
印字の有無の判定基準となる濃度で印字されて前記カラーイメージセンサで読み取られ、前記色判定手段で無彩色と判定された基準媒体の画素濃度の頻度分布に基づいて印字濃度の判定基準値を生成する基準値生成手段と、
前記カラーイメージセンサで読み取られて前記色判定手段で無彩色と判定された読み取り対象の通帳のイメージを構成する画素の濃度を、前記判定基準値と比較して印字の有無を判定する印字判定手段と
を備えた印字検出装置であって、
前記カラーイメージセンサで読み取られて前記色判定手段で有彩色と判定された前記通帳の色別の画素濃度の頻度分布に基づいて該通帳の地紋の色別の濃度を検出し、検出した地紋の色別の濃度に基づいて前記判定基準値を補正する基準値補正手段を設け、
前記印字判定手段は、前記基準値補正手段で補正された判定基準値に従って前記通帳の印字の有無を判定するように構成したことを特徴とする印字検出装置。
A color image sensor that separates and reads the image into pixels of different colors, and
Color determination means for identifying achromatic and chromatic pixels from an image read by the color image sensor;
Based on the frequency distribution of the pixel density of the reference medium, which is printed at a density that is used as a determination criterion for the presence or absence of printing, is read by the color image sensor, and is determined as an achromatic color by the color determination unit, a determination reference value for the print density is obtained. A reference value generating means for generating;
Print determination means for determining the presence / absence of printing by comparing the density of pixels constituting the passbook image to be read, which has been read by the color image sensor and determined to be achromatic by the color determination means, with the determination reference value and,
A print detection device comprising:
Based on the frequency distribution of the pixel density for each color of the passbook that has been read by the color image sensor and determined to be a chromatic color by the color determination means, the density of the background color of the passbook is detected, and the detected background pattern Providing a reference value correcting means for correcting the determination reference value based on the density for each color;
The print detection apparatus, wherein the print determination unit is configured to determine whether the passbook is printed according to the determination reference value corrected by the reference value correction unit.
前記基準値補正手段は、前記通帳の読み取り領域を分割する領域信号に基づいて該通帳の地紋の画素濃度の頻度分布を算出し、分割された領域毎に該頻度分布に従って前記判定基準値を補正するように構成したことを特徴とする請求項1記載の印字検出装置。The reference value correction means calculates a frequency distribution of the pixel density of the copy-forgery-inhibited pattern based on an area signal that divides the reading area of the passbook, and corrects the determination reference value according to the frequency distribution for each divided area. The print detection apparatus according to claim 1, wherein the print detection apparatus is configured as described above.
JP2000198122A 2000-06-30 2000-06-30 Print detection device Expired - Fee Related JP4384791B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000198122A JP4384791B2 (en) 2000-06-30 2000-06-30 Print detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000198122A JP4384791B2 (en) 2000-06-30 2000-06-30 Print detection device

Publications (2)

Publication Number Publication Date
JP2002015304A JP2002015304A (en) 2002-01-18
JP4384791B2 true JP4384791B2 (en) 2009-12-16

Family

ID=18696331

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000198122A Expired - Fee Related JP4384791B2 (en) 2000-06-30 2000-06-30 Print detection device

Country Status (1)

Country Link
JP (1) JP4384791B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6263449B2 (en) * 2014-07-16 2018-01-17 東芝テック株式会社 Passbook printer and method for correcting passbook printer

Also Published As

Publication number Publication date
JP2002015304A (en) 2002-01-18

Similar Documents

Publication Publication Date Title
US6801636B2 (en) Image processing apparatus and method, and storage medium
US5335292A (en) Document processing system and method
US7327492B2 (en) Image processing device and image processing method
JPH09274660A (en) Method, device for recognizing image, copy machine mounting the same and scanner
JPH0957201A (en) Specific color region extracting system and specific color region removing system
US8223392B2 (en) Image processing device and image processing method
US7570788B2 (en) Printed paper inspecting method and apparatus
JP4384791B2 (en) Print detection device
KR0181129B1 (en) Image processing apparatus
US6798544B1 (en) Image reading method, image reading device and image processing device
JP4810614B2 (en) Image processing apparatus, image forming apparatus, determination method, program, and computer-readable storage medium
JP3804590B2 (en) Image processing device
JP4743065B2 (en) Image recognition apparatus, copying apparatus, and image recognition method
JP4045888B2 (en) Image processing device
JP4228515B2 (en) Image processing device
JP4449480B2 (en) Print image inspection method and inspection apparatus
JP4578004B2 (en) Scanner and binarization method by controlling light source color of scanner
JPH1051655A (en) Image processor and optical character reader
JP2020031379A (en) Image forming apparatus
JP3361905B2 (en) Optical character reader
JPH05219370A (en) Picture processing unit
EP1480165A2 (en) Image processing using image generation record information
JP2004056182A (en) Image processor
JPH05159102A (en) Copying machine
JP2006085568A (en) Image processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060825

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090610

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090616

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090730

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: 20090901

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: 20090928

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121002

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121002

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121002

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131002

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees