JP7155706B2 - Image reading device and image forming device - Google Patents

Image reading device and image forming device Download PDF

Info

Publication number
JP7155706B2
JP7155706B2 JP2018137145A JP2018137145A JP7155706B2 JP 7155706 B2 JP7155706 B2 JP 7155706B2 JP 2018137145 A JP2018137145 A JP 2018137145A JP 2018137145 A JP2018137145 A JP 2018137145A JP 7155706 B2 JP7155706 B2 JP 7155706B2
Authority
JP
Japan
Prior art keywords
document
pixel
light
pixels
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018137145A
Other languages
Japanese (ja)
Other versions
JP2020014181A (en
Inventor
秀之 鳥山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2018137145A priority Critical patent/JP7155706B2/en
Publication of JP2020014181A publication Critical patent/JP2020014181A/en
Application granted granted Critical
Publication of JP7155706B2 publication Critical patent/JP7155706B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像読み取り装置および画像形成装置に関し、特に原稿フリーイレース処理を高速化する技術に関する。 The present invention relates to an image reading device and an image forming device, and more particularly to technology for speeding up document free erase processing.

単体或いは画像形成装置に搭載された状態で、原稿を読み取って画像データを生成する画像読み取り装置には、スリットガラス上で原稿を1枚ずつ搬送しながら読み取るシートスルー方式や、プラテンガラス上に載置された原稿を読み取るプラテンセット方式といった読み取り方式が知られている。 Image reading devices that read documents and generate image data either stand alone or installed in an image forming apparatus include a sheet-through method in which documents are conveyed one by one on a slit glass while being read, and a device placed on a platen glass. A reading method such as a platen set method for reading a placed document is known.

プラテンセット方式で原稿を読み取る際には、原稿カバーを用いて原稿を上方からカバーする場合と、原稿をカバーしない場合とがあり、原稿カバーをカバーせずに原稿を読み取ることを特にスカイショットという。例えば、図22に示すように、原稿カバー2201を開いた状態で書籍2202をプラテンガラス2203に押し当てて当該ページを読み取る場合がスカイショットに該当する。 When scanning a document using the platen setting method, there are cases where the document cover is used to cover the document from above, and cases where the document is not covered. . For example, as shown in FIG. 22, a case where a book 2202 is pressed against a platen glass 2203 with the document cover 2201 open and the page is read corresponds to sky shot.

画像読み取り装置は、プラテンガラスの下方から原稿の読み取り対象面を照明し、当該読み取り対象面からの反射光量を検出することによって原稿を読み取るが、スカイショットの場合には読み取り対象面に入射しなかった照明光が反射されずにそのまま拡散する。このため、読み取り対象面の外側では微弱な外光が検出されるだけであり、暗くなる。このような特徴に着目して、暗い箇所を原稿の外側と判定し、当該外側部分を白く補正して画像データを生成する技術は、原稿フリーイレース機能と呼ばれている。 An image reader reads a document by illuminating the surface of the document to be read from below the platen glass and detecting the amount of light reflected from the surface to be read. The illumination light is diffused as it is without being reflected. Therefore, only weak external light is detected outside the surface to be read, and the surface becomes dark. Focusing on such characteristics, a technique of determining a dark portion as the outside of the document and correcting the outer portion to white to generate image data is called a document free erase function.

しかしながら、原稿の読み取り対象面の周縁部分が黒っぽい場合には、原稿の内側と原稿の外側とを識別するのが難しくなってくる。 However, when the peripheral portion of the reading target surface of the document is dark, it becomes difficult to distinguish between the inside of the document and the outside of the document.

また、画像読み取り装置のうち読み取り速度が低速な機種の中には、走査ラインあたりの処理(受光)時間が長いことから、低価格化を図るために、光源の光量を抑えたものもある。このような低速機種では、外光の受光時間も長くなる一方、光源光量が抑えられるので、原稿の内側と外側とで受光量の差が小さくなって、原稿内外の識別が難しくなる。 Some models of image reading apparatuses having a low reading speed have a long processing (light receiving) time per scanning line, and thus the amount of light emitted from the light source is suppressed in order to reduce the cost. In such a low-speed model, the time for receiving external light is long, but the amount of light from the light source is suppressed, so the difference in the amount of light received between the inside and outside of the document becomes small, making it difficult to distinguish between the inside and outside of the document.

更に、密着型のCIS(Contact Image Sensor)を使用する機種では、受光センサーをプラテンガラスに密着させる構造上、受光センサーに外光が入射し易くなっているため、識別精度が低下しやすい。 Furthermore, in models that use a contact-type CIS (Contact Image Sensor), since the light-receiving sensor is in close contact with the platen glass, external light is likely to enter the light-receiving sensor, which tends to reduce identification accuracy.

このような問題に対して、例えば、プラテンガラス下方からの照明を消灯した状態で外光を検出することによって、外光をマスクするマスクデータを生成するとともに、プラテンガラス下方からの照明を点灯した状態で原稿を読み取って生成した画像データに前記マスクデータを適用する技術が提案されている(特許文献1、2を参照)。 To solve this problem, for example, by detecting external light with the illumination from below the platen glass turned off, mask data for masking the outside light is generated, and the illumination from below the platen glass is turned on. Techniques have been proposed in which the mask data is applied to image data generated by reading a document in a state (see Patent Documents 1 and 2).

また、プラテンカバーを開いた状態と、閉じた状態との両方で原稿を読み取って生成した画像データを比較することによって原稿サイズを判定する技術も提案されている(特許文献3を参照)。 There is also proposed a technique for determining the size of a document by comparing image data generated by reading the document with both the platen cover open and closed (see Patent Document 3).

これらの技術を採用すれば、原稿の読み取り対象面とその外部とを精度よく判別して、外部のみを白く補正することができる。 By adopting these techniques, it is possible to accurately distinguish between the surface of the document to be read and the outside thereof, and correct only the outside to be white.

特開2007-028413号公報JP 2007-028413 A 特開2006-313967号公報JP 2006-313967 A 特開平11-075025号公報JP-A-11-075025

しかしながら、上記の従来技術を採用すると、プラテンガラスの下方からの照明を消灯した状態と点灯した状態、或いはプラテンカバーを開いた状態と閉じた状態とで読み取りを2回実行しなければならず、原稿の読み取り時間が倍増してしまう。このため、特に低速機種において、ユーザーの利便性が低下せざるを得ない。 However, when the above conventional technology is adopted, reading must be performed twice, with the illumination from below the platen glass turned off and on, or with the platen cover open and closed. It doubles the reading time of the document. For this reason, especially in low-speed models, user convenience is inevitably reduced.

また、プラテンガラスの下方からの照明を消灯した状態と点灯した状態とで別個のセンサーを用いて原稿を読み取れば、読み取り時間が倍増するのを回避することはできるものの、センサーおよびその周辺回路が2セット必要になるため、部品コストの増大や大型化を避けることができない。 Also, if the document is read using separate sensors when the illumination from below the platen glass is turned off and when it is turned on, it is possible to avoid doubling the reading time, but the sensor and its peripheral circuits are required. Since two sets are required, an increase in part cost and an increase in size cannot be avoided.

本発明は、上述のような問題に鑑みて為されたものであって、読み取り時間や部品コストを増大させることなく、原稿フリーイレースにおける識別精度を向上させた画像読み取り装置及び画像形成装置を提供することを目的とする。 SUMMARY OF THE INVENTION The present invention has been made in view of the problems described above, and provides an image reading apparatus and an image forming apparatus that improve identification accuracy in document-free erasing without increasing reading time or part costs. intended to

上記目的を達成するため、本発明に係る画像読み取り装置は、原稿を載置する透光性の原稿載置台と、前記原稿載置台を覆う開閉可能なカバーと、前記原稿載置台に載置された原稿に向けて光を照射する光源と、前記カバーを開いた状態で原稿を読み取る際に、副走査方向に沿った所定の切り替えパターンに従って、走査ラインを単位として前記光源からの光の照射光量を切り替える光量制御手段と、原稿からの反射光量を含む入射光量を画素毎に検出する原稿読み取り手段と、前記入射光量の検出値を、前記照射光量の切り替えパターンに対応して補正する補正手段と、前記補正手段による補正の結果、副走査方向に連続する画素群であって、前記照射光量の切り替えパターンに対応して、前記補正後の検出値が副走査方向に沿って変動する画素群が存在した場合、当該画素群に含まれる画素をエッジ画素として検出するエッジ画素検出手段と、前記エッジ画素が原稿の外部となるように、原稿の境界を特定する境界特定手段と、を備えることを特徴とする。 In order to achieve the above object, an image reading apparatus according to the present invention includes a translucent document placing table on which a document is placed, an openable and closable cover covering the document placing table, and a document placed on the document placing table. a light source for irradiating a document with the cover open, and an amount of light emitted from the light source in units of scanning lines according to a predetermined switching pattern along the sub-scanning direction when reading the document with the cover open. document reading means for detecting the amount of incident light including the amount of reflected light from the document for each pixel; and correction means for correcting the detected value of the incident light amount in accordance with the switching pattern of the amount of irradiation light. and, as a result of the correction by the correcting means, a group of pixels that are continuous in the sub-scanning direction and in which the detected values after the correction vary along the sub-scanning direction in accordance with the switching pattern of the irradiation light amount. edge pixel detection means for detecting pixels included in the pixel group as edge pixels when there is a boundary; characterized by

この場合において、反射光量が所定光量よりも少ない低明度画素を検出する低明度画素検出手段を備え、前記境界特定手段は、エッジ画素であっても、低明度画素でなければ、原稿の外部に代えて、内部になるように原稿の境界を特定するのが望ましい。 In this case, a low-brightness pixel detecting means for detecting low-brightness pixels whose reflected light amount is smaller than a predetermined light amount is provided, and the boundary specifying means detects edge pixels, if they are not low-brightness pixels, outside the document. Instead, it is desirable to specify the boundaries of the document to be internal.

また、前記補正手段は、シェーディング補正を兼ねれば更に好適である。 Further, it is more preferable if the correcting means also serves as shading correction.

また、本発明に係る画像読み取り装置は、原稿を載置する原稿載置台と、前記原稿載置台を覆う開閉可能なカバーと、前記原稿載置台に載置された原稿に光を照射する光源と、前記カバーを開いた状態で原稿を読み取る際に、副走査方向に沿った所定の切り替えパターンに従って、走査ラインを単位として前記光源からの光の照射光量を切り替える光量制御手段と、原稿からの反射光量を画素毎に検出する原稿読み取り手段と、前記反射光量の検出値が、前記照射光量の切り替えパターンに対応するエッジ画素を検出するエッジ画素検出手段と、前記エッジ画素でない画素が原稿の外部となるように、原稿の境界を特定する境界特定手段と、を備えることを特徴とする。 Further, the image reading apparatus according to the present invention includes a document placing table on which a document is placed, a cover that can be opened and closed to cover the document placing table, and a light source that irradiates the document placed on the document placing table with light. light amount control means for switching the irradiation light amount of the light from the light source in units of scanning lines according to a predetermined switching pattern along the sub-scanning direction when reading the document with the cover open; document reading means for detecting the amount of reflected light for each pixel; edge pixel detection means for detecting edge pixels whose detected value of the amount of reflected light corresponds to the switching pattern of the amount of irradiation light; and pixels other than edge pixels outside the document. and boundary identifying means for identifying the boundary of the document such that:

この場合においては、反射光量が所定光量よりも少ない低明度画素を検出する低明度画素検出手段を備え、前記境界特定手段は、更に、エッジ画素でなくても、低明度画素でなければ原稿の内部となるように、原稿の境界を特定するのが望ましい。 In this case, low-lightness pixel detection means for detecting low-lightness pixels whose amount of reflected light is less than a predetermined amount of light is provided, and the boundary specifying means further detects pixels of the document if they are not low-lightness pixels, even if they are not edge pixels. It is desirable to specify the boundaries of the document to be internal.

また、いずれの場合においても、前記光量制御手段は、副走査方向に沿って周期的に前記照射光量を切り替えてもよい。 In either case, the light amount control means may periodically switch the irradiation light amount along the sub-scanning direction.

また、前記光量制御手段は、大小2種類の前記照射光量を前記走査ライン毎に切り替えてもよい。 Further, the light amount control means may switch between two types of irradiation light amounts, large and small, for each scanning line.

また、前記反射光量の検出値を主走査方向に沿ってスムージングするスムージング手段を備え、前記エッジ画素検出手段は、スムージングされた検出値を用いてエッジ画素を検出してもよい。 Further, smoothing means for smoothing the detected value of the amount of reflected light along the main scanning direction may be provided, and the edge pixel detecting means may detect the edge pixel using the smoothed detected value.

また、前記光源は、互いに光色が異なる複数の部分光源からなり、前記光量制御手段は、前記複数の部分光源のうちの一部の光源についてのみ、前記照射光量を切り替えてもよい。 Further, the light source may be composed of a plurality of partial light sources having different light colors, and the light amount control means may switch the irradiation light amount only for some of the plurality of partial light sources.

また、前記エッジ画素検出手段は、副走査方向に隣り合う画素どうしの前記反射光量の検出値の差が、所定の範囲内の値を採るか否かを判定することによって、画素を検出してもよい。 Further, the edge pixel detection means detects pixels by determining whether the difference in the detected amount of reflected light between pixels adjacent to each other in the sub-scanning direction is within a predetermined range. good too.

また、前記所定の範囲は、前記照射光量の切り替えパターンに対応した値によって指定してもよい。 Further, the predetermined range may be designated by a value corresponding to the switching pattern of the irradiation light amount.

また、本発明に係る画像形成装置は、本発明に係る画像読み取り装置を備えることを特徴とする。このようにすれば、複写やファクシミリ送信といった処理においてスカイショット伴う場合、処理の高速化並びに高精度化を図ることができる。 Further, an image forming apparatus according to the present invention is characterized by comprising the image reading apparatus according to the present invention. In this way, when processing such as copying or facsimile transmission involves sky shots, it is possible to increase the speed and accuracy of the processing.

このようにすれば、原稿の外部に不要光が多く入射する状況下で、周縁部分の濃度が濃い原稿をスカイショットによって読み取る場合であっても、原稿の内外の境界を1回の読み取りで精度よく判別することができる。また、このために部品の追加などによる大幅なコストアップや生産性の低下を伴わない点でも有利である。 In this way, even when scanning a document with a high density at the periphery by Sky Shot under conditions where a large amount of unnecessary light is incident on the outside of the document, the boundary between the inside and outside of the document can be accurately detected in one reading. can be well identified. It is also advantageous in that it does not involve a significant increase in cost or decrease in productivity due to the addition of parts.

縁が濃い原稿というのは雑誌や書籍などでは比較的多くみられる。しかし1ライン毎に画像形成装置の光量切り替え量と略等しい濃度段差がある原稿が存在する確率はほぼ0で、かつその原稿をプラテンガラス上に正確に平行度を保って載置することは困難である。それゆえ本発明の原稿境界の識別能力は非常に高いと考える。 Manuscripts with dark edges are relatively common in magazines and books. However, the probability of existence of a document having a density level difference that is approximately equal to the amount of light amount switching of the image forming apparatus for each line is almost zero, and it is difficult to place the document on the platen glass while maintaining the parallelism accurately. is. Therefore, it is believed that the document boundary discrimination capability of the present invention is very high.

本発明の第1の実施の形態に係る複合機1の構成を示す外観斜視図である。1 is an external perspective view showing a configuration of a multifunction machine 1 according to a first embodiment of the invention; FIG. 原稿カバー102を開いた状態を示す外観斜視図である。4 is an external perspective view showing a state in which the document cover 102 is opened; FIG. (a)は画像読み取り部100の本体部101の主要な構成を示す図であり、(b)は、読み取り部301の主要な構成を示す図である。3A is a diagram showing the main configuration of the main body 101 of the image reading unit 100, and FIG. 4B is a diagram showing the main configuration of the reading unit 301. FIG. 制御部203の主要な構成を示すブロック図である。2 is a block diagram showing the main configuration of a control unit 203; FIG. シェーディング補正係数を決定する処理を表すフローチャートである。9 is a flow chart showing processing for determining a shading correction coefficient; シェーディング補正係数を決定する際の主走査同期信号HSYNCおよび点灯信号(RGB)を例示するタイミングチャートである。4 is a timing chart illustrating main scanning synchronization signals HSYNC and lighting signals (RGB) when determining shading correction coefficients; 原稿読み取り処理を表すフローチャートである。4 is a flowchart showing document reading processing; 原稿フリーイレース用読み取り処理を表すフローチャートである。10 is a flow chart showing reading processing for original free erase. 原稿フリーイレース用読み取り処理の際の主走査同期信号HSYNCおよび点灯信号(RGB)を例示するタイミングチャートである。4 is a timing chart exemplifying a main scanning synchronization signal HSYNC and lighting signals (RGB) during reading processing for original free erase; (a)は原稿フリーイレース用シェーディング補正処理前の画像を例示し、(b)は原稿フリーイレース用シェーディング補正処理後の画像を例示し、(c)は(b)のE-E線上の明度値を示し、(d)は(b)のF-F線上の明度値を示す。(a) illustrates an image before shading correction processing for document-free erasure, (b) illustrates an image after shading correction processing for document-free erasure, and (c) illustrates the brightness on the EE line in (b). (d) shows the brightness value on the FF line in (b). 原稿フリーイレース用シェーディング補正処理を表すフローチャートである。9 is a flowchart showing shading correction processing for original free erase. 明度生成処理を表すフローチャートである。4 is a flowchart showing brightness generation processing; 主走査方向スムージング処理を表すフローチャートである。5 is a flowchart showing main scanning direction smoothing processing; 副走査方向明度差処理を表すフローチャートである。4 is a flowchart showing sub-scanning direction brightness difference processing. 明度判定処理を表すフローチャートである。4 is a flowchart showing brightness determination processing; 境界座標判定処理を表すフローチャートである。4 is a flowchart showing boundary coordinate determination processing; イレース処理を表すフローチャートである。4 is a flowchart showing erase processing; 本発明の第2の実施の形態に係るシェーディング補正処理を表すフローチャートである。9 is a flowchart showing shading correction processing according to the second embodiment of the present invention; 本発明の第2の実施の形態に係る境界座標判定処理を表すフローチャートである。9 is a flowchart showing boundary coordinate determination processing according to the second embodiment of the present invention; 本発明の変形例に係る主走査同期信号HSYNCおよび点灯信号(RGB)を例示するタイミングチャートである。9 is a timing chart illustrating a main scanning synchronization signal HSYNC and lighting signals (RGB) according to a modification of the invention; 本発明の変形例に係る複合機1の構成を示す外観斜視図である。FIG. 11 is an external perspective view showing the configuration of a multifunction machine 1 according to a modified example of the present invention; スカイショットを説明する外観斜視図である。It is an external appearance perspective view explaining a sky shot.

以下、本発明に係る画像読み取り装置の実施の形態について、図面を参照しながら説明する。
[1]第1の実施の形態
本実施の形態に係る画像読み取り装置は、複合機(MFP: Multi-Function Peripheral)に搭載されている。
(1-1)複合機の構成
図1に示すように、複合機1は、画像読み取り部100、画像形成部110および給紙部120を備えており、プリント機能、コピー機能、ファックス機能、スキャン機能といった複数の機能を有している。画像読み取り部100は、本体部101と原稿カバー102とからなっており、原稿を読み取って画像データを生成する。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of an image reading apparatus according to the present invention will be described below with reference to the drawings.
[1] First Embodiment An image reading device according to the present embodiment is installed in a multifunction peripheral (MFP: Multi-Function Peripheral).
(1-1) Configuration of MFP As shown in FIG. 1, the MFP 1 includes an image reading unit 100, an image forming unit 110, and a paper feeding unit 120, and has a print function, a copy function, a fax function, and a scan function. It has multiple functions such as functions. The image reading section 100 is composed of a body section 101 and a document cover 102, and reads a document to generate image data.

画像形成部110は、画像読み取り部100が生成した画像データや、PC(Personal Computer)その他の装置からファクシミリ回線やLAN(Local Area Network)等のIP(Internet Protocol)通信網を経由して取得した画像データに基づいて画像形成処理を実行する。この画像形成処理に際して、画像形成部110は、給紙部120から記録シートの供給を受けて、当該記録シート上にトナー像を転写し、熱定着する。トナー像を定着された記録シートは、排紙トレイ111上に排出される。 The image forming unit 110 receives image data generated by the image reading unit 100 and image data obtained from a PC (Personal Computer) or other device via a facsimile line or an IP (Internet Protocol) communication network such as a LAN (Local Area Network). An image forming process is executed based on the image data. In this image forming process, the image forming section 110 receives a recording sheet from the paper feeding section 120, transfers the toner image onto the recording sheet, and thermally fixes the toner image. The recording sheet on which the toner image has been fixed is discharged onto the discharge tray 111 .

画像形成部110の正面側(前面側)には、複数のキー(ボタン)を有する操作パネル112が設けられ、複合機1の各種機能の中から選択した機能について操作を行うことができる。画像形成部110は、ファクシミリ回線やIP通信網を経由して他の装置に画像データ等を送信することもできる。 An operation panel 112 having a plurality of keys (buttons) is provided on the front side (front side) of the image forming section 110 , and a function selected from various functions of the multifunction machine 1 can be operated. The image forming unit 110 can also transmit image data and the like to another device via a facsimile line or an IP communication network.

給紙部120は、画像形成部110の下部に配設されており、記録シート束が収容されている。給紙部120は、画像形成部110の画像形成処理に合わせて記録シートを1枚ずつ供給する。
(1-2)画像読み取り部100の構成
図2に示すように、画像読み取り部100は、ヒンジ221を用いて、原稿カバー102を本体部101に取着した構成になっており、原稿カバー102は矢印A方向に開閉することができる。本体部101の上面にはプラテンガラス201が配設されており、画像を読み取る際に原稿がプラテンガラス201上に載置される。
The paper feeding section 120 is arranged below the image forming section 110 and accommodates a bundle of recording sheets. The paper feeding unit 120 supplies recording sheets one by one in accordance with the image forming process of the image forming unit 110 .
(1-2) Configuration of Image Reading Unit 100 As shown in FIG. can be opened and closed in the direction of arrow A. A platen glass 201 is provided on the upper surface of the main body 101, and a document is placed on the platen glass 201 when reading an image.

また、本体部101は、原稿カバー102によってピン202が押下されているか否かによって、原稿カバー102の開閉状態を検出する開閉センサーを備えている。原稿カバー102を閉じた状態でプラテンガラス201に対向する位置には、白色基準板211が配設されている。白色基準板211は、全面が均一に白色になっており、後述のように、シェーディング補正に用いるシェーディング補正係数を決定するために用いられる。 The main body 101 also includes an open/close sensor that detects the open/closed state of the document cover 102 depending on whether or not the pin 202 is pressed by the document cover 102 . A white reference plate 211 is arranged at a position facing the platen glass 201 with the document cover 102 closed. The white reference plate 211 is uniformly white on its entire surface, and is used for determining shading correction coefficients used for shading correction, as will be described later.

更に、本体部101には、本体部101の動作を制御する制御部203が内蔵されている。 Furthermore, the body portion 101 incorporates a control portion 203 that controls the operation of the body portion 101 .

図3(a)に示すように、本体部101は、主走査方向に長尺の読み取りユニット301、走行ユニット302およびガイドレール303が内蔵されている。読み取りユニット301は走行ユニット302に取着されており、走行ユニット302がガイドレール303に沿ってホーム位置310から走行完了位置311まで走行することによって、副走査方向に移動しながら原稿から画像を読み取る。 As shown in FIG. 3A, the main body 101 incorporates a reading unit 301 elongated in the main scanning direction, a traveling unit 302 and a guide rail 303 . The reading unit 301 is attached to a traveling unit 302, and the traveling unit 302 travels along the guide rails 303 from a home position 310 to a travel completion position 311, thereby reading an image from a document while moving in the sub-scanning direction. .

図3(b)に示すように、読み取りユニット301は、いわゆる1ラインCIS(Contact Image Sensor)であって、画像読み取りセンサー314はモノクロのラインセンサー1列のみであり、RGB各色の光源311R、311Gおよび311Bを順次切り替えて点灯することでRGB各色のラインデータを取得する。なお、ラインデータ取得に際しては波長の分離等を行う機構は無いため、点灯している光源と同じ波長の光を受光しているものとして、時間的にRGBを分離する。 As shown in FIG. 3(b), the reading unit 301 is a so-called 1-line CIS (Contact Image Sensor), the image reading sensor 314 is only a single row of monochrome line sensors, and light sources 311R and 311G for RGB colors are used. , and 311B are sequentially switched and turned on to obtain line data of each color of RGB. Since there is no mechanism for separating wavelengths when acquiring line data, RGB are temporally separated on the assumption that light having the same wavelength as that of a lighted light source is received.

光源311R、311Gおよび311Bは、主走査方向に長尺な導光体312の主走査方向における一方または両方の端部に配設されており、原稿Dの読み取り対象面を照明する読み取り光を、当該端部に向かって出射する。導光体312は、光源311R、311Gおよび311Bが出射した読み取り光を、主走査方向に略均一に拡散させる。これによって、主走査方向における幅全体に亘って原稿Dの読み取り対象面が照明される。 The light sources 311R, 311G, and 311B are arranged at one or both ends in the main scanning direction of the light guide 312 elongated in the main scanning direction, and emit reading light for illuminating the surface of the document D to be read. It exits toward the end. The light guide 312 diffuses the reading light emitted from the light sources 311R, 311G and 311B substantially uniformly in the main scanning direction. As a result, the reading surface of the document D is illuminated over the entire width in the main scanning direction.

読み取り対象面からの反射光はレンズアレイ313を経由して画像読み取りセンサー314に入射する。レンズアレイ313は読み取り対象面からの反射光のピントを画像読み取りセンサー314に合わせる。本実施の形態においては、レンズアレイ313としてSLA(SELFOC Lens Array。SELFOCは日本板硝子株式会社の登録商標。)を用いているが、MLA(Micro Lens Array)等、他の光学系を用いてもよい。 Reflected light from the surface to be read enters the image reading sensor 314 via the lens array 313 . The lens array 313 focuses reflected light from the surface to be read onto the image reading sensor 314 . In this embodiment, SLA (SELFOC Lens Array. SELFOC is a registered trademark of Nippon Sheet Glass Co., Ltd.) is used as the lens array 313. However, other optical systems such as MLA (Micro Lens Array) may be used. good.

画像読み取りセンサー314は、主走査方向に沿って並ぶ複数の光電変換素子からなり、入射光量(入射光の輝度と入射時間の積)に応じた出力値を出力する。すなわち、画像読み取りセンサー314は、読み取り対象で生じた光学的な反射像を1走査ラインずつ電気的な画像信号に変換して出力する。 The image reading sensor 314 is composed of a plurality of photoelectric conversion elements arranged along the main scanning direction, and outputs an output value corresponding to the amount of incident light (the product of the luminance of the incident light and the incident time). That is, the image reading sensor 314 converts an optical reflected image generated on the object to be read into an electrical image signal for each scanning line and outputs the image signal.

なお、読み取りユニット301として1ラインCIS以外の構成を用いてもよい。また、本体部101内に画像読み取りセンサーを固定しておき、光源とミラーとを読み取り対象面に沿って副走査方向へ移動させながら、読み取り対象面からの反射光を画像読み取りセンサーに入射させて画像信号を生成させるミラースキャン方式を採用してもよい。 A configuration other than the one-line CIS may be used as the reading unit 301 . Further, the image reading sensor is fixed inside the main body 101, and the light source and the mirror are moved in the sub-scanning direction along the surface to be read, and the reflected light from the surface to be read is made incident on the image reading sensor. A mirror scan method for generating an image signal may be employed.

本体部101は、不図示の制御部を内蔵している。この制御部は読み取りユニット301および走行ユニット302の動作を制御する他、画像読み取りセンサー314が出力する画像信号を用いてシェーディング補正に用いるシェーディング補正係数を決定したり、シェーディング補正を実行したりする。
(1-3)制御部の構成
次に、本体部101に内蔵されている制御部の構成について説明する。
The body portion 101 incorporates a control portion (not shown). This controller controls the operations of the reading unit 301 and the traveling unit 302, and also determines shading correction coefficients to be used for shading correction using the image signal output from the image reading sensor 314, and executes shading correction.
(1-3) Configuration of Control Unit Next, the configuration of the control unit built in the main unit 101 will be described.

図4に示すように、制御部203は、CPU(Central Processing Unit)401、ROM(Read Only Memory)402、RAM(Random Access Memory)403およびHDD(Hard Disk Drive)404を備えている。複合機1に電源が投入されると、CPU401はROM402からブートプログラムを読みだして起動し、RAM403を作業用記憶領域として、HDD404から読みだしたOS(Operating System)や制御プログラムを実行する。 As shown in FIG. 4 , the control unit 203 includes a CPU (Central Processing Unit) 401 , ROM (Read Only Memory) 402 , RAM (Random Access Memory) 403 and HDD (Hard Disk Drive) 404 . When the MFP 1 is powered on, the CPU 401 reads a boot program from the ROM 402 to start up, and uses the RAM 403 as a working storage area to execute an OS (Operating System) and control programs read from the HDD 404 .

クロック回路405は、主走査同期信号HSYNCを生成して、CPU401に入力する。主走査同期信号HSYNCは1走査ラインの同期をとるための信号である。本実施の形態に係る主走査同期信号HSYNCは、R→G→Bの順に光源を点灯させる。CPU401は、ピン202を用いて原稿カバー102の開閉を検出する開閉センサー411から検出信号を受け付ける。 A clock circuit 405 generates a main scanning synchronization signal HSYNC and inputs it to the CPU 401 . A main scanning synchronization signal HSYNC is a signal for synchronizing one scanning line. The main scanning synchronization signal HSYNC according to the present embodiment turns on the light sources in order of R→G→B. CPU 401 receives a detection signal from open/close sensor 411 that detects opening/closing of document cover 102 using pin 202 .

CPU401は、主走査同期信号HSYNCに同期して、光源311R、311Gおよび311Bに点灯信号(RGB)を入力する。点灯信号(RGB)はいずれも光源を点灯させるHと、光源を消灯させるLとの2状態をとる信号であって、光源311R、311Gおよび311Bは点灯信号(RGB)がHである期間(以下、単に「点灯期間」という。)中、所定の輝度で点灯し続ける。CPU401は、クロック回路405が出力する主走査同期信号HSYNCを参照して、光源311R、311Gおよび311Bを点灯するタイミングを決定する。 The CPU 401 inputs lighting signals (RGB) to the light sources 311R, 311G and 311B in synchronization with the main scanning synchronization signal HSYNC. Each of the lighting signals (RGB) is a signal that takes two states of H for turning on the light source and L for turning off the light source. , simply referred to as “lighting period”), the light continues to be lit at a predetermined luminance. The CPU 401 refers to the main scanning synchronization signal HSYNC output by the clock circuit 405 to determine the timing of turning on the light sources 311R, 311G and 311B.

