JP6201531B2 - Image reading device - Google Patents

Image reading device Download PDF

Info

Publication number
JP6201531B2
JP6201531B2 JP2013179988A JP2013179988A JP6201531B2 JP 6201531 B2 JP6201531 B2 JP 6201531B2 JP 2013179988 A JP2013179988 A JP 2013179988A JP 2013179988 A JP2013179988 A JP 2013179988A JP 6201531 B2 JP6201531 B2 JP 6201531B2
Authority
JP
Japan
Prior art keywords
pixel data
value
light receiving
sensor chip
normal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013179988A
Other languages
Japanese (ja)
Other versions
JP2015050562A (en
Inventor
中村 満
満 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2013179988A priority Critical patent/JP6201531B2/en
Publication of JP2015050562A publication Critical patent/JP2015050562A/en
Application granted granted Critical
Publication of JP6201531B2 publication Critical patent/JP6201531B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本明細書によって開示される発明は、画像読取装置において、シェーディング補正に用いる白レベルデータを生成する技術に関する。   The invention disclosed in this specification relates to a technique for generating white level data used for shading correction in an image reading apparatus.

従来から、画像読取装置が基準板を読み取って、シェーディング補正に用いる白レベルデータを生成する際、基準板に付着していたゴミや塵があると、白レベルデータに異常が生じ、その白レベルデータを用いてシェーディング補正を行うと、画像読取装置が読み取った読取画像に縦筋が生じるという問題が生じる。
この問題に対し、従来から、画像読取装置では、基準板の異なる2つの位置で読み取り、その読み取った2つの信号値をそれぞれ比較し、白レベルデータを生成する技術が提案されている(例えば、特許文献1)。この装置では、2つの読取位置における信号値同士を比較し、最大値となるものを白レベルデータとして選択する。一方の読取位置に対応する白色基準板の表面にゴミが付着しており、対応する一方の信号値が基準値から減少している場合でも、他方の読取位置に対応する白色基準板の表面では、ゴミが付着している可能性が低く、対応する他方の信号値が基準値に保たれている可能性が高い。そのため、最大値となる信号値を選択することで、他方の信号値を選択することができ、適切に白レベルデータを生成することができる。
Conventionally, when the image reading apparatus reads the reference plate and generates white level data used for shading correction, if there is dust or dust adhering to the reference plate, the white level data becomes abnormal, and the white level data When shading correction is performed using data, there arises a problem that vertical stripes occur in a read image read by the image reading apparatus.
In order to solve this problem, conventionally, in an image reading apparatus, a technique for reading at two different positions on a reference plate and comparing the two read signal values to generate white level data has been proposed (for example, Patent Document 1). In this apparatus, signal values at two reading positions are compared with each other, and the one having the maximum value is selected as white level data. Even if dust adheres to the surface of the white reference plate corresponding to one reading position and the corresponding one signal value is reduced from the reference value, the surface of the white reference plate corresponding to the other reading position is There is a low possibility that dust is attached, and there is a high possibility that the corresponding other signal value is maintained at the reference value. Therefore, by selecting the signal value that is the maximum value, the other signal value can be selected, and white level data can be generated appropriately.

特開2002−27247号公報JP 2002-27247 A

白レベルデータの異常の原因が、上記特許文献1のように、ゴミによって信号値が下がるだけであれば、ある特定の画素の2つの信号値を比較し、最大値となる信号値を選択することで適切に白レベルデータを生成することができる。しかし、白レベルデータの異常の原因がゴミによって信号値が下がるだけでなく、白色基準板の傷や汚れ等が比較的広い範囲に生じていることによって乱反射することによって信号値が上がる場合があれば、信号値が上がった異常な箇所を正常とみなして白レベルデータを生成するという問題があった。   If the cause of the abnormality in the white level data is only that the signal value is lowered due to dust as in Patent Document 1, the two signal values of a specific pixel are compared, and the signal value that is the maximum value is selected. Thus, the white level data can be appropriately generated. However, not only the signal value may decrease due to dust, but the white level data may be increased due to irregular reflection caused by scratches or dirt on the white reference plate in a relatively wide range. For example, there is a problem that white level data is generated by regarding an abnormal portion where the signal value has increased as normal.

本明細書では、基準部材の色合いの変化や汚れ等によって比較的、主走査方向の広範囲に亘って異常が生じたとしても、適切に白レベルデータを生成する技術を開示する。   The present specification discloses a technique for appropriately generating white level data even if an abnormality occurs over a relatively wide range in the main scanning direction due to a change in color of the reference member, dirt, or the like.

本明細書によって開示される画像読取装置は、光源と、複数の受光素子が主走査方向に配列されたセンサチップが複数個、主走査方向に配列された受光部と、を有する読取部と、基準部材と、前記基準部材に対して、前記主走査方向に直交する副走査方向に、前記読取部を移動させる移動部と、制御部と、を備え、前記制御部は、前記基準部材の前記副走査方向に異なる複数の読取位置に前記読取部をそれぞれ移動させ、該読取位置で前記光源に対して光を照射するように指示し、前記受光素子毎に出力される画素データを各読取位置毎にそれぞれ取得する取得処理と、前記各読取位置毎に前記取得処理によって取得された受光素子毎の画素データを、前記センサチップ単位で正常か否かを判断する判断処理と、各センサチップ毎に、前記判断処理によって正常と判断されたうちの1つの前記センサチップ単位の画素データ群を選択して、シェーディング補正用の白レベルデータを生成する生成処理と、を実行する。 An image reading apparatus disclosed in this specification includes a light source, a reading unit including a plurality of sensor chips each having a plurality of light receiving elements arranged in the main scanning direction, and a light receiving unit arranged in the main scanning direction; and the reference member, with respect to the reference member, in a sub-scanning direction perpendicular to prior Symbol main scanning direction, comprising: a moving unit for moving the reading unit, and a control unit, wherein the control unit of the reference member wherein the plurality of reading positions different in the sub-scanning direction, the reader their respective allowed to move, the pixels instructed to irradiate light to the light source in said read position is output for each of the light receiving element an acquisition process, each acquiring the data for each reading position, the pixel data for each light-receiving element obtained by the obtaining processing for each reading position, a determining process of determining whether normal or not by the sensor chip units , For each sensor chip, Select one pixel data groups of the sensor chip unit of which is determined to be normal by the cross-sectional process, it executes a generation process of generating the white level data for shading correction, the.

この画像読取装置では、複数の読取位置で取得された複数の画素データから1つの画素データを選択してシェーディング補正用の白レベルデータを生成する際に、センサチップ単位で画素データが正常か否かを判断し、正常と判断された画素データをセンサチップ単位で選択する。センサチップは、主走査方向に複数の受光素子が配列されており、主走査方向に所定の幅を有する。センサチップ単位で画素データを選択することで、基準部材の読取位置に比較的、主走査方向の広範囲に亘って異常が生じたとしても、適切に白レベルデータを生成することができる。   In this image reading apparatus, when one pixel data is selected from a plurality of pixel data acquired at a plurality of reading positions and white level data for shading correction is generated, whether the pixel data is normal for each sensor chip. The pixel data determined to be normal is selected for each sensor chip. The sensor chip has a plurality of light receiving elements arranged in the main scanning direction and has a predetermined width in the main scanning direction. By selecting pixel data in units of sensor chips, white level data can be appropriately generated even if an abnormality occurs over a relatively wide range in the main scanning direction at the reading position of the reference member.

上記画像読取装置では、前記制御部において、前記取得処理は、前記基準部材の前記副走査方向に異なる第1読取位置と第2読取位置とに前記読取部をそれぞれ移動させ、該読取位置で前記指示し、前記受光素子毎に出力される第1画素データと第2画素データとをそれぞれ取得し、更に、前記第1画素データと前記第2画素データとの差分値の絶対値が第1規定値以上となる受光素子を検出する検出処理、を実行し、前記判断処理は、前記検出処理によって検出された受光素子を含むセンサチップ単位の第1画素データ群と第2画素データ群のいずれが正常か否かを判断し、前記検出処理によって検出された受光素子を含まないセンサチップ単位の第1画素データ群と第2画素データ群のいずれもが正常と判断する構成としても良い。 The image reading apparatus, in the control unit, the acquisition process, and the sub-scanning direction different from the first reading position and the second reading position of said reference member, their respective allowed to move the reading unit, the The instruction is given at the reading position, the first pixel data and the second pixel data output for each of the light receiving elements are obtained, and the absolute value of the difference value between the first pixel data and the second pixel data Detection processing for detecting a light receiving element having a value equal to or greater than a first specified value, and the determination processing includes a first pixel data group and second pixel data in sensor chip units including the light receiving elements detected by the detection processing. It is possible to determine whether any of the groups is normal, and to determine that both the first pixel data group and the second pixel data group in the sensor chip unit not including the light receiving element detected by the detection process are normal. good.

この画像読取装置では、第1画素データと第2画素データとの差分値を用いて所定の受光素子を検出して、第1画素データ群及び第2画素データ群が正常か否かを判断する。第1画素データと第2画素データとの差分値を用いることで、比較的簡単に白レベルデータを生成することができる。   In this image reading apparatus, a predetermined light receiving element is detected using a difference value between the first pixel data and the second pixel data, and it is determined whether or not the first pixel data group and the second pixel data group are normal. . By using the difference value between the first pixel data and the second pixel data, the white level data can be generated relatively easily.

上記画像読取装置では、前記制御部において、前記判断処理は、前記検出処理によって検出された受光素子を含むセンサチップの全受光素子における第1画素データの代表値と第2画素データの代表値とをそれぞれ取得し、前記検出された受光素子の第1画素データと前記第1画素データの代表値との差分の絶対値である第1絶対値と、前記検出された受光素子の第2画素データと前記第2画素データの代表値との差分の絶対値である第2絶対値とを比較し、絶対値が大きい方の画素データの該センサチップにおける画素データ群を正常でないと判断し、絶対値が小さい方の画素データの該センサチップにおける画素データ群を正常と判断する構成としても良い。 In the image reading apparatus, in the control unit, the determination process includes a representative value of the first pixel data and a representative value of the second pixel data in all the light receiving elements of the sensor chip including the light receiving elements detected by the detection process. , And the first absolute value that is the absolute value of the difference between the first pixel data of the detected light receiving element and the representative value of the first pixel data, and the second pixel data of the detected light receiving element And a second absolute value that is an absolute value of a difference between the second pixel data and the representative value of the second pixel data, and determines that the pixel data group in the sensor chip of the pixel data having a larger absolute value is not normal. The pixel data group in the sensor chip having the smaller pixel data may be determined to be normal.

この画像読取装置では、検出された受光素子の画素データと、対応する画素データの代表値と、の差分の絶対値を比較し、第1画素データ群と第2画素データ群のいずれが正常か否かを判断する。画素データと代表値との差分は、基準部材の表面に付着したゴミや汚れ、或は、基準部材の表面に生じた傷等の異常により生じ、その異常の種類により、正の値となることもあれば、負の値となることもある。画素データと代表値との差分の絶対値を用い、その絶対値を比較することで、基準部材の表面に生じた異常の種類によらず、適切に白レベルデータを生成することができる。   In this image reading apparatus, the absolute value of the difference between the detected pixel data of the light receiving element and the representative value of the corresponding pixel data is compared, and which of the first pixel data group and the second pixel data group is normal? Judge whether or not. The difference between the pixel data and the representative value is caused by an abnormality such as dust or dirt adhering to the surface of the reference member, or a scratch on the surface of the reference member, and becomes a positive value depending on the type of the abnormality. Or may be negative. By using the absolute value of the difference between the pixel data and the representative value and comparing the absolute values, white level data can be appropriately generated regardless of the type of abnormality that has occurred on the surface of the reference member.

上記画像読取装置では、前記制御部において、前記判断処理は、前記センサチップ単位で前記判断する際、前記検出処理によって該センサチップ内に複数の受光素子を検出した場合、検出した受光素子毎に、前記差分の絶対値を比較し、検出した全ての受光素子において、前記第1画素データ群と第2画素データ群のいずれか一方が、正常と判断された場合、該一方の画素データ群を正常と判断し、他方の画素データ群を正常でないと判断し、検出した一部の受光素子において、前記第1画素データ群が正常でないと判断され、検出した残りの受光素子において、前記第2画素データ群も正常でないと判断された場合、前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断する構成としても良い。   In the image reading apparatus, in the control unit, when the determination process detects the plurality of light receiving elements in the sensor chip by the detection process when the determination is performed for each sensor chip, for each detected light receiving element, The absolute values of the differences are compared, and in any of the detected light receiving elements, when one of the first pixel data group and the second pixel data group is determined to be normal, the one pixel data group is It is determined that the other pixel data group is not normal, and it is determined that the first pixel data group is not normal in some of the detected light receiving elements. When it is determined that the pixel data group is not normal, it may be determined that neither the first pixel data group nor the second pixel data group is normal.

この画像読取装置では、1つのセンサチップ内に複数の受光素子が検出された場合に、検出した受光素子毎に第1画素データ群と第2画素データ群のいずれが正常か否かを判断する。そのため、基準部材の表面の少なくとも1つの異常を含む範囲を読み取って取得された画素データ群を用いて白レベルデータが生成されるのを抑制することができる。   In this image reading apparatus, when a plurality of light receiving elements are detected in one sensor chip, it is determined for each detected light receiving element whether the first pixel data group or the second pixel data group is normal. . For this reason, it is possible to suppress generation of white level data using a pixel data group obtained by reading a range including at least one abnormality on the surface of the reference member.

上記画像読取装置では、前記制御部において、更に、前記制御部において、更に、前記判断処理によって、前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断した場合、前記第1読取位置及び前記第2読取位置に対して前記基準部材の前記副走査方向に異なる第3読取位置に前記読取部を移動させ、該読取位置で前記指示し、前記受光素子毎に出力される第3画素データを取得する追加取得処理、を実行し、前記検出処理は、更に、前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記第3画素データと前記第1画素データ又は前記第2画素データとの差分値の絶対値が第1規定値以上となる受光素子を検出し、前記判断処理は、更に、前記検出処理によって検出された受光素子を含むセンサチップ単位の第3画素データ群が正常か否かを判断し、前記検出処理によって検出された受光素子を含まないセンサチップ単位の第1画素データ群と第2画素データ群のいずれもが正常と判断し、前記生成処理は、前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記判断処理によって前記第3画素データ群が正常であると判断された場合、該センサチップにおける第3画素データ群を選択して、シェーディング補正用の白レベルデータを生成する構成としても良い。 In the image reading apparatus, when the control unit further determines that neither of the first pixel data group and the second pixel data group is normal by the determination process, the sub-scanning direction different from the third reading position of the reference member relative to the first reading position and the second reading position, the causes the reading unit is moved, and the instruction in said read position, the output for each of the light receiving element Additional detection processing for acquiring the third pixel data is performed, and the detection processing is further performed in the sensor chip determined that neither the first pixel data group nor the second pixel data group is normal. A light receiving element in which an absolute value of a difference value between the third pixel data and the first pixel data or the second pixel data is equal to or greater than a first specified value is detected, and the determination process is further performed in the detection process. It is determined whether or not the third pixel data group in the sensor chip unit including the light receiving element detected in this manner is normal, and the first pixel data group and the first pixel data group in the sensor chip unit not including the light receiving element detected by the detection process It is determined that both of the two pixel data groups are normal, and the generation process is performed by the determination process in the sensor chip that is determined that neither the first pixel data group nor the second pixel data group is normal . When it is determined that the three-pixel data group is normal, the third pixel data group in the sensor chip may be selected to generate white level data for shading correction.

この画像読取装置では、1つのセンサチップにおいて第1画素データ群及び第2画素データ群のいずれもが正常でないと判断された場合、更に、第3画素データを取得して第3画素データ群を選択する。そのため、異常と判断された画素データ群を用いて白レベルデータが生成されるのを抑制することができる。   In this image reading apparatus, when it is determined that neither the first pixel data group nor the second pixel data group is normal in one sensor chip, the third pixel data group is further obtained by acquiring the third pixel data group. select. For this reason, it is possible to suppress generation of white level data using a pixel data group determined to be abnormal.

上記画像読取装置では、前記制御部において、前記検出処理は、
更に、
前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記第3画素データと前記第1画素データ又は前記第2画素データとの差分値の絶対値が第1規定値以上となる受光素子を検出し、
前記判断処理は、
更に、
前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記検出処理によって検出された受光素子を含むセンサチップの全受光素子における第3画素データの代表値と該当画素データの代表値とをそれぞれ取得し、前記検出された受光素子の第3画素データと前記第3画素データの代表値との差分の絶対値である第3絶対値と、前記第1絶対値又は前記第2絶対値とを比較し、前記第3画素データ群が正常か否かを判断し、前記生成処理は、前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記判断処理によって前記第3画素データ群が正常であると判断された場合、該センサチップにおける第3画素データ群を選択して、シェーディング補正用の白レベルデータを生成する構成としても良い。
In the image reading apparatus, the detection process is performed by the control unit.
Furthermore,
The absolute value of the difference value between the third pixel data and the first pixel data or the second pixel data in the sensor chip determined that neither the first pixel data group nor the second pixel data group is normal. Detecting a light receiving element having a value equal to or greater than the first specified value,
The determination process includes
Furthermore,
Representative of third pixel data in all light receiving elements of the sensor chip including the light receiving elements detected by the detection processing in the sensor chip determined that neither the first pixel data group nor the second pixel data group is normal. Gets the value and the corresponding pixel data of the representative values respectively, the third absolute value is an absolute value of the difference between the representative value of the third pixel data and the third pixel data of the detected light receiving element, the first 1 absolute value or the second absolute value is compared to determine whether or not the third pixel data group is normal, and the generation processing includes both the first pixel data group and the second pixel data group. If the third pixel data group is determined to be normal by the determination process in the sensor chip determined to be not normal, the third pixel data group in the sensor chip is selected, and the shape of the third pixel data group is selected. It may be configured to generate white-level data for the loading correction.

この画像読取装置では、第1画素データ群及び第2画素データ群のいずれもが正常でないと判断された場合、更に、第3画素データを取得し、該センサチップにおける第3画素データ群が正常であると判断された場合に第3画素データ群を選択する。そのため、正常と判断された画素データ群を用いて白レベルデータを生成することができる。   In this image reading apparatus, when it is determined that neither the first pixel data group nor the second pixel data group is normal, the third pixel data is further acquired, and the third pixel data group in the sensor chip is normal. When it is determined that the third pixel data group is selected, the third pixel data group is selected. Therefore, white level data can be generated using a pixel data group determined to be normal.

上記画像読取装置では、前記制御部において、前記検出処理は、更に、前記判断処理によって、前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断した場合、前記第1読取位置及び前記第2読取位置と異なる第3読取位置に前記読取部を移動させ、該読取位置で前記指示し、前記受光素子毎に出力される第3画素データを取得する追加取得処理、を実行し、前記検出処理は、更に、前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記第3画素データと前記第1画素データ又は前記第2画素データとの差分値の絶対値が第1規定値以上となる受光素子を検出し、前記判断処理は、更に、前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記検出処理によって検出された受光素子を含むセンサチップの全受光素子における第3画素データの代表値と該当画素データの代表値とをそれぞれ取得し、前記検出された受光素子の第3画素データと前記第3画素データの代表値との差分の絶対値である第3絶対値と、前記第1絶対値又は前記第2絶対値とを比較し、前記第3画素データ群が正常か否かを判断し、前記生成処理は、前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記判断処理によって前記第3画素データ群が正常でないと判断された場合、前記第1絶対値、前記第2絶対値、及び前記第3絶対値を比較し、最も小さい絶対値に係る画素データ群を選択して、シェーディング補正用の白レベルデータを生成する構成としても良い。 In the image reading apparatus, when the control unit determines that neither the first pixel data group nor the second pixel data group is normal by the determination process, the first reading is performed. position and the second reading position different from the third reading position, wherein by the reading unit moving the to the instruction by said read position, additional acquisition process for acquiring the third pixel data outputted for each of the light receiving element, The detection processing is further performed in the sensor chip determined that neither the first pixel data group nor the second pixel data group is normal, and the third pixel data and the first pixel data or the A light receiving element in which the absolute value of the difference value with respect to the second pixel data is equal to or greater than the first specified value is detected, and the determination process is further normal in both the first pixel data group and the second pixel data group. In the sensor chip determined to be, the representative value of the third pixel data and the representative value of the corresponding pixel data in all the light receiving elements of the sensor chip including the light receiving element detected by the detection process are respectively acquired and detected. A third absolute value that is an absolute value of a difference between the third pixel data of the light receiving element and a representative value of the third pixel data is compared with the first absolute value or the second absolute value, and the third pixel It is determined whether or not a data group is normal, and the generation process is performed in the third pixel by the determination process in a sensor chip that is determined that neither the first pixel data group nor the second pixel data group is normal. If the data group is determined to be not normal, the first absolute value, the second absolute value, and comparing the third absolute value, and selecting the pixel data group according to the smallest absolute value, Shede It may be configured to generate white-level data for the ring correction.

この画像読取装置では、1つのセンサチップにおいて第1画素データ群及び第2画素データ群のいずれもが正常でないと判断された場合、更に、第3画素データを取得する。そして、該センサチップにおける第3画素データ群が正常でないと判断された場合に、差分の絶対値が最も小さい画素データ群を選択する。そのため、基準部材の表面の主走査方向における特定位置に、副走査方向の比較的広範囲に亘る異常が発生し、読取位置を変えても該センサチップにおける正常な画素データが取得されない場合に、画素データの取得が何度も繰り返されるのを抑制することができる。   In this image reading apparatus, when it is determined that neither the first pixel data group nor the second pixel data group is normal in one sensor chip, the third pixel data is further acquired. When it is determined that the third pixel data group in the sensor chip is not normal, the pixel data group with the smallest absolute value of the difference is selected. Therefore, when an abnormality over a relatively wide range in the sub-scanning direction occurs at a specific position in the main scanning direction on the surface of the reference member, and normal pixel data in the sensor chip is not acquired even if the reading position is changed, the pixel Data acquisition can be prevented from being repeated many times.

上記画像読取装置では、前記制御部において、前記検出処理は、前記第1画素データと前記第2画素データとの差分値の絶対値が第1規定値以上となる複数の受光素子であって、主走査方向に連続する前記複数の受光素子を検出した場合、連続する第1連続範囲の中で前記差分値の絶対値のピーク値を検出し、そのピーク値に対応する受光素子を検出し、前記判断処理は、前記検出されたピーク値に対応する受光素子の第1画素データと前記第1画素データの代表値との差分の絶対値である第4絶対値と、前記検出されたピーク値に対応する受光素子の第2画素データと前記第2画素データの代表値との差分の絶対値である第5絶対値とを比較し、前記第4絶対値が前記第5絶対値より大きい場合、該センサチップにおける第2画素データ群が正常であると判断し、前記第4絶対値が前記第5絶対値以下である場合、該センサチップにおける第1画素データ群が正常であると判断する構成としても良い。 In the image reading apparatus, in the control unit, the detection process includes a plurality of light receiving elements in which an absolute value of a difference value between the first pixel data and the second pixel data is equal to or more than a first specified value, When detecting the plurality of light receiving elements continuous in the main scanning direction, the peak value of the absolute value of the difference value is detected in the continuous first continuous range, and the light receiving element corresponding to the peak value is detected, The determination process includes a fourth absolute value that is an absolute value of a difference between the first pixel data of the light receiving element corresponding to the detected peak value and a representative value of the first pixel data, and the detected peak value. The fifth absolute value , which is the absolute value of the difference between the second pixel data of the light receiving element corresponding to the second pixel data and the representative value of the second pixel data, and the fourth absolute value is greater than the fifth absolute value , Second pixel data group in the sensor chip Is determined to be normal, if the fourth absolute value is equal to or less than the fifth absolute value, it may be configured to first pixel data group in said sensor chip is determined to be normal.

この画像読取装置では、第1画素データと第2画素データとの差分値の絶対値が第1規定値以上となる受光素子が主走査方向に連続している場合に、連続する範囲内の差分値の絶対値のピーク値を検出し、ピーク値に対応する受光素子における差分の絶対値を比較して、第1画素データ群及び第2画素データ群が正常か否かを判断する。ピーク値に対応する受光素子で比較を行うことで、複数の受光素子の各々で比較を行う場合に比べて、比較的簡単に白レベルデータを生成することができる。   In this image reading apparatus, when the light receiving elements whose absolute value of the difference value between the first pixel data and the second pixel data is equal to or greater than the first specified value are continuous in the main scanning direction, the difference within the continuous range. The peak value of the absolute value is detected, and the absolute value of the difference in the light receiving element corresponding to the peak value is compared to determine whether the first pixel data group and the second pixel data group are normal. By performing the comparison with the light receiving elements corresponding to the peak value, it is possible to generate the white level data relatively easily as compared with the case of performing the comparison with each of the plurality of light receiving elements.

上記画像読取装置では、前記制御部において、前記検出処理は、更に、前記第1画素データと前記第2画素データとの差分値の絶対値が前記第1規定値よりも小さい第2規定値以上となる受光素子を検出し、前記第1画素データと前記第2画素データとの差分値の絶対値が第2規定値以上となる複数の受光素子が主走査方向に連続する第2連続範囲であって、前記第1連続範囲を含む前記第2連続範囲に含まれる受光素子が、複数のセンサチップに属する場合、該複数のセンサチップの各センサチップ毎に、前記第2連続範囲の中で前記差分値の絶対値のピーク値を検出し、そのピーク値に対応する受光素子を検出する構成としても良い。   In the image reading apparatus, in the control unit, the detection process further includes a second specified value that is smaller than the first specified value, in which an absolute value of a difference value between the first pixel data and the second pixel data is smaller than the first specified value. In a second continuous range in which a plurality of light receiving elements in which the absolute value of the difference value between the first pixel data and the second pixel data is equal to or greater than a second specified value are continuous in the main scanning direction. When the light receiving elements included in the second continuous range including the first continuous range belong to a plurality of sensor chips, each sensor chip of the plurality of sensor chips is within the second continuous range. The absolute value of the difference value may be detected and a light receiving element corresponding to the peak value may be detected.

通常、第1画素データと第2画素データとの差分値の絶対値が第1規定値よりも小さい受光素子のみを含むセンサチップでは、当該センサチップにおける第1画素データ群と第2画素データ群は正常と判断され、正常か否かが判断されない。しかし、第1連続範囲に含まれず、第2連続範囲に含まれる範囲の受光素子は、第1画素データと第2画素データとの差分値の絶対値が第1規定値よりも小さい受光素子ではあるが、第1連続範囲の原因となる基準部材の比較的広範囲に亘る異常の隣接位置を読み取っていると考えられる。そのため、比較的広範囲に亘る異常の影響の有無を判断するために、当該受光素子を含むセンサチップ単位の第1画素データ群と第2画素データ群に対しても正常か否かが判断されたほうが良い。
この画像読取装置では、第2連続範囲に属する全てのセンサチップにおいて、各センサチップ毎に第2連続範囲内のピーク値を算出し、第1画素データ群及び第2画素データ群が正常か否かを判断する。そのため、比較的広範囲に亘る異常の隣接位置に対応するセンサチップにおいても、第1画素データ群と第2画素データ群が正常か否かを判断することができる。
Usually, in a sensor chip including only a light receiving element whose absolute value of the difference value between the first pixel data and the second pixel data is smaller than the first specified value, the first pixel data group and the second pixel data group in the sensor chip. Is determined to be normal, and it is not determined whether it is normal. However, the light receiving elements that are not included in the first continuous range and that are included in the second continuous range are light receiving elements in which the absolute value of the difference value between the first pixel data and the second pixel data is smaller than the first specified value. However, it is considered that the adjacent position of the abnormality over a relatively wide range of the reference member that causes the first continuous range is read. Therefore, in order to determine whether there is an influence of an abnormality over a relatively wide range, it is determined whether the first pixel data group and the second pixel data group in the sensor chip unit including the light receiving element are also normal. Better.
In this image reading apparatus, for all sensor chips belonging to the second continuous range, the peak value in the second continuous range is calculated for each sensor chip, and the first pixel data group and the second pixel data group are normal. Determine whether. Therefore, it is possible to determine whether or not the first pixel data group and the second pixel data group are normal even in the sensor chip corresponding to the abnormal adjacent position over a relatively wide range.

本明細書によって開示される発明によれば、基準部材の色合いの変化や汚れ等によって比較的、主走査方向の広範囲に亘って異常が生じたとしても、適切に白レベルデータを生成することができる。   According to the invention disclosed in this specification, white level data can be appropriately generated even if an abnormality occurs over a relatively wide range in the main scanning direction due to a change in color of the reference member, dirt, or the like. it can.

複合機の概略的な断面図Schematic cross-sectional view of a multifunction machine 第1読取部の受光部と白基準板との関係を示す図The figure which shows the relationship between the light-receiving part of a 1st reading part, and a white reference board. 複合機の電気的構成を概略的に示すブロック図Block diagram schematically showing the electrical configuration of the MFP 画像読取処理を示すフローチャートFlow chart showing image reading process 白レベルデータ取得処理を示すフローチャートFlow chart showing white level data acquisition processing ピーク画素検出処理を示すフローチャートFlow chart showing peak pixel detection processing 異常白ライン特定処理を示すフローチャートFlow chart showing abnormal white line identification processing 両ライン異常処理を示すフローチャートFlow chart showing both line abnormality processing 白レベルデータ生成処理を示すフローチャートFlow chart showing white level data generation processing 画素データDと差分値Diffと白レベルデータDSを示すグラフGraph showing pixel data D, difference value Diff, and white level data DS 差分値Diffを示すグラフGraph showing difference value Diff

<一実施形態>
一実施形態について、図1から図11を参照しつつ説明する。複合機1は、画像読取装置の一例であり、スキャンモードに加えて、コピーモード、印刷モードなど、複数のモードを実行可能である。以下の説明では、図1の紙面右下側を複合機1の前側(F)とし、紙面左下側を複合機1の左側(L)とし、紙面上側を複合機1の上側(U)とする。
<One Embodiment>
An embodiment will be described with reference to FIGS. The multifunction device 1 is an example of an image reading apparatus, and can execute a plurality of modes such as a copy mode and a print mode in addition to a scan mode. In the following description, the lower right side of FIG. 1 is the front side (F) of the multifunction machine 1, the lower left side of the page is the left side (L) of the multifunction machine 1, and the upper side of the page is the upper side (U) of the multifunction machine 1. .

1.複合機の機械的構成
図1に示すように、複合機1は、カバー部2と本体部3とを備える。本体部3の上面の後端側には図示しない支持部材が設けられており、カバー部2はこの支持部材を中心に回動可能に連結されている。これにより、点線Wから上側のカバー部2は、本体部3の上面を覆う閉姿勢(図1参照)と、本体部3の上面を開放させた開姿勢とに変位可能である。
1. As shown in FIG. 1, the multifunction device 1 includes a cover portion 2 and a main body portion 3. A support member (not shown) is provided on the rear end side of the upper surface of the main body 3, and the cover 2 is connected to be rotatable about the support member. As a result, the cover portion 2 above the dotted line W can be displaced between a closed posture (see FIG. 1) covering the upper surface of the main body portion 3 and an open posture where the upper surface of the main body portion 3 is opened.

カバー部2は、供給トレイ11、フロントセンサ(以下、Fセンサ)12、排出トレイ13、原稿自動搬送装置(Auto Document Feeder 以下、ADF)14、第1ADF用対向部材15、フラットベッ(Flat Bed 以下、FB)用押さえ部材16、および、第2読取部17、リアセンサ(以下、Rセンサ)18等を備える。また、カバー部2内には、図示しない原稿シートを、供給トレイ11からU字状に折り返して排出トレイ13に搬送するための搬送経路Rが形成されている。 Cover 2, the supply tray 11, front sensor (hereinafter, F sensor) 12, a discharge tray 13, an automatic document feeder (Auto Document Feeder below, ADF) 14, a first 1ADF opposing member 15, flatbed (Flat, Bed Hereinafter, the pressing member 16 for FB), the 2nd reading part 17, the rear sensor (henceforth R sensor) 18, etc. are provided. In the cover portion 2, a transport path R is formed for returning a document sheet (not shown) from the supply tray 11 into a U shape and transporting it to the discharge tray 13.

供給トレイ11には、画像読取前の原稿シートが複数枚配置可能である。Fセンサ12は、供給トレイ11の先端側(左端側)の検出位置RFで、供給トレイ11上の原稿シートの有無を検出する。Rセンサ18は、搬送経路Rにおいて検出位置RFよりも下流側の検出位置RRで、原稿シートの有無を検出する。   A plurality of original sheets before image reading can be arranged on the supply tray 11. The F sensor 12 detects the presence or absence of a document sheet on the supply tray 11 at a detection position RF on the leading end side (left end side) of the supply tray 11. The R sensor 18 detects the presence or absence of a document sheet at a detection position RR downstream of the detection position RF in the transport path R.

ADF14は、供給トレイ11上に載置された複数枚の原稿シートを1枚ずつ分離し、搬送経路Rに沿って搬送し、排出トレイ13に順次排出する。具体的には、ADF14は、供給ローラ14A、分離ローラ14B、分離パッド14C、複数の搬送ローラ14D、各搬送ローラ14Dに圧接して従動する複数の従動ローラ14E、原稿シートを案内する複数のガイド部材14F等を有する。   The ADF 14 separates a plurality of document sheets placed on the supply tray 11 one by one, conveys them along the conveyance path R, and sequentially discharges them to the discharge tray 13. Specifically, the ADF 14 includes a supply roller 14A, a separation roller 14B, a separation pad 14C, a plurality of conveyance rollers 14D, a plurality of driven rollers 14E driven in pressure contact with the respective conveyance rollers 14D, and a plurality of guides for guiding the document sheet. It has member 14F etc.

供給ローラ14A、分離ローラ14B、および、搬送ローラ14Dは、駆動モータU1(図3参照)によって回転駆動される。これにより、供給ローラ14Aは、供給トレイ11に積載される複数枚の原稿シートを搬送経路R側へと搬送し、分離ローラ14Bと分離パッド14Cとは、その複数枚の原稿シートを1枚ずつ分離して搬送経路R内に送り出す。搬送ローラ14Dは、その分離された原稿シートを、搬送経路Rに沿って搬送し、排出トレイ13上に排出する。   The supply roller 14A, the separation roller 14B, and the conveyance roller 14D are rotationally driven by a drive motor U1 (see FIG. 3). As a result, the supply roller 14A conveys the plurality of document sheets stacked on the supply tray 11 to the conveyance path R side, and the separation roller 14B and the separation pad 14C feed the plurality of document sheets one by one. Separated and sent out in the transport path R. The conveyance roller 14 </ b> D conveys the separated document sheet along the conveyance path R and discharges it onto the discharge tray 13.

第1ADF用対向部材15は、カバー部2が閉姿勢のとき、後述するADF用ガラス21Aを介して、後述する第1読取部25に対向する。FB用押さえ部材16は、カバー部2の下面側に設けられており、カバー部2が閉姿勢のとき、後述するFB用ガラス21Bを略全面を覆う。第2読取部17は、上記第1ADF用対向部材15に対して、搬送経路Rの下流側に設けられている。第2読取部17の具体的な構成は、後述する第1読取部25と同様であるものとし、詳細な説明は省略する。   When the cover unit 2 is in the closed position, the first ADF facing member 15 faces the first reading unit 25 described later via the ADF glass 21A described later. The FB holding member 16 is provided on the lower surface side of the cover portion 2 and covers substantially the entire surface of the FB glass 21B described later when the cover portion 2 is in the closed posture. The second reading unit 17 is provided on the downstream side of the transport path R with respect to the first ADF facing member 15. The specific configuration of the second reading unit 17 is the same as that of the first reading unit 25 described later, and detailed description thereof is omitted.

本体部3は、全体として、左右方向に長い箱状に形成されており、その上面部分にプラテンガラス21が配置されている。プラテンガラス21の上面には、左寄りの位置に仕切り部材22が設けられている。プラテンガラス21は、この仕切り部材22により、2つの部分に分けられており、以下、左側の部分を、ADF用ガラス21Aといい、右側の部分を、FB用ガラス21Bという。   The main body 3 is formed in a box shape that is long in the left-right direction as a whole, and a platen glass 21 is disposed on the upper surface portion thereof. A partition member 22 is provided on the upper surface of the platen glass 21 at a position on the left side. The platen glass 21 is divided into two parts by the partition member 22. Hereinafter, the left part is referred to as ADF glass 21A, and the right part is referred to as FB glass 21B.

仕切り部材22の下面には、白基準板22A及び黒基準板22Bが設けられている。白基準板22Aは、第1読取部25と対向する対向面の光反射率が概ね均一な白色の部材であり、黒基準板22Bは、第1読取部25と対向する対向面の光反射率が概ね均一な黒色の部材である。白基準板22Aは、基準部材の一例である。   A white reference plate 22 </ b> A and a black reference plate 22 </ b> B are provided on the lower surface of the partition member 22. The white reference plate 22A is a white member having a substantially uniform light reflectance on the facing surface facing the first reading unit 25, and the black reference plate 22B is the light reflectance of the facing surface facing the first reading unit 25. Is a generally uniform black member. The white reference plate 22A is an example of a reference member.

図2に示すように、白基準板22Aは左右方向に所定の幅を有し、その左前側角部及び左後側角部において黒基準板22Bが隣接して配置されている。白基準板22Aの左前側角部及び左後側角部に配置された黒基準板22Bの右側(R)端部位置は一致しており、基準位置に設定されている。基準位置から右側に約5mm移動した位置が、後述する第1読取位置R1に設定されている。同様に、基準位置から右側に約3mm移動した位置が、後述する第2読取位置R2に設定されており、基準位置から右側に約1mm移動した位置が、後述する第3読取位置R3に設定されている。   As shown in FIG. 2, the white reference plate 22A has a predetermined width in the left-right direction, and the black reference plate 22B is disposed adjacent to the left front corner and the left rear corner. The right (R) end positions of the black reference plate 22B arranged at the left front corner and the left rear corner of the white reference plate 22A coincide with each other and are set to the reference position. A position moved about 5 mm to the right from the reference position is set as a first reading position R1 described later. Similarly, a position moved about 3 mm to the right from the reference position is set as a second reading position R2 described later, and a position moved about 1 mm to the right from the reference position is set as a third reading position R3 described later. ing.

図1に示すように、本体部3内には、第1読取部25、デバイス移動部26(図3参照)、第2ADF用対向部材27等が設けられている。第1読取部25は、カバー部2が閉姿勢のとき、上記第1ADF用対向部材15に対向する。第1読取部25は、CIS(Contact Image Sensor)を有する読取デバイスであり、発光部25Aおよび受光部25Bを有する。第1読取部25は、読取部の一例であり、発光部25Aは、光源の一例である。   As shown in FIG. 1, a first reading unit 25, a device moving unit 26 (see FIG. 3), a second ADF facing member 27, and the like are provided in the main body unit 3. The first reading unit 25 faces the first ADF facing member 15 when the cover unit 2 is in the closed posture. The first reading unit 25 is a reading device having a CIS (Contact Image Sensor), and includes a light emitting unit 25A and a light receiving unit 25B. The first reading unit 25 is an example of a reading unit, and the light emitting unit 25A is an example of a light source.

発光部25Aは、本体部3の前後方向に相当する主走査方向Z1に、複数の発光素子(発光ダイオードなど)が配置されて構成される。図2に示すように、受光部25Bは、主走査方向Z1に複数のセンサチップ28が配置されて構成されており、各センサチップ28は、主走査方向Z1に複数の画素29を有している。受光部25Bは、発光部25Aから照射され、原稿シートで反射された光を各画素29を用いて受光し、原稿シートを読み取る。また、各センサチップ28は、発光部25Aから照射され、白基準板22Aで反射された光を各画素29を用いて受光し、白基準板22Aを読み取る。画素29は、受光素子の一例である。   The light emitting unit 25A is configured by arranging a plurality of light emitting elements (such as light emitting diodes) in the main scanning direction Z1 corresponding to the front-rear direction of the main body unit 3. As shown in FIG. 2, the light receiving unit 25B is configured by arranging a plurality of sensor chips 28 in the main scanning direction Z1, and each sensor chip 28 has a plurality of pixels 29 in the main scanning direction Z1. Yes. The light receiving unit 25B receives the light emitted from the light emitting unit 25A and reflected by the document sheet using each pixel 29, and reads the document sheet. Each sensor chip 28 receives light emitted from the light emitting unit 25A and reflected by the white reference plate 22A using each pixel 29, and reads the white reference plate 22A. The pixel 29 is an example of a light receiving element.

デバイス移動部26は、第1読取部25を、プラテンガラス21の下側において、本体部3の左右方向に相当する、換言すれば主走査方向Z1に直する副走査方向Z2に沿って相対移動(以下、単に移動)させることが可能である。デバイス移動部26は、移動モータU2(図3参照)によって図示しない移動ローラを回転駆動させ、第1読取部25を副走査方向Z2に移動させる。デバイス移動部26は、移動部の一例である。 Device moving unit 26, a first reading unit 25, the lower side of the platen glass 21, corresponding to the left-right direction of the main body 3, along the sub-scanning direction Z2 to Cartesian in the main scanning direction Z1 in other words relative It is possible to move (hereinafter, simply move). The device moving unit 26 rotationally drives a moving roller (not shown) by the moving motor U2 (see FIG. 3), and moves the first reading unit 25 in the sub-scanning direction Z2. The device moving unit 26 is an example of a moving unit.

第1読取部25は、デバイス移動部26により、第1ADF用対向部材15に対抗する位置に移動し、ADF14によって搬送経路Rを搬送される原稿シートの下面を読み取る、いわゆるADF読取を実行する。また、第1読取部25は、デバイス移動部26により、FB用ガラス21Bの下側を副走査方向Z2に移動しながら、FB用ガラス21Bの上側に載置された原稿シートの下面を読み取る、いわゆるFB読取を実行する。更に、第1読取部25は、デバイス移動部26により、白基準板22Aに対抗する位置に移動し、予め定められた読取位置R1〜R3(図2参照)で、白基準板22Aを読み取る   The first reading unit 25 is moved by the device moving unit 26 to a position that opposes the first ADF facing member 15, and performs a so-called ADF reading in which the ADF 14 reads the lower surface of the original sheet conveyed along the conveyance path R. Further, the first reading unit 25 reads the lower surface of the document sheet placed on the upper side of the FB glass 21B while moving the lower side of the FB glass 21B in the sub scanning direction Z2 by the device moving unit 26. A so-called FB reading is executed. Further, the first reading unit 25 is moved by the device moving unit 26 to a position that opposes the white reference plate 22A, and reads the white reference plate 22A at predetermined reading positions R1 to R3 (see FIG. 2).

第2ADF用対向部材27は、カバー部2が閉姿勢のとき、第2読取部17に対向する。第2読取部17は、ADF14によって搬送経路Rの第2読取部17に対向する位置に搬送された原稿シートの上面を読み取る。本体部3には、この他に、各種設定ボタンからなり、使用者からの各種命令を受け付ける操作部23(図3参照)や、LEDや液晶ディスプレイからなり複合機1の状況を表示する表示部24(図3参照)等が設けられている。   The second ADF facing member 27 faces the second reading unit 17 when the cover unit 2 is in the closed posture. The second reading unit 17 reads the upper surface of the document sheet conveyed by the ADF 14 to a position facing the second reading unit 17 on the conveyance path R. In addition to this, the main unit 3 includes various setting buttons, an operation unit 23 (see FIG. 3) that receives various commands from the user, and a display unit that displays the status of the multifunction machine 1 including an LED and a liquid crystal display. 24 (refer FIG. 3) etc. are provided.

2.複合機の電気的構成
図3に示すように、複合機1は、ASIC(Application Specific Integrated Circuit)39と、ROM36と、RAM37とを備え、これらに読取部17、25、ADF14、デバイス移動部26等が接続されている。図3に実線31で示すように、ASIC9と、ROM6と、RAM7とを含めたものが、制御部の一例である。
2. As shown in FIG. 3, the multifunction device 1 includes an ASIC (Application Specific Integrated Circuit) 39, a ROM 36, and a RAM 37. The reading units 17, 25, the ADF 14, and the device moving unit 26 are included in these. Etc. are connected. As shown by a solid line 31 in FIG. 3, the one including the ASIC 3 9, the ROM 3 6, and the RAM 3 7 is an example of the control unit.

ASIC39は、CPU30を含む他、画像処理回路32等の専用のハード回路を含む。ROM36には、複合機1の動作を制御するための各種のプログラムが記憶されており、CPU30は、ROM36から読み出したプログラムに従って各部の制御を行うとともに、必要に応じてハード回路を用いて後述する画像読取処理等の処理を実行する。ROM36にはまた、後述する第1規定値K1、第2規定値K2等が記憶されている。   The ASIC 39 includes a CPU 30 and a dedicated hardware circuit such as the image processing circuit 32. Various programs for controlling the operation of the multifunction device 1 are stored in the ROM 36, and the CPU 30 controls each unit according to the program read from the ROM 36, and will be described later using a hardware circuit as necessary. Processing such as image reading processing is executed. The ROM 36 also stores a first specified value K1, a second specified value K2, and the like which will be described later.

読取部17、25は、CPU30からの命令に基づいて、発光部17A、25Aを発光させ、原稿シート、及び、白基準板22Aを読み取る。読取部17、25は、1回の読み取りで受光部17B、25Bが主走査方向Z1に1ライン読み取り、主走査方向Z1に配置された複数のセンサチップ28の各画素29により取得された画素データの集まりである読取画像データを取得する。読取部17、25が取得した読取画像データは、デジタル信号の読取画像データに変換されてRAM27に記憶される。   Based on a command from the CPU 30, the reading units 17 and 25 cause the light emitting units 17A and 25A to emit light and read the original sheet and the white reference plate 22A. The reading units 17 and 25 are pixel data acquired by each pixel 29 of the plurality of sensor chips 28 arranged in the main scanning direction Z1 by the light receiving units 17B and 25B reading one line in the main scanning direction Z1 by one reading. The read image data that is a collection of. The read image data acquired by the reading units 17 and 25 is converted into read image data of a digital signal and stored in the RAM 27.

画像処理回路32は、CPU30からの命令に基づいて、RAM37に記憶された読取画像データに対して、2値化処理やエンハンス処理等のエッジ検出処理を行う。また、画像処理回路32は、CPU30からの命令に基づいて、RAM37に記憶された読取画像データの各画素データの濃度値を用いて、各種演算処理を実行する。   The image processing circuit 32 performs edge detection processing such as binarization processing and enhancement processing on the read image data stored in the RAM 37 based on a command from the CPU 30. Further, the image processing circuit 32 executes various arithmetic processes using the density value of each pixel data of the read image data stored in the RAM 37 based on a command from the CPU 30.

3.画像読取処理
例えば使用者が操作部23を介して画像読取指示が入力されると、CPU30は、図4に示す読取制御処理を実行する。CPU30は、Fセンサ12の検出結果に基づき、供給トレイ11上に原稿シートが有ると判断した場合、ADF読取を実行し、供給トレイ11上に原稿シートが無いと判断した場合、FB読取を実行する。
3. Image Reading Process For example, when the user inputs an image reading instruction via the operation unit 23, the CPU 30 executes a reading control process shown in FIG. Based on the detection result of the F sensor 12, the CPU 30 executes ADF reading when determining that there is a document sheet on the supply tray 11, and executes FB reading when determining that there is no document sheet on the supply tray 11. To do.

図4に示すように、CPU30は、画像読取処理を開始すると、まず、第1読取部25の副走査方向Z2における位置を初期化するために、第1読取位置R1を意味するホームポジション(以下、HP)を検出するHP検出処理を実行する(S2)。HP検出処理において、CPU30は、デバイス移動部26に第1読取部25を基準距離ずつ移動させながら、第1読取部25に読取画像データを取得させる。CPU30は、取得された読取画像データから、副走査方向Z2において白基準板22Aと黒基準板22Bが隣接する基準位置を検出し、第1読取部25を第1読取位置R1に移動させる。   As shown in FIG. 4, when the image reading process is started, the CPU 30 first initializes the position of the first reading unit 25 in the sub-scanning direction Z <b> 2, which means the home position (hereinafter referred to as the first reading position R <b> 1). , HP) is detected (S2). In the HP detection process, the CPU 30 causes the first reading unit 25 to acquire read image data while moving the first reading unit 25 by the reference distance by the device moving unit 26. The CPU 30 detects a reference position where the white reference plate 22A and the black reference plate 22B are adjacent in the sub-scanning direction Z2 from the acquired read image data, and moves the first reading unit 25 to the first reading position R1.

