JP2004064426A - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP2004064426A
JP2004064426A JP2002220009A JP2002220009A JP2004064426A JP 2004064426 A JP2004064426 A JP 2004064426A JP 2002220009 A JP2002220009 A JP 2002220009A JP 2002220009 A JP2002220009 A JP 2002220009A JP 2004064426 A JP2004064426 A JP 2004064426A
Authority
JP
Japan
Prior art keywords
mark
image processing
interval
detected
specific
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.)
Granted
Application number
JP2002220009A
Other languages
Japanese (ja)
Other versions
JP4045888B2 (en
Inventor
Toshihiro Mori
森 俊浩
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.)
Minolta Co Ltd
Original Assignee
Minolta 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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP2002220009A priority Critical patent/JP4045888B2/en
Publication of JP2004064426A publication Critical patent/JP2004064426A/en
Application granted granted Critical
Publication of JP4045888B2 publication Critical patent/JP4045888B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To efficiently detect a space between specific marks during image reading. <P>SOLUTION: In this image processing device, a mark detecting means scans sequentially input image data to detect a specific mark, and a space detecting means detects a space among a plurality of detected specific marks. A converting means converts a predetermined value into a natural number fold of n-th power of 2, and a comparing means compares the space detected by the space detecting means with a setup value converted by the converting means and discriminates whether it is a specified value or its natural number fold. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、本来の画像データの中の特定マークの付加に関するものである。
【0002】
【従来の技術】
複写機等の画像形成装置における高画質化の1つの方向は、原稿の種類に応じた画像処理を行って画像の再現性を高めることである。ここで、用紙に特定マークなどを記録しておき、そのマークを読み取って得た情報を下に画像処理を制御することが提案されている。
【0003】
たとえば特開2001−189865号公報では、違法コピー禁止などのため、用紙内にコピー禁止マークまたはバーコードを記録する。画像処理回路が、画像データの中にコピー禁止マークまたはバーコードを検出すると、得られた情報(コピー禁止など)をもとに適切な処理を行う。また、特開平8−305791号公報では、用紙にマークを形成しておき、そのマークにより情報を得る。マークにより提供される情報は、原稿の方向、走査方向等の各種制御情報である。ここで、用紙の四隅にマークを形成することにより、原稿の置き方に関係なく同じ認識処理方法を使用できる。
【0004】
【発明が解決しようとする課題】
以上に説明したように、画像に対する情報を表わす特定マークを本来の画像に付加して画像を形成することが提案されている。たとえば、複写されたものを原稿として複写を行う、いわゆるジェネレーションコピーにおいては、オリジナルに対して画質が劣化するので、画像再現性を高めるために、操作者が手動で画像処理を切り換える手法などが用いられている。ジェネレーションコピーの場合、たとえば文字はMTF特性によって細くなったり、がたついたりする傾向があるので、膨張処理を行ったり、エッジを他の場合より強調する画像処理をすることにより、文字画像の再現性を向上できる。そこで、ジェネレーションコピーについても、人間の目に見えない特定マークを本来の画像に付加しておき、複写されたものが原稿であるか否かを自動的に判別できるようにすることが考えられる。こうすると、原稿画像を読み取るだけで自動的にジェネレーションコピーに適した画像処理を行える。特定マーク自体は本来の画像に影響を与えないものが好ましく、小さく且つ人間の目には識別しにくいものが望まれており、一方では、正確に検出する必要がある。本出願人は、後で提案しているように、小さく識別しにくい色のマークを複数個配置し、マーク自体を検出するとともに、マーク間の距離を識別することによって、本来の画像と異なる特定マークであることを識別する。ここで、画像形成時の特定マークの画像への追加と画像読取時の特定マークの識別は、これを効果的に行えることが望ましい。
【0005】
この発明の目的は、画像読取時の複数個のマークの識別を効果的に行うことである。
【0006】
【課題を解決するための手段】
本発明に係る画像処理装置は、入力画像データを順次走査して特定マークを検出するマーク検出手段と、検出された複数の特定マークの間隔を検出する間隔検出手段と、あらかじめ設定された値を2のn乗の自然数倍に変換する変換手段と、間隔検出手段により検出された間隔を、変換手段により変換された設定値と比較して、指定値またはその自然数倍であるか否かを判別する比較手段とからなる。
【0007】
前記の画像処理装置において、たとえば、前記の変換手段は、前記の設定値に設定値に応じた係数を乗算して2のn乗の自然数倍に変換する。
【0008】
前記の画像処理装置は、好ましくは、さらに、前記の設定値を設定する設定手段を備える。たとえば、画像処理装置が搭載される機種に応じて設定値を自動的に設定するようにしてもよい。
【0009】
前記の画像処理装置は、好ましくは、さらに、前記のマークが検出されると、入力画像データに対して所定の画像処理を施す画像処理手段を備える。この画像処理手段は、たとえば、前記のマークが検出されると、特定原稿であることを認識し、世代コピーに適した画像処理を施す。
【0010】
【発明の実施の形態】
以下、添付の図面を参照して発明の実施の形態を説明する。
世代コピー(ジェネレーションコピー)とは、複写されたものを原稿として複写を行うことである。本発明では、カラー複写機または多機能複合機などで原稿の印字をする場合に、複写されたものが原稿であるか否かを判別できるようにするために、特定形状のマークからなるパターンを本来の画像に付加して複写を行う。複数の特定マークからなるパターンが付加されたコピーを原稿として画像を読み取り、用紙に画像を形成するとき、原稿を読み取って得られた画像データから特定マークのパターンを検出できる。これにより、世代コピーであることを自動的に判別できる。世代コピーであると判別される場合、そのような原稿に適した画像処理を行ってコピーを作成する。たとえばエッジを通常より強調したり、文字のがたつきを無くしたり、色味を補正したりすることにより、文字画像の劣化を防止し、再現性を向上する。なお、このような特定マークのパターンは、世代コピー以外の情報を提供するためにも使用できるが、以下では世代コピーへの適用についてのみ説明するので、特定マークを世代コピーマーク(GCマークと略する)ともいう。特定マークのパターンとは、たとえば、所定個数の特定マークの等間隔配置である。
【0011】
図1〜図3を参照して、ジェネレーションコピーの処理を説明する。はじめて複写される原稿の中には、当然ながら世代コピーマーク(以下GCマークともいう)からなるパターンが含まれていない。そのような原稿を読み取り(S10)、得られた画像データについて、GCマーク検出処理を行う(S12)と、GCマークのパターンがないと判定される(S14でNO)。そこで、画像データについて通常の画像処理を行う(S16)。次に、用紙の余白部にGCマークのパターンを付加する処理を行う(S20)。そして、用紙に画像を形成する(S22)。
【0012】
こうして作成されたコピー(第1世代コピー)では、用紙の余白部に複数のGCマークからなるパターンが形成されている。図2は、1例を図式的に示す。用紙の4辺に余白部が設けられ、複数のGCマークのパターンが余白部内に辺にそって形成されている。GCマークは扁平な形状であり、用紙の辺にそった方向に横長になるように形成されている。複数のGCマークからなるパターンとして、この例では、複数のGCマークが等間隔に配置される。特定マークの色は、目立ちにくい色、たとえば黄色、である。
【0013】
次に、こうして得られた第1世代コピーを原稿として複写をする場合、その原稿を読み取り(S30)、得られた画像データについて、GCマーク検出処理を行う(S32)と、読取画像データからGCマークのパターンが検出され(D34でYES)、ジェネレーションコピーであると判別される。その場合、画像データについてジェネレーションコピー用の画像処理をする(S38)。次に、画像データについて、余白部にGCマークのパターンを付加する処理を行う(S40)。そして、用紙に画像を形成する(S42)。
【0014】
ここで、特定マークについては以下の点を考慮するべきである。入力画像の中から特定マークを認識する場合、パターンマッチングのために、マーク自体にある程度の大きさが必要となる。余白部分に特定マークを印字する場合、認識のしやすさや画像への影響を考えて大きなマークを印字するには大きな余白スペースが必要となる。また、パターンマッチングにおいて認識するために入力画像を保存する場合、入力画像を保存するためのラインメモリの容量も、特定マーク以上の大きさの記憶容量を必要とするために、大きくなる。また、特定マークが大きいと、目立たない色を採用しても、マークが目立ちやすくなる。また、一辺のみに特定マークが印字されていた場合、原稿のスキャナのプラテンガラスへの置き方によってマーク位置が変わることになったり、または、スキャン動作から認識するまで時間がかかるなどの問題がある。
【0015】
そこで、本発明では、図2に示したように、次のような特定マークを用いる。(1)特定マークの形状は、横長の形状(たとえば長方形)とし、用紙の辺にそって横長に記録する。特定マークは、パターンマッチングで識別するので、ある程度の大きさが必要であるが、大きすぎると目立ってしまう。横長のマークを用いるので、一定のマークの大きさを確保しながら少ない余白領域に印字できるので、必要とする余白領域が少なくてすむ。このため原稿画像に対する影響が少なくてすむ。また、横長のマークを用いるので、マーク面積が同じでも目立ちにくくできる。また、横長形状のマークを用いるので、処理回路の中のラインメモリの記憶容量も少なくてすみ、処理回路の構成が簡略化できる。
【0016】
(2)また、複数の特定マークを、用紙の余白部に用紙の辺にそって印字する。複数のマークを記録するので、一部の欠損があったりしても誤認識が避けられる。複数のマークを辺にそって配置するので、少ない余白領域に印字できる。また、図4に示すように、パターンマッチングに必要なライン数が少ないので、処理回路の中のラインメモリの容量も少なくてすむ。1例では、特定マークの間隔は一定である。
【0017】
(3)また、特定マークは、用紙の四辺にそれぞれ印字する。特定マークの検出範囲は、たとえば、スキャン時の最初の指定ライン数の範囲とし、また必要ならば主走査方向の指定範囲とする。したがって、図5に示すように、原稿の置き方に関係なく、同じ副走査方向の範囲で同じ処理を行うことで、マークを認識できる。したがって、処理回路の構成を簡略化でき、認識までの処理時間を短くできる。
【0018】
図6は、前述の世代コピーを適切に処理するカラー複写機の全体構成を示す。この複写機の構成は、特定原稿認識回路24の構成とGCマーク関連処理とを除いて従来と同様である。
【0019】
スキャナにおいて、CCDセンサ10で読み取られた原稿からの反射光は、AD変換器12によりデジタルのRGB読取データに変換される。読取データは、読取補正部14においてシェーディング補正、ライン間補正、色収差補正などの各種補正処理が施される。補正された読取データは、2つの経路で処理される。
【0020】
一方では、画像処理のための前処理が、解像度変換(拡大、縮小)部16、RGBガンマ補正部18、明度・色差分離部20及びGCマーク除去部22で行われる。解像度変換(拡大、縮小)部16では、必要ならば変倍処理が行われる。RGBガンマ補正部18では、RGBデータについてガンマ補正が行われる。HVC変換部20はRGBデータを明度Vと色差Cr、Cbに変換する。GCマーク除去部22は、読取データからGCマークが検出された場合、余白部からGCマークを除去する。
【0021】
他方、補正された読取データは、特定原稿認識回路24において処理される。特定原稿認識回路24において、紙幣認識回路26は、紙幣などの特定原稿であるか否かを判断する。さらに、特定原稿認識回路24では、GCマークを識別するための特定マーク認識チップ28が着脱可能である。特定マーク認識チップ28は、特定マーク識別処理を行う処理回路100と、ワークエリアであるRAM108とからなる。処理回路100は、マーク判定回路102、エレメント間隔検出回路104および総合判定回路106からなる。
【0022】
次に、画像の特徴に応じた画像調整が行われる。シャープネス補正部30は、画像のシャープネスを調整し、HVC調整部32では、明度・彩度・色相を独立に調整する。そして、色空間変換部34は、調整後のデータについて、濃度データへの変換、下色除去・墨加刷処理、CMYKデータへの変換などを行う。また、図示しないが、カラー/白黒原稿自動判別や自動下地レベル調整なども並行して行う。また、特定原稿認識回路24で特定原稿や特定マークが検出されなかった場合は、通常の画像調整が行われ、特定マークが検出された場合は、ジェネレーションコピー用の画像調整が行われる。その後、付加処理部46で特定マーク(GCマーク)が余白部に付加される。なお、図示しないが、モノクロ画像については2値化処理を行う。
【0023】
次に、JPEG符号化処理部38でデータが圧縮される。圧縮されたデータは、スキャナ画像IF40を経てプリンタ部42または外部機器44に送られる。プリンタ部42では、受け取ったデータを基に用紙に画像を形成する。ここで、用紙の四辺に複数の特定マークからなるパターンが形成される。なお、上述の画像処理系の全体の動作は、CPU50により制御される。CPU50は、プログラムなどを記憶するROM52とワークエリアであるRAM54に接続される。
【0024】
特定マーク認識チップ28は、主走査方向に等間隔で配置された複数の特定マークからなるパターンを認識する。このような特定マークのパターンの認識において、原稿を読み取って得られた画像データから、所定間隔で配置された特定マークを検出する必要がある。複数のマークエレメントで構成される特定マークを認識する場合、一般画像にマークエレメントに類似する色と形状が混じっていると、正確なマークエレメントの個数や配置を検出することが難しい。なお、ここでいうマークの間隔は、パターンマッチングで得られるマークの中心の間隔である。
【0025】
ここで、1つの方向に等間隔に配置されたマークエレメントの間隔を比較する場合、一般には、図7に示すように、次のような手順をとることが考えられる。マークエレメントの間隔としては、規定の間隔の自然数倍(たとえば、1倍、2倍、3倍、4倍)が生じ得るとすると、規定間隔を2倍する回路、3倍する回路および4倍する回路が必要となり、さらに、検出値を規定間隔と比較する第1の比較回路、検出値を規定間隔の2倍と比較する第2の比較回路、検出値を規定間隔の3倍と比較する第3の比較回路、検出値を規定間隔の4倍と比較する第4の比較回路がそれぞれ設けられる。そして、それらの比較結果がOR回路を経て出力される。この構成では、比較する個数の比較回路が必要である。たとえば、規定間隔が31画素であれば、検出値と、31画素、62画素、93画素、124画素のそれぞれとの比較が必要となる。また、ビット数もいずれも8ビット以上必要となる。したがって、比較回路を簡略化することが望ましい。一方、規定の間隔の設定値については、機械の仕様に応じて変更するため、複数の値が設定可能なように汎用性をもたせることが望ましい。たとえば、第1の複写機ではマークエレメント間隔を31画素にしたいが、第2の複写機では35画素にしたいという要求の発生が考えられる。
【0026】
そこで、本実施形態では、図8に示す簡略な間隔検出回路を採用する。この回路では、設定値を変更可能とし、使用者により入力された設定値から設定される特定の変換係数と乗算して、2のn乗(たとえば16)の自然数倍の値に変換する。変換係数は、16の自然数倍の自然数倍に変換する場合は、いつも下位の4ビットは”0000”となるように設定される。そして比較回路で所定数の下位ビットのみ検出値と比較する。そして、比較結果に応じて、規定間隔であるか否かを判定する。したがって、この間隔検出回路の構成では、複数の乗算回路の代わりに、特定の変換係数との乗算を行う1つの乗算回路を用い、また、比較回路は1つのみでよい。したがって、種々のマークエレメントの間隔に対応できるとともに、回路構成が簡素化できる。
【0027】
表1は、15の規定値(エレメント間隔)と、それに対応する計算用のパラメータを示す。なお、規定値は、200dpiでの値の他に、600dpiでの値と25dpiでの値も示す。また、マークエレメント間隔をmm単位で示す。さらに25dpiで表わした間隔wについての計算式を示す。さらに、それぞれに対応する係数Valueが示される。計算式は、w*Value/16である。ここで、/16は、4ビットの右シフトで対応できる。この計算で得られた数値の下3桁ないし下6桁の数値を検査する。
【0028】
【表1】
表1 マークエレメント間隔と計算時のパラメータ

