JP2022040985A - Image reading device, image forming apparatus, image processing method, and program - Google Patents

Image reading device, image forming apparatus, image processing method, and program Download PDF

Info

Publication number
JP2022040985A
JP2022040985A JP2020145971A JP2020145971A JP2022040985A JP 2022040985 A JP2022040985 A JP 2022040985A JP 2020145971 A JP2020145971 A JP 2020145971A JP 2020145971 A JP2020145971 A JP 2020145971A JP 2022040985 A JP2022040985 A JP 2022040985A
Authority
JP
Japan
Prior art keywords
image
image reading
unit
pixel
threshold value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2020145971A
Other languages
Japanese (ja)
Inventor
博敏 多川
Hirotoshi Tagawa
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions 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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2020145971A priority Critical patent/JP2022040985A/en
Publication of JP2022040985A publication Critical patent/JP2022040985A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide an image reading device, an image forming apparatus, an image processing method, and a program with which the accuracy of determination of an abnormal pixel is hardly reduced.SOLUTION: An image reading device 10A comprises: an image reading unit; a color reference member 51A; and a determination unit. The image reading unit reads an image of a sheet conveyed through a conveyance path R1. The color reference member 51A is arranged opposite to the image reading unit with the conveyance path R1 therebetween. The determination unit determines an abnormal pixel based on a result of comparison between the density value of every pixel and a determination threshold for a plurality of images of the color reference member 51A read by the image reading unit at a plurality of timings different in the position of the color reference member 51A opposite to the image reading unit.SELECTED DRAWING: Figure 13

Description

本発明は、画像読取装置、画像形成装置、画像処理方法及びプログラムに関する。 The present invention relates to an image reader, an image forming apparatus, an image processing method and a program.

関連技術として、異物に起因する筋状の画像を除去又は低減することのできる画像読取装置が知られている(例えば、特許文献1参照)。シートスルー読み取り方式の読取動作が行われる場合、コンタクトガラスに、ゴミ、塵埃又は搬送されるシートの紙粉等の異物が付着していたり、傷又は汚れがついていたりする場合がある。この場合に、読み取った画像には副走査方向へ延びる比較的濃度の濃い筋状の画像が現れることがあり、関連技術に係る画像読取装置では、このような筋状の画像を除去又は低減可能とする。 As a related technique, an image reader capable of removing or reducing streaky images caused by foreign substances is known (see, for example, Patent Document 1). When the sheet-through reading method is performed, foreign matter such as dust, dust, or paper dust on the sheet to be transported may be attached to the contact glass, or scratches or stains may be attached to the contact glass. In this case, a relatively dense streak image extending in the sub-scanning direction may appear in the scanned image, and the image reading device according to the related technique can remove or reduce such a streak image. And.

関連技術に係る画像読取装置は、搬送されるシートの画像を読取可能な画像読取部と、濃度算出部と、閾値決定部と、判定部と、画像処理部と、を備える。濃度算出部は、シートの読み取り前に、画像読取部で色基準部材より読み取られた第2読取画像について濃度値ごとの画素数を示すヒストグラムを作成し、ヒストグラムに基づいて第2閾値を決定する。判定部は、第2読取画像の各画素のうち第2閾値より濃度が濃い濃度値の画素を、異常を示す第2異常画素と判定する。 An image reading device according to a related technique includes an image reading unit capable of reading an image of a conveyed sheet, a density calculation unit, a threshold value determination unit, a determination unit, and an image processing unit. Before reading the sheet, the density calculation unit creates a histogram showing the number of pixels for each density value for the second scanned image read from the color reference member by the image reading unit, and determines the second threshold value based on the histogram. .. The determination unit determines that among the pixels of the second scanned image, the pixel having a density value higher than the second threshold value is the second abnormal pixel indicating an abnormality.

さらに、関連技術では、濃度算出部は、画像読取部でシートより読み取られた第1読取画像のうち、シートの余白領域に対応する画像について濃度値ごとの画素数を示すヒストグラムを作成し、ヒストグラムに基づいて第1閾値を決定する。判定部は、第1読取画像の各画素のうち第1閾値より濃度が濃い濃度値の画素であって、第2異常画素と主走査方向の位置が一致する画素を、異常を示す第1異常画素と判定する。そして、画像処理部は、第1読取画像のうち、主走査方向の位置が(第1)異常画素と一致する画素の濃度値を補正する。 Further, in the related technology, the density calculation unit creates a histogram showing the number of pixels for each density value for the image corresponding to the margin area of the sheet among the first scanned images read from the sheet by the image reading unit. The first threshold value is determined based on. The determination unit is a pixel having a density value higher than the first threshold value among the pixels of the first scanned image, and the pixel whose position in the main scanning direction coincides with the second abnormal pixel is the first abnormality indicating an abnormality. Determined as a pixel. Then, the image processing unit corrects the density value of the pixel whose position in the main scanning direction coincides with the (first) abnormal pixel in the first scanned image.

特許第6344062号公報Japanese Patent No. 6344062

上記関連技術の構成では、色基準部材の異物、傷又は汚れ等を、コンタクトガラスの異物、傷又は汚れ等と誤検知することで、異常画素の判定精度が低下する場合がある。 In the configuration of the related technology, foreign matter, scratches, stains, etc. of the color reference member may be erroneously detected as foreign matter, scratches, stains, etc. of the contact glass, and the determination accuracy of the abnormal pixel may be lowered.

本発明の目的は、異常画素の判定精度が低下しにくい画像読取装置、画像形成装置、画像処理方法及びプログラムを提供することにある。 An object of the present invention is to provide an image reading device, an image forming device, an image processing method, and a program in which the determination accuracy of abnormal pixels is unlikely to decrease.

本発明の一の局面に係る画像読取装置は、画像読取部と、色基準部材と、判定部と、を備える。前記画像読取部は、搬送路を通して搬送されるシートの画像を読み取る。前記色基準部材は、前記画像読取部とは前記搬送路を挟んで対向するように配置される。前記判定部は、前記色基準部材の前記画像読取部との対向部位が異なる複数のタイミングにおいて前記画像読取部で読み取られる前記色基準部材の複数の画像についての、画素ごとの濃度値と判定閾値との比較結果に基づいて異常画素を判定する。 The image reading device according to one aspect of the present invention includes an image reading unit, a color reference member, and a determination unit. The image reading unit reads an image of a sheet transported through a transport path. The color reference member is arranged so as to face the image reading unit with the transport path interposed therebetween. The determination unit is a density value and a determination threshold value for each pixel of a plurality of images of the color reference member read by the image reading unit at a plurality of timings at which the portions of the color reference member facing the image reading unit are different. The abnormal pixel is determined based on the comparison result with.

本発明の他の局面に係る画像形成装置は、前記画像読取装置と、前記画像読取装置によって読み取られた前記シートの画像を別シートに形成する画像形成部と、を備える。 The image forming apparatus according to another aspect of the present invention includes the image reading device and an image forming unit that forms an image of the sheet read by the image reading device on another sheet.

本発明の他の局面に係る画像処理方法は、搬送路を通して搬送されるシートの画像を画像読取部で読み取ることと、前記画像読取部とは前記搬送路を挟んで対向するように配置される色基準部材の前記画像読取部との対向部位が異なる複数のタイミングにおいて前記画像読取部で読み取られる前記色基準部材の複数の画像についての、画素ごとの濃度値と判定閾値との比較結果に基づいて異常画素を判定することと、を有する。 In the image processing method according to another aspect of the present invention, the image of the sheet conveyed through the transport path is read by the image reading unit, and the image reading unit is arranged so as to face the image reading unit across the transport path. Based on the comparison result between the density value for each pixel and the determination threshold for a plurality of images of the color reference member read by the image reading unit at a plurality of timings at which the portions of the color reference member facing the image reading unit are different. To determine an abnormal pixel.

本発明の他の局面に係るプログラムは、搬送路を通して搬送されるシートの画像を画像読取部で読み取ることと、前記画像読取部とは前記搬送路を挟んで対向するように配置される色基準部材の前記画像読取部との対向部位が異なる複数のタイミングにおいて前記画像読取部で読み取られる前記色基準部材の複数の画像についての、画素ごとの濃度値と判定閾値との比較結果に基づいて異常画素を判定することと、を1以上のプロセッサーに実行させるためのプログラムである。 The program according to another aspect of the present invention reads an image of a sheet conveyed through a transport path by an image reading unit, and a color reference arranged so as to face the image reading unit with the transport path interposed therebetween. Abnormality based on the comparison result between the density value for each pixel and the determination threshold for a plurality of images of the color reference member read by the image reading unit at a plurality of timings at which the parts facing the image reading unit of the member are different. It is a program for determining a pixel and causing one or more processors to execute.

本発明によれば、異常画素の判定精度が低下しにくい画像読取装置、画像形成装置、画像処理方法及びプログラムを提供することができる。 According to the present invention, it is possible to provide an image reading device, an image forming device, an image processing method, and a program in which the determination accuracy of abnormal pixels is unlikely to decrease.

図1は、基本構成に係る画像形成装置の構成を示す模式図である。FIG. 1 is a schematic diagram showing a configuration of an image forming apparatus according to a basic configuration. 図2は、基本構成に係る画像読取装置の構成を示す模式図である。FIG. 2 is a schematic diagram showing a configuration of an image reader according to a basic configuration. 図3は、基本構成に係る画像読取装置の構成を示し、図2の領域Z1の拡大図である。FIG. 3 shows the configuration of the image reading device according to the basic configuration, and is an enlarged view of the region Z1 of FIG. 図4は、基本構成に係る画像形成装置の構成の一例を示すブロック図である。FIG. 4 is a block diagram showing an example of the configuration of the image forming apparatus according to the basic configuration. 図5は、シートが新聞紙である場合の余白領域の画像のヒストグラムの一例を示す図である。FIG. 5 is a diagram showing an example of a histogram of an image in a margin area when the sheet is newspaper. 図6は、基本構成に係る画像処理方法の一例を示すフローチャートである。FIG. 6 is a flowchart showing an example of an image processing method according to a basic configuration. 図7は、基本構成に係る画像読取装置による読取動作の一例を示す概念図である。FIG. 7 is a conceptual diagram showing an example of a reading operation by the image reading device according to the basic configuration. 図8は、色基準部材及び専用用紙の各々の画像のヒストグラムの一例を示す図である。FIG. 8 is a diagram showing an example of a histogram of each image of the color reference member and the special paper. 図9は、基本構成に係る画像読取装置による補正の一例を示す概略図である。FIG. 9 is a schematic view showing an example of correction by the image reader according to the basic configuration. 図10は、基本構成に係る画像読取装置による補正の一例を示す概略図である。FIG. 10 is a schematic view showing an example of correction by the image reader according to the basic configuration. 図11は、基本構成に係る画像読取装置による補正の一例を示す概略図である。FIG. 11 is a schematic view showing an example of correction by the image reader according to the basic configuration. 図12は、基本構成に係る画像読取装置の効果を示す概念図である。FIG. 12 is a conceptual diagram showing the effect of the image reading device according to the basic configuration. 図13は、実施形態に係る画像読取装置の構成を示し、図2の領域Z1の拡大図である。FIG. 13 shows the configuration of the image reading device according to the embodiment, and is an enlarged view of the area Z1 of FIG. 図14は、実施形態に係る画像処理方法の一例を示すフローチャートである。FIG. 14 is a flowchart showing an example of the image processing method according to the embodiment. 図15は、実施形態に係る画像読取装置による読取動作の一例を示す概念図である。FIG. 15 is a conceptual diagram showing an example of a reading operation by the image reading device according to the embodiment.

以下、添付図面を参照しながら、本発明の実施形態について説明する。以下の実施形態は、本発明を具体化した一例であって、本発明の技術的範囲を限定する趣旨ではない。 Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. The following embodiments are examples that embody the present invention, and are not intended to limit the technical scope of the present invention.

(基本構成)
[1]画像形成装置の概略構成
まず、本基本構成に係る画像形成装置1の概略構成について、図1~図4を参照して説明する。
(Basic configuration)
[1] Schematic configuration of the image forming apparatus First, the schematic configuration of the image forming apparatus 1 according to this basic configuration will be described with reference to FIGS. 1 to 4.

本基本構成では一例として、画像形成装置1は、画像を読み取るスキャン機能、画像データに基づいて画像を形成するプリント機能、ファクシミリ機能、及びコピー機能等の複数の機能を有する複合機である。画像形成装置1は、画像読取装置10と、画像形成部3と、を備える。つまり、本基本構成に係る画像読取装置10は、画像形成部3と共に画像形成装置1を構成する。 As an example in this basic configuration, the image forming apparatus 1 is a multifunction device having a plurality of functions such as a scanning function for reading an image, a printing function for forming an image based on image data, a facsimile function, and a copying function. The image forming apparatus 1 includes an image reading apparatus 10 and an image forming unit 3. That is, the image reading device 10 according to this basic configuration constitutes the image forming device 1 together with the image forming unit 3.

画像読取装置10は、シートSh1(図2参照)から画像を読み取る機能を有し、一例として、画像形成部3の上方に設置されている。画像形成部3は、画像読取装置10によって読み取られたシートSh1の画像を、別シートSh2(図1参照)に形成する機能を有する。画像読取装置10は、搬送路R1(図3参照)を通して搬送されるシートSh1の画像を読み取る画像読取部2(図2参照)を備えている。本基本構成では一例として、画像形成部3は、複数の給紙トレイ31、転写装置32及び定着装置33等を備え、画像読取装置10から出力される画像(画像データ)に基づいて、電子写真方式で別シートSh2に画像を形成する。画像形成部3は、画像読取装置10によって読み取られた画像に限らず、画像形成装置1の外部の情報処理装置等から入力される画像(画像データ)をシート(別シートSh2)に形成してもよい。また、画像形成部3は、例えば、インクジェット方式等、電子写真方式以外の画像形成方式により、シート(別シートSh2)に画像を形成する構成であってもよい。 The image reading device 10 has a function of reading an image from the sheet Sh1 (see FIG. 2), and is installed above the image forming unit 3 as an example. The image forming unit 3 has a function of forming an image of the sheet Sh1 read by the image reading device 10 on another sheet Sh2 (see FIG. 1). The image reading device 10 includes an image reading unit 2 (see FIG. 2) that reads an image of the sheet Sh1 conveyed through the transport path R1 (see FIG. 3). As an example in this basic configuration, the image forming unit 3 includes a plurality of paper feed trays 31, a transfer device 32, a fixing device 33, and the like, and is an electrograph based on an image (image data) output from the image reading device 10. An image is formed on another sheet Sh2 by the method. The image forming unit 3 forms not only the image read by the image reading device 10 but also an image (image data) input from an information processing device or the like outside the image forming device 1 on a sheet (separate sheet Sh2). May be good. Further, the image forming unit 3 may be configured to form an image on a sheet (separate sheet Sh2) by an image forming method other than the electrophotographic method such as an inkjet method.

画像読取装置10は、図2に示すように、装置本体4と、原稿カバー5と、を有する。原稿カバー5は、装置本体4の上方に配置されており、かつ、装置本体4に対して開閉(回転)可能に設けられている。原稿カバー5が「開」状態にあれば装置本体4の上面が露出し、原稿カバー5が「閉」状態にあれば装置本体4の上面が原稿カバー5で覆われる。そのため、原稿カバー5が開閉操作されることにより、装置本体4の上面が露出するか否かが切り替わる。原稿カバー5の開閉のための支持部(ヒンジ部)には、リミットスイッチ等のカバー開検出センサーが設けられている。そのため、例えば、ユーザーが原稿の画像を読み取らせようとして原稿カバー5が開かれると、カバー開検出センサーが作動して、その検出信号(カバー開検出信号)が後述する処理部6に出力される。 As shown in FIG. 2, the image reading device 10 has a device main body 4 and a document cover 5. The document cover 5 is arranged above the apparatus main body 4 and is provided so as to be openable / closable (rotatable) with respect to the apparatus main body 4. When the document cover 5 is in the "open" state, the upper surface of the apparatus main body 4 is exposed, and when the document cover 5 is in the "closed" state, the upper surface of the apparatus main body 4 is covered with the document cover 5. Therefore, by opening and closing the document cover 5, it is switched whether or not the upper surface of the apparatus main body 4 is exposed. A cover open detection sensor such as a limit switch is provided on a support portion (hinge portion) for opening and closing the document cover 5. Therefore, for example, when the document cover 5 is opened in an attempt to read the image of the document by the user, the cover open detection sensor is activated and the detection signal (cover open detection signal) is output to the processing unit 6 described later. ..

画像読取装置10の装置本体4は、第1コンタクトガラス41、第2コンタクトガラス42、画像読取部2及び処理部6等を有している。第1コンタクトガラス41及び第2コンタクトガラス42は、装置本体4の上面の一部を構成する。これにより、第1コンタクトガラス41及び第2コンタクトガラス42を通して、装置本体4の上面側(上方)からの光を装置本体4内に取り込むことが可能である。第1コンタクトガラス41には、読み取り対象の原稿(シートSh1)が載置される。第2コンタクトガラス42については後述する。画像読取部2は、第1コンタクトガラス41又は第2コンタクトガラス42越しに、シートSh1の画像を読み取る。処理部6は、画像読取部2と電気的に接続されており、画像読取部2にて読み取った画像のデータ(画像データ)を画像読取部2から入力する。つまり、画像読取装置10は、シートSh1の画像を読み取る画像読取部2、及び画像のデータを受け取る処理部6と、を装置本体4に備えている。 The device main body 4 of the image reading device 10 has a first contact glass 41, a second contact glass 42, an image reading unit 2, a processing unit 6, and the like. The first contact glass 41 and the second contact glass 42 form a part of the upper surface of the apparatus main body 4. Thereby, the light from the upper surface side (upper side) of the apparatus main body 4 can be taken into the apparatus main body 4 through the first contact glass 41 and the second contact glass 42. The original document (sheet Sh1) to be read is placed on the first contact glass 41. The second contact glass 42 will be described later. The image reading unit 2 reads the image of the sheet Sh1 through the first contact glass 41 or the second contact glass 42. The processing unit 6 is electrically connected to the image reading unit 2, and the image data (image data) read by the image reading unit 2 is input from the image reading unit 2. That is, the image reading device 10 includes an image reading unit 2 for reading the image of the sheet Sh1 and a processing unit 6 for receiving the image data in the device main body 4.

画像読取部2は、読取ユニット20、ミラー21,22、光学レンズ23及び光学センサー24を有している。本基本構成では一例として、画像読取部2は、光学センサー24としてCCD(Charge Coupled Device)を用いたCCD方式である。ただし、画像読取部2は、CCD方式に限らず、CIS(Contact Image Sensor)方式であってもよい。 The image reading unit 2 includes a reading unit 20, mirrors 21 and 22, an optical lens 23, and an optical sensor 24. As an example in this basic configuration, the image reading unit 2 is a CCD system using a CCD (Charge Coupled Device) as an optical sensor 24. However, the image reading unit 2 is not limited to the CCD system, and may be a CIS (Contact Image Sensor) system.

読取ユニット20は、光源201及びミラー202を含んでおり、例えば、ステッピングモーター等の駆動モーターを用いた駆動機構により副走査方向D2(図2参照)へ移動可能である。光源201は、主走査方向D1(図2の紙面に直交する方向)に並ぶ複数の発光素子、一例として、複数のLED(Light Emitting Diode)を含んでいる。光源201は、主走査方向D1に延びる直線状の光(ライン光)を、装置本体4の上面に設けられた第1コンタクトガラス41へ向けて照射する。そのため、駆動モーターにより読取ユニット20が副走査方向D2へ移動されると、光源201から第1コンタクトガラス41へ照射される直線状の光が、副走査方向D2へ走査される。主走査方向D1及び副走査方向D2は、いずれも装置本体4の上面に沿う方向であって、かつ互いに直交する方向である。 The reading unit 20 includes a light source 201 and a mirror 202, and can be moved in the sub-scanning direction D2 (see FIG. 2) by a drive mechanism using a drive motor such as a stepping motor, for example. The light source 201 includes a plurality of light emitting elements arranged in the main scanning direction D1 (direction orthogonal to the paper surface of FIG. 2), and, as an example, a plurality of LEDs (Light Emitting Diodes). The light source 201 irradiates linear light (line light) extending in the main scanning direction D1 toward the first contact glass 41 provided on the upper surface of the apparatus main body 4. Therefore, when the reading unit 20 is moved in the sub-scanning direction D2 by the drive motor, the linear light emitted from the light source 201 to the first contact glass 41 is scanned in the sub-scanning direction D2. The main scanning direction D1 and the sub-scanning direction D2 are both directions along the upper surface of the apparatus main body 4 and orthogonal to each other.