次に、CPU30は、光量調整処理を実行する(S4)。光量調整処理において、CPU30は、第1読取位置R1で発光部25Aの発光時間を変化させた複数回の読み取りを繰り返し、取得された読取画像データから、以降の処理において読取画像データを取得する際の発光部25Aの発光時間を決定する。CPU30は、光量調整処理を終了すると、白レベルデータ取得処理を実行する(S6)。   Next, the CPU 30 executes a light amount adjustment process (S4). In the light amount adjustment process, the CPU 30 repeats a plurality of readings in which the light emission time of the light emitting unit 25A is changed at the first reading position R1, and acquires read image data in subsequent processes from the acquired read image data. The light emission time of the light emitting unit 25A is determined. When completing the light amount adjustment process, the CPU 30 executes a white level data acquisition process (S6).

(白レベルデータ取得処理)
図5に、白レベルデータ取得処理のフローチャートを示す。白レベルデータ取得処理において、CPU30は、まず、画素データD1(i)、D2(i)を取得する(S22)。ここで「i」は、各画素29の画素番号を意味し、受光部25Bでは、主走査方向Z1に沿って、各画素29に1〜N(N:2以上の自然数)の画素番号iが設定されている。同様に、受光部25Bでは、主走査方向Z1に沿って、各センサチップ28に1〜K(K:2以上の自然数)のチップ番号Mが設定されている。
(White level data acquisition process)
FIG. 5 shows a flowchart of white level data acquisition processing. In the white level data acquisition process, the CPU 30 first acquires pixel data D1 (i) and D2 (i) (S22). Here, “i” means the pixel number of each pixel 29. In the light receiving unit 25B, each pixel 29 has a pixel number i of 1 to N (N: a natural number of 2 or more) along the main scanning direction Z1. Is set. Similarly, in the light receiving unit 25B, chip numbers M of 1 to K (K: a natural number of 2 or more) are set for each sensor chip 28 along the main scanning direction Z1.