CPU401は画像読み取りセンサー314から画像信号を受け付けると、後述のように画像信号を補正した後、画像形成部110へ出力する。また、CPU401は画像形成部110が備える操作パネル112からユーザー操作に係る操作信号を受け付ける。更に、CPU401は制御信号を出力して走行ユニット302の動作を制御する。
(1-4)シェーディング補正係数の算出処理
次に、シェーディング補正係数を算出する処理について説明する。
Upon receiving an image signal from the image reading sensor 314 , the CPU 401 corrects the image signal as described later, and then outputs the corrected image signal to the image forming unit 110 . Further, CPU 401 receives operation signals related to user operations from operation panel 112 provided in image forming unit 110 . Furthermore, the CPU 401 outputs control signals to control the operation of the traveling unit 302 .
(1-4) Processing for Calculating Shading Correction Coefficient Next, processing for calculating a shading correction coefficient will be described.

制御部203は、シェーディング補正係数を算出する際には、図5に示すように、まず、開閉センサー411が出力する検出信号を参照して、原稿カバー102が閉じた状態ならば(S501:YES)、走行ユニット302の副走査方向への走行を開始する(S502)。次に、制御部203は、走査ライン毎にステップS503からステップS507までの読み取り処理を実行する。 When calculating the shading correction coefficient, as shown in FIG. 5, the control unit 203 first refers to the detection signal output from the open/close sensor 411, and if the document cover 102 is closed (S501: YES). ), the traveling unit 302 starts traveling in the sub-scanning direction (S502). Next, the control unit 203 executes the reading process from step S503 to step S507 for each scanning line.