Figure 2004064426
【0029】
具体的には、図9に示す間隔検出回路を用いる。この間隔検出回路では、マークエレメントの間隔は以下のように検出する。まず、200dpi時の間隔を選択する。25dpi換算時に、表1のエレメント間隔と計算時のパラメータValueを参照して、25dpiでの間隔wにValueを乗じる。次に、4ビット右にシフトして、16での除算を行う。そして、下位のnビット(3、4、5または6ビット)の数値を検査する。
【0030】
具体的に説明すると、CPU50が、処理回路100にパラメータNを設定すると、エレメント間隔算出回路104内において、設定値保持部112は、それに対応して25dpiでの画素数の設定値を保持する。(たとえば表1のN=9の場合は40という値を選択する。)次に、係数選択部116は、テーブル114を参照して、係数Valueを選択する。(たとえば表のN=9の場合は13という値を選択する。)一方、X座標カウンタ118は、X方向のカウンタであり、初期化の後で、基準となる信号をカウントし、カウント結果を200dpiで出力する。差分算出部120は、前に検出されたエレメントのX座標PreXとカウンタ118との差分を求め、200dpiでのエレメント間隔wを算出する。乗算器122は、係数Valueとエレメント間隔wとを乗算する。同時に、解像度変換のための3ビット及び16での除算のための4ビットの合計7ビットを右にシフトする。(こうして、乗算器122は、w*Value/16を出力する。)比較部124は、乗算結果の所定数の下位ビット(たとえば表のN=9の場合は下位4ビット)が0(または±1)であるか否かを比較する。ここで±1は許容範囲を示す。最初のマークエレメントを検出した場合、または、最初のマークエレメントでなく前のエレメントとの間隔が規定値である場合、その結果を検出数カウント部155を含む検出回路と保持部126に送る。検出数カウント部155は検出数を1つ増加する。また、保持部126は、比較部124でエレメント検出を行った場合、1つ前の検出座標PreXとしてそのX座標を保持する。保持部126の検出座標は差分算出部120に送られる。
【0031】
処理回路100内のマーク判定回路102では、CPU50から入力されるX検出範囲とY検出範囲を設定保持部151に記憶しておく。特定マークの判定は、副走査有効領域信号と主走査有効領域信号が出力されているときの画像信号を受け取って進められる。Y座標カウンタ150は、初期化の後で、副走査有効領域信号が出力されているときにY座標をカウントし、X座標カウンタ118は、主走査有効領域信号が出力されているときにX座標をカウントする。有効領域信号生成回路152は、X検出範囲及びY検出範囲と主走査有効領域信号とを基に有効領域信号を生成する。エレメント判定回路153は、有効領域信号が出力されているときに、画像データを入力してパターンマッチングによりマークエレメントを判定して、判定結果を出力する。
【0032】
処理回路100内のマーク判定回路102では、カウントアップ数判定部154は、マーク判定回路102からのマークエレメントの判定結果、エレメント間隔算出回路104からの間隔判定結果、及び、保持部156からのPreFlagとから、判定されたマークエレメントの有効/無効を判定する。検出判定部157は、マークエレメントの判定結果、間隔判定結果および保持部156で保持しているPreflagから、マークエレメント候補が検出されたことを示すフラグPreFlagを立てる。検出数カウント部155は、マークエレメントの判定結果を基にマークエレメント検出数nCountを出力する。カウントアップ数判定部154と検出判定部157の処理内容は、後で図12を用いて説明される。
【0033】
次に、処理回路100内の比較部124における処理について表1を参照して説明する。(1)もし200dpiでの間隔が64ドットまたは96ドットであれば、下位3ビットが検査される。もし(w & 0x7) が 0x1、0x0または0x7ならば、すなわち、下位3ビットが001、000または111ならば、OKである。(2)また、もし200dpiでの間隔が128ドットから224ドットまでならば、下位4ビットが検査される。もし、(w & 0xf) が 0x1、0x0または0xfならば、すなわち、下位4ビットが0001、0000または1111ならば、OKである。(3)また、もし200dpiでの間隔が256ドットから480ドットまでならば、下位5ビットが検査される。もし、(w & 0x1f) が 0x1、0x0または0x1fならば、すなわち、下位5ビットが00001、00000または11111ならば、OKである。(4)また、もし200dpiでの間隔が512ドットならば、下位6ビットが検査される。もし、(w & 0x3f) が 0x1、0x0または0x3fならば、すなわち、下位6ビットが000001、000000または111111ならば、OKである。
【0034】
なお、パラメータNは、画像処理装置が搭載される装置の機種に応じて自動的に設定してもよい。図10は、その場合の設定値自動設定のフローチャートである。特定マーク認識チップ28が画像処理装置に装着されている場合(S60でYES)、機種を識別し、装置が機種Aであれば(S62でYES)、パラメータを示すN(表1)を1とする(S64)。また、装置が機種Bであれば(S66でYES)、パラメータを示すNを2とする(S68)。以下、同様に機種に応じてNを設定する。
【0035】
以下に、特定マーク認識チップ28における処理手順を説明する。図11は、複数の特定マークからなるパターンの認識の処理のフローを示す。まずR,G,Bの画像データ(各8ビット)をエレメント判定回路153に入力する(S100)。次に、入力画像データからGCマークの色を抽出する(S102)。エレメント判定回路153では、入力されたR,G,Bの画像濃度が、予め規定された参照濃度範囲内であるか否かを判定して2値化を行う。これにより2値データが得られる。次に、2値像データからノイズを除去する(S104)。ここで、1画素からなる孤立点を除去する。次に、こうして得られた2値データについて、パターンマッチングのためのマーク検出パラメータを用いて、特定マークエレメント形状を検出する(S106)。ここで、たとえば11×11画素のエレメントフィルタを用いてマークエレメント形状の抽出を行う。次に、検出判定部157において、検出したマークエレメントについて所定間隔であるか否かを検査する(S108)。ここで、前回検出されたマークエレメントのx座標位置PreXとの差が指定のマークエレメント間隔の自然数倍であればマークエレメントであると判定する。次に、検出数カウント部155において、所定間隔であるマークエレメントの個数を算出する(S110)。そして、マークエレメントの個数を合計し、規定数であるか否かを判定し、その結果を出力する(S112)。ここで、マークエレメントの個数が規定数であると、世代コピーであると判定する。
【0036】
図12は、特定マーク認識チップ28におけるマーク間隔検査(図11、S108)とマーク個数カウント(図11、S110)のより詳細な処理を示す。ここで、画像データからの特定マークの検出は原稿の端から指定ライン数の範囲で行う。先に説明したように、特定マークは所定間隔で配置されているものとする。入力画像データを順次走査して、エレメント判定回路153が特定マークのパターンを検出する。2値データの座標位置は(X、Y)で表わす。まず、前処理として、CPU50は、X検出範囲とY検出範囲とを設定値保持回路151に設定する。また、マークエレメント規定間隔を保持回路112に設定する。なお、有効領域であれば有効領域信号生成回路152が有効領域信号を出力する。副走査有効領域信号がHレベルになると、検出数カウント部155において検出マークエレメント数nCountを0に初期化し、Y座標カウンタ150においてY座標の値を0に初期化する(S200)。次に、主走査有効領域信号がHレベルになると、X座標カウンタ118においてX座標の値を0に初期化する(S202)。次に、エレメント判定回路153では、11×11画素のマークエレメントフィルタを用いて、パターンマッチングによりマークエレメント候補を検出する(S204)。マークエレメント候補が検出されると、次に、検出判定部157で最初のマークエレメントであるか否かを判定する(S206)。最初のマークエレメントであれば、検出数カウント部155では検出マークエレメント数nCountをインクリメントし、検出判定部157ではマークエレメント候補が検出されたことを示すフラグPreFlagを立てる(S208)。さらに、検出されたマークエレメントの中心のX座標をx1とし、現在のXの値を、座標保持部126の前回検出マークエレメント位置PreXに設定する(S222)。また、マークエレメント候補が最初のマークエレメントでなければ(S206でNO)、そのマークエレメントのX座標をx2とする。次に、そのマークエレメントと1つ前の検出マークエレメント位置PreXとの距離(x2とx1の差の絶対値)が指定の間隔Wの自然数倍であるか否かを比較部124における下位ビットの比較により判定する(S210)。ここで、先に説明したように、テーブル114から選択された係数を用いた乗算値が用いられる。指定の間隔Wの自然数倍であれば(すなわちabs(x2−x1)=nW±1ならば)、検出数カウント部155において検出マークエレメント数nCountをインクリメントする(S212)。ここで±1は許容範囲を示す。カウントアップ数判定部154は、カウントするべき場合に検出数カウント部155に信号を出力する。検出判定部157で出力されたフラグPreFlagが0であれば(S214でYES)、検出数カウント部155において検出マークエレメント数nCountをインクリメントして(S216)、前回にマークエレメント候補でないと判断されたマークエレメント候補も検出マークエレメントとして扱う。そして、保持部156ではフラグPreFlagを1とする(S218)。また、エレメント検出座標保持部126において現在のX座標の値を前回検出マークエレメント位置PreXに設定する(S222)。指定の間隔Wでなければ(S210でNO)、保持部156ではフラグPreFlagを0とする(S220)。また、保持部126において現在のXの値を前回検出マークエレメント位置PreXに設定する(S222)。
【0037】
次に、X座標カウンタ118ではXをインクリメントして主走査方向に位置を移動し(S224)、XがX検出範囲内であれば(S226でNO)、ステップS204に戻ってマークエレメント検出を続ける。
【0038】
XがX検出範囲内でなくなると(S226でYES)、Y座標カウンタ150ではYをインクリメントして、副走査方向に位置を移動する(S228)。YがY検出範囲内であれば(S230でNO)、ステップS202に戻ってマークエレメント検出を続ける。YがY検出範囲内でなくなると(S230でYES)、処理を終了する。このときのnCountの値が、検出されたマークの数である。
【0039】
図13は、マーク個数カウント動作の例を示す。この例では長方形で示すマークエレメント候補が図に示すような順番で検出されている。最初のマークエレメント候補が検出されると、検出エレメント数nCountが1となり、フラグPreFlagが1と設定される。次に、2つ目のマークエレメント候補が検出されるが、指定の間隔の位置に存在しないので、マークエレメントでないと判断する。そこでフラグPreFlagが0に設定される。次に、3つ目のマークエレメント候補が検出されが、指定の間隔の位置に存在しないので、エレメントでないと判断し、フラグPreFlagが0に設定される。4つ目のマークエレメント候補が検出されると、指定の間隔の位置に存在するので、検出エレメント数nCountが2となり、さらに、前回のエレメント候補が指定の間隔でないと判断されていたので、有効なエレメント候補と判断して、さらに検出エレメント数nCountが3と増加する。そしてフラグPreFlagが1と設定される。
【0040】
【発明の効果】
複数のマークからなるパターンの検出において、マーク間隔が設定値またはその自然数倍であるか否かを判別するので、比較手段が1つだけでよく、マーク間隔検出の構成が大幅に簡素化できる。
2のn乗の自然数倍に変換するので、比較手段で比較するビット数も少なくてすむ。
設定値を設定する設定手段を備えることにより、設定値がたとえば機種ごとに設定できる。
【図面の簡単な説明】
【図1】第1世代コピーの処理を示すフローチャート
【図2】世代コピーの1例の図
【図3】第2世代コピーの処理を示すフローチャート
【図4】認識に必要なラインを示す図
【図5】原稿の異なる置き方の場合の検出処理を示す図
【図6】カラー複写機の全体構成を示すブロック図
【図7】主走査方向に等間隔に配置されたマークエレメントの間隔を比較する比較例の図
【図8】主走査方向に等間隔に配置されたマークエレメントの間隔を比較する回路の概念を示す図
【図9】マークエレメント間隔検出回路の回路図
【図10】画像処理装置が搭載される機種に応じた設定値自動設定のフローチャート
【図11】特定マーク認識チップにおける特定マーク認識のフローチャート
【図12】マーク間隔検査とマーク個数カウントのフローチャート
【図13】マーク個数カウント動作の説明のための図
【符号の説明】
10 CCDセンサ、  22 GCマーク除去部、  24 特定原稿認識回路、  28 特定マーク認識チップ、30 シャープネス補正部、  32HVC調整部、  34 色空間変換部、  36 付加処理部、  50 CPU、  100 処理回路、  102 マーク判定回路102、  104 エレメント間隔算出回路、  106 総合判定回路、  112 設定値保持部、  116 係数選択部、  118 X座標カウンタ、  120 差分算出部、  122 乗算器、  124 比較部、  126 保持部、153 ジェネレーションマークエレメント判定部、  154 カウントアップ数判定部、  155 検出数カウント部、  157  検出判定部。[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to the addition of a specific mark in original image data.
[0002]
[Prior art]
One direction of high image quality in an image forming apparatus such as a copying machine is to improve image reproducibility by performing image processing in accordance with the type of a document. Here, it has been proposed that a specific mark or the like is recorded on a sheet, and image processing is controlled based on information obtained by reading the mark.
[0003]
For example, in Japanese Patent Application Laid-Open No. 2001-189865, a copy prohibition mark or a bar code is recorded on a sheet to prevent illegal copying. When the image processing circuit detects a copy prohibition mark or barcode in the image data, it performs an appropriate process based on the obtained information (copy prohibition or the like). In Japanese Patent Application Laid-Open No. 8-3055791, a mark is formed on a sheet, and information is obtained from the mark. The information provided by the mark is various control information such as the direction of the document and the scanning direction. Here, by forming marks at the four corners of the sheet, the same recognition processing method can be used regardless of how the document is placed.
[0004]
[Problems to be solved by the invention]
As described above, it has been proposed to form an image by adding a specific mark representing information on the image to the original image. For example, in a so-called generation copy in which a copy is made as an original, so-called generation copy deteriorates the image quality of the original, so that an operator manually switches image processing to improve image reproducibility. Have been. In the case of generation copy, for example, characters tend to be thinned or rattled due to MTF characteristics. Therefore, character images are reproduced by performing expansion processing or performing image processing to emphasize edges more than in other cases. Performance can be improved. Therefore, it is conceivable that a specific mark invisible to human eyes is added to the original image in the generation copy so that it is possible to automatically determine whether or not the copy is an original. This makes it possible to automatically perform image processing suitable for generation copy simply by reading the document image. It is preferable that the specific mark itself does not affect the original image, and it is desired that the specific mark be small and hard to be recognized by human eyes. The present applicant, as proposed later, arranges a plurality of small and indistinguishable color marks, detects the marks themselves, and identifies the distance between the marks, thereby identifying a different image from the original image. Identify the mark. Here, it is desirable that the addition of the specific mark to the image at the time of image formation and the identification of the specific mark at the time of image reading can be performed effectively.
[0005]
An object of the present invention is to effectively identify a plurality of marks when reading an image.
[0006]
[Means for Solving the Problems]
An image processing apparatus according to the present invention includes a mark detection unit that sequentially scans input image data to detect a specific mark, an interval detection unit that detects an interval between a plurality of detected specific marks, and a predetermined value. A conversion unit for converting to a natural number multiple of 2 to the power of n, and comparing the interval detected by the interval detection unit with a set value converted by the conversion unit to determine whether the interval is a designated value or a natural number multiple thereof. And comparing means for determining
[0007]
In the image processing apparatus, for example, the conversion unit multiplies the set value by a coefficient corresponding to the set value to convert the set value to a natural number multiple of 2 n.
[0008]
The image processing apparatus preferably further includes a setting unit for setting the set value. For example, the set value may be automatically set according to the model in which the image processing apparatus is mounted.
[0009]
Preferably, the image processing apparatus further includes an image processing unit that performs predetermined image processing on the input image data when the mark is detected. This image processing means, for example, when the mark is detected, recognizes that the document is a specific document, and performs image processing suitable for generation copying.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.
A generation copy (generation copy) is to copy a copy as a document. In the present invention, when printing an original with a color copying machine or a multi-function multifunction peripheral, a pattern formed of a mark of a specific shape is used so that it is possible to determine whether or not the copy is an original. Copying is performed by adding to the original image. When an image is read using a copy to which a pattern including a plurality of specific marks is added as an original and an image is formed on a sheet, the pattern of the specific mark can be detected from image data obtained by reading the original. Thus, it can be automatically determined that the copy is a generation copy. If it is determined that the copy is a generation copy, image processing suitable for such a document is performed to create a copy. For example, deterioration of a character image is prevented and reproducibility is improved by emphasizing edges more than usual, eliminating rattling of characters, and correcting colors. Note that such a specific mark pattern can be used to provide information other than the generation copy. However, only the application to the generation copy will be described below. Therefore, the specific mark is referred to as a generation copy mark (abbreviated as a GC mark). Do). The specific mark pattern is, for example, an arrangement of a predetermined number of specific marks at equal intervals.
[0011]
The generation copy process will be described with reference to FIGS. Of course, the original document to be copied for the first time does not include a pattern composed of a generation copy mark (hereinafter also referred to as a GC mark). When such a document is read (S10) and the obtained image data is subjected to GC mark detection processing (S12), it is determined that there is no GC mark pattern (NO in S14). Therefore, normal image processing is performed on the image data (S16). Next, a process of adding a GC mark pattern to the margin of the sheet is performed (S20). Then, an image is formed on the sheet (S22).
[0012]
In the copy (first generation copy) created in this way, a pattern composed of a plurality of GC marks is formed in the margin of the paper. FIG. 2 schematically shows one example. Margins are provided on four sides of the sheet, and a plurality of GC mark patterns are formed along the sides in the margins. The GC mark has a flat shape and is formed to be horizontally long in a direction along the side of the sheet. In this example, a plurality of GC marks are arranged at equal intervals as a pattern including a plurality of GC marks. The color of the specific mark is an inconspicuous color, for example, yellow.
[0013]
Next, when the first generation copy obtained as described above is copied as a document, the document is read (S30), and the obtained image data is subjected to GC mark detection processing (S32). The mark pattern is detected (YES at D34), and it is determined that the copy is a generation copy. In that case, image processing for generation copy is performed on the image data (S38). Next, a process of adding a GC mark pattern to a blank portion of the image data is performed (S40). Then, an image is formed on the sheet (S42).
[0014]
Here, the following points should be considered for the specific mark. When a specific mark is recognized from an input image, the mark itself needs to have a certain size for pattern matching. When a specific mark is printed in a margin portion, a large margin space is required to print a large mark in consideration of ease of recognition and influence on an image. Further, when an input image is stored for recognition in pattern matching, the capacity of a line memory for storing the input image also increases because a storage capacity larger than a specific mark is required. Further, when the specific mark is large, the mark becomes more conspicuous even when an inconspicuous color is adopted. In addition, when a specific mark is printed on only one side, there is a problem that the mark position is changed depending on how the original is placed on the platen glass of the scanner, or it takes time to recognize from the scanning operation. .
[0015]
Therefore, in the present invention, the following specific marks are used as shown in FIG. (1) The shape of the specific mark is a horizontally long shape (for example, a rectangle), and is recorded horizontally long along the side of the sheet. Since the specific mark is identified by pattern matching, a certain size is required, but if it is too large, it becomes conspicuous. Since a horizontally long mark is used, it is possible to print in a small margin area while securing a fixed mark size, so that a small margin area is required. Therefore, the influence on the document image is small. In addition, since a horizontally long mark is used, even if the mark area is the same, the mark can be made less noticeable. Further, since the horizontally long mark is used, the storage capacity of the line memory in the processing circuit can be reduced, and the configuration of the processing circuit can be simplified.
[0016]
(2) Further, a plurality of specific marks are printed in the margin of the paper along the side of the paper. Since a plurality of marks are recorded, erroneous recognition can be avoided even if there is a partial defect. Since a plurality of marks are arranged along the side, printing can be performed in a small margin area. Further, as shown in FIG. 4, since the number of lines required for pattern matching is small, the capacity of the line memory in the processing circuit can be small. In one example, the interval between the specific marks is constant.
[0017]
(3) The specific mark is printed on each of the four sides of the sheet. The detection range of the specific mark is, for example, a range of the first designated number of lines at the time of scanning, and if necessary, a designated range in the main scanning direction. Therefore, as shown in FIG. 5, the mark can be recognized by performing the same processing in the same range in the sub-scanning direction regardless of how the document is placed. Therefore, the configuration of the processing circuit can be simplified, and the processing time until recognition can be shortened.
[0018]
FIG. 6 shows an overall configuration of a color copying machine that appropriately processes the above-mentioned generation copy. The configuration of this copying machine is the same as the conventional one except for the configuration of the specific document recognition circuit 24 and the GC mark related processing.
[0019]
In the scanner, the reflected light from the document read by the CCD sensor 10 is converted by an AD converter 12 into digital RGB read data. The read data is subjected to various correction processes such as shading correction, line-to-line correction, and chromatic aberration correction in the read correction unit 14. The corrected read data is processed in two paths.
[0020]
On the other hand, preprocessing for image processing is performed by the resolution conversion (enlargement / reduction) unit 16, the RGB gamma correction unit 18, the brightness / color difference separation unit 20, and the GC mark removal unit 22. The resolution conversion (enlargement / reduction) unit 16 performs a scaling process if necessary. The RGB gamma correction unit 18 performs gamma correction on the RGB data. The HVC converter 20 converts the RGB data into brightness V and color differences Cr and Cb. When the GC mark is detected from the read data, the GC mark removing unit 22 removes the GC mark from the margin.
[0021]
On the other hand, the corrected read data is processed in the specific document recognition circuit 24. In the specific document recognition circuit 24, the banknote recognition circuit 26 determines whether or not the document is a specific document such as a banknote. Further, in the specific document recognition circuit 24, a specific mark recognition chip 28 for identifying a GC mark is detachable. The specific mark recognition chip 28 includes a processing circuit 100 that performs specific mark identification processing, and a RAM 108 that is a work area. The processing circuit 100 includes a mark determination circuit 102, an element interval detection circuit 104, and an overall determination circuit 106.
[0022]
Next, image adjustment according to the characteristics of the image is performed. The sharpness correction unit 30 adjusts the sharpness of the image, and the HVC adjustment unit 32 independently adjusts brightness, saturation, and hue. Then, the color space conversion unit 34 performs conversion of the adjusted data into density data, undercolor removal / black printing processing, conversion into CMYK data, and the like. Although not shown, automatic color / monochrome document discrimination and automatic background level adjustment are also performed in parallel. When the specific document and the specific mark are not detected by the specific document recognition circuit 24, normal image adjustment is performed. When the specific mark is detected, the image adjustment for generation copy is performed. Thereafter, a specific mark (GC mark) is added to the margin by the addition processing unit 46. Although not shown, a binarization process is performed on a monochrome image.
[0023]
Next, the data is compressed by the JPEG encoding processing unit 38. The compressed data is sent to the printer unit 42 or the external device 44 via the scanner image IF 40. The printer unit 42 forms an image on a sheet based on the received data. Here, a pattern including a plurality of specific marks is formed on four sides of the sheet. The overall operation of the image processing system described above is controlled by the CPU 50. The CPU 50 is connected to a ROM 52 that stores programs and the like and a RAM 54 that is a work area.
[0024]
The specific mark recognition chip 28 recognizes a pattern composed of a plurality of specific marks arranged at equal intervals in the main scanning direction. In recognizing such specific mark patterns, it is necessary to detect specific marks arranged at predetermined intervals from image data obtained by reading a document. When recognizing a specific mark composed of a plurality of mark elements, it is difficult to accurately detect the number and arrangement of the mark elements if the general image contains colors and shapes similar to the mark elements. Note that the mark spacing here is the center spacing of marks obtained by pattern matching.
[0025]
Here, when comparing the intervals of mark elements arranged at equal intervals in one direction, generally, as shown in FIG. 7, the following procedure can be considered. Assuming that the interval between the mark elements can be a natural number multiple (for example, 1, 2, 3, or 4 times) of the specified interval, a circuit for doubling the specified interval, a circuit for multiplying the specified interval, and a quadruple. And a second comparing circuit for comparing the detected value with twice the specified interval, and a comparing circuit for comparing the detected value with twice the specified interval. A third comparison circuit and a fourth comparison circuit for comparing the detected value with four times the specified interval are provided. Then, the comparison results are output via the OR circuit. This configuration requires the number of comparison circuits to be compared. For example, if the specified interval is 31 pixels, it is necessary to compare the detected value with each of the 31 pixels, 62 pixels, 93 pixels, and 124 pixels. Also, the number of bits is required to be 8 bits or more. Therefore, it is desirable to simplify the comparison circuit. On the other hand, since the set value of the specified interval is changed according to the specifications of the machine, it is desirable to have versatility so that a plurality of values can be set. For example, it is conceivable that a request may be made to set the mark element interval to 31 pixels in the first copying machine, but to 35 pixels in the second copying machine.
[0026]
Therefore, in the present embodiment, a simple interval detection circuit shown in FIG. 8 is employed. In this circuit, the set value can be changed, and the value is multiplied by a specific conversion coefficient set from the set value input by the user to convert the value to a natural number multiple of 2 n (eg, 16). When the conversion coefficient is converted to a natural number multiple of 16 natural numbers, the lower 4 bits are always set to “0000”. Then, only a predetermined number of lower bits are compared with the detected value by the comparison circuit. Then, according to the comparison result, it is determined whether or not the interval is the specified interval. Therefore, in the configuration of the interval detection circuit, one multiplication circuit that performs multiplication with a specific conversion coefficient is used instead of a plurality of multiplication circuits, and only one comparison circuit is required. Therefore, it is possible to cope with various mark element intervals and to simplify the circuit configuration.
[0027]
Table 1 shows 15 prescribed values (element intervals) and the corresponding calculation parameters. Note that the specified value also indicates a value at 600 dpi and a value at 25 dpi in addition to the value at 200 dpi. Also, the mark element interval is indicated in mm. Further, a calculation formula for the interval w represented by 25 dpi is shown. Furthermore, the coefficient Value corresponding to each is shown. The calculation formula is w * Value / 16. Here, / 16 can be dealt with by 4-bit right shift. The lower 3 to 6 digits of the numerical value obtained by this calculation are checked.
[0028]
[Table 1]
Table 1 Mark element spacing and calculation parameters
Figure 2004064426
[0029]
Specifically, the interval detection circuit shown in FIG. 9 is used. In this interval detection circuit, the interval between mark elements is detected as follows. First, an interval at 200 dpi is selected. At the time of 25 dpi conversion, the interval w at 25 dpi is multiplied by Value with reference to the element interval in Table 1 and the parameter at the time of calculation. Next, the data is shifted right by 4 bits, and division by 16 is performed. Then, the lower n bits (3, 4, 5, or 6 bits) are inspected.
[0030]
More specifically, when the CPU 50 sets the parameter N in the processing circuit 100, the set value holding unit 112 holds the set value of the number of pixels at 25 dpi in the element interval calculation circuit 104 correspondingly. (For example, when N = 9 in Table 1, a value of 40 is selected.) Next, the coefficient selection unit 116 refers to the table 114 and selects a coefficient Value. (For example, when N = 9 in the table, a value of 13 is selected.) On the other hand, the X coordinate counter 118 is a counter in the X direction, counts a reference signal after initialization, and counts the count result. Output at 200 dpi. The difference calculation unit 120 calculates the difference between the X coordinate PreX of the previously detected element and the counter 118, and calculates the element interval w at 200 dpi. The multiplier 122 multiplies the coefficient Value by the element interval w. At the same time, a total of 7 bits of 3 bits for resolution conversion and 4 bits for division by 16 are shifted right. (Thus, multiplier 122 outputs w * Value / 16.) Comparing section 124 sets a predetermined number of lower bits (for example, lower 4 bits when N = 9 in the table) of the multiplication result to 0 (or ±). Compare 1) or not. Here, ± 1 indicates an allowable range. When the first mark element is detected, or when the distance from the previous element instead of the first mark element is a specified value, the result is sent to the detection circuit including the detection number counting section 155 and the holding section 126. The detection number counting unit 155 increases the detection number by one. In addition, when the comparing unit 124 performs element detection, the holding unit 126 holds the X coordinate as the immediately preceding detected coordinate PreX. The detected coordinates of the holding unit 126 are sent to the difference calculation unit 120.
[0031]
In the mark determination circuit 102 in the processing circuit 100, the X detection range and the Y detection range input from the CPU 50 are stored in the setting holding unit 151. The determination of the specific mark proceeds by receiving an image signal when the sub-scanning effective area signal and the main scanning effective area signal are output. After the initialization, the Y coordinate counter 150 counts the Y coordinate when the sub-scanning effective area signal is output, and the X coordinate counter 118 counts the X coordinate when the main scanning effective area signal is output. Count. The effective area signal generation circuit 152 generates an effective area signal based on the X detection range and the Y detection range and the main scanning effective area signal. When the effective area signal is output, the element determination circuit 153 receives the image data, determines a mark element by pattern matching, and outputs a determination result.
[0032]
In the mark determination circuit 102 in the processing circuit 100, the count-up number determination unit 154 includes a mark element determination result from the mark determination circuit 102, an interval determination result from the element interval calculation circuit 104, and a PreFlag from the holding unit 156. Thus, the validity / invalidity of the determined mark element is determined. The detection determination unit 157 sets a flag PreFlag indicating that a mark element candidate has been detected from the mark element determination result, the interval determination result, and the Preflag held in the holding unit 156. The detection number counting unit 155 outputs the mark element detection number nCount based on the mark element determination result. The processing contents of the count-up number determination unit 154 and the detection determination unit 157 will be described later with reference to FIG.
[0033]
Next, processing in the comparison unit 124 in the processing circuit 100 will be described with reference to Table 1. (1) If the interval at 200 dpi is 64 dots or 96 dots, the lower 3 bits are inspected. If (w & 0x7) is 0x1, 0x0 or 0x7, that is, if the lower 3 bits are 001, 000 or 111, it is OK. (2) If the interval at 200 dpi is from 128 dots to 224 dots, the lower 4 bits are inspected. If (w & 0xf) is 0x1, 0x0 or 0xf, that is, if the lower 4 bits are 0001, 0000 or 1111, it is OK. (3) If the interval at 200 dpi is from 256 dots to 480 dots, the lower 5 bits are inspected. If (w & 0x1f) is 0x1, 0x0 or 0x1f, that is, if the lower 5 bits are 00001, 00000 or 11111, it is OK. (4) If the interval at 200 dpi is 512 dots, the lower 6 bits are inspected. If (w & 0x3f) is 0x1, 0x0 or 0x3f, that is, if the lower 6 bits are 000001, 000000 or 111111, it is OK.
[0034]
Note that the parameter N may be automatically set according to the model of the device on which the image processing device is mounted. FIG. 10 is a flowchart of the setting value automatic setting in that case. When the specific mark recognition chip 28 is mounted on the image processing apparatus (YES in S60), the model is identified. If the apparatus is the model A (YES in S62), N indicating the parameter (Table 1) is set to 1. (S64). If the device is model B (YES in S66), N indicating the parameter is set to 2 (S68). Hereinafter, similarly, N is set according to the model.
[0035]
Hereinafter, the processing procedure in the specific mark recognition chip 28 will be described. FIG. 11 shows a flow of a process of recognizing a pattern including a plurality of specific marks. First, R, G, and B image data (each 8 bits) are input to the element determination circuit 153 (S100). Next, the color of the GC mark is extracted from the input image data (S102). The element determination circuit 153 determines whether or not the input R, G, B image densities are within a predetermined reference density range, and performs binarization. As a result, binary data is obtained. Next, noise is removed from the binary image data (S104). Here, an isolated point composed of one pixel is removed. Next, a specific mark element shape is detected from the binary data thus obtained by using a mark detection parameter for pattern matching (S106). Here, for example, a mark element shape is extracted using an element filter of 11 × 11 pixels. Next, the detection determination unit 157 checks whether or not the detected mark element is at a predetermined interval (S108). Here, if the difference between the previously detected mark element and the x coordinate position PreX is a natural number multiple of the specified mark element interval, it is determined that the mark element is a mark element. Next, the detected number counting unit 155 calculates the number of mark elements at a predetermined interval (S110). Then, the number of mark elements is totaled, it is determined whether or not the number is a specified number, and the result is output (S112). Here, if the number of mark elements is a specified number, it is determined that the copy is a generation copy.
[0036]
FIG. 12 shows more detailed processing of the mark interval inspection (FIG. 11, S108) and the mark number count (FIG. 11, S110) in the specific mark recognition chip 28. Here, the detection of the specific mark from the image data is performed within the range of the designated number of lines from the edge of the document. As described above, it is assumed that the specific marks are arranged at predetermined intervals. The input image data is sequentially scanned, and the element determination circuit 153 detects the pattern of the specific mark. The coordinate position of the binary data is represented by (X, Y). First, as preprocessing, the CPU 50 sets the X detection range and the Y detection range in the set value holding circuit 151. Further, the mark element prescribed interval is set in the holding circuit 112. In the case of an effective area, the effective area signal generation circuit 152 outputs an effective area signal. When the sub-scanning effective area signal becomes H level, the number-of-detection-mark elements nCount is initialized to 0 in the detection-number counting unit 155, and the value of the Y coordinate is initialized to 0 in the Y-coordinate counter 150 (S200). Next, when the main scanning effective area signal becomes H level, the value of the X coordinate is initialized to 0 in the X coordinate counter 118 (S202). Next, the element determination circuit 153 detects a mark element candidate by pattern matching using a mark element filter of 11 × 11 pixels (S204). When a mark element candidate is detected, the detection determination unit 157 determines whether or not the mark element is the first mark element (S206). If the mark element is the first mark element, the detected number counting section 155 increments the number nCount of detected mark elements, and the detection determining section 157 sets a flag PreFlag indicating that a mark element candidate has been detected (S208). Further, the X coordinate of the center of the detected mark element is set to x1, and the current value of X is set to the previously detected mark element position PreX of the coordinate holding unit 126 (S222). If the mark element candidate is not the first mark element (NO in S206), the X coordinate of the mark element is set to x2. Next, it is determined whether or not the distance (absolute value of the difference between x2 and x1) between the mark element and the immediately preceding detected mark element position PreX is a natural number multiple of the specified interval W by the lower-order bit in the comparing unit 124 (S210). Here, as described above, a multiplication value using the coefficient selected from the table 114 is used. If it is a natural number multiple of the specified interval W (that is, if abs (x2−x1) = nW ± 1), the number of detection mark elements nCount is incremented by the detection number counting unit 155 (S212). Here, ± 1 indicates an allowable range. Count-up number determining section 154 outputs a signal to detected number counting section 155 when counting should be performed. If the flag PreFlag output from the detection determination unit 157 is 0 (YES in S214), the detection number counting unit 155 increments the number nCount of detection mark elements (S216), and it was previously determined that it was not a mark element candidate. Mark element candidates are also treated as detected mark elements. Then, the holding unit 156 sets the flag PreFlag to 1 (S218). Further, the current value of the X coordinate is set to the previous detection mark element position PreX in the element detection coordinate holding unit 126 (S222). If it is not the designated interval W (NO in S210), the holding unit 156 sets the flag PreFlag to 0 (S220). Further, the current value of X is set to the previously detected mark element position PreX in the holding unit 126 (S222).
[0037]
Next, the X coordinate counter 118 increments X and moves the position in the main scanning direction (S224). If X is within the X detection range (NO in S226), the process returns to step S204 to continue mark element detection. .
[0038]
When X is no longer within the X detection range (YES in S226), the Y coordinate counter 150 increments Y and moves the position in the sub-scanning direction (S228). If Y is within the Y detection range (NO in S230), the process returns to step S202 to continue the mark element detection. When Y is no longer within the Y detection range (YES in S230), the process ends. The value of nCount at this time is the number of detected marks.
[0039]
FIG. 13 shows an example of the mark number counting operation. In this example, mark element candidates indicated by rectangles are detected in the order shown in the figure. When the first mark element candidate is detected, the detected element number nCount becomes 1, and the flag PreFlag is set to 1. Next, the second mark element candidate is detected, but is not present at the position of the specified interval, so that it is determined that it is not a mark element. Therefore, the flag PreFlag is set to 0. Next, although the third mark element candidate is detected but does not exist at the position of the specified interval, it is determined that the element is not an element, and the flag PreFlag is set to 0. When the fourth mark element candidate is detected, the mark element is present at the position of the specified interval, so the detected element number nCount becomes 2, and since the previous element candidate is determined not to be at the specified interval, it is valid. Is determined to be an element candidate, and the number nCount of detected elements further increases to 3. Then, the flag PreFlag is set to 1.
[0040]
【The invention's effect】
In the detection of a pattern composed of a plurality of marks, it is determined whether or not the mark interval is a set value or a natural number multiple thereof, so that only one comparing means is required and the configuration of the mark interval detection can be greatly simplified. .
Since the data is converted to a natural number times 2 to the power of n, the number of bits to be compared by the comparing means can be reduced.
By providing the setting means for setting the set value, the set value can be set, for example, for each model.
[Brief description of the drawings]
FIG. 1 is a flowchart showing a first generation copy process. FIG. 2 is a diagram showing an example of a generation copy. FIG. 3 is a flowchart showing a second generation copy process. FIG. 4 is a diagram showing lines necessary for recognition. FIG. 5 is a diagram showing a detection process in a case where a document is placed differently. FIG. 6 is a block diagram showing an overall configuration of a color copying machine. FIG. 7 compares intervals of mark elements arranged at equal intervals in the main scanning direction. FIG. 8 is a diagram showing a concept of a circuit for comparing intervals of mark elements arranged at equal intervals in the main scanning direction. FIG. 9 is a circuit diagram of a mark element interval detecting circuit. FIG. 10 is an image processing. Flowchart of automatic setting of setting values according to the model in which the device is mounted [Fig. 11] Flowchart of specific mark recognition in specific mark recognition chip [Fig. [EXPLANATION OF SYMBOLS] Figure for explanation bets 13 mark number counting
Reference Signs List 10 CCD sensor, 22 GC mark removal unit, 24 specific document recognition circuit, 28 specific mark recognition chip, 30 sharpness correction unit, 32 HVC adjustment unit, 34 color space conversion unit, 36 additional processing unit, 50 CPU, 100 processing circuit, 102 Mark judgment circuit 102, 104 Element interval calculation circuit, 106 comprehensive judgment circuit, 112 set value holding section, 116 coefficient selection section, 118 X coordinate counter, 120 difference calculation section, 122 multiplier, 124 comparison section, 126 holding section, 153 A generation mark element determination unit, 154 count-up number determination unit, 155 detection number count unit, 157 detection determination unit.

Claims (5)

入力画像データを順次走査して特定マークを検出するマーク検出手段と、
検出された複数の特定マークの間隔を検出する間隔検出手段と、
あらかじめ設定された値を2のn乗の自然数倍に変換する変換手段と、
間隔検出手段により検出された間隔を、変換手段により変換された設定値と比較して、指定値またはその自然数倍であるか否かを判別する比較手段と
からなる画像処理装置。
Mark detection means for sequentially scanning input image data to detect a specific mark;
Interval detecting means for detecting an interval between the plurality of detected specific marks,
Conversion means for converting a preset value into a natural number times 2 to the power of n;
An image processing apparatus comprising: a comparison unit configured to compare the interval detected by the interval detection unit with a set value converted by the conversion unit and determine whether the interval is a designated value or a natural number multiple thereof.
前記の変換手段は、前記の設定値に設定値に応じた係数を乗算して2のn乗の自然数倍に変換することを特徴とする請求項1に記載された画像処理装置。2. The image processing apparatus according to claim 1, wherein the conversion unit multiplies the set value by a coefficient corresponding to the set value to convert the set value to a natural number times 2 n. さらに、前記の設定値を設定する設定手段を備えることを特徴とする請求項1または2に記載された画像処理装置。The image processing apparatus according to claim 1, further comprising a setting unit configured to set the set value. さらに、前記のマークが検出されると、入力画像データに対して所定の画像処理を施す画像処理手段を備えることを特徴とする請求項1から3のいずれかに記載された画像処理装置。4. The image processing apparatus according to claim 1, further comprising an image processing unit that performs predetermined image processing on the input image data when the mark is detected. 前記の画像処理手段は、前記のマークが検出されると、特定原稿であることを認識し、世代コピーに適した画像処理を施すことを特徴とする請求項4に記載された画像処理装置。The image processing apparatus according to claim 4, wherein, when the mark is detected, the image processing unit recognizes that the document is a specific document, and performs image processing suitable for a generation copy.
JP2002220009A 2002-07-29 2002-07-29 Image processing device Expired - Fee Related JP4045888B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002220009A JP4045888B2 (en) 2002-07-29 2002-07-29 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002220009A JP4045888B2 (en) 2002-07-29 2002-07-29 Image processing device

Publications (2)

Publication Number Publication Date
JP2004064426A true JP2004064426A (en) 2004-02-26
JP4045888B2 JP4045888B2 (en) 2008-02-13

Family

ID=31940769

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002220009A Expired - Fee Related JP4045888B2 (en) 2002-07-29 2002-07-29 Image processing device

Country Status (1)

Country Link
JP (1) JP4045888B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007208452A (en) * 2006-01-31 2007-08-16 Toshiba Corp Image processing method and image processing apparatus
JP2008140033A (en) * 2006-11-30 2008-06-19 Matsushita Electric Ind Co Ltd Code reader and code reading method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007208452A (en) * 2006-01-31 2007-08-16 Toshiba Corp Image processing method and image processing apparatus
JP4550745B2 (en) * 2006-01-31 2010-09-22 株式会社東芝 Image processing method and image processing apparatus
JP2008140033A (en) * 2006-11-30 2008-06-19 Matsushita Electric Ind Co Ltd Code reader and code reading method

Also Published As

Publication number Publication date
JP4045888B2 (en) 2008-02-13

Similar Documents

Publication Publication Date Title
KR100994644B1 (en) Image processing apparatus and method thereof
US8243330B2 (en) Apparatus, method, and computer-readable recording medium for performing color material saving process
US8363946B2 (en) Decoding two-dimensional code using multiple binarization thresholds
US20080137159A1 (en) Image forming apparatus and image quality improving method thereof
JPH0722330B2 (en) Image region identification method for image processing apparatus
JP2000175031A (en) Image processing unit, image processing method and image input device
US6775031B1 (en) Apparatus and method for processing images, image reading and image forming apparatuses equipped with the apparatus, and storage medium carrying programmed-data for processing images
JP2002232708A (en) Image processing device, image forming device using the same, and image processing method
US6868183B1 (en) Image processing apparatus, image forming apparatus, and image processing method depending on the type of original image
JPH06133159A (en) Picture processing unit
JP2004214977A (en) Image processing apparatus, image forming apparatus and image processing method equipped therewith image processing program and recording medium
JP2016184914A (en) Image processing apparatus
JP4045888B2 (en) Image processing device
JP2010119006A (en) Image processing apparatus,and image processing method
JP3804590B2 (en) Image processing device
JP6474315B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP3847565B2 (en) Image processing apparatus, image forming apparatus including the same, and image processing method
JP2002010094A (en) Image forming equipment
JP4994326B2 (en) Image processing apparatus and image forming apparatus including the image processing apparatus
JP2004056182A (en) Image processor
JPH0918709A (en) Image recognition method and its device, copying machine, scanner and printer mounting the device
JP2004056184A (en) Image forming apparatus and image processor
JP2002064717A (en) Color image forming apparatus
JP2000324338A (en) Original kind recognition device
JP2007014038A (en) Image processing apparatus and method, and image forming apparatus and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040927

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20040927

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20041125

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20041125

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070104

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070227

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070427

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070703

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070821

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071112

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

Free format text: PAYMENT UNTIL: 20101130

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees