JP2004159003A - Image reading apparatus - Google Patents

Image reading apparatus Download PDF

Info

Publication number
JP2004159003A
JP2004159003A JP2002321576A JP2002321576A JP2004159003A JP 2004159003 A JP2004159003 A JP 2004159003A JP 2002321576 A JP2002321576 A JP 2002321576A JP 2002321576 A JP2002321576 A JP 2002321576A JP 2004159003 A JP2004159003 A JP 2004159003A
Authority
JP
Japan
Prior art keywords
size
image data
image
document
unit
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.)
Pending
Application number
JP2002321576A
Other languages
Japanese (ja)
Inventor
Tetsuji Yamaguchi
哲治 山口
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery 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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2002321576A priority Critical patent/JP2004159003A/en
Publication of JP2004159003A publication Critical patent/JP2004159003A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image reading apparatus for detecting the size of an original image to be read with a simple circuit configuration. <P>SOLUTION: An extract section 39 extracts e.g., G components from image data of one line adopting the RGB color system read by a CCD line sensor 35. The extracted G components for one line are divided into component divisions each comprising a plurality of number of data, and an average value calculation section 40 calculates an average value of the G components in each division. Further, a difference calculation section 41 calculates a difference between the average values adjacent to each other among the calculated average values in one line and a size decision section 42 detects the size of the original on the basis of the calculated difference value. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、原稿画像を読み取り、取得した複数の色成分を有する画像データに基づき、前記原稿画像のサイズを検知する画像読取装置に関するものである。
【0002】
【従来の技術】
近年、ファクシミリ装置にプリンタ機能を搭載した複合機が普及しており、このような装置においては、プリンタ機能の拡張に伴い、カラー複写機能及びカラーファクシミリ通信機能等も搭載されつつある。
このような複合機における画像読取装置は、ガラス製の載置台上に載置された原稿に光を照射する光源、原稿からの反射光の光路を変更するミラー、前記光源及びミラーを移動させる移動機構、光電変換素子であるCCD(Charge Coupled Device )を主走査方向に多数並べ、集光レンズを通してミラーからの光が入射されるCCDラインセンサ等を備えており、光源等を搭載した移動機構を前記載置台に沿って、副走査方向に移動させながら、主走査方向を長手方向とするCCDラインセンサ(主走査方向と平行に配置されたCCDラインセンサ)により1ラインずつ原稿画像の読み取りを行うように構成されている。
【0003】
一方、上述のような複合機におけるプリンタ装置においては、給紙カセットに用意された複数の異なるサイズの記録紙から、適切なサイズを選択して印刷を行うために、読み取られる原稿画像のサイズを検知することが望まれており、原稿サイズ検知センサ等を載置台の近傍に配置させ、この原稿サイズ検知センサにより原稿画像のサイズを検知する装置がある。
また、原稿画像を読み取り、取得した画像データに基づき、原稿画像が有する複数画素夫々の明度成分を算出し、算出された各画素の明度成分に基づき、原稿画像のサイズを検知する装置もある(例えば、特許文献1参照)。
【0004】
【特許文献1】
特開2000−101832号公報
【0005】
【発明が解決しようとする課題】
しかし、上述したように原稿サイズ検知センサを備えた装置においては、装置の構成が複雑となり、装置の製造コストも高くなるという問題があった。
また、原稿画像から取得した画像データに基づき算出された各画素夫々の明度情報から、原稿画像のサイズを検知する装置においては、各画素に対応する明度成分を順次算出する必要があり、各画素の明度成分の算出処理時間が必要である。更に、例えば、RGB表色系の画像データに基づき、各画素の明度成分を算出する場合のパラメータの設定が困難であり、正確に原稿画像のサイズを検知することが困難であるという問題があった。
【0006】
本発明は斯かる事情に鑑みてなされたものであり、読み取った複数の色成分を有する画像データから、所定の色成分を抽出し、抽出された色成分に基づき、原稿画像のサイズを検知することにより、原稿サイズ検知センサ等を別途に設ける必要がなく、単純な回路構成により迅速に原稿画像のサイズを検知する画像読取装置を提供することを目的とする。
【0007】
本発明の他の目的は、取得した複数の色成分を有する画像データを、輝度成分及び色差成分を有する画像データに変換して得られた画像データの輝度成分に基づき、原稿画像のサイズを検知することにより、複数の色成分を有する画像データに対して煩雑な演算処理を施す必要がなく、変換して得られた画像データの輝度情報に基づき、原稿自体が有する地色等の色成分には依存せず、原稿画像のサイズを確実に検知する画像読取装置を提供することにある。
【0008】
本発明の更に他の目的は、取得した複数の色成分を有する画像データを変換して得られた画像データの色差成分に基づき、取得した画像データが、カラー画像データであるかモノクローム画像データであるかを判別することにより、輝度成分に基づく原稿画像のサイズ検知処理のために生成された輝度成分及び色差成分を有する画像データに基づき、カラー画像であるかモノクローム画像であるかを判断する画像読取装置を提供することにある。
【0009】
【課題を解決するための手段】
第1発明に係る画像読取装置は、原稿画像を読み取り、取得した複数の色成分を有する画像データに基づき、前記原稿画像のサイズを検知する画像読取装置において、取得した画像データから、所定の色成分を抽出する抽出手段と、該抽出手段により抽出された色成分に基づき、前記原稿画像のサイズを検知する検知手段とを備えることを特徴とする。
【0010】
第1発明による場合は、読み取った複数の色成分を有する画像データから、所定の色成分を抽出し、抽出された色成分に基づき、原稿画像のサイズを検知することにより、原稿サイズ検知センサ等を別途に設ける必要がなく、複数の色成分を有する画像データに対して煩雑な演算処理を施す必要もなく、単純な回路構成により迅速に原稿画像のサイズを検知することができる。
【0011】
第2発明に係る画像読取装置は、原稿画像を読み取り、取得した複数の色成分を有する画像データに基づき、前記原稿画像のサイズを検知する画像読取装置において、取得した画像データを、輝度成分及び色差成分を有する画像データに変換する変換手段と、該変換手段により変換された画像データの輝度成分に基づき、前記原稿画像のサイズを検知する検知手段とを備えることを特徴とする。
【0012】
第2発明による場合は、取得した複数の色成分を有する画像データを、輝度成分及び色差成分を有する画像データに変換して得られた画像データの輝度成分に基づき、原稿画像のサイズを検知することにより、複数の色成分を有する画像データに対して煩雑な演算処理を施す必要がなく、変換して得られた画像データの輝度情報に基づき、原稿自体が有する地色等の色成分には依存せず、原稿画像のサイズを確実に検知することができる。
【0013】
第3発明に係る画像読取装置は、第2発明に係る画像読取装置において、前記変換手段により変換された画像データの色差成分に基づき、前記取得した画像データが、カラー画像データであるかモノクローム画像データであるかを判別する判別手段を備えることを特徴とする。
【0014】
第3発明による場合は、取得した複数の色成分を有する画像データを変換して得られた画像データの色差成分に基づき、取得した画像データが、カラー画像データであるかモノクローム画像データであるかを判別することにより、輝度成分に基づく原稿画像のサイズ検知処理のために生成された輝度成分及び色差成分を有する画像データに基づき、カラー画像であるかモノクローム画像であるかを判断することができ、以後の各処理をスムーズに実行することができる。
【0015】
【発明の実施の形態】
以下に、本発明に係る画像読取装置を読取部とし、この読取部を備える複合機における実施の形態に基づいて詳述する。
(実施の形態1)
図1は本発明に係る読取部を備える複合機の構成を示すブロック図であり、図中1は複合機を示している。
この複合機1は、制御部10,ROM11,RAM12,NCU(Network Control Unit)13,モデム14,読取部3,表示部15,操作部16,第1画像メモリ17,2値化処理部18,第2画像メモリ19,メモリ制御部20,第1CODEC21,第2CODEC23,記録部24等を備えており、夫々はシステムバス25を介して相互に接続されている。
【0016】
制御部10は、具体的にはCPU(Central Processing Unit) 等で構成されており、システムバス25を介して複合機1の上述したようなハードウェア各部を制御すると共に、ROM11に格納されたコンピュータプログラムに従って、種々のソフトウェア的機能を実現する。
ROM11は、本実施の形態に係る複合機1の動作に必要な種々のコンピュータプログラム、及びA3,B4,A4,B5,A5の各サイズの記録紙の主走査方向のサイズ幅を予め記憶している。
RAM12は、SRAM又はフラッシュメモリ等で構成され、制御部10による各プログラムの実行時に発生するデータを一時的に記憶する。尚、RAM12にフラッシュメモリを使用した場合には、停電,複合機1の移動等のために電源が遮断された場合であっても、記憶内容が失われることはない。
【0017】
モデム14は、ファクシミリ通信が可能なファックスモデムで構成されており、NCU13と直接的にも接続されている。NCU13は、公衆電話回線網Lと接続されており、必要に応じてモデム14を公衆電話回線網Lと接続し、公衆電話回線網Lを介して他のファクシミリ装置との間でのファクシミリ通信を可能としている。
表示部15は、液晶ディスプレイ(LCD)等で構成されており、複合機1の動作状況、操作部16から入力された文字等を表示する。
操作部16は、複合機1を操作するために必要な各種のファンクションキーを備えている。尚、表示部15をタッチパネル方式のものとすることにより、操作部16の各種のキーのうちの一部又は全部を代用することも可能である。
【0018】
第1画像メモリ17は、DRAM等により構成されており、後述する読取部3により読み取られ、所定の処理を施されたRGB(R:赤,G:緑,B:青)表色系の画像データを記憶する。
尚、第1画像メモリ17には、各画素のR,G,B成分夫々を多値データで示した多値の画像データが記憶してあり、読取部3により読み取られた多値の画像データは、一旦第1画像メモリ17に記憶される。
【0019】
2値化処理部18は、読取部3により読み取られたRGB表色系の多値の画像データを、例えば、CMYK(C:シアン,M:マゼンタ,Y:イエロー,K:ブラック)表色系の画像データに変換すると共に、所定の閾値と比較することにより、2値の画像データに変換し、DRAM等により構成される第2画像メモリ19に記憶する。
尚、本実施の形態の複合機1は、ユーザからの設定により、読取部3にて読み取った画像データを高解像度に変換する解像度変換機能も備えており、解像度変換機能の実行が指示された場合、2値化処理部18は、上述したように、第1画像メモリ17に記憶してあるRGB表色系の画像データを変換して得られたCMYK表色系の画像データに対して解像度変換処理を行い、高解像度に変換されたCMYK表色系の画像データに2値化処理を実行する。
【0020】
第1CODEC21は、読取部3により読み取られ、2値化処理部18により2値の画像データに変換された画像データに対して、符号化処理を行い、符号化された画像データは、メモリ制御部20の制御に従って、イメージバス26を介して符号化画像メモリ22に記憶される。
また、符号化画像メモリ22に記憶してある画像データを記録紙等に記録する場合に、メモリ制御部20の制御に従って、符号化画像メモリ22から第2CODEC23に読み出された画像データは、第2CODEC23にて復号されて、一旦第2画像メモリ19に記憶される。
【0021】
記録部24は、電子写真方式のプリンタ装置であって、記録すべく第2画像メモリ19に記憶してある画像データを読み出し、読み出した画像データに基づく画像を、ハードコピーとしてA3縦,B4縦,A4縦,B5横及びA5横等の各サイズの記録紙又はOHP(Over Head Projector) シートから最適なサイズのものを選択して記録する。
【0022】
図2は本発明に係る読取部3を示す外観斜視図であり、この読取部3は、直方体型の筺体31と、筺体31上面の一辺に開閉自在に取り付けられたプラテンカバー30と、筺体31の上面に設けられた長方形型のガラス製の載置台32と、筺体31上面のプラテンカバー30との連結部分近傍の適宜箇所に配置され、筺体31の上面とプラテンカバー30の下面とがなす角度θが所定角度以下となったことを検出する検出器33とを備えている。
検出器33は、押し込み型の自動復帰スイッチ等を用いており、プラテンカバー30を閉じる途中で検出器33が押下された場合、プラテンカバー30が閉じられたことを示す検出信号を制御部10に送出することにより、制御部10にプラテンカバー30が閉じられたことを報知する。尚、前記所定角度は、本等の厚みのある原稿が載置台32上に載置され、プラテンカバー30が閉じ切っていない場合でも、制御部10に検出信号を送出するように設定されている。
【0023】
筺体31の内部には、図2に示すように載置台32上に一隅を合わせて載置された原稿32aに光を照射する光源34及び原稿32aからの反射光の光路を変更するミラー(図示せず)が搭載され、図2中の矢符yで示す副走査方向に移動が可能なキャリッジ(図示せず)と、ミラーからの反射光を集光レンズ(図示せず)を通して取得する複数のカラーCCD(Charge Coupled Device) により構成されるCCDラインセンサ(図示せず)とを備えており、夫々の長手方向を図2中矢符xで示す主走査方向に平行に配置してある。
尚、制御部10は、ユーザによりプラテンカバー30が閉じられ、検出器33から検出信号を取得した場合、光源34を発光させるように構成してある。
【0024】
上述の構成の読取部3は、FBS(Flat Bed Scanner)方式のスキャナによる画像の読み取りが可能であるが、ADF(Automatic Document Feeder) 方式のスキャナも備えることにより、プラテンカバー30を閉じて、プラテンカバー30上の図示しない原稿セット部に原稿束をセットし、1枚ずつ原稿を分離して取り込みながら読み取りを行うことも可能である。
【0025】
FBS方式のスキャナで原稿画像を読み取る場合は、プラテンカバー30を開け、上述したように原稿32aを載置台32上に載置し、プラテンカバー30を閉じて、載置台32上に原稿32aが静止した状態で読み取りを行う。
図3は実施の形態1の読取部3の構成を示すブロック図であり、この読取部3は、CCDラインセンサ35,AFE(Analog Front End:アナログ・フロント・エンド)36,シェーディング補正部37,サイズ検知部(検知手段)38等を備えている。
【0026】
CCDラインセンサ35は、原稿32aからの反射光像を、複数の色成分を有するRGB(R:赤,G:緑,B:青)表色系のアナログ信号に変換し、得られたアナログ信号による画像データをAFE36に入力する。
AFE36は、増幅回路(図示せず),サンプルホールド回路(図示せず),A/D(アナログ/デジタル)変換器(図示せず)等を備え、CCDラインセンサ35から入力されたRGB表色系におけるR成分,G成分及びB成分夫々を示すアナログ信号を、増幅回路により所定の大きさに増幅し、この増幅されたアナログ信号を、サンプルホールド回路により一定のタイミング毎にサンプルホールドし、この各値をA/D変換器によりデジタル信号に変換する。
【0027】
尚、本実施の形態においては、A/D変換器は、例えば8ビットの多値のデジタル信号を出力しており、AFE36は、各画素のR成分,G成分及びB成分夫々を、8ビットの多値データで表した多値の画像データを出力して、シェーディング補正部37に入力する。
シェーディング補正部37は、入力されたRGB表色系の画像データに対して、読取部3における照明系,結像系及び撮像系で生じた各種の歪みを取り除く補正を行い、補正したRGB表色系の画像データを第1画像メモリ17に記憶させる。
【0028】
一方、シェーディング補正部37から出力されるRGB表色系の画像データは、サイズ検知部38にも入力されており、サイズ検知部38は、取得した画像データに基づき、原稿32aのサイズを検知する。
ここで、本実施の形態において、サイズ検知部38に入力される画像データは、ユーザにより載置台32上に原稿32aが載置され、プラテンカバー30が閉じられた場合に、検出器33から検出信号を取得した制御部10が、光源34を発光させることにより、原稿32aから反射した反射光に基づきCCDラインセンサ35が取得した主走査方向に1ラインの画像データである。即ち、この1ラインの画像データが、順次AFE36及びシェーディング補正部37にて所定の処理を施されて、サイズ検知部38に入力される。
【0029】
また、このサイズ検知部38に入力される1ラインの画像データには、載置台32上に載置された原稿32aからの反射光に基づく画像データと、原稿32aの外側の載置台32からの反射光に基づく画像データとが含まれており、サイズ検知部38は、この両画像データの相異箇所に基づき、原稿32aの主走査方向のサイズ幅を検知することができる。
サイズ検知部38は、抽出部(抽出手段)39,平均値算出部40,差分算出部41,サイズ決定部42を備えており、上述のように入力される1ラインの画像データを、該画像データに含まれる複数の画素データ毎に順次抽出部39にシリアル入力する。
【0030】
抽出部39は、順次シリアル入力されるR成分,G成分,B成分夫々で示された各画素データから、所定の一つの色成分、例えばG成分を抽出して平均値算出部40に入力する。尚、抽出部39により抽出される一つの色成分は、G成分に限定されない。本実施の形態におけるサイズ検知部38は、抽出部39によりまずG成分を抽出し、抽出したG成分に基づき、原稿32aのサイズを決定するように構成されており、G成分によってはサイズを決定できない場合に、R成分,B成分に基づく原稿32aのサイズ検知処理を順次実行するように構成されている。
これは、読み取られる原稿32aが有する地色等により、取得した画像データのG成分に基づいては、原稿32aのサイズを検知することが困難な場合があるためであり、G成分に基づき原稿32aのサイズを検知できない場合には、R成分又はB成分に基づく原稿サイズの検知処理を順次行う。
【0031】
抽出部39により抽出されたG成分は平均値算出部40に入力され、平均値算出部40により、1ライン分の各G成分について、所定数ずつの平均値を算出し、算出された平均値は順次差分算出部41に入力される。
また、差分算出部41は、順次入力される隣り合う平均値の差分値を算出し、この算出された差分値に基づき、サイズ決定部42が、CCDラインセンサ35により取得した画像データの原稿サイズを決定する。
【0032】
以下に、上述した構成の複合機1による原稿32aのサイズ検知処理手順について説明する。図4及び図5は本発明に係る複合機1による原稿32aのサイズ検知処理手順を示すフローチャートである。
ユーザは、上述した構成の複合機1を用いて原稿32aの原稿画像を複写等するために、複合機1に原稿画像を読み取らせる場合、プラテンカバー30を開けて原稿32aを載置台32上に載置させて、プラテンカバー30を閉じる。
【0033】
プラテンカバー30が閉じられている状態において、複合機1の読取部3の検出器33は、プラテンカバー30が閉じられていることを示す検出信号を制御部10に送出しており、ユーザによりプラテンカバー30が開けられた場合(S1)、検出器33は、前記検出信号の送出を停止する。制御部10は、検出器33からの検出信号を取得しなくなった場合、光源34等を搭載したキャリッジを所定の待機位置に移動させる(S2)。
また、ユーザにより載置台32上に原稿が載置されてプラテンカバー30が閉じられた場合(S3)、検出器33は、プラテンカバー30が閉じられたことを示す検出信号を制御部10に送出し、この検出信号を取得した制御部10は、光源34を発光させ、読取部3のCCDラインセンサ35により原稿画像の主走査方向の1ラインの画像データを読み取る(S4)。
【0034】
複合機1の読取部3は、CCDラインセンサ35により読み取られた1ラインの画像データに、AFE36及びシェーディング補正部37により所定の処理を施し、サイズ検知部38に入力する。また、サイズ検知部38は、取得した1ラインの画像データに含まれる複数の画素データから、抽出部39により各画素データのG成分を抽出し平均値算出部40に入力する。更に、平均値算出部40は、1ライン分のG成分を所定数毎に区切り、各区分毎に、各区分に含まれる所定数のG成分の平均値を算出する(S5)。
このように各区分毎に算出された平均値は、差分算出部41に入力され、差分算出部41により、隣り合う各区分の平均値の差分値を算出し(S6)、サイズ決定部42に入力される。
【0035】
サイズ決定部42は、上述のように算出された差分値と、予め設定されている所定閾値とを比較し(S7)、算出された差分値が所定閾値よりも大きいと判断されるまで、ステップS6の処理に戻り、順次隣り合う各区分の平均値の差分値を算出する。
ここで、算出された差分値が所定閾値よりも小さい場合、近傍の画素データが近似する値をとることになり、原稿32aの主走査方向のエッジを検出していないと判断することができる。一方、算出された差分値が所定閾値よりも大きい場合、近傍の画素データが著しく相異する値をとることになり、原稿32aの主走査方向のエッジを検出したと判断することができ、サイズ決定部42は、この検出したエッジに基づき、原稿32aにおける主走査方向のサイズ幅を決定する(S8)。
【0036】
次にサイズ決定部42は、ROM11から、A3,B4,A4,B5,A5の各サイズのサイズ幅を読み出し、ステップS8で決定したサイズ幅が、A3の記録紙における主走査方向のサイズ幅(A3幅)と一致するか否かを判断し(S9)、A3のサイズ幅と一致すると判断した場合、読み取られる原稿32aのサイズがA3サイズであると決定する(S10)。
【0037】
サイズ決定部42は、決定したサイズ幅が、A3のサイズ幅と一致しないと判断した場合、次にB4の記録紙における主走査方向のサイズ幅(B4幅)と一致するか否かを判断し(S11)、B4のサイズ幅と一致すると判断した場合、読み取られる原稿32aのサイズがB4サイズであると決定する(S12)。
またサイズ決定部42は、決定したサイズ幅が、B4のサイズ幅と一致しないと判断した場合、次にA4の記録紙における主走査方向のサイズ幅(A4幅)と一致するか否かを判断し(S13)、A4のサイズ幅と一致すると判断した場合、読み取られる原稿32aのサイズがA4サイズであると決定する(S14)。
【0038】
更にサイズ決定部42は、決定したサイズ幅が、A4のサイズ幅と一致しないと判断した場合、次にB5の記録紙における主走査方向のサイズ幅(B5幅)と一致するか否かを判断し(S15)、B5のサイズ幅と一致すると判断した場合、読み取られる原稿32aのサイズがB5サイズであると決定する(S16)。
最後にサイズ決定部42は、決定したサイズ幅が、B5のサイズ幅と一致しないと判断した場合、A5の記録紙における主走査方向のサイズ幅(A5幅)と一致するか否かを判断し(S17)、A5のサイズ幅と一致すると判断した場合、読み取られる原稿32aのサイズがA5サイズであると決定し(S18)、A5のサイズ幅と一致しないと判断した場合、読み取られる原稿32aのサイズが不明であると判断する(S19)。
【0039】
制御部10は、上述した処理により、読み取られる原稿32aのサイズが決定されたか否かを判断しており(S20)、原稿32aのサイズが決定されたと判断した場合、原稿32aのサイズ検知処理を終了する。
一方、制御部10が、原稿32aのサイズが決定されていないと判断した場合、サイズ検知部38は、シェーディング補正部37から取得する1ラインの画像データに含まれる他の成分、例えば、RGB表色系の画像データにおいては、R成分又はB成分を用いて、ステップS5の処理に戻り、R成分又はB成分について、上述したステップS5からS19までの処理を実行することにより、G成分によっては原稿32aのサイズが検知できない場合であっても、他の成分により確実に原稿32aのサイズを検知する。
【0040】
これにより、取得した画像データに含まれる複数の色成分から抽出された一つの色成分に基づき、原稿32aのサイズを検知することができるため、サイズ検知部38を単純な回路構成にて実現することができる。
また、抽出された色成分によっては、原稿32aのサイズを検知することが困難な場合には、他の色成分により原稿32aのサイズ検知処理を行うことにより、読み取られる原稿32aのサイズを確実に検知することができる。
【0041】
(実施の形態2)
以下に、実施の形態2に係る読取部3の構成について説明する。
図6は実施の形態2の読取部3の構成を示すブロック図であり、この読取部3は、CCDラインセンサ35,AFE36,シェーディング補正部37,色変換部(変換手段)43,サイズ検知部(検知手段)44,画像判別部(判別手段)48を備えている。
尚、複合機1全体の構成については、上述した実施の形態1と同様であるので説明を省略し、読取部3においては、同様の構成であるものについては同一の符号を付して説明を省略する。
【0042】
本実施の形態の読取部3に備える色変換部43は、シェーディング補正部37から入力されたRGB表色系の画像データを、例えば、L表色系(以下、Lab表色系という)等の輝度成分及び色差成分を有する表色系の画像データに変換し、得られたLab表色系の画像データを第1画像メモリ17に記憶させる。
一方、色変換部43から出力されるLab表色系の画像データのうちのL成分(輝度成分)は、サイズ検知部44にも入力されており、サイズ検知部44において、取得したL成分に基づき、原稿32aのサイズを検知する。
【0043】
ここで、サイズ検知部44に入力されるL成分は、ユーザにより載置台32上に原稿32aが載置され、プラテンカバー30が閉じられた場合に、検出器33から検出信号を取得した制御部10が、光源34を発光させることにより、原稿32aから反射した反射光に基づきCCDラインセンサ35が取得した主走査方向に1ラインの画像データに含まれるL成分である。
【0044】
サイズ検知部44は、平均値算出部45,差分算出部46,サイズ決定部47を備えており、上述のように入力される1ライン分の画像データのL成分を、順次平均値算出部45に入力する。また、平均値算出部45は、順次取得する1ライン分のL成分について、所定数ずつの平均値を算出し、算出した平均値を順次差分算出部46に入力する。
更に、差分算出部46は、順次入力される隣り合う平均値の差分値を算出し、この算出された差分値に基づき、サイズ決定部47が、CCDラインセンサ35により取得した画像データの原稿32aのサイズを決定する。
【0045】
また、色変換部43により変換されたLab表色系の画像データのうちのa成分及びb成分(色差成分)は、画像判別部48に入力され、画像判別部48は、取得したa成分及びb成分に基づき、原稿32aから取得した画像データが、カラー画像データであるかモノクローム画像データであるかを判別する。
これにより、原稿32aのサイズを検知するために生成された輝度成分及び色差成分を有するLab表色系の画像データに基づき、原稿32aの原稿画像がカラー画像であるかモノクローム画像であるかを判別することができ、以後の各処理をスムーズに実行することができる。
【0046】
以下に、上述した構成の複合機1による原稿32aのサイズ検知処理手順について説明する。図7及び図8は本発明に係る複合機1による原稿32aのサイズ検知処理手順を示すフローチャートである。
ユーザは、上述した構成の複合機1を用いて原稿32aの原稿画像を複写等するために、複合機1に原稿画像を読み取らせる場合、プラテンカバー30を開けて原稿32aを載置台32上に載置させて、プラテンカバー30を閉じる。
【0047】
プラテンカバー30が閉じられている状態において、複合機1の読取部3の検出器33は、プラテンカバー30が閉じられていることを示す検出信号を制御部10に送出しており、ユーザによりプラテンカバー30が開けられた場合(S21)、検出器33は、前記検出信号の送出を停止する。制御部10は、検出器33からの検出信号を取得しなくなった場合、光源34等を搭載したキャリッジを所定の待機位置に移動させる(S22)。
また、ユーザにより載置台32上に原稿32aが載置されてプラテンカバー30が閉じられた場合(S23)、検出器33は、プラテンカバー30が閉じられたことを示す検出信号を制御部10に送出し、この検出信号を取得した制御部10は、光源34を発光させ、読取部3のCCDラインセンサ35により原稿画像の主走査方向の1ラインの画像データを読み取る(S24)。
【0048】
複合機1の読取部3は、CCDラインセンサ35により読み取られた1ラインの画像データに、AFE36及びシェーディング補正部37により所定の処理を施し、更に色変換部43により、Lab表色系の画像データに色変換し(S25)、得られたLab表色系の画像データのうちのL成分をサイズ検知部44の平均値算出部45に入力する。
また平均値算出部45は、取得した1ライン分のL成分を所定数毎に区切り、各区分毎に、各区分に含まれる所定数のL成分の平均値を算出する(S26)。
【0049】
このように各区分毎に算出された平均値は、差分算出部46に入力され、差分算出部46は、順次取得する平均値において、隣り合う各区分の平均値の差分値を算出し(S27)、サイズ決定部47に入力する。
サイズ決定部47は、上述のように算出された差分値と、予め設定されている所定閾値とを比較し(S28)、算出された差分値が所定閾値よりも大きいと判断されるまで、ステップS27の処理に戻り、順次隣り合う各区分の平均値の差分値を算出する。
【0050】
ここで、算出された差分値が所定閾値よりも小さい場合、近傍の画素データが近似する値をとることになり、原稿32aの主走査方向のエッジを検出していないと判断することができる。
一方、算出された差分値が所定閾値よりも大きい場合、近傍の画素データが著しく相異する値をとることになり、原稿32aの主走査方向のエッジを検出したと判断することができ、サイズ決定部47は、この検出したエッジに基づき、原稿画像の主走査方向のサイズ幅を決定する(S29)。
【0051】
次にサイズ決定部47は、ROM11から、A3,B4,A4,B5の各サイズのサイズ幅を読み出し、ステップS29で決定したサイズ幅が、A3の記録紙における主走査方向のサイズ幅(A3幅)と一致するか否かを判断し(S30)、A3のサイズ幅と一致すると判断した場合、読み取られる原稿32aのサイズがA3サイズであると決定する(S31)。
サイズ決定部47は、決定したサイズ幅が、A3のサイズ幅と一致しないと判断した場合、次にB4の記録紙における主走査方向のサイズ幅(B4幅)と一致するか否かを判断し(S32)、B4のサイズ幅と一致すると判断した場合、読み取られる原稿32aのサイズがB4サイズであると決定する(S33)。
【0052】
またサイズ決定部42は、決定したサイズ幅が、B4のサイズ幅と一致しないと判断した場合、次にA4の記録紙における主走査方向のサイズ幅(A4幅)と一致するか否かを判断し(S34)、A4のサイズ幅と一致すると判断した場合、読み取られる原稿32aのサイズがA4サイズであると決定する(S35)。更にサイズ決定部47は、決定したサイズ幅が、A4のサイズ幅と一致しない
と判断した場合、次にB5の記録紙における主走査方向のサイズ幅(B5幅)と一致するか否かを判断し(S36)、B5のサイズ幅と一致すると判断した場合、読み取られる原稿32aのサイズがB5サイズであると決定し(S37)、B5のサイズ幅と一致しないと判断した場合、読み取られる原稿32aのサイズがA5サイズであると決定し(S38)、原稿32aのサイズ検知処理を終了する。
【0053】
上述したように、取得したRGB表色系の画像データを、輝度成分を有するLab表色系の画像データに変換し、このLab表色系の画像データが有するL成分(輝度成分)に基づき、原稿32aのサイズを検知することにより、読み取られる原稿32aの地色に関わらず、原稿32aのサイズを確実に検知することができる。
また、上述のように、取得したRGB表色系の画像データを色変換することにより得られるLab表色系の画像データを用い、このLab表色系の画像データのうちの色差成分であるa成分及びb成分に基づき、読み取られる原稿画像が、カラー画像であるかモノクローム画像であるかを容易に判別することもできる。
従って、上述したような原稿32aのサイズ検出と並行して、読み取られる原稿画像がカラー画像であるかモノクローム画像であるかを判別しておくことにより、例えば、読み取った画像データを記憶しておくメモリ容量の管理等、以後の各処理をスムーズに実行することができる。
【0054】
【発明の効果】
第1発明による場合は、読み取った複数の色成分を有する画像データから、所定の色成分を抽出し、抽出された色成分に基づき、原稿画像のサイズを検知することにより、原稿サイズ検知センサ等を別途に設ける必要がなく、複数の色成分を有する画像データに対して煩雑な演算処理を施す必要もなく、単純な回路構成により迅速に原稿画像のサイズを検知することができる。
【0055】
第2発明による場合は、取得した複数の色成分を有する画像データを、輝度成分及び色差成分を有する画像データに変換して得られた画像データの輝度成分に基づき、原稿画像のサイズを検知することにより、複数の色成分を有する画像データに対して煩雑な演算処理を施す必要がなく、変換して得られた画像データの輝度情報に基づき、原稿自体が有する地色等の色成分には依存せず、原稿画像のサイズを確実に検知することができる。
【0056】
第3発明による場合は、取得した複数の色成分を有する画像データを変換して得られた画像データの色差成分に基づき、取得した画像データが、カラー画像データであるかモノクローム画像データであるかを判別することにより、輝度成分に基づく原稿画像のサイズ検知処理のために生成された輝度成分及び色差成分を有する画像データに基づき、カラー画像であるかモノクローム画像であるかを判断することができ、以後の各処理をスムーズに実行することができる。
【図面の簡単な説明】
【図1】本発明に係る読取部を備える複合機の構成を示すブロック図である。
【図2】本発明に係る読取部を示す外観斜視図である。
【図3】実施の形態1の読取部の構成を示すブロック図である。
【図4】本発明に係る複合機による原稿のサイズ検知処理手順を示すフローチャートである。
【図5】本発明に係る複合機による原稿のサイズ検知処理手順を示すフローチャートである。
【図6】実施の形態2の読取部の構成を示すブロック図である。
【図7】本発明に係る複合機による原稿のサイズ検知処理手順を示すフローチャートである。
【図8】本発明に係る複合機による原稿のサイズ検知処理手順を示すフローチャートである。
【符号の説明】
1 複合機
3 読取部(画像読取装置)
38,44 サイズ検知部(検知手段)
39 抽出部(抽出手段)
43 色変換部(変換手段)
48 画像判別部(判別手段)
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image reading apparatus that reads a document image and detects the size of the document image based on the acquired image data having a plurality of color components.
[0002]
[Prior art]
2. Description of the Related Art In recent years, multifunction peripherals having a printer function in a facsimile apparatus have become widespread. In such an apparatus, a color copying function, a color facsimile communication function, and the like have been mounted with the expansion of the printer function.
An image reading apparatus in such a multifunction machine includes a light source that irradiates light on a document placed on a glass table, a mirror that changes an optical path of light reflected from the document, and a movement that moves the light source and the mirror. A large number of CCDs (Charge Coupled Devices), which are photoelectric conversion elements, are arranged in the main scanning direction, and a CCD line sensor or the like to which light from a mirror is incident through a condenser lens is provided. An original image is read line by line by a CCD line sensor having a longitudinal direction in the main scanning direction (a CCD line sensor arranged in parallel with the main scanning direction) while moving in the sub-scanning direction along the mounting table. It is configured as follows.
[0003]
On the other hand, in a printer device of the above-described multifunction peripheral, the size of a document image to be read is selected in order to select an appropriate size from a plurality of different sizes of recording paper prepared in a paper feed cassette and perform printing. There is a demand for detection, and there is a device that arranges a document size detection sensor or the like near a mounting table and detects the size of a document image by the document size detection sensor.
There is also an apparatus that reads a document image, calculates a brightness component of each of a plurality of pixels included in the document image based on the acquired image data, and detects the size of the document image based on the calculated brightness component of each pixel ( For example, see Patent Document 1).
[0004]
[Patent Document 1]
JP 2000-101832A
[0005]
[Problems to be solved by the invention]
However, as described above, in the apparatus including the document size detection sensor, there is a problem that the configuration of the apparatus is complicated and the manufacturing cost of the apparatus is increased.
Further, in a device for detecting the size of a document image from brightness information of each pixel calculated based on image data obtained from a document image, it is necessary to sequentially calculate a brightness component corresponding to each pixel. Requires a processing time for calculating the lightness component. Furthermore, for example, it is difficult to set parameters for calculating the brightness component of each pixel based on image data of the RGB color system, and it is difficult to accurately detect the size of a document image. Was.
[0006]
The present invention has been made in view of such circumstances, and extracts a predetermined color component from image data having a plurality of read color components, and detects a size of a document image based on the extracted color components. Accordingly, an object of the present invention is to provide an image reading apparatus that can quickly detect the size of a document image with a simple circuit configuration without separately providing a document size detection sensor or the like.
[0007]
Another object of the present invention is to detect the size of a document image based on the luminance component of the image data obtained by converting the acquired image data having a plurality of color components into image data having a luminance component and a color difference component. By doing so, it is not necessary to perform complicated arithmetic processing on image data having a plurality of color components, and based on the luminance information of the image data obtained by conversion, An object of the present invention is to provide an image reading apparatus that reliably detects the size of a document image without depending on the image reading apparatus.
[0008]
Still another object of the present invention is to provide a method for converting acquired image data, which is obtained by converting image data having a plurality of color components, into color image data or monochrome image data based on a color difference component of the image data. An image for determining whether the image is a color image or a monochrome image based on image data having a luminance component and a color difference component generated for a size detection process of the original image based on the luminance component A reading device is provided.
[0009]
[Means for Solving the Problems]
An image reading apparatus according to a first aspect of the present invention reads an original image and detects a size of the original image based on the acquired image data having a plurality of color components. An extraction unit for extracting a component, and a detection unit for detecting the size of the document image based on the color component extracted by the extraction unit.
[0010]
According to the first aspect, a document size detection sensor or the like is provided by extracting a predetermined color component from image data having a plurality of read color components and detecting the size of the document image based on the extracted color component. Need not be separately provided, and there is no need to perform complicated arithmetic processing on image data having a plurality of color components, and the size of a document image can be quickly detected with a simple circuit configuration.
[0011]
An image reading apparatus according to a second aspect of the present invention reads an original image and, based on the obtained image data having a plurality of color components, detects the size of the original image. The image processing apparatus further includes a conversion unit configured to convert the image data having color difference components into image data, and a detection unit configured to detect a size of the document image based on a luminance component of the image data converted by the conversion unit.
[0012]
According to the second aspect, the size of the document image is detected based on the luminance component of the image data obtained by converting the acquired image data having a plurality of color components into image data having a luminance component and a color difference component. Accordingly, it is not necessary to perform complicated arithmetic processing on image data having a plurality of color components, and based on the luminance information of the image data obtained by conversion, the It is possible to reliably detect the size of the document image without depending on it.
[0013]
An image reading apparatus according to a third aspect of the present invention is the image reading apparatus according to the second aspect, wherein the acquired image data is color image data or a monochrome image based on a color difference component of the image data converted by the conversion means. It is characterized by comprising a determining means for determining whether the data is data.
[0014]
According to the third aspect, whether the acquired image data is color image data or monochrome image data is based on a color difference component of the image data obtained by converting the acquired image data having a plurality of color components. Can be determined as a color image or a monochrome image based on image data having a luminance component and a color difference component generated for the size detection process of the original image based on the luminance component. , The subsequent processes can be executed smoothly.
[0015]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an image reading apparatus according to the present invention is referred to as a reading unit, and a multifunction peripheral including the reading unit will be described in detail based on an embodiment.
(Embodiment 1)
FIG. 1 is a block diagram illustrating a configuration of a multifunction peripheral including a reading unit according to the present invention. In FIG. 1, reference numeral 1 denotes a multifunction peripheral.
The multifunction device 1 includes a control unit 10, a ROM 11, a RAM 12, an NCU (Network Control Unit) 13, a modem 14, a reading unit 3, a display unit 15, an operation unit 16, a first image memory 17, a binarization processing unit 18, A second image memory 19, a memory control unit 20, a first CODEC 21, a second CODEC 23, a recording unit 24, and the like are provided, and each of them is mutually connected via a system bus 25.
[0016]
The control unit 10 is specifically configured by a CPU (Central Processing Unit) or the like, controls the above-described hardware units of the multifunction peripheral 1 via the system bus 25, and controls the computer stored in the ROM 11. Various software functions are realized according to the program.
The ROM 11 stores in advance various computer programs necessary for the operation of the multifunction peripheral 1 according to the present embodiment, and the size width in the main scanning direction of recording paper of each size of A3, B4, A4, B5, and A5. I have.
The RAM 12 is configured by an SRAM, a flash memory, or the like, and temporarily stores data generated when the control unit 10 executes each program. If a flash memory is used as the RAM 12, the stored contents will not be lost even if the power is cut off due to a power failure, movement of the MFP 1, or the like.
[0017]
The modem 14 is constituted by a facsimile modem capable of performing facsimile communication, and is also directly connected to the NCU 13. The NCU 13 is connected to the public telephone network L, connects the modem 14 to the public telephone network L as needed, and performs facsimile communication with another facsimile apparatus via the public telephone network L. It is possible.
The display unit 15 is configured by a liquid crystal display (LCD) or the like, and displays an operation state of the multifunction peripheral 1, characters input from the operation unit 16, and the like.
The operation unit 16 includes various function keys required to operate the multifunction device 1. By using the touch panel type display unit 15, it is possible to substitute some or all of the various keys of the operation unit 16.
[0018]
The first image memory 17 is composed of a DRAM or the like, and is read by a reading unit 3 described later and subjected to predetermined processing to an image of an RGB (R: red, G: green, B: blue) color system. Store the data.
The first image memory 17 stores multi-valued image data in which each of the R, G, and B components of each pixel is represented by multi-valued data. Are temporarily stored in the first image memory 17.
[0019]
The binarization processing unit 18 converts the multi-value image data of the RGB color system read by the reading unit 3 into, for example, a CMYK (C: cyan, M: magenta, Y: yellow, K: black) color system The image data is converted into binary image data by comparing with a predetermined threshold value, and stored in the second image memory 19 composed of a DRAM or the like.
Note that the multifunction peripheral 1 of the present embodiment also has a resolution conversion function for converting image data read by the reading unit 3 to a high resolution according to a setting from the user, and execution of the resolution conversion function is instructed. In this case, the binarization processing unit 18 converts the resolution of the CMYK color system image data obtained by converting the RGB color system image data stored in the first image memory 17 as described above. The conversion process is performed, and the binarization process is performed on the image data of the CMYK color system converted to the high resolution.
[0020]
The first CODEC 21 performs an encoding process on the image data read by the reading unit 3 and converted into the binary image data by the binarization processing unit 18, and the encoded image data is stored in a memory control unit. Under the control of 20, the image data is stored in the encoded image memory 22 via the image bus 26.
Further, when the image data stored in the encoded image memory 22 is recorded on a recording paper or the like, the image data read from the encoded image memory 22 to the second CODEC 23 under the control of the memory control unit 20 is The data is decoded by the 2CODEC 23 and temporarily stored in the second image memory 19.
[0021]
The recording unit 24 is an electrophotographic printer device, reads out image data stored in the second image memory 19 for recording, and converts an image based on the read out image data as a hard copy into A3 portrait and B4 portrait. , A4 portrait, B5 landscape, A5 landscape, and other sizes of recording paper or OHP (Over Head Projector) sheets are selected and recorded.
[0022]
FIG. 2 is an external perspective view showing the reading unit 3 according to the present invention. The reading unit 3 includes a rectangular parallelepiped housing 31, a platen cover 30 attached to one side of the upper surface of the housing 31 so as to be openable and closable, and a housing 31. Is disposed at an appropriate position near the connection portion between the rectangular glass mounting table 32 provided on the upper surface of the housing 31 and the platen cover 30 on the upper surface of the housing 31, and the angle formed between the upper surface of the housing 31 and the lower surface of the platen cover 30 and a detector 33 for detecting that θ has become equal to or smaller than a predetermined angle.
The detector 33 uses a push-in type automatic return switch or the like. When the detector 33 is pressed while the platen cover 30 is being closed, a detection signal indicating that the platen cover 30 is closed is sent to the control unit 10. By sending out, the control unit 10 is notified that the platen cover 30 is closed. The predetermined angle is set so that a detection signal is transmitted to the control unit 10 even when a thick original such as a book is placed on the placing table 32 and the platen cover 30 is not fully closed. .
[0023]
Inside the housing 31, a light source 34 for irradiating light to a document 32a placed at one corner on a table 32 as shown in FIG. 2 and a mirror for changing the optical path of reflected light from the document 32a (FIG. (Not shown), and a plurality of carriages (not shown) movable in the sub-scanning direction indicated by an arrow y in FIG. 2 and a plurality of mirrors for acquiring reflected light from a mirror through a condenser lens (not shown). And a CCD line sensor (not shown) composed of a color CCD (Charge Coupled Device), and the respective longitudinal directions are arranged in parallel to the main scanning direction indicated by an arrow x in FIG.
The control unit 10 is configured to cause the light source 34 to emit light when the user closes the platen cover 30 and obtains a detection signal from the detector 33.
[0024]
The reading unit 3 having the above-described configuration can read an image using an FBS (Flat Bed Scanner) scanner, but also includes an ADF (Automatic Document Feeder) scanner, thereby closing the platen cover 30 and closing the platen cover. It is also possible to set a document bundle on a document setting section (not shown) on the cover 30 and perform reading while separating and taking in documents one by one.
[0025]
When an original image is read by an FBS scanner, the platen cover 30 is opened, the original 32a is placed on the mounting table 32 as described above, the platen cover 30 is closed, and the original 32a is stationary on the mounting table 32. Read in the state where it was done.
FIG. 3 is a block diagram showing the configuration of the reading unit 3 according to the first embodiment. The reading unit 3 includes a CCD line sensor 35, an AFE (Analog Front End) 36, a shading correction unit 37, A size detection unit (detection means) 38 and the like are provided.
[0026]
The CCD line sensor 35 converts the reflected light image from the document 32a into an analog signal of RGB (R: red, G: green, B: blue) color system having a plurality of color components, and obtains an analog signal. Is input to the AFE 36.
The AFE 36 includes an amplifier circuit (not shown), a sample-and-hold circuit (not shown), an A / D (analog / digital) converter (not shown), and the like, and RGB color input from the CCD line sensor 35. An analog signal representing each of the R component, the G component, and the B component in the system is amplified to a predetermined magnitude by an amplifier circuit, and the amplified analog signal is sampled and held at a predetermined timing by a sample and hold circuit. Each value is converted into a digital signal by an A / D converter.
[0027]
In this embodiment, the A / D converter outputs, for example, an 8-bit multi-valued digital signal, and the AFE 36 converts each of the R, G, and B components of each pixel into an 8-bit signal. The multi-valued image data represented by the multi-valued data is output and input to the shading correction unit 37.
The shading correction unit 37 performs a correction on the input RGB color system image data to remove various types of distortion generated in the reading unit 3 in the illumination system, the imaging system, and the imaging system, and corrects the corrected RGB color system. The system image data is stored in the first image memory 17.
[0028]
On the other hand, the RGB color system image data output from the shading correction unit 37 is also input to the size detection unit 38, and the size detection unit 38 detects the size of the document 32a based on the acquired image data. .
Here, in the present embodiment, the image data input to the size detection unit 38 is detected from the detector 33 when the document 32a is placed on the placement table 32 by the user and the platen cover 30 is closed. The control unit 10 that has acquired the signal causes the light source 34 to emit light, and is one line of image data in the main scanning direction acquired by the CCD line sensor 35 based on the reflected light reflected from the document 32a. That is, this one line of image data is sequentially subjected to predetermined processing by the AFE 36 and the shading correction unit 37, and is input to the size detection unit 38.
[0029]
The one-line image data input to the size detection unit 38 includes image data based on the reflected light from the document 32a placed on the table 32 and the image data from the table 32 outside the document 32a. The image data includes image data based on the reflected light, and the size detection unit 38 can detect the size width of the document 32a in the main scanning direction based on the difference between the two image data.
The size detection unit 38 includes an extraction unit (extraction unit) 39, an average value calculation unit 40, a difference calculation unit 41, and a size determination unit 42, and converts one line of image data input as described above into the image data. The data is serially input to the extraction unit 39 sequentially for each of a plurality of pixel data included in the data.
[0030]
The extraction unit 39 extracts one predetermined color component, for example, a G component, from each pixel data indicated by the R component, the G component, and the B component that are sequentially input serially and inputs the extracted color component to the average value calculation unit 40. . Note that one color component extracted by the extraction unit 39 is not limited to the G component. The size detection unit 38 in the present embodiment is configured to first extract the G component by the extraction unit 39 and determine the size of the document 32a based on the extracted G component, and determine the size depending on the G component. When it is impossible, the size detection processing of the original 32a based on the R component and the B component is sequentially executed.
This is because it may be difficult to detect the size of the original 32a based on the G component of the acquired image data due to the ground color or the like of the original 32a to be read. If the document size cannot be detected, document size detection processing based on the R component or B component is sequentially performed.
[0031]
The G component extracted by the extraction unit 39 is input to the average value calculation unit 40, and the average value calculation unit 40 calculates a predetermined number of average values for each G component for one line, and calculates the calculated average value. Are sequentially input to the difference calculator 41.
The difference calculation unit 41 calculates a difference value between adjacent average values that are sequentially input, and based on the calculated difference value, the size determination unit 42 determines the document size of the image data acquired by the CCD line sensor 35. To determine.
[0032]
Hereinafter, a procedure for detecting the size of the document 32a by the multifunction peripheral 1 having the above-described configuration will be described. FIGS. 4 and 5 are flowcharts showing a procedure for detecting the size of the document 32a by the multifunction peripheral 1 according to the present invention.
The user opens the platen cover 30 and places the original 32 a on the mounting table 32 when the multifunction peripheral 1 reads the original image to copy the original image of the original 32 a using the multifunction peripheral 1 having the above-described configuration. Then, the platen cover 30 is closed.
[0033]
In a state where the platen cover 30 is closed, the detector 33 of the reading unit 3 of the multifunction device 1 sends a detection signal indicating that the platen cover 30 is closed to the control unit 10, and the platen When the cover 30 is opened (S1), the detector 33 stops sending the detection signal. When the control unit 10 stops acquiring the detection signal from the detector 33, it moves the carriage on which the light source 34 and the like are mounted to a predetermined standby position (S2).
When the document is placed on the placing table 32 by the user and the platen cover 30 is closed (S3), the detector 33 sends a detection signal indicating that the platen cover 30 is closed to the control unit 10. Then, the control unit 10 having acquired the detection signal causes the light source 34 to emit light, and reads one line of image data in the main scanning direction of the document image by the CCD line sensor 35 of the reading unit 3 (S4).
[0034]
The reading unit 3 of the multifunction device 1 performs predetermined processing on one line of image data read by the CCD line sensor 35 by the AFE 36 and the shading correction unit 37 and inputs the processed data to the size detection unit 38. In addition, the size detection unit 38 extracts the G component of each pixel data from the plurality of pixel data included in the acquired one-line image data by the extraction unit 39 and inputs the G component to the average value calculation unit 40. Further, the average value calculation unit 40 divides the G component for one line into a predetermined number, and calculates, for each section, an average value of a predetermined number of G components included in each section (S5).
The average value calculated for each section in this manner is input to the difference calculation section 41, and the difference calculation section 41 calculates the difference value between the average values of the adjacent sections (S6). Is entered.
[0035]
The size determination unit 42 compares the difference value calculated as described above with a predetermined threshold value set in advance (S7), and determines whether the calculated difference value is larger than the predetermined threshold value. Returning to the processing of S6, the difference value of the average value of each of the adjacent sections is sequentially calculated.
Here, when the calculated difference value is smaller than the predetermined threshold value, the neighboring pixel data takes an approximate value, and it can be determined that the edge of the document 32a in the main scanning direction has not been detected. On the other hand, if the calculated difference value is larger than the predetermined threshold value, the neighboring pixel data takes a significantly different value, and it can be determined that the edge of the document 32a in the main scanning direction has been detected, and the size can be determined. The determination unit 42 determines the size width in the main scanning direction of the document 32a based on the detected edge (S8).
[0036]
Next, the size determination unit 42 reads the size width of each of the sizes A3, B4, A4, B5, and A5 from the ROM 11, and the size width determined in step S8 is the size width of the A3 recording paper in the main scanning direction (in the main scanning direction). (A3 width) is determined (S9). If it is determined that the width matches the size width of A3, it is determined that the size of the document 32a to be read is the A3 size (S10).
[0037]
When determining that the determined size width does not match the size width of A3, the size determining unit 42 next determines whether or not the size width matches the size width (B4 width) of the recording paper of B4 in the main scanning direction. (S11) If it is determined that the size matches the size width of B4, it is determined that the size of the document 32a to be read is the B4 size (S12).
When determining that the determined size width does not match the size width of B4, the size determining unit 42 next determines whether or not the size width matches the size width of the A4 recording paper in the main scanning direction (A4 width). If it is determined that the size of the document 32a matches the size of A4 (S13), the size of the document 32a to be read is determined to be the A4 size (S14).
[0038]
Further, if the size determining unit 42 determines that the determined size width does not match the size width of A4, it then determines whether or not the size width matches the size width in the main scanning direction (B5 width) of the recording paper of B5. If it is determined that the size of the document 32a matches the size width of B5 (S15), the size of the document 32a to be read is determined to be the B5 size (S16).
Finally, when the size determining unit 42 determines that the determined size width does not match the size width of B5, it determines whether or not the size width matches the size width of the A5 recording paper in the main scanning direction (A5 width). (S17) If it is determined that the size of the document 32a matches the size of A5, it is determined that the size of the document 32a to be read is the A5 size (S18). It is determined that the size is unknown (S19).
[0039]
The control unit 10 determines whether or not the size of the document 32a to be read has been determined by the above-described processing (S20). If it is determined that the size of the document 32a has been determined, the control unit 10 executes the size detection processing of the document 32a. finish.
On the other hand, if the control unit 10 determines that the size of the document 32a has not been determined, the size detection unit 38 outputs another component included in the one-line image data acquired from the shading correction unit 37, for example, an RGB table. In the color-based image data, the process returns to step S5 using the R component or the B component, and performs the above-described processes from steps S5 to S19 for the R component or the B component. Even when the size of the document 32a cannot be detected, the size of the document 32a is reliably detected by other components.
[0040]
Accordingly, the size of the document 32a can be detected based on one color component extracted from a plurality of color components included in the acquired image data, and thus the size detection unit 38 is realized with a simple circuit configuration. be able to.
If it is difficult to detect the size of the document 32a depending on the extracted color components, the size of the document 32a to be read can be reliably determined by performing the size detection processing of the document 32a using other color components. Can be detected.
[0041]
(Embodiment 2)
Hereinafter, the configuration of the reading unit 3 according to the second embodiment will be described.
FIG. 6 is a block diagram illustrating a configuration of the reading unit 3 according to the second embodiment. The reading unit 3 includes a CCD line sensor 35, an AFE 36, a shading correction unit 37, a color conversion unit (conversion unit) 43, and a size detection unit. (Detection means) 44 and an image determination unit (determination means) 48.
Note that the overall configuration of the multifunction peripheral 1 is the same as that of the above-described first embodiment, and a description thereof will be omitted. In the reading unit 3, the same reference numerals will be given to components having the same configuration. Omitted.
[0042]
The color conversion unit 43 provided in the reading unit 3 of the present embodiment converts the RGB color system image data input from the shading correction unit 37 into, for example, L * a * b * The image data is converted into color system image data having a luminance component such as a color system (hereinafter referred to as a Lab color system) and a color difference component, and the obtained Lab color system image data is stored in the first image memory 17. .
On the other hand, the L component (luminance component) of the Lab color system image data output from the color conversion unit 43 is also input to the size detection unit 44. Based on this, the size of the document 32a is detected.
[0043]
Here, the L component input to the size detection unit 44 is a control unit that acquires a detection signal from the detector 33 when the document 32a is placed on the placement table 32 by the user and the platen cover 30 is closed. Reference numeral 10 denotes an L component included in one line of image data in the main scanning direction acquired by the CCD line sensor 35 based on the light reflected from the document 32a when the light source 34 emits light.
[0044]
The size detection unit 44 includes an average value calculation unit 45, a difference calculation unit 46, and a size determination unit 47. The L component of one line of image data input as described above is sequentially converted to the average value calculation unit 45. To enter. In addition, the average value calculation unit 45 calculates a predetermined number of average values for the L component of one line sequentially acquired, and inputs the calculated average values to the difference calculation unit 46 sequentially.
Further, the difference calculation unit 46 calculates a difference value between adjacent average values that are sequentially input, and based on the calculated difference value, the size determination unit 47 allows the size determination unit 47 to read the original 32a of the image data acquired by the CCD line sensor 35. Determine the size of
[0045]
The a component and the b component (color difference component) of the Lab color system image data converted by the color conversion unit 43 are input to the image discrimination unit 48, and the image discrimination unit 48 Based on the b component, it is determined whether the image data acquired from the document 32a is color image data or monochrome image data.
Accordingly, it is determined whether the original image of the original 32a is a color image or a monochrome image based on Lab color system image data having a luminance component and a color difference component generated for detecting the size of the original 32a. And each subsequent process can be executed smoothly.
[0046]
Hereinafter, a procedure for detecting the size of the document 32a by the multifunction peripheral 1 having the above-described configuration will be described. FIGS. 7 and 8 are flowcharts showing the procedure for detecting the size of the document 32a by the multifunction peripheral 1 according to the present invention.
The user opens the platen cover 30 and places the original 32 a on the mounting table 32 when the multifunction peripheral 1 reads the original image to copy the original image of the original 32 a using the multifunction peripheral 1 having the above-described configuration. Then, the platen cover 30 is closed.
[0047]
In a state where the platen cover 30 is closed, the detector 33 of the reading unit 3 of the multifunction device 1 sends a detection signal indicating that the platen cover 30 is closed to the control unit 10, and the platen When the cover 30 is opened (S21), the detector 33 stops sending the detection signal. When the control unit 10 stops acquiring the detection signal from the detector 33, it moves the carriage on which the light source 34 and the like are mounted to a predetermined standby position (S22).
When the document 32a is placed on the placing table 32 by the user and the platen cover 30 is closed (S23), the detector 33 sends a detection signal indicating that the platen cover 30 is closed to the control unit 10. The control unit 10 that has sent out and obtained the detection signal causes the light source 34 to emit light, and reads one line of image data in the main scanning direction of the document image by the CCD line sensor 35 of the reading unit 3 (S24).
[0048]
The reading unit 3 of the multifunction device 1 performs predetermined processing on the one-line image data read by the CCD line sensor 35 by the AFE 36 and the shading correction unit 37, and further performs the Lab color system image by the color conversion unit 43. The color conversion into data is performed (S25), and the L component of the obtained Lab color system image data is input to the average value calculation unit 45 of the size detection unit 44.
In addition, the average value calculation unit 45 divides the acquired L component for one line into a predetermined number, and calculates, for each section, an average value of a predetermined number of L components included in each section (S26).
[0049]
The average value thus calculated for each section is input to the difference calculation section 46, and the difference calculation section 46 calculates a difference value between the average values of the adjacent sections in the sequentially acquired average values (S27). ) Is input to the size determination unit 47.
The size determination unit 47 compares the difference value calculated as described above with a predetermined threshold value set in advance (S28), and determines whether the calculated difference value is larger than the predetermined threshold value. Returning to the process of S27, the difference value of the average value of each of the adjacent sections is sequentially calculated.
[0050]
Here, when the calculated difference value is smaller than the predetermined threshold value, the neighboring pixel data takes an approximate value, and it can be determined that the edge of the document 32a in the main scanning direction has not been detected.
On the other hand, if the calculated difference value is larger than the predetermined threshold value, the neighboring pixel data takes a significantly different value, and it can be determined that the edge of the document 32a in the main scanning direction has been detected, and the size can be determined. The determining unit 47 determines the size width of the document image in the main scanning direction based on the detected edge (S29).
[0051]
Next, the size determining unit 47 reads the size width of each of the sizes A3, B4, A4, and B5 from the ROM 11, and the size width determined in step S29 is the size width of the A3 recording paper in the main scanning direction (A3 width). ) Is determined (S30). If it is determined that the width matches the size of A3, it is determined that the size of the document 32a to be read is the A3 size (S31).
If the size determining unit 47 determines that the determined size width does not match the size width of A3, it then determines whether or not it matches the size width of the B4 recording paper in the main scanning direction (B4 width). (S32) If it is determined that the size matches the size width of B4, it is determined that the size of the document 32a to be read is the B4 size (S33).
[0052]
When determining that the determined size width does not match the size width of B4, the size determining unit 42 next determines whether or not the size width matches the size width of the A4 recording paper in the main scanning direction (A4 width). If it is determined that the size of the document 32a matches the size of A4 (S34), the size of the document 32a to be read is determined to be the A4 size (S35). Further, the size determining unit 47 determines that the determined size width does not match the size width of A4.
Then, it is determined whether or not it matches the size width of the B5 recording paper in the main scanning direction (B5 width) (S36). If it is determined that the size width matches the size width of B5, the read original 32a is determined. Is determined to be the B5 size (S37), and when it is determined that the size does not match the size width of the B5, the size of the document 32a to be read is determined to be the A5 size (S38), and the size detection process of the document 32a is performed. To end.
[0053]
As described above, the acquired RGB color system image data is converted into Lab color system image data having a luminance component, and based on the L component (luminance component) of the Lab color system image data, By detecting the size of the document 32a, the size of the document 32a can be reliably detected regardless of the ground color of the document 32a to be read.
Further, as described above, the image data of the Lab color system obtained by performing color conversion on the acquired image data of the RGB color system is used, and a color difference component a of the Lab color system image data is used. Whether the read original image is a color image or a monochrome image can be easily determined based on the component and the b component.
Therefore, in parallel with the size detection of the document 32a as described above, by determining whether the read document image is a color image or a monochrome image, for example, the read image data is stored. Each subsequent process such as management of the memory capacity can be executed smoothly.
[0054]
【The invention's effect】
According to the first aspect, a document size detection sensor or the like is provided by extracting a predetermined color component from image data having a plurality of read color components and detecting the size of the document image based on the extracted color component. Need not be separately provided, and there is no need to perform complicated arithmetic processing on image data having a plurality of color components, and the size of a document image can be quickly detected with a simple circuit configuration.
[0055]
According to the second aspect, the size of the document image is detected based on the luminance component of the image data obtained by converting the acquired image data having a plurality of color components into image data having a luminance component and a color difference component. Accordingly, it is not necessary to perform complicated arithmetic processing on image data having a plurality of color components, and based on the luminance information of the image data obtained by conversion, the It is possible to reliably detect the size of the document image without depending on it.
[0056]
According to the third aspect, whether the acquired image data is color image data or monochrome image data is based on a color difference component of the image data obtained by converting the acquired image data having a plurality of color components. Can be determined as a color image or a monochrome image based on image data having a luminance component and a color difference component generated for the size detection process of the original image based on the luminance component. , The subsequent processes can be executed smoothly.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a multifunction peripheral including a reading unit according to the present invention.
FIG. 2 is an external perspective view showing a reading unit according to the present invention.
FIG. 3 is a block diagram illustrating a configuration of a reading unit according to the first embodiment.
FIG. 4 is a flowchart illustrating a procedure of a document size detection process performed by the multifunction peripheral according to the present invention.
FIG. 5 is a flowchart illustrating a document size detection processing procedure by the multifunction peripheral according to the present invention.
FIG. 6 is a block diagram illustrating a configuration of a reading unit according to a second embodiment.
FIG. 7 is a flowchart illustrating a procedure of a document size detection process performed by the multifunction peripheral according to the present invention.
FIG. 8 is a flowchart illustrating a document size detection processing procedure by the multifunction peripheral according to the present invention.
[Explanation of symbols]
1 MFP
3 reading unit (image reading device)
38, 44 Size detection unit (detection means)
39 Extraction unit (extraction means)
43 color conversion unit (conversion means)
48 Image discriminating unit (discriminating means)