ミラー202は、光源201から光が照射されたときに、シートSh1又は原稿カバー5の裏面(下面)で反射した反射光を、ミラー21へ向けて反射する。ミラー202で反射された光は、ミラー21及びミラー22により光学レンズ23に導かれる。光学レンズ23は、入射した光を集光して光学センサー24に入射させる。 The mirror 202 reflects the reflected light reflected by the back surface (lower surface) of the sheet Sh1 or the document cover 5 toward the mirror 21 when the light is emitted from the light source 201. The light reflected by the mirror 202 is guided to the optical lens 23 by the mirror 21 and the mirror 22. The optical lens 23 collects the incident light and causes it to enter the optical sensor 24.

光学センサー24は、受光した光をその光量(輝度の強度)に応じた電気信号(電圧又は電流)に変換する光電変換素子である。光学センサー24が受光した光量に応じた光量データについては、処理部6、又は処理部6の前段の前置回路にて、適宜の前置処理が施される。前置処理は、光量データに対する、γ補正処理、RGBカラーバランスの調整である色補正処理、又はRGBデータからCMYKデータへの色変換処理等を含む。前置処理後の光量データは、画像読取部2で読み取られた画像(読取画像)として、後述する記憶部25(図4参照)に記憶される。処理部6は、記憶部25に記憶された読取画像に対して後述する筋低減処理を行う。記憶部25は、処理部6に含まれていてもよい。 The optical sensor 24 is a photoelectric conversion element that converts the received light into an electric signal (voltage or current) according to the amount of light (luminance intensity). The light amount data according to the amount of light received by the optical sensor 24 is subjected to appropriate pre-processing by the processing unit 6 or the pre-circuit circuit in the pre-stage of the processing unit 6. The pre-processing includes γ correction processing for light amount data, color correction processing for adjusting RGB color balance, color conversion processing from RGB data to CMYK data, and the like. The light amount data after the pre-processing is stored in the storage unit 25 (see FIG. 4) described later as an image (read image) read by the image reading unit 2. The processing unit 6 performs a muscle reduction process described later on the scanned image stored in the storage unit 25. The storage unit 25 may be included in the processing unit 6.

原稿カバー5は、原稿搬送装置7を有している。原稿搬送装置7は、ADF(Auto Document Feeder)であるので、図4では「ADF」と表記し、かつ以下の説明でも「ADF7」と称する。ADF7は、原稿カバー5の原稿セット部71にセットされた1枚又は複数枚のシートSh1を複数の搬送ローラー対72により順次搬送する。ここで、ADF7は、第2コンタクトガラス42上に定められた後述の読取位置P1(図3参照)を、副走査方向D2の右向きへ通過するようにシートSh1を移動させる。言い換えれば、ADF7は、第2コンタクトガラス42上の読取位置P1を含む搬送路R1を通して、シートSh1を搬送する。画像読取部2は、図2に示すように、読取位置P1の下方に読取ユニット20が位置する状態において、ADF7により搬送路R1を搬送されているシートSh1の画像を、読取位置P1で読み取ることが可能である。つまり、画像読取装置10は、搬送路R1を通してシートSh1を搬送するADF7を、原稿カバー5に備えている。 The document cover 5 has a document transport device 7. Since the document transfer device 7 is an ADF (Auto Document Feeder), it is referred to as "ADF" in FIG. 4 and also referred to as "ADF7" in the following description. The ADF 7 sequentially conveys one or a plurality of sheets Sh1 set in the original document setting unit 71 of the original cover 5 by a plurality of transfer roller pairs 72. Here, the ADF 7 moves the sheet Sh1 so as to pass the later-described reading position P1 (see FIG. 3) defined on the second contact glass 42 to the right in the sub-scanning direction D2. In other words, the ADF7 transports the sheet Sh1 through the transport path R1 including the reading position P1 on the second contact glass 42. As shown in FIG. 2, the image reading unit 2 reads the image of the sheet Sh1 conveyed on the transport path R1 by the ADF 7 at the reading position P1 in a state where the reading unit 20 is located below the reading position P1. Is possible. That is, the image reading device 10 includes an ADF 7 for transporting the sheet Sh1 through the transport path R1 in the document cover 5.

また、画像読取装置10の原稿カバー5は、色基準部材51を有する。色基準部材51は、原稿カバー5が「閉」状態にある場合に、第2コンタクトガラス42に対向する。読取位置P1は、副走査方向D2において、色基準部材51の第2コンタクトガラス42との対向面(下面)の中心に相当する位置である。図3に示すように、色基準部材51と第2コンタクトガラス42との間には、搬送路R1の一部を構成する隙間が確保される。よって、原稿セット部71にセットされたシートSh1は、色基準部材51と第2コンタクトガラス42との隙間を通過することで、読取位置P1を副走査方向D2の右向きへ通過するように、ADF7にて搬送される。色基準部材51は、色基準部材51と第2コンタクトガラス42との隙間をシートSh1が通過するときにシートSh1の進路をガイドする搬送ガイドとして機能する。 Further, the document cover 5 of the image reading device 10 has a color reference member 51. The color reference member 51 faces the second contact glass 42 when the document cover 5 is in the “closed” state. The reading position P1 is a position corresponding to the center of the facing surface (lower surface) of the color reference member 51 with the second contact glass 42 in the sub-scanning direction D2. As shown in FIG. 3, a gap forming a part of the transport path R1 is secured between the color reference member 51 and the second contact glass 42. Therefore, the sheet Sh1 set in the document setting unit 71 passes through the gap between the color reference member 51 and the second contact glass 42, so that the reading position P1 passes through the reading position P1 to the right in the sub-scanning direction D2. Will be transported at. The color reference member 51 functions as a transport guide that guides the course of the sheet Sh1 when the sheet Sh1 passes through the gap between the color reference member 51 and the second contact glass 42.

すなわち、画像読取装置10は、画像読取部2とは搬送路R1を挟んで対向するように配置される色基準部材51を備えている。ここで、色基準部材51の配置は、画像読取部2にて、搬送路R1を挟んだ反対側から色基準部材51の画像を読み取り可能となる配置、言い換えれば、搬送路R1越しに色基準部材51の画像を読み取り可能となる配置であればよい。そのため、画像読取部2のうちの少なくとも読み込む画像に相当する光が入射する部位に対して、搬送路R1を挟んで対向するように色基準部材51が配置される。つまり、色基準部材51は、本基本構成では画像読取部2のうちの少なくとも読取ユニット20と、搬送路R1を挟んで対向するように配置される。色基準部材51は、搬送ガイドに限らず、例えば、シェーディング板、搬送ガイドローラー又はシェーディングローラー等であってもよい。 That is, the image reading device 10 includes a color reference member 51 arranged so as to face the image reading unit 2 with the transport path R1 interposed therebetween. Here, the arrangement of the color reference member 51 is such that the image reading unit 2 can read the image of the color reference member 51 from the opposite side of the transport path R1, in other words, the color reference through the transport path R1. Any arrangement may be sufficient as long as the image of the member 51 can be read. Therefore, the color reference member 51 is arranged so as to face the portion of the image reading unit 2 where the light corresponding to at least the image to be read is incident, with the transport path R1 interposed therebetween. That is, in this basic configuration, the color reference member 51 is arranged so as to face at least the reading unit 20 of the image reading unit 2 with the transport path R1 interposed therebetween. The color reference member 51 is not limited to the transport guide, and may be, for example, a shading plate, a transport guide roller, a shading roller, or the like.

ADF7は、色基準部材51よりシートSh1の搬送方向の上流側(図3では左側)の所定位置に配置される第1搬送ローラー対73を有している。第1搬送ローラー対73は、第1駆動ローラー731と第1従動ローラー732とを含む。第1駆動ローラー731と第1従動ローラー732とは互いに所定の圧力で接している。第1搬送ローラー対73は、第1駆動ローラー731と第1従動ローラー732との間にシートSh1を挟み、シートSh1を読取位置P1に向けて搬送する。 The ADF 7 has a first transport roller pair 73 arranged at a predetermined position on the upstream side (left side in FIG. 3) of the sheet Sh1 in the transport direction from the color reference member 51. The first transport roller pair 73 includes a first drive roller 731 and a first driven roller 732. The first drive roller 731 and the first driven roller 732 are in contact with each other at a predetermined pressure. The first transfer roller pair 73 sandwiches the sheet Sh1 between the first drive roller 731 and the first driven roller 732, and conveys the sheet Sh1 toward the reading position P1.

さらに、ADF7は、色基準部材51よりシートSh1の搬送方向の下流側(図3では右側)の所定位置に配置される第2搬送ローラー対74を有している。第2搬送ローラー対74は、第2駆動ローラー741と第2従動ローラー742とを含む。第2駆動ローラー741と第2従動ローラー742とは互いに所定の圧力で接している。第2搬送ローラー対74は、第2駆動ローラー741と第2従動ローラー742との間にシートSh1を挟み、読取位置P1を通過したシートSh1を原稿カバー5上の排出部75(図2参照)側にある搬送ローラー対72に向けて搬送する。 Further, the ADF 7 has a second transport roller pair 74 arranged at a predetermined position on the downstream side (right side in FIG. 3) of the sheet Sh1 in the transport direction from the color reference member 51. The second transport roller pair 74 includes a second drive roller 741 and a second driven roller 742. The second drive roller 741 and the second driven roller 742 are in contact with each other at a predetermined pressure. The second transport roller pair 74 sandwiches the sheet Sh1 between the second drive roller 741 and the second driven roller 742, and ejects the sheet Sh1 that has passed through the reading position P1 to the ejection portion 75 on the document cover 5 (see FIG. 2). Transport toward the transport roller pair 72 on the side.

ADF7は、第1従動コロ76及び第2従動コロ77を有している。シートSh1の搬送路R1に沿って、色基準部材51と第1搬送ローラー対73との間には第1従動コロ76が配置され、色基準部材51と第2搬送ローラー対74との間には第2従動コロ77が配置される。さらに、装置本体4の上面における第2コンタクトガラス42よりシートSh1の搬送方向の下流側には、ガイド部材43が設けられている。ガイド部材43は、色基準部材51と第2コンタクトガラス42との隙間に搬送されたシートSh1をすくい上げつつガイドする。 The ADF 7 has a first driven roller 76 and a second driven roller 77. A first driven roller 76 is arranged between the color reference member 51 and the first transfer roller pair 73 along the transfer path R1 of the sheet Sh1, and between the color reference member 51 and the second transfer roller pair 74. The second driven roller 77 is arranged in. Further, a guide member 43 is provided on the upper surface of the apparatus main body 4 on the downstream side of the second contact glass 42 in the transport direction of the sheet Sh1. The guide member 43 guides the sheet Sh1 conveyed to the gap between the color reference member 51 and the second contact glass 42 while scooping up.

第1従動コロ76は、第2コンタクトガラス42と一定の間隔を空けて対向しており、第2コンタクトガラス42と共にシートSh1の搬送路R1を形成する。第1従動コロ76は、シートSh1を下方に押し付けつつ搬送する。第2従動コロ77は、ガイド部材43と一定の間隔を空けて対向しており、ガイド部材43と共にシートSh1の搬送路R1を形成する。第2従動コロ77は、シートSh1を下方に押し付けつつ搬送する。 The first driven roller 76 faces the second contact glass 42 at a certain interval, and forms the transport path R1 of the sheet Sh1 together with the second contact glass 42. The first driven roller 76 conveys the seat Sh1 while pressing it downward. The second driven roller 77 faces the guide member 43 at a certain interval, and forms the transport path R1 of the seat Sh1 together with the guide member 43. The second driven roller 77 conveys the sheet Sh1 while pressing it downward.

また、ADF7は、第1搬送ローラー対73よりシートSh1の搬送方向の上流側の所定位置に配置される原稿センサー78を有している。原稿センサー78は、例えば、一対の投受光器を備え、非接触でシートSh1の有無を検知する。本基本構成では、原稿センサー78は反射型センサーであるが、透過型センサーでもよい。 Further, the ADF 7 has a document sensor 78 arranged at a predetermined position on the upstream side of the sheet Sh1 in the transport direction from the first transport roller pair 73. The document sensor 78 includes, for example, a pair of light emitting and receiving devices, and detects the presence or absence of the sheet Sh1 in a non-contact manner. In this basic configuration, the document sensor 78 is a reflective sensor, but it may be a transmissive sensor.

上記構成のADF7によれば、原稿セット部71にセットされたシートSh1は、第1搬送ローラー対73によって搬送される。さらに、シートSh1は、第1従動コロ76により案内されつつ搬送され、色基準部材51と第2コンタクトガラス42との隙間(読取位置P1)を通過する。その後、シートSh1は、第2従動コロ77、第2搬送ローラー対74及び搬送ローラー対72により搬送され、原稿カバー5の上面側に設けられた排出部75に排出される。 According to the ADF 7 having the above configuration, the sheet Sh1 set in the document setting unit 71 is conveyed by the first transfer roller pair 73. Further, the sheet Sh1 is conveyed while being guided by the first driven roller 76, and passes through the gap (reading position P1) between the color reference member 51 and the second contact glass 42. After that, the sheet Sh1 is conveyed by the second driven roller 77, the second transfer roller pair 74, and the transfer roller pair 72, and is discharged to the discharge portion 75 provided on the upper surface side of the document cover 5.

処理部6は、画像形成装置1を統括的に制御する。処理部6は、1以上のプロセッサー及び1以上のメモリーを有するコンピューターシステムを主構成とする。画像形成装置1では、1以上のプロセッサーがプログラムを実行することにより、処理部6の機能が実現される。プログラムはメモリー(又は記憶部25)に予め記録されていてもよいし、インターネット等の電気通信回線を通して提供されてもよく、光学ディスク等のコンピューターシステムで読み取り可能な非一時的記録媒体に記録されて提供されてもよい。1以上のプロセッサーは、半導体集積回路を含む1以上の電子回路で構成される。さらに、ここでいうコンピューターシステムは、1以上のプロセッサー及び1以上のメモリーを有するマイクロコントローラーを含む。処理部6は、処理部6が実行する各種の処理の一時記憶メモリー(作業区域)として使用されるメモリーを含んでいる。処理部6は、画像形成装置1を統括的に制御するメイン制御部とは別に設けられた制御部であってもよい。 The processing unit 6 comprehensively controls the image forming apparatus 1. The processing unit 6 mainly comprises a computer system having one or more processors and one or more memories. In the image forming apparatus 1, the function of the processing unit 6 is realized by executing the program by one or more processors. The program may be pre-recorded in a memory (or storage unit 25), may be provided through a telecommunication line such as the Internet, and may be recorded on a non-temporary recording medium such as an optical disk that can be read by a computer system. May be provided. One or more processors are composed of one or more electronic circuits including semiconductor integrated circuits. Further, the computer system referred to here includes a microcontroller having one or more processors and one or more memories. The processing unit 6 includes a memory used as a temporary storage memory (working area) for various processes executed by the processing unit 6. The processing unit 6 may be a control unit provided separately from the main control unit that collectively controls the image forming apparatus 1.

記憶部25は、1以上の不揮発性のメモリーを含んでおり、処理部6に各種の処理を実行させるための制御プログラム等の情報が予め記憶されている。 The storage unit 25 includes one or more non-volatile memories, and information such as a control program for causing the processing unit 6 to execute various processes is stored in advance.

このような画像読取装置10は、第1の読み取り方式及び第2の読み取り方式の2種類の読み取り方式による画像の読み取りが可能である。第1の読み取り方式は、原稿固定読み取り方式とも称される。第2の読み取り方式は、シートスルー読み取り方式とも称される。第1及び第2のいずれの読み取り方式で、読取動作を行うかは、例えば、ユーザーの操作によって任意に選択(切り替え)可能である。 Such an image reading device 10 can read an image by two types of reading methods, a first reading method and a second reading method. The first scanning method is also referred to as a document fixed scanning method. The second reading method is also referred to as a sheet-through reading method. Which of the first and second reading methods is used to perform the reading operation can be arbitrarily selected (switched) by, for example, a user's operation.

第1の読み取り方式は、第1コンタクトガラス41の下方で副走査方向D2に沿って読取ユニット20を移動させつつ、第1コンタクトガラス41上に載置された原稿の画像を画像読取部2で読み取る方式である。具体的には、原稿が第1コンタクトガラス41上に載置され、装置本体4の上面が原稿カバー5によって塞がれた後、画像読取指示が入力される。すると、画像読取装置10は、第2コンタクトガラス42側のホームポジションから第2コンタクトガラス42とは反対側(図2の右側)へ読取ユニット20を移動させつつ、光源201から連続して順次1ライン分の光を照射する。そして、原稿(又は原稿カバー5の下面)からの反射光がミラー202,21,22及び光学レンズ23を介して光学センサー24に導かれる。このように、画像読取装置10は、原稿固定読み取り方式の読取動作においては、第1コンタクトガラス41上に載置される原稿の画像を、第1コンタクトガラス41越しに画像読取部2で読取可能である。 In the first reading method, the image reading unit 2 reads an image of a document placed on the first contact glass 41 while moving the reading unit 20 below the first contact glass 41 along the sub-scanning direction D2. It is a reading method. Specifically, the document is placed on the first contact glass 41, the upper surface of the apparatus main body 4 is closed by the document cover 5, and then an image reading instruction is input. Then, the image reading device 10 continuously moves the reading unit 20 from the home position on the side of the second contact glass 42 to the side opposite to the second contact glass 42 (on the right side in FIG. 2), and sequentially 1 from the light source 201. Irradiate the light for the line. Then, the reflected light from the document (or the lower surface of the document cover 5) is guided to the optical sensor 24 via the mirrors 202, 21, 22, and the optical lens 23. As described above, in the reading operation of the original fixed reading method, the image reading device 10 can read the image of the original placed on the first contact glass 41 by the image reading unit 2 through the first contact glass 41. Is.

第2の読み取り方式は、ADF7によってシートSh1(原稿)を搬送し、読取位置P1を通過するシートSh1の画像を、読取位置P1で画像読取部2により読み取る方式である。具体的には、装置本体4の上面が原稿カバー5によって塞がれた状態で原稿セット部71に原稿がセットされ、画像読取指示が入力される。すると、画像読取装置10は、第2コンタクトガラス42の下方であって読取位置P1に対応する予め定められた位置(シートスルーポジション)に読取ユニット20を移動させる。この状態で、画像読取装置10は、副走査方向D2に沿って読取位置P1を通過するようにシートSh1をADF7にて移動させつつ、光源201から連続して順次1ライン分の光を照射する。この画像読取部2による読取動作は、原稿センサー78によりシートSh1が検知されてから予め定められた時間経過後に開始される。そして、シートSh1からの反射光がミラー202,21,22及び光学レンズ23を介して光学センサー24に導かれる。このように、画像読取装置10は、シートスルー読み取り方式の読取動作においては、ADF7により第2コンタクトガラス42上を搬送されるシートSh1の画像を、第2コンタクトガラス42越しに画像読取部2で読取可能である。 The second reading method is a method in which the sheet Sh1 (original) is conveyed by the ADF7, and the image of the sheet Sh1 passing through the reading position P1 is read by the image reading unit 2 at the reading position P1. Specifically, a document is set in the document setting unit 71 with the upper surface of the apparatus main body 4 closed by the document cover 5, and an image reading instruction is input. Then, the image reading device 10 moves the reading unit 20 to a predetermined position (sheet-through position) below the second contact glass 42 and corresponding to the reading position P1. In this state, the image reading device 10 continuously irradiates one line of light from the light source 201 while moving the sheet Sh1 by the ADF 7 so as to pass through the reading position P1 along the sub-scanning direction D2. .. The reading operation by the image reading unit 2 is started after a predetermined time has elapsed after the sheet Sh1 is detected by the document sensor 78. Then, the reflected light from the sheet Sh1 is guided to the optical sensor 24 via the mirrors 202, 21 and 22, and the optical lens 23. As described above, in the reading operation of the sheet-through reading method, the image reading device 10 displays the image of the sheet Sh1 conveyed on the second contact glass 42 by the ADF 7 through the second contact glass 42 by the image reading unit 2. It is readable.