CPU30は、第1読取位置R1で第1読取部25に白基準板22Aを読み取らせて画素データD1(i)を取得する。また、CPU30は、デバイス移動部26に第1読取部25を第2読取位置R2に移動させ、第2読取位置R2で第1読取部25に白基準板22Aを読み取らせて画素データD2(i)を取得する。画素データD1(i)は、第1画素データの一例であり、画素データD2(i)は、第2画素データの一例である。   The CPU 30 causes the first reading unit 25 to read the white reference plate 22A at the first reading position R1 to obtain pixel data D1 (i). In addition, the CPU 30 causes the device moving unit 26 to move the first reading unit 25 to the second reading position R2, and causes the first reading unit 25 to read the white reference plate 22A at the second reading position R2 so that the pixel data D2 (i ) To get. The pixel data D1 (i) is an example of first pixel data, and the pixel data D2 (i) is an example of second pixel data.

図10に、取得された画素データD1(i)、D2(i)を示す。図10において、点線で区切られた範囲は、各センサチップ28に対応する範囲を示す。図10に示すように、画素データDは、各画素29の受光特性のバラツキにより、同一のセンサチップ28内であってもその濃度値は一定値とはならず、変動する。また、各画素29の受光素子のバラツキは、異なるセンサチップ28間ではより大きくなり、異なるセンサチップ28から得られた画素データDには、チップギャップCGと呼ばれる濃度値の差が表れる。   FIG. 10 shows the acquired pixel data D1 (i) and D2 (i). In FIG. 10, a range delimited by a dotted line indicates a range corresponding to each sensor chip 28. As shown in FIG. 10, the density value of the pixel data D does not become a constant value and fluctuates even within the same sensor chip 28 due to variations in the light receiving characteristics of each pixel 29. Further, the variation in the light receiving element of each pixel 29 becomes larger between different sensor chips 28, and the pixel data D obtained from the different sensor chips 28 shows a difference in density value called a chip gap CG.