図6に示すように、クロック回路405が出力する主走査同期信号HSYNCは、RGB各色に対応するパルスを順に発生させる。いずれのパルスもパルス幅が同じになっており、従って、光源311R、311Gおよび311Bの走査ライン毎の発光量は互いに等しくなる。 As shown in FIG. 6, the main scanning synchronization signal HSYNC output by the clock circuit 405 sequentially generates pulses corresponding to RGB colors. All the pulses have the same pulse width, and therefore the amounts of light emitted by the light sources 311R, 311G and 311B for each scanning line are equal to each other.

CPU401は、主走査同期信号HSYNCのパルスの立ち上がりエッジを検出することによって光源の点灯タイミングを検出したら(S504:YES)、光源311R、311Gおよび311Bのうち当該パルスに対応する光色の光源を点灯し(S505)、ラインセンサー314を用いて白色基準板211からの反射光量を画素ごとに検出する(S506)。 When the CPU 401 detects the light source lighting timing by detecting the rising edge of the pulse of the main scanning synchronization signal HSYNC (S504: YES), the CPU 401 turns on the light source of the light color corresponding to the pulse among the light sources 311R, 311G and 311B. (S505), and the line sensor 314 is used to detect the amount of reflected light from the white reference plate 211 for each pixel (S506).

その後、すべての画素について光色ごとにシェーディング補正係数を算出する(シェーディング補正係数算出処理:S508からステップS510まで)。シェーディング補正係数は、すべての画素およびすべての光色について、画素ごとに検出した反射光量の読み取り値を用いて、基準値を除算することによって算出される。 Thereafter, shading correction coefficients are calculated for each light color for all pixels (shading correction coefficient calculation processing: from S508 to step S510). The shading correction coefficient is calculated by dividing the reference value by the read value of the amount of reflected light detected for each pixel for all pixels and all light colors.

シェーディング補正係数 = 基準値 / 反射光量の読み取り値 …(1)
原稿カバー102を閉じた状態で原稿を読み取る際には、補正値を決定する場合と同じ発光量で原稿を読み取ってシェーディング補正を行う。この場合には、画素ごとにシェーディング補正前の画素値に、当該画素のシェーディング補正係数を乗算する。
Shading correction coefficient = standard value / read value of reflected light amount (1)
When the document is read with the document cover 102 closed, the shading correction is performed by reading the document with the same amount of light emission as when determining the correction value. In this case, the pixel value before shading correction is multiplied by the shading correction coefficient of the pixel for each pixel.

補正後の画素値 = シェーディング補正係数 × 補正前の画素値 …(2)
なお、シェーディング補正係数を算出するために用いる基準値は、カラーバランスを考慮して、光色ごとに異なっていてもよい。また、光色どうしで同じ基準値を用いる場合には、上記の式(2)を用いて算出した補正後の画素値に対してカラーバランスを調整するための処理を施してもよい。
(1-5)原稿フリーイレース処理
次に、原稿カバー102を開いた状態で原稿を読み取った際に実行する原稿フリーイレース処理について説明する。
Pixel value after correction = shading correction coefficient x pixel value before correction (2)
Note that the reference value used to calculate the shading correction coefficient may be different for each light color in consideration of color balance. Further, when the same reference value is used for each light color, processing for adjusting the color balance may be performed on the corrected pixel value calculated using the above equation (2).
(1-5) Document-Free Erase Processing Next, the document-free erase processing executed when the document is read with the document cover 102 open will be described.

図7に示すように、画像読み取り部100は、複合機1のユーザーから操作パネル112によって原稿の読み取り指示を受け付けると(S701:YES)、開閉センサー411からの検出信号を参照して、原稿カバー102が閉じていたら(S702:NO)、通常の読み取り処理を実行する(S711)。一方、原稿カバー102が開いていたら(S702:YES)、原稿フリーイレース用読み取り処理を実行する(S703)。 As shown in FIG. 7, when the image reading unit 100 receives an instruction to read a document from the operation panel 112 from the user of the multifunction machine 1 (S701: YES), the image reading unit 100 refers to the detection signal from the open/close sensor 411 and reads the document cover. 102 is closed (S702: NO), normal reading processing is executed (S711). On the other hand, if the document cover 102 is open (S702: YES), reading processing for document free erase is executed (S703).

原稿フリーイレース用読み取り処理においては、走査ライン毎に光源311R、311Gおよび311Bの発光量を切り替えて、原稿を読み取り、カラー画像データ(以下、「読み取り画像」という。)を生成する。次に、読み取り画像に対して原稿フリーイレース用シェーディング補正処理を施す(S704)。この原稿フリーイレース用シェーディング補正処理においては、走査ライン毎の光源311R、311Gおよび311Bの発光量に応じて補正係数を切り替える。 In the document free erase reading process, the light emission amounts of the light sources 311R, 311G and 311B are switched for each scanning line to read the document and generate color image data (hereinafter referred to as "read image"). Next, shading correction processing for original free erase is applied to the read image (S704). In this document free erase shading correction process, the correction coefficients are switched according to the light emission amounts of the light sources 311R, 311G and 311B for each scanning line.

明度生成処理においては、RGB3色の画像データから単色の明度画像データ(以下、「明度画像」という。)を生成する(S705)。主走査方向スムージング処理は、明度画像において走査ライン毎に明度を重み付きで移動平均化する処理である(S706)。 In the brightness generation process, single-color brightness image data (hereinafter referred to as "brightness image") is created from three-color RGB image data (S705). The smoothing process in the main scanning direction is a process of carrying out a weighted moving average of brightness for each scanning line in a brightness image (S706).

副走査方向明度差検出処理は、副走査方向に隣り合う3つの画素の明度差が所定の範囲内であるか否かによって、画素の明度が光源311R、311Gおよび311Bの発光量に応じて明度が縞状のパターンになっている領域に属する画素を検出する処理である(S707)。明度判定処理は、画素ごとに明度を所定の閾値と比較して、明度が低い画素を検出する処理である(S708)。 The sub-scanning direction brightness difference detection process determines whether or not the brightness difference between three pixels adjacent to each other in the sub-scanning direction is within a predetermined range. is a process of detecting pixels belonging to a striped pattern area (S707). The lightness determination process is a process of comparing the lightness of each pixel with a predetermined threshold to detect pixels with low lightness (S708).

境界座標特定処理は、副走査方向明度差検出処理と明度判定処理の処理結果を用いて原稿内外の境界座標を特定する処理である(S709)。イレース処理は、境界座標の外側を白く補正する処理である(S710)。
(1-5-1)原稿フリーイレース用読み取り処理(S703)
原稿フリーイレース用読み取り処理においては、図8に示すように、まず、副走査方向におけるホーム位置310から走行ユニット302の走行を開始させる(S801)。走行ユニット302は、ホーム位置310から走行完了位置311まで、主走査同期信号HSYNCのパルスの立ち上がり間隔と、読み取り装置100の解像度とから定まる所定の速度で走行する。
The boundary coordinate specifying process is a process of specifying boundary coordinates inside and outside the document using the processing results of the sub-scanning direction brightness difference detection process and the brightness determination process (S709). The erase process is a process of whitening the outside of the boundary coordinates (S710).
(1-5-1) Reading process for original free erase (S703)
In the document free erase reading process, as shown in FIG. 8, first, the traveling unit 302 starts traveling from the home position 310 in the sub-scanning direction (S801). The traveling unit 302 travels from the home position 310 to the travel completion position 311 at a predetermined speed determined by the pulse rising interval of the main scanning synchronization signal HSYNC and the resolution of the reading device 100 .