また、第2の読み取り方式において、読取位置P1にシートSh1が存在しない状態では、読取位置P1の下方のシートスルーポジションに位置する読取ユニット20で読み取り可能な読取可能領域には、色基準部材51が含まれる。色基準部材51の表面は、一様に単一の色を有しており、本基本構成では一例として、一様に白色を有している。したがって、色基準部材51と第2コンタクトガラス42との間にシートSh1が存在しない状態で、画像読取部2により読取位置P1での読取動作が行われた場合、色基準部材51の白色の表面が読み取られる。画像読取装置10は、この読取動作で得られる画像により、白色の基準データを取得可能である。 Further, in the second reading method, when the sheet Sh1 does not exist at the reading position P1, the color reference member 51 is in the readable area that can be read by the reading unit 20 located at the sheet through position below the reading position P1. Is included. The surface of the color reference member 51 uniformly has a single color, and in this basic configuration, as an example, it uniformly has a white color. Therefore, when the image reading unit 2 performs a reading operation at the reading position P1 in a state where the sheet Sh1 does not exist between the color reference member 51 and the second contact glass 42, the white surface of the color reference member 51 Is read. The image reading device 10 can acquire white reference data from the image obtained by this reading operation.

画像読取装置10で読み取られる画像は、複数の画素からなり、複数の画素の各々が濃度に対応する濃度値を有している。本基本構成では一例として、各画素の濃度は、「0」から「255」までの256段階(8ビット)の濃度値で表現され、かつ、濃度が薄いほど濃度値が大きくなるように濃度と濃度値との関係が規定されることとする。そのため、上述した読取動作で得られる色基準部材51の表面の画像においては、基本的には、各画素の濃度値は、白色に相当する比較的大きな値、具体的には「255」近傍の値となる。 The image read by the image reading device 10 is composed of a plurality of pixels, and each of the plurality of pixels has a density value corresponding to the density. In this basic configuration, as an example, the density of each pixel is expressed by a density value of 256 steps (8 bits) from "0" to "255", and the density is set so that the thinner the density, the larger the density value. The relationship with the concentration value shall be specified. Therefore, in the image of the surface of the color reference member 51 obtained by the above-mentioned reading operation, basically, the density value of each pixel is a relatively large value corresponding to white, specifically, in the vicinity of "255". It becomes a value.

図4に示すように、本基本構成に係る画像形成装置1は、画像読取装置10及び画像形成部3の他、操作表示部11及び通信部12等を備える。 As shown in FIG. 4, the image forming apparatus 1 according to this basic configuration includes an operation display unit 11 and a communication unit 12 in addition to the image reading device 10 and the image forming unit 3.

操作表示部11は、画像形成装置1におけるユーザーインターフェイスである。操作表示部11は、処理部6からの制御指示に応じて各種の情報を表示する液晶ディスプレー等の表示部、及びユーザーの操作に応じて処理部6に各種の情報を入力するスイッチ又はタッチパネル等の操作部を有する。また、画像形成装置1は、ユーザーインターフェイスとして、操作表示部11に加えて又は代えて、例えば、音声出力部及び音声入力部等を備えていてもよい。通信部12は、画像形成装置1と、例えば、インターネット又はLAN(Local Area Network)等の通信ネットワークを介して接続される外部装置との間で、データ通信を実行するインターフェイスである。 The operation display unit 11 is a user interface in the image forming apparatus 1. The operation display unit 11 includes a display unit such as a liquid crystal display that displays various information in response to a control instruction from the processing unit 6, and a switch or touch panel that inputs various information to the processing unit 6 in response to a user operation. Has an operation unit. Further, the image forming apparatus 1 may include, for example, a voice output unit, a voice input unit, or the like as a user interface in addition to or in place of the operation display unit 11. The communication unit 12 is an interface for executing data communication between the image forming apparatus 1 and an external device connected via a communication network such as the Internet or a LAN (Local Area Network).

[2]異常画素の判定のための構成
ところで、シートスルー読み取り方式(第2の読み取り方式)の読取動作に際して、第2コンタクトガラス42に、例えば、ゴミ、塵埃又はシートSh1の紙粉等の異物が付着していたり、傷又は汚れがついていたりする場合がある。このような場合、画像読取装置10で読み取られる読取画像には、副走査方向D2へ延びる、比較的濃度の濃い筋状の筋画像L1(図11参照)が現れることがある。この筋画像L1は、視覚的に目立ち、画像の品質低下を招く場合がある。
[2] Configuration for Determining Abnormal Pixels By the way, during the reading operation of the sheet-through reading method (second reading method), foreign matter such as dust, dust, or paper dust on the sheet Sh1 is placed on the second contact glass 42. May be attached, scratched or dirty. In such a case, a relatively dense streak-like streak image L1 (see FIG. 11) extending in the sub-scanning direction D2 may appear in the scanned image read by the image reading device 10. This streak image L1 is visually conspicuous and may cause deterioration of image quality.

そこで、このような筋画像L1を除去又は低減すべく、次のような構成の関連技術が知られている。すなわち、関連技術に係る画像読取装置は、搬送されるシートの画像を読取可能な画像読取部と、(第1)濃度算出部と、(第1)閾値決定部と、(第1)判定部と、画像処理部と、を備える。濃度算出部は、画像読取部でシートより読み取られた(第1)読取画像のうち、シートの余白領域に対応する画像について濃度値ごとの画素数を示すヒストグラムを作成し、ヒストグラムに基づいて画素数が最も多い第1濃度値を算出する。閾値決定部は、上記第1濃度値、つまり読取画像の背景濃度を示す第1濃度値より、予め定められた値分だけ濃度が濃い濃度値を、判定閾値に決定する。判定部は、余白領域の各画素の濃度値と判定閾値との比較結果に基づき、余白領域における各画素のうち判定閾値より濃度が濃い濃度値の画素を、異常を示す(第1)異常画素と判定する。画像処理部は、読取画像のうち、主走査方向D1の位置が異常画素と一致する画素の濃度値を補正する。 Therefore, in order to remove or reduce such a streak image L1, a related technique having the following configuration is known. That is, the image reading device according to the related technology includes an image reading unit capable of reading an image of a conveyed sheet, a (first) density calculation unit, a (first) threshold determination unit, and a (first) determination unit. And an image processing unit. The density calculation unit creates a histogram showing the number of pixels for each density value for the image corresponding to the margin area of the sheet among the (first) scanned images read from the sheet by the image reading unit, and pixels based on the histogram. Calculate the first concentration value with the largest number. The threshold value determination unit determines, as the determination threshold value, a density value whose density is higher by a predetermined value than the first density value, that is, the first density value indicating the background density of the scanned image. Based on the comparison result between the density value of each pixel in the margin area and the judgment threshold value, the judgment unit indicates a pixel having a density value higher than the judgment threshold value among the pixels in the margin area as an abnormality (first) abnormal pixel. Is determined. The image processing unit corrects the density value of the scanned image whose position in the main scanning direction D1 coincides with the abnormal pixel.

しかしながら、上記関連技術では、画素数が最も多い(読取画像の背景濃度を示す)濃度値より「予め定められた値」分だけ濃度が濃い濃度値が判定閾値となるので、「予め定められた値」の設定如何では、異常画素の判定精度が低下する場合がある。以下では、画素数が最も多い濃度値から判定閾値までの濃度値のシフト分である「予め定められた値」を「固定シフト値」ともいう。 However, in the above-mentioned related technology, since the density value whose density is higher by the "predetermined value" than the density value having the largest number of pixels (indicating the background density of the scanned image) is the determination threshold value, "predetermined". Depending on the setting of "value", the determination accuracy of abnormal pixels may decrease. Hereinafter, the “predetermined value” which is the shift amount of the density value from the density value having the largest number of pixels to the determination threshold value is also referred to as a “fixed shift value”.

すなわち、関連技術では、例えば、更紙、再生紙又は新聞紙等の、下地濃度(読取画像の背景濃度)のばらつきが比較的大きなシートの画像の読み取りにも対応できるように、固定シフト値が比較的大きく設定される。一例として、新聞紙のように、下地濃度のばらつきが比較的小さなシートであれば、その余白領域に対応する画像については、図5の上段に例示するような、濃度値のばらつきが比較的大きいヒストグラムが作成される。図5の上段に示すヒストグラムでは、画素数が最も多い濃度値(基準濃度値)C0が「200」であって、下地濃度のばらつきによって、濃度値が「189」の画素も存在する。この例では、正常な濃度(下地濃度)が異常画素と誤って判定されないために、固定シフト値ΔC0を比較的大きな値である「12」に設定し、「200」より「12」だけ濃度が濃い濃度値「188」を判定閾値Th0にする必要がある。 That is, in the related technology, fixed shift values are compared so as to be able to read an image of a sheet having a relatively large variation in the background density (background density of the scanned image) such as stencil paper, recycled paper, or newspaper. It is set to a large size. As an example, in the case of a sheet such as newspaper in which the variation in the background density is relatively small, the histogram corresponding to the margin area has a relatively large variation in the density value as illustrated in the upper part of FIG. Is created. In the histogram shown in the upper part of FIG. 5, the density value (reference density value) C0 having the largest number of pixels is "200", and there are pixels having a density value of "189" due to variations in the background density. In this example, the fixed shift value ΔC0 is set to a relatively large value of “12” so that the normal density (base density) is not erroneously determined as an abnormal pixel, and the density is increased by “12” from “200”. It is necessary to set the dark concentration value "188" to the determination threshold value Th0.

ところが、専用用紙のように、下地濃度のばらつきが比較的小さなシートについては、比較的大きな固定シフト値ΔC0を用いて決定される判定閾値Th0では、第2コンタクトガラス42の異物、傷又は汚れ等に起因した本来の異常画素を、見落としやすくなる。要するに、固定シフト値ΔC0が比較的大きい場合、異常画素を判定するための判定閾値Th0が緩め(小さめ)の値となるので、本来の異常画素の検知漏れが生じて異常画素の判定精度が低下する可能性がある。一方で、固定シフト値ΔC0が比較的小さく設定されていると、更紙、再生紙又は新聞紙等の、下地濃度(読取画像の背景濃度)のばらつきが比較的大きなシートについては、正常な濃度(下地濃度)についても異常画素と誤って判定されやすくなる。要するに、固定シフト値ΔC0が比較的小さい場合、異常画素を判定するための判定閾値Th0が厳しめ(小さめ)の値となるので、シートの種類によっては、正常な画素までも過剰に異常画素と判定されて異常画素の判定精度が低下する可能性がある。 However, for a sheet having a relatively small variation in the base density, such as special paper, at the determination threshold Th0 determined by using a relatively large fixed shift value ΔC0, foreign matter, scratches, stains, etc. on the second contact glass 42, etc. It becomes easy to overlook the original abnormal pixel caused by. In short, when the fixed shift value ΔC0 is relatively large, the determination threshold value Th0 for determining an abnormal pixel becomes a loose (smaller) value, so that the detection omission of the original abnormal pixel occurs and the determination accuracy of the abnormal pixel deteriorates. there's a possibility that. On the other hand, when the fixed shift value ΔC0 is set to be relatively small, the normal density (normal density) is applied to a sheet having a relatively large variation in the background density (background density of the scanned image) such as stencil paper, recycled paper, or newspaper. The background density) is also likely to be erroneously determined as an abnormal pixel. In short, when the fixed shift value ΔC0 is relatively small, the determination threshold value Th0 for determining an abnormal pixel becomes a strict (small) value, so that even a normal pixel may be excessively abnormal pixel depending on the type of sheet. There is a possibility that the determination will be made and the determination accuracy of the abnormal pixel will decrease.

そこで、本基本構成では、以下の構成を採用することにより、異常画素の判定精度が低下しにくい画像読取装置10を提供する。 Therefore, in this basic configuration, by adopting the following configuration, the image reading device 10 in which the determination accuracy of abnormal pixels is unlikely to decrease is provided.

すなわち、図4に示すように、本基本構成に係る画像読取装置10は、搬送路R1を通して搬送されるシートSh1の画像を読み取る画像読取部2に加えて、判定部61と、閾値決定部62と、補正処理部63と、を更に備える。本基本構成では、判定部61、閾値決定部62及び補正処理部63は、処理部6にて具現化される。また、本基本構成では、処理部6は、読取制御部64の機能を更に備えている。つまり、本基本構成に係る画像読取装置10は、判定部61、閾値決定部62、補正処理部63及び読取制御部64を、処理部6の一機能として備えている。 That is, as shown in FIG. 4, the image reading device 10 according to the basic configuration has a determination unit 61 and a threshold value determination unit 62 in addition to the image reading unit 2 that reads the image of the sheet Sh1 conveyed through the transfer path R1. And a correction processing unit 63. In this basic configuration, the determination unit 61, the threshold value determination unit 62, and the correction processing unit 63 are embodied in the processing unit 6. Further, in this basic configuration, the processing unit 6 further has the function of the reading control unit 64. That is, the image reading device 10 according to this basic configuration includes a determination unit 61, a threshold value determination unit 62, a correction processing unit 63, and a reading control unit 64 as one function of the processing unit 6.

読取制御部64は、シートスルー読み取り方式の読取動作が行われる場合に、異常画素の判定用の画像を読み取るための読取動作を画像読取部2に行わせる。本基本構成では、異常画素の判定用の画像として、第1画像と、第2画像と、の2種類の画像を用いる。第1画像は、画像読取部2で読み取られる色基準部材51の画像である。第2画像は、画像読取部2で読み取られるシートSh1の余白領域Rm1(図7参照)の画像である。そこで、読取制御部64は、第1画像を読み取るための読取動作を画像読取部2に行わせる第1読取制御部641と、第2画像を読み取るための読取動作を画像読取部2に行わせる第2読取制御部642と、を有する。つまり、第1読取制御部641は、シートスルー読み取り方式の読み取り時において、シートSh1が読取位置P1に存在しない期間に、読取動作を画像読取部2に行わせる。第2読取制御部642は、シートスルー読み取り方式の読み取り時において、シートSh1の余白領域Rm1が読取位置P1を通過する期間に、読取動作を画像読取部2に行わせる。 The reading control unit 64 causes the image reading unit 2 to perform a reading operation for reading an image for determining an abnormal pixel when the reading operation of the sheet-through reading method is performed. In this basic configuration, two types of images, a first image and a second image, are used as images for determining abnormal pixels. The first image is an image of the color reference member 51 read by the image reading unit 2. The second image is an image of the margin area Rm1 (see FIG. 7) of the sheet Sh1 read by the image reading unit 2. Therefore, the reading control unit 64 causes the image reading unit 2 to perform a reading operation for reading the first image and a reading operation for reading the second image. It has a second read control unit 642. That is, the first reading control unit 641 causes the image reading unit 2 to perform the reading operation during the period when the sheet Sh1 does not exist at the reading position P1 at the time of reading by the sheet-through reading method. The second reading control unit 642 causes the image reading unit 2 to perform a reading operation during the period when the margin region Rm1 of the sheet Sh1 passes through the reading position P1 at the time of reading by the sheet-through reading method.

判定部61は、画像読取部2で読み取られる画像についての、画素ごとの濃度値と判定閾値との比較結果に基づいて異常画素を判定する。本基本構成では、判定部61は、第1画像から第1異常画素を抽出する第1判定部611と、第2画像から第2異常画素を抽出する第2判定部612と、を有する。第1判定部611は、第1画像について、画素ごとに濃度値を第1判定閾値と比較することにより第1異常画素を抽出する。第2判定部612は、第2画像について、画素ごとに濃度値を第2判定閾値と比較することにより第2異常画素を抽出する。判定部61は、最終的に、第1異常画素と第2異常画素との一致度に応じて、異常画素を判定する。具体的には、判定部61は、第1異常画素のうち、第2異常画素と主走査方向D1の位置が一致する画素を、異常画素と判定する。 The determination unit 61 determines an abnormal pixel based on the comparison result between the density value for each pixel and the determination threshold value for the image read by the image reading unit 2. In this basic configuration, the determination unit 61 includes a first determination unit 611 that extracts the first abnormal pixel from the first image, and a second determination unit 612 that extracts the second abnormal pixel from the second image. The first determination unit 611 extracts the first abnormal pixel by comparing the density value for each pixel with the first determination threshold value for the first image. The second determination unit 612 extracts the second abnormal pixel by comparing the density value for each pixel with the second determination threshold value for the second image. The determination unit 61 finally determines the abnormal pixel according to the degree of coincidence between the first abnormal pixel and the second abnormal pixel. Specifically, the determination unit 61 determines that among the first abnormal pixels, the pixels whose positions match the positions of the second abnormal pixel and the main scanning direction D1 are determined as abnormal pixels.

閾値決定部62は、画像読取部2で読み取られる画像における各画素の濃度値についての度数分布に基づいて、判定閾値を決定する。ここでいう「度数分布」は、収集したデータをいくつかの階級(区間)に分けたときの、それぞれの階級に所属するデータの分布状況を意味し、度数分布をグラフ化したヒストグラムを含む。つまり、閾値決定部62は、一例として、濃度値についてのヒストグラムに基づいて、判定閾値を決定する。本基本構成では、閾値決定部62は、第1画像から第1判定閾値を決定する第1閾値決定部621と、第2画像から第2判定閾値を決定する第2閾値決定部622と、を有する。第1閾値決定部621は、第1画像における各画素の濃度値についての度数分布(図8の上段に示す第1ヒストグラムG1)に基づいて第1判定閾値を決定する。第2閾値決定部622は、第2画像における各画素の濃度値についての度数分布(図8の下段に示す第2ヒストグラムG2)に基づいて第2判定閾値を決定する。 The threshold value determination unit 62 determines the determination threshold value based on the frequency distribution of the density value of each pixel in the image read by the image reading unit 2. The "frequency distribution" here means the distribution status of the data belonging to each class when the collected data is divided into several classes (intervals), and includes a histogram in which the frequency distribution is graphed. That is, the threshold value determination unit 62 determines the determination threshold value based on the histogram of the concentration value as an example. In the present basic configuration, the threshold value determination unit 62 includes a first threshold value determination unit 621 that determines the first determination threshold value from the first image, and a second threshold value determination unit 622 that determines the second determination threshold value from the second image. Have. The first threshold value determination unit 621 determines the first determination threshold value based on the frequency distribution (first histogram G1 shown in the upper part of FIG. 8) for the density value of each pixel in the first image. The second threshold value determination unit 622 determines the second determination threshold value based on the frequency distribution (second histogram G2 shown in the lower part of FIG. 8) for the density value of each pixel in the second image.

補正処理部63は、画像読取部2で読み取られる画像のうち、主走査方向D1の位置が異常画素と一致する画素の濃度値を補正する。これにより、第2コンタクトガラス42への異物、傷又は汚れ等の付着があったとしても、画像読取装置10では、画像読取部2で読み取られる画像から、副走査方向D2へ延びる筋画像L1を除去又は低減することができる。ただし、補正処理部63による画像の濃度値の補正は、画像読取装置10に必須の構成ではなく、補正処理部63は適宜省略されてもよい。例えば、画像読取装置10は、第2コンタクトガラス42の異物、傷又は汚れ等に起因する異常画素がある場合、その旨を表示及び/又は音声にてユーザーに提示することで、第2コンタクトガラス42の清掃等をユーザーに促してもよい。 The correction processing unit 63 corrects the density value of the pixel whose position in the main scanning direction D1 coincides with the abnormal pixel among the images read by the image reading unit 2. As a result, even if foreign matter, scratches, stains, or the like adhere to the second contact glass 42, the image reading device 10 displays the streak image L1 extending in the sub-scanning direction D2 from the image read by the image reading unit 2. It can be removed or reduced. However, the correction of the density value of the image by the correction processing unit 63 is not an essential configuration for the image reading device 10, and the correction processing unit 63 may be omitted as appropriate. For example, when the image reading device 10 has abnormal pixels due to foreign matter, scratches, stains, etc. on the second contact glass 42, the second contact glass is displayed and / or presented to the user by voice to that effect. The user may be urged to clean the 42.