また、画素データDは、白基準板22Aの第1読取部25と対向する対向面の状態によっても変動し、図10のP1、P3に示すように、白基準板22Aの対向面にゴミ等が付着していると、濃度値が減少する。また、図10のP2に示すように、白基準板22Aの対向面に傷が生じていると、光の反射が変化して濃度値が上昇することもありえる。白レベルデータ取得処理では、ゴミ等の付着や傷など、白基準板22Aの対向面に異常が生じている場合でも、当該異常による影響を抑制した適切な白レベルデータを取得する。CP
U30は、画素データD1(i)、D2(i)を取得すると、ピーク画素検出処理を実行する(S24)。
The pixel data D also varies depending on the state of the facing surface of the white reference plate 22A facing the first reading unit 25. As shown in P1 and P3 of FIG. If it adheres, the density value decreases. Further, as shown at P2 in FIG. 10, if the facing surface of the white reference plate 22A is scratched, the reflection of light may change and the density value may increase. In the white level data acquisition process, even when an abnormality occurs on the facing surface of the white reference plate 22A, such as adhesion or scratches of dust, appropriate white level data that suppresses the influence of the abnormality is acquired. CP
When U30 acquires the pixel data D1 (i) and D2 (i), U30 executes a peak pixel detection process (S24).

(ピーク画素検出処理)
図6に、ピーク画素検出処理のフローチャートを示す。ピーク画素検出処理において、CPU30は、まず、各画素29毎に、画素データD1(i)と画素データD2(i)との差分値Diff(i)を算出する(S42)。CPU30は、算出された差分値Diff(i)の絶対値をROM36に予め記憶された第1規定値K1と比較し、差分値Diff(i)の絶対値が第1規定値K1以上となる画素29を検出する(S44)。CPU30は、当該画素29が存在しない場合(S44:NO)、ピーク画素なしと判定し(S46)、ピーク画素検出処理を終了する。
Diff(i)=D2(i)―D1(i)
(Peak pixel detection processing)
FIG. 6 shows a flowchart of peak pixel detection processing. In the peak pixel detection process, the CPU 30 first calculates a difference value Diff (i) between the pixel data D1 (i) and the pixel data D2 (i) for each pixel 29 (S42). The CPU 30 compares the absolute value of the calculated difference value Diff (i) with a first specified value K1 stored in advance in the ROM 36, and the absolute value of the difference value Diff (i) is equal to or greater than the first specified value K1. 29 is detected (S44). If the pixel 29 does not exist (S44: NO), the CPU 30 determines that there is no peak pixel (S46), and ends the peak pixel detection process.
Diff (i) = D2 (i) −D1 (i)

その一方、差分値Diff(i)の絶対値が第1規定値K1以上となる画素29が存在する場合(S44:YES)、CPU30は、画素データD1(i)、D2(i)にピーク画素ありと判定し(S47)、ピーク画素を検出する処理を継続する。具体的には、CPU30は、差分値Diff(i)の絶対値が第1規定値K1以上となる全ての画素29を検出する(S48)。次に、CPU30は、検出した画素29に、主走査方向Z1に連続する画素29が存在するか、つまり、検出した画素29に、画素番号iが連続する複数の画素29が含まれているかを判断する(S50)。   On the other hand, when there is a pixel 29 in which the absolute value of the difference value Diff (i) is equal to or greater than the first specified value K1 (S44: YES), the CPU 30 sets the peak pixel in the pixel data D1 (i) and D2 (i). It is determined that there is (S47), and the process of detecting the peak pixel is continued. Specifically, the CPU 30 detects all the pixels 29 in which the absolute value of the difference value Diff (i) is not less than the first specified value K1 (S48). Next, the CPU 30 determines whether the detected pixel 29 includes a pixel 29 that is continuous in the main scanning direction Z1, that is, whether the detected pixel 29 includes a plurality of pixels 29 that have consecutive pixel numbers i. Judgment is made (S50).

CPU30は、検出した各画素29毎に上記判断を行い、画素番号iが連続する画素29が存在しない場合(S50:NO)、当該画素29をピーク画素として検出する(S52 図10 i1、i4参照)。一方、画素番号iが連続する複数の画素29が存在する場合(S50:YES)、CPU30は、図10のXI部分を図11に拡大して示すように、これら複数の画素29が連続する第1連続範囲RH1において、差分値Diff(i)の絶対値のピーク値を検出する。そして、CPU30は、検出したピーク値に対応する画素29を、ピーク画素として検出する(S54 図11 i3参照)。CPU30は、検出されたピーク画素の画素番号j(=i1、i3、i4)と、各ピーク画素が含まれるセンサチップ28のチップ番号M(=M1、M2、M4)を関連付けてRAM37に記憶する(S56)。   The CPU 30 makes the above determination for each detected pixel 29, and when there is no pixel 29 with consecutive pixel numbers i (S50: NO), the CPU 29 detects the pixel 29 as a peak pixel (see S52, i1, i4). ). On the other hand, when there are a plurality of pixels 29 with consecutive pixel numbers i (S50: YES), the CPU 30 expands the XI portion of FIG. 10 in FIG. In one continuous range RH1, the peak value of the absolute value of the difference value Diff (i) is detected. And CPU30 detects the pixel 29 corresponding to the detected peak value as a peak pixel (refer S54 FIG. 11 i3). The CPU 30 associates the detected pixel number j (= i1, i3, i4) of the peak pixel with the chip number M (= M1, M2, M4) of the sensor chip 28 including each peak pixel, and stores them in the RAM 37. (S56).

CPU30は、ピーク画素を検出すると、そのピーク画素の周辺にピーク画素として検出するべき画素の有無を判断する。具体的には、CPU30は、RAM37に記憶されたピーク画素の1つを対象ピーク画素jとして選択し(S58)、対象ピーク画素jの周辺において、差分値Diff(i)の絶対値が第2規定値K2以上となる画素29、及び、当該画素29が主走査方向Z1に連続する第2連続範囲RH2を検出する(S60)。第2規定値K2は、第1規定値K1よりも小さい値であり、ROM36に予め記憶されている。   When detecting the peak pixel, the CPU 30 determines whether there is a pixel to be detected as a peak pixel around the peak pixel. Specifically, the CPU 30 selects one of the peak pixels stored in the RAM 37 as the target peak pixel j (S58), and the absolute value of the difference value Diff (i) is the second value around the target peak pixel j. A pixel 29 having a specified value K2 or more and a second continuous range RH2 in which the pixel 29 is continuous in the main scanning direction Z1 are detected (S60). The second specified value K2 is a value smaller than the first specified value K1, and is stored in the ROM 36 in advance.

図10のピーク画素i1、i4に示すように、差分値Diff(i)の絶対値が第1規定値K1以上となる画素29が主走査方向Z1に連続しないと判断されたピーク画素では、差分値Diff(i)の絶対値が第2規定値K2以上となる画素29も主走査方向Z1に連続しない場合がある。この場合、CPU30は、第2連続範囲RH2を検出しない。その一方、図11のピーク画素i3に示すように、第1連続範囲RH1から検出されたピーク画素では、CPU30は第2連続範囲RH2を検出する。第2連続範囲RH2には、対象ピーク画素j(=i3)を含む他、第1連続範囲RH1が含まれる。   As shown in the peak pixels i1 and i4 in FIG. 10, the pixel 29 having an absolute value of the difference value Diff (i) that is equal to or larger than the first specified value K1 is determined to be different from the peak pixel that is determined not to be continuous in the main scanning direction Z1. The pixel 29 in which the absolute value of the value Diff (i) is not less than the second specified value K2 may not be continuous in the main scanning direction Z1. In this case, the CPU 30 does not detect the second continuous range RH2. On the other hand, as shown by the peak pixel i3 in FIG. 11, the CPU 30 detects the second continuous range RH2 in the peak pixel detected from the first continuous range RH1. The second continuous range RH2 includes the first continuous range RH1 in addition to the target peak pixel j (= i3).

CPU30は、第2連続範囲RH2に含まれる画素29が、対象ピーク画素jが含まれるセンサチップ28に隣接するセンサチップ28に属するかを判断する(S62)。CPU30は、図11に示すように、第2連続範囲RH2に含まれる画素29が隣接するセンサチップ28に属する場合(S62:YES)、隣接するセンサチップ28においてもピーク画素を検出する。   The CPU 30 determines whether the pixel 29 included in the second continuous range RH2 belongs to the sensor chip 28 adjacent to the sensor chip 28 including the target peak pixel j (S62). As shown in FIG. 11, when the pixel 29 included in the second continuous range RH2 belongs to the adjacent sensor chip 28 (S62: YES), the CPU 30 detects the peak pixel also in the adjacent sensor chip 28.

CPU30は、隣接するセンサチップ28の第2連続範囲RH2内の画素29において、差分値Diff(i)の絶対値のピーク値を検出する。そして、CPU30は、検出したピーク値に対応する画素29を、ピーク画素として検出する(S64 図11 i2参照)。CPU30は、検出されたピーク画素の画素番号j(=i2)と、各ピーク画素が含まれるセンサチップ28のチップ番号M(=M1)を関連付けてRAM37に記憶する(S66)。   The CPU 30 detects the peak value of the absolute value of the difference value Diff (i) in the pixel 29 in the second continuous range RH2 of the adjacent sensor chip 28. And CPU30 detects the pixel 29 corresponding to the detected peak value as a peak pixel (refer S64 FIG. 11 i2). The CPU 30 associates the pixel number j (= i2) of the detected peak pixel with the chip number M (= M1) of the sensor chip 28 including each peak pixel and stores it in the RAM 37 (S66).

CPU30は、S66の処理が終了した場合、或は、第2連続範囲RH2が検出されない場合(S62:NO)、或は、第2連続範囲RH2が検出されたけれども第2連続範囲RH2が隣接するセンサチップ28にまで達していない場合(S62:NO)、対象ピーク画素jに対する処理を終了する。CPU30は、S56の処理においてRAM37に記憶された全てのピーク画素が対象ピーク画素jとして選択されるまで(S68:NO)、S60からの処理を繰り返す。そして、RAM37に記憶された全てのピーク画素が対象ピーク画素jとして選択された場合(S68:YES)、CPU30は、ピーク画素検出処理を終了する。   When the process of S66 ends, or when the second continuous range RH2 is not detected (S62: NO), or the second continuous range RH2 is detected, the CPU 30 is adjacent to the second continuous range RH2. If the sensor chip 28 has not been reached (S62: NO), the processing for the target peak pixel j is terminated. The CPU 30 repeats the processing from S60 until all the peak pixels stored in the RAM 37 are selected as the target peak pixel j in the processing of S56 (S68: NO). When all the peak pixels stored in the RAM 37 are selected as the target peak pixel j (S68: YES), the CPU 30 ends the peak pixel detection process.

CPU30は、ピーク画素検出処理を終了すると、図5に示す白レベルデータ取得処理に戻り、センサチップ28の1つを対象センサチップMとして選択する(S26)。次に、CPU30は、対象センサチップMにピーク画素が含まれるかを判断する(S28)。具体的には、CPU30は、S56、S66でRAM37に記憶されたチップ番号Mに、対象センサチップMのチップ番号が含まれるか否かを確認する。CPU30は、対象センサチップMにピーク画素が含まれる場合(S28:YES)、異常白ライン特定処理を実行する(S24)つまり、異常白ライン特定処理は、対象センサチップM毎に実行される。   When the peak pixel detection process ends, the CPU 30 returns to the white level data acquisition process shown in FIG. 5 and selects one of the sensor chips 28 as the target sensor chip M (S26). Next, the CPU 30 determines whether the target sensor chip M includes a peak pixel (S28). Specifically, the CPU 30 checks whether or not the chip number M stored in the RAM 37 in S56 and S66 includes the chip number of the target sensor chip M. When the target sensor chip M includes a peak pixel (S28: YES), the CPU 30 executes an abnormal white line specifying process (S24). That is, the abnormal white line specifying process is executed for each target sensor chip M.

(異常白ライン特定処理)
図7に、異常白ライン特定処理のフローチャートを示す。異常白ライン特定処理において、CPU30は、まず、対象センサチップMの画素データD1(i)の平均値J1(M)、及び、画素データD2(i)の平均値J2(M)を算出する(S72)。CPU30は、対象センサチップMの全画素29における画素データD1(i)(以下、対象センサチップMにおける画素データD1群)を平均して平均値J1(M)を算出し、対象センサチップMの全画素29における画素データD2(i)(以下、対象センサチップMにおける画素データD2群))を平均して平均値J2(M)を算出する。
(Abnormal white line identification processing)
FIG. 7 shows a flowchart of the abnormal white line specifying process. In the abnormal white line specifying process, the CPU 30 first calculates the average value J1 (M) of the pixel data D1 (i) of the target sensor chip M and the average value J2 (M) of the pixel data D2 (i) ( S72). The CPU 30 calculates the average value J1 (M) by averaging the pixel data D1 (i) (hereinafter referred to as pixel data D1 group in the target sensor chip M) in all the pixels 29 of the target sensor chip M. An average value J2 (M) is calculated by averaging pixel data D2 (i) in all the pixels 29 (hereinafter, pixel data D2 group in the target sensor chip M).