Claims (3)

原稿画像を読み取り、取得した複数の色成分を有する画像データに基づき、前記原稿画像のサイズを検知する画像読取装置において、
取得した画像データから、所定の色成分を抽出する抽出手段と、
該抽出手段により抽出された色成分に基づき、前記原稿画像のサイズを検知する検知手段とを備えることを特徴とする画像読取装置。
An image reading apparatus that reads a document image and detects the size of the document image based on the acquired image data having a plurality of color components.
Extracting means for extracting a predetermined color component from the acquired image data;
An image reading device comprising: a detection unit configured to detect a size of the document image based on the color component extracted by the extraction unit.
原稿画像を読み取り、取得した複数の色成分を有する画像データに基づき、前記原稿画像のサイズを検知する画像読取装置において、
取得した画像データを、輝度成分及び色差成分を有する画像データに変換する変換手段と、
該変換手段により変換された画像データの輝度成分に基づき、前記原稿画像のサイズを検知する検知手段とを備えることを特徴とする画像読取装置。
An image reading apparatus that reads a document image and detects the size of the document image based on the acquired image data having a plurality of color components.
Conversion means for converting the acquired image data into image data having a luminance component and a color difference component,
An image reading apparatus comprising: a detection unit configured to detect a size of the document image based on a luminance component of the image data converted by the conversion unit.
前記変換手段により変換された画像データの色差成分に基づき、前記取得した画像データが、カラー画像データであるかモノクローム画像データであるかを判別する判別手段を備えることを特徴とする請求項2に記載の画像読取装置。3. The image processing apparatus according to claim 2, further comprising a determination unit configured to determine whether the acquired image data is color image data or monochrome image data based on a color difference component of the image data converted by the conversion unit. The image reading device according to claim 1.
JP2002321576A 2002-11-05 2002-11-05 Image reading apparatus Pending JP2004159003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002321576A JP2004159003A (en) 2002-11-05 2002-11-05 Image reading apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002321576A JP2004159003A (en) 2002-11-05 2002-11-05 Image reading apparatus