上記構成によれば、閾値決定部62は、例えば、シートSh1の下地濃度のばらつきに応じて適切な判定閾値を決定することができ、画像読取装置10としては、異常画素の判定精度が低下しにくい、という利点がある。 According to the above configuration, the threshold value determination unit 62 can determine an appropriate determination threshold value according to, for example, the variation in the background density of the sheet Sh1, and the image reading device 10 reduces the determination accuracy of abnormal pixels. It has the advantage of being difficult.

[3]画像処理方法
次に、図6~図12を参照しつつ、画像読取装置10で実行される画像処理方法の手順の一例について説明する。ここで、図6に示すフローチャートにおけるステップS1、S2・・・は、処理部6により実行される処理手順(ステップ)の番号を表している。以下に説明する処理は、原稿セット部71に原稿がセットされ、かつユーザー操作により画像読取指示が入力された場合に行われる。また、図7では、左右方向を主走査方向D1とし、上下方向を時間軸として、画像読取部2にて画像を読み取るタイミング(サンプリングタイミング)を概念的に示す。また、図8では、横軸を濃度値、縦軸を画素数として、第1画像についての度数分布を表すヒストグラムG1、及び第2画像についての度数分布を表すヒストグラムG2を、上下に並べて示す。
[3] Image processing method Next, an example of the procedure of the image processing method executed by the image reading device 10 will be described with reference to FIGS. 6 to 12. Here, steps S1, S2 ... In the flowchart shown in FIG. 6 represent the numbers of the processing procedures (steps) executed by the processing unit 6. The process described below is performed when a document is set in the document setting unit 71 and an image reading instruction is input by a user operation. Further, in FIG. 7, the timing (sampling timing) for reading an image by the image reading unit 2 is conceptually shown with the left-right direction as the main scanning direction D1 and the vertical direction as the time axis. Further, in FIG. 8, the histogram G1 representing the frequency distribution for the first image and the histogram G2 representing the frequency distribution for the second image are shown side by side, with the horizontal axis representing the density value and the vertical axis representing the number of pixels.

<ステップS1>
ステップS1において、処理部6は、ユーザー操作により画像読取指示が入力されたか否かを判定する。処理部6は、画像読取指示が入力されていないと判定すると(S1:No)、待機する。処理部6は、画像読取指示が入力されたと判定すると(S1:Yes)、ステップS2に進む。
<Step S1>
In step S1, the processing unit 6 determines whether or not an image reading instruction has been input by a user operation. When the processing unit 6 determines that the image reading instruction has not been input (S1: No), the processing unit 6 waits. When the processing unit 6 determines that the image reading instruction has been input (S1: Yes), the processing unit 6 proceeds to step S2.

<ステップS2>
ステップS2において、第1読取制御部641は、シートSh1が読取位置P1に到達する前に、画像読取部2に読取動作を行わせる。具体的には、第1読取制御部641は、原稿センサー78によりシートSh1が検知される前に、副走査方向D2のうち図2の右方向に数ライン分の距離だけ読取ユニット20を移動させつつ、画像読取部2に数ライン分の読取動作を行わせる。このとき、画像読取部2は、図7においてサンプリングタイミングSt1で示すタイミングで、色基準部材51の画像を読み取る読取動作を実施する。
<Step S2>
In step S2, the first reading control unit 641 causes the image reading unit 2 to perform a reading operation before the sheet Sh1 reaches the reading position P1. Specifically, the first reading control unit 641 moves the reading unit 20 to the right of FIG. 2 in the sub-scanning direction D2 by a distance of several lines before the sheet Sh1 is detected by the document sensor 78. At the same time, the image reading unit 2 is made to perform reading operations for several lines. At this time, the image reading unit 2 performs a reading operation for reading the image of the color reference member 51 at the timing shown by the sampling timing St1 in FIG. 7.

<ステップS3>
上記の読取動作により、色基準部材51の表面の画像が読み取られて、画像読取部2は、第1画像を取得する(S3)。ここで、第2コンタクトガラス42に異物、傷又は汚れ等が付着していなければ、第1画像における画素の濃度値は、主走査方向D1に略同様な値となる。また、この場合において、色基準部材51に色褪せ等の変色が生じていない場合、第1画像の画素の濃度値は、いずれも色基準部材51の表面色である白色に対応する濃度値に近い値となる。一方で、色基準部材51に色褪せ等の変色が生じている場合、第1画像の画素の濃度値は、全体的に小さい(濃い)濃度値となる。これは、色基準部材51で反射されて光学センサー24に入射する光源201からの光の一部が、変色した色基準部材51によって吸収され、光学センサー24に入射する光量が小さくなるからである。また、第2コンタクトガラス42に異物、傷又は汚れ等が付着している場合には、第1画像における主走査方向D1の一部における画素の濃度値が、他の画素の濃度値に比べて小さな(濃い)値となる。これは、色基準部材51で反射されて光学センサー24に入射する光源201からの光の一部が、第2コンタクトガラス42に付着している異物等により拡散又は吸収され、光学センサー24に入射する光量が小さくなるからである。
<Step S3>
By the above reading operation, the image of the surface of the color reference member 51 is read, and the image reading unit 2 acquires the first image (S3). Here, if no foreign matter, scratches, stains, or the like are attached to the second contact glass 42, the density value of the pixels in the first image is substantially the same as the value in the main scanning direction D1. Further, in this case, when the color reference member 51 is not discolored such as fading, the density values of the pixels of the first image are all close to the density values corresponding to the white surface color of the color reference member 51. It becomes a value. On the other hand, when the color reference member 51 is discolored such as fading, the density value of the pixel of the first image is a small (dark) density value as a whole. This is because a part of the light from the light source 201 reflected by the color reference member 51 and incident on the optical sensor 24 is absorbed by the discolored color reference member 51, and the amount of light incident on the optical sensor 24 is reduced. .. Further, when foreign matter, scratches, stains, etc. are attached to the second contact glass 42, the density value of the pixel in a part of the main scanning direction D1 in the first image is higher than the density value of the other pixels. It will be a small (dark) value. This is because a part of the light from the light source 201 reflected by the color reference member 51 and incident on the optical sensor 24 is diffused or absorbed by foreign matter or the like adhering to the second contact glass 42 and incident on the optical sensor 24. This is because the amount of light emitted becomes smaller.

<ステップS4>
次に、ステップS4において、第1閾値決定部621は、ステップS3で得られた第1画像について、図8の上段に示すように、濃度値ごとの画素数を示す第1ヒストグラムG1を作成する。第1ヒストグラムG1は、色基準部材51の画像である第1画像の全画素について、濃度値を256階調に分けたときの、それぞれの階調に所属するデータ(画素)の分布状況を示している。つまり、第1画像において該当する濃度値が多い画素ほど、第1ヒストグラムG1中の度数(画素数)は大きくなる。
<Step S4>
Next, in step S4, the first threshold value determination unit 621 creates a first histogram G1 showing the number of pixels for each density value for the first image obtained in step S3, as shown in the upper part of FIG. .. The first histogram G1 shows the distribution state of data (pixels) belonging to each gradation when the density value is divided into 256 gradations for all the pixels of the first image which is the image of the color reference member 51. ing. That is, the larger the corresponding density value in the first image, the larger the frequency (number of pixels) in the first histogram G1.

<ステップS5>
次に、ステップS5において、第1閾値決定部621は、第1画像において基準となる濃度値である第1基準濃度値C1を決定する。本基本構成では一例として、第1基準濃度値C1は、第1画像において画素数の最も多い濃度値、つまり第1ヒストグラムG1中で度数が最大の濃度値である。図8の例では、第1ヒストグラムG1より、濃度値「236」が第1基準濃度値C1となる。ただし、第1基準濃度値C1は、第1画像において基準となる濃度値であればよく、画素数の最も多い濃度値に限らず、例えば、第1画像における濃度値の平均値、中央値、又は予め決められた値(固定値)等であってもよい。
<Step S5>
Next, in step S5, the first threshold value determination unit 621 determines the first reference density value C1, which is the reference density value in the first image. As an example in this basic configuration, the first reference density value C1 is the density value having the largest number of pixels in the first image, that is, the density value having the maximum frequency in the first histogram G1. In the example of FIG. 8, the density value “236” is the first reference density value C1 from the first histogram G1. However, the first reference density value C1 may be a reference density value in the first image, and is not limited to the density value having the largest number of pixels. For example, the average value, the median value, and the density values of the density values in the first image. Alternatively, it may be a predetermined value (fixed value) or the like.

<ステップS6>
次に、ステップS6において、第1閾値決定部621は、第1基準濃度値C1を基準として、第1判定閾値Th1を決定する。このとき、本基本構成では、第1閾値決定部621は、第1画像における各画素の濃度値についての度数分布(第1ヒストグラムG1)に基づいて、第1判定閾値Th1を決定する。ここでは一例として、第1閾値決定部621は、画像読取部2で読み取られる画像(第1画像)における各画素の濃度値についての度数分布(第1ヒストグラムG1)から求まる全画素数に占める画素数割合を用いて、第1判定閾値Th1を決定する。具体的には、第1閾値決定部621は、第1ヒストグラムG1において、第1基準濃度値C1を中心として、全画素数に占める画素数割合が99.8%の濃度値の範囲を求め、この濃度値の範囲の下限値(最小値)を第1判定閾値Th1とする。言い換えれば、第1基準濃度値C1に対して、標準偏差σを用いて±3σとなる値を求め、第1閾値決定部621は、「C1-3σ」となる濃度値を第1判定閾値Th1とする。このように、第1閾値決定部621は、画像読取部2で読み取られる画像(第1画像)における各画素の濃度値についての度数分布(第1ヒストグラムG1)から求まる標準偏差σを用いて、第1判定閾値Th1を決定する。これにより、第1判定閾値Th1を決定するための演算が比較的簡単になる。
<Step S6>
Next, in step S6, the first threshold value determination unit 621 determines the first determination threshold value Th1 with reference to the first reference concentration value C1. At this time, in the present basic configuration, the first threshold value determination unit 621 determines the first determination threshold value Th1 based on the frequency distribution (first histogram G1) for the density value of each pixel in the first image. Here, as an example, the first threshold value determination unit 621 is a pixel occupying the total number of pixels obtained from the frequency distribution (first histogram G1) for the density value of each pixel in the image (first image) read by the image reading unit 2. The first determination threshold Th1 is determined using the number ratio. Specifically, the first threshold value determination unit 621 obtains a range of density values in which the ratio of the number of pixels to the total number of pixels is 99.8% centering on the first reference density value C1 in the first histogram G1. The lower limit value (minimum value) in the range of this concentration value is set as the first determination threshold value Th1. In other words, the standard deviation σ is used to obtain a value of ± 3σ with respect to the first reference concentration value C1, and the first threshold value determination unit 621 determines the concentration value of “C1-3σ” as the first determination threshold value Th1. And. As described above, the first threshold determination unit 621 uses the standard deviation σ obtained from the frequency distribution (first histogram G1) for the density value of each pixel in the image (first image) read by the image reading unit 2. The first determination threshold Th1 is determined. This makes the calculation for determining the first determination threshold Th1 relatively simple.

図8の例では、第1閾値決定部621は、第1ヒストグラムG1より、上記画素数割合にて定まる変動シフト値ΔC1を「3」に決定する。したがって、第1閾値決定部621は、第1基準濃度値C1(236)から「3」を引いた濃度値「233」を、第1判定閾値Th1に決定する。このように、本基本構成では、第1判定閾値Th1は、第1基準濃度値C1を基準としつつも、度数分布(第1ヒストグラムG1)によって変動する変動シフト値ΔC1に応じた値に設定される。ただし、第1閾値決定部621は、第1画像における各画素の濃度値についての度数分布に基づいて、第1判定閾値Th1を決定すればよく、ここで挙げる値は一例に過ぎない。他の例として、第1閾値決定部621は、第1基準濃度値C1を中心として、全画素数に示す画素数割合が任意の値(一例として95.0%)となる画素が含まれる濃度値の範囲を求め、この濃度値の範囲の下限値(最小値)を第1判定閾値Th1としてもよい。図8の例では、標準偏差σは「1」であるので、第1基準濃度値C1から3σ(=3)を減算した濃度値を第1判定閾値Th1としてもよい。 In the example of FIG. 8, the first threshold value determination unit 621 determines the fluctuation shift value ΔC1 determined by the number of pixels ratio to “3” from the first histogram G1. Therefore, the first threshold value determination unit 621 determines the concentration value “233” obtained by subtracting “3” from the first reference concentration value C1 (236) as the first determination threshold value Th1. As described above, in this basic configuration, the first determination threshold value Th1 is set to a value corresponding to the fluctuation shift value ΔC1 that fluctuates depending on the frequency distribution (first histogram G1) while using the first reference concentration value C1 as a reference. To. However, the first threshold value determination unit 621 may determine the first determination threshold value Th1 based on the frequency distribution for the density value of each pixel in the first image, and the values given here are only examples. As another example, the first threshold value determination unit 621 has a density centered on the first reference density value C1 and includes pixels in which the pixel number ratio shown in the total number of pixels is an arbitrary value (95.0% as an example). A range of values may be obtained, and the lower limit value (minimum value) of this concentration value range may be set as the first determination threshold value Th1. In the example of FIG. 8, since the standard deviation σ is “1”, the concentration value obtained by subtracting 3σ (= 3) from the first reference concentration value C1 may be set as the first determination threshold value Th1.

<ステップS7>
ステップS7において、第1判定部611は、第1画像における各画素が第1異常画素であるか否かを判定する。具体的には、第1判定部611は、第1画像における画素の濃度値と第1判定閾値Th1とを画素ごとに比較する。第1判定部611は、濃度値が第1判定閾値Th1以下である(濃い)画素を、第1異常画素であると判定する。第1判定部611は、第1異常画素と判定した場合には、第1異常画素ごとに主走査方向D1の座標位置を記憶することで、第1異常画素の主走査方向D1の位置を特定する。
<Step S7>
In step S7, the first determination unit 611 determines whether or not each pixel in the first image is a first abnormal pixel. Specifically, the first determination unit 611 compares the density value of the pixels in the first image with the first determination threshold Th1 for each pixel. The first determination unit 611 determines that a (dark) pixel whose density value is equal to or less than the first determination threshold Th1 is a first abnormal pixel. When the first determination unit 611 determines that the first abnormal pixel is a first abnormal pixel, the first determination unit 611 stores the coordinate position of the main scanning direction D1 for each first abnormal pixel, thereby specifying the position of the main scanning direction D1 of the first abnormal pixel. do.

本基本構成では、第1異常画素を判定するためのステップS7の処理は、第1判定閾値Th1を決定するためのステップS4~S6とは別の第1画像を用いて行われる。つまり、処理部6は、ステップS7を実行するに当たり、再度、ステップS2,S3と同様の処理を行って、第1画像を取得する。具体的には、画像読取部2は、図7においてサンプリングタイミングSt2で示すタイミングで、色基準部材51の画像を読み取る読取動作を実施し、新たに第1画像を取得する。新たに取得した第1画像について、第1判定部611は、第1異常画素であるか否かを判定する。ただし、この例に限らず、第1異常画素を判定するためのステップS7の処理には、第1判定閾値Th1を決定するためのステップS4~S6と同一の第1画像が用いられてもよい。 In this basic configuration, the process of step S7 for determining the first abnormal pixel is performed using a first image different from steps S4 to S6 for determining the first determination threshold value Th1. That is, in executing step S7, the processing unit 6 performs the same processing as in steps S2 and S3 again to acquire the first image. Specifically, the image reading unit 2 performs a reading operation for reading the image of the color reference member 51 at the timing shown by the sampling timing St2 in FIG. 7, and newly acquires the first image. With respect to the newly acquired first image, the first determination unit 611 determines whether or not it is the first abnormal pixel. However, the present invention is not limited to this example, and the same first image as in steps S4 to S6 for determining the first determination threshold value Th1 may be used in the process of step S7 for determining the first abnormal pixel. ..

<ステップS8>
そして、ステップS8において、第2読取制御部642は、原稿センサー78の出力信号に基づき原稿センサー78によりシートSh1が検知されたか否かを判定する。第2読取制御部642は、原稿センサー78によりシートSh1が検知されていないと判定すると(S8:No)、待機する。第2読取制御部642は、原稿センサー78によりシートSh1が検知されたと判定すると(S8:Yes)、ステップS9に進む。
<Step S8>
Then, in step S8, the second reading control unit 642 determines whether or not the sheet Sh1 is detected by the document sensor 78 based on the output signal of the document sensor 78. When the second reading control unit 642 determines that the sheet Sh1 is not detected by the document sensor 78 (S8: No), the second reading control unit 642 stands by. When the second reading control unit 642 determines that the sheet Sh1 has been detected by the document sensor 78 (S8: Yes), the process proceeds to step S9.

<ステップS9>
ステップS9において、第2読取制御部642は、原稿センサー78によりシートSh1が検知されてから所定時間経過後に、画像読取部2に読取動作を行わせる。具体的には、第2読取制御部642は、例えば、読取位置P1を通過するシートSh1の搬送方向の先頭側のヘッダー領域等の余白領域Rm1の画像を、画像読取部2に数ライン分にわたって読み取らせる。このとき、画像読取部2は、図7においてサンプリングタイミングSt3で示すタイミングで、シートSh1の余白領域Rm1の画像を読み取る読取動作を実施する。
<Step S9>
In step S9, the second reading control unit 642 causes the image reading unit 2 to perform a reading operation after a predetermined time has elapsed from the detection of the sheet Sh1 by the document sensor 78. Specifically, the second reading control unit 642 displays, for example, an image of a margin area Rm1 such as a header area on the leading side in the transport direction of the sheet Sh1 passing through the reading position P1 on the image reading unit 2 for several lines. Let me read it. At this time, the image reading unit 2 performs a reading operation for reading the image in the margin region Rm1 of the sheet Sh1 at the timing shown by the sampling timing St3 in FIG. 7.

<ステップS10>
上記の読取動作により、シートSh1の余白領域Rm1の画像が読み取られて、画像読取部2は、第2画像を取得する(S10)。ここで、第2コンタクトガラス42に異物、傷又は汚れ等が付着していなければ、第2画像における画素の濃度値は、主走査方向D1に略同様な値となる。また、この場合において、第2画像の画素の濃度値は、いずれもシートSh1の下地濃度に相当する濃度値に近い値となる。また、第2コンタクトガラス42に異物、傷又は汚れ等が付着している場合には、第2画像における主走査方向D1の一部における画素の濃度値が、他の画素の濃度値に比べて小さな(濃い)値となる。これは、シートSh1で反射されて光学センサー24に入射する光源201からの光の一部が、第2コンタクトガラス42に付着している異物等により拡散又は吸収され、光学センサー24に入射する光量が小さくなるからである。
<Step S10>
By the above reading operation, the image of the margin region Rm1 of the sheet Sh1 is read, and the image reading unit 2 acquires the second image (S10). Here, if no foreign matter, scratches, stains, or the like are attached to the second contact glass 42, the density value of the pixels in the second image is substantially the same as the value in the main scanning direction D1. Further, in this case, the density values of the pixels of the second image are all close to the density value corresponding to the background density of the sheet Sh1. Further, when foreign matter, scratches, stains, etc. are attached to the second contact glass 42, the density value of the pixel in a part of the main scanning direction D1 in the second image is higher than the density value of the other pixels. It will be a small (dark) value. This is because a part of the light from the light source 201 reflected by the sheet Sh1 and incident on the optical sensor 24 is diffused or absorbed by foreign matter or the like adhering to the second contact glass 42, and the amount of light incident on the optical sensor 24. Is smaller.

<ステップS11>
次に、ステップS11において、第2閾値決定部622は、ステップS10で得られた第2画像について、図8の下段に示すように、濃度値ごとの画素数を示す第2ヒストグラムG2を作成する。第2ヒストグラムG2は、シートSh1の余白領域Rm1の画像である第2画像の全画素について、濃度値を256階調に分けたときの、それぞれの階調に所属するデータ(画素)の分布状況を示している。つまり、第2画像において該当する濃度値が多い画素ほど、第2ヒストグラムG2中の度数(画素数)は大きくなる。ここでは、シートSh1は、下地濃度のばらつきが比較的小さな専用用紙であると仮定する。
<Step S11>
Next, in step S11, the second threshold value determination unit 622 creates a second histogram G2 showing the number of pixels for each density value for the second image obtained in step S10, as shown in the lower part of FIG. .. The second histogram G2 shows the distribution status of the data (pixels) belonging to each gradation when the density value is divided into 256 gradations for all the pixels of the second image which is the image of the margin region Rm1 of the sheet Sh1. Is shown. That is, the larger the corresponding density value in the second image, the larger the frequency (number of pixels) in the second histogram G2. Here, it is assumed that the sheet Sh1 is a special paper having a relatively small variation in the base density.