CPU30は、平均値J1(M)、J2(M)を算出すると、算出した平均値J1(M)、J2(M)を用いて、対象センサチップMの各画素29毎に、画素データD1(i)、D2(i)の偏差Dev1(i)、Dev2(i)を算出する(S74)。
Dev1(i)=D1(i)―J1(M)
Dev2(i)=D2(i)―J2(M)
After calculating the average values J1 (M) and J2 (M), the CPU 30 uses the calculated average values J1 (M) and J2 (M) for each pixel 29 of the target sensor chip M to generate pixel data D1 ( i) Deviation Dev1 (i) and Dev2 (i) of D2 (i) are calculated (S74).
Dev1 (i) = D1 (i) -J1 (M)
Dev2 (i) = D2 (i) -J2 (M)

次に、CPU30は、対象センサチップMに含まれるピーク画素の1つを対象ピーク画素jとして選択し(S76)、対象ピーク画素jにおける偏差Dev1(j)の絶対値と、偏差Dev2(j)の絶対値とを比較する(S78)。CPU30は、偏差Dev1(j)の絶対値が偏差Dev2(j)の絶対値よりも大きい場合(S78:YES)、対象ピーク画素jの画素データD1(j)が異常と判断する(S80)。一方、CPU30は、偏差Dev1(j)の絶対値が偏差Dev2(j)の絶対値以下である場合(S78:NO)、対象ピーク画素jの画素データD(j)が異常と判断する(S82)。 Next, the CPU 30 selects one of the peak pixels included in the target sensor chip M as the target peak pixel j (S76), the absolute value of the deviation Dev1 (j) at the target peak pixel j, and the deviation Dev2 (j) Is compared with the absolute value (S78). When the absolute value of the deviation Dev1 (j) is larger than the absolute value of the deviation Dev2 (j) (S78: YES), the CPU 30 determines that the pixel data D1 (j) of the target peak pixel j is abnormal (S80). On the other hand, when the absolute value of the deviation Dev1 (j) is equal to or smaller than the absolute value of the deviation Dev2 (j) (S78: NO), the CPU 30 determines that the pixel data D 2 (j) of the target peak pixel j is abnormal ( S82).

CPU30は、図10に示すチップ番号M1のセンサチップ28のように、対象センサチップMに複数のピーク画素(i1、i2)が含まれる場合、全てのピーク画素が対象ピーク画素jとして選択されるまで(S84:NO)、S76からの処理を繰り返す。つまり、対象センサチップMに複数のピーク画素が含まれる場合、各ピーク画素毎に、偏差Dev1(i)の絶対値と偏差Dev2(i)の絶対値とを比較し、各ピーク画素毎に、対象ピーク画素jの画素データD1(j)と画素データD2(j)のいずれかを異常と判断する。   When the target sensor chip M includes a plurality of peak pixels (i1, i2) like the sensor chip 28 with the chip number M1 shown in FIG. 10, the CPU 30 selects all the peak pixels as the target peak pixel j. Until (S84: NO), the processing from S76 is repeated. That is, when the target sensor chip M includes a plurality of peak pixels, the absolute value of the deviation Dev1 (i) is compared with the absolute value of the deviation Dev2 (i) for each peak pixel, and for each peak pixel, Either the pixel data D1 (j) or the pixel data D2 (j) of the target peak pixel j is determined to be abnormal.

そして、対象センサチップMに含まれる全てのピーク画素が対象ピーク画素jとして選択された場合(S84:YES)、CPU30は、対象センサチップMにおける画素データD2群に異常と判断された画素データD2(i)が存在するかを判断する(S86)。CPU30は、図10に示すチップ番号M4のセンサチップ28のように、対象センサチップMにおける画素データD2群に異常と判断された画素データD2(i)が存在しない場合、つまり、対象センサチップMに含まれる全てのピーク画素において、画素データD1(j)が異常と判断された場合(S86:NO)、対象センサチップMにおける画素データD1群を異常、対象センサチップMにおける画素データD2群を正常と判断し(S88)、異常白ライン特定処理を終了する。   If all the peak pixels included in the target sensor chip M are selected as the target peak pixel j (S84: YES), the CPU 30 determines that the pixel data D2 of the target sensor chip M is abnormal in the pixel data D2 group. It is determined whether (i) exists (S86). When the pixel data D2 (i) determined to be abnormal does not exist in the pixel data D2 group in the target sensor chip M, as in the sensor chip 28 of the chip number M4 illustrated in FIG. When the pixel data D1 (j) is determined to be abnormal in all the peak pixels included in (S86: NO), the pixel data D1 group in the target sensor chip M is abnormal, and the pixel data D2 group in the target sensor chip M is It judges that it is normal (S88), and ends the abnormal white line specifying process.

また、CPU30は、対象センサチップMにおける画素データD2群に異常と判断された画素データD2(i)が存在する場合(S86:YES)、更に、対象センサチップMにおける画素データD1群に異常と判断された画素データD1(i)が存在するかを判断する(S90)。CPU30は、図10に示すチップ番号M2のセンサチップ28のように、対象センサチップMにおける画素データD1群に異常と判断された画素データD1(i)が存在しない場合、つまり、対象センサチップMに含まれる全てのピーク画素において、画素データD2(j)が異常と判断された場合(S90:NO)、対象センサチップMにおける画素データD1群を正常、対象センサチップMにおける画素データD2群を異常正常と判断し(S92)、異常白ライン特定処理を終了する。   When the pixel data D2 (i) determined to be abnormal exists in the pixel data D2 group in the target sensor chip M (S86: YES), the CPU 30 further determines that the pixel data D1 group in the target sensor chip M is abnormal. It is determined whether the determined pixel data D1 (i) exists (S90). When the pixel data D1 (i) determined to be abnormal does not exist in the pixel data D1 group in the target sensor chip M as in the sensor chip 28 of the chip number M2 illustrated in FIG. When the pixel data D2 (j) is determined to be abnormal in all the peak pixels included in (S90: NO), the pixel data D1 group in the target sensor chip M is normal, and the pixel data D2 group in the target sensor chip M is It is determined that the abnormality is normal (S92), and the abnormal white line specifying process is terminated.

その一方、CPU30は、図10に示すチップ番号M1のセンサチップ28のように、対象センサチップMにおける両画素データD1群、D2群のいずれもに異常と判断された画素データD1(i)、D2(i)が存在する場合、つまり、対象センサチップMに含まれる一部のピーク画素において、画素データD1(j)が異常と判断され、対象センサチップMに含まれる残りのピーク画素において、画素データD2(j)が異常と判断された場合(S90:YES)、対象センサチップMにおける両画素データD1群、D2群のいずれも異常と判断し(S94)、異常白ライン特定処理を終了する。   On the other hand, the CPU 30, like the sensor chip 28 with the chip number M1 shown in FIG. 10, has pixel data D1 (i), which are determined to be abnormal in both the pixel data D1 group and D2 group in the target sensor chip M. When D2 (i) exists, that is, in some peak pixels included in the target sensor chip M, the pixel data D1 (j) is determined to be abnormal, and in the remaining peak pixels included in the target sensor chip M, When it is determined that the pixel data D2 (j) is abnormal (S90: YES), both the pixel data D1 group and D2 group in the target sensor chip M are determined to be abnormal (S94), and the abnormal white line specifying process is terminated. To do.

CPU30は、異常白ライン特定処理を終了すると、図5に示す白レベルデータ取得処理に戻り、対象センサチップMにおける両画素データD1群、D2群のいずれもが異常と判断されたか否かを確認する(S32)。CPU30は、図10に示すチップ番号M1のセンサチップ28のように、対象センサチップMにおける両画素データD1群、D2群のいずれもが異常と判断された場合(S32:YES)、両ライン異常処理を実行する(S34)。つまり、両ライン異常処理は、対象センサチップM毎に実行される。   When the CPU 30 completes the abnormal white line specifying process, the CPU 30 returns to the white level data acquisition process shown in FIG. 5 and checks whether both the pixel data D1 group and D2 group in the target sensor chip M are determined to be abnormal. (S32). When the CPU 30 determines that both the pixel data D1 group and D2 group in the target sensor chip M are abnormal, such as the sensor chip 28 with the chip number M1 shown in FIG. 10 (S32: YES), both lines are abnormal. The process is executed (S34). That is, both line abnormality processes are executed for each target sensor chip M.

(両ライン異常処理)
図8に、両ライン異常処理のフローチャートを示す。両ライン異常処理において、CPU30は、まず、画素データD3(i)を取得する(S102)。CPU30は、デバイス移動部26に第1読取部25を第3読取位置R3に移動させ、第3読取位置R3で第1読取部25に白基準板22Aを読み取らせて画素データD3(i)を取得する(図10参照)。画素データD3(i)は、第3画素データの一例である。なお、異なるセンサチップ28を対象センサチップMとした両ライン異常処理において、既に画素データD3(i)が取得されている場合には、その画素データD3(i)を利用しても良い。
(Both line abnormality processing)
FIG. 8 shows a flowchart of both line abnormality processing. In both line abnormality processing, the CPU 30 first acquires pixel data D3 (i) (S102). The CPU 30 causes the device moving unit 26 to move the first reading unit 25 to the third reading position R3, and causes the first reading unit 25 to read the white reference plate 22A at the third reading position R3 to obtain the pixel data D3 (i). Obtain (see FIG. 10). The pixel data D3 (i) is an example of third pixel data. In the both-line abnormality process using different sensor chips 28 as the target sensor chip M, when the pixel data D3 (i) has already been acquired, the pixel data D3 (i) may be used.

次に、CPU30は、画素データD1(i)、D3(i)を用いてピーク画素検出処理を実行する(S106)。画素データD1(i)、D3(i)を用いたピーク画素検出処理は、図6に示すフローチャートに従って実行される。画素データD1(i)、D3(i)を用いたピーク画素検出処理において、CPU30は、画素データD1(i)、D3(i)の差分値Diff2(i)を算出し(S42相当)、算出された差分値Diff2(i)の絶対値を第1規定値K1と比較する(S44相当)。CPU30は、差分値Diff2(i)の絶対値が第1規定値K1以上となる画素29が存在する場合(S44:YES相当)、ピーク画素を検出し(S52、S54相当)、検出されたピーク画素の画素番号x(=i1)をRAM37に記憶する(S56相当)。なお、画素データD1(i)、D3(i)を用いたピーク画素検出処理では、S58からS68の処理は行われない。
Diff2(i)=D3(i)―D1(i)
Next, the CPU 30 executes peak pixel detection processing using the pixel data D1 (i) and D3 (i) (S106). The peak pixel detection process using the pixel data D1 (i) and D3 (i) is executed according to the flowchart shown in FIG. In the peak pixel detection process using the pixel data D1 (i) and D3 (i), the CPU 30 calculates a difference value Diff2 (i) between the pixel data D1 (i) and D3 (i) (corresponding to S42). The absolute value of the difference value Diff2 (i) is compared with the first specified value K1 (corresponding to S44). When there is a pixel 29 in which the absolute value of the difference value Diff2 (i) is greater than or equal to the first specified value K1 (S44: equivalent to YES), the CPU 30 detects the peak pixel (corresponding to S52 and S54) and detects the detected peak. The pixel number x (= i1) of the pixel is stored in the RAM 37 (corresponding to S56). In the peak pixel detection process using the pixel data D1 (i) and D3 (i), the processes from S58 to S68 are not performed.
Diff2 (i) = D3 (i) −D1 (i)

次に、CPU30は、画素データD1(i)、D3(i)を用いたピーク画素検出処理でピーク画素が検出されたか否かを確認する(S108)。CPU30は、上記処理でピーク画素が検出された場合(S108:YES)、更に、画素データD1(i)、D3(i)を用いて異常白ライン特定処理を実行する(S110)。   Next, the CPU 30 confirms whether or not a peak pixel is detected by the peak pixel detection process using the pixel data D1 (i) and D3 (i) (S108). When the peak pixel is detected in the above process (S108: YES), the CPU 30 further executes an abnormal white line specifying process using the pixel data D1 (i) and D3 (i) (S110).

画素データD1(i)、D3(i)を用いた異常白ライン特定処理は、図7に示すフローチャートに従って実行される。画素データD1(i)、D3(i)を用いた異常白ライン特定処理において、CPU30は、対象センサチップMの画素データD1(i)の平均値J1(M)、及び、画素データD3(i)の平均値J3(M)を算出し(S72相当)、偏差Dev1(i)、Dev3(i)を算出する(S74相当)。なお、S30の異常白ライン特定処理において、既に平均値J1(M)及び偏差Dev1(i)が算出されている場合には、その平均値J1(M)及び偏差Dev1(i)を利用しても良い。
Dev3(i)=D3(i)―J3(M)
The abnormal white line specifying process using the pixel data D1 (i) and D3 (i) is executed according to the flowchart shown in FIG. In the abnormal white line specifying process using the pixel data D1 (i) and D3 (i), the CPU 30 determines the average value J1 (M) of the pixel data D1 (i) of the target sensor chip M and the pixel data D3 (i ) Average value J3 (M) is calculated (corresponding to S72), and deviations Dev1 (i) and Dev3 (i) are calculated (corresponding to S74). If the average value J1 (M) and the deviation Dev1 (i) are already calculated in the abnormal white line specifying process of S30, the average value J1 (M) and the deviation Dev1 (i) are used. Also good.
Dev3 (i) = D3 (i) -J3 (M)

CPU30は、画素データD1(i)、D3(i)を用いたピーク画素検出処理で検出されたピーク画素x毎に、偏差Dev1(x)の絶対値と偏差Dev3(x)の絶対値とを比較する(S78相当)。CPU30は、偏差Dev3(x)の絶対値が偏差Dev1(x)の絶対値以上である場合(S78:NO相当)、対象ピーク画素xの画素データD3(x)が異常と判断する(S80相当)。そして、CPU30は、対象センサチップMの全画素29における画素データD3(i)(以下、対象センサチップMにおける画素データD3群)に異常と判断された画素データD3(i)が存在しない場合(S86:NO相当)、対象センサチップMにおける画素データD3群を正常と判断する(S88相当 図10参照)。一方、CPU30は、対象センサチップMにおける画素データD3群に異常と判断された画素データD3(i)が存在する場合(S86:YES相当)、対象センサチップMにおける画素データD3群を異常と判断する(S92、S94相当)。   The CPU 30 calculates the absolute value of the deviation Dev1 (x) and the absolute value of the deviation Dev3 (x) for each peak pixel x detected by the peak pixel detection process using the pixel data D1 (i) and D3 (i). Compare (equivalent to S78). When the absolute value of the deviation Dev3 (x) is equal to or larger than the absolute value of the deviation Dev1 (x) (S78: equivalent to NO), the CPU 30 determines that the pixel data D3 (x) of the target peak pixel x is abnormal (corresponding to S80). ). Then, the CPU 30 does not include pixel data D3 (i) determined to be abnormal in the pixel data D3 (i) (hereinafter referred to as pixel data D3 group in the target sensor chip M) in all the pixels 29 of the target sensor chip M ( S86: NO equivalent), the pixel data D3 group in the target sensor chip M is determined to be normal (refer to FIG. 10 equivalent to S88). On the other hand, when the pixel data D3 (i) determined to be abnormal exists in the pixel data D3 group in the target sensor chip M (S86: equivalent to YES), the CPU 30 determines that the pixel data D3 group in the target sensor chip M is abnormal. (S92, S94 equivalent).

その一方、CPU30は、画素データD1(i)、D3(i)を用いたピーク画素検出処理でピーク画素が検出されなかった場合(S108:NO)、対象センサチップMにおける画素データD3群を正常と判断する(S111)。   On the other hand, when the peak pixel is not detected in the peak pixel detection process using the pixel data D1 (i) and D3 (i) (S108: NO), the CPU 30 normalizes the pixel data D3 group in the target sensor chip M. (S111).