その後、走行ユニット302が走行完了位置311に到達するまで、ステップS802からステップS808までの処理を繰り返す。すなわち、クロック回路405が出力する主走査同期信号HSYNCを監視して、パルスの立ち上がりを検出するたびに(S803:YES)、RGB色の光源を点灯する点灯信号(RGB)を順次、Hにする(S804)。 After that, the processing from step S802 to step S808 is repeated until the travel unit 302 reaches the travel completion position 311 . That is, the main scanning synchronizing signal HSYNC output by the clock circuit 405 is monitored, and each time a rise of the pulse is detected (S803: YES), the lighting signal (RGB) for lighting the RGB light sources is sequentially set to H. (S804).

図9は、主走査同期信号HSYNCおよび点灯信号(RGB)を例示するタイミングチャートである。図9に示すように、主走査同期信号HSYNCのパルスが立ち上がるたびに光色RGBの点灯信号(RGB)がRGBの順にHにされる。また、点灯信号(RGB)の点灯期間は走査ライン毎に長(Tl)短(Ts)を繰り返す。また、走査ライン毎に点灯信号(RGB)どうしで点灯期間は同じである。 FIG. 9 is a timing chart illustrating main scanning synchronization signal HSYNC and lighting signals (RGB). As shown in FIG. 9, every time the pulse of the main scanning synchronization signal HSYNC rises, the lighting signals (RGB) of the light colors RGB are turned to H in the order of RGB. Further, the lighting period of the lighting signal (RGB) repeats a long (Tl) and a short (Ts) for each scanning line. Also, the lighting period is the same between the lighting signals (RGB) for each scanning line.

点灯信号の点灯期間、言い換えると光源の点灯期間は、1走査ライン毎に交互にTlとTsに切り換える。点灯期間Tlは点灯期間Tsよりも長いため、光源の発光量が多い。光源の点灯期間が経過したら、ラインセンサー314から画素ごとに原稿の読み取り対象面からの1走査ライン分の反射光量を読み出す(S805)。 The lighting period of the lighting signal, in other words, the lighting period of the light source is alternately switched between Tl and Ts for each scanning line. Since the lighting period Tl is longer than the lighting period Ts, the amount of light emitted from the light source is large. After the lighting period of the light source has elapsed, the amount of reflected light for one scanning line from the reading target surface of the document is read out for each pixel from the line sensor 314 (S805).

本実施の形態においては、T1に対するTsの比が数10%程度である。Tlに対するTsの比が大き過ぎると、原稿と原稿外部との境界を検出するのが難しくなる。一方、Tlに対するTsの比が小さ過ぎると、光量が少なくなり過ぎて原稿の読み取り精度が低下する恐れがあるが、だからと言ってTlを長くすると読み取り時間が長くなってしまう。このため、Tsとして適切な時間長を設定するのが望ましい。 In this embodiment, the ratio of Ts to T1 is about several tens of percent. If the ratio of Ts to Tl is too large, it becomes difficult to detect the boundary between the document and the outside of the document. On the other hand, if the ratio of Ts to Tl is too small, the amount of light will be too small and the reading accuracy of the document may be lowered. Therefore, it is desirable to set an appropriate time length as Ts.

その後、1走査ラインのRGB三色分の読み取りが完了したら(S806:YES)、発光量を切り替える(S807)。具体的には、現在の点灯期間が長い(Tl)場合には短くし(Ts)、短ければ(Ts)長くする(Tl)。 After that, when reading of three colors of RGB of one scanning line is completed (S806: YES), the light emission amount is switched (S807). Specifically, if the current lighting period is long (Tl), it is shortened (Ts), and if it is short (Ts), it is lengthened (Tl).

なお、上述のように読み取りユニット301は1ラインCISであり、1ラインCISは、一般に、各ドットの読み取りに際して、原稿または読み取りユニットの移動を止めることなく連続して各色の読み取りを行う。また、点灯信号(RGB)のパルスの立ち上がりタイミングは主走査期間Thの1/3ずつずれている。このため、発光順が隣接する各光源間で原稿の読み取り対象面上で副走査方向に1/3ドットずつ位置ズレが生じる。この位置ズレは、画像処理によって補正する。 As described above, the reading unit 301 is a 1-line CIS, and the 1-line CIS generally reads each color continuously without stopping the movement of the original or the reading unit when reading each dot. Also, the rise timing of the pulse of the lighting signal (RGB) is shifted by ⅓ of the main scanning period Th. For this reason, positional deviation of 1/3 dot in the sub-scanning direction occurs on the reading surface of the document between the light sources adjacent in order of light emission. This positional deviation is corrected by image processing.

走行ユニット302が走行完了位置311まで到達したら、原稿の読み取りを終了して、走行ユニット302をホーム位置310に戻して(S809)、原稿フリーイレース用読み取り処理を完了する。 When the traveling unit 302 reaches the travel completion position 311, reading of the document is finished, and the traveling unit 302 is returned to the home position 310 (S809) to complete the document free erase reading process.

図10(a)は、読み取り画像を例示する図である。破線で示す矩形1001の内部が原稿であり、外部が原稿外である。矩形1001内は、原稿が光源311R、311Gおよび311Bの出射光を反射するので、光源311R、311Gおよび311Bの発光量の切り替えに応じた縞状のパターンが認められる。一方、矩形1001の外部は光源311R、311Gおよび311Bの出射光が反射されないので、縞状のパターンは生じておらず、明度が概ね均一の黒い低明度領域になっている。 FIG. 10A is a diagram illustrating a read image. The inside of a rectangle 1001 indicated by broken lines is the document, and the outside is the outside of the document. Inside the rectangle 1001, since the document reflects the light emitted from the light sources 311R, 311G and 311B, a striped pattern corresponding to the switching of the light emission amounts of the light sources 311R, 311G and 311B is recognized. On the other hand, since the light emitted from the light sources 311R, 311G, and 311B is not reflected outside the rectangle 1001, no striped pattern is generated, and the area is a black, low-brightness region with approximately uniform brightness.

なお、導光体312によって導光された光源311R、311Gおよび311Bの出射光の主走査方向における光量分布のムラやレンズアレイ131の結像効率のムラ、ラインセンサー314を構成する光電変換素子の感度ばらつき等に起因する明度のばらつきは、図10(a)には表現されていないが、次に説明する原稿フリーイレース用シェーディング補正処理によって補正される。
(1-5-2)原稿フリーイレース用シェーディング補正処理(S704)
原稿フリーイレース用シェーディング補正処理においては、図11に示すように、読み取り画像のすべての走査ラインについてステップS1101からステップS1104までの処理を繰り返す。すなわち、まず、当該走査ラインを読み取る際の点灯期間の長さに応じて光量補正係数を設定する(S1102)。光量補正係数は、当該走査ラインを読み取った際の点灯信号の点灯期間がTlである場合には、
光量補正係数 = T1 / Tl = 1 …(3)
であり、当該点灯期間がTsである場合には、
光量補正係数 = T1 / Ts …(4)
である。
It should be noted that unevenness in the light amount distribution in the main scanning direction of the light emitted from the light sources 311R, 311G, and 311B guided by the light guide 312, unevenness in the imaging efficiency of the lens array 131, and variations in the photoelectric conversion elements constituting the line sensor 314 Variations in lightness caused by variations in sensitivity are not shown in FIG. 10A, but are corrected by the document-free erase shading correction process described below.
(1-5-2) Original Free Erase Shading Correction Processing (S704)
In the document free erase shading correction process, as shown in FIG. 11, the process from step S1101 to step S1104 is repeated for all scanning lines of the read image. That is, first, a light amount correction coefficient is set according to the length of the lighting period when reading the scanning line (S1102). If the lighting period of the lighting signal when reading the scanning line is Tl, the light intensity correction coefficient is
Light intensity correction coefficient = T1/Tl = 1 (3)
and when the lighting period is Ts,
Light intensity correction coefficient = T1/Ts (4)
is.

次に、当該走査ラインのすべての画素について以下の式を用いて画素値を補正する(S1103)。 Next, the pixel values of all the pixels of the scanning line are corrected using the following formula (S1103).

補正後の画素値 = シェーディング補正係数 × 光量補正係数 × 補正前の画素値 …(5)
シェーディング補正係数は、予め画素ごとに算出されたものを用いる。
Pixel value after correction = shading correction coefficient x light amount correction coefficient x pixel value before correction (5)
A shading correction coefficient that is calculated for each pixel in advance is used.

図10(b)は、図10(a)の画像に原稿フリーイレース用シェーディング補正処理を行ったものである。原稿フリーイレース用シェーディング補正処理の際に光量補正係数を乗算しているので、破線で示す矩形1002の内部の原稿部分では、縞状のパターンが解消される。一方、矩形1002の外部では、補正前には縞状のパターンが無いため、光量補正係数が乗算されることによって縞状のパターンが生じる。
(1-5-3)明度生成処理(S705)
明度生成処理においては、図12に示すように、すべての走査ラインについてステップS1201からステップS1203までの処理を繰り返す。具体的には、下記のような計算式を用いて、RGB各色の画素値から明度Vを生成する(S1202)。
FIG. 10(b) shows the image of FIG. 10(a) subjected to shading correction processing for original free erase. Since the light quantity correction coefficient is multiplied in the shading correction process for document free erase, the striped pattern is eliminated in the document portion inside the rectangle 1002 indicated by the dashed line. On the other hand, since there is no striped pattern outside the rectangle 1002 before correction, a striped pattern is generated by multiplication by the light amount correction coefficient.
(1-5-3) Brightness generation processing (S705)
In the brightness generation process, as shown in FIG. 12, the processes from step S1201 to step S1203 are repeated for all scanning lines. Specifically, the brightness V is generated from the pixel values of RGB colors using the following formula (S1202).

V = (0.3 × R)+(0.6 × G)+(0.1 × B) …(6)
このように読み取り画像(カラー画像)から明度画像を生成し、当該明度画像を用いて原稿内外の境界を検出すれば、原稿の縁部の色依存性を極力排除することができる。なお、上記以外の計算式を用いて明度Vを生成してもよい。また、本実施の形態においては、画素の明度は、256階調で、値0が黒、値255が白を表現する。
(1-5-4)主走査方向スムージング処理(S706)
主走査方向スムージング処理においては、図13に示すように、明度画像のすべての画素についてステップS1301からステップS1303の処理を実行する。すなわち、走査ライン上でi番目の画素を含む5個の画素の明度Vの重み付き合計値を算出して当該重みの合計値で除算したものを、当該i番目の画素のスムージング後の明度とする(S1302)。
V = (0.3 x R) + (0.6 x G) + (0.1 x B) (6)
By generating a brightness image from a read image (color image) in this way and using the brightness image to detect the boundaries between the inside and outside of the document, the color dependence of the edges of the document can be eliminated as much as possible. Note that the brightness V may be generated using a formula other than the above. Further, in the present embodiment, the brightness of a pixel is represented by 256 gradations, with a value of 0 representing black and a value of 255 representing white.
(1-5-4) Main scanning direction smoothing process (S706)
In the main scanning direction smoothing process, as shown in FIG. 13, the processes of steps S1301 to S1303 are executed for all pixels of the brightness image. That is, the weighted sum of five pixels including the i-th pixel on the scanning line is calculated and divided by the total value of the weights to determine the smoothed lightness of the i-th pixel. (S1302).

SV(i)= {V(i-2)+3×V(i-1)+8×V(i)+3×V(i+1)+V(i+2)}/(1+3+8+3+1) …(7)
ここで、SV(i)はi番目の画素のスムージング後の明度を表し、V(k)はk番目の画素のスムージングまでの明度を表す。なお、走査ライン端部近くの画素について、主走査方向に隣接する5個の画素で明度の重み付き平均値を算出することができない場合には、画素の個数を少なくして重み付き平均値を求めてもよい。
SV(i)={V(i-2)+3*V(i-1)+8*V(i)+3*V(i+1)+V(i+2)}/(1+3+8+3+1) (7)
Here, SV(i) represents the brightness of the i-th pixel after smoothing, and V(k) represents the brightness of the k-th pixel before smoothing. For pixels near the end of a scanning line, if the weighted average value of brightness cannot be calculated from five pixels adjacent in the main scanning direction, the number of pixels is reduced and the weighted average value is calculated. you may ask.

例えば、走査ラインの1番目の画素についてスムージング処理を実行する場合には、-1番目の画素も0番目の画素も無いので、1番目から3番目までの画素の明度の重み付き平均値を、1番目の画素のスムージング後の明度SV(1)としてもよい。また、重みの付け方が上記に限定されないのは言うまでもなく、必要に応じて重みの付け方を変更してもよい。 For example, when smoothing is performed on the first pixel of a scanning line, since there is no -1-th pixel or 0-th pixel, the weighted average value of the brightness of the first to third pixels is The lightness SV(1) after smoothing of the first pixel may be used. Moreover, it goes without saying that the weighting method is not limited to the above, and the weighting method may be changed as necessary.

原稿外部の画素値(明度レベル)はもともと低く、光量切り替えによって発生する副走査方向の明度段差はあまり大きくないことから、ノイズの影響を受け易い。これに対して、主走査方向スムージング処理を行ってノイズ成分を除去すれば、原稿外部における明度段差の検出精度を高めることができる。
(1-5-5)副走査方向明度差検出処理(S707)
副走査方向明度差検出処理においては、明度画像で副走査方向に隣り合う画素どうしの明度差が所定の範囲内であるか否かを判定することによって、当該画素が縞状のパターンを構成する画素であるか否かを判定する。以下、縞状のパターンを構成する画素を「エッジ画素」という。
The pixel values (brightness level) outside the original are originally low, and the difference in brightness in the sub-scanning direction caused by switching the amount of light is not so large, so that it is easily affected by noise. On the other hand, if the main scanning direction smoothing process is performed to remove the noise component, it is possible to improve the detection accuracy of the brightness step outside the document.
(1-5-5) Sub-scanning direction brightness difference detection process (S707)
In the sub-scanning direction brightness difference detection process, it is determined whether or not the brightness difference between pixels adjacent in the sub-scanning direction in the brightness image is within a predetermined range, so that the pixels form a striped pattern. Determine whether or not it is a pixel. Pixels forming a striped pattern are hereinafter referred to as "edge pixels".