<ステップS12>
次に、ステップS12において、第2閾値決定部622は、第2画像において基準となる濃度値である第2基準濃度値C2を決定する。本基本構成では一例として、第2基準濃度値C2は、第2画像において画素数の最も多い濃度値、つまり第2ヒストグラムG2中で度数が最大の濃度値である。図8の例では、第2ヒストグラムG2より、濃度値「241」が第2基準濃度値C2となる。ただし、第2基準濃度値C2は、第2画像において基準となる濃度値であればよく、画素数の最も多い濃度値に限らず、例えば、第2画像における濃度値の平均値、中央値、又は予め決められた値(固定値)等であってもよい。
<Step S12>
Next, in step S12, the second threshold value determination unit 622 determines the second reference density value C2, which is the reference density value in the second image. As an example in this basic configuration, the second reference density value C2 is the density value having the largest number of pixels in the second image, that is, the density value having the maximum frequency in the second histogram G2. In the example of FIG. 8, the density value “241” is the second reference density value C2 from the second histogram G2. However, the second reference density value C2 may be a reference density value in the second image, and is not limited to the density value having the largest number of pixels. For example, the average value, the median value, and the density values of the density values in the second image. Alternatively, it may be a predetermined value (fixed value) or the like.

<ステップS13>
次に、ステップS13において、第2閾値決定部622は、第2基準濃度値C2を基準として、第2判定閾値Th2を決定する。このとき、本基本構成では、第2閾値決定部622は、第2画像における各画素の濃度値についての度数分布(第2ヒストグラムG2)に基づいて、第2判定閾値Th2を決定する。ここでは一例として、第2閾値決定部622は、画像読取部2で読み取られる画像(第2画像)における各画素の濃度値についての度数分布(第2ヒストグラムG2)から求まる全画素数に占める画素数割合を用いて、第2判定閾値Th2を決定する。具体的には、第2閾値決定部622は、第2ヒストグラムG2において、第2基準濃度値C2を中心として、全画素数に占める画素数割合が99.8%の濃度値の範囲を求め、この濃度値の範囲の下限値(最小値)を第2判定閾値Th2とする。言い換えれば、第2基準濃度値C2に対して、標準偏差σを用いて±3σとなる値を求め、第2閾値決定部622は、「C2-3σ」となる濃度値を第2判定閾値Th2とする。このように、第2閾値決定部622は、画像読取部2で読み取られる画像(第2画像)における各画素の濃度値についての度数分布(第2ヒストグラムG2)から求まる標準偏差σを用いて、第2判定閾値Th2を決定する。これにより、第2判定閾値Th2を決定するための演算が比較的簡単になる。
<Step S13>
Next, in step S13, the second threshold value determination unit 622 determines the second determination threshold value Th2 with reference to the second reference concentration value C2. At this time, in the present basic configuration, the second threshold value determination unit 622 determines the second determination threshold value Th2 based on the frequency distribution (second histogram G2) for the density value of each pixel in the second image. Here, as an example, the second threshold value determination unit 622 is a pixel occupying the total number of pixels obtained from the frequency distribution (second histogram G2) for the density value of each pixel in the image (second image) read by the image reading unit 2. The second determination threshold Th2 is determined using the number ratio. Specifically, the second threshold value determination unit 622 obtains a range of the density value in which the ratio of the number of pixels to the total number of pixels is 99.8% centering on the second reference density value C2 in the second histogram G2. The lower limit value (minimum value) in the range of this concentration value is set as the second determination threshold value Th2. In other words, the standard deviation σ is used to obtain a value of ± 3σ with respect to the second reference concentration value C2, and the second threshold value determination unit 622 determines the concentration value of “C2-3σ” as the second determination threshold value Th2. And. As described above, the second threshold value determination unit 622 uses the standard deviation σ obtained from the frequency distribution (second histogram G2) for the density value of each pixel in the image (second image) read by the image reading unit 2. The second determination threshold Th2 is determined. This makes the calculation for determining the second determination threshold Th2 relatively simple.

図8の例では、第2閾値決定部622は、第2ヒストグラムG2より、上記画素数割合にて定まる変動シフト値ΔC2を「4」に決定する。したがって、第2閾値決定部622は、第2基準濃度値C2(241)から「4」を引いた濃度値「237」を、第2判定閾値Th2に決定する。このように、本基本構成では、第2判定閾値Th2は、第2基準濃度値C2を基準としつつも、度数分布(第2ヒストグラムG2)によって変動する変動シフト値ΔC2に応じた値に設定される。ただし、第2閾値決定部622は、第2画像における各画素の濃度値についての度数分布に基づいて、第2判定閾値Th2を決定すればよく、ここで挙げる値は一例に過ぎない。他の例として、第2閾値決定部622は、第2基準濃度値C2を中心として、全画素数に示す画素数割合が任意の値(一例として95.0%)となる画素が含まれる濃度値の範囲を求め、この濃度値の範囲の下限値(最小値)を第2判定閾値Th2としてもよい。 In the example of FIG. 8, the second threshold value determination unit 622 determines the fluctuation shift value ΔC2 determined by the number of pixels ratio to “4” from the second histogram G2. Therefore, the second threshold value determination unit 622 determines the concentration value “237” obtained by subtracting “4” from the second reference concentration value C2 (241) as the second determination threshold value Th2. As described above, in this basic configuration, the second determination threshold value Th2 is set to a value corresponding to the fluctuation shift value ΔC2 that fluctuates depending on the frequency distribution (second histogram G2) while using the second reference concentration value C2 as a reference. To. However, the second threshold value determination unit 622 may determine the second determination threshold value Th2 based on the frequency distribution for the density value of each pixel in the second image, and the values given here are only examples. As another example, the second threshold value determination unit 622 has a density centered on the second reference density value C2 and includes pixels in which the pixel number ratio shown in the total number of pixels is an arbitrary value (95.0% as an example). A range of values may be obtained, and the lower limit value (minimum value) of this range of concentration values may be set as the second determination threshold value Th2.

<ステップS14>
ステップS14において、第2判定部612は、第2画像における各画素が第2異常画素であるか否かを判定する。具体的には、第2判定部612は、第2画像における画素の濃度値と第2判定閾値Th2とを画素ごとに比較する。第2判定部612は、濃度値が第2判定閾値Th2以下である(濃い)画素を、第2異常画素であると判定する。第2判定部612は、第2異常画素と判定した場合には、第2異常画素ごとに主走査方向D1の座標位置を記憶することで、第2異常画素の主走査方向D1の位置を特定する。
<Step S14>
In step S14, the second determination unit 612 determines whether or not each pixel in the second image is a second abnormal pixel. Specifically, the second determination unit 612 compares the density value of the pixels in the second image with the second determination threshold value Th2 for each pixel. The second determination unit 612 determines that the (dark) pixel whose density value is equal to or less than the second determination threshold Th2 is a second abnormal pixel. When the second determination unit 612 determines that the second abnormal pixel is a second abnormal pixel, the second determination unit 612 identifies the position of the main scanning direction D1 of the second abnormal pixel by storing the coordinate position of the main scanning direction D1 for each second abnormal pixel. do.

本基本構成では、第2異常画素を判定するためのステップS14の処理は、第2判定閾値Th2を決定するためのステップS11~S13とは別の第1画像を用いて行われる。つまり、処理部6は、ステップS14を実行するに当たり、再度、ステップS9,S10と同様の処理を行って、第2画像を取得する。具体的には、画像読取部2は、図7においてサンプリングタイミングSt4で示すタイミングで、シートSh1の余白領域Rm1の画像を読み取る読取動作を実施し、新たに第2画像を取得する。新たに取得した第2画像について、第2判定部612は、第2異常画素であるか否かを判定する。ただし、この例に限らず、第2異常画素を判定するためのステップS14の処理には、第2判定閾値Th2を決定するためのステップS11~S13と同一の第2画像が用いられてもよい。 In this basic configuration, the process of step S14 for determining the second abnormal pixel is performed using a first image different from steps S11 to S13 for determining the second determination threshold value Th2. That is, in executing step S14, the processing unit 6 performs the same processing as in steps S9 and S10 again to acquire the second image. Specifically, the image reading unit 2 performs a reading operation of reading an image of the margin region Rm1 of the sheet Sh1 at the timing shown by the sampling timing St4 in FIG. 7, and newly acquires a second image. With respect to the newly acquired second image, the second determination unit 612 determines whether or not it is a second abnormal pixel. However, the present invention is not limited to this example, and the same second image as in steps S11 to S13 for determining the second determination threshold value Th2 may be used in the process of step S14 for determining the second abnormal pixel. ..

<ステップS15,S16>
ステップS15において、判定部61は、第1異常画素と第2異常画素との一致度に応じて、異常画素を判定する。具体的には、判定部61は、第2異常画素のうち、主走査方向D1の位置(座標)が第1異常画素と一致する画素を異常画素であると判定する。言い換えれば、主走査方向D1の同一位置の画素が、色基準部材51の画像(第1画像)より第1異常画素と判定され、かつシートSh1の余白領域Rm1の画像(第2画像)より第2異常画素と判定された場合に、当該画素が異常画素と判定される。そのため、主走査方向D1のある位置の画素が、第1異常画素と判定されたものの第2異常画素と判定されなかった場合、又は第2異常画素と判定されたものの第1異常画素と判定されなかった場合には、当該画素は異常画素でないと判定される。つまり、色基準部材51の画像(第1画像)と、シートSh1の余白領域Rm1の画像(第2画像)とのいずれでも、異常と判定された画素のみが、第2コンタクトガラス42の異物、傷又は汚れ等に起因した異常画素であると判定される。
<Steps S15, S16>
In step S15, the determination unit 61 determines the abnormal pixel according to the degree of coincidence between the first abnormal pixel and the second abnormal pixel. Specifically, the determination unit 61 determines that, among the second abnormal pixels, the pixel whose position (coordinates) in the main scanning direction D1 coincides with the first abnormal pixel is an abnormal pixel. In other words, the pixels at the same position in the main scanning direction D1 are determined to be the first abnormal pixels from the image (first image) of the color reference member 51, and are second from the image (second image) of the margin region Rm1 of the sheet Sh1. 2 When it is determined to be an abnormal pixel, the pixel is determined to be an abnormal pixel. Therefore, when the pixel at a certain position in the main scanning direction D1 is determined to be the first abnormal pixel but not determined to be the second abnormal pixel, or is determined to be the second abnormal pixel but determined to be the first abnormal pixel. If not, it is determined that the pixel is not an abnormal pixel. That is, in both the image of the color reference member 51 (first image) and the image of the margin region Rm1 of the sheet Sh1 (second image), only the pixels determined to be abnormal are the foreign matter of the second contact glass 42. It is determined that the pixel is abnormal due to scratches or stains.

より詳細には、判定部61は、主走査方向D1の一方向(例えば図7の右方向)へ画素位置を走査する際に、第2異常画素と第1異常画素とで開始位置(開始点)が略一致していれば(S15:Yes)、当該第2異常画素を異常画素であると判定する(S16)。ここで、開始位置の「略一致」は、一例として、所定の画素数(例えば3画素)以内であることとする。一方、判定部61は、主走査方向D1の一方向へ画素位置を走査する際に、第2異常画素と第1異常画素とで開始位置(開始点)が略一致していなければ(S15:No)、ステップS16をスキップしてステップS17に進む。つまり、第2異常画素の開始位置から所定の画素数以内に第1異常画素の開始位置があれば、第2異常画素と第1異常画素とで開始位置は略一致する。このように、判定部61は、第1異常画素と第2異常画素との一致度に応じて異常画素を判定すればよく、第1異常画素と第2異常画素とが完全には一致しない場合にも異常画素と判定してもよい。他の例として、判定部61は、第2異常画素と第1異常画素とで、終了位置(終了点)が略一致しているか、又は開始位置から終了位置までの間に重複領域があるかによって、異常画素を判定してもよい。 More specifically, when the determination unit 61 scans the pixel position in one direction of the main scanning direction D1 (for example, the right direction in FIG. 7), the determination unit 61 starts a position (start point) at the second abnormal pixel and the first abnormal pixel. ) Are substantially the same (S15: Yes), it is determined that the second abnormal pixel is an abnormal pixel (S16). Here, it is assumed that the "substantial match" of the start position is within a predetermined number of pixels (for example, 3 pixels) as an example. On the other hand, when the determination unit 61 scans the pixel position in one direction of the main scanning direction D1, if the start positions (start points) of the second abnormal pixel and the first abnormal pixel do not substantially match (S15: No), skip step S16 and proceed to step S17. That is, if the start position of the first abnormal pixel is within a predetermined number of pixels from the start position of the second abnormal pixel, the start position of the second abnormal pixel and the first abnormal pixel are substantially the same. In this way, the determination unit 61 may determine the abnormal pixel according to the degree of coincidence between the first abnormal pixel and the second abnormal pixel, and the first abnormal pixel and the second abnormal pixel do not completely match. It may also be determined that the pixel is abnormal. As another example, in the determination unit 61, is the end position (end point) substantially the same between the second abnormal pixel and the first abnormal pixel, or is there an overlapping region between the start position and the end position? May determine the abnormal pixel.

<ステップS17>
ステップS17において、補正処理部63は、画像読取部2で読み取られる画像のうち、主走査方向D1の位置が異常画素と一致する画素の濃度値を補正する。つまり、ステップS16で異常画素と判定された画素と主走査方向D1の位置が一致する画素は、このとき読み取ったシートSh1の画像において筋画像L1の原因となり得るので、ステップS17において、筋画像L1を構成する画素の濃度値の補正が行われる。このとき、補正処理部63は、1枚のシートSh1の画像の全体を対象に、異常画素と主走査方向D1の位置が一致する画素(筋画像L1を構成する画素)について濃度値を補間することで、濃度値の補正を行う。
<Step S17>
In step S17, the correction processing unit 63 corrects the density value of the pixel whose position in the main scanning direction D1 coincides with the abnormal pixel among the images read by the image reading unit 2. That is, a pixel whose position is the same as that of the pixel determined to be an abnormal pixel in step S16 in the main scanning direction D1 can cause the streak image L1 in the image of the sheet Sh1 read at this time. The density value of the pixels constituting the above is corrected. At this time, the correction processing unit 63 interpolates the density value for the entire image of one sheet Sh1 for the pixels (pixels constituting the streak image L1) in which the positions of the abnormal pixels and the main scanning direction D1 coincide with each other. By doing so, the density value is corrected.

具体的には、補正処理部63は、図9に示すように、濃度値が第2判定閾値Th2以下である(濃い)画素の濃度値を、その画素に主走査方向D1において最も近い位置の正常画素の濃度値に置換する。つまり、第2コンタクトガラス42に異物、傷又は汚れ等が付着している場合には、以降に画像読取部2にて読み取られる画像についても、異常画素と判定された画素と主走査方向D1の位置が一致する画素の濃度値は、第2判定閾値Th2以下となる。一例として、図10の上段に示すように、画像中の主走査方向D1に延びる画素列の画素に対し、主走査方向D1に連続する画素番号「1」~「15」が付されている場合に、画素番号「5」~「11」の画素が異常画素である場合を想定する。この場合、補正処理部63は、主走査方向D1の位置が異常画素と一致する画素、つまり画素番号が「5」~「11」の画素を、筋画像L1を構成する画素として補正対象とする。そのため、補正処理部63は、図10の下段に示すように、画素番号「5」~「11」の画素の濃度値を、これらの画素に主走査方向D1において最も近い位置の画素、つまり画素番号が「4」又は「12」の正常画素の濃度値に置換する。 Specifically, as shown in FIG. 9, the correction processing unit 63 sets the density value of the (dark) pixel whose density value is equal to or less than the second determination threshold Th2 at the position closest to the pixel in the main scanning direction D1. Replace with the density value of normal pixels. That is, when foreign matter, scratches, stains, etc. are attached to the second contact glass 42, the image read by the image reading unit 2 thereafter also has a pixel determined to be an abnormal pixel and a main scanning direction D1. The density value of the pixels whose positions match is equal to or less than the second determination threshold value Th2. As an example, as shown in the upper part of FIG. 10, when the pixels of the pixel array extending in the main scanning direction D1 in the image are assigned pixel numbers "1" to "15" continuous with the main scanning direction D1. In addition, it is assumed that the pixels of the pixel numbers "5" to "11" are abnormal pixels. In this case, the correction processing unit 63 sets the pixel whose position in the main scanning direction D1 coincides with the abnormal pixel, that is, the pixel whose pixel number is "5" to "11" as the pixel constituting the streak image L1. .. Therefore, as shown in the lower part of FIG. 10, the correction processing unit 63 sets the density values of the pixels of the pixel numbers “5” to “11” to the pixels closest to these pixels in the main scanning direction D1, that is, the pixels. The number is replaced with the density value of the normal pixel of "4" or "12".

これにより、図9の下段に示すように、主走査方向D1において、異常画素と同一の範囲Ra1にある画素の濃度値と、その周辺の画素の濃度値との差が小さくなる。言い換えれば、範囲Ra1内の画素の濃度値について、第2基準濃度値C2との差が小さくなり、第2コンタクトガラス42の異物、傷又は汚れ等に起因した局所的な濃度値の低下が抑制される。その結果、図11に示すように、画像読取部2で読み取られるシートSh1全体の画像Im101に筋画像L1が含まれていても、補正後の画像Im102においては、その周辺の画素との濃度値の差が小さくなる。よって、補正後のシートSh1全体の画像Im102では、筋画像L1が除去又は低減される。ただし、補正処理部63による濃度値の補正方法は、これに限らない。 As a result, as shown in the lower part of FIG. 9, in the main scanning direction D1, the difference between the density value of the pixel in the same range Ra1 as the abnormal pixel and the density value of the peripheral pixel becomes small. In other words, the difference between the density value of the pixels in the range Ra1 and the second reference density value C2 becomes small, and the local decrease in the density value due to foreign matter, scratches, stains, etc. of the second contact glass 42 is suppressed. Will be done. As a result, as shown in FIG. 11, even if the streak image L1 is included in the image Im101 of the entire sheet Sh1 read by the image reading unit 2, the corrected image Im102 has a density value with the surrounding pixels. The difference between is small. Therefore, in the image Im102 of the entire sheet Sh1 after correction, the streak image L1 is removed or reduced. However, the method for correcting the density value by the correction processing unit 63 is not limited to this.

<ステップS18>
ステップS18において、処理部6は、記憶部25に処理対象の読取画像が存在するか否かを判定する。つまり、ステップS17の補正処理部63による補正処理は、シートSh1全体の画像を対象にして、シートSh1ごとに行われる。そのため、画像読取部2が複数のシートSh1の画像を読み取った場合には、1枚のシートSh1の画像についての補正処理の完了後にも、記憶部25には、処理対象の読取画像として別のシートSh1の画像が存在する。処理部6は、記憶部25に処理対象の画像が存在すると判定した場合(S18:Yes)、ステップS9に戻る。処理部6は、記憶部25に処理対象の画像が存在しないと判定した場合(S18:No)、ステップS19に進む。
<Step S18>
In step S18, the processing unit 6 determines whether or not the scanned image to be processed exists in the storage unit 25. That is, the correction process by the correction process unit 63 in step S17 is performed for each sheet Sh1 with respect to the image of the entire sheet Sh1. Therefore, when the image reading unit 2 reads the images of the plurality of sheets Sh1, the storage unit 25 has another scanned image to be processed even after the correction processing for the image of one sheet Sh1 is completed. There is an image of Sheet Sh1. When the processing unit 6 determines that the image to be processed exists in the storage unit 25 (S18: Yes), the processing unit 6 returns to step S9. When the processing unit 6 determines that the image to be processed does not exist in the storage unit 25 (S18: No), the processing unit 6 proceeds to step S19.