CPU30は、S110、S111の処理において対象センサチップMにおける画素データD3群が正常と判断されたかを確認する(S112)。CPU30は、対象センサチップMにおける画素データD3群が正常と判断された場合、両画素データ群異常処理を終了する。その一方、CPU30は、対象センサチップMにおける画素データD3群が異常と判断された場合、つまり、対象センサチップMにおいて正常と判断される画素データD群が取得されなかった場合、対象センサチップMにおける全画素データD1群、D2群、D3群から、ピーク画素j、xの偏差Dev(j)の絶対値が最小となる画素データD群を選択する(S114)。   The CPU 30 confirms whether or not the pixel data D3 group in the target sensor chip M is determined to be normal in the processing of S110 and S111 (S112). When it is determined that the pixel data D3 group in the target sensor chip M is normal, the CPU 30 ends the both pixel data group abnormality process. On the other hand, when the pixel data D3 group in the target sensor chip M is determined to be abnormal, that is, when the pixel data D group determined to be normal in the target sensor chip M is not acquired, the CPU 30 The pixel data D group that minimizes the absolute value of the deviation Dev (j) between the peak pixels j and x is selected from all the pixel data D1, D2, and D3 groups (S114).

具体的には、CPU30は、対象センサチップMにおいて、S24のピーク画素検出処理において検出されたピーク画素jの偏差Dev1(j)の絶対値と、Dev2(j)の絶対値、及び、S106のピーク画素検出処理において検出されたピーク画素xの偏差Dev1(x)の絶対値と、Dev3(x)の絶対値とを比較する。CPU30は、これらの偏差Devのうち、絶対値が最も大きい偏差Devに係る画素データD群を除外する。そして、CPU30は、残った2つの画素データD群に含まれるピーク画素j、xの偏差Devの絶対値を再度比較する。CPU30は、絶対値が最も大きい偏差Devに係る画素データD群を再度除外し、残った1つの画素データD群を選択する。CPU30は、1つの画素データD群を選択すると、両ライン異常処理を終了する。   Specifically, in the target sensor chip M, the CPU 30 determines the absolute value of the deviation Dev1 (j) of the peak pixel j detected in the peak pixel detection process of S24, the absolute value of Dev2 (j), and the S106 The absolute value of deviation Dev1 (x) of peak pixel x detected in the peak pixel detection process is compared with the absolute value of Dev3 (x). The CPU 30 excludes the pixel data D group related to the deviation Dev having the largest absolute value among these deviations Dev. Then, the CPU 30 compares again the absolute values of the deviation Dev of the peak pixels j and x included in the remaining two pixel data D groups. The CPU 30 again excludes the pixel data D group related to the deviation Dev having the largest absolute value, and selects the remaining one pixel data D group. When the CPU 30 selects one pixel data D group, both line abnormality processing ends.

CPU30は、両ライン異常処理を終了すると、図5に示す白レベルデータ取得処理を実行する。CPU30は、白レベルデータ取得処理において、図10に示すチップ番号M3のセンサチップ28のように、対象センサチップMにピーク画素が含まれていない場合(S28:NO)、対象センサチップMにおける両画素データD1群、D2群のいずれもが正常と判断する(S29)。   When the CPU 30 completes both line abnormality processing, it executes white level data acquisition processing shown in FIG. In the white level data acquisition process, when the target sensor chip M does not include a peak pixel (S28: NO), like the sensor chip 28 with the chip number M3 shown in FIG. It is determined that both the pixel data D1 group and D2 group are normal (S29).

CPU30は、S29、S34の処理が終了した場合、或は、対象センサチップMにおける両画素データD1群、D2群のいずれか一方が正常と判断された場合(S32:NO)、対象センサチップMに対する処理を終了する。CPU30は、受光部25Bに含まれる全てのセンサチップ28が対象センサチップMとして選択されるまで(S36:NO)、S26からの処理を繰り返す。そして、受光部25Bに含まれる全てのセンサチップ28が対象センサチップMとして選択された場合(S36:YES)、CPU30は、白レベルデータ生成処理を実行する(S38)。   When the processes of S29 and S34 are completed, or when one of the two pixel data groups D1 and D2 in the target sensor chip M is determined to be normal (S32: NO), the CPU 30 determines the target sensor chip M. The process for is terminated. The CPU 30 repeats the processing from S26 until all the sensor chips 28 included in the light receiving unit 25B are selected as the target sensor chip M (S36: NO). When all the sensor chips 28 included in the light receiving unit 25B are selected as the target sensor chip M (S36: YES), the CPU 30 executes white level data generation processing (S38).

(白レベルデータ生成処理)
図9に、白レベルデータ生成処理のフローチャートを示す。白レベルデータ生成処理において、CPU30は、まず、センサチップ28の1つを対象センサチップMとして選択する(S122)。次に、CPU30は、対象センサチップMにおける画素データD1群が正常か否かを判断し(S124)、対象センサチップMにおける画素データD1群が正常である場合(S124:YES)、画素データD1群を選択する(S126)。
(White level data generation processing)
FIG. 9 shows a flowchart of white level data generation processing. In the white level data generation process, the CPU 30 first selects one of the sensor chips 28 as the target sensor chip M (S122). Next, the CPU 30 determines whether or not the pixel data D1 group in the target sensor chip M is normal (S124). If the pixel data D1 group in the target sensor chip M is normal (S124: YES), the pixel data D1 A group is selected (S126).

CPU30は、対象センサチップMにおける画素データD1群が異常である場合(S124:NO)、次に、対象センサチップMにおける画素データD2群が正常か否かを判断する(S128)。CPU30は、対象センサチップMにおける画素データD2群が正常である場合(S128:YES)、画素データD2群を選択する(S130)。   When the pixel data D1 group in the target sensor chip M is abnormal (S124: NO), the CPU 30 next determines whether the pixel data D2 group in the target sensor chip M is normal (S128). When the pixel data D2 group in the target sensor chip M is normal (S128: YES), the CPU 30 selects the pixel data D2 group (S130).

CPU30は、対象センサチップMにおける画素データD2群が異常である場合(S128:NO)、更に、対象センサチップMにおける画素データD3群が正常か否かを判断する(S132)。CPU30は、対象センサチップMにおける画素データD3群が正常である場合(S132:YES)、画素データD3群を選択する(S134)。   When the pixel data D2 group in the target sensor chip M is abnormal (S128: NO), the CPU 30 further determines whether or not the pixel data D3 group in the target sensor chip M is normal (S132). When the pixel data D3 group in the target sensor chip M is normal (S132: YES), the CPU 30 selects the pixel data D3 group (S134).

その一方、CPU30は、対象センサチップMにおける画素データD3群が異常である場合、つまり、対象センサチップMにおける全画素データD1群、D2群、D3群が異常である場合(S132:NO)、両ライン異常処理で選択された画素データD群を選択する(S136)。   On the other hand, when the pixel data D3 group in the target sensor chip M is abnormal, that is, when all the pixel data D1, D2, and D3 groups in the target sensor chip M are abnormal (S132: NO), The pixel data D group selected in both line abnormality processing is selected (S136).

CPU30は、S126、S130、S134、S136の処理において対象センサチップMにおける1つの画素データD群が選択されると、対象センサチップMに対する処理を終了する。CPU30は、受光部25Bに含まれる全てのセンサチップ28が対象センサチップMとして選択されるまで(S138:NO)、S122からの処理を繰り返す。そして、受光部25Bに含まれる全てのセンサチップ28が対象センサチップMとして選択された場合(S138:YES)、CPU30は、白レベルデータ生成処理、及び、白レベルデータ取得処理を終了する。   When one pixel data D group in the target sensor chip M is selected in the processes of S126, S130, S134, and S136, the CPU 30 ends the process for the target sensor chip M. The CPU 30 repeats the processing from S122 until all the sensor chips 28 included in the light receiving unit 25B are selected as the target sensor chip M (S138: NO). When all the sensor chips 28 included in the light receiving unit 25B are selected as the target sensor chip M (S138: YES), the CPU 30 ends the white level data generation process and the white level data acquisition process.

白レベルデータ生成処理により、CPU30は、センサチップ28単位で選択された画素データD群を集めて、シェーディング補正用の白レベルデータDS(i)を取得することができる(図10参照)。具体的には、チップ番号M1のセンサチップ28では、画素データD3(i)から画素データD3群を読み出し、チップ番号M2、M3のセンサチップ28では、画素データD1(i)から画素データD1群を読み出し、チップ番号M4のセンサチップ28では、画素データD2(i)から画素データD2群を読み出すことで、シェーディング補正用の白レベルデータDS(i)を取得することができる。   By the white level data generation process, the CPU 30 can collect the pixel data D group selected in units of sensor chip 28 and obtain the white level data DS (i) for shading correction (see FIG. 10). Specifically, the sensor chip 28 with the chip number M1 reads the pixel data D3 group from the pixel data D3 (i), and the sensor chip 28 with the chip numbers M2 and M3 has the pixel data D1 group from the pixel data D1 (i). The sensor chip 28 with the chip number M4 can acquire the white level data DS (i) for shading correction by reading the pixel data D2 group from the pixel data D2 (i).

CPU30は、白レベルデータ取得処理を終了すると、図4に示す画像読取処理を実行する。CPU30は、画像読取処理において、次に、黒レベルデータ取得処理を実行する(S8)。黒レベルデータ取得処理において、CPU30は、デバイス移動部26に第1読取部25を第1読取位置R1に移動させた後に、発光部25Aを消灯させた状態で第1読取部25に読み取りを実行させる。CPU30は、上記の読み取りで取得された読取画像データを黒レベルデータとして取得する。   When completing the white level data acquisition process, the CPU 30 executes the image reading process shown in FIG. Next, in the image reading process, the CPU 30 executes a black level data acquisition process (S8). In the black level data acquisition process, the CPU 30 causes the device moving unit 26 to move the first reading unit 25 to the first reading position R1, and then performs reading to the first reading unit 25 with the light emitting unit 25A turned off. Let The CPU 30 acquires the read image data acquired by the above reading as black level data.

次に、CPU30は、シェーディング補正処理を実行する(S10)。シェーディング補正処理において、CPU30は、白レベルデータ取得処理において取得された白レベルデータ、及び、黒レベルデータ取得処理において取得された黒レベルデータを用い、公知の方法によって、シェーディング補正データを生成する。   Next, the CPU 30 executes a shading correction process (S10). In the shading correction process, the CPU 30 generates shading correction data by a known method using the white level data acquired in the white level data acquisition process and the black level data acquired in the black level data acquisition process.

CPU30は、シェーディング補正処理後、読取処理を実行する(S12)。CPU30は、ADF読取を実行する場合において、使用者からの画像読取指示に片面読取指示が含まれている場合には、第1読取部25を用いて原稿シートを読み取る。また、ADF読取を実行する場合において、使用者からの画像読取指示に両面読取指示が含まれている場合には、CPU30は、第1読取部25及び第2読取部を用いて原稿シートを読み取る。また、FB読取を実行する場合、CPU30は、第1読取部25を用いて原稿シートを読み取る。本実施形態では、ADF読取の片面読取の場合について説明する。   The CPU 30 executes a reading process after the shading correction process (S12). When executing ADF reading and the image reading instruction from the user includes a single-sided reading instruction, the CPU 30 reads the original sheet using the first reading unit 25. Further, when executing ADF reading, if the image reading instruction from the user includes a double-sided reading instruction, the CPU 30 reads the original sheet using the first reading unit 25 and the second reading unit. . When executing FB reading, the CPU 30 reads the original sheet using the first reading unit 25. In the present embodiment, a case of single-sided reading of ADF reading will be described.

読取処理において、CPU30は、デバイス移動部26に第1読取部25を第1ADF用対向部材15に対抗する位置に移動させ(図1参照)、ADF14によって搬送経路Rを搬送される原稿シートの下面を第1読取部25に読み取らせる。CPU30は、第1読取部25を用いて取得された読取画像データを、シェーディング補正処理により生成されたシェーディング補正データを用いて補正し、補正後の読取画像データをRAM37に記憶する。   In the reading process, the CPU 30 causes the device moving unit 26 to move the first reading unit 25 to a position that opposes the first ADF facing member 15 (see FIG. 1), and the lower surface of the original sheet conveyed along the conveyance path R by the ADF 14. Is read by the first reading unit 25. The CPU 30 corrects the read image data acquired using the first reading unit 25 using the shading correction data generated by the shading correction process, and stores the corrected read image data in the RAM 37.

CPU30は、Rセンサ18の検出結果に基づき、原稿シートが検出位置RRを通過したことを検出すると、その所定時間後に、第1読取部25に読み取りを終了させ、原稿シートの読み取りを終了する。そして、CPU30は、読取処理を終了し、画像読取処理を終了する。   When the CPU 30 detects that the original sheet has passed the detection position RR based on the detection result of the R sensor 18, after a predetermined time, the CPU 30 ends the reading by the first reading unit 25 and ends the reading of the original sheet. Then, the CPU 30 ends the reading process and ends the image reading process.

3.本実施形態の効果
(1)本実施形態の複合機1では、画素データD1(i)、画素データD2(i)、からシェーディング補正用の白レベルデータDS(i)を生成する際に、センサチップ28単位、つまり、画素データD群毎に正常か否かを判断し、正常と判断された画素データD群をセンサチップ28単位で選択する。センサチップ28は、主走査方向Z1に複数の画素29が配列されており、主走査方向Z1に画素29の幅よりも広い所定の幅を有している。そのため、図10のP2に示すように、白基準板22Aの対向面の色合いの変化や汚れ等によって、当該対向面に比較的広範囲な異常、具体的には主走査方向Z1における幅が複数個の画素29に係る画像データの濃度値の振動等が発生した場合でも、その影響を抑制して白レベルデータDS(i)を生成することができる。
3. Advantages of this embodiment (1) In the multifunction device 1 of this embodiment, when generating white level data DS (i) for shading correction from pixel data D1 (i) and pixel data D2 (i), a sensor It is determined whether or not each chip 28 is normal, that is, for each pixel data D group, and the pixel data D group determined to be normal is selected for each sensor chip 28. The sensor chip 28 has a plurality of pixels 29 arranged in the main scanning direction Z1, and has a predetermined width wider than the width of the pixels 29 in the main scanning direction Z1. Therefore, as shown in P2 of FIG. 10, there is a relatively wide range of abnormalities on the facing surface due to a change in color or dirt on the facing surface of the white reference plate 22A, specifically, a plurality of widths in the main scanning direction Z1. Even when the vibration of the density value of the image data relating to the pixel 29 occurs, the white level data DS (i) can be generated while suppressing the influence.

(2)本実施形態の複合機1では、画素データD群毎に正常か否かを判断する際に、差分値Diff(i)の絶対値からピーク画素を検出し、ピーク画素を有するセンサチップ28において各画素データD群が正常か否かを判断する。差分値Diff(i)の絶対値からピーク画素を検出することで、比較的簡単にピーク画素を検出することができ、また、比較的簡単に各画素データD群が正常か否かを判断することができる。 (2) In the multifunction device 1 of the present embodiment, when determining whether each pixel data D group is normal or not, a peak pixel is detected from the absolute value of the difference value Diff (i), and a sensor chip having the peak pixel In 28, it is determined whether or not each pixel data D group is normal. By detecting the peak pixel from the absolute value of the difference value Diff (i), it is possible to detect the peak pixel relatively easily, and relatively easily determine whether each pixel data D group is normal. be able to.

(3)本実施形態の複合機1では、各画素データD群が正常か否かを判断する際、ピーク画素における偏差Dev(i)の絶対値同士を比較する。図10に示すように、白基準板22Aの対向面に異常が発生した場合、その異常の原因によって、異常が発生した範囲から取得された画素データD(i)は、正常な範囲から取得された画素データD(i)に比べて大きくなったり、小さくなったりする。そのため、異常の原因によって、異常が発生した範囲から算出された偏差Dev(i)と、正常な範囲から算出された偏差Dev(i)の大小が逆転することが起こり得る。この複合機1では、偏差Dev(i)の絶対値同士を比較するので、常に、異常の原因によらず、異常が発生した範囲から算出された偏差Dev(i)の絶対値を、正常な範囲から算出された偏差Dev(i)の絶対値よりも大きい値とすることができ、各画素データD群が正常か否かを判断することができる。 (3) When determining whether or not each pixel data D group is normal, the multifunction device 1 of the present embodiment compares the absolute values of the deviation Dev (i) at the peak pixels. As shown in FIG. 10, when an abnormality occurs on the facing surface of the white reference plate 22A, the pixel data D (i) acquired from the range where the abnormality has occurred is acquired from the normal range due to the cause of the abnormality. It becomes larger or smaller than the pixel data D (i). Therefore, depending on the cause of the abnormality, the deviation Dev (i) calculated from the range in which the abnormality has occurred and the deviation Dev (i) calculated from the normal range may be reversed. In this multifunction device 1, the absolute values of the deviation Dev (i) are compared with each other. Therefore, the absolute value of the deviation Dev (i) calculated from the range where the abnormality has occurred is always set to a normal value regardless of the cause of the abnormality. The deviation Dev (i) calculated from the range can be larger than the absolute value, and it can be determined whether each pixel data D group is normal.