図14に示すように、すべての画素について、ステップS1401からステップS1404までの処理を実行する。 As shown in FIG. 14, the processing from step S1401 to step S1404 is executed for all pixels.

すなわち、j番目の走査ライン上の画素を挟んで副走査方向に隣接する3つの画素の明度が、副走査方向に順にINj-1、INjおよびINj+1であって、明度差閾値Vth1に対して、
INj - INj+1 > Vth1 …(8)
かつ
INj - INj-1 > Vth1 …(9)
のように、副走査方向における中央の画素の明度が両隣の画素の明度よりも明度閾値以上高くなっているか、または、
INj+1 - INj > Vth1 …(10)
かつ
INj-1 - INj > Vth1 …(11)
のように、副走査方向における中央の画素の明度が両隣の画素の明度よりも明度閾値以上低くなっている場合には(S1402:YES)、これら3つの画素はエッジ画素であると判定する(S1403)。
That is, the brightnesses of the three pixels adjacent in the sub-scanning direction across the pixel on the j-th scanning line are INj-1, INj and INj+1 in order in the sub-scanning direction, and the brightness difference threshold value Vth1 is hand,
INj-INj+1>Vth1 (8)
and INj - INj-1 > Vth1 (9)
, the brightness of the central pixel in the sub-scanning direction is higher than the brightness of the neighboring pixels by a brightness threshold or more, or
INj+1-INj>Vth1 (10)
and INj-1 - INj > Vth1 (11)
When the brightness of the central pixel in the sub-scanning direction is lower than the brightness of the pixels on both sides by the brightness threshold or more (S1402: YES), these three pixels are determined to be edge pixels ( S1403).

副走査方向に隣接する3つの画素の明度が上記の条件式を充足しない場合には(S1402:NO)、これら3つの画素はエッジ画素であるとは判定しない。本実施の形態では、ステップS1401からステップS1405までのループ処理の開始に先立つデフォルト状態で、いずれの画素もエッジ画素でないとの判定になっており、当該エッジ画素でないとの判定が上記のループ処理によって変更される。また、エッジ画素ではないとの判定は行わないので、一旦、エッジ画素であると判定された後、当該判定が覆されて、エッジ画素ではないと判定されることはない。 If the brightness of three pixels adjacent in the sub-scanning direction does not satisfy the above conditional expression (S1402: NO), these three pixels are not determined to be edge pixels. In this embodiment, in the default state prior to the start of the loop processing from steps S1401 to S1405, it is determined that none of the pixels is an edge pixel, and the determination that the pixel is not an edge pixel is the above loop processing. modified by In addition, since it is not determined that the pixel is not an edge pixel, once it is determined that the pixel is an edge pixel, the determination will not be reversed and the pixel will not be determined to be an edge pixel.

なお、明度差閾値Vth1は、光源311R、311Gおよび311Bの光量に応じた適切な値を、予め実験などで求めておく。また、当該画素が最初の走査ラインまたは最後の走査ラインの画素である場合には、副走査方向に隣り合う画素が1つしかなく、上記の条件式を充足することができないので、エッジ画素であるとは判定しない。 For the brightness difference threshold value Vth1, an appropriate value corresponding to the light amounts of the light sources 311R, 311G, and 311B is obtained in advance by experiment or the like. Also, if the pixel is on the first scanning line or the last scanning line, there is only one adjacent pixel in the sub-scanning direction, and the above conditional expression cannot be satisfied. I do not judge that there is.

更に、j-1番目の走査ライン上の画素Pj-1と、副走査方向において当該画素に隣接する画素Pj-2、Pjとの3つの画素がエッジ画素であると判定された後、j番目の走査ライン上の画素Pjと、副走査方向において当該画素に隣接するj+1番目の走査ライン上の画素Pj+1とが式(8)、(10)のいずれも充足しない場合、j番目の走査ライン上の画素Pjと、副走査方向において当該画素に隣接する画素Pj-1、Pj+1との3つの画素がエッジ画素であると判定されなかった場合、画素Pj+1はエッジ画素にはならないが、画素Pj-1、Pjがエッジ画素であるとの判定はそのまま維持する。 Furthermore, after determining that three pixels, that is, the pixel Pj-1 on the j-1th scanning line and the pixels Pj-2 and Pj adjacent to this pixel in the sub-scanning direction, are edge pixels, the j-th and the pixel Pj+1 on the j+1-th scanning line adjacent to the pixel in question in the sub-scanning direction do not satisfy the equations (8) and (10), the j-th scanning If the pixel Pj on the line and the pixels Pj-1 and Pj+1 adjacent to the pixel in the sub-scanning direction are not determined to be edge pixels, the pixel Pj+1 is not an edge pixel. However, the determination that the pixels Pj-1 and Pj are edge pixels is maintained.

例えば、図10(b)のE-E線上の画素の明度が、図10(c)のようになっている場合、隣接する画素との明度差の一方がD3、他方がD1であり、かつ上の条件式に当て嵌めた場合に明度差の符号が互いに異なっている場合には、中央の画素はエッジ画素ではないと判定される。 For example, when the brightness of pixels on line EE in FIG. 10B is as shown in FIG. If the signs of the lightness differences are different from each other when the above conditional expression is applied, it is determined that the center pixel is not an edge pixel.

また、一方の明度差がD2で、他方の明度差が0である場合には、明度差0は明度差閾値Vth1よりも小さいので、これらの画素はエッジ画素ではないと判定される。さらに、中央の画素と両隣の画素との明度差がいずれもD3で、明度差D3が明度差閾値Vth1よりも大きく、かつ符号が一致している場合には、これらの画素はエッジ画素であると判定される。 Also, if one brightness difference is D2 and the other brightness difference is 0, the brightness difference 0 is smaller than the brightness difference threshold Vth1, so these pixels are determined not to be edge pixels. Furthermore, if the brightness difference between the center pixel and the pixels on both sides is D3, and if the brightness difference D3 is greater than the brightness difference threshold Vth1 and the signs match, these pixels are edge pixels. is determined.

従って、E-E線上では、矩形1002よりも外側の画素はエッジ画素であると判定される一方、矩形1002の内側の画素はエッジ画素ではないと判定される。また、F-F線上の画素はすべてエッジ画素であると判定される。
(1-5-6)明度判定処理(S708)
明度判定処理においては、明度画像の画素ごとに明度を所定の閾値と比較して、当該画素が明度の低い画素(以下、「低明度画素」という。)であるか否かを判定する。
Accordingly, on line EE, pixels outside the rectangle 1002 are determined to be edge pixels, while pixels inside the rectangle 1002 are determined not to be edge pixels. Also, all pixels on the FF line are determined to be edge pixels.
(1-5-6) Brightness determination process (S708)
In the brightness determination process, the brightness of each pixel of the brightness image is compared with a predetermined threshold to determine whether or not the pixel is a pixel with low brightness (hereinafter referred to as a "low brightness pixel").

図15に示すように、すべての画素について、ステップS1501からステップS1505までの処理を実行する。まず、当該画素の明度INが明度閾値Vth2未満である場合:
IN < Vth2 …(12)
には(S1502:YES)、当該画素は低明度画素であると判定する(S1503)。当該画素の明度が明度閾値Vth2以上である場合には(S1502:NO)、当該画素は低明度画素でないと判定する(S1504)。なお、低明度閾値Vth2は、すべての画素について、予め設定された共通の値を用いる。
As shown in FIG. 15, the processing from step S1501 to step S1505 is executed for all pixels. First, when the brightness IN of the pixel is less than the brightness threshold Vth2:
IN < Vth2 (12)
(S1502: YES), the pixel is determined to be a low brightness pixel (S1503). If the brightness of the pixel is equal to or higher than the brightness threshold value Vth2 (S1502: NO), it is determined that the pixel is not a low brightness pixel (S1504). As the low brightness threshold Vth2, a common value set in advance is used for all pixels.

原稿外では光源311R、311Gおよび311Bの出射光が反射されないので、原稿内よりも明度が低くなる。このため、明度判定処理によって所定レベルより明度が低い画素を抽出すれば、原稿外の画素を検出することができる。
(1-5-7)境界座標判定処理(S709)
境界座標特定処理においては、図16に示すように、明度画像の走査ライン毎にステップS1601からステップS1616までの処理を繰り返す。まず、走査ライン上の画素の番号を表す作業用変数iの値を1に初期化する(S1602)。なお、1走査ライン上の画素の総数はN個であるものとする。
Since the light emitted from the light sources 311R, 311G and 311B is not reflected outside the document, the brightness is lower than inside the document. Therefore, by extracting pixels whose lightness is lower than a predetermined level by lightness determination processing, it is possible to detect pixels outside the document.
(1-5-7) Boundary coordinate determination process (S709)
In the boundary coordinate specifying process, as shown in FIG. 16, the process from step S1601 to step S1616 is repeated for each scanning line of the brightness image. First, the value of a working variable i representing the pixel number on the scanning line is initialized to 1 (S1602). It is assumed that the total number of pixels on one scanning line is N.

i番目の画素が明度判定処理(S708)において低明度画素であると判定され(S1603:YES)、かつ副走査方向明度差検出処理(S707)においてエッジ画素であると判定された場合には(S1604:YES)、境界画素でないと判定して(S1605)、作業用変数iの値を1だけ増加させる(S1606)。作業用変数iの値が1走査ライン上の画素数N以下である場合には(S1607:YES)、ステップS1603へ進んで、上記の処理を繰り返す。 If the i-th pixel is determined to be a low brightness pixel in the brightness determination process (S708) (S1603: YES) and is determined to be an edge pixel in the sub-scanning direction brightness difference detection process (S707), ( S1604: YES), it is determined that it is not a boundary pixel (S1605), and the value of working variable i is incremented by 1 (S1606). If the value of the working variable i is equal to or less than the number of pixels N on one scanning line (S1607: YES), the process advances to step S1603 to repeat the above processing.

作業用変数iの値がNよりも大きい場合には(S1607:NO)、当該走査ライン上には境界画素であると判定される画素がないことになる。図10(b)のG-G線上の走査ラインがこの場合に該当する。この場合には、当該走査ラインに関する処理を終了して、ステップS1602に進み、次の走査ラインの処理を実行する。 If the value of the working variable i is greater than N (S1607: NO), there is no pixel on the scan line that is determined to be a boundary pixel. This case corresponds to the scanning line on line GG in FIG. 10(b). In this case, the processing for the scan line is terminated, and the process advances to step S1602 to execute processing for the next scan line.

i番目の画素が低明度画素でないと判定された場合や(S1603:NO)、エッジ画素でないと判定された場合には(S1604:NO)、当該i番目の画素は境界画素(以下、この画素を「左側の境界画素」という。)であると判定する(S1608)。図10(b)のH-H線上の走査ラインでは、画素1011が当該i番目の画素に該当する。1番目からi-1番目までの画素は矩形1002の外側にあるのに対して、画素1011は矩形1002の境界上にあるからである。 If it is determined that the i-th pixel is not a low-lightness pixel (S1603: NO) or if it is determined that it is not an edge pixel (S1604: NO), the i-th pixel is a boundary pixel (hereinafter referred to as this pixel is referred to as a "left boundary pixel") (S1608). In the scanning line on line HH in FIG. 10B, pixel 1011 corresponds to the i-th pixel. This is because the 1st to i−1th pixels are outside the rectangle 1002 while the pixel 1011 is on the boundary of the rectangle 1002 .

次に、作業用変数jの値をNに初期化する(S1609)。そして、j番目の画素が低明度画素であると判定され(S1610:YES)、かつエッジ画素であると判定された場合には(S1611:YES)、当該j番目の画素は境界画素でないと判定して(S1612)、作業用変数jの値を1だけ減少させる(S1613)。作業用変数jの値が作業用変数iの値よりも大きい場合には(S1614:YES)、ステップS1609へ進んで、上記の処理を繰り返す。 Next, the value of working variable j is initialized to N (S1609). If it is determined that the j-th pixel is a low-lightness pixel (S1610: YES) and that it is an edge pixel (S1611: YES), it is determined that the j-th pixel is not a boundary pixel. Then (S1612), the value of the working variable j is decremented by 1 (S1613). If the value of working variable j is greater than the value of working variable i (S1614: YES), the process advances to step S1609 to repeat the above processing.

作業用変数jの値が作業用変数iの値以下である場合(S1614:NO)、j番目の画素については、ステップS1602からステップS1608までにおいて既に処理済みであることから、当該走査ラインに関する処理は完了したと判断されるので、ステップS1602へ進んで、次の走査ラインの処理を実行する。 If the value of the working variable j is equal to or less than the value of the working variable i (S1614: NO), the j-th pixel has already been processed in steps S1602 to S1608. has been completed, the flow advances to step S1602 to process the next scan line.