<ステップS19>
ステップS19において、処理部6は、原稿セット部71の所定位置に設けられた原稿センサーの出力信号に基づき、原稿セット部71に、まだ画像の読み取りが行われていないシートSh1が存在するか否かを判定する。処理部6は、原稿セット部71にシートSh1が存在すると判定した場合(S19:No)、ステップS9に戻る。処理部6は、原稿セット部71にシートSh1が存在しないと判定した場合(S19:Yes)、一連の処理を終了する。以上説明した画像処理方法の手順は一例に過ぎず、図6のフローチャートに示す処理の順番が適宜入れ替わってもよい。
<Step S19>
In step S19, the processing unit 6 determines whether or not the document setting unit 71 has a sheet Sh1 for which the image has not been read yet, based on the output signal of the document sensor provided at the predetermined position of the document setting unit 71. Is determined. When the processing unit 6 determines that the sheet Sh1 exists in the document setting unit 71 (S19: No), the processing unit 6 returns to step S9. When the processing unit 6 determines that the sheet Sh1 does not exist in the document setting unit 71 (S19: Yes), the processing unit 6 ends a series of processing. The procedure of the image processing method described above is only an example, and the order of processing shown in the flowchart of FIG. 6 may be changed as appropriate.

以上説明したように、本基本構成では、異常画素の判定に用いられる判定閾値は、閾値決定部62にて、画像読取部2で読み取られる画像における各画素の濃度値についての度数分布に基づいて、決定される。すなわち、上記関連技術のように、画素数が最も多い基準濃度値より「予め定められた値」分だけ濃度が濃い濃度値が判定閾値Th0となる場合に比べて、本基本構成に係る画像読取装置10では、判定閾値を適切に決定しやすくなる。つまり、判定閾値は、固定シフト値ΔC0のように「予め定められた値」を用いて固定的に決定されるのではなく、画像読取部2で読み取られる画像における各画素の濃度値についての度数分布に基づいて、動的に決定される。よって、閾値決定部62は、例えば、シートSh1の下地濃度のばらつきに応じて適切な判定閾値を決定することができ、画像読取装置10としては、異常画素の判定精度が低下しにくい、という利点がある。 As described above, in the present basic configuration, the determination threshold value used for determining the abnormal pixel is based on the frequency distribution of the density value of each pixel in the image read by the image reading unit 2 in the threshold value determining unit 62. ,It is determined. That is, as compared with the case where the density value having a density higher by "a predetermined value" than the reference density value having the largest number of pixels becomes the determination threshold value Th0 as in the above-mentioned related technology, the image reading according to this basic configuration is performed. In the device 10, it becomes easy to appropriately determine the determination threshold value. That is, the determination threshold value is not fixedly determined using a "predetermined value" such as the fixed shift value ΔC0, but is a frequency for the density value of each pixel in the image read by the image reading unit 2. It is dynamically determined based on the distribution. Therefore, for example, the threshold value determination unit 62 can determine an appropriate determination threshold value according to the variation in the background density of the sheet Sh1, and the image reading device 10 has an advantage that the determination accuracy of abnormal pixels is unlikely to decrease. There is.

例えば、上記関連技術のように、固定シフト値ΔC0を比較的大きな値である「12」に設定されていると仮定すれば、専用用紙のように、下地濃度のばらつきが比較的小さなシートSh1については、第2判定閾値Th2は緩め(小さめ)の値となる。つまり、図8の下段に例示するような第2ヒストグラムG2が得られる場合、第2判定閾値Th2は、第2基準濃度値C2(241)から固定シフト値ΔC0である「12」を引いた濃度値「229」となる。そのため、第2判定閾値Th2が小さめの値となり、図12の左側に示すように、異常画素と判定される画素の範囲Ra1が比較的狭くなり、かつ範囲Ra1内の画素の濃度値と第2基準濃度値C2との差も比較的大きくなる。その結果、第2コンタクトガラス42の異物、傷又は汚れ等に起因した局所的な濃度値の低下が抑制されにくく、補正後の画像に筋画像L1が残りやすくなる。 For example, assuming that the fixed shift value ΔC0 is set to a relatively large value of “12” as in the above-mentioned related technology, the sheet Sh1 having a relatively small variation in the base density, such as special paper, is used. The second determination threshold Th2 is a loose (small) value. That is, when the second histogram G2 as illustrated in the lower part of FIG. 8 is obtained, the second determination threshold value Th2 is the concentration obtained by subtracting the fixed shift value ΔC0 “12” from the second reference concentration value C2 (241). The value is "229". Therefore, the second determination threshold Th2 becomes a small value, and as shown on the left side of FIG. 12, the range Ra1 of the pixels determined to be abnormal pixels is relatively narrow, and the density value of the pixels in the range Ra1 and the second. The difference from the reference concentration value C2 is also relatively large. As a result, it is difficult to suppress the local decrease in the density value due to foreign matter, scratches, stains, etc. of the second contact glass 42, and the streak image L1 is likely to remain in the corrected image.

これに対して、本基本構成では、度数分布に基づいて変動する変動シフト値ΔC2を用いて第2判定閾値Th2が決定されるため、専用用紙のように、下地濃度のばらつきが比較的小さなシートSh1についても、第2判定閾値Th2は適切な値となる。つまり、図8の下段に例示するような第2ヒストグラムG2が得られる場合、第2判定閾値Th2は、第2基準濃度値C2(241)から変動シフト値ΔC2である「4」を引いた濃度値「237」となる。そのため、第2判定閾値Th2が適切な値となり、図12の右側に示すように、異常画素と判定される画素の範囲Ra1も適切となり、かつ範囲Ra1内の画素の濃度値と第2基準濃度値C2との差も比較的小さくなる。その結果、第2コンタクトガラス42の異物、傷又は汚れ等に起因した局所的な濃度値の低下が抑制されやすく、補正後の画像に筋画像L1が残りにくくなる。 On the other hand, in this basic configuration, since the second determination threshold value Th2 is determined using the fluctuation shift value ΔC2 that fluctuates based on the frequency distribution, a sheet having a relatively small variation in the base density like a special paper. For Sh1, the second determination threshold value Th2 is also an appropriate value. That is, when the second histogram G2 as illustrated in the lower part of FIG. 8 is obtained, the second determination threshold value Th2 is the concentration obtained by subtracting the fluctuation shift value ΔC2 “4” from the second reference concentration value C2 (241). The value is "237". Therefore, the second determination threshold Th2 becomes an appropriate value, and as shown on the right side of FIG. 12, the range Ra1 of the pixel determined to be an abnormal pixel is also appropriate, and the density value and the second reference density of the pixels in the range Ra1 are also appropriate. The difference from the value C2 is also relatively small. As a result, the local decrease in the density value due to foreign matter, scratches, stains, etc. of the second contact glass 42 is easily suppressed, and the streak image L1 is less likely to remain in the corrected image.

一方で、本基本構成では、度数分布に基づいて変動する変動シフト値ΔC2を用いて第2判定閾値Th2が決定されるため、更紙、再生紙又は新聞紙等の、下地濃度のばらつきが比較的大きなシートSh1についても、第2判定閾値Th2は適切な値となる。つまり、図5の下段に例示するような第2ヒストグラムG2が得られる場合、第2閾値決定部622は、上記画素数割合にて定まる変動シフト値ΔC2を「12」に決定する。したがって、第2閾値決定部622は、第2基準濃度値C2(200)から「12」を引いた濃度値「188」を、第2判定閾値Th2に決定する。そのため、シートSh1の種類が変わっても、第2判定閾値Th2は適切な値となって、第2コンタクトガラス42の異物、傷又は汚れ等に起因した局所的な濃度値の低下が抑制されやすく、補正後の画像に筋画像L1が残りにくくなる。 On the other hand, in this basic configuration, since the second determination threshold value Th2 is determined using the fluctuation shift value ΔC2 that fluctuates based on the frequency distribution, the variation in the base density of the stencil paper, recycled paper, newspaper, etc. is relatively large. Even for a large sheet Sh1, the second determination threshold value Th2 is an appropriate value. That is, when the second histogram G2 as illustrated in the lower part of FIG. 5 is obtained, the second threshold value determination unit 622 determines the fluctuation shift value ΔC2 determined by the number of pixels ratio to be “12”. Therefore, the second threshold value determination unit 622 determines the concentration value “188” obtained by subtracting “12” from the second reference concentration value C2 (200) as the second determination threshold value Th2. Therefore, even if the type of the sheet Sh1 is changed, the second determination threshold value Th2 becomes an appropriate value, and it is easy to suppress a local decrease in the concentration value due to foreign matter, scratches, stains, etc. of the second contact glass 42. , The streak image L1 is less likely to remain in the corrected image.

また、本基本構成では、閾値決定部62は、第1画像の度数分布に基づいて第1判定閾値Th1を決定する処理と、第2画像の度数分布に基づいて第2判定閾値Th2を決定する処理と、の少なくとも一方を行う。そして、判定部61では、第1判定閾値Th1を用いて判定される第1異常画素と第2判定閾値Th2を用いて判定される第2異常画素との一致度に応じて、異常画素を判定する。そのため、判定部61では、第2コンタクトガラス42に付着した異物、傷又は汚れ等に起因した異常画素と、シートSh1に形成されている例えば罫線等の筋状の画像とを区別して、異常画素を判定することができる。しかも、色基準部材51の画像である第1画像の度数分布に基づいて第1判定閾値Th1を決定すれば、例えば、色基準部材51に色褪せ等の変色が生じても、第1判定閾値Th1を、第1画像の度数分布に応じた適切な値とすることができる。 Further, in the present basic configuration, the threshold value determination unit 62 determines the first determination threshold value Th1 based on the frequency distribution of the first image and the second determination threshold value Th2 based on the frequency distribution of the second image. Do at least one of the processing. Then, the determination unit 61 determines the abnormal pixel according to the degree of coincidence between the first abnormal pixel determined using the first determination threshold Th1 and the second abnormal pixel determined using the second determination threshold Th2. do. Therefore, the determination unit 61 distinguishes between abnormal pixels caused by foreign matter, scratches, stains, etc. adhering to the second contact glass 42 and streaky images such as ruled lines formed on the sheet Sh1 and abnormal pixels. Can be determined. Moreover, if the first determination threshold Th1 is determined based on the frequency distribution of the first image which is the image of the color reference member 51, for example, even if the color reference member 51 is discolored such as fading, the first determination threshold Th1 Can be set to an appropriate value according to the frequency distribution of the first image.

さらに、本基本構成では、閾値決定部62は、第1判定閾値Th1と第2判定閾値Th2との両方を決定する。したがって、色基準部材51の色褪せ等の変色に応じて適切な第1判定閾値Th1を設定しつつ、シートSh1の下地濃度のばらつきに応じて適切な第2判定閾値Th2を設定でき、第1異常画素及び第2異常画素のいずれについても、判定精度が低下しにくい。 Further, in the present basic configuration, the threshold value determination unit 62 determines both the first determination threshold value Th1 and the second determination threshold value Th2. Therefore, it is possible to set an appropriate second determination threshold value Th2 according to the variation in the base density of the sheet Sh1 while setting an appropriate first determination threshold value Th1 according to discoloration such as fading of the color reference member 51, and the first abnormality. The determination accuracy of both the pixel and the second abnormal pixel is unlikely to decrease.

[4]変形例
画像形成装置1に含まれる複数の構成要素は、複数の筐体に分散して設けられていてもよい。例えば、判定部61、閾値決定部62、補正処理部63及び読取制御部64の少なくとも1つは、処理部6の一機能として実現される構成に限らず、処理部6とは別の筐体に設けられていてもよい。
[4] Modification Example The plurality of components included in the image forming apparatus 1 may be dispersedly provided in a plurality of housings. For example, at least one of the determination unit 61, the threshold value determination unit 62, the correction processing unit 63, and the reading control unit 64 is not limited to the configuration realized as one function of the processing unit 6, but is a housing separate from the processing unit 6. It may be provided in.

また、画像読取装置10は、画像(画像データ)を読み取る機能を有していればよく、画像形成部3と共に画像形成装置1を構成することは必須ではない。すなわち、画像読取装置10は、画像を形成する機能を有する画像形成装置1の一部としての態様に限らず、種々の態様で具現化される。例えば、画像読取装置10は、画像を形成する機能(画像形成部3)を持たず、読み取った画像(画像データ)を外部に出力するスキャナー又はファクシミリ装置等であってもよい。 Further, the image reading device 10 may have a function of reading an image (image data), and it is not essential to configure the image forming device 1 together with the image forming unit 3. That is, the image reading device 10 is not limited to the aspect as a part of the image forming apparatus 1 having a function of forming an image, but is embodied in various embodiments. For example, the image reading device 10 may be a scanner or a facsimile machine that does not have a function of forming an image (image forming unit 3) and outputs the read image (image data) to the outside.

また、画像読取装置10において、第1の読み取り方式(原稿固定読み取り方式)及び第2の読み取り方式(シートスルー読み取り方式)の2種類の読み取り方式による画像の読み取りが可能であることは、必須ではない。すなわち、画像読取装置10は、シートスルー読み取り方式による画像の読み取りが可能であればよく、原稿固定読み取り方式による画像の読み取りの機能を有さなくてもよい。 Further, it is not essential that the image reading device 10 can read an image by two kinds of reading methods, a first reading method (fixed document reading method) and a second reading method (sheet-through reading method). do not have. That is, the image reading device 10 may not have the function of reading an image by the original fixed reading method, as long as the image can be read by the sheet-through reading method.

また、基本構成では、判定部61が、第1異常画素と第2異常画素との一致度に応じて異常画素を判定するが、この構成は必須ではなく、判定部61は、例えば、第1異常画素と第2異常画素との一方のみを判定してもよい。この場合、処理部6は、判定した第1異常画素又は第2異常画素を異常画素として、補正処理部63にて濃度値の補正等を行う。 Further, in the basic configuration, the determination unit 61 determines the abnormal pixel according to the degree of coincidence between the first abnormal pixel and the second abnormal pixel, but this configuration is not essential, and the determination unit 61 is, for example, the first. Only one of the abnormal pixel and the second abnormal pixel may be determined. In this case, the processing unit 6 uses the determined first abnormal pixel or the second abnormal pixel as an abnormal pixel, and the correction processing unit 63 corrects the density value and the like.

また、基本構成では、閾値決定部62が、第1判定閾値Th1と第2判定閾値Th2との両方を、それぞれ第1画像及び第2画像の度数分布に基づいて決定するが、この構成は必須ではない。つまり、閾値決定部62は、第1画像の度数分布に基づいて第1判定閾値Th1を決定する処理と、第2画像の度数分布に基づいて第2判定閾値Th2を決定する処理と、の一方のみを行ってもよい。この場合、第1判定閾値Th1と第2判定閾値Th2とのうち、閾値決定部62で決定されない方の判定閾値は、固定値として予め設定されていてもよい。 Further, in the basic configuration, the threshold value determination unit 62 determines both the first determination threshold value Th1 and the second determination threshold value Th2 based on the frequency distribution of the first image and the second image, respectively, but this configuration is indispensable. is not it. That is, the threshold value determination unit 62 determines one of a process of determining the first determination threshold value Th1 based on the frequency distribution of the first image and a process of determining the second determination threshold value Th2 based on the frequency distribution of the second image. You may only do. In this case, the determination threshold value of the first determination threshold value Th1 and the second determination threshold value Th2, whichever is not determined by the threshold value determination unit 62, may be preset as a fixed value.

また、基本構成では、シートSh1の先頭側のヘッダー領域の画像が第1画像として読み取られるが、これに限らず、例えば、シートSh1のフッター領域の画像が第1画像として読み取られてもよい。 Further, in the basic configuration, the image of the header region on the leading side of the sheet Sh1 is read as the first image, but the present invention is not limited to this, and for example, the image of the footer region of the sheet Sh1 may be read as the first image.

また、基本構成では、濃度が薄いほど濃度値が大きくなるように濃度と濃度値との関係が規定されているが、これに限らず、例えば、濃度が濃いほど濃度値が大きくなるように濃度と濃度値との関係が規定されてもよい。 Further, in the basic configuration, the relationship between the concentration and the concentration value is specified so that the thinner the concentration is, the larger the concentration value is, but the relationship is not limited to this. For example, the higher the concentration is, the larger the concentration is. The relationship between and the concentration value may be specified.

(実施形態)
本実施形態に係る画像読取装置10A(図13参照)は、判定部61が、色基準部材51Aの異物、傷又は汚れ等と、第2コンタクトガラス42の異物、傷又は汚れ等とを区別して、異常画素を判定する点で、基本構成に係る画像読取装置10と相違する。以下、基本構成と同様の構成については、共通の符号を付して適宜説明を省略する。
(Embodiment)
In the image reading device 10A (see FIG. 13) according to the present embodiment, the determination unit 61 distinguishes between foreign matter, scratches, stains, etc. of the color reference member 51A and foreign matter, scratches, stains, etc. of the second contact glass 42. It is different from the image reading device 10 according to the basic configuration in that it determines an abnormal pixel. Hereinafter, the same configurations as the basic configurations will be designated by common reference numerals and description thereof will be omitted as appropriate.

本実施形態では、判定部61が、色基準部材51Aの異物、傷又は汚れ等と、第2コンタクトガラス42の異物、傷又は汚れ等とを区別するので、基本的には、第1判定部611及び第1閾値決定部621の機能が基本構成と相違する。そのため、第2判定部612及び第2閾値決定部622の機能については、基本的に基本構成と共通である。 In the present embodiment, the determination unit 61 distinguishes between the foreign matter, scratches, stains, etc. of the color reference member 51A and the foreign matter, scratches, stains, etc. of the second contact glass 42, and therefore, basically, the first determination unit The functions of 611 and the first threshold value determination unit 621 are different from the basic configuration. Therefore, the functions of the second determination unit 612 and the second threshold value determination unit 622 are basically the same as the basic configuration.

本実施形態では、画像読取装置10Aは、色基準部材51Aの画像読取部2との対向部位が異なる複数のタイミングにおいて、色基準部材51Aの画像を画像読取部2で読み取ることで、色基準部材51Aの複数の画像を取得する。その上で、判定部61は、これら複数の画像についての、画素ごとの濃度値と判定閾値との比較結果に基づいて異常画素を判定する。ここで、色基準部材51Aの複数の画像は、複数の第1画像であって、これら複数の画像(第1画像)について、第1判定部611が、画素ごとの濃度値と第1判定閾値Th1との比較結果に基づいて第1異常画素を抽出する。 In the present embodiment, the image reading device 10A reads the image of the color reference member 51A by the image reading unit 2 at a plurality of timings at which the portions facing the image reading unit 2 of the color reference member 51A are different from each other. Acquire a plurality of images of 51A. Then, the determination unit 61 determines the abnormal pixel based on the comparison result between the density value for each pixel and the determination threshold value for these plurality of images. Here, the plurality of images of the color reference member 51A are a plurality of first images, and for these plurality of images (first images), the first determination unit 611 determines the density value for each pixel and the first determination threshold value. The first abnormal pixel is extracted based on the comparison result with Th1.

本開示でいう「色基準部材51Aの画像読取部2との対向部位」は、色基準部材51Aのうち画像読取部2にて画像を読み取り可能な部位である。そのため、色基準部材51Aの表面において、画像読取部2のうちの少なくとも読み込む画像に相当する光が入射する部位に対して第2コンタクトガラス42を介して対向する部位が、色基準部材51Aの画像読取部2との対向部位となる。つまり、本実施形態では、色基準部材51Aの表面において、画像読取部2のうちの少なくとも読取ユニット20と対向する部位、言い換えれば、第2コンタクトガラス42と対向する部位が、「色基準部材51Aの画像読取部2との対向部位」となる。画像読取装置10Aは、このような色基準部材51Aの画像読取部2との対向部位が異なる複数のタイミングにおいて、色基準部材51Aの画像を画像読取部2で読み取ることで、複数の第1画像を取得する。 The "portion facing the image reading unit 2 of the color reference member 51A" referred to in the present disclosure is a portion of the color reference member 51A in which the image can be read by the image reading unit 2. Therefore, on the surface of the color reference member 51A, the portion of the image reading unit 2 facing at least the portion of the image reading unit 2 where the light corresponding to the image to be read is incident via the second contact glass 42 is the image of the color reference member 51A. It is a portion facing the reading unit 2. That is, in the present embodiment, on the surface of the color reference member 51A, the portion of the image reading unit 2 facing at least the reading unit 20, in other words, the portion facing the second contact glass 42 is the “color reference member 51A”. It becomes a portion facing the image reading unit 2 of the above. The image reading device 10A reads the image of the color reference member 51A by the image reading unit 2 at a plurality of timings at which the portions facing the image reading unit 2 of the color reference member 51A are different from each other, whereby a plurality of first images are obtained. To get.