(4)本実施形態の複合機1では、1つのセンサチップ28内に複数のピーク画素が含まれる場合には、各ピーク画素毎に偏差Dev(i)の絶対値同士を比較し、各画素データD群が正常か否かを判断する。ピーク画素として検出される画素29では、差分値Diff(i)の絶対値が比較的大きいことから、第1読取位置R1と第2読取位置R2の当該画素29に相当する範囲のいずれかに異常が発生していると考えられる。そして、1つのセンサチップ28内に複数のピーク画素が含まれる場合には、その異常が複数個存在していると考えられる。この複合機1では、各ピーク画素毎に各画素データD群が正常か否かを判断する。そのため、各異常が第1読取位置R1と第2読取位置R2のいずれに属するかをそれぞれ判断することができ、異常を含む範囲から取得された画素データD群を用いて白レベルデータDS(i)が生成されることを抑制することができる。 (4) In the multi-function device 1 of this embodiment, when a plurality of peak pixels are included in one sensor chip 28, the absolute values of the deviation Dev (i) are compared for each peak pixel, and each pixel It is determined whether data D group is normal. In the pixel 29 detected as the peak pixel, since the absolute value of the difference value Diff (i) is relatively large, there is an abnormality in one of the ranges corresponding to the pixel 29 in the first reading position R1 and the second reading position R2. Is considered to have occurred. When a plurality of peak pixels are included in one sensor chip 28, it is considered that there are a plurality of abnormalities. In the multi function device 1, it is determined whether or not each pixel data D group is normal for each peak pixel. Therefore, it is possible to determine whether each abnormality belongs to the first reading position R1 or the second reading position R2, and the white level data DS (i) using the pixel data D group acquired from the range including the abnormality. ) Can be suppressed.

(5)本実施形態の複合機1では、1つのセンサチップ28において各画素データD群が正常か否かを判断した結果、当該センサチップ28における画素データD1群及び画素データD2群のいずれもが異常と判断された場合、更に、第3画素データD3(i)を取得して当該センサチップ28における画素データD3群を選択可能とする。そのため、異常と判断された画素データD1群及び画素データD2群を用いて白レベルデータが生成されるのを抑制することができる。 (5) In the multifunction device 1 of the present embodiment, as a result of determining whether or not each pixel data D group is normal in one sensor chip 28, both the pixel data D1 group and the pixel data D2 group in the sensor chip 28 are determined. Is determined to be abnormal, the third pixel data D3 (i) is further acquired, and the pixel data D3 group in the sensor chip 28 can be selected. Therefore, it is possible to suppress generation of white level data using the pixel data D1 group and the pixel data D2 group that are determined to be abnormal.

(6)具体的には、対象とするセンサチップ28における画素データD3群に対しても正常か否かを判断し、正常と判断されれば、当該センサチップ28における画素データD3群を選択する。これにより、正常と判断された画素データD群を用いて白レベルデータDS(i)を生成することができる。 (6) Specifically, it is determined whether or not the pixel data D3 group in the target sensor chip 28 is normal, and if it is determined to be normal, the pixel data D3 group in the sensor chip 28 is selected. . Thereby, the white level data DS (i) can be generated using the pixel data D group determined to be normal.

(7)その一方、対象とするセンサチップ28における画素データD3群も異常と判断された場合には、偏差Dev(i)の絶対値の大小に応じて、当該センサチップ28における画素データD1群、画素データD2群、画素データD3群の中から1つの画素データD3群を選択する。上記の場合、つまり、読取位置を変えた複数の画素データD(i)において、主走査方向Z1の略同一位置に異常が見つかる場合、これらは同一の異常であることが考えられる。つまり、白基準板22Aの対向面の主走査方向Z1における特定位置に、副走査方向Z2の比較的広範囲に亘る異常が発生していることが考えられる。このような場合には、当該センサチップ28における画素データD1群、画素データD2群、画素データD3群の中から1つの画素データD3群を選択することで、画素データDの取得が何度も繰り返されるのを抑制することができる。 (7) On the other hand, if it is determined that the pixel data D3 group in the target sensor chip 28 is also abnormal, the pixel data D1 group in the sensor chip 28 is determined according to the absolute value of the deviation Dev (i). , One pixel data D3 group is selected from the pixel data D2 group and the pixel data D3 group. In the above case, that is, when an abnormality is found at substantially the same position in the main scanning direction Z1 in a plurality of pixel data D (i) with different reading positions, it is considered that these are the same abnormality. That is, it is conceivable that an abnormality over a relatively wide range in the sub-scanning direction Z2 occurs at a specific position in the main scanning direction Z1 on the facing surface of the white reference plate 22A. In such a case, the pixel data D can be acquired many times by selecting one pixel data D3 group from among the pixel data D1, the pixel data D2 group, and the pixel data D3 group in the sensor chip 28. Repeating can be suppressed.

そして、対象とするセンサチップ28における画素データD1群、画素データD2群、画素データD3群の中から1つの画素データD3群を選択する際に、偏差Dev(i)の絶対値の大小を基準とすることで、異常と判断された画素データD群を用いて白レベルデータが生成される場合でも、その影響を抑制することができる。   Then, when one pixel data D3 group is selected from the pixel data D1, group D2 group, and pixel data D3 group in the target sensor chip 28, the absolute value of the deviation Dev (i) is used as a reference. Thus, even when white level data is generated using the pixel data D group determined to be abnormal, the influence can be suppressed.

(8)本実施形態の複合機1では、差分値Diff(i)からピーク画素を検出する際に、差分値Diff(i)が第1規定値K1以上となる画素29を選出し、選出した画素29が主走査方向Z1に連続する場合には、差分値Diff(i)がピーク値となる画素29をピーク画素として検出する。そのため、偏差Dev(i)の絶対値同士を比較して各画素データD群が正常か否かを判断する際に、差分値Diff(i)が第1規定値K1以上となる画素29の全てにおいて偏差Dev(i)の絶対値同士を比較する必要がなく、比較的簡単に白レベルデータDS(i)を生成することができる。 (8) When detecting the peak pixel from the difference value Diff (i), the multifunction device 1 of the present embodiment selects and selects the pixel 29 having the difference value Diff (i) equal to or greater than the first specified value K1. When the pixels 29 are continuous in the main scanning direction Z1, the pixel 29 whose difference value Diff (i) is a peak value is detected as a peak pixel. Therefore, when the absolute values of the deviation Dev (i) are compared to determine whether each pixel data D group is normal, all of the pixels 29 having the difference value Diff (i) equal to or greater than the first specified value K1. Therefore, it is not necessary to compare the absolute values of the deviation Dev (i) with each other, and the white level data DS (i) can be generated relatively easily.

(9)そして、差分値Diff(i)が第1規定値K1以上となる画素29が主走査方向Z1に連続する場合、主走査方向Z1の比較的広範囲に亘る異常が発生していることが考えられる。この場合には、差分値Diff(i)が第1規定値K1以上となる画素29の周辺では、比較的広範囲に亘る異常の影響が及んでいることが考えられる。本実施形態の複合機1では、画素データD群毎に正常か否かを判断し、画素データD群をセンサチップ28単位で選択するが、比較的広範囲に亘る異常の影響がセンサチップ28の範囲を超えて広がっている場合には、隣接するセンサチップ28に対しても正常か否かを判断することが好ましい。 (9) When the pixels 29 having the difference value Diff (i) equal to or greater than the first specified value K1 are continuous in the main scanning direction Z1, it is possible that an abnormality over a relatively wide range in the main scanning direction Z1 has occurred. Conceivable. In this case, it is conceivable that the influence of abnormality over a relatively wide range is exerted around the pixel 29 where the difference value Diff (i) is equal to or greater than the first specified value K1. In the MFP 1 of this embodiment, it is determined whether or not each pixel data D group is normal, and the pixel data D group is selected in units of sensor chips 28. The influence of the abnormality over a relatively wide range is If it extends beyond the range, it is preferable to determine whether or not the adjacent sensor chip 28 is normal.

本実施形態の複合機1では、第1規定値K1よりも小さい第2規定値K2を用いて比較的広範囲に亘る異常の周辺への影響を検出し、差分値Diff(i)が第2規定値K2以上となる画素29が隣接するセンサチップ28にまで広がっている場合には、隣接するセンサチップ28に対してもピーク画素を検出する。そのため、比較的広範囲に亘る異常の影響が隣接するセンサチップ28にまで広がっていると考えられる場合に、隣接するセンサチップ28に対しても正常か否かを判断することができる。   In the MFP 1 of the present embodiment, the influence on the periphery of an abnormality over a relatively wide range is detected using the second specified value K2 smaller than the first specified value K1, and the difference value Diff (i) is the second specified value. When the pixel 29 having the value K2 or more extends to the adjacent sensor chip 28, the peak pixel is also detected for the adjacent sensor chip 28. Therefore, when it is considered that the influence of the abnormality over a relatively wide range extends to the adjacent sensor chip 28, it can be determined whether or not the adjacent sensor chip 28 is normal.

<他の実施形態>
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような種々の態様も本発明の技術的範囲に含まれる。
(1)上記実施形態では、スキャン機能、コピー機能、印刷機能などの複数の機能を備えた複合機1を用いて説明を行ったが、本発明はこれに限られず、スキャナ機能のみを備えた画像読取装置であってもよい。また、複合機1は、ADF読取、FB読取のいずれか一方のみ実行可能な構成でもよく、片面読取のみ可能な構成でもよい。この場合、第2読取部17は必ずしも必要ない。
<Other embodiments>
The present invention is not limited to the embodiments described with reference to the above description and the drawings, and for example, the following various aspects are also included in the technical scope of the present invention.
(1) In the above embodiment, the description has been given using the multi-function device 1 having a plurality of functions such as a scan function, a copy function, and a print function. However, the present invention is not limited to this, and only a scanner function is provided. It may be an image reading device. Further, the multifunction device 1 may be configured to execute only one of ADF scanning and FB scanning, or may be configured to perform only single-sided scanning. In this case, the second reading unit 17 is not necessarily required.

(2)上記実施形態では、複合機1がCPU30を有するASIC39を備え、このCP
U30が必要に応じてASIC39内のハード回路を用いて画像読取処理等の各種処理を実行する制御部が構成される例を用いて説明を行ったが、本発明はこれに限られない。例えば、CPUがASICとは別体として存在し、このCPUにより制御部が実行する処理が実行されてもよければ、ASIC内にCPUが存在せず、ASICに設けられたハード回路により制御部が実行する処理が実行されてもよい。さらには、単数又は複数のCPU及びASICによって、制御部が実行する処理を実行していてもよい。
(2) In the above embodiment, the multi function device 1 includes the ASIC 39 having the CPU 30, and the CP
The U30 has been described using an example in which a control unit that executes various processes such as an image reading process using a hardware circuit in the ASIC 39 as necessary is described, but the present invention is not limited to this. For example, if the CPU exists separately from the ASIC and the processing executed by the control unit may be executed by the CPU, the CPU does not exist in the ASIC, and the control unit is installed by a hardware circuit provided in the ASIC. Processing to be executed may be executed. Furthermore, the process which a control part performs may be performed by one or several CPU and ASIC.

(3)また、CPU30が実行するプログラムは必ずしもROM36に記憶されている必要はなく、CPU30自身に記憶されていてもよければ、他の記憶装置に記憶されていてもよい。 (3) In addition, the program executed by the CPU 30 is not necessarily stored in the ROM 36, and may be stored in the CPU 30 itself or in another storage device.

(4)上記実施形態では、画像読取処理において、HP検出処理や光量調整処理が行われる例を用いて説明を行ったが、本発明はこれに限られない。例えば、複合機1の電源オンされて最初の画像読取処理において、HP検出処理や光量調整処理が実行されていれば、複合機1の電源がオンされている間は、HP検出処理や光量調整処理は省略されてもよい。 (4) In the above embodiment, the description has been given using the example in which the HP detection process and the light amount adjustment process are performed in the image reading process, but the present invention is not limited to this. For example, if the HP detection process and the light amount adjustment process are performed in the first image reading process after the multifunction device 1 is turned on, the HP detection process and the light amount adjustment are performed while the multifunction device 1 is powered on. Processing may be omitted.

(5)上記実施形態では、偏差Dev(i)を算出する際に、平均値J(M)を用いる例を用いて説明を行ったが、本発明はこれに限られない。例えば、平均値J(M)に代えて、センサチップ28の全画素29における画素データD1(i)の中間値を用いてもよい。 (5) Although the above embodiment has been described using an example in which the average value J (M) is used when calculating the deviation Dev (i), the present invention is not limited to this. For example, instead of the average value J (M), an intermediate value of the pixel data D1 (i) in all the pixels 29 of the sensor chip 28 may be used.

22A:白基準板、25:第1読取部、25B:受光部、26:デバイス移動部、28:センサチップ、29:画素、D:画素データ、Dev:偏差、Diff:差分値、J:平均値、DS:白レベルデータ、i:画素番号、M:チップ番号、j、x:ピーク画素、R1〜R3:読取位置、 22A: White reference plate, 25: First reading unit, 25B: Light receiving unit, 26: Device moving unit, 28: Sensor chip, 29: Pixel, D: Pixel data, Dev: Deviation, Diff: Difference value, J: Average Value, DS: white level data, i: pixel number, M: chip number, j, x: peak pixel, R1 to R3: reading position,

Claims (9)