j番目の画素が低明度画素でないと判定された場合や(S1610:NO)、エッジ画素でないと判定された場合には(S1611:NO)、当該j番目の画素は境界画素(以下、この画素を「右側の境界画素」という。)であると判定する(S1615)。図10(b)のH-H線上の走査ラインでは、画素1012が当該j番目の画素に該当する。N番目からj+1番目までの画素は矩形1002の外側にあるのに対して、画素1012は矩形1002の境界上にあるからである。 If it is determined that the j-th pixel is not a low-lightness pixel (S1610: NO) or if it is determined that it is not an edge pixel (S1611: NO), the j-th pixel is a boundary pixel (hereinafter referred to as this pixel is referred to as a "right boundary pixel") (S1615). In the scanning line on line HH in FIG. 10B, pixel 1012 corresponds to the j-th pixel. This is because the Nth to j+1th pixels are outside the rectangle 1002 , whereas the pixel 1012 is on the boundary of the rectangle 1002 .

このようにして、走査ライン上の原稿の両端に対応する2つの境界画素を特定したら、ステップS1602へ進んで、次の走査ラインの処理を実行する。 After identifying the two boundary pixels corresponding to both ends of the document on the scanning line in this way, the flow advances to step S1602 to process the next scanning line.

すべての走査ラインについて処理を完了したら、境界座標をスムージングする(S1617)。境界座標のスムージングは、例えば、以下のように重み付き平均値によって決定してもよい。n番目の走査ラインの左側の境界画素が当該走査ライン上の位置(左端から何番目の画素であるか)をL(n)で表し、同様に、スムージング後におけるn番目の走査ライン上の位置をSL(n)で表すと、
SL(n) = {L(n-2)+3×L(n-1)+8×L(n)+3×L(n+1)+L(n+2)}÷(1+3+8+3+1) …(13)
なお、原稿の上端や下端近くの境界画素について、副走査方向に隣接する5本の走査ラインの境界画素で重み付き平均値を算出することができない場合には、境界画素の個数を少なくして重み付き平均値を求めてもよい。
After completing the processing for all scanning lines, the boundary coordinates are smoothed (S1617). Boundary coordinate smoothing may be determined, for example, by a weighted average as follows. L(n) represents the position of the left boundary pixel of the n-th scanning line on the scanning line (the number of pixels from the left end), and similarly, the position on the n-th scanning line after smoothing. is represented by SL(n),
SL(n) = {L(n-2)+3*L(n-1)+8*L(n)+3*L(n+1)+L(n+2)}/(1+3+8+3+1) (13)
If it is not possible to calculate the weighted average value of the boundary pixels near the top or bottom of the document from five scanning lines adjacent to each other in the sub-scanning direction, the number of boundary pixels may be reduced. A weighted average may be determined.

例えば、原稿の上端の境界画素についてスムージング処理を実行する場合には、更に上の走査ラインには境界画素が無いので、次の走査ラインの境界画素の位置と更に次の走査ライン境界画素の位置を用いた重み付き平均値を、上端の境界画素のスムージング後の位置SV(1)としてもよい。また、重みの付け方が上記に限定されないのは言うまでもなく、必要に応じて重みの付け方を変更してもよい。
(1-5-8)イレース処理(S710)
イレース処理においては、図17に示すように、元の読み取り画像(カラー画像)のすべての走査ラインについてステップS1701からステップS1711までの処理を繰り返す。すなわち、走査ライン上での画素の位置を表す作業用変数iの値を1に初期化し(S1702)、i番目の画素が境界画素でなければ(S1703:NO)、当該i番目の画素は原稿外であると考えられるので、当該i番目の画素を白くする(S1704)。具体的には、当該画素のRGB各色の階調値をいずれも255にする。
For example, when the smoothing process is performed on the boundary pixels at the upper edge of the document, since there are no boundary pixels in the upper scanning line, the positions of the boundary pixels of the next scanning line and the positions of the boundary pixels of the further next scanning line are calculated. may be used as the smoothed position SV(1) of the top boundary pixel. Moreover, it goes without saying that the weighting method is not limited to the above, and the weighting method may be changed as necessary.
(1-5-8) Erase processing (S710)
In the erase process, as shown in FIG. 17, the process from step S1701 to step S1711 is repeated for all scanning lines of the original read image (color image). That is, the value of the working variable i representing the position of the pixel on the scanning line is initialized to 1 (S1702), and if the i-th pixel is not a boundary pixel (S1703: NO), the i-th pixel is Since it is considered to be outside, the i-th pixel is made white (S1704). Specifically, the gradation value of each color of RGB of the pixel is set to 255.

その後、作業用変数iの値を1だけ増加させて(S1705)、ステップS1703へ進み、i番目の画素が境界画素である場合には(S1703:YES)、原稿内に入ったと考えられるので、当該i番目の画素の階調値を変更することなく、作業用変数iの値を1だけ増加させる(S1706)。その後、i番目の画素が境界画素でなければ(S1707:NO)、依然、原稿内であると考えられるので、ステップS1706へ進む。 After that, the value of the working variable i is incremented by 1 (S1705), the process proceeds to step S1703, and if the i-th pixel is a boundary pixel (S1703: YES), it is considered that the pixel has entered the document. The value of the working variable i is increased by 1 without changing the gradation value of the i-th pixel (S1706). After that, if the i-th pixel is not a boundary pixel (S1707: NO), it is still considered to be within the document, so the process advances to step S1706.

i番目の画素が境界画素ならば(S1707:YES)、原稿外へ脱したと考えられるので、作業用変数iの値を1だけ増加させた後(S1708)、当該i番目の画素を白くする(S1709)。作業用変数iの値が走査ライン上の画素数Nよりも小さい場合には(S1710:YES)、ステップS1708へ進んで上記の処理を繰り返す。 If the i-th pixel is a boundary pixel (S1707: YES), it is considered that the pixel has escaped outside the document. (S1709). If the value of the working variable i is smaller than the number of pixels N on the scanning line (S1710: YES), the process advances to step S1708 to repeat the above processing.

作業用変数iの値がN以上になったら(S1710:NO)、走査ラインの端まで処理が完了したことになるので、次の走査ラインの処理を実行する。 When the value of the working variable i becomes equal to or greater than N (S1710: NO), it means that processing has been completed up to the end of the scanning line, and processing of the next scanning line is executed.

このようにすれば、原稿を1回読み取るだけで精度よく原稿フリーイレース処理を実行することができるので、原稿の読み取り時間を短縮して、ユーザーの利便性を向上させることができる。
[2]第2の実施の形態
次に、本発明の第2の実施の形態について説明する。本実施の形態に係る複合機1は上記第1の実施の形態に係る複合機1と概ね同様の構成を備える一方、上記第1の実施の形態において、原稿フリーイレース用シェーディング補正処理(S704)を行うのに代えて、本実施の形態においては、通常のシェーディング補正処理を実行するため、境界画素の判定の仕方が相違している。以下、主に相違点に着目して説明する。
In this way, the document-free erase process can be executed with high accuracy only by reading the document once, so that the document reading time can be shortened and the user's convenience can be improved.
[2] Second Embodiment Next, a second embodiment of the present invention will be described. The MFP 1 according to the present embodiment has substantially the same configuration as the MFP 1 according to the first embodiment. In this embodiment, instead of performing normal shading correction processing, the method of determining boundary pixels is different. The following description will focus mainly on the differences.

なお、本明細書においては、実施の形態どうしで共通する部材については共通の符号が付与されている。
(2-1)シェーディング補正処理
本実施の形態に係るシェーディング補正処理は、通常のシェーディング補正処理であって、図18に示すように、読み取り画像のすべての画素についてステップS1801からステップS1803までの処理を繰り返す。すなわち、以下の式を用いてRGB各色の画素値を補正する(S1802)。
In this specification, common reference numerals are assigned to members common to the embodiments.
(2-1) Shading Correction Processing The shading correction processing according to the present embodiment is normal shading correction processing, and as shown in FIG. repeat. That is, the pixel values of RGB colors are corrected using the following equations (S1802).

補正後の画素値 = シェーディング補正係数 ×補正前の画素値 …(14)
シェーディング補正係数は、予め画素ごとに算出されたものを用いる。
(2-2)副走査方向明度差検出処理
上述のように、本実施の形態においては、シェーディング補正処理において、光源311R、311Gおよび311Bの発光量に応じた光量補正係数を乗算しないので、明度画像は、図10(a)に例示するように、光源311R、311Gおよび311Bの出射光を反射する矩形1001で示す原稿内に縞状のパターンが現れるため、原稿内の画素はエッジ画素であると判定される。一方、原稿外には縞状のパターンは現れないので、原稿外の画素はエッジ画素ではないと判定される。
(2-3)境界座標判定処理
上記第1の実施の形態においては、原稿外の画素がエッジ画素であると判定されるのに対して、本実施の形態においては、原稿内の画素がエッジ画素であると判定される。このため、本実施の形態に係る境界座標判定処理においては、図19に示すように、低明度画素であって(S1903:YES、S1910:YES)、かつエッジ画素でない場合に(S1904:NO、S1911:NO)、境界画素でないと判定する(S1905、S1912)。
Pixel value after correction = shading correction coefficient x pixel value before correction (14)
A shading correction coefficient that is calculated for each pixel in advance is used.
(2-2) Sub-scanning Direction Brightness Difference Detection Processing As described above, in the present embodiment, in the shading correction processing, the light amount correction coefficients corresponding to the light emission amounts of the light sources 311R, 311G, and 311B are not multiplied. As illustrated in FIG. 10(a), the pixels in the document are edge pixels because a striped pattern appears in the document indicated by rectangles 1001 reflecting the light emitted from the light sources 311R, 311G and 311B. is determined. On the other hand, since no striped pattern appears outside the document, pixels outside the document are determined not to be edge pixels.
(2-3) Boundary Coordinate Determination Processing In the first embodiment, pixels outside the document are determined to be edge pixels. It is determined to be a pixel. For this reason, in the boundary coordinate determination processing according to the present embodiment, as shown in FIG. S1911: NO), it is determined that it is not a boundary pixel (S1905, S1912).

このような判定処理を行えば、上記第1の実施の形態と同様に、境界画素を特定することができる。従って、原稿を1回読み取るだけで精度よく原稿フリーイレース処理を実行することができるので、原稿の読み取り時間を短縮して、ユーザーの利便性を向上させることができる。
[3]変形例
以上、本発明を実施の形態に基づいて説明してきたが、本発明が上述の実施の形態に限定されないのは勿論であり、以下のような変形例を実施することができる。
(3-1)上記実施の形態に係る副走査方向明度差検出処理においては、明度差閾値Vth1を用いて、副走査方向に隣接する画素どうしの明度差の大小を判定する場合を例にとって説明したが、本発明がこれに限定されないのは言うまでもなく、これに代えて次のようにしてもよい。
By performing such determination processing, the boundary pixels can be identified as in the first embodiment. Therefore, since the document-free erase process can be executed with high accuracy only by reading the document once, it is possible to shorten the document reading time and improve the user's convenience.
[3] Modifications Although the present invention has been described above based on the embodiments, the present invention is of course not limited to the above-described embodiments, and the following modifications can be implemented. .
(3-1) In the sub-scanning direction brightness difference detection processing according to the above-described embodiment, an example will be described in which the magnitude of the brightness difference between adjacent pixels in the sub-scanning direction is determined using the brightness difference threshold value Vth1. However, it goes without saying that the present invention is not limited to this, and instead of this, the following may be done.

例えば、副走査方向に隣接する3つの画素のうち中央の画素の明度に光源311R、311Gおよび311Bの発光量を切り替えた場合の光量比を乗算した明度を基準にして判定を行ってもよい。具体的には、副走査方向に隣接する3つの画素の明度が、副走査方向に順にINj-1、INjおよびINj+1であって、光量比から予め算出される係数α、β(ただし、α>β>0)に対して、
INj × α > INj - INj+1 > INj × β …(15)
かつ
INj × α > INj - INj-1 > INj × β …(16)
のように、副走査方向における中央の画素の明度が両隣の画素の明度よりも明度閾値以上高くなっているか、または、
INj × α > INj+1 - INj > INj × β …(17)
かつ
INj × α > INj-1 - INj > INj × β …(18)
のように、副走査方向における中央の画素の明度が両隣の画素の明度よりも明度閾値以上低くなっている場合に、中央の画素はエッジ画素であると判定してもよい。
For example, the determination may be made based on the brightness obtained by multiplying the brightness of the central pixel among three pixels adjacent in the sub-scanning direction by the light amount ratio when the light emission amounts of the light sources 311R, 311G, and 311B are switched. Specifically, the brightness of three pixels adjacent in the sub-scanning direction is INj-1, INj, and INj+1 in order in the sub-scanning direction, and the coefficients α and β calculated in advance from the light amount ratio (however, α > β > 0),
INj×α>INj−INj+1>INj×β (15)
and INj × α > INj - INj-1 > INj × β (16)
, the brightness of the central pixel in the sub-scanning direction is higher than the brightness of the neighboring pixels by a brightness threshold or more, or
INj×α>INj+1−INj>INj×β (17)
and INj × α > INj-1 - INj > INj × β (18)
, the center pixel may be determined to be an edge pixel when the brightness of the center pixel in the sub-scanning direction is lower than the brightness of the adjacent pixels on both sides by a brightness threshold or more.

係数α、βは、例えば、
Ts = Tl × 70% …(19)
であって、かつ原稿上で明度が均一である場合、シェーディング補正処理後には、副走査方向に隣接する画素どうしで30%程度の明度差が発生すると想定される。このため、光源311R、311Gおよび311Bの発光量の切り替えに起因する明度差(エッジ)を検出するためには、
α = 0.4、β = 0.2 …(20)
と設定すればよい。
The coefficients α and β are, for example,
Ts = Tl x 70% (19)
In addition, if the brightness is uniform on the document, it is assumed that there will be a brightness difference of about 30% between adjacent pixels in the sub-scanning direction after the shading correction process. Therefore, in order to detect the brightness difference (edge) caused by switching the light emission amounts of the light sources 311R, 311G, and 311B,
α = 0.4, β = 0.2 (20)
should be set as