また、本実施形態では、色基準部材51Aは回転可能なローラーであって、ローラーの回転に伴って色基準部材51Aの画像読取部2との対向部位が変化する。本実施形態では一例として、図13に示すように、色基準部材51Aは、色基準部材51Aと第2コンタクトガラス42との隙間をシートSh1が通過するときにシートSh1の進路をガイドする、搬送ガイドローラーである。搬送ガイドローラーとしての色基準部材51Aは、モーター等の動力源によって駆動され、図13に矢印A1で示す方向(反時計回り)に回転する。これにより、色基準部材51Aである搬送ガイドローラーは、シートSh1を下方(第2コンタクトガラス42側)に押し付けつつ搬送する。このような色基準部材51Aにおいては、その回転(自転)により、画像読取部2との対向部位、つまり第2コンタクトガラス42と対向する部位が変化する。 Further, in the present embodiment, the color reference member 51A is a rotatable roller, and the portion of the color reference member 51A facing the image reading unit 2 changes as the roller rotates. As an example in the present embodiment, as shown in FIG. 13, the color reference member 51A guides the course of the sheet Sh1 when the sheet Sh1 passes through the gap between the color reference member 51A and the second contact glass 42. It is a guide roller. The color reference member 51A as the transport guide roller is driven by a power source such as a motor and rotates in the direction (counterclockwise) indicated by the arrow A1 in FIG. As a result, the transport guide roller, which is the color reference member 51A, transports the sheet Sh1 while pressing it downward (on the side of the second contact glass 42). In such a color reference member 51A, the portion facing the image reading unit 2, that is, the portion facing the second contact glass 42 changes due to its rotation (rotation).

また、本実施形態では、色基準部材51Aの画像読取部2との対向部位が異なる複数のタイミングで取得される色基準部材51Aの複数の画像はM個(Mは2以上の整数)の画像である。そして、判定部61は、M個の画像のうちのN個の画像について、主走査方向D1の同じ位置で濃度値と判定閾値との比較結果から異常と判定される画素を、異常画素と判定する。ここで、「N」は「M」以下の整数である。本実施形態では一例として、NはMと同値であることとする。言い換えれば、判定部61は、色基準部材51AのM個の画像の全てにおいて、主走査方向D1の同じ位置で濃度値と判定閾値との比較結果から異常と判定される画素を、異常画素と判定する。 Further, in the present embodiment, the plurality of images of the color reference member 51A acquired at a plurality of timings in which the portions facing the image reading unit 2 of the color reference member 51A are different are M images (M is an integer of 2 or more). Is. Then, the determination unit 61 determines that N pixels out of the M images are abnormal pixels at the same position in the main scanning direction D1 from the comparison result between the density value and the determination threshold value. do. Here, "N" is an integer less than or equal to "M". In this embodiment, as an example, N is assumed to have the same value as M. In other words, in all of the M images of the color reference member 51A, the determination unit 61 refers to pixels that are determined to be abnormal from the comparison result between the density value and the determination threshold value at the same position in the main scanning direction D1 as abnormal pixels. judge.

より詳細には、第1判定部611は、主走査方向D1の一方向へ画素位置を走査する際に、N個の第1画像において、異常と判定される画素の開始位置(開始点)が略一致していれば、当該画素を第1異常画素であると判定する。ここで、開始位置の「略一致」は、一例として、所定の画素数(例えば3画素)以内であることとする。このように、判定部61は、N個の(第1)画像において、異常と判定される画素が略同じ位置で異常と判定されていれば、画素の位置が完全には一致しない場合にも、(第1)異常画素と判定してもよい。他の例として、判定部61は、N個の(第1)画像において、異常と判定される画素の終了位置(終了点)が略一致しているか、又は開始位置から終了位置までの間に重複領域があるかによって、(第1)異常画素を判定してもよい。 More specifically, when the first determination unit 611 scans the pixel positions in one direction of the main scanning direction D1, the start positions (start points) of the pixels determined to be abnormal in the N first images are determined. If they are substantially the same, it is determined that the pixel is the first abnormal pixel. Here, it is assumed that the "substantial match" of the start position is within a predetermined number of pixels (for example, 3 pixels) as an example. As described above, if the pixels determined to be abnormal are determined to be abnormal at substantially the same position in the N (first) images, the determination unit 61 may not completely match the positions of the pixels. , (1st) It may be determined as an abnormal pixel. As another example, in the N (first) images, the determination unit 61 substantially matches the end positions (end points) of the pixels determined to be abnormal, or is between the start position and the end position. The (first) abnormal pixel may be determined depending on whether or not there is an overlapping region.

また、本実施形態では、閾値決定部62は、色基準部材51Aの画像読取部2との対向部位が異なる2以上のタイミングにおいて画像読取部2で読み取られる色基準部材51Aの2以上の画像を用いて、判定閾値を決定する。つまり、第1閾値決定部621は、上述したような複数の第1画像のうちの2以上の第1画像を用いて、第1判定閾値Th1を決定する。閾値決定部62は、2以上の画像における各画素の濃度値についての度数分布に基づいて、判定閾値を決定する。つまり、第1閾値決定部621は、2以上の第1画像における各画素の濃度値についての度数分布(ヒストグラム)に基づいて、第1判定閾値Th1を決定する。 Further, in the present embodiment, the threshold value determination unit 62 displays two or more images of the color reference member 51A read by the image reading unit 2 at two or more timings at which the portions facing the image reading unit 2 of the color reference member 51A are different. Is used to determine the determination threshold. That is, the first threshold value determination unit 621 determines the first determination threshold value Th1 by using two or more first images out of the plurality of first images as described above. The threshold value determination unit 62 determines the determination threshold value based on the frequency distribution for the density value of each pixel in two or more images. That is, the first threshold value determination unit 621 determines the first determination threshold value Th1 based on the frequency distribution (histogram) for the density value of each pixel in the two or more first images.

ところで、関連技術として、基本構成でも説明したように、1つの第1画像から第1異常画素を抽出する技術が知られている。すなわち、関連技術に係る画像読取装置は、搬送されるシートの画像を読取可能な画像読取部と、濃度算出部と、閾値決定部と、判定部と、画像処理部と、を備える。濃度算出部は、シートの読み取り前に、画像読取部で色基準部材より読み取られた第1画像(第2読取画像)について濃度値ごとの画素数を示すヒストグラムを作成し、ヒストグラムに基づいて第1判定閾値(第2閾値)を決定する。判定部は、第1画像の各画素のうち第1判定閾値より濃度が濃い濃度値の画素を、異常を示す第1異常画素(第2異常画素)と判定する。 By the way, as a related technique, as described in the basic configuration, a technique for extracting a first abnormal pixel from one first image is known. That is, the image reading device according to the related technology includes an image reading unit capable of reading an image of a conveyed sheet, a density calculation unit, a threshold value determination unit, a determination unit, and an image processing unit. Before reading the sheet, the density calculation unit creates a histogram showing the number of pixels for each density value for the first image (second scanned image) read from the color reference member by the image reading unit, and the first image is based on the histogram. 1 Determine the determination threshold (second threshold). The determination unit determines that among the pixels of the first image, the pixel having a density value higher than the first determination threshold value is the first abnormal pixel (second abnormal pixel) indicating an abnormality.

さらに、関連技術では、濃度算出部は、画像読取部でシートより読み取られた第2画像(第1読取画像)のうち、シートの余白領域に対応する画像について濃度値ごとの画素数を示すヒストグラムを作成し、ヒストグラムに基づいて第2判定閾値(第1閾値)を決定する。判定部は、第2画像の各画素のうち第2判定閾値より濃度が濃い濃度値の画素であって、第1異常画素と主走査方向の位置が一致する画素を、異常を示す異常画素と判定する。そして、画像処理部は、第2画像のうち、主走査方向D1の位置が異常画素と一致する画素の濃度値を補正する。 Further, in the related technology, the density calculation unit is a histogram showing the number of pixels for each density value for the image corresponding to the margin area of the sheet among the second images (first scanned images) read from the sheet by the image reading unit. Is created, and the second determination threshold (first threshold) is determined based on the histogram. The determination unit is a pixel having a density value higher than that of the second determination threshold among the pixels of the second image, and a pixel whose position in the main scanning direction coincides with the first abnormal pixel is referred to as an abnormal pixel indicating an abnormality. judge. Then, the image processing unit corrects the density value of the second image in which the position in the main scanning direction D1 coincides with the abnormal pixel.

しかし、上記関連技術では、色基準部材の異物、傷又は汚れ等を、コンタクトガラスの異物、傷又は汚れ等と誤検知することで、異常画素の判定精度が低下する場合がある。つまり、関連技術では、色基準部材の異物、傷又は汚れ等と、コンタクトガラスの異物、傷又は汚れ等と区別できないため、色基準部材の異物、傷又は汚れ等であっても第1異常画素と判定してしまう場合がある。そもそも、色基準部材の異物、傷又は汚れ等であれば、シートの画像の読み取り時には、色基準部材の手前にシートが位置するために、読取画像への影響はない。この場合に、例えば、シートの余白領域であって主走査方向D1の位置が第1異常画素と同じ位置に罫線等がある場合、当該位置の画素が異常画素と判定され、濃度値の補正対象とされることがある。これにより、シートの画像として不正確な画像(原稿情報)が読み取られるおそれがある。 However, in the above-mentioned related technique, foreign matter, scratches, stains, etc. of the color reference member may be erroneously detected as foreign matter, scratches, stains, etc. of the contact glass, and the determination accuracy of the abnormal pixel may be lowered. That is, in the related technology, foreign matter, scratches, stains, etc. of the color reference member cannot be distinguished from foreign matter, scratches, stains, etc. of the contact glass. It may be judged that. In the first place, if the color reference member is foreign matter, scratched, or dirty, the sheet is located in front of the color reference member when the image of the sheet is read, so that the read image is not affected. In this case, for example, if there is a ruled line or the like at the same position as the first abnormal pixel in the margin area of the sheet in the main scanning direction D1, the pixel at that position is determined to be an abnormal pixel and the density value is corrected. May be said. As a result, an inaccurate image (original information) may be read as an image on the sheet.

これに対して、本実施形態では、以下の構成を採用することにより、異常画素の判定精度が低下しにくい画像読取装置10Aを提供する。以下に、図14及び図15を参照しつつ、画像読取装置10Aで実行される画像処理方法の手順の一例について説明する。ここで、図14に示すフローチャートにおけるステップS101、S102・・・は、処理部6により実行される処理手順(ステップ)の番号を表している。以下に説明する処理(ステップS101~S109)は、画像読取指示が入力されてから、第1異常画素が判定されるまでの処理であって、図6のフローチャートのステップS2~S7に代えて採用される。また、図15では、左右方向を主走査方向D1とし、上下方向を時間軸として、画像読取部2にて画像を読み取るタイミング(サンプリングタイミング)を概念的に示す。 On the other hand, in the present embodiment, by adopting the following configuration, the image reading device 10A is provided in which the determination accuracy of abnormal pixels is less likely to decrease. Hereinafter, an example of the procedure of the image processing method executed by the image reading device 10A will be described with reference to FIGS. 14 and 15. Here, steps S101, S102 ... In the flowchart shown in FIG. 14 represent the numbers of the processing procedures (steps) executed by the processing unit 6. The processes described below (steps S101 to S109) are processes from the input of the image reading instruction to the determination of the first abnormal pixel, and are adopted in place of steps S2 to S7 in the flowchart of FIG. Will be done. Further, in FIG. 15, the timing (sampling timing) for reading an image by the image reading unit 2 is conceptually shown with the left-right direction as the main scanning direction D1 and the vertical direction as the time axis.

<ステップS101>
ステップS101において、処理部6は、変数Mを「1」に設定する。本実施形態では一例として、色基準部材51Aが3分の1ずつ回転した各状態で、色基準部材51Aの画像(第1画像)の読み取りを行う。そのため、変数Mの上限は、本実施形態では「3」と仮定する。
<Step S101>
In step S101, the processing unit 6 sets the variable M to "1". In the present embodiment, as an example, the image (first image) of the color reference member 51A is read in each state in which the color reference member 51A is rotated by one-third. Therefore, the upper limit of the variable M is assumed to be "3" in this embodiment.

<ステップS102,S103>
次に、ステップS102において、第1読取制御部641は、シートSh1が読取位置P1に到達する前に、画像読取部2に読取動作を行わせる。具体的には、第1読取制御部641は、原稿センサー78によりシートSh1が検知される前に、副走査方向D2のうち図2の右方向に数ライン分の距離だけ読取ユニット20を移動させつつ、画像読取部2に数ライン分の読取動作を行わせる。このとき、画像読取部2は、図15においてサンプリングタイミングSt11で示すタイミングで、色基準部材51Aの画像を読み取る読取動作を実施する。上記の読取動作により、色基準部材51Aの表面の画像が読み取られて、画像読取部2は、第1画像を取得する(S103)。
<Steps S102, S103>
Next, in step S102, the first reading control unit 641 causes the image reading unit 2 to perform a reading operation before the sheet Sh1 reaches the reading position P1. Specifically, the first reading control unit 641 moves the reading unit 20 to the right of FIG. 2 in the sub-scanning direction D2 by a distance of several lines before the sheet Sh1 is detected by the document sensor 78. At the same time, the image reading unit 2 is made to perform reading operations for several lines. At this time, the image reading unit 2 performs a reading operation for reading the image of the color reference member 51A at the timing shown by the sampling timing St11 in FIG. By the above reading operation, the image of the surface of the color reference member 51A is read, and the image reading unit 2 acquires the first image (S103).

<ステップS104>
次に、ステップS104において、第1閾値決定部621は、ステップS103で得られた第1画像について、濃度値ごとの画素数を示す第1ヒストグラムG1を作成する。さらに、第1閾値決定部621は、第1画像において基準となる濃度値である第1基準濃度値C1を決定し、第1基準濃度値C1を基準としつつ、第1ヒストグラムG1に基づいて、第1判定閾値Th1を決定する。一例として、基本構成と同様に、第1閾値決定部621は、第1基準濃度値C1(236)から「3」を引いた濃度値「233」を、第1判定閾値Th1に決定する。
<Step S104>
Next, in step S104, the first threshold value determination unit 621 creates a first histogram G1 showing the number of pixels for each density value for the first image obtained in step S103. Further, the first threshold value determination unit 621 determines the first reference density value C1 which is the reference density value in the first image, and is based on the first histogram G1 while using the first reference density value C1 as a reference. The first determination threshold Th1 is determined. As an example, as in the basic configuration, the first threshold value determination unit 621 determines the concentration value “233” obtained by subtracting “3” from the first reference concentration value C1 (236) as the first determination threshold value Th1.

<ステップS105>
ステップS105において、第1判定部611は、第1画像における各画素が第1異常画素の候補としての異常候補画素であるか否かを判定する。具体的には、第1判定部611は、第1画像における画素の濃度値と第1判定閾値Th1とを画素ごとに比較する。第1判定部611は、濃度値が第1判定閾値Th1以下である(濃い)画素を、異常候補画素であると判定する。第1判定部611は、異常候補画素と判定した場合には、異常候補画素ごとに主走査方向D1の座標位置を記憶することで、異常候補画素の主走査方向D1の位置を特定する。
<Step S105>
In step S105, the first determination unit 611 determines whether or not each pixel in the first image is an abnormality candidate pixel as a candidate for the first abnormality pixel. Specifically, the first determination unit 611 compares the density value of the pixels in the first image with the first determination threshold Th1 for each pixel. The first determination unit 611 determines that the (dark) pixel whose density value is equal to or less than the first determination threshold Th1 is an abnormality candidate pixel. When the first determination unit 611 determines that it is an abnormality candidate pixel, it stores the coordinate position of the main scanning direction D1 for each abnormality candidate pixel, thereby specifying the position of the abnormality candidate pixel in the main scanning direction D1.

本実施形態では、異常候補画素を判定するためのステップS105の処理は、第1判定閾値Th1を決定するためのステップS104とは別の第1画像を用いて行われる。つまり、処理部6は、ステップS105を実行するに当たり、再度、ステップS102,S103と同様の処理を行って、第1画像を取得する。具体的には、画像読取部2は、図15においてサンプリングタイミングSt12で示すタイミングで、色基準部材51Aの画像を読み取る読取動作を実施し、新たに第1画像を取得する。新たに取得した第1画像について、第1判定部611は、異常候補画素であるか否かを判定する。ただし、この例に限らず、異常候補画素を判定するためのステップS105の処理には、第1判定閾値Th1を決定するためのステップS104と同一の第1画像が用いられてもよい。 In the present embodiment, the process of step S105 for determining the abnormality candidate pixel is performed using a first image different from step S104 for determining the first determination threshold value Th1. That is, in executing step S105, the processing unit 6 performs the same processing as in steps S102 and S103 again to acquire the first image. Specifically, the image reading unit 2 performs a reading operation for reading the image of the color reference member 51A at the timing shown by the sampling timing St12 in FIG. 15, and newly acquires the first image. With respect to the newly acquired first image, the first determination unit 611 determines whether or not the first image is an abnormality candidate pixel. However, the present invention is not limited to this example, and the same first image as in step S104 for determining the first determination threshold value Th1 may be used for the process of step S105 for determining the abnormality candidate pixel.

<ステップS106>
次に、ステップS106において、処理部6は、変数Mが「3」以上か否かを判定する。処理部6は、変数Mが3以上でないと判定すると(S106:No)、ステップS107に進む。処理部6は、変数Mが3以上であると判定すると(S106:Yes)、ステップS109に進む。
<Step S106>
Next, in step S106, the processing unit 6 determines whether or not the variable M is “3” or more. When the processing unit 6 determines that the variable M is not 3 or more (S106: No), the process proceeds to step S107. When the processing unit 6 determines that the variable M is 3 or more (S106: Yes), the process proceeds to step S109.

<ステップS107,S108>
ステップS107において、処理部6は、変数Mをインクリメントする。次に、ステップS108において、第1読取制御部641は、色基準部材51Aを3分の1回転させる。これにより、色基準部材51Aの表面のうち、周方向に円周の3分の1だけずれた部位が、第2コンタクトガラス42と対向することになり、色基準部材51Aの画像読取部2との対向部位が変化する。
<Steps S107, S108>
In step S107, the processing unit 6 increments the variable M. Next, in step S108, the first reading control unit 641 rotates the color reference member 51A by one-third. As a result, on the surface of the color reference member 51A, a portion displaced by one-third of the circumference in the circumferential direction faces the second contact glass 42, and the image reading unit 2 of the color reference member 51A and the like. The opposite part of is changed.

それから、処理部6は、ステップS102に戻り、ステップS102~S105を繰り返し実行する。2回目のステップS102では、画像読取部2は、図15においてサンプリングタイミングSt13で示すタイミングで、色基準部材51Aの画像を読み取る読取動作を実施する。そして、2回目のステップS105では、画像読取部2は、図15においてサンプリングタイミングSt14で示すタイミングで、色基準部材51Aの画像を読み取る読取動作を実施する。そして、2回目のステップS105でも、第1判定部611は、異常候補画素と判定した場合には、異常候補画素ごとに主走査方向D1の座標位置を記憶することで、異常候補画素の主走査方向D1の位置を特定する。 Then, the processing unit 6 returns to step S102 and repeatedly executes steps S102 to S105. In the second step S102, the image reading unit 2 performs a reading operation for reading the image of the color reference member 51A at the timing shown by the sampling timing St13 in FIG. Then, in the second step S105, the image reading unit 2 performs a reading operation of reading the image of the color reference member 51A at the timing shown by the sampling timing St14 in FIG. Then, even in the second step S105, when the first determination unit 611 determines that the abnormality candidate pixel is an abnormality candidate pixel, the first determination unit 611 stores the coordinate position of the main scanning direction D1 for each abnormality candidate pixel, so that the main scan of the abnormality candidate pixel is performed. The position of the direction D1 is specified.