光源と、複数の受光素子が主走査方向に配列されたセンサチップが複数個、主走査方向に配列された受光部と、を有する読取部と、
基準部材と、
前記基準部材に対して、前記主走査方向に直交する副走査方向に、前記読取部を移動させる移動部と、
制御部と、
を備え、
前記制御部は、
前記基準部材の前記副走査方向に異なる複数の読取位置に前記読取部をそれぞれ移動させ、該読取位置で前記光源に対して光を照射するように指示し、前記受光素子毎に出力される画素データを各読取位置毎にそれぞれ取得する取得処理と、
前記各読取位置毎に前記取得処理によって取得された受光素子毎の画素データを、前記センサチップ単位で正常か否かを判断する判断処理と、
各センサチップ毎に、前記判断処理によって正常と判断されたうちの1つの前記センサチップ単位の画素データ群を選択して、シェーディング補正用の白レベルデータを生成する生成処理と、
を実行する、画像読取装置。
A reading unit having a light source and a plurality of sensor chips in which a plurality of light receiving elements are arranged in the main scanning direction, and a light receiving unit arranged in the main scanning direction;
A reference member;
And with respect to the reference member, in a sub-scanning direction perpendicular to prior Symbol main scanning direction, and a moving unit for moving the reading unit,
A control unit;
With
The controller is
The sub-scanning direction of the different reading position of said reference member, said reading unit their respective allowed to move, instructed to irradiate light to the light source in said read position, for each of the light receiving element An acquisition process for acquiring output pixel data for each reading position;
Wherein the pixel data for each light-receiving element obtained by the obtaining processing for each reading position, a determining process of determining whether normal or not by the sensor chip units,
For each sensor chip, a generation process for selecting one of the sensor chip unit pixel data determined to be normal by the determination process and generating white level data for shading correction;
An image reading apparatus that executes
請求項1記載の画像読取装置であって、
前記制御部において、
前記取得処理は、
前記基準部材の前記副走査方向に異なる第1読取位置と第2読取位置とに前記読取部をそれぞれ移動させ、該読取位置で前記指示し、前記受光素子毎に出力される第1画素データと第2画素データとをそれぞれ取得し、
更に、
前記第1画素データと前記第2画素データとの差分値の絶対値が第1規定値以上となる受光素子を検出する検出処理、
を実行し、
前記判断処理は、
前記検出処理によって検出された受光素子を含むセンサチップ単位の第1画素データ群と第2画素データ群のいずれが正常か否かを判断し、
前記検出処理によって検出された受光素子を含まないセンサチップ単位の第1画素データ群と第2画素データ群のいずれもが正常と判断する、
画像読取装置。
The image reading apparatus according to claim 1,
In the control unit,
The acquisition process includes
In the auxiliary scanning direction different from the first reading position and the second reading position of said reference member, said reading unit their respective allowed to move, the above indicated by said read position is output for each of the light receiving element 1 pixel data and 2nd pixel data are acquired,
Furthermore,
A detection process for detecting a light receiving element in which an absolute value of a difference value between the first pixel data and the second pixel data is equal to or greater than a first specified value;
Run
The determination process includes
Determining which one of the first pixel data group and the second pixel data group in the sensor chip unit including the light receiving element detected by the detection process is normal;
It is determined that both the first pixel data group and the second pixel data group in sensor chip units not including the light receiving element detected by the detection process are normal.
Image reading device.
請求項2記載の画像読取装置であって、
前記制御部において、
前記判断処理は、
前記検出処理によって検出された受光素子を含むセンサチップの全受光素子における第1画素データの代表値と第2画素データの代表値とをそれぞれ取得し、
前記検出された受光素子の第1画素データと前記第1画素データの代表値との差分の絶対値である第1絶対値と、前記検出された受光素子の第2画素データと前記第2画素データの代表値との差分の絶対値である第2絶対値とを比較し、絶対値が大きい方の画素データの該センサチップにおける画素データ群を正常でないと判断し、絶対値が小さい方の画素データの該センサチップにおける画素データ群を正常と判断する、
画像読取装置。
The image reading apparatus according to claim 2,
In the control unit,
The determination process includes
Obtaining a representative value of the first pixel data and a representative value of the second pixel data in all the light receiving elements of the sensor chip including the light receiving elements detected by the detection process,
A first absolute value which is an absolute value of a difference between the first pixel data of the detected light receiving element and a representative value of the first pixel data; a second pixel data of the detected light receiving element; and the second pixel. The second absolute value that is the absolute value of the difference from the representative value of the data is compared, the pixel data group in the sensor chip of the pixel data with the larger absolute value is determined to be not normal, and the smaller absolute value Determining that the pixel data group of the pixel data in the sensor chip is normal;
Image reading device.
請求項3記載の画像読取装置であって、
前記制御部において、
前記判断処理は、
前記センサチップ単位で前記判断する際、前記検出処理によって該センサチップ内に複数の受光素子を検出した場合、検出した受光素子毎に、前記差分の絶対値を比較し、
検出した全ての受光素子において、前記第1画素データ群と第2画素データ群のいずれか一方が、正常と判断された場合、該一方の画素データ群を正常と判断し、他方の画素データ群を正常でないと判断し、
検出した一部の受光素子において、前記第1画素データ群が正常でないと判断され、検出した残りの受光素子において、前記第2画素データ群も正常でないと判断された場合、前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断する、
画像読取装置。
The image reading apparatus according to claim 3,
In the control unit,
The determination process includes
When a plurality of light receiving elements are detected in the sensor chip by the detection process when the determination is performed in units of the sensor chip, the absolute value of the difference is compared for each detected light receiving element,
In all the detected light receiving elements, when one of the first pixel data group and the second pixel data group is determined to be normal, the one pixel data group is determined to be normal, and the other pixel data group is determined. Is not normal,
When it is determined that the first pixel data group is not normal in some of the detected light receiving elements, and the second pixel data group is also not normal in the remaining detected light receiving elements, the first pixel data Determining that neither the group nor the second pixel data group is normal;
Image reading device.
請求項4記載の画像読取装置であって、
前記制御部において、
更に、
前記判断処理によって、前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断した場合、前記第1読取位置及び前記第2読取位置に対して前記基準部材の前記副走査方向に異なる第3読取位置に前記読取部を移動させ、該読取位置で前記指示し、前記受光素子毎に出力される第3画素データを取得する追加取得処理、
を実行し、
前記検出処理は、
更に、
前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記第3画素データと前記第1画素データ又は前記第2画素データとの差分値の絶対値が前記第1規定値以上となる受光素子を検出し、
前記判断処理は、
更に、
前記検出処理によって検出された受光素子を含むセンサチップ単位の第3画素データ群が正常か否かを判断し、
前記検出処理によって検出された受光素子を含まないセンサチップ単位の第1画素データ群と第2画素データ群のいずれもが正常と判断し、
前記生成処理は、
前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記判断処理によって前記第3画素データ群が正常であると判断された場合、該センサチップにおける第3画素データ群を選択して、シェーディング補正用の白レベルデータを生成する、
画像読取装置。
The image reading apparatus according to claim 4,
In the control unit,
Furthermore,
When the determination process determines that neither the first pixel data group nor the second pixel data group is normal, the sub-scanning direction of the reference member with respect to the first reading position and the second reading position the different third reading position, the allowed reading unit to move the, and the instruction in said read position, additional acquisition process for acquiring the third pixel data outputted for each of the light receiving element,
Run
The detection process includes
Furthermore,
The absolute value of the difference value between the third pixel data and the first pixel data or the second pixel data in the sensor chip determined that neither the first pixel data group nor the second pixel data group is normal. Detects a light receiving element having a value equal to or greater than the first specified value,
The determination process includes
Furthermore,
Determining whether or not the third pixel data group of the sensor chip unit including the light receiving element detected by the detection process is normal;
It is determined that both the first pixel data group and the second pixel data group in sensor chip units that do not include the light receiving element detected by the detection process are normal,
The generation process includes
In the sensor chip in which it is determined that neither the first pixel data group nor the second pixel data group is normal, if the third pixel data group is determined to be normal by the determination process, the sensor chip Selecting a third pixel data group to generate white level data for shading correction;
Image reading device.
請求項5記載の画像読取装置であって、
前記制御部において、
前記検出処理は、
更に、
前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記第3画素データと前記第1画素データ又は前記第2画素データとの差分値の絶対値が第1規定値以上となる受光素子を検出し、
前記判断処理は、
更に、
前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記検出処理によって検出された受光素子を含むセンサチップの全受光素子における第3画素データの代表値と該当画素データの代表値とをそれぞれ取得し、
前記検出された受光素子の第3画素データと前記第3画素データの代表値との差分の絶対値である第3絶対値と、前記第1絶対値又は前記第2絶対値とを比較し、前記第3画素データ群が正常か否かを判断し、
前記生成処理は、
前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記判断処理によって前記第3画素データ群が正常であると判断された場合、該センサチップにおける第3画素データ群を選択して、シェーディング補正用の白レベルデータを生成する、
画像読取装置。
The image reading apparatus according to claim 5,
In the control unit,
The detection process includes
Furthermore,
The absolute value of the difference value between the third pixel data and the first pixel data or the second pixel data in the sensor chip determined that neither the first pixel data group nor the second pixel data group is normal. Detecting a light receiving element having a value equal to or greater than the first specified value,
The determination process includes
Furthermore,
Representative of third pixel data in all light receiving elements of the sensor chip including the light receiving elements detected by the detection processing in the sensor chip determined that neither the first pixel data group nor the second pixel data group is normal. Value and the representative value of the corresponding pixel data,
A third absolute value that is an absolute value of a difference between the detected third pixel data of the light receiving element and a representative value of the third pixel data is compared with the first absolute value or the second absolute value ; Determining whether the third pixel data group is normal;
The generation process includes
In the sensor chip in which it is determined that neither the first pixel data group nor the second pixel data group is normal, if the third pixel data group is determined to be normal by the determination process, the sensor chip Selecting a third pixel data group to generate white level data for shading correction;
Image reading device.
請求項4記載の画像読取装置であって、
前記制御部において、
前記検出処理は、
更に、
前記判断処理によって、前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断した場合、前記第1読取位置及び前記第2読取位置と異なる第3読取位置に前記読取部を移動させ、該読取位置で前記指示し、前記受光素子毎に出力される第3画素データを取得する追加取得処理、
を実行し、
前記検出処理は、
更に、
前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記第3画素データと前記第1画素データ又は前記第2画素データとの差分値の絶対値が第1規定値以上となる受光素子を検出し、
前記判断処理は、
更に、
前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記検出処理によって検出された受光素子を含むセンサチップの全受光素子における第3画素データの代表値と該当画素データの代表値とをそれぞれ取得し、
前記検出された受光素子の第3画素データと前記第3画素データの代表値との差分の絶対値である第3絶対値と、前記第1絶対値又は前記第2絶対値とを比較し、前記第3画素データ群が正常か否かを判断し、
前記生成処理は、
前記第1画素データ群及び前記第2画素データ群のいずれも正常でないと判断されたセンサチップにおいて、前記判断処理によって前記第3画素データ群が正常でないと判断された場合、前記第1絶対値、前記第2絶対値、及び前記第3絶対値を比較し、最も小さい絶対値に係る画素データ群を選択して、シェーディング補正用の白レベルデータを生成する、
画像読取装置。
The image reading apparatus according to claim 4,
In the control unit,
The detection process includes
Furthermore,
If it is determined by the determination process that neither the first pixel data group nor the second pixel data group is normal, the reading unit is moved to a third reading position different from the first reading position and the second reading position. was moved, and the instruction in said read position, additional acquisition process for acquiring the third pixel data outputted for each of the light receiving element,
Run
The detection process includes
Furthermore,
The absolute value of the difference value between the third pixel data and the first pixel data or the second pixel data in the sensor chip determined that neither the first pixel data group nor the second pixel data group is normal. Detecting a light receiving element having a value equal to or greater than the first specified value,
The determination process includes
Furthermore,
Representative of third pixel data in all light receiving elements of the sensor chip including the light receiving elements detected by the detection processing in the sensor chip determined that neither the first pixel data group nor the second pixel data group is normal. Value and the representative value of the corresponding pixel data,
A third absolute value that is an absolute value of a difference between the detected third pixel data of the light receiving element and a representative value of the third pixel data is compared with the first absolute value or the second absolute value ; Determining whether the third pixel data group is normal;
The generation process includes
In the sensor chip in which it is determined that neither the first pixel data group nor the second pixel data group is normal, the first absolute value when the third pixel data group is determined to be normal by the determination process Comparing the second absolute value and the third absolute value , selecting a pixel data group related to the smallest absolute value, and generating white level data for shading correction,
Image reading device.
請求項3から請求項7のいずれか一項に記載の画像読取装置であって、
前記制御部において、
前記検出処理は、
前記第1画素データと前記第2画素データとの差分値の絶対値が第1規定値以上となる複数の受光素子であって、主走査方向に連続する前記複数の受光素子を検出した場合、連続する第1連続範囲の中で前記差分値の絶対値のピーク値を検出し、そのピーク値に対応する受光素子を検出し、
前記判断処理は、
前記検出されたピーク値に対応する受光素子の第1画素データと前記第1画素データの代表値との差分の絶対値である第4絶対値と、前記検出されたピーク値に対応する受光素子の第2画素データと前記第2画素データの代表値との差分の絶対値である第5絶対値とを比較し、前記第4絶対値が前記第5絶対値より大きい場合、該センサチップにおける第2画素データ群が正常であると判断し、前記第4絶対値が前記第5絶対値以下である場合、該センサチップにおける第1画素データ群が正常であると判断する、
画像読取装置。
The image reading apparatus according to any one of claims 3 to 7,
In the control unit,
The detection process includes
When a plurality of light receiving elements in which the absolute value of the difference value between the first pixel data and the second pixel data is equal to or greater than a first specified value and the plurality of light receiving elements continuous in the main scanning direction are detected, Detecting a peak value of the absolute value of the difference value in a continuous first continuous range, detecting a light receiving element corresponding to the peak value;
The determination process includes
A fourth absolute value that is an absolute value of a difference between the first pixel data of the light receiving element corresponding to the detected peak value and a representative value of the first pixel data, and a light receiving element corresponding to the detected peak value When the fourth absolute value is larger than the fifth absolute value , the fifth absolute value that is the absolute value of the difference between the second pixel data of the second pixel data and the representative value of the second pixel data is compared . Determining that the second pixel data group is normal, and determining that the first pixel data group in the sensor chip is normal when the fourth absolute value is less than or equal to the fifth absolute value;
Image reading device.
請求項8記載の画像読取装置であって、
前記制御部において、
前記検出処理は、
更に、
前記第1画素データと前記第2画素データとの差分値の絶対値が前記第1規定値よりも小さい第2規定値以上となる受光素子を検出し、
前記第1画素データと前記第2画素データとの差分値の絶対値が第2規定値以上となる複数の受光素子が主走査方向に連続する第2連続範囲であって、前記第1連続範囲を含む前記第2連続範囲に含まれる受光素子が、複数のセンサチップに属する場合、該複数のセンサチップの各センサチップ毎に、前記第2連続範囲の中で前記差分値の絶対値のピーク値を検出し、そのピーク値に対応する受光素子を検出する、
画像読取装置。
The image reading apparatus according to claim 8, wherein
In the control unit,
The detection process includes
Furthermore,
Detecting a light receiving element in which an absolute value of a difference value between the first pixel data and the second pixel data is equal to or more than a second specified value smaller than the first specified value;
A second continuous range in which a plurality of light receiving elements having an absolute value of a difference value between the first pixel data and the second pixel data equal to or greater than a second specified value is continuous in a main scanning direction, and the first continuous range When the light receiving elements included in the second continuous range including a plurality belong to a plurality of sensor chips, the absolute value peak of the difference value in the second continuous range for each sensor chip of the plurality of sensor chips. Detecting the value and detecting the light receiving element corresponding to the peak value,
Image reading device.
JP2013179988A 2013-08-30 2013-08-30 Image reading device Active JP6201531B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013179988A JP6201531B2 (en) 2013-08-30 2013-08-30 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013179988A JP6201531B2 (en) 2013-08-30 2013-08-30 Image reading device

Publications (2)

Publication Number Publication Date
JP2015050562A JP2015050562A (en) 2015-03-16
JP6201531B2 true JP6201531B2 (en) 2017-09-27

Family

ID=52700246

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013179988A Active JP6201531B2 (en) 2013-08-30 2013-08-30 Image reading device

Country Status (1)

Country Link
JP (1) JP6201531B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114623799B (en) * 2022-02-10 2024-03-08 广州大铁锐威科技有限公司 Structural health monitoring data abnormality early warning method, system, device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3449490B2 (en) * 1992-08-28 2003-09-22 ミノルタ株式会社 Image reading device
JPH09219793A (en) * 1996-02-13 1997-08-19 Ricoh Co Ltd Image reading device
JP2002330267A (en) * 2001-04-27 2002-11-15 Konica Corp Original reader and image forming device

Also Published As

Publication number Publication date
JP2015050562A (en) 2015-03-16

Similar Documents

Publication Publication Date Title
JP7211238B2 (en) Edge detection device, tilt correction device, reading device, image processing device, and edge detection method
JP5556391B2 (en) Image reading device
JP5783418B2 (en) Image processing device
JP5899970B2 (en) Image reading apparatus and white reference data abnormality determination program
JP6201531B2 (en) Image reading device
JP6024350B2 (en) Image reading apparatus and document edge determination program
JP5939017B2 (en) Image reading apparatus and document presence / absence determination program
JP2016066836A (en) Image reading apparatus, control method of the same, and program
JP2015198327A (en) Image reading device, image reading method, and computer program
US11196898B2 (en) Image reading apparatus, method of controlling image reading apparatus, and storage medium
JP5841968B2 (en) Image reading apparatus, image forming apparatus, and program
JP5609682B2 (en) Image reading apparatus and program thereof
JP6015470B2 (en) Image reading device
JP6557104B2 (en) Image reading device
JP6111897B2 (en) Image reading device
US11095791B2 (en) Reading apparatus
JP2019068197A (en) Image reading apparatus and image reading method
JP6394237B2 (en) Reader, position detection method, and program
JP2021197605A (en) Image reading device, skew angle determination method, and program
JP6519808B2 (en) Image processing device
JP2012104933A (en) Image reader and image formation device
JP5780064B2 (en) Image reading device
JP6127507B2 (en) Image reading apparatus and image reading program
JP2023003470A (en) Image reading device, image processing method, and program
JP6047984B2 (en) Image reading device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160215

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170131

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170421

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170801

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170814

R150 Certificate of patent or registration of utility model

Ref document number: 6201531

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150