Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7683301B2 - Reading device - Google Patents
[go: Go Back, main page]

JP7683301B2 - Reading device - Google Patents

Reading device Download PDF

Info

Publication number
JP7683301B2
JP7683301B2 JP2021077089A JP2021077089A JP7683301B2 JP 7683301 B2 JP7683301 B2 JP 7683301B2 JP 2021077089 A JP2021077089 A JP 2021077089A JP 2021077089 A JP2021077089 A JP 2021077089A JP 7683301 B2 JP7683301 B2 JP 7683301B2
Authority
JP
Japan
Prior art keywords
reading
reading device
value
light
resolution
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
JP2021077089A
Other languages
Japanese (ja)
Other versions
JP2022170847A (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 JP2021077089A priority Critical patent/JP7683301B2/en
Publication of JP2022170847A publication Critical patent/JP2022170847A/en
Application granted granted Critical
Publication of JP7683301B2 publication Critical patent/JP7683301B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimile Scanning Arrangements (AREA)

Description

本発明は、読取装置に関する。 The present invention relates to a reading device.

従来、FB(Flat Bed:フラットベッド)方式により、原稿を読み取る読取装置が提供されている。 Conventionally, reading devices that read documents using the FB (Flat Bed) method have been provided.

FB方式の読取装置では、透明ガラスからなる原稿台の下方に、主走査方向に延びる読取デバイスが主走査方向と直交する副走査方向に往復移動可能に設けられている。読取デバイスには、光源、ライトガイドおよびイメージセンサなどが内蔵されている。光源からの光がライトガイドを通して原稿に照射されて、原稿での反射光がレンズを通過してイメージセンサに入射する。イメージセンサの各受光素子で光電変換が行われ、各受光素子から電気信号が出力されて、その電気信号が画素値に変換されることにより、読取デバイスによる主走査方向の1ライン分の読み取りが達成される。 In an FB type reading device, a reading device extending in the main scanning direction is provided below a document table made of transparent glass so that it can move back and forth in the sub-scanning direction perpendicular to the main scanning direction. The reading device has a built-in light source, light guide, image sensor, etc. Light from the light source is irradiated onto the document through the light guide, and the light reflected from the document passes through a lens and enters the image sensor. Photoelectric conversion is performed in each light receiving element of the image sensor, and an electrical signal is output from each light receiving element. The electrical signal is converted into a pixel value, and the reading device achieves reading of one line in the main scanning direction.

原稿の読取時に読取装置の移動を制御するため、制御部は、読取デバイスの位置を把握しておく必要がある。読取デバイスの位置を把握するため、制御部により、読取デバイスのホームポジション(基準位置)が検知される。たとえば、白色領域と黒色領域とを副走査方向に隣接して配置した基準板が設けられて、その基準板が読取デバイスにより読み取られ、その読み取られた黒色領域の位置がホームポジションとして検知される。 To control the movement of the reading device when reading a document, the control unit needs to know the position of the reading device. To know the position of the reading device, the control unit detects the home position (reference position) of the reading device. For example, a reference plate is provided in which a white area and a black area are arranged adjacent to each other in the sub-scanning direction, the reference plate is read by the reading device, and the position of the black area that has been read is detected as the home position.

特開2000-115473号公報JP 2000-115473 A

従来、ホームポジションの検知時には、光量調整およびシェーディング補正が行われない。そのため、イメージセンサの感度不均一性(PRNU:Photo Response Non-Uniformity)、原稿台の反りなどのメカ的要因による照明深度の変動、光源の経年劣化などにより、ホームポジションを誤検知するおそれがある。 Conventionally, no light adjustment or shading correction is performed when detecting the home position. As a result, there is a risk of the home position being erroneously detected due to photo response non-uniformity (PRNU) of the image sensor, fluctuations in illumination depth due to mechanical factors such as warping of the document table, and deterioration of the light source over time.

本発明の目的は、読取デバイスのホームポジションの誤検知を抑制できる、読取装置を提供することである。 The object of the present invention is to provide a reading device that can suppress erroneous detection of the home position of the reading device.

前記の目的を達成するため、本発明に係る読取装置は、原稿を支持する支持面を有する原稿台と、原稿台に対して支持面側と反対側に、支持面と平行をなす副走査方向に往復移動可能に設けられ、支持面上の読取対象に光を照射する光源および読取対象からの反射光を信号に変換するイメージセンサを有する読取デバイスと、読取デバイスのホームポジションに応じた位置に配置される基準部と、記憶部と、制御部とを備え、制御部は、原稿を読取デバイスに読み取らせる際に、原稿の読み取りの前に、読取デバイスに基準部の読み取りを実施させ、この読み取りによりイメージセンサから出力される信号を用いて光源の光量調整のための調整値を取得し、調整値を記憶部に記憶させ、原稿の読み取りの前に、調整値を用いて調整した光量で光源を発光させて、読取デバイスに基準部の読み取りを実施させ、この読み取りによりイメージセンサから出力される信号を用いてシェーディング補正のための補正値を取得し、補正値を記憶部に記憶させ、記憶部に記憶されている調整値を用いて調整した光量で光源を発光させて、読取デバイスを副走査方向に移動させながら、読取デバイスに読み取りを実施させ、この読み取りによりイメージセンサから出力される信号が示す画素値を記憶部に記憶されている補正値を用いてシェーディング補正し、シェーディング補正後の画素値が所定の閾値を跨いで変化した位置をホームポジションとして検知する。 In order to achieve the above object, the reading device according to the present invention comprises a document table having a support surface for supporting a document, a reading device provided on the opposite side of the document table from the support surface side so as to be movable back and forth in a sub-scanning direction parallel to the support surface, the reading device having a light source for irradiating light onto a reading target on the support surface and an image sensor for converting reflected light from the reading target into a signal, a reference section disposed at a position corresponding to the home position of the reading device, a memory section, and a control section, and when the control section causes the reading device to read a document, the control section causes the reading device to read the reference section before reading the document, and obtains an adjustment value for adjusting the light intensity of the light source using a signal output from the image sensor by this reading, and stores the adjustment value in the memory section. The adjustment value is stored in the memory, and before reading the document, the light source is caused to emit light with an amount of light adjusted using the adjustment value, the reading device is caused to read the reference portion, a correction value for shading correction is obtained using the signal output from the image sensor by this reading, the correction value is stored in the memory, the light source is caused to emit light with an amount of light adjusted using the adjustment value stored in the memory, and the reading device is caused to read while moving the reading device in the sub-scanning direction, shading correction is performed on pixel values indicated by the signal output from the image sensor by this reading using the correction value stored in the memory, and the position where the pixel value after shading correction has changed by straddling a predetermined threshold is detected as the home position.

この構成によれば、読取デバイスにより原稿が読み取られる際、その読み取りの前に、読取デバイスにより基準部が読み取られて、制御部により光源の光量調整のための調整値が取得される。また、光源の光量が調整値を用いて調整されたうえで、読取デバイスにより基準部が再度読み取られて、制御部によりシェーディング補正のための補正値が取得される。調整値および補正値は、記憶部に記憶される。 According to this configuration, when an original is read by a reading device, the reading device reads the reference portion before the reading, and the control unit acquires an adjustment value for adjusting the amount of light from the light source. In addition, after the amount of light from the light source is adjusted using the adjustment value, the reading device reads the reference portion again, and the control unit acquires a correction value for shading correction. The adjustment value and correction value are stored in the memory unit.

読取デバイスのホームポジションの検知の際には、光源の光量が記憶部に記憶されている調整値を用いて調整され、読取デバイスが副走査方向に移動されながら、読取デバイスによる読み取りが行われる。そして、イメージセンサから出力される信号が示す画素値が記憶部に記憶されている補正値を用いてシェーディング補正され、シェーディング補正後の画素値が所定の閾値を跨いで変化した位置が読取デバイスのホームポジションとして検知される。 When detecting the home position of the reading device, the amount of light from the light source is adjusted using the adjustment value stored in the memory unit, and the reading device reads while moving in the sub-scanning direction. Then, the pixel values indicated by the signal output from the image sensor are shading-corrected using the correction value stored in the memory unit, and the position where the pixel value after shading correction has changed by crossing a predetermined threshold is detected as the home position of the reading device.

そのため、イメージセンサの感度不均一性(PRNU)、メカ的要因による照明深度の変動、光源の経年劣化などの影響を排除して、読取デバイスのホームポジションを検知することができる。その結果、ホームポジションの誤検知を抑制することができる。 This makes it possible to detect the home position of the reading device while eliminating the effects of the image sensor's sensitivity non-uniformity (PRNU), fluctuations in illumination depth due to mechanical factors, and deterioration of the light source over time. As a result, false detection of the home position can be suppressed.

本発明によれば、読取デバイスのホームポジションの誤検知を抑制することができる。 The present invention makes it possible to suppress erroneous detection of the home position of the reading device.

本発明の一実施形態に係る読取装置の構成を図解的に示す断面図である。1 is a cross-sectional view diagrammatically showing a configuration of a reading device according to an embodiment of the present invention; 読取装置の筐体の天面板を下側から見た図である。4 is a bottom view of the top panel of the housing of the reading device. FIG. CISユニットの構成を示す斜視図である。FIG. 2 is a perspective view showing a configuration of a CIS unit. 読取装置の電気的構成を示すブロック図である。FIG. 2 is a block diagram showing an electrical configuration of the reading device. 読取処理の流れを示すフローチャートである。13 is a flowchart showing the flow of a reading process. 白黒基準部を読み取ったときの画素位置と受光量との関係の一例を示す図である。11 is a diagram showing an example of the relationship between pixel positions and amounts of received light when a black and white reference portion is read; FIG. HP検知処理の流れを示すフローチャートである。13 is a flowchart showing a flow of HP detection processing. HP検知用光量調整値算出処理の流れを示すフローチャートである。10 is a flowchart showing a flow of a process for calculating a light amount adjustment value for HP detection. 他の実施形態に係るHP検知処理の流れを示すフローチャートである。13 is a flowchart showing a flow of HP detection processing according to another embodiment.

以下では、本発明の実施の形態について、添付図面を参照しつつ詳細に説明する。 The following describes in detail an embodiment of the present invention with reference to the attached drawings.

<読取装置の構成>
図1に示される読取装置1は、原稿を読み取るための装置であり、筐体2および原稿カバー3を備えている。読取装置1では、FB方式およびADF方式の両方式による原稿の読み取りが可能に構成されている。読取装置1は、原稿カバー3には、ADF(Auto Document Feeder:自動原稿搬送装置)4が設けられている。
<Configuration of the reading device>
1 is a device for reading an original document, and includes a housing 2 and an original cover 3. The reading device 1 is configured to be capable of reading an original document by both the FB method and the ADF method. The reading device 1 includes an ADF (Auto Document Feeder) 4 provided on the original cover 3.

なお、以下の説明で使用するため、読取装置1をその正面側から見た状態を基準に読取装置1の前後左右を規定する。また、上下については、読取装置1が水平面上に設置された状態で規定する。図1には、読取装置1を左右方向に延びる切断面線に沿って切断した断面が示されている。 For the purposes of the following explanation, the front, back, left and right of the reading device 1 are defined based on the state in which the reading device 1 is viewed from the front side. The top and bottom are defined when the reading device 1 is installed on a horizontal surface. Figure 1 shows a cross section of the reading device 1 cut along a cutting line extending in the left-right direction.

筐体2は、略直方体形状をなしている。筐体2の天面板11には、図2に示されるように、第1開口12および第2開口13が設けられている。 The housing 2 has a generally rectangular parallelepiped shape. As shown in FIG. 2, a first opening 12 and a second opening 13 are provided on the top panel 11 of the housing 2.

第1開口12は、前後方向および左右方向に延びる端縁を有し、前後よりも左右に長い矩形状に形成されている。第1開口12を下側から塞ぐように、原稿載置板14が設けられている。原稿載置板14は、透明な材料を用いて平板状に形成されている。 The first opening 12 has edges extending in the front-rear and left-right directions, and is formed in a rectangular shape that is longer left-right than it is front-to-back. An original placement plate 14 is provided to cover the first opening 12 from below. The original placement plate 14 is formed in a flat plate shape using a transparent material.

第2開口13は、第1開口12の左側において、前後方向および左右方向に延びる端縁を有し、前後方向に細長く延びる矩形状に形成されている。第2開口13を下側から塞ぐように、原稿通過板15が設けられている。原稿通過板15は、透明な材料を用いて平板状に形成されている。 The second opening 13 is formed on the left side of the first opening 12 in a rectangular shape that has edges extending in the front-rear and left-right directions and is elongated in the front-rear direction. An original passing plate 15 is provided to cover the second opening 13 from below. The original passing plate 15 is formed in a flat plate shape using a transparent material.

筐体2内には、図1に示されるように、CIS(Contact Image Sensor)ユニット21が原稿載置板14(原稿台の一例)および原稿通過板15の下方で、左右方向である副走査方向に移動可能に設けられている。CISユニット21(読取デバイスの一例)は、光源22、ライトガイド23、ロッドレンズアレイ24およびイメージセンサ25を備えている。 As shown in FIG. 1, within the housing 2, a CIS (Contact Image Sensor) unit 21 is provided below the document placement plate 14 (an example of a document table) and the document passing plate 15, and is movable in the sub-scanning direction, which is the left-right direction. The CIS unit 21 (an example of a reading device) includes a light source 22, a light guide 23, a rod lens array 24, and an image sensor 25.

光源22は、赤色、緑色および青色の3色のLED(Light Emitting Diode)を含む。光源22は、パルス幅変調により点灯が制御される。 The light source 22 includes three light emitting diodes (LEDs) of red, green, and blue. The illumination of the light source 22 is controlled by pulse width modulation.

ライトガイド23は、光源22の光を伝搬する部材であり、透明材料からなる。ライトガイド23は、光源22の前側に配置されて、副走査方向と直交する前後方向である主走査方向に延びている。 The light guide 23 is a member that propagates the light from the light source 22 and is made of a transparent material. The light guide 23 is disposed in front of the light source 22 and extends in the main scanning direction, which is the front-to-rear direction perpendicular to the sub-scanning direction.

ロッドレンズアレイ24は、ライトガイド23と左右方向に位置をずらして、たとえば、ライトガイド23の左側に配置されている。ロッドレンズアレイ24は、図3に示されるように、主走査方向に整列して並ぶ多数のロッドレンズ26(レンズの一例)を備えている。ロッドレンズ26は、成立等倍の屈折率分布型レンズである。 The rod lens array 24 is offset from the light guide 23 in the left-right direction, and is disposed, for example, on the left side of the light guide 23. As shown in FIG. 3, the rod lens array 24 includes a large number of rod lenses 26 (an example of a lens) aligned in the main scanning direction. The rod lenses 26 are gradient index lenses with a fixed magnification.

イメージセンサ25は、所定個(たとえば、12個)のセンサICチップ27を備えている。センサICチップ27は、主走査方向に一列に並べて配置されている。各センサICチップ27は、受光素子列28を備えている。受光素子列28は、複数の受光素子29を主走査方向に等ピッチで一列に配置して構成されている。各受光素子29は、受光量に応じた電荷を1画素の電気信号として出力する。 The image sensor 25 has a predetermined number (for example, 12) of sensor IC chips 27. The sensor IC chips 27 are arranged in a row in the main scanning direction. Each sensor IC chip 27 has a light receiving element array 28. The light receiving element array 28 is composed of a plurality of light receiving elements 29 arranged in a row at equal pitch in the main scanning direction. Each light receiving element 29 outputs a charge according to the amount of light received as an electrical signal for one pixel.

また、イメージセンサ25には、ゲイン調整回路およびA/D変換回路などが備えられている。各受光素子29から出力される電圧は、ゲイン調整回路による増幅後、A/D変換回路によりデジタル値である画素データ(画素値)に変換される。A/D変換回路は、たとえば、8ビット(0~255)の分解能を有しており、下限側の基準電圧(下限値)未満の電圧については一律に「0」に変換し、上限側の基準電圧(上限値)を超える電圧については一律に「255」に変換し、下限値から上限値の範囲の電圧についてはその電圧の大小に応じた画素データに変換する。 The image sensor 25 is also equipped with a gain adjustment circuit and an A/D conversion circuit. The voltage output from each light receiving element 29 is amplified by the gain adjustment circuit, and then converted by the A/D conversion circuit into digital pixel data (pixel value). The A/D conversion circuit has a resolution of, for example, 8 bits (0 to 255), and uniformly converts voltages below the lower limit reference voltage (lower limit value) to "0", converts voltages above the upper limit reference voltage (upper limit value) to "255", and converts voltages in the range from the lower limit value to the upper limit value into pixel data according to the magnitude of the voltage.

光源22からの光がライトガイド23を通して読取対象物に照射されて、読取対象物での反射光がロッドレンズアレイ24を通過してイメージセンサ25に入射する。1個のロッドレンズ26は、たとえば、約3.5個の受光素子29の受光面上に成立当倍像を結像させる。各受光素子29で光電変換が行われ、各受光素子29から電気信号が出力されて、その電気信号が画素データに変換されることにより、CISユニット21による主走査方向の1ライン分の読み取りが達成される。 Light from the light source 22 is irradiated onto the object to be read through the light guide 23, and the light reflected from the object to be read passes through the rod lens array 24 and enters the image sensor 25. One rod lens 26 forms a magnified image on the light receiving surface of, for example, approximately 3.5 light receiving elements 29. Photoelectric conversion is performed in each light receiving element 29, and an electrical signal is output from each light receiving element 29. The electrical signal is converted into pixel data, thereby achieving reading of one line in the main scanning direction by the CIS unit 21.

ADF4は、図1に示されるように、供給トレイ31および排出トレイ32を備えている。供給トレイ31および排出トレイ32は、上下に間隔を空けて重なった状態に設けられている。ADF4内には、搬送経路33が形成されている、搬送経路33は、その一端が供給トレイ31における副走査方向の一方側の端部上で開放され、U字状に湾曲しつつ折り返されて、原稿通過面17上を経由し、他端が供給トレイ31と排出トレイ32との間で開放されている。また、ADF4内には、搬送経路33に沿って、供給ローラ34、分離ローラ35、搬送ローラ36、反転ローラ37および排出ローラ38が供給トレイ31側からこの順に設けられている。 As shown in FIG. 1, the ADF 4 has a supply tray 31 and a discharge tray 32. The supply tray 31 and the discharge tray 32 are arranged in a vertically overlapping state with a gap between them. A transport path 33 is formed within the ADF 4. One end of the transport path 33 opens on one end of the supply tray 31 in the sub-scanning direction, curves in a U-shape and folds back, passes over the document passing surface 17, and the other end opens between the supply tray 31 and the discharge tray 32. Also, within the ADF 4, a supply roller 34, a separation roller 35, a transport roller 36, a reversing roller 37, and a discharge roller 38 are provided in this order from the supply tray 31 side along the transport path 33.

原稿カバー3は、開位置と閉位置とに開閉可能に設けられている。原稿カバー3が閉位置に位置する状態では、原稿カバー3により、筐体2の上面の全域が被覆される。原稿カバー3は、閉位置から手前側が持ち上げられることにより、開位置に変位される。原稿カバー3が開位置に位置する状態では、筐体2の上面の全域が露出する。 The manuscript cover 3 is provided so as to be able to open and close between an open position and a closed position. When the manuscript cover 3 is in the closed position, the manuscript cover 3 covers the entire top surface of the housing 2. The manuscript cover 3 is displaced to the open position by lifting the front side from the closed position. When the manuscript cover 3 is in the open position, the entire top surface of the housing 2 is exposed.

FB方式による原稿の読み取りの際には、原稿カバー3が開位置に開かれて、原稿が原稿載置板14の上面(支持面の一例)に載置される。このとき、原稿は、左側の端縁が第1開口12の左側の端縁に右側から当接し、かつ、後側の端縁が第1開口12の後側の端縁に前側から当接した状態に配置される。その後、原稿カバー3が閉位置に閉じられて、原稿が原稿カバー3によって上側から覆われた状態にされる。そして、スキャンの実行の指令に応じて、CISユニット21が読取範囲の先頭の読取開始位置に対応する位置に移動され、その位置から副走査方向に移動されながら、CISユニット21が原稿載置板14上の原稿を1ラインずつ副走査方向に順に読み取ることにより、原稿の読み取りが達成される。 When reading an original using the FB method, the original cover 3 is opened to the open position, and the original is placed on the upper surface (an example of a support surface) of the original placement plate 14. At this time, the original is positioned with its left edge abutting the left edge of the first opening 12 from the right side, and its rear edge abutting the rear edge of the first opening 12 from the front side. The original cover 3 is then closed to the closed position, and the original is covered from above by the original cover 3. Then, in response to a command to execute scanning, the CIS unit 21 is moved to a position corresponding to the reading start position at the beginning of the reading range, and while moving from that position in the sub-scanning direction, the CIS unit 21 reads the original on the original placement plate 14 line by line in the sub-scanning direction, thereby completing the reading of the original.

一方、ADF方式による原稿の読み取りの際には、ADF4の供給トレイ31上に原稿が載置される。また、CISユニット21が原稿通過板15に下方から対向する位置で停止される。その後、スキャンの実行の指令に応じて、供給ローラ34による原稿の搬送が開始される。原稿は、分離ローラ35により1枚ずつに分離されて、搬送ローラ36および反転ローラ37により搬送経路33を搬送される。原稿が原稿通過板15上を通過しつつ、CISユニット21が原稿を1ラインずつ順に読み取ることにより、原稿の読み取りが達成される。 On the other hand, when reading an original using the ADF method, the original is placed on the supply tray 31 of the ADF 4. The CIS unit 21 is stopped at a position facing the original passing plate 15 from below. Thereafter, in response to a command to execute scanning, the original begins to be transported by the supply rollers 34. The original is separated into individual sheets by the separation rollers 35, and is transported along the transport path 33 by the transport rollers 36 and the reversal rollers 37. As the original passes over the original passing plate 15, the CIS unit 21 reads the original line by line in sequence, thereby completing the reading of the original.

原稿通過板15の左側には、図2に示されるように、白黒基準部41(基準部の一例)が設けられている。白黒基準部41は、矩形状のテープとして形成され、原稿通過板15の左側で主走査方向と一致する前後方向に延びるように、筐体2の天面板11の裏面(下側を向いた面)に貼着されている。白黒基準部41では、前右側および後右側の各角部の矩形状の領域が黒領域42とされ、残余の領域が白領域43とされている。これにより、白黒基準部41の右側の端縁に沿った領域では、白領域43が2個の黒領域42に挟まれて、各黒領域42と白領域43とが連続し、前側の端縁に沿った領域および後側の端縁に沿った領域では、黒領域42の左側に白領域43が隣接して、黒領域42と白領域43とが連続している。 2, a black-and-white reference section 41 (an example of a reference section) is provided on the left side of the document passing plate 15. The black-and-white reference section 41 is formed as a rectangular tape and is attached to the back surface (the surface facing downward) of the top panel 11 of the housing 2 so as to extend in the front-to-rear direction that coincides with the main scanning direction on the left side of the document passing plate 15. In the black-and-white reference section 41, rectangular areas at each corner of the front right side and the rear right side are black areas 42, and the remaining area is white area 43. As a result, in the area along the right edge of the black-and-white reference section 41, the white area 43 is sandwiched between two black areas 42, and each black area 42 and the white area 43 are continuous, and in the area along the front edge and the area along the rear edge, the white area 43 is adjacent to the left side of the black area 42, and the black area 42 and the white area 43 are continuous.

また、読取装置1は、図4に示されるように、CPU(Central Processing Unit)51と、フラッシュメモリやE2PROMなどのデータの書き換えが可能な不揮発性メモリ52(記憶部の一例)と、SDRAMなどの揮発性メモリ53とを備えている。CPU51、不揮発性メモリ52および揮発性メモリ53は、データ通信のためのバス54に接続されている。 As shown in Fig. 4, the reading device 1 includes a CPU (Central Processing Unit) 51, a non-volatile memory 52 (an example of a storage unit) such as a flash memory or E2PROM that is rewritable, and a volatile memory 53 such as an SDRAM. The CPU 51, the non-volatile memory 52, and the volatile memory 53 are connected to a bus 54 for data communication.

CPU51(制御部の一例)は、各種の処理のためのプログラムを実行することにより、ADF4、CISユニット21およびCISユニット21を副走査方向に移動させるCISユニット移動機構55など、読取装置1の各部を制御する。不揮発性メモリ52には、CPU51によって実行されるプログラムおよび各種のデータなどが記憶されている。揮発性メモリ53は、CPU51がプログラムを実行する際のワークエリアとして使用される。 The CPU 51 (an example of a control unit) executes programs for various processes to control each part of the reading device 1, such as the ADF 4, the CIS unit 21, and a CIS unit movement mechanism 55 that moves the CIS unit 21 in the sub-scanning direction. The non-volatile memory 52 stores the programs executed by the CPU 51 and various data. The volatile memory 53 is used as a work area when the CPU 51 executes the programs.

CISユニット移動機構55は、CISユニット21を担持するキャリッジ、正逆回転可能なステッピングモータ、ステッピングモータにより回転駆動される駆動プーリ、駆動プーリと対をなす従動プーリおよび駆動プーリと従動プーリとに巻き掛けられたベルトを備えている。駆動プーリと従動プーリとは、左右方向に互いの間に間隔を空けて、それぞれ回転軸線が前後方向に延びるように配置されている。ベルトの途中部は、キャリッジに固定されている。駆動プーリの回転により、ベルトが走行し、ベルトの走行に伴って、CISユニット21を担持したキャリッジが左右方向と一致する副走査方向に移動する。 The CIS unit movement mechanism 55 comprises a carriage carrying the CIS unit 21, a stepping motor capable of forward and reverse rotation, a drive pulley that is driven and rotated by the stepping motor, a driven pulley that pairs with the drive pulley, and a belt wound around the drive pulley and the driven pulley. The drive pulley and the driven pulley are spaced apart in the left-right direction and are arranged so that their rotation axes extend in the front-rear direction. A midpoint of the belt is fixed to the carriage. The belt runs as the drive pulley rotates, and as the belt runs, the carriage carrying the CIS unit 21 moves in the sub-scanning direction that coincides with the left-right direction.

また、読取装置1には、操作パネル56が備えられている。操作パネル56には、各種の設定のために操作される操作部と、情報の表示のための表示部とが含まれる。操作部と表示部とは、別々に設けられていてもよいし、液晶ディスプレイなどの表示部上に感圧式または静電容量式の透明フィルムスイッチなどの操作部を重ねて構成されるタッチパネルの形態であってもよい。 The reading device 1 is also provided with an operation panel 56. The operation panel 56 includes an operation section operated for various settings and a display section for displaying information. The operation section and the display section may be provided separately, or may be in the form of a touch panel in which an operation section such as a pressure-sensitive or capacitive transparent film switch is superimposed on a display section such as a liquid crystal display.

<読取処理>
読取装置1に原稿の読取指示が入力されると、CPU51は、図5に示される読取処理を開始する。原稿の読取指示は、たとえば、ユーザが操作パネル56を操作することにより、操作パネルから入力される。読取指示の入力に際し、ユーザは、操作パネル56の操作により、原稿の読取解像度を設定する。読取解像度には、300dpi、600dpiおよび1200dpiの3段階が設けられている。
<Reading process>
When an instruction to read an original is input to the reading device 1, the CPU 51 starts the reading process shown in Fig. 5. The instruction to read an original is input, for example, from the operation panel by the user operating the operation panel 56. When inputting the reading instruction, the user sets the reading resolution of the original by operating the operation panel 56. There are three levels of reading resolution: 300 dpi, 600 dpi, and 1200 dpi.

以下、原稿の読取指示がFB方式による読み取りの指示である場合を例にとる。 The following is an example where the document reading instruction is to read using the FB method.

読取処理では、CPU51は、ユーザにより設定された読取解像度を不揮発性メモリ52に記憶させる(S11)。不揮発性メモリ52に記憶される読取解像度は、読取処理が行われる度に上書きにより更新される。 In the reading process, the CPU 51 stores the reading resolution set by the user in the non-volatile memory 52 (S11). The reading resolution stored in the non-volatile memory 52 is updated by overwriting each time the reading process is performed.

そして、CPU51は、光量調整を行う(S12)。光量調整では、CPU51は、CISユニット21およびCISユニット移動機構55を制御して、CISユニット21に白黒基準部41の白領域43を読み取らせる。そして、CPU51は、その読み取りにより得られる1ライン分の各画素の画素値の最大値が所定値(たとえば、254)になるように、CISユニット21の光源22に供給される電流値および光源22の点灯時間のデューティ比を調整する。CPU51は、光量調整により設定された電流値およびデューティ比を光量調整値として不揮発性メモリ52に記憶させる(S13)。不揮発性メモリ52に記憶される光量調整値は、光量調整が行われる度に上書きにより更新される。 Then, the CPU 51 performs light intensity adjustment (S12). In the light intensity adjustment, the CPU 51 controls the CIS unit 21 and the CIS unit movement mechanism 55 to have the CIS unit 21 read the white area 43 of the black and white reference portion 41. The CPU 51 then adjusts the current value supplied to the light source 22 of the CIS unit 21 and the duty ratio of the light source 22's illumination time so that the maximum pixel value of each pixel for one line obtained by the reading becomes a predetermined value (for example, 254). The CPU 51 stores the current value and duty ratio set by the light intensity adjustment in the non-volatile memory 52 as the light intensity adjustment value (S13). The light intensity adjustment value stored in the non-volatile memory 52 is updated by overwriting each time the light intensity adjustment is performed.

光量調整後、CPU51は、シェーディング補正値を取得する(S14)。すなわち、CPU51は、光量調整により設定された電流値およびデューティ比で光源22に電流を供給し、CISユニット21に白黒基準部41の白領域43を読み取らせる。そして、CPU51は、その読み取りにより得られる1ライン分の画素値から白レベルの不均一性を補正する白レベル補正値を求め、その白レベル補正値をシェーディング補正値として揮発性メモリ53に記憶させる。 After adjusting the amount of light, the CPU 51 acquires a shading correction value (S14). That is, the CPU 51 supplies current to the light source 22 at the current value and duty ratio set by the light amount adjustment, and causes the CIS unit 21 to read the white area 43 of the black and white reference portion 41. The CPU 51 then obtains a white level correction value that corrects the non-uniformity of the white level from the pixel values of one line obtained by this reading, and stores the white level correction value in the volatile memory 53 as a shading correction value.

また、CPU51は、図6に示されるように、シェーディング補正値を一定の画素数(たとえば、550画素)ごとにブロックに分ける。そして、CPU51は、ブロックごとに、シェーディング補正値の平均値を算出し、その算出したブロック単位シェーディング補正平均値をブロックを特定するブロック特定情報と対応づけて不揮発性メモリ52に記憶させる(S15)。ブロック特定情報は、各ブロックに付けられた固有の番号などであってもよいし、各ブロックに含まれる画素の番号の範囲であってもよい。不揮発性メモリ52に記憶されるブロック単位シェーディング補正平均値は、ブロック単位シェーディング補正平均値の算出が行われる度に上書きにより更新される。 The CPU 51 also divides the shading correction values into blocks of a certain number of pixels (for example, 550 pixels) as shown in FIG. 6. The CPU 51 then calculates an average value of the shading correction values for each block, and stores the calculated block-based shading correction average value in the non-volatile memory 52 in association with block identification information that identifies the block (S15). The block identification information may be a unique number assigned to each block, or may be a range of pixel numbers included in each block. The block-based shading correction average value stored in the non-volatile memory 52 is updated by overwriting each time a block-based shading correction average value is calculated.

その後、CPU51は、原稿の読み取り(実読取)を行う(S16)。CPU51は、CISユニット21およびCISユニット移動機構55を制御して、CISユニット21を原稿載置板14の左端よりも左側に設定された待機位置から右側に移動させつつ、原稿載置板14上の原稿をCISユニット21に読み取らせる。 Then, the CPU 51 reads the document (actual reading) (S16). The CPU 51 controls the CIS unit 21 and the CIS unit moving mechanism 55 to move the CIS unit 21 from a standby position set to the left of the left end of the document loading plate 14 to the right, and causes the CIS unit 21 to read the document on the document loading plate 14.

CISユニット21が原稿の1ラインを読み取る度に、CPU51は、揮発性メモリ53に設定されたCIS動作ライン数記憶カウンタのカウント値がインクリメント(+1カウントアップ)する(S17)。 Each time the CIS unit 21 reads one line of the document, the CPU 51 increments (counts up by +1) the count value of the CIS operation line number storage counter set in the volatile memory 53 (S17).

その後、CPU51は、CIS動作ライン数カウンタのカウント値から、CISユニット21の読取位置が原稿の最終読取ラインに到達したか否かを判断する(S18)。すなわち、CIS動作ライン数カウンタのカウント値が原稿サイズに応じた所定値に達していない間は、CPU51は、CISユニット21の読取位置が原稿の最終読取ラインに到達していないと判断し(S18:NO)、原稿の読み取りを継続する。そして、CIS動作ライン数カウンタのカウント値が原稿サイズに応じた所定値に達すると、CPU51は、CISユニット21の読取位置が原稿の最終読取ラインに到達したと判断して(S18:YES)、原稿の読み取りを終了するとともに、読取処理を終了する。 Then, the CPU 51 judges whether the reading position of the CIS unit 21 has reached the final reading line of the document from the count value of the CIS operation line number counter (S18). That is, while the count value of the CIS operation line number counter has not reached a predetermined value according to the document size, the CPU 51 judges that the reading position of the CIS unit 21 has not reached the final reading line of the document (S18: NO) and continues reading the document. Then, when the count value of the CIS operation line number counter reaches a predetermined value according to the document size, the CPU 51 judges that the reading position of the CIS unit 21 has reached the final reading line of the document (S18: YES), ends reading of the document, and ends the reading process.

<HP検知処理>
読取装置1の電源がオンされたことに応じて、また、原稿の読み取りが完了したことに応じて、CPU51は、図7に示されるHP検知処理を実行する。読取装置1では、CPU51がCISユニット21の副走査方向の位置を把握するため、HP検知処理により、CISユニット21のホームポジション(HP)が検知される。
<HP detection process>
When the power supply of the reading device 1 is turned on, or when reading of the document is completed, the CPU 51 executes the HP detection process shown in Fig. 7. In the reading device 1, the CPU 51 grasps the position of the CIS unit 21 in the sub-scanning direction, so that the home position (HP) of the CIS unit 21 is detected by the HP detection process.

不揮発性メモリ52に記憶される読取解像度、光量調整値およびブロック単位シェーディング補正平均値は、それらが取得される度に上書きにより更新されるので、不揮発性メモリ52には、最終に行われた読取処理で取得された読取解像度、光量調整値およびブロック単位シェーディング補正平均値が記憶されている。以下、最終に行われた読取処理で取得された読取解像度、光量調整値およびブロック単位シェーディング補正平均値をそれぞれ「最終読取解像度」、「光量調整値」および「最終ブロック単位シェーディング補正平均値」という。 The reading resolution, light amount adjustment value, and block-based shading correction average value stored in the non-volatile memory 52 are updated by overwriting each time they are acquired, so the reading resolution, light amount adjustment value, and block-based shading correction average value acquired in the last reading process are stored in the non-volatile memory 52. Hereinafter, the reading resolution, light amount adjustment value, and block-based shading correction average value acquired in the last reading process are referred to as the "final reading resolution," the "light amount adjustment value," and the "final block-based shading correction average value," respectively.

HP検知処理では、CPU51は、不揮発性メモリ52から最終読取解像度を読み出す(S21)。そして、CPU51は、最終読取解像度が300dpiであるか否かを判断する(S22)。 In the HP detection process, the CPU 51 reads the final reading resolution from the non-volatile memory 52 (S21). Then, the CPU 51 determines whether the final reading resolution is 300 dpi (S22).

最終読取解像度が300dpiである場合(S22:YES)、CPU51は、不揮発性メモリ52から最終光量調整値を読み出す(S23)。そして、CPU51は、その読み出した最終光量調整値をHP検知用光量調整値に設定する。 If the final reading resolution is 300 dpi (S22: YES), the CPU 51 reads the final light amount adjustment value from the non-volatile memory 52 (S23). Then, the CPU 51 sets the read final light amount adjustment value as the HP detection light amount adjustment value.

一方、最終読取解像度が300dpiでない場合(S22:NO)、つまり最終読取解像度が600dpiまたは1200dpiである場合、CPU51は、HP検知用光量調整値算出処理を行う(S24)。 On the other hand, if the final reading resolution is not 300 dpi (S22: NO), that is, if the final reading resolution is 600 dpi or 1200 dpi, the CPU 51 performs a process of calculating the light intensity adjustment value for HP detection (S24).

HP検知用光量調整値算出処理の流れは、図8に示されている。HP検知用光量調整値算出処理では、CPU51は、不揮発性メモリ52から最終読取解像度および最終光量調整値を読み出す(S241)。そして、CPU51は、最終読取解像度が1200dpiであるか否かを判断する(S242)。最終読取解像度が1200dpiである場合(S242:YES)、CPU51は、最終光量調整値に含まれるデューティ比を1/4(=最低解像度/最終読取解像度)した値をHP検知用光量調整値(デューティ)に設定し(S243)、HP検知用光量調整値算出処理を終了する。また、最終読取解像度が1200dpiでなく(S242:NO)、最終読取解像度が600dpiである場合、CPU51は、最終光量調整値に含まれるデューティ比を1/2(=最低解像度/最終読取解像度)した値をHP検知用光量調整値(デューティ)に設定し(S243)、HP検知用光量調整値算出処理を終了する。HP検知用光量調整値算出処理の終了後は、図7に示されるHP検知処理に戻る。 The flow of the HP detection light amount adjustment value calculation process is shown in FIG. 8. In the HP detection light amount adjustment value calculation process, the CPU 51 reads the final reading resolution and the final light amount adjustment value from the non-volatile memory 52 (S241). Then, the CPU 51 judges whether the final reading resolution is 1200 dpi or not (S242). If the final reading resolution is 1200 dpi (S242: YES), the CPU 51 sets the duty ratio included in the final light amount adjustment value to 1/4 (= minimum resolution / final reading resolution) as the HP detection light amount adjustment value (duty) (S243), and ends the HP detection light amount adjustment value calculation process. Furthermore, if the final reading resolution is not 1200 dpi (S242: NO) but is 600 dpi, the CPU 51 sets the duty ratio included in the final light amount adjustment value to 1/2 (= minimum resolution/final reading resolution) as the light amount adjustment value for HP detection (duty) (S243), and ends the process of calculating the light amount adjustment value for HP detection. After the process of calculating the light amount adjustment value for HP detection ends, the process returns to the HP detection process shown in FIG. 7.

HP検知用光量調整値の設定後、CPU51は、不揮発性メモリ52から最終ブロック単位シェーディング補正平均値を読み出す(S25)。そして、CPU51は、その読み出した最終ブロック単位シェーディング補正平均値をHP検知用ブロック単位シェーディング補正平均値に設定する。 After setting the light amount adjustment value for HP detection, the CPU 51 reads out the final block-unit shading correction average value from the non-volatile memory 52 (S25). Then, the CPU 51 sets the read out final block-unit shading correction average value as the block-unit shading correction average value for HP detection.

そして、CPU51は、CISユニット移動機構55を制御して、CISユニット21を白黒基準部41(図2参照)に対して右側に離間した位置から白黒基準部41に向けて、読取解像度300dpiに応じた移動速度で移動させる。その一方で、CPU51は、最終光量調整値に含まれる電流値およびHP検知用光量調整値(デューティ)で光源22に電流を供給することにより、光源22の光量を調整して、CISユニット21(イメージセンサ25)に300dpiの解像度での1ラインの読み取りを300dpiに応じた周期で行わせる(S26)。 Then, the CPU 51 controls the CIS unit movement mechanism 55 to move the CIS unit 21 from a position spaced to the right of the black and white reference portion 41 (see FIG. 2) toward the black and white reference portion 41 at a movement speed corresponding to the reading resolution of 300 dpi. Meanwhile, the CPU 51 adjusts the light amount of the light source 22 by supplying current to the light source 22 at the current value included in the final light amount adjustment value and the HP detection light amount adjustment value (duty), and causes the CIS unit 21 (image sensor 25) to read one line at a resolution of 300 dpi at a cycle corresponding to 300 dpi (S26).

CPU51は、CISユニット21に読み取られた1ラインの読取データに対して、各最終ブロック単位シェーディング補正平均値を用いたシェーディング補正を行う(S27)。すなわち、CPU51は、CISユニット21により読み取られた画素値を各最終ブロック単位シェーディング補正平均値に対応するブロックに分け、ブロックごとに、そのブロックに含まれる各画素値を最終ブロック単位シェーディング補正平均値を用いて補正する。 The CPU 51 performs shading correction using each final block-based shading correction average value on one line of read data read by the CIS unit 21 (S27). That is, the CPU 51 divides the pixel values read by the CIS unit 21 into blocks corresponding to each final block-based shading correction average value, and corrects each pixel value included in each block using the final block-based shading correction average value.

CPU51は、不揮発性メモリ52から読み出した最終読取解像度が1200dpiであった場合、シェーディング補正後の1ラインの読取データについて、連続して並ぶ4画素の画素値を加算して1画素の画素値とし、その画素加算後の各画素値を主走査方向の一方側から順に着目して、互いに隣り合う画素値が所定のHP検知閾値を跨いで変化する位置の検知を行う(S28:白黒検知)。 When the final reading resolution read from the non-volatile memory 52 is 1200 dpi, the CPU 51 adds the pixel values of four consecutive pixels for one line of read data after shading correction to obtain the pixel value of one pixel, and then focuses on each pixel value after pixel addition in order from one side in the main scanning direction to detect the position where the adjacent pixel values change across a predetermined HP detection threshold (S28: black and white detection).

また、不揮発性メモリ52から読み出した最終読取解像度が600dpiであった場合、CPU51は、シェーディング補正後の1ラインの読取データについて、連続して並ぶ2画素の画素値を加算して1画素の画素値とし、その画素加算後の各画素値を主走査方向の一方側から順に着目して、互いに隣り合う画素値が所定のHP検知閾値を跨いで変化する位置の検知を行う(S28:白黒検知)。 In addition, if the final reading resolution read from the non-volatile memory 52 is 600 dpi, the CPU 51 adds the pixel values of two consecutive pixels for one line of read data after shading correction to obtain the pixel value of one pixel, and focuses on each pixel value after the pixel addition in order from one side in the main scanning direction to detect the position where the adjacent pixel values change across a predetermined HP detection threshold (S28: black and white detection).

不揮発性メモリ52から読み出した最終読取解像度が300dpiであった場合には、CPU51は、シェーディング補正後の1ラインの読取データについて、画素加算を行わずに、その画素加算後の各画素値を主走査方向の一方側から順に着目して、互いに隣り合う画素値が所定のHP検知閾値を跨いで変化する位置の検知を行う(S28:白黒検知)。 If the final reading resolution read from the non-volatile memory 52 is 300 dpi, the CPU 51 does not perform pixel addition on one line of read data after shading correction, but instead focuses on each pixel value after pixel addition in order from one side in the main scanning direction, and detects the position where adjacent pixel values change across a predetermined HP detection threshold (S28: black and white detection).

そして、CPU51は、互いに隣り合う画素値が所定のHP検知閾値を跨いで変化する位置を検知しない場合(S28:NO)、CISユニット21に読み取られた次の1ラインの読取データを対象として、最終ブロック単位シェーディング補正平均値を用いたシェーディング補正の後、互いに隣り合う画素値が所定のHP検知閾値を跨いで変化する位置の検知を行うといった処理を繰り返す。CPU51は、互いに隣り合う画素値が所定のHP検知閾値を跨いで変化する位置を検知すると(S28:YES)、その位置をCISユニット21のホームポジションと検知して、HP検知処理を終了する。 If the CPU 51 does not detect a position where adjacent pixel values change across the specified HP detection threshold (S28: NO), it repeats the process of detecting a position where adjacent pixel values change across the specified HP detection threshold for the next line of read data read by the CIS unit 21, after shading correction using the final block unit shading correction average value. If the CPU 51 detects a position where adjacent pixel values change across the specified HP detection threshold (S28: YES), it detects that position as the home position of the CIS unit 21 and ends the HP detection process.

<作用効果>
以上のように、CISユニット21により原稿が読み取られる際、その読み取りの前に、CISユニット21により白黒基準部41が読み取られて、CPU51により光源22の光量調整のための光量調整値が取得される。また、光源22の光量が光量調整値を用いて調整されたうえで、CISユニット21により白黒基準部41が再度読み取られて、CPU51によりシェーディング補正のためのシェーディング補正値が取得される。シェーディング補正値が一定の画素数ごとにブロックに分けられて、ブロックごとに、シェーディング補正値の平均値であるブロック単位シェーディング補正平均値が算出される。光量調整値およびブロック単位シェーディング補正平均値は、それぞれ最終光量調整値および最終ブロック単位シェーディング補正平均値として不揮発性メモリ52に記憶される。
<Action and effect>
As described above, when the original is read by the CIS unit 21, the black and white reference portion 41 is read by the CIS unit 21 before the reading, and the CPU 51 acquires a light amount adjustment value for adjusting the light amount of the light source 22. After the light amount of the light source 22 is adjusted using the light amount adjustment value, the black and white reference portion 41 is read again by the CIS unit 21, and the CPU 51 acquires a shading correction value for shading correction. The shading correction value is divided into blocks for each fixed number of pixels, and a block-based shading correction average value, which is the average value of the shading correction values, is calculated for each block. The light amount adjustment value and the block-based shading correction average value are stored in the non-volatile memory 52 as the final light amount adjustment value and the final block-based shading correction average value, respectively.

CISユニット21のホームポジションの検知のためのHP検知処理では、光源22の光量が不揮発性メモリ52に記憶されている最終光量調整値を用いて調整され、CISユニット21が副走査方向に移動されながら、CISユニット21による読み取りが行われる。そして、CISユニット21により読み取られた画素値が各最終ブロック単位シェーディング補正平均値に対応するブロックに分けられ、ブロックごとに、そのブロックに含まれる各画素値が最終ブロック単位シェーディング補正平均値を用いてシェーディング補正される。このシェーディング補正の後、互いに隣り合う画素値が所定のHP検知閾値を跨いで変化する位置の検知が行われる。互いに隣り合う画素値が所定のHP検知閾値を跨いで変化する位置が検知されない場合、CISユニット21に読み取られた次の1ラインの読取データを対象として、最終ブロック単位シェーディング補正平均値を用いたシェーディング補正の後、互いに隣り合う画素値が所定のHP検知閾値を跨いで変化する位置の検知が行われる。これが繰り返されて、互いに隣り合う画素値が所定のHP検知閾値を跨いで変化する位置が検知されると、その位置がCISユニット21のホームポジションとされる。 In the HP detection process for detecting the home position of the CIS unit 21, the light amount of the light source 22 is adjusted using the final light amount adjustment value stored in the non-volatile memory 52, and the CIS unit 21 reads while moving in the sub-scanning direction. The pixel values read by the CIS unit 21 are divided into blocks corresponding to the final block-unit shading correction average values, and for each block, each pixel value included in the block is shading-corrected using the final block-unit shading correction average value. After this shading correction, the position where the adjacent pixel values change across a predetermined HP detection threshold is detected. If the position where the adjacent pixel values change across a predetermined HP detection threshold is not detected, the next line of read data read by the CIS unit 21 is subjected to shading correction using the final block-unit shading correction average value, and then the position where the adjacent pixel values change across a predetermined HP detection threshold is detected. This process is repeated until a position is detected where adjacent pixel values change across a predetermined HP detection threshold, and that position is determined to be the home position of the CIS unit 21.

そのため、イメージセンサ25の感度不均一性(PRNU)、メカ的要因による照明深度の変動、光源22の経年劣化などの影響を排除して、CISユニット21のホームポジションを検知することができる。その結果、ホームポジションの誤検知を抑制することができる。 Therefore, the home position of the CIS unit 21 can be detected while eliminating the effects of the sensitivity non-uniformity (PRNU) of the image sensor 25, fluctuations in illumination depth due to mechanical factors, and deterioration over time of the light source 22. As a result, false detection of the home position can be suppressed.

不揮発性メモリ52には、最終光量調整値および最終ブロック単位シェーディング補正平均値とともに、それらが取得されたときの読取解像度が最終読取解像度として記憶される。そして、HP検知処理でのCISユニット21による読み取りは、最終読取解像度以下の読取解像度で行われる。すなわち、最終読取解像度が最低解像度である場合には、HP検知処理でのCISユニット21による読み取りは、最終読取解像度(=最低解像度)で行われ、最終読取解像度が最低解像度よりも高い高解像度である場合には、HP検知処理でのCISユニット21による読み取りは、最低解像度で行われる。これにより、最終読取解像度が高い場合に、HP検知処理でのCISユニット21による読み取りが最終読取解像度で行われるのに比べ、その読み取りに要する時間を短縮することができる。 In the non-volatile memory 52, the reading resolution at which the final light amount adjustment value and the final block-unit shading correction average value were obtained is stored as the final reading resolution. The reading by the CIS unit 21 in the HP detection process is performed at a reading resolution lower than the final reading resolution. In other words, if the final reading resolution is the lowest resolution, the reading by the CIS unit 21 in the HP detection process is performed at the final reading resolution (= minimum resolution), and if the final reading resolution is a higher resolution than the minimum resolution, the reading by the CIS unit 21 in the HP detection process is performed at the lowest resolution. This makes it possible to reduce the time required for reading when the final reading resolution is high, compared to when reading by the CIS unit 21 in the HP detection process is performed at the final reading resolution.

また、最終読取解像度が最低解像度よりも高く、HP検知処理でのCISユニット21による読み取りが最低解像度で行われる場合には、光源22の光量が最終光量調整値と最低解像度を最終読取解像度で除算した値とを用いて調整される。これにより、光源22の光量を最低解像度に応じた光量に調整することができ、HP検知処理でのCISユニット21による読み取りを良好に行うことができる。 In addition, when the final reading resolution is higher than the minimum resolution and reading by the CIS unit 21 in the HP detection process is performed at the minimum resolution, the amount of light from the light source 22 is adjusted using the final light amount adjustment value and the value obtained by dividing the minimum resolution by the final reading resolution. This allows the amount of light from the light source 22 to be adjusted to a value that corresponds to the minimum resolution, allowing good reading by the CIS unit 21 in the HP detection process.

最終読取解像度、最終光量調整値および最終ブロック単位シェーディング補正平均値は、不揮発性メモリ52に記憶されるので、読取装置1の電源がオフにされても、不揮発性メモリ52から最終読取解像度、最終光量調整値および最終ブロック単位シェーディング補正平均値が消失しない。そのため、読取装置1の電源が投入されたことに応じて実行されるHP検知処理においても、CISユニット21のホームポジションを検知することができる。 The final reading resolution, the final light amount adjustment value, and the final block-unit shading correction average value are stored in the non-volatile memory 52, so even if the power supply of the reading device 1 is turned off, the final reading resolution, the final light amount adjustment value, and the final block-unit shading correction average value are not lost from the non-volatile memory 52. Therefore, the home position of the CIS unit 21 can be detected even in the HP detection process that is executed in response to the power supply of the reading device 1 being turned on.

<HP検知処理の他の例>
図7に示されるHP検知処理に代えて、図9に示されるHP検知処理が行われてもよい。
<Another example of HP detection processing>
Instead of the HP detection process shown in FIG. 7, the HP detection process shown in FIG. 9 may be performed.

図9に示されるHP検知処理では、CPU51は、不揮発性メモリ52からCIS動作ライン数および最終読取解像度を読み出す(S31)。 In the HP detection process shown in FIG. 9, the CPU 51 reads the number of CIS operating lines and the final reading resolution from the non-volatile memory 52 (S31).

原稿の読み取りが行われている間、たとえば、CISユニット21がホームポジションに位置するときのステップ数を0として、CISユニット移動機構55のステッピングモータが正方向に1ステップ回転するとステップ数をインクリメント(+1)し、ステッピングモータが逆方向に1ステップ回転するとステップ数をデクリメント(-1)することにより、ステッピングモータのステップ数が計数されている。そして、最終に行われた読取処理が終了した時点でのステップ数がCIS動作ライン数として不揮発性メモリ52に書き込まれる。すなわち、不揮発性メモリ52には、ホームポジションから最終に行われた読取処理が終了した時点におけるCISユニット21の位置までのライン数がCIS動作ライン数として記憶されている。 While an original is being read, for example, the number of steps when the CIS unit 21 is located at the home position is set to 0, and the number of steps of the stepping motor is counted by incrementing (+1) each time the stepping motor of the CIS unit movement mechanism 55 rotates one step in the forward direction and decrementing (-1) each time the stepping motor rotates one step in the reverse direction. The number of steps at the time the last reading process is completed is then written to the non-volatile memory 52 as the number of CIS operating lines. In other words, the number of lines from the home position to the position of the CIS unit 21 at the time the last reading process is completed is stored in the non-volatile memory 52 as the number of CIS operating lines.

CPU51は、最終読取解像度が300dpiであるか否かを判断する(S32)。 The CPU 51 determines whether the final reading resolution is 300 dpi (S32).

最終読取解像度が300dpiでない場合(S32:NO)、CPU51は、不揮発性メモリ52から読み出したCIS動作ライン数(以下、「読み出しライン数L」という。)が所定値A以上であるか否かを判断する(S33)。 If the final reading resolution is not 300 dpi (S32: NO), the CPU 51 determines whether the number of CIS operating lines read from the non-volatile memory 52 (hereinafter referred to as the "read line number L") is equal to or greater than a predetermined value A (S33).

読み出しライン数Lが所定値A以上である場合(S33:YES)、CPU51は、CISユニット移動機構55を制御して、読取解像度が300dpiであるときのCISユニット21の移動速度で、CISユニット21をホームポジションに向けて1ライン戻す(S34)。このとき、CISユニット21の光源22が点灯されて、CISユニット21による読み取りが行われてもよいし、光源22が点灯されず、CISユニット21による読み取りが行われなくてもよい。その後、CPU51は、CISユニット21をホームポジションに向けて戻したライン数の合計が読み出しライン数Lから所定値Aを減じた値(L-A)よりも大きいか否かを判断する(S35)。戻したライン数の合計が値(L-A)以下であり、CPU51は、戻したライン数の合計が値(L-A)よりも大きくないと判断した場合(S35:NO)、CISユニット移動機構55を制御して、CISユニット21をホームポジションに向けてさらに1ライン戻し(S34)、CISユニット21を戻したライン数の合計が値(L-A)よりも大きいか否かを再び判断する(S35)。 If the number of read lines L is equal to or greater than the predetermined value A (S33: YES), the CPU 51 controls the CIS unit movement mechanism 55 to move the CIS unit 21 back one line toward the home position at the movement speed of the CIS unit 21 when the reading resolution is 300 dpi (S34). At this time, the light source 22 of the CIS unit 21 may be turned on and the CIS unit 21 may perform reading, or the light source 22 may not be turned on and the CIS unit 21 may not perform reading. The CPU 51 then determines whether the total number of lines by which the CIS unit 21 has been moved back toward the home position is greater than the value (L-A) obtained by subtracting the predetermined value A from the number of read lines L (S35). If the total number of lines moved back is equal to or less than the value (L-A) and the CPU 51 determines that the total number of lines moved back is not greater than the value (L-A) (S35: NO), it controls the CIS unit movement mechanism 55 to move the CIS unit 21 back another line toward the home position (S34) and again determines whether the total number of lines moved back by the CIS unit 21 is greater than the value (L-A) (S35).

CISユニット21を戻したライン数の合計が値(L-A)よりも大きくなり、CPU51は、その戻したライン数の合計が値(L-A)よりも大きいと判断すると(S35:YES)、CISユニット移動機構55を制御して、最終読取解像度に応じた移動速度で移動させる。その一方で、CPU51は、不揮発性メモリ52から最終光量調整値を読み出して、最終光量調整値に含まれる電流値およびHP検知用光量調整値(デューティ)で光源22に電流を供給することにより、光源22の光量を調整して、CISユニット21(イメージセンサ25)に最終読取解像度での1ラインの読み取りを行わせる(S36)。 When the total number of lines by which the CIS unit 21 has been moved back becomes greater than the value (L-A) and the CPU 51 determines that the total number of lines by which the CIS unit 21 has been moved back is greater than the value (L-A) (S35: YES), it controls the CIS unit movement mechanism 55 to move the CIS unit 21 at a movement speed according to the final reading resolution. Meanwhile, the CPU 51 reads the final light amount adjustment value from the non-volatile memory 52 and adjusts the light amount of the light source 22 by supplying current to the light source 22 with the current value included in the final light amount adjustment value and the light amount adjustment value for HP detection (duty), thereby causing the CIS unit 21 (image sensor 25) to read one line at the final reading resolution (S36).

また、CPU51は、最終読取解像度が300dpiであると判断した場合(S32:NO)、または、読み出しライン数Lが所定値A以上ではないと判断した場合(S33:NO)、CISユニット移動機構55を制御して、最終読取解像度に応じた移動速度で移動させる。その一方で、CPU51は、不揮発性メモリ52から最終光量調整値を読み出して、最終光量調整値に含まれる電流値およびHP検知用光量調整値(デューティ)で光源22に電流を供給して、CISユニット21(イメージセンサ25)に最終読取解像度での1ラインの読み取りを行わせる(S36)。 If the CPU 51 determines that the final reading resolution is 300 dpi (S32: NO), or that the number of read lines L is not equal to or greater than the predetermined value A (S33: NO), it controls the CIS unit movement mechanism 55 to move the CIS unit 55 at a speed corresponding to the final reading resolution. Meanwhile, the CPU 51 reads the final light adjustment value from the non-volatile memory 52, and supplies current to the light source 22 at the current value included in the final light adjustment value and the HP detection light adjustment value (duty), causing the CIS unit 21 (image sensor 25) to read one line at the final reading resolution (S36).

そして、CPU51は、CISユニット21に読み取られた1ラインの読取データに対して、各最終ブロック単位シェーディング補正平均値を用いたシェーディング補正を行う(S37)。その後、CPU51は、シェーディング補正後の1ラインの読取データについて、その画素加算後の各画素値を主走査方向の一方側から順に着目して、互いに隣り合う画素値が所定のHP検知閾値を跨いで変化する位置の検知を行う(S38:白黒検知)。 Then, the CPU 51 performs shading correction on one line of read data read by the CIS unit 21 using each final block unit shading correction average value (S37). After that, the CPU 51 focuses on each pixel value after pixel addition for one line of read data after shading correction, starting from one side in the main scanning direction, and detects the position where adjacent pixel values change across a predetermined HP detection threshold (S38: black and white detection).

CPU51は、互いに隣り合う画素値が所定のHP検知閾値を跨いで変化する位置を検知しない場合(S38:NO)、CISユニット21に読み取られた次の1ラインの読取データを対象として、最終ブロック単位シェーディング補正平均値を用いたシェーディング補正の後、互いに隣り合う画素値が所定のHP検知閾値を跨いで変化する位置の検知を行うといった処理を繰り返す。CPU51は、互いに隣り合う画素値が所定のHP検知閾値を跨いで変化する位置を検知すると(S38:YES)、その位置をCISユニット21のホームポジションと検知して、HP検知処理を終了する。 If the CPU 51 does not detect a position where adjacent pixel values change across the specified HP detection threshold (S38: NO), it repeats the process of detecting a position where adjacent pixel values change across the specified HP detection threshold for the next line of read data read by the CIS unit 21, after shading correction using the final block unit shading correction average value. If the CPU 51 detects a position where adjacent pixel values change across the specified HP detection threshold (S38: YES), it detects that position as the home position of the CIS unit 21 and ends the HP detection process.

以上のように、最終読取解像度が最低解像度である場合には、HP検知処理でのCISユニット21による読み取りは、最終読取解像度(=最低解像度)で行われる。一方、最終読取解像度が最低解像度よりも高い高解像度である場合には、CISユニット21をホームポジションに向けて戻したライン数の合計が値(L-A)よりも大きくなるまで、CISユニット21が最低解像度に応じた速度で戻され、戻したライン数の合計が値(L-A)よりも大きくなった後、言い換えれば、CISユニット21がホームポジションから所定ライン数A手前の位置まで戻った後は、CISユニット21により最終読取解像度での読み取りが行われる。そのため、最終読取解像度が高い場合に、HP検知処理でのCISユニット21による読み取りが最終読取解像度で終始行われるのに比べ、その読み取りに要する時間を短縮することができる。 As described above, when the final reading resolution is the lowest resolution, reading by the CIS unit 21 in the HP detection process is performed at the final reading resolution (= lowest resolution). On the other hand, when the final reading resolution is a higher resolution than the minimum resolution, the CIS unit 21 is returned at a speed according to the minimum resolution until the total number of lines by which the CIS unit 21 is returned toward the home position becomes greater than the value (L-A), and after the total number of lines returned becomes greater than the value (L-A), in other words, after the CIS unit 21 returns to a position a predetermined number of lines A short of the home position, reading is performed by the CIS unit 21 at the final reading resolution. Therefore, when the final reading resolution is high, the time required for reading by the CIS unit 21 in the HP detection process can be shortened compared to when reading is performed at the final reading resolution from start to finish by the CIS unit 21.

<変形例>
以上、本発明の実施の形態について説明したが、本発明は、他の形態で実施することもできる。
<Modification>
Although the embodiment of the present invention has been described above, the present invention can be embodied in other forms.

たとえば、前述の実施形態では、読取処理で得られたシェーディング補正値が一定の画素数のブロックに分けられて、そのブロックごとにシェーディング補正値の平均値が算出され、その算出された平均値が最終ブロック単位シェーディング補正平均値として不揮発性メモリ52に記憶されて、HP検知処理におけるシェーディング補正では、最終ブロック単位シェーディング補正平均値が用いられるとした。これに限らず、読取処理で得られたシェーディング補正値がそのまま不揮発性メモリ52に記憶されて、そのシェーディング補正値がHP検知処理におけるシェーディング補正に用いられてもよい。 For example, in the above-described embodiment, the shading correction value obtained in the reading process is divided into blocks of a fixed number of pixels, the average value of the shading correction values is calculated for each block, and the calculated average value is stored in the non-volatile memory 52 as the final block-based shading correction average value, and the final block-based shading correction average value is used in the shading correction in the HP detection process. However, the shading correction value obtained in the reading process may be stored directly in the non-volatile memory 52, and the shading correction value may be used for the shading correction in the HP detection process.

また、CPU51が各処理を実行するとしたが、読取装置1に複数のCPUが設けられて、複数のCPUが協働して各処理を実行してもよい。 In addition, although the CPU 51 is described as executing each process, multiple CPUs may be provided in the reading device 1, and the multiple CPUs may cooperate to execute each process.

その他、前述の構成には、特許請求の範囲に記載された事項の範囲で種々の設計変更を施すことが可能である。 In addition, various design modifications can be made to the above-mentioned configuration within the scope of the claims.

1:読取装置
14:原稿載置板
21:CISユニット
22:光源
25:イメージセンサ
29:受光素子
41:白黒基準部
51:CPU
52:不揮発性メモリ
1: Reading device 14: Document placement plate 21: CIS unit 22: Light source 25: Image sensor 29: Light receiving element 41: Black and white reference section 51: CPU
52: Non-volatile memory

Claims (3)

原稿を支持する支持面を有する原稿台と、
前記原稿台に対して前記支持面側と反対側に、前記支持面と平行をなす副走査方向に往復移動可能に設けられ、前記支持面上の読取対象に光を照射する光源および前記読取対象からの反射光を信号に変換するイメージセンサを有する読取デバイスと、
前記読取デバイスのホームポジションに応じた位置に配置される基準部と、
記憶部と、
制御部と、を備え、
前記イメージセンサは、主走査方向に並べられた複数の受光素子を備えており、
前記制御部は、
複数の読取解像度で前記読取デバイスに読み取りを実施させることが可能であり、
前記原稿を前記読取デバイスに読み取らせる際に、前記原稿の読み取りの前に、前記読取デバイスに前記基準部の読み取りを実施させ、この読み取りにより前記イメージセンサから出力される信号を用いて前記光源の光量調整のための調整値を取得し、前記調整値を前記記憶部に記憶させ、
前記原稿の読み取りの前に、前記調整値を用いて調整した光量で前記光源を発光させて、前記読取デバイスに前記基準部の読み取りを実施させ、この読み取りにより前記イメージセンサから出力される信号を用いて、個々の前記受光素子が出力する画素値から白レベルの不均一性を補正する白レベル補正値を求め、前記白レベル補正値を複数のブロックに分けて、前記ブロックごとに、前記白レベル補正値の平均値をシェーディング補正のための補正値として取得し、前記補正値を前記ブロックと対応づけて前記記憶部に記憶させ、
前記調整値および前記補正値を取得したときの読取解像度を前記記憶部に記憶させ、
前記記憶部に記憶されている前記調整値を用いて調整した光量で前記光源を発光させて、前記読取デバイスを前記副走査方向に移動させながら、前記読取デバイスに読み取りを実施させ、この読み取りにより前記イメージセンサから出力される信号が示す画素値を前記記憶部に記憶されている前記補正値を用いてシェーディング補正し、
前記シェーディング補正後の画素値が所定の閾値を跨いで変化した位置を前記ホームポジションとして検知し、
前記ホームポジションの検知のための読み取りにおいて、
前記記憶部に記憶されている前記調整値および前記補正値を取得したときの読取解像度が最低解像度である場合、前記読取デバイスに前記最低解像度で前記ホームポジションの検知のための読み取りを実施させ、
前記記憶部に記憶されている前記調整値および前記補正値を取得したときの読取解像度が前記最低解像度よりも高い高解像度である場合、前記光源の光量を、前記記憶部に記憶されている前記調整値と、前記最低解像度を前記高解像度で除算した値とを用いて調整して、前記読取デバイスに前記最低解像度で読み取りを実施させ、
前記ホームポジションの検知の際のシェーディング補正では、前記ブロックごとに、前記ブロックに対応づけられた前記補正値を用いて、前記受光素子が出力する画素値を補正する、読取装置。
a document table having a support surface for supporting a document;
a reading device provided on the opposite side of the support surface side of the document table so as to be movable back and forth in a sub-scanning direction parallel to the support surface, the reading device having a light source that irradiates light onto a reading target on the support surface and an image sensor that converts reflected light from the reading target into a signal;
a reference portion disposed at a position corresponding to a home position of the reading device;
A storage unit;
A control unit,
The image sensor includes a plurality of light receiving elements arranged in a main scanning direction,
The control unit is
The reading device may be configured to read at a plurality of reading resolutions;
When the document is read by the reading device, before reading the document, the reading device is caused to read the reference portion, and an adjustment value for adjusting the amount of light of the light source is obtained using a signal output from the image sensor by this reading, and the adjustment value is stored in the storage unit;
prior to reading the document, making the light source emit light with an amount of light adjusted using the adjustment value, making the reading device read the reference portion, using a signal output from the image sensor by this reading to obtain a white level correction value for correcting non-uniformity in the white level from pixel values output from each of the light receiving elements, dividing the white level correction value into a plurality of blocks, obtaining an average value of the white level correction values for each of the blocks as a correction value for shading correction, and storing the correction value in the storage unit in association with the block ;
storing the reading resolution at the time when the adjustment value and the correction value are obtained in the storage unit;
causing the light source to emit light with an amount of light adjusted using the adjustment value stored in the storage unit, and causing the reading device to perform reading while moving the reading device in the sub-scanning direction, and performing shading correction on pixel values indicated by signals output from the image sensor by this reading using the correction value stored in the storage unit;
detecting a position where the pixel value after the shading correction has changed across a predetermined threshold as the home position;
In the reading for detecting the home position,
when the reading resolution at the time of acquiring the adjustment value and the correction value stored in the storage unit is the lowest resolution, the reading device is caused to perform reading for detecting the home position at the lowest resolution;
when the reading resolution at which the adjustment value and the correction value stored in the storage unit were obtained is a high resolution higher than the minimum resolution, an amount of light of the light source is adjusted using the adjustment value stored in the storage unit and a value obtained by dividing the minimum resolution by the high resolution, and the reading device is caused to perform reading at the minimum resolution;
In the shading correction when detecting the home position, the pixel value output by the light receiving element is corrected for each of the blocks by using the correction value associated with the block .
請求項に記載の読取装置であって、
前記調整値は、前記光源の点灯をパルス幅変調により制御する場合のデューティ比である、読取装置。
2. The reading device according to claim 1 ,
A reading device, wherein the adjustment value is a duty ratio when lighting of the light source is controlled by pulse width modulation.
請求項1または2に記載の読取装置であって、
前記記憶部は、不揮発性メモリである、読取装置。
3. The reading device according to claim 1 ,
A reading device, wherein the storage unit is a non-volatile memory.
JP2021077089A 2021-04-30 2021-04-30 Reading device Active JP7683301B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021077089A JP7683301B2 (en) 2021-04-30 2021-04-30 Reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021077089A JP7683301B2 (en) 2021-04-30 2021-04-30 Reading device

Publications (2)

Publication Number Publication Date
JP2022170847A JP2022170847A (en) 2022-11-11
JP7683301B2 true JP7683301B2 (en) 2025-05-27

Family

ID=83946051

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021077089A Active JP7683301B2 (en) 2021-04-30 2021-04-30 Reading device

Country Status (1)

Country Link
JP (1) JP7683301B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003051918A (en) 2001-08-06 2003-02-21 Canon Inc Image reading apparatus and image forming apparatus provided with this apparatus
JP2003152958A (en) 2001-11-09 2003-05-23 Ricoh Co Ltd Image reading device
JP2011077873A (en) 2009-09-30 2011-04-14 Brother Industries Ltd Image reader
JP2014033390A (en) 2012-08-06 2014-02-20 Seiko Epson Corp Image reading device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07135556A (en) * 1993-11-11 1995-05-23 Canon Inc Image reader

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003051918A (en) 2001-08-06 2003-02-21 Canon Inc Image reading apparatus and image forming apparatus provided with this apparatus
JP2003152958A (en) 2001-11-09 2003-05-23 Ricoh Co Ltd Image reading device
JP2011077873A (en) 2009-09-30 2011-04-14 Brother Industries Ltd Image reader
JP2014033390A (en) 2012-08-06 2014-02-20 Seiko Epson Corp Image reading device

Also Published As

Publication number Publication date
JP2022170847A (en) 2022-11-11

Similar Documents

Publication Publication Date Title
JP4888139B2 (en) Image reading device
JP4457976B2 (en) Image reading apparatus and image reading method
US8130423B2 (en) Image scanning device and method for detecting type of document
JP4752605B2 (en) Image reading device
JP7521223B2 (en) Image reader
US20160119501A1 (en) Image reading device
US8390901B2 (en) Image reading apparatus
CN100396082C (en) Image reading device and image reading method
JP7683301B2 (en) Reading device
JP6142815B2 (en) Image reading device
US11671544B2 (en) Image reading apparatus, image forming apparatus, and document size detection method
JP2017059879A (en) Image reader and image formation apparatus
WO2021200465A1 (en) Reading device
JP2022170846A (en) reader
JP7835009B2 (en) Reader
JP7230542B2 (en) reader
JP2022089357A (en) Reader
JP2023123984A (en) reader
JP4888140B2 (en) Image reading device
JP7159862B2 (en) Image reader
JP3150185B2 (en) Image reading device
JP4902598B2 (en) Image reading device
JP2024153180A (en) Reading device
JP2025002312A (en) Image reader
JP2009111692A (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: 20240423

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20241225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20250128

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250331

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250428

R150 Certificate of patent or registration of utility model

Ref document number: 7683301

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150