Publications (1)

Publication Number Publication Date
JP2004159003A true JP2004159003A (en) 2004-06-03

Family

ID=32802073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002321576A Pending JP2004159003A (en) 2002-11-05 2002-11-05 Image reading apparatus

Country Status (1)

Country Link
JP (1) JP2004159003A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010068423A (en) * 2008-09-12 2010-03-25 Canon Inc Document reading apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010068423A (en) * 2008-09-12 2010-03-25 Canon Inc Document reading apparatus

Similar Documents

Publication Publication Date Title
JP3891654B2 (en) Image forming apparatus
US8848240B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, and recording medium
JP5442701B2 (en) Image processing method, image processing apparatus, image forming apparatus including the same, image reading apparatus, program, and recording medium
US8203773B2 (en) Image processing method, image processing apparatus, image forming apparatus, and recording medium for chromatic content determination
US8068260B2 (en) Original document size detection using a line sensor for reading the original document
JP2010146185A (en) Image processing apparatus, image reading apparatus, image sending apparatus, image processing method, program, and recording medium thereof
JP2008067018A (en) Image color deciding device, image color deciding method, and program
US20090219558A1 (en) Image processing apparatus and image processing method
WO2014141709A1 (en) Manuscript size detection device, image reading device, and manuscript size detection method
JP3302041B2 (en) Image processing device
US20060082833A1 (en) Image forming device, image processing device and image producing program
CN102547013A (en) Image processing apparatus and method for processing image
US8330999B2 (en) Image reading apparatus and method to correct images
US7821688B2 (en) Image processing device and image processing method
US11146709B2 (en) Image reading apparatus, control method for controlling image reading apparatus, and storage medium
JP2004159003A (en) Image reading apparatus
KR101198768B1 (en) Image Forming Apparatus And Control Method Thereof
JP5765169B2 (en) Image processing apparatus, image reading apparatus, and image processing program
JP2004356863A (en) Image reader
JP4111118B2 (en) Image processing device
US11863717B2 (en) Image reading apparatus and image reading method
JP4479731B2 (en) Image reading apparatus and image reading processing program
JP2005130207A (en) Image processing apparatus
JPH07288657A (en) Detector for size of original
JP2008219465A (en) Image reader

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040507

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050304

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050315

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050414

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050830