JP2018137793A - Image reading apparatus, computer program, and method - Google Patents

Image reading apparatus, computer program, and method Download PDF

Info

Publication number
JP2018137793A
JP2018137793A JP2018072949A JP2018072949A JP2018137793A JP 2018137793 A JP2018137793 A JP 2018137793A JP 2018072949 A JP2018072949 A JP 2018072949A JP 2018072949 A JP2018072949 A JP 2018072949A JP 2018137793 A JP2018137793 A JP 2018137793A
Authority
JP
Japan
Prior art keywords
document
reading
cover
digital data
controller
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.)
Granted
Application number
JP2018072949A
Other languages
Japanese (ja)
Other versions
JP6569764B2 (en
Inventor
山田 晃史
Akishi Yamada
晃史 山田
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 JP2018072949A priority Critical patent/JP6569764B2/en
Publication of JP2018137793A publication Critical patent/JP2018137793A/en
Application granted granted Critical
Publication of JP6569764B2 publication Critical patent/JP6569764B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To detect a state of a document cover even in the absence of a posture sensor.SOLUTION: An image reading apparatus comprises a document platen, a document cover, a light source, a reading part, a reading mechanism, and a controller. The controller executes a change process to change a reading position to a detection position, an opening determination process to determine that the document cover is open when digital data of an area in which a document is not placed is not smaller than a cover determination value, and a closing determination process to determine that the document cover is closed when the digital data of the area in which the document is not placed is smaller than the cover determination value.SELECTED DRAWING: Figure 7

Description

本発明は、画像読取装置に関する。   The present invention relates to an image reading apparatus.

原稿台上に置かれた原稿を読み取る時に、原稿カバーが全閉姿勢となっているか否かを判定する必要がある。
特許文献1に記載の画像読み取り装置は、姿勢センサにより原稿カバーの姿勢を検知して、光源を点灯させ、原稿の読み取りを実行している。
When reading a document placed on the document table, it is necessary to determine whether or not the document cover is in a fully closed position.
The image reading apparatus described in Patent Document 1 detects the orientation of the document cover with an orientation sensor, turns on the light source, and executes document reading.

特開2005−20049号公報Japanese Patent Laid-Open No. 2005-20049

しかし、姿勢センサを用いて原稿カバーの状態を検知しているため、装置全体が大きくなり、さらに、センサの出力を検知するための装置構成が必要となり、装置構成が複雑になるという問題があった。   However, since the state of the document cover is detected using the attitude sensor, the entire apparatus becomes large, and further, an apparatus configuration for detecting the output of the sensor is required, which complicates the apparatus configuration. It was.

そこで、本発明は、上述した事情に鑑みてなされ、姿勢センサがない状態においても、原稿カバーの状態を検知することを目的とする。   Accordingly, the present invention has been made in view of the above-described circumstances, and an object of the present invention is to detect the state of a document cover even in a state where there is no attitude sensor.

上記目的を達成するために、請求項1に記載の発明態様では、画像読取装置であって、読取対象の原稿の1個の頂点が配置されるべき基準点が設けられ、原稿が支持されない原稿非載置領域を備えている原稿載置台と、前記原稿載置台の上面を覆う閉状態と前記原稿載置台の上面を開放する開状態とに開閉する原稿カバーと、を照射する光源と、主走査方向に沿ったライン単位で受光した光量をデジタルデータとして取得する読取を実行する読取部と、前記読取を実行する読取位置を主走査方向と直交する副走査方向に変更する読取機構と、コントローラと、を備え、前記コントローラは、前記原稿非載置領域において前記読取部が外乱光を検知する検知位置へ前記読取位置を前記読取機構により変更させる変更処理と、前記読取位置を前記検知位置に変更した状態において、前記光源から光を照射させず、主走査方向における前記原稿非載置領域のデジタルデータがカバー判定値以上のときに前記原稿カバーが開状態であると判断する開判断処理と、前記開判断処理において前記原稿カバーが開状態であると判断された後に、前記読取位置を前記検知位置に変更した状態において、前記光源から光を照射させず、主走査方向における前記原稿非載置領域のデジタルデータが前記カバー判定値以下のときに前記原稿カバーが閉状態であると判断する閉判断処理と、を実行する。 In order to achieve the above object, according to the first aspect of the present invention, there is provided an image reading apparatus in which a reference point on which one vertex of a document to be read is to be placed is provided and the document is not supported a document table which has a non-mounting region, and a document cover that opens and closes the open state to open the upper surface of the closed state covering the upper surface of the document table the document table, a light source for emitting light, A reading unit that performs reading to acquire the amount of light received in units of lines along the main scanning direction as digital data; a reading mechanism that changes a reading position to execute the reading in a sub-scanning direction orthogonal to the main scanning direction; comprising a controller, wherein the controller includes a change process in which the reading unit is changed by the reading mechanism of the reading position to the detection position for detecting the disturbance light in the original non-placing area, the reading position before In the state where the detection position is changed, no light is emitted from the light source, and the document cover is determined to be open when the digital data in the document non-loading area in the main scanning direction is equal to or greater than the cover determination value. After the determination process and the open determination process, the document cover is determined to be in the open state, and the reading position is changed to the detection position, and the light source is not irradiated with light, and the light source is not irradiated with light. A closing determination process for determining that the document cover is in a closed state when the digital data of the document non-loading area is equal to or less than the cover determination value .

請求項2に記載の具体的態様では、前記原稿台は、前記基準点を通過する副走査方向と平行な基準線から主走査方向に所定距離離れた位置までの領域を余白領域として備え、前記コントローラは、前記光源から光を照射させる点灯ラインと、前記光源を消灯させる消灯ラインとを組み合わせた2ラインを読取ラインとして前記光源を制御する点灯処理と、前記開判断処理において前記原稿カバーが開状態であると判断された後に、前記余白領域の前記点灯ラインのデジタルデータと、前記余白領域の前記消灯ラインのデジタルデータとの差分が原稿判定値より大きいときに前記余白領域に原稿が支持されたと判断する原稿判断処理と、を実行し、前記閉判断処理は、前記原稿判断処理において前記余白領域に原稿が支持されたと判断された後に、実行される。 According to a specific aspect of the present invention, the document table includes, as a blank area, an area from a reference line parallel to the sub-scanning direction passing through the reference point to a position separated by a predetermined distance in the main scanning direction. The controller includes a lighting process for controlling the light source by using two lines, which are a combination of a lighting line for irradiating light from the light source and a lighting line for turning off the light source, and the document cover is opened in the opening determination process. After being determined to be in a state, the document is supported in the margin area when the difference between the digital data of the lighting line in the margin area and the digital data of the extinguished line in the margin area is larger than the document determination value. and a document determination process of determining that, by the execution, the closed determination process, after it is determined that the document in the margin area in the original determination process is supported , It is executed.

請求項3に記載の具体的態様では、画像読取装置によって実行される方法であって、前記画像読取装置は、読取対象の原稿の1個の頂点が配置されるべき基準点が設けられ、原稿が載置されない原稿非載置領域を備えている原稿載置台と、前記原稿載置台の上面を覆う閉状態と前記原稿載置台の上面を開放する開状態とに開閉する原稿カバーと、を照射する光源と、主走査方向に沿ったライン単位で受光した光量をデジタルデータとして取得する読取を実行する読取部と、前記読取を実行する読取位置を副走査方向に変更する読取機構と、を備え、前記方法は、前記原稿非載置領域において前記読取部が外乱光を検知する検知位置へ前記読取位置を前記読取機構により変更させる変更工程と、前記読取位置を前記検知位置に変更した状態において、前記光源から光を照射させず、主走査方向における前記原稿非載置領域のデジタルデータがカバー判定値以上のときに前記原稿カバーが開状態であると判断する開判断工程と、前記開判断処理において前記原稿カバーが開状態であると判断された後に、前記読取位置を前記検知位置に変更した状態において、前記光源から光を照射させず、主走査方向における前記原稿非載置領域のデジタルデータが前記カバー判定値以下のときに前記原稿カバーが閉状態であると判断する閉判断工程と、を含む。 According to a specific aspect of the present invention, there is provided a method executed by an image reading apparatus, wherein the image reading apparatus is provided with a reference point on which one vertex of a document to be read is to be arranged, and the document a document mounting table but has an original non-placing area that is not placed, a document cover that opens and closes to the open state to open the upper surface of the original placing top the document table in the closed state of covering the base, the light A light source that irradiates; a reading unit that executes reading to acquire the amount of light received in units of lines along the main scanning direction as digital data; and a reading mechanism that changes a reading position to execute the reading in the sub-scanning direction. The method includes a changing step of changing the reading position by the reading mechanism to a detection position where the reading unit detects disturbance light in the document non-loading region, and a state in which the reading position is changed to the detection position In An opening determination step of determining that the document cover is in an open state when the digital data of the document non-loading area in the main scanning direction is equal to or greater than a cover determination value without irradiating light from the light source; After the determination that the document cover is in the open state in the determination processing, light is not emitted from the light source in a state where the reading position is changed to the detection position, and the document non-loading area in the main scanning direction is not irradiated. A closing determination step of determining that the document cover is in a closed state when the digital data is equal to or less than the cover determination value .

請求項1に記載の発明態様では、変更処理は、検知位置へ読取位置を読取機構により変更させる。開判断処理は、光源から光を照射させず、主走査方向における原稿非載置領域のデジタルデータがカバー判定値以上のときに原稿カバーが開状態であると判断する。閉判断処理は、光源から光を照射させず、主走査方向における原稿非載置領域のデジタルデータがカバー判定値以下のときに原稿カバーが閉状態であると判断する。よって、原稿非載置領域のデジタルデータに応じて原稿カバーの状態を検知できるため、原稿カバーを検知する姿勢センサがない状態においても、原稿カバーの状態を検知することができる。 In the first aspect of the invention, the changing process changes the reading position to the detection position by the reading mechanism. In the open determination process, light is not emitted from the light source, and it is determined that the document cover is in the open state when the digital data of the document non-loading area in the main scanning direction is equal to or greater than the cover determination value. In the closing determination process, it is determined that the document cover is in a closed state when light is not emitted from the light source and the digital data in the document non-loading area in the main scanning direction is equal to or less than the cover determination value. Accordingly, since the state of the document cover can be detected according to the digital data in the document non-placement area, the state of the document cover can be detected even when there is no attitude sensor for detecting the document cover.

請求項2に記載の具体的態様では、原稿判断処理は、余白領域の点灯ラインのデジタルデータと、余白領域の消灯ラインのデジタルデータとの差分が原稿判定値以内であるときに余白領域に原稿が支持されたと判断する。よって、余白領域の点灯ラインのデジタルデータと、余白領域の消灯ラインのデジタルデータとにより、原稿が支持されたことを判断できるため、原稿を検知する原稿センサがない状態においても、原稿が支持されたことを判断することができる。 According to a specific aspect of the present invention, the document determination process is performed when the difference between the digital data of the lighting line in the blank area and the digital data of the blank line in the blank area is within the document determination value. Is determined to be supported. Therefore, since it can be determined that the original is supported by the digital data of the lighting line in the margin area and the digital data of the off-line in the margin area, the original is supported even when there is no original sensor for detecting the original. Can be judged.

請求項3に記載の具体的態様では、変更工程は、検知位置へ読取位置を読取機構に変更させる。開判断工程は、光源から光を照射させず、主走査方向における原稿非載置領域のデジタルデータがカバー判定値以上のときに原稿カバーが開状態であると判断する。閉判断工程は、光源から光を照射させず、主走査方向における原稿非載置領域のデジタルデータがカバー判定値以下のときに原稿カバーが閉状態であると判断する。よって、原稿非載置領域のデジタルデータに応じて原稿カバーの状態を検知できるため、原稿カバーを検知する姿勢センサがない状態においても、原稿カバーの状態を検知することができる。 According to a specific aspect of the present invention, the changing step causes the reading mechanism to change the reading position to the detection position. In the open determination step, it is determined that the document cover is in the open state when the digital data in the document non-placement area in the main scanning direction is equal to or greater than the cover determination value without irradiating light from the light source. In the closing determination step, it is determined that the document cover is in the closed state when light from the light source is not emitted and the digital data in the document non-placement area in the main scanning direction is equal to or less than the cover determination value. Accordingly, since the state of the document cover can be detected according to the digital data in the document non-placement area, the state of the document cover can be detected even when there is no attitude sensor for detecting the document cover.

(A)本発明の実施形態に係る画像読取装置1の内部構成を示す図面である。(B)透明板TPの平面図である。 (A) It is drawing which shows the internal structure of the image reading apparatus 1 which concerns on embodiment of this invention. (B) It is a top view of transparent board TP. 画像読取装置1の制御構成を示すブロック図である。2 is a block diagram illustrating a control configuration of the image reading apparatus 1. FIG. 電源投入時処理M1を示すフローチャートである。It is a flowchart which shows the power-on process M1. 原稿サイズ確定処理(T9)を示すフローチャートである。10 is a flowchart showing document size determination processing (T9). 再原稿サイズ確定処理(TA12)を示すフローチャートである。It is a flowchart which shows re-original size determination processing (TA12). 読取処理(T11)を示すフローチャートである。It is a flowchart which shows a reading process (T11). 各原稿カバー状態における主走査位置とデジタルデータとの関係を示す図面である。6 is a diagram illustrating a relationship between a main scanning position and digital data in each document cover state. 各原稿カバー状態における主走査位置と階調値との関係を示す図面である。6 is a diagram illustrating a relationship between a main scanning position and a gradation value in each document cover state.

(画像読取装置SMの構成)
図1(A)は、画像読取装置SMの正面図を示す。画像読取装置SMは、原稿載置台DTと、カバーCVと、を備える。原稿載置台DTは、本体MBと、透明板TPと、を備える。本体MBは、様々な部材(例えば、透明板TP、読取部RU等)を収容するための筐体である。透明板TPは、本体MBに収容されており、本体MBに固定されている。透明板TPには、読取対象の原稿が載置される。原稿カバーCVは、本体MBの上部に配置されており、本体MBに対して開閉可能である。開閉方向は、本体MBの奥側(図1(A)の紙面に垂直方向の奥側)に回転軸を設け、正面側から開閉する。即ち、カバーCVは、後述する余白領域側に回転軸を設け、原稿非載置領域側から開閉される。原稿カバーCVの裏面、即ち、原稿カバーCVの透明板TP側の面は、白色である。
(Configuration of Image Reading Device SM)
FIG. 1A shows a front view of the image reading device SM. The image reading device SM includes a document placement table DT and a cover CV. The document placing table DT includes a main body MB and a transparent plate TP. The main body MB is a housing for accommodating various members (for example, the transparent plate TP, the reading unit RU, etc.). The transparent plate TP is accommodated in the main body MB and is fixed to the main body MB. A document to be read is placed on the transparent plate TP. The document cover CV is disposed on the upper part of the main body MB and can be opened and closed with respect to the main body MB. As for the opening and closing direction, a rotation shaft is provided on the back side of the main body MB (back side perpendicular to the paper surface of FIG. 1A), and the main body MB is opened and closed from the front side. That is, the cover CV is provided with a rotation shaft on the margin area side, which will be described later, and is opened and closed from the document non-placement area side. The back surface of the document cover CV, that is, the surface on the transparent plate TP side of the document cover CV is white.

画像読取装置SMは、さらに、透明板TPの下方で本体MBに収容されている読取部RUを備える。読取部RUは、本体MBに対して副走査方向(即ち図1(A)の左右方向)に沿って移動可能である。読取部RUは、透明板TPに載置される原稿の読取を実行する。読取部RUは、CIS(Contact Image Sensorの略)で構成され、具体的には光源LSと、ロッドレンズRLと、撮像素子ISと、を備える。光源LSは、透明板TPに向けて、光を照射する。ロッドレンズRLは、光源LSから照射される光の反射光を受光する。撮像素子ISは、ロッドレンズRLを通過した光を受光する。より具体的に言うと、撮像素子ISは、主走査方向(即ち図1(A)の紙面垂直方向)に沿って並ぶ複数個の光学素子によって構成される。即ち、撮像素子ISは、複数個の光学素子が並ぶ主走査方向に沿ったライン単位で読取を実行するラインセンサである。以下では、副走査方向において、撮像素子ISが存在する位置のことを、「読取位置」と呼ぶ。   The image reading device SM further includes a reading unit RU accommodated in the main body MB below the transparent plate TP. The reading unit RU is movable along the sub-scanning direction (that is, the left-right direction in FIG. 1A) with respect to the main body MB. The reading unit RU reads a document placed on the transparent plate TP. The reading unit RU is configured by a CIS (abbreviation of Contact Image Sensor), and specifically includes a light source LS, a rod lens RL, and an image sensor IS. The light source LS emits light toward the transparent plate TP. The rod lens RL receives reflected light of light emitted from the light source LS. The imaging element IS receives light that has passed through the rod lens RL. More specifically, the image sensor IS is composed of a plurality of optical elements arranged along the main scanning direction (that is, the direction perpendicular to the paper surface of FIG. 1A). That is, the image sensor IS is a line sensor that performs reading in units of lines along the main scanning direction in which a plurality of optical elements are arranged. Hereinafter, a position where the image sensor IS is present in the sub-scanning direction is referred to as a “reading position”.

図1(B)は、透明板TPの平面図を示す。透明板TPは、副走査方向に沿って伸びる長辺と、主走査方向に沿って伸びる短辺と、によって構成される矩形形状を有する。透明板TPの原稿カバーCV側に露出する面のうち主走査方向の一方側(即ち図1(B)の左側)の端部には、読取対象の原稿DCの1個の頂点が配置されるべき基準点OPが設けられている。透明板TPには、原稿DCが載置される。A4サイズの原稿DCを横置状態として載置した状態をA4横の原稿DCと呼び、破線で図示する。「横置状態」は、原稿DCの長辺が透明板TPの露出した面の長辺に沿うと共に、原稿DCの短辺が透明板TPの露出した面の短辺に沿って、原稿DCが透明板TPに載置されている状態である。原稿DCの短辺のうち基準点OPを含む短辺を基準辺とし、基準辺と対向する短辺を対向辺とする。以下では、副走査方向において、基準辺の位置のことを「基準位置BP」と呼び、A4横の原稿DCの対向辺の位置のことを「A4横位置LP」と呼ぶ。副走査方向において、基準点OPを含む透明板TPの露出した面の長辺のことを「基準線」と呼ぶ。なお、透明板TPは、横置状態のA3サイズ(以下、A3横という)の原稿DCを最大の原稿サイズとして載置可能なサイズを有する。A3横の原稿DCについて、一点鎖線で図示する。   FIG. 1B shows a plan view of the transparent plate TP. The transparent plate TP has a rectangular shape constituted by long sides extending along the sub-scanning direction and short sides extending along the main scanning direction. One apex of the document DC to be read is arranged at one end in the main scanning direction (that is, the left side in FIG. 1B) of the surface exposed to the document cover CV side of the transparent plate TP. A power reference point OP is provided. A document DC is placed on the transparent plate TP. A state in which the A4 size original DC is placed in a horizontal state is called an A4 horizontal original DC, and is illustrated by a broken line. In the “horizontal state”, the long side of the original DC is along the long side of the exposed surface of the transparent plate TP, and the short side of the original DC is along the short side of the exposed surface of the transparent plate TP. This is a state of being placed on the transparent plate TP. Of the short sides of the document DC, a short side including the reference point OP is set as a reference side, and a short side facing the reference side is set as an opposing side. Hereinafter, in the sub-scanning direction, the position of the reference side is referred to as “reference position BP”, and the position of the opposite side of the A4 landscape original DC is referred to as “A4 landscape position LP”. In the sub-scanning direction, the long side of the exposed surface of the transparent plate TP including the reference point OP is referred to as a “reference line”. Note that the transparent plate TP has a size that allows the A3 size (hereinafter referred to as A3 landscape) document DC in a horizontally placed state to be placed with the maximum document size. The A3 landscape original DC is illustrated by a one-dot chain line.

主走査方向において、基準線から原稿載置側(即ち図1(B)の下側)の3mm以内を余白領域(図1(B)における右上がり斜線領域)とし、基準点OPを含まない透明板TPの露出した面の長辺(言い換えると、基準線に対向する辺)から載置可能な最大サイズであるA3横サイズの原稿が載置される領域までの間を原稿非載置領域(図1(B)における右下がり斜線領域)とする。   In the main scanning direction, a blank area (upward slanted line area in FIG. 1B) within 3 mm from the reference line to the document placement side (that is, the lower side in FIG. 1B) is transparent without including the reference point OP. A document non-mounting area (from the long side of the exposed surface of the plate TP (in other words, the side facing the reference line) to the area where the A3 horizontal size original, which is the maximum size that can be placed, is placed ( A diagonally downward slanting area in FIG.

画像読取装置SMは、さらに、透明板TPの上面に固定されている基準部材BMを備える。基準部材BMは、透明板TPの主走査方向の一方側(即ち図1(B)の左側)の端部に設けられている。基準部材BMは、主走査方向に沿って伸びる白色の部材であり、後述する白データを取得するために利用される。以下では、副走査方向において、基準部材BMが設けられている位置のことを、「ホーム位置HP」と呼ぶ。   The image reading device SM further includes a reference member BM fixed to the upper surface of the transparent plate TP. The reference member BM is provided at one end of the transparent plate TP in the main scanning direction (that is, the left side in FIG. 1B). The reference member BM is a white member that extends along the main scanning direction, and is used to acquire white data to be described later. Hereinafter, the position where the reference member BM is provided in the sub-scanning direction is referred to as “home position HP”.

(画像読取装置SMの制御構成)
図2は、画像読取装置SMの制御構成を示す。画像読取装置SMは、さらに、操作機構OMと、表示機構DMと、読取機構RMと、制御部CUと、を備える。操作機構OMは、複数のキーによって構成される。ユーザは、操作機構OMを操作することによって、様々な指示を画像読取装置SMに入力することができる。表示機構DMは、様々な情報を表示するためのディスプレイである。制御部CUは、コントローラCRと、メモリMEと、を備える。コントローラCRは、メモリMEに格納されているプログラムPGMに従って、様々な処理(例えば後述の図3〜図6の処理)を実行するプロセッサである。
(Control configuration of image reading device SM)
FIG. 2 shows a control configuration of the image reading device SM. The image reading device SM further includes an operation mechanism OM, a display mechanism DM, a reading mechanism RM, and a control unit CU. The operation mechanism OM is composed of a plurality of keys. The user can input various instructions to the image reading device SM by operating the operation mechanism OM. The display mechanism DM is a display for displaying various information. The control unit CU includes a controller CR and a memory ME. The controller CR is a processor that executes various processes (for example, processes shown in FIGS. 3 to 6 described later) according to the program PGM stored in the memory ME.

読取機構RMは、読取部RUと、移動機構MMと、A/D変換部ADと、補正部SCと、を備える。移動機構MMは、読取部RUを副走査方向に沿って移動させる。A/D変換部ADは、読取部RUから出力されるアナログデータをデジタルデータに変換する。補正部SCは、後述する白データと黒データとを用いて、A/D変換部にて変換されたデジタルデータを階調値にシェーディング補正する。ここで、A/D変換部ADにおいて変換されたデジタルデータは、メモリMEに出力可能に構成され、補正部SCにも出力可能に構成されている。メモリMEに出力されたデジタルデータは、メモリMEに保存される。補正部SCにおいて変換された階調値は、メモリMEに出力され、メモリMEに保存される。   The reading mechanism RM includes a reading unit RU, a moving mechanism MM, an A / D conversion unit AD, and a correction unit SC. The moving mechanism MM moves the reading unit RU along the sub-scanning direction. The A / D conversion unit AD converts analog data output from the reading unit RU into digital data. The correction unit SC performs shading correction of the digital data converted by the A / D conversion unit to a gradation value using white data and black data described later. Here, the digital data converted in the A / D conversion unit AD is configured to be output to the memory ME, and is also configured to be output to the correction unit SC. The digital data output to the memory ME is stored in the memory ME. The gradation value converted in the correction unit SC is output to the memory ME and stored in the memory ME.

(メイン処理M1電源投入時処理)
続いて、図3を参照して、コントローラCRによって実行される電源投入時処理の内容を説明する。コントローラCRは、画像読取装置SMの電源がONされる場合に、図3の電源投入時処理(M1)を開始する。
(Main process M1 power-on process)
Next, the contents of the power-on process executed by the controller CR will be described with reference to FIG. The controller CR starts the power-on process (M1) in FIG. 3 when the image reading device SM is powered on.

電源投入時処理(M1)が開始されると、コントローラCRは、移動機構MMを制御して読取部RUを移動させて、読取位置を画像読取装置SMの電源OFF時の位置からホーム位置HPに変更する(T1)。これにより、副走査方向において、読取部RUの読取位置、即ち、撮像素子ISの位置が、基準部材BMの位置に一致する。   When the power-on process (M1) is started, the controller CR controls the moving mechanism MM to move the reading unit RU so that the reading position is changed from the position when the image reading device SM is turned off to the home position HP. Change (T1). Thereby, in the sub-scanning direction, the reading position of the reading unit RU, that is, the position of the imaging element IS coincides with the position of the reference member BM.

コントローラCRは、読取時の光量LEを調整する(T2)。具体的には、コントローラCRは、基準部材BMに向けて、光源LSから光を照射させ、その反射光を読み取った時のアナログデータがA/D変換部ADの最大値となる様に、光源LSの光量LEを調整する。ここで、光量LEは、光源LSの1ラインにおける点灯時間および電流値にて決定される。   The controller CR adjusts the light amount LE during reading (T2). Specifically, the controller CR emits light from the light source LS toward the reference member BM, and the analog data when the reflected light is read reaches the maximum value of the A / D conversion unit AD. The light quantity LE of LS is adjusted. Here, the light amount LE is determined by the lighting time and current value in one line of the light source LS.

コントローラCRは、黒データBKを取得する(T3)。具体的には、コントローラCRは、光源LSを消灯させ、1ライン分の読取を読取部RUに実行させ、読み取った1ライン分のデジタルデータを黒データBKとしてメモリMEに記憶する。このときのデジタルデータは暗出力である。   The controller CR acquires the black data BK (T3). Specifically, the controller CR turns off the light source LS, causes the reading unit RU to read one line, and stores the read digital data for one line in the memory ME as black data BK. The digital data at this time is a dark output.

コントローラCRは、白データWTを取得する(T4)。具体的には、コントローラCRは、光源LSを光量LEで点灯させ、1ライン分の読取を読取部RUに実行させ、読み取った1ライン分のデジタルデータを白データWTとしてメモリMEに記憶する。   The controller CR acquires white data WT (T4). Specifically, the controller CR turns on the light source LS with the light amount LE, causes the reading unit RU to read one line, and stores the read digital data for one line in the memory ME as white data WT.

コントローラCRは、カバー判定値THcoを算出する(T5)。具体的には、コントローラCRは、メモリMEから黒データBKを取得し、黒データBKのうち原稿非載置領域におけるデータの最大値を抽出することにより黒データ最大値BKmaxを算出する。さらに、黒データ最大値BKmaxを1.1倍して算出された値をカバー判定値THcoとする。   The controller CR calculates a cover determination value THco (T5). Specifically, the controller CR obtains the black data BK from the memory ME, and calculates the black data maximum value BKmax by extracting the maximum value of the data in the document non-placement area from the black data BK. Further, a value calculated by multiplying the black data maximum value BKmax by 1.1 is set as a cover determination value THco.

コントローラCRは、移動機構MMを制御して読取部RUを移動させて、読取位置をホーム位置HPからA4横位置LPに変更する(T6)。これにより、副走査方向において、読取部RUの読取位置が、A4横の原稿の対向辺に相当する位置となる。ここで、「対向辺に相当する位置」は、対向辺よりも原稿の内側に若干ずれた位置を意味する(例えば、対向辺よりも3mm内側である)。   The controller CR controls the moving mechanism MM to move the reading unit RU and changes the reading position from the home position HP to the A4 lateral position LP (T6). Thereby, in the sub-scanning direction, the reading position of the reading unit RU becomes a position corresponding to the opposite side of the A4 side original. Here, the “position corresponding to the opposite side” means a position slightly shifted to the inside of the document from the opposite side (for example, 3 mm inside the opposite side).

コントローラCRは、メモリMEから設定値を取得する(T7)。ここで、設定値は、読取範囲、読取解像度等である。主走査方向の読取範囲として、原稿非載置領域を読み取ることが可能な最大読取範囲に設定し、読取解像度として、300dpiを設定する。   The controller CR acquires the set value from the memory ME (T7). Here, the set values are a reading range, a reading resolution, and the like. The reading range in the main scanning direction is set to the maximum reading range in which the document non-placement area can be read, and the reading resolution is set to 300 dpi.

コントローラCRは、外乱光を検知したか否かを判断する(T8)。具体的には、コントローラCRは、原稿非載置領域の特定画素の全てのデジタルデータがカバー判定値THco以上であるか否かを判断する。カバー判定値THco以上である場合に、外乱光を検知したと判断し(T8でYes)、原稿サイズ確定処理(T9)へ移行する。カバー判定値THcoより小さい場合に、外乱光を検知していないと判断し(T8でNo)、読取開始ボタンが押下されたか否かを判断する処理(T10)に移行する。本処理(T9)は、読取ボタンが押下されない間(T10でNo)繰り返し実行され、常時外乱光の入射を検知する。ここで、原稿非載置領域の特定画素は、原稿非載置領域に存在する全ての画素でも良いし、主走査方向の基準点OPから遠ざかる透明板TPの端部に近い複数画素でも良い。   The controller CR determines whether or not ambient light has been detected (T8). Specifically, the controller CR determines whether or not all digital data of specific pixels in the document non-placement area is equal to or greater than the cover determination value THco. If it is equal to or greater than the cover determination value THco, it is determined that ambient light has been detected (Yes in T8), and the process proceeds to document size determination processing (T9). If it is smaller than the cover determination value THco, it is determined that ambient light has not been detected (No in T8), and the process proceeds to processing (T10) for determining whether or not the reading start button has been pressed. This process (T9) is repeatedly executed while the reading button is not pressed (No in T10), and always detects the incidence of disturbance light. Here, the specific pixels in the document non-placement area may be all the pixels existing in the document non-placement area, or may be a plurality of pixels close to the end of the transparent plate TP away from the reference point OP in the main scanning direction.

コントローラCRは、原稿サイズを確定する(T9)。詳細は後述するが、コントローラCRは、余白領域のデジタルデータを用いて、原稿の有無を判断する。その後、コントローラCRは、原稿非載置領域のデジタルデータを用いて、原稿サイズを確定するための階調値SZAを取得する取得タイミングを生成し、生成した取得タイミングにて取得した階調値SZAを用いて原稿サイズを確定する。   The controller CR determines the document size (T9). Although details will be described later, the controller CR determines the presence or absence of a document using the digital data of the margin area. Thereafter, the controller CR generates an acquisition timing for acquiring a gradation value SZA for determining the document size using the digital data of the document non-loading area, and the gradation value SZA acquired at the generated acquisition timing. Use to confirm the document size.

コントローラCRは、読取開始ボタンが押下されたか否かを判断する(T10)。読取開始ボタンが押下された場合(T10でYes)は、読取処理(T11)に移行する。読取開始ボタンが押下されていない場合(T10でNo)は、外乱光を検知したか否かの判断処理(T8)へ移行する。   The controller CR determines whether or not the reading start button has been pressed (T10). When the reading start button is pressed (Yes in T10), the process proceeds to the reading process (T11). If the reading start button has not been pressed (No in T10), the process proceeds to a determination process (T8) as to whether ambient light has been detected.

コントローラCRは、読取部RUに読取を実行させる(T11)。詳細は後述するが、コントローラCRは、原稿サイズ確定処理(T9)において確定した原稿サイズに対応した読取範囲を設定し、移動機構MMを制御して、読取部RUに読取を実行させる。   The controller CR causes the reading unit RU to perform reading (T11). Although details will be described later, the controller CR sets a reading range corresponding to the document size determined in the document size determination process (T9), controls the moving mechanism MM, and causes the reading unit RU to perform reading.

(原稿サイズ確定処理T9)
図4を用いて、原稿サイズ確定処理(T9)を説明する。原稿サイズ確定処理(T9)は、T8において、外乱光を検知したことにより実行される。即ち、原稿サイズ確定処理(T9)は、原稿カバーCVが開放され、A4横位置LPにある読取部RUに外乱光が入射することにより開始される。
(Original Size Determination Process T9)
The document size determination process (T9) will be described with reference to FIG. The document size determination process (T9) is executed by detecting disturbance light at T8. In other words, the document size determination process (T9) is started when the document cover CV is opened and disturbance light is incident on the reading unit RU at the A4 lateral position LP.

コントローラCRは、原稿サイズ確定処理時における光源LSの点灯制御を行う(TA1)。具体的には、コントローラCRは、光源LSを光量LEで照射するライン(以下、点灯ライン)と光源LSを消灯するライン(以下、消灯ライン)との合計2ラインを読取における主走査方向の1読取ラインとして点灯制御を行う。ここでは、点灯ラインとして1ラインの場合を説明しているが、光源LSの色を順次点灯し、赤,緑,および青の3ラインを点灯ラインとしてもよい。   The controller CR performs lighting control of the light source LS during the document size determination process (TA1). Specifically, the controller CR reads a total of two lines, ie, a line that irradiates the light source LS with the light amount LE (hereinafter referred to as a lighted line) and a line that turns off the light source LS (hereinafter referred to as a lighted line). Lighting control is performed as a reading line. Here, although the case where one line is used as the lighting line is described, the color of the light source LS may be sequentially turned on, and three lines of red, green, and blue may be used as the lighting lines.

コントローラCRは、余白領域にて原稿を検知したか否かを判断する(TA2)。即ち、コントローラCRは、余白領域における特定画素に対して、点灯ラインのデジタルデータと消灯ラインのデジタルデータとの差分が原稿判別値以内か否かを判断する。原稿判別値以内であれば原稿なし(TA2でNo)と判断し、所定時間経過したか否かを判断する処理(TA3)に移行する。原稿判別値よりも大きければ原稿有(TA2でYes)と判断し、原稿非載置領域にて原稿を検知したか否かを判断する処理(TA4)に移行する。本処理(TA2)は、所定時間経過する間(TA3でNo)繰り返し実行され、常時原稿を検知する。ここで、原稿判別値は原稿の有無の判断に用いるため、アナログデータに重畳されるランダムノイズによる変動量よりも大きく設定しておく必要がある。また、余白領域の特定画素は、余白領域に存在する全ての画素でも良いし、主走査方向の基準点OPに近い透明板TPの端部の複数画素でも良い。   The controller CR determines whether or not a document is detected in the blank area (TA2). That is, the controller CR determines whether or not the difference between the digital data of the lighting line and the digital data of the extinguishing line is within the document determination value for the specific pixel in the blank area. If it is within the document discrimination value, it is determined that there is no document (No in TA2), and the process proceeds to processing (TA3) for determining whether or not a predetermined time has passed. If it is larger than the document discrimination value, it is determined that there is a document (Yes in TA2), and the process proceeds to processing (TA4) for determining whether or not a document is detected in the document non-loading area. This process (TA2) is repeatedly executed while a predetermined time elapses (No in TA3), and always detects a document. Here, since the document discrimination value is used to determine whether or not there is a document, it is necessary to set the document discrimination value larger than the fluctuation amount due to random noise superimposed on the analog data. The specific pixels in the margin area may be all the pixels existing in the margin area, or may be a plurality of pixels at the end of the transparent plate TP close to the reference point OP in the main scanning direction.

コントローラCRは、所定時間経過したか否かを判断する(TA3)。コントローラCRは、所定時間経過した場合(TA3でYes)は、原稿カバーCVが閉状態か否かを判断する処理(TA11)に移行し、所定時間経過していない場合(TA3でNo)は、余白領域にて原稿を検知したか否かを判断する処理(TA2)に移行する。   The controller CR determines whether or not a predetermined time has elapsed (TA3). If the predetermined time has elapsed (Yes in TA3), the controller CR proceeds to processing (TA11) for determining whether or not the document cover CV is closed. If the predetermined time has not elapsed (No in TA3), The process proceeds to a process (TA2) for determining whether or not a document is detected in the margin area.

コントローラCRは、原稿非載置領域にて原稿を検知したか否かを判断する(TA4)。即ち、コントローラCRは、原稿非載置領域における特定画素に対して、点灯ラインのデジタルデータと消灯ラインのデジタルデータとの差分が原稿判別値以内か否かを判断する。原稿判別値以内であれば原稿なし(TA4でNo)と判断し、原稿非載置領域にてカバー判定値以下か否かを判断する処理(TA5)に移行する。原稿判別値よりも大きければ原稿有(TA4でYes)と判断し、原稿サイズをA3横に確定する処理(TA7)に移行する。原稿非載置領域にて原稿を検知した場合は、原稿サイズを最大読取サイズであるA3横に確定する。   The controller CR determines whether or not a document is detected in the document non-loading area (TA4). That is, the controller CR determines whether or not the difference between the digital data of the lighting line and the digital data of the extinguishing line is within the document discrimination value for a specific pixel in the document non-loading area. If it is within the document determination value, it is determined that there is no document (No in TA4), and the process proceeds to processing (TA5) for determining whether the document non-placement area is equal to or less than the cover determination value. If it is larger than the document discrimination value, it is determined that there is a document (Yes in TA4), and the process proceeds to processing (TA7) for determining the document size on the side of A3. When a document is detected in the document non-loading area, the document size is fixed beside A3 which is the maximum reading size.

コントローラCRは、原稿非載置領域にてカバー判定値以下か否かを判断する(TA5)。即ち、コントローラCRは、消灯ラインの原稿非載置領域における特定画素の全てのデジタルデータがカバー判定値THco以下であるか否かを判断する。カバー判定値THco以下である場合に、原稿カバーCVが閉状態となる直前と判断し(TA5でYes)、ラインデータ取得処理(TA8)へ移行する。カバー判定値THcoより大きい場合に、原稿カバーCVが開状態と判断し(TA5でNo)、所定時間経過したか否かを判断する処理(TA6)へ移行する。本処理(TA5)は、所定時間経過する間(TA6でNo)繰り返し実行され、常時原稿カバーCVの状態を判断する。ここで、「原稿カバーCVが閉状態となる直前」が原稿サイズを確定するための階調値SZAを取得する取得タイミングである。   The controller CR determines whether or not the document determination area is equal to or less than the cover determination value (TA5). That is, the controller CR determines whether or not all the digital data of the specific pixel in the document non-placement area of the light-off line is equal to or less than the cover determination value THco. When it is equal to or less than the cover determination value THco, it is determined that the document cover CV is immediately before being closed (Yes in TA5), and the process proceeds to a line data acquisition process (TA8). If it is greater than the cover determination value THco, it is determined that the document cover CV is in an open state (No in TA5), and the process proceeds to a process (TA6) for determining whether or not a predetermined time has elapsed. This process (TA5) is repeatedly executed while the predetermined time has elapsed (No in TA6), and the state of the document cover CV is always determined. Here, “immediately before the document cover CV is closed” is the acquisition timing for acquiring the gradation value SZA for determining the document size.

コントローラCRは、所定時間経過したか否かを判断する(TA6)。即ち、コントローラCRは、所定時間経過した場合(TA6でYes)は、原稿サイズをA3横に確定する処理(TA7)に移行し、所定時間経過していない場合(TA6でNo)は、原稿非載置領域にてカバー判定値以下か否かを判断する処理(TA5)に移行する。所定時間が経過しても原稿非載置領域にてカバー判定値以下とならない場合は、カバーが開状態のため、原稿サイズをA3横に確定する。   The controller CR determines whether or not a predetermined time has elapsed (TA6). That is, if the predetermined time has elapsed (Yes in TA6), the controller CR proceeds to a process of determining the document size on the side of A3 (TA7). If the predetermined time has not elapsed (No in TA6), the controller CR The process proceeds to the process (TA5) for determining whether or not the placement area is equal to or less than the cover determination value. If the document non-loading area does not fall below the cover determination value even after the predetermined time has elapsed, the cover is open and the document size is fixed to A3 side.

コントローラCRは、原稿サイズをA3横に確定する(TA7)。   The controller CR determines the document size on the side of A3 (TA7).

コントローラCRは、点灯ラインの1ライン分の階調値SZAを取得する(TA8)。即ち、コントローラCRは、原稿カバーCVが閉状態となる直前における点灯ラインの1ライン分の階調値SZAを取得する。   The controller CR acquires the gradation value SZA for one line of the lighting line (TA8). That is, the controller CR acquires the gradation value SZA for one lighting line immediately before the document cover CV is closed.

コントローラCRは、閾値SZ1を算出する(TA9)。即ち、コントローラCRは、TA8で取得した階調値SZAのうち余白領域における中間値を示す階調値BL1と原稿非載置領域における中間値を示す階調値NO1との平均値を算出し、閾値SZ1とする。「中間値」は、余白領域の全ての画素を階調値が大きくなる様に順番に並べた時に、ちょうど真ん中の順番となる画素が示す階調値を指す。ここで、階調値BL1は、階調値SZAのうち余白領域の中間値としたが、余白領域の全ての画素の平均値でも良い。階調値NO1も、同様に原稿非載置領域の全ての画素の平均値でも良い。   The controller CR calculates a threshold value SZ1 (TA9). That is, the controller CR calculates an average value of the gradation value BL1 indicating the intermediate value in the blank area and the gradation value NO1 indicating the intermediate value in the document non-loading area among the gradation values SZA acquired at TA8. The threshold value is SZ1. The “intermediate value” refers to the gradation value indicated by the pixel in the middle order when all the pixels in the blank area are arranged in order so that the gradation value increases. Here, the gradation value BL1 is an intermediate value of the blank area in the gradation value SZA, but may be an average value of all the pixels in the blank area. Similarly, the gradation value NO1 may be an average value of all pixels in the document non-placement area.

コントローラCRは、原稿サイズを確定する(TA10)。具体的には、コントローラCRは、1ライン分の階調値SZAに対し、閾値SZ1よりも小さい階調値を示す画素のうち、最も原稿非載置領域に近い画素の位置を原稿端部と判断する。基準点OPを通る副走査方向の基準線と原稿端部との距離を主走査方向の原稿のサイズとして確定する。確定した主走査方向の原稿のサイズと副走査方向の原稿のサイズがA4横以上であることとから原稿のサイズを確定する。ただし、確定した主走査方向の原稿のサイズが規格されている用紙サイズと異なる場合は、副走査方向の原稿のサイズをA3横として確定する。A4横位置LPにおける階調値SZAを用いて原稿のサイズを確定しているため、A3横位置で検知する場合に比べて、多くの原稿のサイズを確定することが可能である。   The controller CR determines the document size (TA10). Specifically, the controller CR sets the position of the pixel closest to the document non-placement area as the document end portion among the pixels indicating the gradation value smaller than the threshold value SZ1 with respect to the gradation value SZA for one line. to decide. The distance between the reference line in the sub-scanning direction passing through the reference point OP and the document edge is determined as the document size in the main scanning direction. The document size is determined from the determined size of the document in the main scanning direction and the size of the document in the sub-scanning direction being A4 or more. However, if the determined document size in the main scanning direction is different from the standard paper size, the document size in the sub-scanning direction is determined as A3 horizontal. Since the document size is determined using the gradation value SZA at the A4 horizontal position LP, it is possible to determine a larger number of document sizes than when the detection is performed at the A3 horizontal position.

コントローラCRは、原稿カバーCVが閉状態か否かを判断する(TA11)。即ち、コントローラCRは、消灯ラインの原稿非載置領域における特定画素の全てのデジタルデータがカバー判定値THco以下であるか否かを判断する。カバー判定値THco以下である場合に、原稿カバーCVが閉状態と判断し(TA11でYes)、再原稿サイズ確定処理(TA12)へ移行する。カバー判定値THcoより大きい場合に、原稿カバーCVが開状態と判断し(TA11でNo)、カバー閉フラグOFF処理(TA7)へ移行する。   The controller CR determines whether or not the document cover CV is closed (TA11). That is, the controller CR determines whether or not all the digital data of the specific pixel in the document non-placement area of the light-off line is equal to or less than the cover determination value THco. If it is equal to or less than the cover determination value THco, it is determined that the document cover CV is in a closed state (Yes in TA11), and the process proceeds to a re-document size determination process (TA12). If it is larger than the cover determination value THco, it is determined that the document cover CV is in an open state (No in TA11), and the process proceeds to a cover close flag OFF process (TA7).

コントローラCRは、読取位置をA4横位置LPから基準位置BPへ変更し、原稿サイズを確定する(TA12)。詳細は後述するが、コントローラCRは、原稿カバーCVを開放せずに原稿サイズ確定に用いる閾値が算出可能か否かを判断し、原稿カバーCVを開放しなければ原稿サイズを確定できない場合は、原稿カバーCVの開閉動作を指示する表示を行い、ユーザが原稿カバーCVの開閉動作を行うことにより、原稿サイズを確定する。   The controller CR changes the reading position from the A4 horizontal position LP to the reference position BP, and determines the document size (TA12). As will be described in detail later, the controller CR determines whether or not the threshold used for document size determination can be calculated without opening the document cover CV. If the document size cannot be determined without opening the document cover CV, A display for instructing the opening / closing operation of the document cover CV is performed, and the user opens / closes the document cover CV to determine the document size.

コントローラCRは、カバー閉フラグをONにする(TA13)。即ち、コントローラCRは、メモリMEに記憶されているカバー開フラグをONに設定する。   The controller CR turns on the cover close flag (TA13). That is, the controller CR sets the cover open flag stored in the memory ME to ON.

コントローラCRは、カバー閉フラグをOFFにする(TA14)。即ち、コントローラCRは、メモリMEに記憶されているカバー閉フラグをOFFに設定する。   The controller CR turns off the cover close flag (TA14). That is, the controller CR sets the cover close flag stored in the memory ME to OFF.

(再原稿サイズ確定処理TA12)
図5を用いて、再原稿サイズ確定処理(TA12)を説明する。再原稿サイズ確定処理(TA12)は、読取位置がA4横位置LPにおける余白領域にて原稿を検知できなかった(TA2にてNo)が、原稿カバーCVが閉状態となっている(TA11でYes)ときに、開始される。よって、副走査方向の原稿サイズがA4横よりも小さい原稿の場合に開始される。
(Re-document size determination process TA12)
The re-original size determination process (TA12) will be described with reference to FIG. In the re-original size determination process (TA12), the original cannot be detected in the blank area when the reading position is the A4 horizontal position LP (No in TA2), but the original cover CV is closed (Yes in TA11). ) When will be started. Therefore, it is started when the document size in the sub-scanning direction is smaller than the A4 landscape.

コントローラCRは、移動機構MMを制御して読取部RUを移動させて、読取位置をA4横位置LPから基準位置BPに変更する(TB1)。これにより、副走査方向において、読取部RUの読取位置が、原稿の基準辺に相当する位置となる。ここで、「基準辺に相当する位置」は、基準辺よりも原稿の内側に若干ずれた位置を意味する(例えば、基準辺よりも3mm内側である)。   The controller CR controls the moving mechanism MM to move the reading unit RU and changes the reading position from the A4 lateral position LP to the reference position BP (TB1). Thereby, in the sub-scanning direction, the reading position of the reading unit RU becomes a position corresponding to the reference side of the document. Here, the “position corresponding to the reference side” means a position slightly shifted to the inside of the document from the reference side (for example, 3 mm inside the reference side).

コントローラCRは、点灯ラインの1ライン分の階調値SZBを取得する(TB2)。即ち、コントローラCRは、原稿カバーCVが閉状態における点灯ラインの1ライン分の階調値SZBを取得する。   The controller CR acquires the gradation value SZB for one line of the lighting line (TB2). That is, the controller CR acquires the gradation value SZB for one line of the lighting line when the document cover CV is closed.

コントローラCRは、原稿サイズを確定させる閾値SZ2が算出可能か否かを判断する(TB3)。即ち、コントローラCRは、階調値SZBのうち余白領域における中間値を示す階調値BL2と原稿非載置領域における中間値を示す階調値NO2との差分を算出し、差分が所定値以上であれば、閾値算出可能と判断し(TB3でYes)、閾値算出処理(TB4)に移行する。差分が所定値より小さければ、閾値算出不可能と判断し(TB3でNo)、カバー開表示処理(TB6)へ移行する。例えば、所定値は白レベルと黒レベルとの差分の5%とする。ここで、「中間値」は、余白領域の全ての画素を階調値が大きくなる様に順番に並べた時に、ちょうど真ん中の順番となる画素が示す階調値を指す。 The controller CR determines whether or not the threshold value SZ2 for determining the document size can be calculated (TB3). That is, the controller CR calculates the difference between the gradation value BL2 indicating the intermediate value in the blank area of the gradation value SZB and the gradation value NO2 indicating the intermediate value in the document non-loading area, and the difference is equal to or greater than a predetermined value. If so, it is determined that the threshold value can be calculated (Yes in TB3), and the process proceeds to the threshold value calculation process (TB4). If the difference is smaller than the predetermined value, it is determined that the threshold cannot be calculated (No in TB3), and the process proceeds to the cover open display process (TB6). For example, the predetermined value is 5% of the difference between the white level and the black level. Here, the “intermediate value” refers to the gradation value indicated by the pixel in the middle order when all the pixels in the blank area are arranged in order so that the gradation value becomes large.

コントローラCRは、閾値SZ2を算出する(TB4)。コントローラCRは、TA9と同様に、階調値BL2と階調値NO2との平均値を算出し、閾値SZ2とする。ここで、階調値BL2は、階調値SZ2のうち余白領域の中間値としたが、余白領域の全ての画素の平均値でも良い。階調値NO2も、同様に原稿非載置領域の全ての画素の平均値でも良い。   The controller CR calculates a threshold value SZ2 (TB4). Similarly to TA9, the controller CR calculates the average value of the gradation value BL2 and the gradation value NO2, and sets it as the threshold value SZ2. Here, the gradation value BL2 is an intermediate value of the blank area in the gradation value SZ2, but may be an average value of all the pixels in the blank area. Similarly, the gradation value NO2 may be an average value of all the pixels in the document non-placement area.

コントローラCRは、原稿サイズを確定する(TB5)。具体的には、コントローラCRは、1ライン分の階調値SZBに対し、閾値SZ2よりも小さい階調値を示す画素のうち、最も原稿非載置領域に近い画素の位置を原稿端部と判断する。基準線と原稿端部との距離を主走査方向の原稿のサイズとして確定する。確定した主走査方向の原稿のサイズと副走査方向の原稿のサイズがA4横よりも小さいこととから原稿のサイズを確定する。ただし、確定した主走査方向の原稿のサイズが規格されている用紙サイズと異なる場合は、副走査方向の原稿のサイズをA3横として確定する。   The controller CR determines the document size (TB5). Specifically, the controller CR sets the position of the pixel closest to the document non-loading area as the document end portion among the pixels indicating the gradation value smaller than the threshold value SZ2 with respect to the gradation value SZB for one line. to decide. The distance between the reference line and the document edge is determined as the document size in the main scanning direction. The document size is determined from the determined size of the document in the main scanning direction and the size of the document in the sub-scanning direction being smaller than the A4 horizontal. However, if the determined document size in the main scanning direction is different from the standard paper size, the document size in the sub-scanning direction is determined as A3 horizontal.

コントローラCRは、表示部DMに原稿カバーCVを開放させる指示を表示させる(TB6)。即ち、コントローラCRは、ユーザに対して原稿カバーCVを開放させる開放動作の指示を表示させる。   The controller CR causes the display unit DM to display an instruction to open the document cover CV (TB6). That is, the controller CR displays to the user an instruction to open the document cover CV.

コントローラCRは、外乱光を検知したか否かを判断する(TB7)。具体的には、コントローラCRは、原稿非載置領域の特定画素の全てのデジタルデータがカバー判定値THco以上であるか否かを判断する。カバー判定値THco以上である場合に、外乱光を検知したと判断し(TB7でYes)、表示部DMに原稿カバーCVを閉じる指示を表示させる処理(TB10)に移行する。カバー判定値THcoより小さい場合に、外乱光を検知していないと判断し(TB7でNo)、所定時間経過したか否かを判断する処理(TB8)に移行する。   The controller CR determines whether ambient light has been detected (TB7). Specifically, the controller CR determines whether or not all digital data of specific pixels in the document non-placement area is equal to or greater than the cover determination value THco. If it is equal to or greater than the cover determination value THco, it is determined that ambient light has been detected (Yes in TB7), and the process proceeds to processing for displaying an instruction to close the document cover CV on the display unit DM (TB10). When it is smaller than the cover determination value THco, it is determined that ambient light is not detected (No in TB7), and the process proceeds to a process (TB8) for determining whether or not a predetermined time has elapsed.

コントローラCRは、所定時間経過したか否かを判断する(TB8)。即ち、コントローラCRは、所定時間経過した場合(TB8でYes)は、原稿サイズをA3横に確定する処理(TB9)に移行し、所定時間経過していない場合(TB8でNo)は、外乱光を検知したか否かを判断する処理(TB7)に移行する。TB7において、外乱光が検知されなかった場合は、原稿カバーCVが開放されていないので、コントローラCRは、原稿サイズをA3横に確定する。   The controller CR determines whether or not a predetermined time has elapsed (TB8). That is, when the predetermined time has elapsed (Yes in TB8), the controller CR proceeds to a process (TB9) for determining the document size on the side of A3 (TB9), and when the predetermined time has not elapsed (No in TB8), the ambient light The process shifts to a process (TB7) for determining whether or not it is detected. If the ambient light is not detected in TB7, the document cover CV is not opened, so the controller CR determines the document size as A3.

コントローラCRは、原稿サイズをA3横に確定する(TB9)。   The controller CR determines the document size on the side of A3 (TB9).

コントローラCRは、表示部DMに原稿カバーCVを閉じる指示を表示させる(TB10)。即ち、コントローラCRは、ユーザに対して原稿カバーCVを閉じさせる閉動作の指示を表示させる。   The controller CR displays an instruction to close the document cover CV on the display unit DM (TB10). That is, the controller CR displays a closing operation instruction for closing the document cover CV to the user.

コントローラCRは、原稿非載置領域にてカバー判定値以下か否かを判断する(TB11)。即ち、コントローラCRは、消灯ラインの原稿非載置領域における特定画素の全てのデジタルデータがカバー判定値THco以下であるか否かを判断する。カバー判定値THco以下である場合に、原稿カバーCVが閉状態となる直前と判断し(TB11でYes)、ラインデータ取得処理(TB13)へ移行する。カバー判定値THcoより大きい場合に、原稿カバーCVが開状態と判断し(TB11でNo)、所定時間経過したか否かを判断する処理(TB12)へ移行する。ここで、「原稿カバーCVが閉状態となる直前」が原稿サイズを確定するための階調値を取得する取得タイミングである。TB12にてYesとなった場合は、原稿カバーが開状態のままと判断し、コントローラCRは、原稿サイズをA3横に確定する。   The controller CR determines whether or not the document non-loading area is equal to or less than the cover determination value (TB11). That is, the controller CR determines whether or not all the digital data of the specific pixel in the document non-placement area of the light-off line is equal to or less than the cover determination value THco. If it is equal to or less than the cover determination value THco, it is determined that the document cover CV is immediately before being closed (Yes in TB11), and the process proceeds to the line data acquisition process (TB13). If it is larger than the cover determination value THco, it is determined that the document cover CV is open (No in TB11), and the process proceeds to a process (TB12) for determining whether or not a predetermined time has elapsed. Here, “immediately before the document cover CV is closed” is an acquisition timing for acquiring a gradation value for determining the document size. If the result is Yes at TB12, it is determined that the document cover remains open, and the controller CR determines the document size on the side of A3.

ラインデータ取得処理(TB13)、閾値算出処理(TB14)、および原稿サイズ確定処理(TB15)は、TA8、TA9、およびTA10の処理と同様であるので、その説明を省略する。TB13、TB14、およびTB15の処理により、原稿サイズが確定する。   The line data acquisition process (TB13), the threshold value calculation process (TB14), and the document size determination process (TB15) are the same as the processes of TA8, TA9, and TA10, and thus description thereof is omitted. The document size is determined by the processes of TB13, TB14, and TB15.

(読取処理T11)
図6を用いて、読取処理(T11)を説明する。読取処理(T11)は、読取開始ボタンが押下されたか否かを判断する処理(T10)において、読取開始ボタンが押下されたと判断された(T10でYes)ときに、開始される。
(Reading process T11)
The reading process (T11) will be described with reference to FIG. The reading process (T11) is started when it is determined that the reading start button is pressed in the process (T10) for determining whether the reading start button is pressed (Yes in T10).

コントローラCRは、読取範囲を設定する(TC1)。具体的には、原稿サイズ確定処理(T9)により原稿サイズが確定している場合は、コントローラCRは確定した原稿サイズを読取範囲として設定する。原稿サイズ確定処理(T9)が実行されず、原稿サイズが確定していない場合は、コントローラCRはA3横サイズを読取範囲として設定する。   The controller CR sets a reading range (TC1). Specifically, when the document size is determined by the document size determination process (T9), the controller CR sets the determined document size as the reading range. When the document size confirmation process (T9) is not executed and the document size is not confirmed, the controller CR sets the A3 horizontal size as the reading range.

コントローラCRは、メモリMEから読取時の設定値を取得する(TC2)。設定値は、読取解像度等である。コントローラCRは、読取解像度として、300dpiを設定する。   The controller CR acquires a setting value at the time of reading from the memory ME (TC2). The set value is a reading resolution or the like. The controller CR sets 300 dpi as the reading resolution.

コントローラCRは、カバー閉フラグがONか否かを判断する(TC3)。即ち、コントローラCRは、カバー閉フラグがONと判断した場合(TC3でYes)は、副走査方向の読取範囲はA4以上か否かを判断する処理(TC8)に移行し、カバー閉フラグがOFFと判断した場合(TC3でNo)は、ホーム位置HPへ移動する処理(TC4)へ移行する。   The controller CR determines whether or not the cover close flag is ON (TC3). That is, when the controller CR determines that the cover close flag is ON (Yes in TC3), the controller CR proceeds to a process (TC8) for determining whether the reading range in the sub-scanning direction is A4 or more, and the cover close flag is OFF. (No in TC3), the process moves to the home position HP (TC4).

コントローラCRは、移動機構MMを制御して読取部RUを移動させて、読取位置をホーム位置HPに変更する(TC4)。これにより、副走査方向において、読取部RUの読取位置が、基準部材BMと対向する位置であるホーム位置HPとなる。   The controller CR controls the moving mechanism MM to move the reading unit RU and changes the reading position to the home position HP (TC4). Thereby, in the sub-scanning direction, the reading position of the reading unit RU becomes a home position HP that is a position facing the reference member BM.

コントローラCRは、白データおよび黒データを取得する(TC5)。具体的には、コントローラCRは、光源LSを消灯させ、1ライン分の読取を読取部RUに実行させ、読み取った1ライン分のデジタルデータを黒データBKとしてメモリMEに記憶する。さらに、コントローラCRは、光源LSを光量LEで点灯させ、1ライン分の読取を読取部RUに実行させ、読み取った1ライン分のデジタルデータを白データWTとしてメモリMEに記憶する。   The controller CR acquires white data and black data (TC5). Specifically, the controller CR turns off the light source LS, causes the reading unit RU to read one line, and stores the read digital data for one line in the memory ME as black data BK. Further, the controller CR turns on the light source LS with the light amount LE, causes the reading unit RU to read one line, and stores the read digital data for one line in the memory ME as white data WT.

コントローラCRは、移動機構MMを制御して読取部RUを移動させて、読取位置をホーム位置HPから基準位置BPに変更する(TC6)。これにより、副走査方向において、読取部RUの読取位置が、原稿の基準辺に相当する位置となる。ここで、「基準辺に相当する位置」は、基準辺よりも原稿の内側に若干ずれた位置を意味する(例えば、基準辺よりも3mm内側である)。   The controller CR controls the moving mechanism MM to move the reading unit RU and changes the reading position from the home position HP to the reference position BP (TC6). Thereby, in the sub-scanning direction, the reading position of the reading unit RU becomes a position corresponding to the reference side of the document. Here, the “position corresponding to the reference side” means a position slightly shifted to the inside of the document from the reference side (for example, 3 mm inside the reference side).

コントローラCRは、読取部RUに順方向に移動し、読取を実行させる(TC7)。具体的には、コントローラCRは、移動機構MMを制御して読取部RUを基準位置BPからTC1で設定された読取範囲までの領域にわたり移動させ、階調値から構成される画像データを生成させる。「順方向」とは、副走査方向において基準点OPから遠ざかる方向である。   The controller CR moves the reading unit RU in the forward direction to execute reading (TC7). Specifically, the controller CR controls the moving mechanism MM to move the reading unit RU over the region from the reference position BP to the reading range set by TC1, and generates image data composed of gradation values. . The “forward direction” is a direction away from the reference point OP in the sub-scanning direction.

コントローラCRは、副走査方向の読取範囲はA4横以上か否かを判断する(TC8)。即ち、コントローラCRは、副走査方向の読取範囲がA4横以上である場合(TC8でYes)は、読取開始位置へ移動する処理(TC10)へ移行し、副走査方向の読取範囲がA4横よりも小さい場合(TC8でNo)は、黒データ取得処理(TC9)へ移行する。   The controller CR determines whether or not the reading range in the sub-scanning direction is A4 horizontal or more (TC8). That is, when the reading range in the sub-scanning direction is A4 horizontal or more (Yes in TC8), the controller CR proceeds to the process of moving to the reading start position (TC10), and the reading range in the sub-scanning direction is from A4 horizontal. Is smaller (No in TC8), the process proceeds to the black data acquisition process (TC9).

コントローラCRは、黒データを取得する(TC9)。具体的には、コントローラCRは、光源LSを消灯させ、1ライン分の読取を読取部RUに実行させ、読み取った1ライン分のデジタルデータを黒データBKとしてメモリMEに記憶する。黒データ取得処理(TC9)が終了すると、順方向読取処理(TC7)へ移行する。   The controller CR acquires black data (TC9). Specifically, the controller CR turns off the light source LS, causes the reading unit RU to read one line, and stores the read digital data for one line in the memory ME as black data BK. When the black data acquisition process (TC9) ends, the process proceeds to the forward reading process (TC7).

コントローラCRは、移動機構MMを制御して読取部RUを移動させて、読取位置を読取開始位置に変更する(TC10)。即ち、コントローラCRは、TC1にて設定された読取範囲に対応する原稿の対向辺に相当する位置を読取開始位置として、読取位置を読取開始位置に変更する。原稿カバーCVが閉まった状態で、副走査方向の原稿サイズがA4横以上と判定された場合は、読取位置がA4横位置LPにおいて原稿サイズが確定しているため、移動距離が短い原稿の対向辺から読取を開始することで、より短時間に読取を開始することができる。   The controller CR controls the moving mechanism MM to move the reading unit RU and changes the reading position to the reading start position (TC10). That is, the controller CR changes the reading position to the reading start position with the position corresponding to the opposite side of the document corresponding to the reading range set in TC1 as the reading start position. When the document cover CV is closed and the document size in the sub-scanning direction is determined to be equal to or larger than A4 horizontal, the document size is fixed at the reading position A4 horizontal position LP. By starting reading from the side, reading can be started in a shorter time.

コントローラCRは、黒データを取得する(TC11)。具体的には、コントローラCRは、光源LSを消灯させ、1ライン分の読取を読取部RUに実行させ、読み取った1ライン分のデジタルデータを黒データBKとしてメモリMEに記憶する。   The controller CR acquires black data (TC11). Specifically, the controller CR turns off the light source LS, causes the reading unit RU to read one line, and stores the read digital data for one line in the memory ME as black data BK.

コントローラCRは、読取部RUを逆方向に移動し、読取を実行させる(TC12)。具体的には、コントローラCRは、移動機構MMを制御して読取部RUを原稿の対向辺である読取開始位置から基準位置BPまでの領域にわたり移動させ、階調値から構成される画像データを生成させる。「逆方向」とは、副走査方向において基準点OPへ近づく方向である。   The controller CR moves the reading unit RU in the reverse direction to execute reading (TC12). Specifically, the controller CR controls the moving mechanism MM to move the reading unit RU over a region from the reading start position, which is the opposite side of the document, to the reference position BP, and to convert image data composed of gradation values. Generate. The “reverse direction” is a direction approaching the reference point OP in the sub-scanning direction.

コントローラCRは、TC12で生成された画像データに対し、データを反転させる(TC13)。具体的には、コントローラCRは、反転前の画像データの最終ラインが反転後の画像データの先頭ラインとなり、反転前の画像データの先頭ラインが反転後の画像データの最終ラインとなる様に、ラインの入れ替え処理を実行する。   The controller CR inverts the data with respect to the image data generated by the TC12 (TC13). Specifically, the controller CR is configured so that the last line of the image data before inversion becomes the first line of the image data after inversion, and the first line of the image data before inversion becomes the last line of the image data after inversion. Execute line replacement processing.

(各カバー状態におけるデジタルデータおよび階調値の具体例)
図7および図8を用いて、A3横サイズの原稿が載置される一例について具体的に説明する。本実施形態において、強い外乱光が読取部RUに入射する場合であり、原稿は背景色(ただし、基準部材の白色よりは若干濃い)、且つ光を透過させない程度の厚みを有している場合について、説明する。さらに、本実施形態では、A3横サイズの原稿が載置されるため、原稿非載置領域では原稿が載置されておらず、それ以外の領域には原稿が載置される。カバーが閉じている状態では、カバーが完全に閉じられ、外乱光の影響は全くない。
(Specific examples of digital data and gradation values in each cover state)
An example in which an A3 landscape document is placed will be described in detail with reference to FIGS. In this embodiment, strong disturbance light is incident on the reading unit RU, and the document has a background color (however, slightly darker than white of the reference member) and a thickness that does not transmit light. Will be described. Further, in the present embodiment, since an A3 landscape document is placed, the document is not placed in the document non-placement area, and the document is placed in other areas. When the cover is closed, the cover is completely closed and there is no influence of ambient light.

図7は、各カバー状態における主走査位置とデジタルデータとの関係を示す図である。デジタルデータは、A/D変換部ADから出力される値である。(a)は原稿なしカバー閉じた状態、(b)は原稿なしカバー開いた状態、(c)は原稿有りカバー開いた状態、(d)は原稿有りカバー閉じる直前の状態、(e)は原稿有りカバー閉じた状態を示している。また、(1)は、図1(B)における画像読取装置SMを左から見た側面図である。(2)は、光源LSを光量LEにて点灯したときの主走査位置とデジタルデータとの関係を示す図であり、(3)は、光源LSを消灯したときの主走査位置とデジタルデータとの関係を示す図である。図7および図8に示される二点鎖線は、主走査位置について、余白領域および原稿非載置領域の境界を示し、先頭画素位置から先頭画素に近い側の二点鎖線までが余白領域であり、最終画素に近い二点鎖線から最終画素までが原稿非載置領域である。   FIG. 7 is a diagram showing the relationship between the main scanning position and the digital data in each cover state. The digital data is a value output from the A / D conversion unit AD. (A) is a state where the cover without a document is closed, (b) is a state where the cover without a document is opened, (c) is a state where the cover with a document is opened, (d) is a state immediately before the cover with a document is closed, (e) is a state where the document is closed Yes The cover is closed. FIG. 1A is a side view of the image reading device SM in FIG. 1B viewed from the left. (2) is a diagram showing the relationship between the main scanning position and the digital data when the light source LS is turned on with the light amount LE, and (3) is the main scanning position and the digital data when the light source LS is turned off. It is a figure which shows the relationship. The two-dot chain line shown in FIG. 7 and FIG. 8 indicates the boundary between the blank area and the document non-placement area with respect to the main scanning position, and the blank area extends from the top pixel position to the two-dot chain line closer to the top pixel. From the two-dot chain line close to the final pixel to the final pixel is a document non-placement area.

図8は、各カバー状態における主走査位置と階調値との関係を示す図である。階調値は補正部SCから出力される値である。(a)〜(e)は図7と同様に原稿の有無とカバー状態とを示している。(1)は、カバー状態を示す画像読取装置SMを横から見た側面図である。(2)は、光源LSを光量LEにて点灯したときの主走査位置と階調値との関係を示す図であり、(3)は、光源LSを消灯したときの主走査位置と階調値との関係を示す図である。   FIG. 8 is a diagram illustrating the relationship between the main scanning position and the gradation value in each cover state. The gradation value is a value output from the correction unit SC. (A)-(e) has shown the presence or absence of a document, and a cover state similarly to FIG. (1) is the side view which looked at image reading device SM which shows a cover state from the side. (2) is a diagram showing the relationship between the main scanning position and the gradation value when the light source LS is turned on with the light amount LE, and (3) is the main scanning position and gradation when the light source LS is turned off. It is a figure which shows the relationship with a value.

各カバー状態におけるデジタルデータおよび階調値の出力結果について、図7および図8を用いて説明する。   The output results of digital data and gradation values in each cover state will be described with reference to FIGS.

原稿なしカバー閉じた状態(a)では、本体MBに対して、原稿カバーCVが閉じているため、読取部RUは、外乱光の影響を受けない。また、画像読取装置SMに原稿が載置されていないので、読取部RUは原稿カバーCVの裏面(白色)を読み取ることになる。よって、光源LSを点灯して読取を実行した場合に、図7(a)の(2)に示すように、デジタルデータは基準部材BMを読み取るときの出力と同等となり、図8(a)の(2)に示すように、階調値は白色を示す最大値として出力される。光源LSを消灯して読取を実行した場合に、図7(a)の(3)に示すように、デジタルデータは暗出力と同等な出力となり、図8(a)の(3)に示すように、階調値は黒色を示す最小値として出力される。   In the state (a) in which the cover without document is closed, the document cover CV is closed with respect to the main body MB, so that the reading unit RU is not affected by disturbance light. Further, since no document is placed on the image reading device SM, the reading unit RU reads the back surface (white color) of the document cover CV. Therefore, when reading is performed with the light source LS turned on, as shown in (2) of FIG. 7A, the digital data is equivalent to the output when the reference member BM is read, and FIG. As shown in (2), the gradation value is output as the maximum value indicating white. When reading is executed with the light source LS turned off, as shown in (3) of FIG. 7 (a), the digital data becomes an output equivalent to the dark output, as shown in (3) of FIG. 8 (a). In addition, the gradation value is output as a minimum value indicating black.

原稿なしカバー開いた状態(b)では、本体MBに対して、原稿カバーCVが開いているため、読取部RUは外乱光の影響を受ける。さらに、画像読取装置SMに原稿が載置されていないので、読取部RUは主走査方向の全領域において外乱光の影響を受ける。よって、光源LSを点灯して読取を実行した場合に、図7(b)の(2)に示すように、デジタルデータは外光に起因して基準部材BMを読み取る場合よりも大きな出力となり、図8(b)の(2)に示すように、階調値は白色を示す最大値として出力される。光源LSを消灯して読取を実行した場合も同様に、図7(b)の(3)に示すように、デジタルデータは外光により基準部材BMを読み取る場合よりも大きな出力となり、図8(b)の(3)に示すように、階調値は白色を示す最大値として出力される。   When the cover without document is open (b), since the document cover CV is open with respect to the main body MB, the reading unit RU is affected by disturbance light. Furthermore, since no document is placed on the image reading device SM, the reading unit RU is affected by disturbance light in the entire region in the main scanning direction. Therefore, when reading is performed with the light source LS turned on, as shown in (2) of FIG. 7B, the digital data becomes a larger output than when reading the reference member BM due to external light, As shown in (2) of FIG. 8B, the gradation value is output as the maximum value indicating white. Similarly, when reading is performed with the light source LS turned off, as shown in (3) of FIG. 7B, the digital data has a larger output than when the reference member BM is read by external light, and FIG. As shown in (3) of b), the gradation value is output as the maximum value indicating white.

本実施形態では、カバーが開いた状態を電源投入時処理(M1)と再原稿サイズ確定処理(TA15)とにおける外乱光を検知したか否かを判断する処理(T8、TB7)において、コントローラCRが、消灯時の原稿非載置領域のデジタルデータがカバー判定値THco以上であるか否かを判断する。即ち、図7(a)の(3)に示すように、原稿なしカバー閉じた状態(a)では、原稿非載置領域のデジタルデータはカバー判定値THcoよりも小さく、図7(b)の(3)に示すように、原稿なしカバー開いた状態(b)では、原稿非載置領域のデジタルデータはカバー判定値THcoよりも大きい。このデジタルデータの変化を利用して、カバーが開いた状態を検知することが可能となっている。   In the present embodiment, in the process (T8, TB7) for determining whether disturbance light is detected in the power-on process (M1) and the re-original size determination process (TA15) when the cover is open, the controller CR However, it is determined whether or not the digital data in the document non-loading area when the light is off is equal to or greater than the cover determination value THco. That is, as shown in (3) of FIG. 7A, when the cover without document is closed (a), the digital data in the document non-placement area is smaller than the cover determination value THco, and the digital data in FIG. As shown in (3), in the state (b) in which the cover without document is opened, the digital data in the document non-placement area is larger than the cover determination value THco. Using this change in digital data, it is possible to detect the open state of the cover.

原稿有りカバーを開いた状態(c)では、本体MBに対して、原稿カバーCVが開いているため、読取部RUは外乱光の影響を受ける。また、画像読取装置SMに原稿が載置されているので、読取部RUは原稿非載置領域では外乱光の影響を受け、それ以外の領域では外乱光の影響を受けない。よって、光源LSを点灯して読取を実行した場合に、図7(c)の(2)に示すように、デジタルデータは、外乱光により原稿非載置領域では基準部材BMを読み取る場合よりも大きな出力となり、それ以外の領域では原稿の背景色を出力し、図8(c)の(2)に示すように、階調値は、原稿非載置領域では白色を示す最大値として出力され、それ以外の領域では背景色として出力される。光源LSを消灯して読取を実行した場合に、図7(c)の(3)に示すように、デジタルデータは、外乱光により原稿非載置領域では基準部材BMを読み取る場合よりも大きな出力となり、それ以外の領域では暗出力を出力し、図8(c)の(3)に示すように、階調値は、原稿非載置領域では白色を示す最大値として出力され、それ以外の領域では黒色を示す最小値として出力される。   In the state (c) in which the cover with document is open, the document cover CV is open with respect to the main body MB, and thus the reading unit RU is affected by disturbance light. Further, since the document is placed on the image reading device SM, the reading unit RU is affected by disturbance light in the document non-placement region, and is not affected by disturbance light in other regions. Therefore, when reading is performed with the light source LS turned on, as shown in (2) of FIG. 7C, the digital data is more than in the case where the reference member BM is read in the document non-loading area due to disturbance light. In the other areas, the background color of the document is output. As shown in (2) of FIG. 8C, the gradation value is output as the maximum value indicating white in the document non-loading area. In other areas, it is output as the background color. When reading is executed with the light source LS turned off, as shown in (3) of FIG. 7C, the digital data is output larger than the case where the reference member BM is read in the document non-loading area due to disturbance light. In other areas, dark output is output. As shown in (3) of FIG. 8 (c), the gradation value is output as the maximum value indicating white in the document non-placement area. In the area, it is output as the minimum value indicating black.

本実施形態では、原稿サイズ確定処理(T9)における余白領域で原稿を検知したか否かを判断する処理(TA2)において、コントローラCRが、光源LSを光量LEで点灯した時と消灯した時の余白領域のデジタルデータを用いて原稿を検知したか否かを判断している。即ち、原稿なしカバー開いた状態(b)における余白領域の光源LSの消灯時と点灯時とのデジタルデータの差分は、図7(b)の(2)の破線で示すように0と同等であるのに対し、原稿有りカバー開いた状態(c)における余白領域の光源LSの消灯時と点灯時とのデジタルデータの差分は、図7(c)の(2)の破線で示すように原稿判別値よりも大きくなっている。このデジタルデータの変化を利用して、原稿を検知することが可能となっている。   In this embodiment, in the process (TA2) for determining whether or not a document is detected in the blank area in the document size determination process (T9), the controller CR turns on and off the light source LS with the light amount LE. It is determined whether or not a document is detected using digital data in the margin area. That is, the difference in digital data between when the light source LS in the blank area is turned off and when the light source LS in the blank area is open (b) is equivalent to 0 as shown by the broken line in (2) of FIG. On the other hand, the difference in the digital data between when the light source LS in the blank area is turned off and when it is turned on in the state where the cover with document is open (c) is as shown by the broken line in (2) of FIG. It is larger than the discrimination value. It is possible to detect a document by using the change in the digital data.

原稿有りカバー閉じる直前の状態(d)は、他の状態と異なり、光源LSを消灯して読取を実行したときに、原稿非載置領域におけるデジタルデータがカバー判定値THco以下となった時の状態である。光源LSを消灯して読取を実行したときの原稿非載置領域におけるデジタルデータは、原稿有りカバーを開いた状態(c)では、外乱光の影響を受け、大きな出力となっており(図7(c)の(3)参照)、原稿有りカバーを閉じた状態(e)では、外乱光の影響を受けず、暗出力が出力される(図7(e)の(3)参照)。一方、カバー判定値THcoは、原稿非載置領域における黒レベルBKの最大値BKmaxを1.1倍して算出された値(T5)であり、黒レベルBKと同等である。よって、原稿非載置領域におけるデジタルデータがカバー判定値THco以下となった時の状態は、外乱光の影響をほとんど受けていない状態であり、原稿カバーCVが閉じる直前であると見做すことができる。   Unlike the other states, the state (d) immediately before the cover with the document is closed is when the digital data in the document non-placement area becomes equal to or less than the cover determination value THco when the light source LS is turned off and the reading is executed. State. The digital data in the document non-placement area when the light source LS is turned off and reading is performed is influenced by disturbance light when the cover with document is opened (c) and has a large output (FIG. 7). In the state (e) in which the cover with document is closed (see (3) in (c)), a dark output is output without being affected by disturbance light (see (3) in FIG. 7E). On the other hand, the cover determination value THco is a value (T5) calculated by multiplying the maximum value BKmax of the black level BK in the document non-placement area by 1.1, and is equivalent to the black level BK. Therefore, the state when the digital data in the document non-placement area becomes equal to or less than the cover determination value THco is a state in which it is hardly affected by ambient light, and is considered to be immediately before the document cover CV is closed. Can do.

原稿有りカバー閉じる直前の状態(d)において、光源LSを点灯して読取を実行した場合に、図7(d)の(2)に示すように、デジタルデータは、原稿非載置領域ではカバー判定値THco付近を出力し、それ以外の領域では背景色を出力し、図8(d)の(2)に示すように、階調値は、原稿非載置領域ではカバー判定値THcoを補正した値付近が出力され、それ以外の領域では背景色として出力される。光源LSを消灯して読取を実行した場合に、図7(d)の(3)に示すように、デジタルデータは、原稿非載置領域ではカバー判定値THco付近を出力し、それ以外の領域では暗出力を出力する。図8(d)の(3)に示すように、階調値は、原稿非載置領域ではカバー判定値THcoを補正した値付近が出力され、それ以外の領域では黒色を示す最小値として出力される。   When reading is performed with the light source LS turned on in the state (d) immediately before the cover with the document is closed, as shown in (2) of FIG. 7D, the digital data is not covered in the document non-loading area. The vicinity of the judgment value THco is output, and the background color is output in other areas. As shown in (2) of FIG. 8D, the gradation value is corrected to the cover judgment value THco in the document non-placement area. The vicinity of the selected value is output, and in other areas, it is output as the background color. When reading is executed with the light source LS turned off, as shown in (3) of FIG. 7D, the digital data is output in the vicinity of the cover determination value THco in the document non-loading area, and the other areas. Then output dark output. As shown in (3) of FIG. 8D, the gradation value is output in the vicinity of the corrected value of the cover determination value THco in the document non-placement area, and is output as the minimum value indicating black in the other areas. Is done.

本実施形態では、原稿サイズ確定処理(T9)および再原稿サイズ確定処理(TA15)における原稿非載置領域にてカバー判定値以下か否かを判断する処理(TA5、TB11)において、コントローラCRは、消灯ラインの原稿非載置領域における特定画素の全てのデジタルデータがカバー判定値THco以下であるか否かを判断している。即ち、図7(c)の(3)に示すように、デジタルデータは原稿カバーCVが開いた状態において、原稿非載置領域では外乱光の影響により、基準部材BMを読み取る場合よりも大きな出力を出力している。図7(d)の(3)に示すように、デジタルデータは原稿カバーCVが閉じる直前の状態において、原稿非載置領域では外乱光の影響を受け難くなり、カバー判定値THco付近を出力している。よって、原稿カバーCVの状態により、原稿非載置領域におけるデジタルデータが変化している。この変化を利用して、原稿カバーCVが閉じる直前の状態を検知することが可能となっている。   In the present embodiment, the controller CR determines whether or not the document non-placement area in the document size determination process (T9) and the re-document size determination process (TA15) is equal to or less than the cover determination value (TA5, TB11). It is determined whether or not all the digital data of the specific pixel in the document non-placement area of the light-off line is equal to or less than the cover determination value THco. That is, as shown in (3) of FIG. 7C, the digital data is output larger than when reading the reference member BM due to the influence of disturbance light in the document non-mounting area when the document cover CV is opened. Is output. As shown in (3) of FIG. 7D, the digital data is not easily affected by the disturbance light in the document non-placement area immediately before the document cover CV is closed, and outputs the vicinity of the cover determination value THco. ing. Therefore, the digital data in the document non-placement area changes depending on the state of the document cover CV. Using this change, it is possible to detect a state immediately before the document cover CV is closed.

本実施形態では、原稿サイズ確定処理(T9)および再原稿サイズ確定処理(TA15)における原稿サイズ確定処理(TA10、TB15)において、コントローラCRは、光源LSを光量LEで点灯させた時の階調値を用いて主走査方向のサイズを確定している。即ち、図8(d)の(2)に示すように、原稿が載置されていない領域において、階調値は、光源LSを点灯して読取を実行したときに、黒色を示す最小値として出力される。一方、原稿が有る領域では、階調値は原稿の読取結果が出力される。よって、主走査方向の基準線と対向する原稿端部は、余白領域の階調値と原稿非載置領域の階調値とから求めた閾値SZ1よりも大きな値のうち原稿非載置領域に近い位置である。本実施形態では、原稿非載置領域の境界が基準線と対向する原稿端部である。この様に、階調値を利用することでデジタルデータの場合に発生するバラツキをなくし、正確に原稿端部を判断することができる。ここで、「デジタルデータの場合に発生するバラツキ」は、デジタルデータでは同じ階調を表わす値が画素毎に異なっていること意味する。   In the present embodiment, in the document size determination processing (TA10, TB15) in the document size determination processing (T9) and the re-document size determination processing (TA15), the controller CR is a gradation when the light source LS is lit with the light amount LE. The size in the main scanning direction is determined using the value. That is, as shown in (2) of FIG. 8D, in the area where no document is placed, the gradation value is the minimum value indicating black when the light source LS is turned on and reading is performed. Is output. On the other hand, in the area where the original is present, the reading result of the original is output as the gradation value. Therefore, the document edge facing the reference line in the main scanning direction is in the document non-placed area out of the values larger than the threshold value SZ1 obtained from the gradation value of the margin area and the gradation value of the document non-placed area. Close position. In the present embodiment, the boundary of the document non-loading area is the document end facing the reference line. In this way, by using the gradation value, variations that occur in the case of digital data can be eliminated, and the document edge can be accurately determined. Here, “variation occurring in the case of digital data” means that in digital data, values representing the same gradation are different for each pixel.

原稿有りカバー閉じた状態(e)では、本体MBに対して、原稿カバーCVが閉じているため、外乱光の影響を受けない。また、画像読取装置SMに原稿が載置されているので、読取部RUは原稿が置かれている領域は原稿を読み取り、原稿が置かれていない領域は白色の原稿カバーCVの裏面を読み取ることになる。よって、光源LSを点灯して読取を実行した場合に、図7(e)の(2)に示すように、デジタルデータは原稿非載置領域では白色に相当する出力となり、それ以外の領域では背景色に相当する出力となり、図8(e)の(2)に示すように、階調値は原稿非載置領域では白色を示す最大値として出力され、それ以外の領域では、背景色として出力される。光源LSを消灯して読取を実行した場合に、図7(e)の(3)に示すように、デジタルデータは暗出力と同等な出力となり、図8(e)の(3)に示すように、階調値は黒色を示す最小値として出力される。   In the state (e) in which the cover with document is closed, the document cover CV is closed with respect to the main body MB, so that it is not affected by disturbance light. Since the document is placed on the image reading device SM, the reading unit RU reads the document in the area where the document is placed, and reads the back side of the white document cover CV in the area where the document is not placed. become. Therefore, when reading is executed with the light source LS turned on, as shown in (2) of FIG. 7E, the digital data is output corresponding to white in the document non-loading area, and in the other areas. The output corresponds to the background color, and as shown in (2) of FIG. 8E, the gradation value is output as the maximum value indicating white in the document non-placement area, and as the background color in other areas. Is output. When reading is executed with the light source LS turned off, as shown in (3) of FIG. 7 (e), the digital data becomes an output equivalent to the dark output, as shown in (3) of FIG. 8 (e). In addition, the gradation value is output as a minimum value indicating black.

本実施形態では、原稿サイズ確定処理(T9)におけるカバーは閉状態か否かを判断する処理(TA12)において、コントローラCRが、消灯時の原稿非載置領域のデジタルデータがカバー判定値THco以下か否かを判断している。即ち、図7(e)の(3)に示すように、原稿有りカバー閉じた状態(e)では、原稿非載置領域のデジタルデータはカバー判定値THcoよりも小さい。このデジタルデータを利用して、カバーが閉じた状態を検知することが可能となっている。   In the present embodiment, in the process (TA12) for determining whether or not the cover is closed in the document size determination process (T9), the controller CR determines that the digital data in the document non-mounting area when the light is off is equal to or less than the cover determination value THco. Judgment whether or not. That is, as shown in (3) of FIG. 7E, in the state (e) where the cover with document is closed, the digital data in the document non-placement area is smaller than the cover determination value THco. Using this digital data, it is possible to detect the closed state of the cover.

<実施形態の効果>
本実施形態では、原稿サイズ確定処理(T9)の原稿非載置領域にてカバー判定値THco以下か否かを判断する処理(TA5)において、原稿非載置領域のデジタルデータがカバー判定値THco以下か否かについて、所定時間経過するまで(TA6でNo)繰り返し判断している。よって、繰り返し判断することで、所定時間経過しなくても原稿カバーCVの検知ができ、原稿カバーの状態変化を素早く検知することができ、その結果、原稿カバーが閉じる直前のタイミングを生成することができる。
<Effect of embodiment>
In the present embodiment, in the process (TA5) for determining whether or not the document non-placement area is equal to or smaller than the cover determination value THco in the document size determination process (T9), the digital data in the document non-placement area is the cover determination value THco. It is repeatedly determined whether or not it is less than or equal to a predetermined time (No in TA6). Therefore, by repeatedly determining, the document cover CV can be detected even if a predetermined time has not elapsed, and the state change of the document cover can be detected quickly, and as a result, the timing immediately before the document cover is closed is generated. Can do.

本実施形態では、電源投入時処理(M1)のA4横位置へ移動する処理(T6)において、読取位置をA4横位置LPに変更した後、原稿サイズ確定処理(T9)の原稿非載置領域にてカバー判定値THco以下か否かを判断する処理(TA5)を実行している。よって、読取位置は副走査方向において透明板TPの端部から十分に離れているため、外乱光は、本体MBからの影響はなく、原稿カバーによって遮られる。その結果、原稿カバーの状態を正確に検知することができる。   In this embodiment, in the process (T6) of moving to the A4 horizontal position in the power-on process (M1), after changing the reading position to the A4 horizontal position LP, the document non-placement area in the document size determination process (T9) The process (TA5) for determining whether or not the cover determination value THco is equal to or less than is performed. Therefore, since the reading position is sufficiently away from the end of the transparent plate TP in the sub-scanning direction, the disturbance light is not affected by the main body MB and is blocked by the document cover. As a result, it is possible to accurately detect the state of the document cover.

[実施形態と発明との対応関係]
画像読取装置SM、原稿載置台DT、および原稿カバーCVが本発明の画像読取装置、原稿載置台、原稿カバーの一例である。光源LS、読取部RU、A/D変換部AD、補正部SC、移動機構MM、およびコントローラCRが本発明の光源、読取部、読取機構、およびコントローラの一例である。読取位置をホーム位置HPからA4横位置LPに変更する処理(T6)が本発明の変更処理の一例である。外乱光を検知したか否かを判断する処理(T8)が本発明の開判断処理の一例である。原稿非載置領域にてカバー判定値以下か否かを判断する処理(TA5)が本発明の閉判断処理の一例である。原稿サイズ確定処理時における光源LSの点灯制御を行う処理(TA1)が本発明の点灯処理の一例である。余白領域にて原稿を検知したか否かを判断する処理(TA2)が本発明の原稿判断処理の一例である。
[Correspondence between embodiment and invention]
The image reading device SM, the document placing table DT, and the document cover CV are examples of the image reading device, the document placing table, and the document cover of the present invention. Light source LS, a reading unit RU, A / D conversion unit AD, the correction unit SC, the moving mechanism MM, our and the controller CR light source of the present invention, the reading unit, reading mechanism, which is an example of a contact and the controller. The process (T6) for changing the reading position from the home position HP to the A4 horizontal position LP is an example of the changing process of the present invention. The process (T8) for determining whether ambient light has been detected is an example of the open determination process of the present invention. Process of determining whether or not the following cover determination value at originals non-placing area (TA5) is an example of a closing determination process of the present invention. The process (TA1) for performing the lighting control of the light source LS during the document size determination process is an example of the lighting process of the present invention. The process (TA2) for determining whether or not a document is detected in the margin area is an example of the document determination process of the present invention.

[変形例]
本発明は、本実施形態に限定されることなく、その趣旨を逸脱しない範囲において種々の変形が可能である。以下にその変形の一例を述べる。
[Modification]
The present invention is not limited to this embodiment, and various modifications can be made without departing from the spirit of the present invention. An example of the modification will be described below.

(1)本実施形態の読取機構RMは、CISを用いた構成でなくてもよく、例えば、CCD(Charge Coupled Device)を固定し、移動するミラーを用いた構成であってもよい。この場合、「読取位置」は、撮像素子の位置ではなく、ミラーの位置である。   (1) The reading mechanism RM of the present embodiment may not have a configuration using the CIS, and may have a configuration using a moving mirror that fixes a CCD (Charge Coupled Device), for example. In this case, the “reading position” is not the position of the image sensor but the position of the mirror.

(2)本実施形態では、コントローラCRは、A4横位置LPでのデジタルデータを用いて、原稿カバーCVの状態を判断した(TA5でYes)が、読取部RUが外乱光を検知することができる位置であれば、原稿カバーCVの状態を判断することができる。   (2) In the present embodiment, the controller CR determines the state of the document cover CV using the digital data at the A4 lateral position LP (Yes in TA5), but the reading unit RU may detect disturbance light. If it is possible, the state of the document cover CV can be determined.

(3)本実施形態では、コントローラCRは、デジタルデータを用いて、原稿カバーCVの状態を判断した(TA5でYes)が、デジタルデータではなく、階調値を用いて原稿カバーCVの状態を判断してもよい。   (3) In this embodiment, the controller CR uses the digital data to determine the state of the document cover CV (Yes in TA5). However, instead of using the digital data, the controller CR determines the state of the document cover CV. You may judge.

(4)本実施形態では、コントローラCRは、階調値を用いて、原稿サイズを確定した(TA10)が、階調値ではなく、デジタルデータを用いて原稿サイズを確定してもよい。   (4) In the present embodiment, the controller CR determines the document size using the gradation value (TA10). However, the controller CR may determine the document size using digital data instead of the gradation value.

(5)本実施形態では、コントローラCRは、原稿カバーCVの状態を判断した(TA5でYes)後に、原稿サイズを確定する処理(TA10)を行っているが、原稿カバーCVの状態を検知した後に、読取処理の初期化処理などを行ってもよい。   (5) In the present embodiment, the controller CR performs the process (TA10) for determining the document size after determining the state of the document cover CV (Yes in TA5), but has detected the state of the document cover CV. Later, an initialization process of the reading process may be performed.

(6)本実施形態では、コントローラCRは、原稿非載置領域のデジタルデータを用いて、原稿カバーCVの状態を判断した(TA5でYes)が、原稿非載置領域でなく、原稿が置かれていない領域であれば、原稿カバーCVの状態を判断することができる。   (6) In the present embodiment, the controller CR determines the state of the document cover CV using the digital data in the document non-placement area (Yes in TA5), but the document is not placed in the document non-placement area. If the area is not removed, the state of the document cover CV can be determined.

(7)本実施形態では、カバー判定値THcoは、黒データBKのうち原稿非載置領域におけるデータの最大値である黒データ最大値BKmaxを1.1倍して算出した値としているが、黒データBKの全てのデータの最大値をカバー判定値THcoとしても良いし、黒データBKおよび白データWTからカバー判定値THcoを算出しても良い。   (7) In this embodiment, the cover determination value THco is a value calculated by multiplying the black data maximum value BKmax, which is the maximum value of the data in the non-document placement area of the black data BK, by 1.1. The maximum value of all data of the black data BK may be set as the cover determination value THco, or the cover determination value THco may be calculated from the black data BK and the white data WT.

Claims (3)

画像読取装置であって、
読取対象の原稿の1個の頂点が配置されるべき基準点が設けられ、原稿が支持されない原稿非載置領域を備えている原稿載置台と、
前記原稿載置台の上面を覆う閉状態と前記原稿載置台の上面を開放する開状態とに開閉する原稿カバーと、
を照射する光源と、
主走査方向に沿ったライン単位で受光した光量をデジタルデータとして取得する読取を実行する読取部と、
前記読取を実行する読取位置を主走査方向と直交する副走査方向に変更する読取機構と、
コントローラと、を備え、
前記コントローラは、
前記原稿非載置領域において前記読取部が外乱光を検知する検知位置へ前記読取位置を前記読取機構により変更させる変更処理と、
前記読取位置を前記検知位置に変更した状態において、前記光源から光を照射させず、主走査方向における前記原稿非載置領域のデジタルデータがカバー判定値以上のときに前記原稿カバーが開状態であると判断する開判断処理と、
前記開判断処理において前記原稿カバーが開状態であると判断された後に、前記読取位置を前記検知位置に変更した状態において、前記光源から光を照射させず、主走査方向における前記原稿非載置領域のデジタルデータが前記カバー判定値以下のときに前記原稿カバーが閉状態であると判断する閉判断処理と
を実行することを特徴とする画像読取装置。
An image reading device,
A document placement table provided with a reference point on which one vertex of a document to be read is to be placed and having a document non-mounting area where the document is not supported;
A document cover that opens and closes to a closed state that covers the top surface of the document table and an open state that opens the top surface of the document table ;
A light source that emits light;
A reading unit that performs reading to acquire the amount of light received in units of lines along the main scanning direction as digital data;
A reading mechanism that changes a reading position for performing the reading in a sub-scanning direction orthogonal to the main scanning direction;
A controller, and
The controller is
A change process for changing the reading position by the reading mechanism to a detection position where the reading unit detects disturbance light in the document non-loading area;
In a state where the reading position is changed to the detection position, light is not emitted from the light source, and the document cover is open when digital data in the document non-loading area in the main scanning direction is equal to or greater than a cover determination value. Open determination processing to determine that there is,
After the document cover is determined to be in the open state in the open determination process, the document is not placed in the main scanning direction without irradiating light from the light source in a state where the reading position is changed to the detection position. A close determination process for determining that the document cover is in a closed state when digital data of an area is equal to or less than the cover determination value ;
The image reading apparatus characterized by performing.
前記原稿台は、前記基準点を通過する副走査方向と平行な基準線から主走査方向に所定距離離れた位置までの領域を余白領域として備え、
前記コントローラは、
前記光源から光を照射させる点灯ラインと、前記光源を消灯させる消灯ラインとを組み合わせた2ラインを読取ラインとして前記光源を制御する点灯処理と、
前記開判断処理において前記原稿カバーが開状態であると判断された後に、前記余白領域の前記点灯ラインのデジタルデータと、前記余白領域の前記消灯ラインのデジタルデータとの差分が原稿判定値より大きいときに前記余白領域に原稿が支持されたと判断する原稿判断処理と、を実行し、
前記閉判断処理は、前記原稿判断処理において前記余白領域に原稿が支持されたと判断された後に、実行されることを特徴とする請求項1に記載の画像読取装置。
The document table includes, as a blank area, an area from a reference line parallel to the sub-scanning direction passing through the reference point to a position separated by a predetermined distance in the main scanning direction.
The controller is
A lighting process for controlling the light source with two lines combining a lighting line for irradiating light from the light source and a light-off line for turning off the light source as a reading line;
After it is determined in the open determination process that the document cover is in an open state, a difference between the digital data of the lighting line in the blank area and the digital data of the extinguished line in the blank area is larger than the document determination value. A document determination process for determining that the document is supported in the margin area ,
The image reading apparatus according to claim 1, wherein the closing determination process is executed after it is determined in the document determination process that the document is supported in the blank area .
画像読取装置によって実行される方法であって、
前記画像読取装置は、
読取対象の原稿の1個の頂点が配置されるべき基準点が設けられ、原稿が載置されない原稿非載置領域を備えている原稿載置台と、
前記原稿載置台の上面を覆う閉状態と前記原稿載置台の上面を開放する開状態とに開閉する原稿カバーと、
を照射する光源と、
主走査方向に沿ったライン単位で受光した光量をデジタルデータとして取得する読取を実行する読取部と、
前記読取を実行する読取位置を副走査方向に変更する読取機構と、を備え、
前記方法は、
前記原稿非載置領域において前記読取部が外乱光を検知する検知位置へ前記読取位置を前記読取機構により変更させる変更工程と、
前記読取位置を前記検知位置に変更した状態において、前記光源から光を照射させず、主走査方向における前記原稿非載置領域のデジタルデータがカバー判定値以上のときに前記原稿カバーが開状態であると判断する開判断工程と、
前記開判断処理において前記原稿カバーが開状態であると判断された後に、前記読取位置を前記検知位置に変更した状態において、前記光源から光を照射させず、主走査方向における前記原稿非載置領域のデジタルデータが前記カバー判定値以下のときに前記原稿カバーが閉状態であると判断する閉判断工程と、
を含む方法。
A method performed by an image reading apparatus, comprising:
The image reading device includes:
A document placement table provided with a reference point on which one vertex of a document to be read is to be placed and having a document non-mounting area on which a document is not placed;
A document cover that opens and closes to a closed state that covers the top surface of the document table and an open state that opens the top surface of the document table ;
A light source that emits light;
A reading unit that performs reading to acquire the amount of light received in units of lines along the main scanning direction as digital data;
A reading mechanism for changing the reading position for executing the reading in the sub-scanning direction,
The method
A change step of changing the reading position by the reading mechanism to a detection position where the reading unit detects disturbance light in the document non-loading area;
In a state where the reading position is changed to the detection position, light is not emitted from the light source, and the document cover is open when digital data in the document non-loading area in the main scanning direction is equal to or greater than a cover determination value. An open determination process for determining that there is,
After the document cover is determined to be in the open state in the open determination process, the document is not placed in the main scanning direction without irradiating light from the light source in a state where the reading position is changed to the detection position. A closing determination step of determining that the document cover is in a closed state when digital data of an area is equal to or less than the cover determination value;
Including methods.
JP2018072949A 2018-04-05 2018-04-05 Image reading apparatus, computer program, and method Active JP6569764B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018072949A JP6569764B2 (en) 2018-04-05 2018-04-05 Image reading apparatus, computer program, and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018072949A JP6569764B2 (en) 2018-04-05 2018-04-05 Image reading apparatus, computer program, and method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014175069A Division JP6323259B2 (en) 2014-08-29 2014-08-29 Image reading apparatus, computer program, and method

Publications (2)

Publication Number Publication Date
JP2018137793A true JP2018137793A (en) 2018-08-30
JP6569764B2 JP6569764B2 (en) 2019-09-04

Family

ID=63367130

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018072949A Active JP6569764B2 (en) 2018-04-05 2018-04-05 Image reading apparatus, computer program, and method

Country Status (1)

Country Link
JP (1) JP6569764B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11856157B2 (en) 2022-04-14 2023-12-26 Ricoh Company, Ltd. Image reading apparatus with control device to determine open / closed state of cover based on evaluation of read values in main scan directin with light source turned on and off

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01136460A (en) * 1987-11-20 1989-05-29 Sanyo Electric Co Ltd Reader
JP2004357007A (en) * 2003-05-29 2004-12-16 Seiko Epson Corp Image reader having power saving mode and power control method thereof
JP2006311175A (en) * 2005-04-28 2006-11-09 Brother Ind Ltd Image reading device
JP2007110655A (en) * 2005-10-17 2007-04-26 Ricoh Co Ltd Image reading device and image reading method
JP2010130512A (en) * 2008-11-28 2010-06-10 Brother Ind Ltd Image reading apparatus and image reading head
JP2012029192A (en) * 2010-07-27 2012-02-09 Konica Minolta Business Technologies Inc Document reader
JP2014138220A (en) * 2013-01-15 2014-07-28 Ricoh Co Ltd Document reading method, document reading device, and image forming device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01136460A (en) * 1987-11-20 1989-05-29 Sanyo Electric Co Ltd Reader
JP2004357007A (en) * 2003-05-29 2004-12-16 Seiko Epson Corp Image reader having power saving mode and power control method thereof
JP2006311175A (en) * 2005-04-28 2006-11-09 Brother Ind Ltd Image reading device
JP2007110655A (en) * 2005-10-17 2007-04-26 Ricoh Co Ltd Image reading device and image reading method
JP2010130512A (en) * 2008-11-28 2010-06-10 Brother Ind Ltd Image reading apparatus and image reading head
JP2012029192A (en) * 2010-07-27 2012-02-09 Konica Minolta Business Technologies Inc Document reader
JP2014138220A (en) * 2013-01-15 2014-07-28 Ricoh Co Ltd Document reading method, document reading device, and image forming device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11856157B2 (en) 2022-04-14 2023-12-26 Ricoh Company, Ltd. Image reading apparatus with control device to determine open / closed state of cover based on evaluation of read values in main scan directin with light source turned on and off

Also Published As

Publication number Publication date
JP6569764B2 (en) 2019-09-04

Similar Documents

Publication Publication Date Title
JP6323259B2 (en) Image reading apparatus, computer program, and method
US7705906B2 (en) Image sensing apparatus and control method thereof and program for implementing the method
JP4422667B2 (en) Imaging apparatus and imaging method
JP2007194794A (en) Photographic device, and image processing method for photographed image, and program
JP4794978B2 (en) Image processing apparatus, control method, and program
JP2011205228A (en) Image pickup device, control method for the same, and program
JP6569764B2 (en) Image reading apparatus, computer program, and method
US20150281571A1 (en) Foreign body information detection device and foreign body information detection method of imaging apparatus
JP2008236672A (en) Camera, and image correction value calculation method
JP5978636B2 (en) Imaging apparatus and program
JP2009171010A (en) Projector
JP5617470B2 (en) Dust processing device, imaging device, photographing lens, and dust processing program
JP2007110655A (en) Image reading device and image reading method
JP5344152B2 (en) Electronics
JP6427888B2 (en) Image display system, image display apparatus, and image display method
JP2018107741A (en) Image processing system, image processing method, and program
JPWO2011141972A1 (en) Luminance correction apparatus, luminance correction system, and luminance correction method
JP4626436B2 (en) Electronic camera
CN106412355B (en) Image processing apparatus and detection method
JP6892636B2 (en) Image reader
JP6794795B2 (en) Imaging device, imaging method, program
JP2007036951A (en) Camera having electronic viewfinder
JP6432289B2 (en) Imaging apparatus, imaging control method, and program
JP2016092685A (en) Imaging apparatus, imaging control method, and program
JP6270054B2 (en) Image processing apparatus, image forming apparatus, image processing method, and image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180412

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190308

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20190423

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20190508

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190625

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190722

R150 Certificate of patent or registration of utility model

Ref document number: 6569764

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

RD07 Notification of extinguishment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7427

Effective date: 20230414