その後、処理部6は、ステップS107において、変数Mをインクリメントし、ステップS108において、第1読取制御部641にて、色基準部材51Aを更に3分の1回転させる。これにより、色基準部材51Aの表面のうち、周方向に円周の3分の1だけずれた部位が、第2コンタクトガラス42と対向することになり、色基準部材51Aの画像読取部2との対向部位が更に変化する。そして、処理部6は、ステップS102に戻り、ステップS102~S105を再度繰り返す。3回目のステップS102では、画像読取部2は、図15においてサンプリングタイミングSt15で示すタイミングで、色基準部材51Aの画像を読み取る読取動作を実施する。そして、3回目のステップS105では、画像読取部2は、図15においてサンプリングタイミングSt16で示すタイミングで、色基準部材51Aの画像を読み取る読取動作を実施する。そして、3回目のステップS105でも、第1判定部611は、異常候補画素と判定した場合には、異常候補画素ごとに主走査方向D1の座標位置を記憶することで、異常候補画素の主走査方向D1の位置を特定する。 After that, the processing unit 6 increments the variable M in step S107, and in step S108, the first reading control unit 641 further rotates the color reference member 51A by one-third. As a result, on the surface of the color reference member 51A, a portion displaced by one-third of the circumference in the circumferential direction faces the second contact glass 42, and the image reading unit 2 of the color reference member 51A and the like. The opposite part of is further changed. Then, the processing unit 6 returns to step S102 and repeats steps S102 to S105 again. In the third step S102, the image reading unit 2 performs a reading operation for reading the image of the color reference member 51A at the timing shown by the sampling timing St15 in FIG. Then, in the third step S105, the image reading unit 2 performs a reading operation for reading the image of the color reference member 51A at the timing shown by the sampling timing St16 in FIG. Then, even in the third step S105, when the first determination unit 611 determines that the abnormality candidate pixel is an abnormality candidate pixel, the first determination unit 611 stores the coordinate position of the main scanning direction D1 for each abnormality candidate pixel, so that the main scan of the abnormality candidate pixel is performed. The position of the direction D1 is specified.

<ステップS109>
ステップS109において、第1判定部611は、色基準部材51AのM個の画像のうちのN個(本実施形態ではN=M)において、主走査方向D1の同じ位置で濃度値と判定閾値との比較結果から異常と判定される画素を、異常画素と判定する。つまり、ここでは変数Mの上限値は「3」であるので、第1判定部611は、3個の第1画像において、主走査方向D1の同じ位置で異常と判定される画素(異常候補画素)があれば、当該異常候補画素を第1異常画素であると判定する。第1判定部611は、第1異常画素と判定した場合には、第1異常画素ごとに主走査方向D1の座標位置を記憶することで、第1異常画素の主走査方向D1の位置を特定する。
<Step S109>
In step S109, the first determination unit 611 sets the density value and the determination threshold at the same position in the main scanning direction D1 in N of the M images of the color reference member 51A (N = M in this embodiment). A pixel determined to be abnormal from the comparison result of is determined to be an abnormal pixel. That is, since the upper limit of the variable M is "3" here, the first determination unit 611 is a pixel (abnormality candidate pixel) that is determined to be abnormal at the same position in the main scanning direction D1 in the three first images. ), It is determined that the abnormality candidate pixel is the first abnormality pixel. When the first determination unit 611 determines that the first abnormal pixel is a first abnormal pixel, the first determination unit 611 stores the coordinate position of the main scanning direction D1 for each first abnormal pixel, thereby specifying the position of the main scanning direction D1 of the first abnormal pixel. do.

以上説明した画像処理方法の手順は一例に過ぎず、図14のフローチャートに示す処理の順番が適宜入れ替わってもよい。 The procedure of the image processing method described above is only an example, and the order of processing shown in the flowchart of FIG. 14 may be changed as appropriate.

以上説明したように、本実施形態では、色基準部材51Aの画像読取部2との対向部位が異なる複数のタイミング(サンプリングタイミングSt12,St14,St16)で取得した、色基準部材51Aの画像から、異常画素を判定する。すなわち、本実施形態では、色基準部材51Aの複数箇所の画像から、異常画素(第1異常画素)を判定する。そのため、色基準部材51Aの異物、傷又は汚れ等であれば、これら複数の第1画像に同じように異常が表れないことを利用すれば、色基準部材51Aの異物、傷又は汚れ等と、第2コンタクトガラス42の異物、傷又は汚れ等とを区別できる。したがって、判定部61は、色基準部材51Aの異物、傷又は汚れ等については異常画素(第1異常画素)から除外することで、第2コンタクトガラス42の異物、傷又は汚れ等に起因した本来の異常画素を、異常画素として判定しやすくなる。結果的に、画像読取装置10Aとしては、異常画素の判定精度が低下しにくい、という利点がある。 As described above, in the present embodiment, from the images of the color reference member 51A acquired at a plurality of timings (sampling timings St12, St14, St16) in which the portions of the color reference member 51A facing the image reading unit 2 are different from each other. Determine abnormal pixels. That is, in the present embodiment, the abnormal pixel (first abnormal pixel) is determined from the images of a plurality of locations of the color reference member 51A. Therefore, in the case of foreign matter, scratches, stains, etc. of the color reference member 51A, if the abnormality does not appear in the plurality of first images in the same manner, foreign matter, scratches, stains, etc. of the color reference member 51A can be used. It is possible to distinguish foreign matter, scratches, dirt, etc. from the second contact glass 42. Therefore, the determination unit 61 excludes foreign matter, scratches, stains, etc. from the color reference member 51A from the abnormal pixels (first abnormal pixels), so that the determination unit 61 originally causes foreign matter, scratches, stains, etc. on the second contact glass 42. It becomes easy to determine the abnormal pixel of the above as an abnormal pixel. As a result, the image reading device 10A has an advantage that the determination accuracy of abnormal pixels is unlikely to decrease.

また、本実施形態では、色基準部材51Aとしてのローラーの回転に伴って色基準部材51Aの画像読取部2との対向部位を変化させるので、色基準部材51Aの複数箇所の画像を容易に取得できる。 Further, in the present embodiment, since the portion of the color reference member 51A facing the image reading unit 2 is changed as the roller rotates as the color reference member 51A, images of a plurality of locations of the color reference member 51A can be easily acquired. can.

また、本実施形態では、判定部61は、M個の画像のうちのN個の画像について、主走査方向D1の同じ位置で濃度値と判定閾値との比較結果から異常(異常候補画素)と判定される画素を、異常画素(第1異常画素)と判定する。そのため、「M」に対する「N」の値を調整すれば、異常画素の判定精度を容易に調整できる。ここで、NはMと同値に限らず、例えば、Mが「3」、Nが「2」であってもよい。 Further, in the present embodiment, the determination unit 61 determines that N of the M images are abnormal (abnormal candidate pixels) from the comparison result between the density value and the determination threshold value at the same position in the main scanning direction D1. The determined pixel is determined to be an abnormal pixel (first abnormal pixel). Therefore, if the value of "N" with respect to "M" is adjusted, the determination accuracy of the abnormal pixel can be easily adjusted. Here, N is not limited to the same value as M, and for example, M may be "3" and N may be "2".

また、本実施形態では、異常画素(第1異常画素)の判定のみならず、異常画素の判定に用いる判定閾値(第1判定閾値Th1)の決定に際しても、色基準部材51Aの複数箇所(2か所以上)の画像を用いている。そのため、色基準部材51Aの局所的な変色等を加味した第1判定閾値Th1を設定でき、異常画素(第1異常画素)の判定精度の向上につながる。特に、本実施形態では、判定閾値(第1判定閾値Th1)の決定に第1画像の度数分布が用いられるので、色基準部材51Aの局所的な変色等があっても、判定閾値(第1判定閾値Th1)を適切な値としやすい。 Further, in the present embodiment, not only the determination of the abnormal pixel (first abnormal pixel) but also the determination of the determination threshold value (first determination threshold Th1) used for the determination of the abnormal pixel is performed at a plurality of locations (2) of the color reference member 51A. (More than one place) images are used. Therefore, the first determination threshold value Th1 can be set in consideration of the local discoloration of the color reference member 51A, which leads to improvement in the determination accuracy of the abnormal pixel (first abnormal pixel). In particular, in the present embodiment, since the frequency distribution of the first image is used to determine the determination threshold value (first determination threshold value Th1), even if there is local discoloration of the color reference member 51A, the determination threshold value (first determination threshold value) is used. It is easy to set the determination threshold Th1) to an appropriate value.

実施形態の変形例として、色基準部材51Aは、例えば、基本構成で説明したような搬送ガイド等、回転可能なローラー以外の部材であってもよい。この場合に、色基準部材51Aは移動可能であって、色基準部材51Aの移動に伴って色基準部材51Aの画像読取部2との対向部位が変化することが好ましい。つまり、色基準部材51Aが、例えば、主走査方向D1又は副走査方向D2に移動すれば、色基準部材51Aの画像読取部2との対向部位が変化する。このような移動によれば、色基準部材51Aの異物、傷又は汚れ等と、第2コンタクトガラス42の異物、傷又は汚れ等とをより区別しやすくなる。さらに、色基準部材51Aがローラーであっても、回転以外の移動、例えば、スラスト方向への移動が可能であれば、当該移動によっても、色基準部材51Aの画像読取部2との対向部位は変化する。 As a modification of the embodiment, the color reference member 51A may be a member other than the rotatable roller, for example, a transport guide as described in the basic configuration. In this case, it is preferable that the color reference member 51A is movable, and the portion of the color reference member 51A facing the image reading unit 2 changes with the movement of the color reference member 51A. That is, if the color reference member 51A moves, for example, in the main scanning direction D1 or the sub-scanning direction D2, the portion of the color reference member 51A facing the image reading unit 2 changes. By such movement, it becomes easier to distinguish between the foreign matter, scratches, stains, etc. of the color reference member 51A and the foreign matter, scratches, stains, etc. of the second contact glass 42. Further, even if the color reference member 51A is a roller, if movement other than rotation, for example, movement in the thrust direction is possible, the portion of the color reference member 51A facing the image reading unit 2 may be affected by the movement. Change.

あるいは、色基準部材51Aは固定であって、画像読取部2(読取ユニット20)が移動してもよい。この場合でも、色基準部材51Aと読取ユニット20との相対的な位置関係が変わることで、ローラーの回転に伴って色基準部材51Aの画像読取部2との対向部位が変化する。もちろん、色基準部材51Aと画像読取部2(読取ユニット20)との両方が移動可能であってもよい。 Alternatively, the color reference member 51A may be fixed and the image reading unit 2 (reading unit 20) may move. Even in this case, the relative positional relationship between the color reference member 51A and the reading unit 20 changes, so that the portion of the color reference member 51A facing the image reading unit 2 changes as the roller rotates. Of course, both the color reference member 51A and the image reading unit 2 (reading unit 20) may be movable.

また、実施形態の変形例として、閾値決定部62は、第1判定閾値Th1と第2判定閾値Th2との少なくとも一方を、度数分布(ヒストグラム)に基づいて決定しなくてもよい。この場合、第1判定閾値Th1と第2判定閾値Th2とのうち、閾値決定部62で決定されない方の判定閾値は、固定値として予め設定されていてもよい。 Further, as a modification of the embodiment, the threshold value determination unit 62 does not have to determine at least one of the first determination threshold value Th1 and the second determination threshold value Th2 based on the frequency distribution (histogram). In this case, the determination threshold value of the first determination threshold value Th1 and the second determination threshold value Th2, whichever is not determined by the threshold value determination unit 62, may be preset as a fixed value.

1 画像形成装置
2 画像読取部
3 画像形成部
10,10A 画像読取装置
51,51A 色基準部材
61 判定部
62 閾値決定部
63 補正処理部
R1 搬送路
Rm1 余白領域
Sh1 シート
Th1 第1判定閾値
Th2 第2判定閾値
1 Image forming device 2 Image reading unit 3 Image forming unit 10, 10A Image reading device 51, 51A Color reference member 61 Judgment unit 62 Threshold determination unit 63 Correction processing unit R1 Transport path Rm1 Margin area Sh1 Sheet Th1 First determination threshold Th2 First 2 Judgment threshold

Claims (11)

搬送路を通して搬送されるシートの画像を読み取る画像読取部と、
前記画像読取部とは前記搬送路を挟んで対向するように配置される色基準部材と、
前記色基準部材の前記画像読取部との対向部位が異なる複数のタイミングにおいて前記画像読取部で読み取られる前記色基準部材の複数の画像についての、画素ごとの濃度値と判定閾値との比較結果に基づいて異常画素を判定する判定部と、を備える、
画像読取装置。
An image reader that reads the image of the sheet transported through the transport path,
The image reading unit is a color reference member arranged so as to face each other across the transport path.
The comparison result between the density value for each pixel and the determination threshold value for a plurality of images of the color reference member read by the image reading unit at a plurality of timings at which the portions of the color reference member facing the image reading unit are different. A determination unit for determining an abnormal pixel based on the
Image reader.
前記判定部は、
前記複数の画像である複数の第1画像について、画素ごとに濃度値を前記判定閾値としての第1判定閾値と比較することにより第1異常画素を抽出し、
前記画像読取部で読み取られる前記シートの余白領域の画像である第2画像について、画素ごとに濃度値を第2判定閾値と比較することにより第2異常画素を抽出し、
前記第1異常画素と前記第2異常画素との一致度に応じて、前記異常画素を判定する、
請求項1に記載の画像読取装置。
The determination unit
For the plurality of first images, which are the plurality of images, the first abnormal pixel is extracted by comparing the density value for each pixel with the first determination threshold value as the determination threshold value.
For the second image, which is an image of the margin area of the sheet read by the image reading unit, the second abnormal pixel is extracted by comparing the density value for each pixel with the second determination threshold value.
The abnormal pixel is determined according to the degree of coincidence between the first abnormal pixel and the second abnormal pixel.
The image reading device according to claim 1.
前記色基準部材の前記画像読取部との対向部位が異なる2以上のタイミングにおいて前記画像読取部で読み取られる前記色基準部材の2以上の画像を用いて、前記判定閾値を決定する閾値決定部を更に備える、
請求項1又は2に記載の画像読取装置。
A threshold value determining unit that determines the determination threshold value using two or more images of the color reference member read by the image reading unit at two or more timings at which the portions of the color reference member facing the image reading unit are different. Further prepare
The image reading device according to claim 1 or 2.
前記閾値決定部は、前記2以上の画像における各画素の濃度値についての度数分布に基づいて、前記判定閾値を決定する、
請求項3に記載の画像読取装置。
The threshold value determination unit determines the determination threshold value based on the frequency distribution for the density value of each pixel in the two or more images.
The image reading device according to claim 3.
前記色基準部材は移動可能であって、前記色基準部材の移動に伴って前記色基準部材の前記画像読取部との対向部位が変化する、
請求項1~4のいずれか1項に記載の画像読取装置。
The color reference member is movable, and the portion of the color reference member facing the image reading portion changes with the movement of the color reference member.
The image reading device according to any one of claims 1 to 4.
前記色基準部材は回転可能なローラーであって、前記ローラーの回転に伴って前記色基準部材の前記画像読取部との対向部位が変化する、
請求項1~4のいずれか1項に記載の画像読取装置。
The color reference member is a rotatable roller, and the portion of the color reference member facing the image reading portion changes with the rotation of the roller.
The image reading device according to any one of claims 1 to 4.
前記複数の画像はM個の画像であって、
前記判定部は、前記M個の画像のうちのN個の画像について、主走査方向の同じ位置で濃度値と前記判定閾値との比較結果から異常と判定される画素を前記異常画素と判定する、
請求項1~6のいずれか1項に記載の画像読取装置。
The plurality of images are M images, and are
The determination unit determines that N pixels out of the M images are abnormal pixels at the same position in the main scanning direction from the comparison result between the density value and the determination threshold value. ,
The image reading device according to any one of claims 1 to 6.
前記画像読取部で読み取られる画像のうち、主走査方向の位置が前記異常画素と一致する画素の濃度値を補正する補正処理部を更に備える、
請求項1~7のいずれか1項に記載の画像読取装置。
A correction processing unit for correcting the density value of a pixel whose position in the main scanning direction coincides with the abnormal pixel among the images read by the image reading unit is further provided.
The image reading device according to any one of claims 1 to 7.
請求項1~8のいずれか1項に記載の画像読取装置と、
前記画像読取装置によって読み取られた前記シートの画像を別シートに形成する画像形成部と、を備える、
画像形成装置。
The image reading device according to any one of claims 1 to 8.
An image forming unit for forming an image of the sheet read by the image reading device on another sheet is provided.
Image forming device.
搬送路を通して搬送されるシートの画像を画像読取部で読み取ることと、
前記画像読取部とは前記搬送路を挟んで対向するように配置される色基準部材の前記画像読取部との対向部位が異なる複数のタイミングにおいて前記画像読取部で読み取られる前記色基準部材の複数の画像についての、画素ごとの濃度値と判定閾値との比較結果に基づいて異常画素を判定することと、を有する、
画像処理方法。
Reading the image of the sheet transported through the transport path with the image reader and
A plurality of the color reference members read by the image reading unit at a plurality of timings in which the image reading unit and the color reference member arranged so as to face each other across the transport path have different portions facing the image reading unit. It has the determination of abnormal pixels based on the comparison result between the density value for each pixel and the determination threshold value for the image of.
Image processing method.
搬送路を通して搬送されるシートの画像を画像読取部で読み取ることと、
前記画像読取部とは前記搬送路を挟んで対向するように配置される色基準部材の前記画像読取部との対向部位が異なる複数のタイミングにおいて前記画像読取部で読み取られる前記色基準部材の複数の画像についての、画素ごとの濃度値と判定閾値との比較結果に基づいて異常画素を判定することと、
を1以上のプロセッサーに実行させるためのプログラム。
Reading the image of the sheet transported through the transport path with the image reader and
A plurality of the color reference members read by the image reading unit at a plurality of timings in which the image reading unit and the color reference member arranged so as to face each other across the transport path have different portions facing the image reading unit. Judgment of abnormal pixels based on the comparison result between the density value for each pixel and the judgment threshold value for the image of
A program to run one or more processors.
JP2020145971A 2020-08-31 2020-08-31 Image reading device, image forming apparatus, image processing method, and program Pending JP2022040985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020145971A JP2022040985A (en) 2020-08-31 2020-08-31 Image reading device, image forming apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020145971A JP2022040985A (en) 2020-08-31 2020-08-31 Image reading device, image forming apparatus, image processing method, and program

Publications (1)

Publication Number Publication Date
JP2022040985A true JP2022040985A (en) 2022-03-11

Family

ID=80500164

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020145971A Pending JP2022040985A (en) 2020-08-31 2020-08-31 Image reading device, image forming apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP2022040985A (en)

Similar Documents

Publication Publication Date Title
US7619785B2 (en) Image reading apparatus and reference member foreign matter detecting method
JP4310143B2 (en) Image processing device
JP4948360B2 (en) Image reading apparatus and image forming apparatus
JP5532176B1 (en) Image reading apparatus and image forming apparatus
JP5198485B2 (en) Image reading apparatus, white reference chart, shading correction method, and image forming apparatus
US11765293B2 (en) Document reading apparatus and image-forming device with image cropping mode
JP6047528B2 (en) Image reading apparatus and image forming apparatus
JP2008028699A (en) Image reading apparatus and image reading method
JP2008028684A (en) Image reader, image processor, image forming apparatus, stripe image detecting method, image processing method, program, and recording medium
JP4412070B2 (en) Image reading apparatus and image data correction method
JP2022040985A (en) Image reading device, image forming apparatus, image processing method, and program
JP2005277752A (en) Image reader
JP2022040986A (en) Image reading device, image forming apparatus, image processing method, and program
JP2022040987A (en) Image reading device, image forming apparatus, image processing method, and program
JP4471920B2 (en) Document reading apparatus and image forming apparatus
JP2022128248A (en) Image reading device and image forming apparatus
JP2004222180A (en) Image processor
JP4855017B2 (en) Document size detection apparatus, image reading apparatus, and image forming apparatus
JP6344062B2 (en) Image reading apparatus, image forming apparatus, and image processing method
JP2008028698A (en) Image reading apparatus and image reading method
JP3647402B2 (en) Image reading apparatus and control method
JP2011023920A (en) Image reading apparatus and image forming apparatus
JP2018019236A (en) Image reader and control method therefor
JP2022059179A (en) Reading device, image forming apparatus, and method
JP2006229719A (en) Image processing apparatus