このようにすれば、原稿内部に存在したり、原稿境界で発生したりするような大きすぎるエッジなどを除外することができる。また原稿外に入射する不要光のレベルは、複合機1が設置される環境によってばらばらであるため、読み取った画素の明度レベルに係数を乗算することで、この設置環境によるばらつきの影響も軽減するのも有効である。 In this way, edges that are too large, such as those that exist inside the document or occur at the document boundary, can be excluded. In addition, since the level of unnecessary light incident outside the document varies depending on the environment in which the multifunction device 1 is installed, by multiplying the brightness level of the read pixel by a coefficient, the influence of this variation due to the installation environment can be reduced. is also valid.

更に、副走査方向に隣接する3つの画素のうち中央の画素が属する走査ラインを読み取る際の光源311R、311Gおよび311Bの発光量が多いか少ないかに応じて、条件式を選択するのが望ましく、このように条件式を選択すれば更に検出精度を上げることができる。 Furthermore, it is desirable to select the conditional expression according to whether the amount of light emitted from the light sources 311R, 311G, and 311B is large or small when reading the scanning line to which the central pixel among the three pixels adjacent in the sub-scanning direction belongs. , the detection accuracy can be further improved by selecting the conditional expression in this way.

例えば、上記第1の実施の形態においては、中央の画素が属する走査ラインを読み取る際の光源311R、311Gおよび311Bの発光量が多い場合に条件式(8)、(9)のみを用いることにすれば、原稿画像自体の明度によって条件式(10)、(11)が充足され、誤ってエッジ画素と判定されるのを防止することができる。 For example, in the first embodiment, only conditional expressions (8) and (9) are used when the amount of light emitted from the light sources 311R, 311G, and 311B when reading the scanning line to which the central pixel belongs is large. Then, conditional expressions (10) and (11) are satisfied by the lightness of the document image itself, and erroneous determination as an edge pixel can be prevented.

同様に、中央の画素が属する走査ラインを読み取る際の光源311R、311Gおよび311Bの発光量が少ない場合に条件式(10)、(11)のみを用いればエッジ画素の検出精度を向上させることができる。
(3-2)上記第1の実施の形態においては、原稿フリーイレース用読み取り処理(S703)の後であって、かつ明度生成処理(S705)の前に原稿フリーイレース用シェーディング補正処理(S704)を実行する場合を例にとって説明したが、本発明がこれに限定されないのは言うまでもなく、これに代えて次のようにしてもよい。
Similarly, when the amount of light emitted from the light sources 311R, 311G, and 311B when reading the scanning line to which the central pixel belongs is small, edge pixel detection accuracy can be improved by using only conditional expressions (10) and (11). can.
(3-2) In the first embodiment, the shading correction process for document free erase (S704) is performed after the reading process for document free erase (S703) and before the brightness generation process (S705). has been described as an example, but the present invention is not limited to this, and the following alternatives may be used.

例えば、原稿フリーイレース用読み取り処理(S703)の後であって、かつ明度生成処理(S705)の前には、光源311R、311Gおよび311Bの発光量の切り替え分の補正処理のみを実行し、境界座標判定処理(S709)の後であって、かつイレース処理(S710)の前に通常のシェーディング補正処理を実行してもよい。 For example, after the document free erase reading process (S703) and before the brightness generation process (S705), only the correction process for switching the light emission amounts of the light sources 311R, 311G, and 311B is executed, and the boundary A normal shading correction process may be executed after the coordinate determination process (S709) and before the erase process (S710).

この場合において、光源311R、311Gおよび311Bの発光量の切り替え分の補正処理においては、すべての走査ラインについて、第1の実施の形態に係るS1102と同様に、当該走査ラインを読み取る際の点灯期間の長さに応じて光量補正係数を設定する。光量補正係数は、当該走査ラインを読み取った際の点灯信号の点灯期間がTlである場合には、
光量補正係数 = T1 / Tl = 1 …(21)
であり、当該点灯期間がTsである場合には、
光量補正係数 = T1 / Ts …(22)
である。
In this case, in the correction processing for switching the light emission amounts of the light sources 311R, 311G, and 311B, for all scanning lines, similarly to S1102 according to the first embodiment, the lighting period when reading the scanning line is Set the light amount correction coefficient according to the length of If the lighting period of the lighting signal when reading the scanning line is Tl, the light intensity correction coefficient is
Light intensity correction coefficient = T1/Tl = 1 (21)
and when the lighting period is Ts,
Light intensity correction coefficient = T1/Ts (22)
is.

次に、当該走査ラインのすべての画素について以下の式を用いて画素値を補正する。 Next, the pixel values of all the pixels in the scan line are corrected using the following formula.

補正後の画素値 =光量補正係数 × 補正前の画素値 …(23)
このようにしても、同様の本発明の効果を得ることができる。
(3-3)上記第2の実施の形態においては、原稿フリーイレース用読み取り処理(S703)の後であって、かつ明度生成処理(S705)の前に原稿フリーイレース用シェーディング補正処理(S704)を実行する場合を例にとって説明したが、本発明がこれに限定されないのは言うまでもなく、これに代えて次のようにしてもよい。例えば、境界座標判定処理(S709)の後であって、かつイレース処理(S710)の前に通常のシェーディング補正処理を実行してもよい。
Pixel value after correction = light amount correction coefficient x pixel value before correction (23)
Even in this way, the same effect of the present invention can be obtained.
(3-3) In the second embodiment, the shading correction process for document-free erase (S704) is performed after the reading process for document-free erase (S703) and before the brightness generation process (S705). has been described as an example, but the present invention is not limited to this, and the following alternatives may be used. For example, normal shading correction processing may be executed after the boundary coordinate determination processing (S709) and before the erase processing (S710).

このようにしても、最終的に生成される読み取り画像のシェーディングを補正することができる。なお、上記第2の実施の形態のようにすれば、境界画素を検出するための処理に対するシェーディングの影響を軽減することができるという意味で有効である。
(3-4)上記実施の形態においては、光源311R、311Gおよび311Bすべての発光量を切り替える場合を例にとって説明したが、本発明がこれに限定されないのは言うまでもなく、これに代えて光源311R、311Gおよび311Bの一部の発光量のみを切り替えることにして、他の光源については発光量を一定に維持してもよい。
Also in this way, the shading of the finally generated read image can be corrected. It should be noted that the above-described second embodiment is effective in that the influence of shading on the processing for detecting boundary pixels can be reduced.
(3-4) In the above embodiment, the case where the light emission amounts of all the light sources 311R, 311G and 311B are switched has been described as an example. , 311G and 311B may be switched, and the other light sources may be kept constant.

例えば、図20に示すように、光源311Gの発光量のみを切り替えて、光源311R、311Bの発光量を一定に維持してもよい。G色の発光量だけを切り替えれば、他の光色の発光量を切り替える場合と比較して、発光量の切り替えの読み取り画像の画質への影響が視認し難くなるので、読み取り画質の低下を抑制できるという意味において好適である。 For example, as shown in FIG. 20, only the light emission amount of the light source 311G may be switched to keep the light emission amounts of the light sources 311R and 311B constant. By switching only the light emission amount of G color, compared with the case of switching the light emission amount of other light colors, it becomes difficult to visually recognize the influence of the light emission amount switching on the image quality of the read image, thereby suppressing deterioration of the read image quality. It is suitable in the sense that it is possible.

光源311R、311Gおよび311Bの発光量を少なくすると、読み取り画像においてノイズ感が若干悪化する場合がある。このような問題に対して、発光量を切り替える光源を少なくすれば、読み取り画像の画質低下を抑制することができる。
(3-5)上記実施の形態においては、原稿からカラー画像を読み取る場合を例にとって説明したが、本発明がこれに限定されないのは言うまでもなく、モノクロ画像を読み取る画像読み取り装置に本発明を適用しても同様の効果を得ることができる。
(3-6)上記実施の形態においては、読み取りユニット301が1ラインCISである場合を例にとって説明したが、本発明がこれに限定されないのは言うまでもなく、これに代えて、3ラインCISを用いてもよいし、CCD(Charge Coupled Device)を用いてもよい。本発明は、読み取りユニット301の構成の如何に関わらず同様の効果を奏することができる。
(3-7)上記実施の形態においては、光源311R、311Gおよび311Bの発光量を1走査ライン毎に切り替える場合を例にとって説明したが、本発明がこれに限定されないのは言うまでもなく、これに代えて、例えば、2走査ライン毎に切り替えたり、1走査ライン毎の切り替えと2走査ライン毎の切り替えとを交互に切り換えたりしてもよい。
If the amount of light emitted from the light sources 311R, 311G, and 311B is reduced, the sense of noise in the read image may deteriorate slightly. To address such a problem, if the number of light sources for switching the amount of emitted light is reduced, it is possible to suppress deterioration in the image quality of the read image.
(3-5) In the above embodiments, the case where a color image is read from a document has been described as an example, but the present invention is not limited to this, and the present invention is applied to an image reading apparatus that reads a monochrome image. The same effect can be obtained even if
(3-6) In the above embodiment, the reading unit 301 is a 1-line CIS. Alternatively, a CCD (Charge Coupled Device) may be used. The present invention can achieve similar effects regardless of the configuration of the reading unit 301 .
(3-7) In the above embodiment, the case where the light emission amounts of the light sources 311R, 311G and 311B are switched for each scanning line has been described as an example. Alternatively, for example, switching may be performed every two scanning lines, or switching may be performed alternately between switching every one scanning line and switching every two scanning lines.

また、発光量の切り替えパターンは周期的な切り替えには限定されず、非周期的に切り替えてもよい。例えば、1走査ライン毎の切り替えと2走査ライン毎の切り替えとが非周期的に表れるパターンで切り替えてもよい。 Moreover, the switching pattern of the light emission amount is not limited to periodic switching, and may be switched aperiodically. For example, the switching may be performed in a pattern in which the switching every one scanning line and the switching every two scanning lines appear aperiodically.

切り替えパターンの如何に関わらず、切り替えパターンに応じた明度差を有する画素をエッジ画素と判定することができれば、本発明の効果を得ることができる。 Regardless of the switching pattern, if a pixel having a brightness difference corresponding to the switching pattern can be determined as an edge pixel, the effect of the present invention can be obtained.

なお、光源311R、311Gおよび311Bの発光量をM本の走査ライン毎に切り替える場合には、
副走査方向に隣接する3M個の画素の明度が、副走査方向に順にIN1、…、IN3Mであって、明度差閾値Vth1に対して、1≦j≦M-1、M+1≦j≦2M-1、2M+1≦j≦3M-1に対して、
INj - INj+1 < Vth1 …(24)
かつ、
INM+1 - INM > Vth1 …(25)
かつ、
IN2M - IN2M+1 > Vth1 …(26)
のように、副走査方向における中央の画素の明度が両隣の画素の明度よりも明度閾値以上高くなっているか、または、式(25)、(26)に代えて、
INM - INM+1 > Vth1 …(27)
かつ
IN2M+1 - IN2M > Vth1 …(28)
のように、副走査方向における中央の画素の明度が両隣の画素の明度よりも明度閾値以上低くなっている場合に、これら3M個の画素はエッジ画素であると判定してもよい。また、他の判定方法を用いてもよいことは言うまでもない。
(3-8)上記実施の形態においては、光源311R、311Gおよび311Bの発光量を2段階で切り替える場合を例にとって説明したが、本発明がこれに限定されないのは言うまでもなく、光源の発光量を3段階以上に切り替えてもよい。
Note that when switching the light emission amounts of the light sources 311R, 311G, and 311B every M scanning lines,
The brightness of 3M pixels adjacent in the sub-scanning direction is IN1, . For 1, 2M+1≤j≤3M-1,
INj-INj+1<Vth1 (24)
And,
INM+1 - INM > Vth1 (25)
And,
IN2M - IN2M+1 > Vth1 (26)
, the brightness of the center pixel in the sub-scanning direction is higher than the brightness of the pixels on both sides by the brightness threshold or more, or instead of equations (25) and (26),
INM-INM+1 > Vth1 (27)
and IN2M+1 - IN2M > Vth1 (28)
, when the brightness of the central pixel in the sub-scanning direction is lower than the brightness of the pixels on both sides by a brightness threshold or more, these 3M pixels may be determined to be edge pixels. Also, it goes without saying that other determination methods may be used.
(3-8) In the above embodiment, an example of switching the light emission amount of the light sources 311R, 311G, and 311B in two steps was explained, but it goes without saying that the present invention is not limited to this. may be switched in three or more steps.

また、上記実施の形態においては、点灯信号における発光期間の長短によって光源の発光量を切り替える場合を例にとって説明したが、本発明がこれに限定されないのは言うまでもなく、点灯信号が電圧信号である場合には電圧の切り替えによって、点灯信号が電流信号である場合には電流量の切り替えによって、光源の発光量を切り替えてもよい。 Further, in the above embodiment, the case where the light emission amount of the light source is switched according to the length of the light emission period of the lighting signal has been described as an example, but it goes without saying that the present invention is not limited to this, and the lighting signal is a voltage signal. In some cases, the amount of light emitted from the light source may be switched by switching the voltage, or by switching the amount of current when the lighting signal is a current signal.

また、光源311R、311Gおよび311Bと導光体312との間にシャッターを設けて、光源311R、311Gまたは311Bを選択的に点灯したまま当該シャッターを開閉することによって原稿の読み取り対象面を照明する期間を制御することによって、照明光量を切り替えても同様の効果を得ることができる。
(3-9)上記実施の形態においては、読み取り画像がRGB各色で256階調である場合を例にとって説明したが、本発明がこれに限定されないのは言うまでもなく、階調数は256階調以外であってもよい。また、光源の光色はRGB以外であってもよいし、光色の種類は4種類以上であってもよく、階調数や光源の光色、光色の種類の数に関わらず、本発明を適用することによって同様の効果を得ることができる。
(3-10)上記実施の形態においては、画像読み取り部100が複合機1に搭載されている場合を例にとって説明したが、本発明がこれに限定されないのは言うまでもなく、複合機1に代えて、ファクシミリ装置や複写装置といった単機能機に搭載してもよい。また、他の装置の一部ではない単体の画像読み取り装置に本発明を適用しても同様の効果を得ることができる。
(3-11)上記実施の形態においては、画像読み取り部100が原稿カバー102を備えており、プラテンセット方式のみで原稿から画像を読み取る場合を例にとって説明したが、本発明がこれに限定されないのは言うまでもなく、図21に示すように、原稿カバー102を兼ねた自動原稿搬送装置(ADF: Automatic Document Feeder)2101を備え、プラテンセット方式に加えてシートスルー方式によっても原稿から画像を読み取ってもよい。自動原稿搬送装置2101を備えた画像読み取り部100に対しても、本発明を適用することができ、同様の効果を得ることができる。
Further, a shutter is provided between the light sources 311R, 311G and 311B and the light guide member 312, and the surface of the document to be read is illuminated by opening and closing the shutter while selectively lighting the light sources 311R, 311G and 311B. By controlling the period, a similar effect can be obtained even if the amount of illumination light is switched.
(3-9) In the above embodiment, the case where the read image has 256 gradations for each color of RGB has been described as an example, but it goes without saying that the present invention is not limited to this, and the number of gradations is 256 gradations. It may be other than In addition, the light color of the light source may be other than RGB, and the number of types of light colors may be four or more. A similar effect can be obtained by applying the invention.
(3-10) In the above embodiment, the case where the image reading unit 100 is installed in the multifunction machine 1 has been described as an example. Alternatively, it may be installed in a single-function machine such as a facsimile machine or a copier. Also, the same effect can be obtained by applying the present invention to a single image reading device that is not part of another device.
(3-11) In the above embodiment, the image reading unit 100 includes the document cover 102, and the case where the image is read from the document only by the platen setting method has been described as an example, but the present invention is not limited to this. Needless to say, as shown in FIG. 21, an automatic document feeder (ADF) 2101 that also serves as a document cover 102 is provided, and an image can be read from the document by the sheet-through method in addition to the platen setting method. good too. The present invention can also be applied to the image reading unit 100 having the automatic document feeder 2101, and similar effects can be obtained.

本発明に係る画像読み取り装置および画像形成装置は、高速かつ高精度にフリーイレース処理を実行する装置として有用である。 INDUSTRIAL APPLICABILITY The image reading device and image forming device according to the present invention are useful as devices that perform free erase processing at high speed and with high accuracy.

1……………………………………複合機
100………………………………画像読み取り部
110………………………………画像形成部
120………………………………給紙部
101………………………………本体部
102………………………………原稿カバー
201………………………………プラテンガラス
203………………………………制御部
301………………………………読み取りユニット
311R、311G、311B…光源
1 ……………………Multifunction machine 100 ………………Image reading unit 110 ………………Image forming unit 120 .................Paper supply unit 101 ..................Main unit 102 ..Document cover 201 .................. ……………… Platen glass 203 ……………… Control unit 301 ……………………………… Reading units 311R, 311G, 311B … Light source

Claims (12)

原稿を載置する透光性の原稿載置台と、
前記原稿載置台を覆う開閉可能なカバーと、
前記原稿載置台に載置された原稿に向けて光を照射する光源と、
前記カバーを開いた状態で原稿を読み取る際に、副走査方向に沿った所定の切り替えパターンに従って、走査ラインを単位として前記光源からの光の照射光量を切り替える光量制御手段と、
原稿からの反射光量を含む入射光量を画素毎に検出する原稿読み取り手段と、
前記入射光量の検出値を、前記照射光量の切り替えパターンに対応して補正する補正手段と、
前記補正手段による補正の結果、副走査方向に連続する画素群であって、前記照射光量の切り替えパターンに対応して、前記補正後の検出値が副走査方向に沿って変動する画素群が存在した場合、当該画素群に含まれる画素をエッジ画素として検出するエッジ画素検出手段と、
前記エッジ画素が原稿の外部となるように、原稿の境界を特定する境界特定手段と、を備える
ことを特徴とする画像読み取り装置。
a translucent document placement table for placing the document;
a cover that can be opened and closed to cover the document table;
a light source that emits light toward the document placed on the document table;
light amount control means for switching the irradiation light amount of the light from the light source in units of scanning lines according to a predetermined switching pattern along the sub-scanning direction when reading a document with the cover open;
document reading means for detecting the amount of incident light including the amount of reflected light from the document for each pixel;
a correction means for correcting the detected value of the amount of incident light in accordance with the switching pattern of the amount of irradiation light;
As a result of the correction by the correcting means, there is a group of pixels that are continuous in the sub-scanning direction and in which the detected value after the correction varies along the sub-scanning direction in accordance with the switching pattern of the amount of irradiation light. edge pixel detection means for detecting pixels included in the pixel group as edge pixels;
and boundary identifying means for identifying a boundary of the document so that the edge pixels are located outside the document.
反射光量が所定光量よりも少ない低明度画素を検出する低明度画素検出手段を備え、
前記境界特定手段は、エッジ画素であっても、低明度画素でなければ、原稿の外部に代えて、内部になるように原稿の境界を特定する
ことを特徴とする請求項1に記載の画像読み取り装置。
Low-lightness pixel detection means for detecting low-lightness pixels whose reflected light amount is less than a predetermined light amount,
2. The image according to claim 1, wherein said boundary identifying means identifies the boundary of the document such that even if it is an edge pixel but not a low-lightness pixel, it is located inside the document instead of outside the document. reader.
前記補正手段は、シェーディング補正を兼ねる
ことを特徴とする請求項1または2に記載の画像読み取り装置。
3. The image reading apparatus according to claim 1, wherein said correction means also performs shading correction.
原稿を載置する原稿載置台と、
前記原稿載置台を覆う開閉可能なカバーと、
前記原稿載置台に載置された原稿に光を照射する光源と、
前記カバーを開いた状態で原稿を読み取る際に、副走査方向に沿った所定の切り替えパターンに従って、走査ラインを単位として前記光源からの光の照射光量を切り替える光量制御手段と、
原稿からの反射光量を画素毎に検出する原稿読み取り手段と、
前記反射光量の検出値が、前記照射光量の切り替えパターンに対応するエッジ画素を検出するエッジ画素検出手段と、
前記エッジ画素でない画素が原稿の外部となるように、原稿の境界を特定する境界特定手段と、を備える
ことを特徴とする画像読み取り装置。
a manuscript placing table for placing a manuscript;
a cover that can be opened and closed to cover the document table;
a light source for irradiating the document placed on the document table;
light amount control means for switching the irradiation light amount of the light from the light source in units of scanning lines according to a predetermined switching pattern along the sub-scanning direction when reading a document with the cover open;
document reading means for detecting the amount of reflected light from the document for each pixel;
edge pixel detection means for detecting an edge pixel corresponding to the switching pattern of the irradiation light amount, the detection value of the reflected light amount;
an image reading apparatus, comprising: a boundary identifying unit that identifies a boundary of a document so that the pixels other than the edge pixels are located outside the document.
反射光量が所定光量よりも少ない低明度画素を検出する低明度画素検出手段を備え、
前記境界特定手段は、更に、エッジ画素でなくても、低明度画素でなければ原稿の内部となるように、原稿の境界を特定する
ことを特徴とする請求項4に記載の画像読み取り装置。
Low-lightness pixel detection means for detecting low-lightness pixels whose reflected light amount is less than a predetermined light amount,
5. The image reading apparatus according to claim 4, wherein said boundary identifying means further identifies the boundary of the document such that even if the pixel is not an edge pixel, it is located inside the document unless the pixel is a low-brightness pixel.
前記光量制御手段は、副走査方向に沿って周期的に前記照射光量を切り替える
ことを特徴とする請求項1から5のいずれかに記載の画像読み取り装置。
6. The image reading apparatus according to claim 1, wherein said light amount control means periodically switches said irradiation light amount along the sub-scanning direction.
前記光量制御手段は、大小2種類の前記照射光量を前記走査ライン毎に切り替える
ことを特徴とする請求項1から6のいずれかに記載の画像読み取り装置。
7. The image reading apparatus according to claim 1, wherein said light amount control means switches between two types of irradiation light amounts, large and small, for each scanning line.
前記反射光量の検出値を主走査方向に沿ってスムージングするスムージング手段を備え、
前記エッジ画素検出手段は、スムージングされた検出値を用いてエッジ画素を検出する
ことを特徴とする請求項1から7のいずれかに記載の画像読み取り装置。
Smoothing means for smoothing the detected value of the amount of reflected light along the main scanning direction,
8. The image reading apparatus according to claim 1, wherein said edge pixel detection means detects edge pixels using smoothed detection values.
前記光源は、互いに光色が異なる複数の部分光源からなり、
前記光量制御手段は、前記複数の部分光源のうちの一部の光源についてのみ、前記照射光量を切り替える
ことを特徴とする請求項1から8のいずれかに記載の画像読み取り装置。
the light source comprises a plurality of partial light sources having different light colors;
9. The image reading apparatus according to claim 1, wherein said light amount control means switches said irradiation light amount only for some of said plurality of partial light sources.
前記エッジ画素検出手段は、副走査方向に隣り合う画素どうしの前記反射光量の検出値の差が、所定の範囲内の値を採るか否かを判定することによって、画素を検出する
ことを特徴とする請求項1から9のいずれかに記載の画像読み取り装置。
The edge pixel detection means detects a pixel by determining whether a difference in the detected amount of reflected light between adjacent pixels in the sub-scanning direction is within a predetermined range. 10. The image reading device according to any one of claims 1 to 9.
前記所定の範囲は、前記照射光量の切り替えパターンに対応した値によって指定される
ことを特徴とする請求項10に記載の画像読み取り装置。
11. The image reading device according to claim 10, wherein the predetermined range is designated by a value corresponding to the switching pattern of the irradiation light amount.
請求項1から11のいずれかに記載の画像読み取り装置を備える
ことを特徴とする画像形成装置。
An image forming apparatus comprising the image reading apparatus according to claim 1 .
JP2018137145A 2018-07-20 2018-07-20 Image reading device and image forming device Active JP7155706B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018137145A JP7155706B2 (en) 2018-07-20 2018-07-20 Image reading device and image forming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018137145A JP7155706B2 (en) 2018-07-20 2018-07-20 Image reading device and image forming device

Publications (2)

Publication Number Publication Date
JP2020014181A JP2020014181A (en) 2020-01-23
JP7155706B2 true JP7155706B2 (en) 2022-10-19

Family

ID=69170111

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018137145A Active JP7155706B2 (en) 2018-07-20 2018-07-20 Image reading device and image forming device

Country Status (1)

Country Link
JP (1) JP7155706B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011217339A (en) 2009-08-19 2011-10-27 Canon Electronics Inc Image reading apparatus, method of controlling the same, and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007028413A (en) * 2005-07-20 2007-02-01 Matsushita Electric Ind Co Ltd Image reader and image forming apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011217339A (en) 2009-08-19 2011-10-27 Canon Electronics Inc Image reading apparatus, method of controlling the same, and program

Also Published As

Publication number Publication date
JP2020014181A (en) 2020-01-23

Similar Documents

Publication Publication Date Title
JP4512668B1 (en) Image reading apparatus, image forming apparatus, image reading method, image forming method, program for executing image reading method, and program for executing image forming method
JP4568773B2 (en) Document reading apparatus and image forming apparatus
US5764380A (en) Original-detection method and device, and original-processing device having an original-detection function
US8730535B2 (en) Image processing apparatus, method of imaging processing and storage medium
US10356269B2 (en) Image reading apparatus and original size detection method
US8928961B2 (en) Image reading device, image forming apparatus therewith, and method of controlling an image reading device
US9571693B2 (en) Image processing apparatus, image processing method, and program
JP7155706B2 (en) Image reading device and image forming device
US7064872B1 (en) Exposure control for a CCD scanner
US6967605B2 (en) Image reading apparatus and method of determining gain value and offset value for image reading apparatus
US9485380B2 (en) Image reading apparatus, image forming apparatus and computer readable medium storing program
JP2010141857A (en) Original reading apparatus and image forming apparatus using the same
US9197787B2 (en) Image reading device, image forming apparatus, and image reading method
JP2002262035A (en) Image reader
JP5738157B2 (en) Image reading apparatus, image forming apparatus, and image reading method
JP2019193004A (en) Image forming apparatus
US10530968B2 (en) Image reading apparatus and image reading method
JP3128872B2 (en) Image editing device
JP4035489B2 (en) Background removal device, background removal method, background removal program, and recording medium
JP2005051565A (en) Image reading apparatus and image reading method
JP2006262401A (en) Surface level detecting apparatus
JP3551626B2 (en) Image forming device
JP4247889B2 (en) Image processing device
JP3155789B2 (en) Image forming device
JP6159655B2 (en) Image reading apparatus and image forming apparatus having the same

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210618

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220308

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220502

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220919

R150 Certificate of patent or registration of utility model

Ref document number: 7155706

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150