JP4963441B2 - Image reading apparatus and image forming apparatus - Google Patents

Image reading apparatus and image forming apparatus Download PDF

Info

Publication number
JP4963441B2
JP4963441B2 JP2007150432A JP2007150432A JP4963441B2 JP 4963441 B2 JP4963441 B2 JP 4963441B2 JP 2007150432 A JP2007150432 A JP 2007150432A JP 2007150432 A JP2007150432 A JP 2007150432A JP 4963441 B2 JP4963441 B2 JP 4963441B2
Authority
JP
Japan
Prior art keywords
document
document size
size
size detection
determination
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.)
Expired - Fee Related
Application number
JP2007150432A
Other languages
Japanese (ja)
Other versions
JP2008306366A (en
Inventor
泰光 清水
教夫 道家
真吾 林
詩帆 下坂
洋之 井上
勝法 久米
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2007150432A priority Critical patent/JP4963441B2/en
Publication of JP2008306366A publication Critical patent/JP2008306366A/en
Application granted granted Critical
Publication of JP4963441B2 publication Critical patent/JP4963441B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Optical Systems Of Projection Type Copiers (AREA)
  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)

Description

本発明は、画像読取装置及び画像形成装置に関し、特に、画像読取部において原稿サイズの検知を行う技術に関するものである。   The present invention relates to an image reading apparatus and an image forming apparatus, and more particularly to a technique for detecting a document size in an image reading unit.

従来、原稿読取装置において、ブック読み取り時に原稿サイズを検知する方式として赤外線センサを用いていたが、近年では、赤外線センサを用いずに原稿読み取り用のラインセンサを用いて原稿サイズを検知する方式が用いられるようになってきている。原稿サイズを検知する場合、主走査サイズのみならず副走査方向のサイズも必要になるが、副走査方向の原稿サイズ検知を行おうとすると、原稿面をプレスキャンする必要が出てくる。これだとスキャン速度等に影響を及ぼしてしまうので、実際には、副走査方向の原稿サイズ検知は従来通り赤外線センサにて行い、主走査方向検知のみラインセンサ読取データを使う方式が主流となっている。   Conventionally, in an original reading apparatus, an infrared sensor is used as a method for detecting an original size at the time of reading a book. However, in recent years, there is a method for detecting an original size using an original reading line sensor without using an infrared sensor. It has come to be used. When detecting the document size, not only the main scanning size but also the size in the sub-scanning direction is required. However, when the document size detection in the sub-scanning direction is performed, it is necessary to pre-scan the document surface. This will affect the scanning speed and so on. In practice, the mainstream method is to use the infrared sensor to detect the document size in the sub-scanning direction, and use the line sensor reading data only to detect the main scanning direction. ing.

そして、以下に述べる特許文献ではいずれも主走査方向のみ検知する方式をとっている。例えば特許文献1で開示された原稿サイズ検知装置は、圧板開放時に原稿内は白、原稿外は黒であるとして主走査方向の原稿サイズを判断する方式であるが、原稿内に黒が来てしまった場合、ラインセンサ読み取り位置を移動させ、原稿内が白のラインにてサイズ検知を行うことを特徴としている。また、例えば特許文献2で開示された原稿サイズ検出装置は、圧板開放時に原稿内は白、原稿外は黒であるとして主走査方向の原稿サイズを判断する方式は特許文献1と同じであるが、ランプが点いた場合とランプが消えた場合と2条件でデータを取り、外乱光の影響を除くことを特徴としている。また、特許文献3で開示された原稿サイズ検知装置は、圧板開放時に原稿内は白、原稿外は黒であるとして主走査方向の原稿サイズを判断する方式は特許文献1と同じであるが、主走査方向複数点でのラインセンサの読取データを用いて主走査原稿サイズを検知することを特徴としている。
特開平10−257255号公報 特開2000−138798号公報 特開2003−198809号公報
In all of the patent documents described below, only the main scanning direction is detected. For example, the document size detection apparatus disclosed in Patent Document 1 is a method of determining the document size in the main scanning direction assuming that the inside of the document is white and the outside of the document is black when the pressure plate is opened, but black comes into the document. In the case where the document is jammed, the line sensor reading position is moved, and the size is detected by a white line in the document. For example, the document size detection apparatus disclosed in Patent Document 2 is the same as Patent Document 1 in determining the document size in the main scanning direction, assuming that the inside of the document is white and the outside of the document is black when the platen is opened. The data is taken under two conditions, when the lamp is turned on and when the lamp is extinguished, and the influence of ambient light is excluded. The document size detection device disclosed in Patent Document 3 is the same as that in Patent Document 1 in that the document size in the main scanning direction is determined as white inside the document and black outside the document when the pressure plate is opened. The main scanning document size is detected using the reading data of the line sensor at a plurality of points in the main scanning direction.
JP-A-10-257255 JP 2000-138798 A JP 2003-198809 A

特許文献1及び2では、2種類以上の読み取りデータから原稿サイズ検知の精度を上げるという点で効果はあるが、圧板が閉まるまでの時間をより短くしたいという点には言及していない。また、特許文献3では、圧板が閉まるまでの時間は短くて済むが、ランプが点いているかどうかという点は言及しておらず、さらに副走査に単純平均してしまっているため、ランプのオン/オフ状態により誤動作する可能性が高くなってしまう。   Patent Documents 1 and 2 are effective in increasing the accuracy of document size detection from two or more types of read data, but do not mention that it is desired to shorten the time until the pressure plate is closed. Further, in Patent Document 3, the time until the pressure plate is closed is short, but it does not mention whether the lamp is lit, and since it is simply averaged in the sub-scanning, the lamp is turned on. / There is a high possibility of malfunction due to the off state.

そこで、本発明は、上記事情に鑑み、ランプのオン/オフ状態による誤動作の可能性を排除して原稿サイズ検知の精度を向上させるとともに、原稿の読み取り時間を短縮させることが可能となる画像読取装置、及びこれを搭載した画像形成装置を提供することを目的とする。   In view of the above circumstances, the present invention eliminates the possibility of malfunction due to the on / off state of the lamp, improves the accuracy of document size detection, and shortens the document reading time. It is an object to provide an apparatus and an image forming apparatus equipped with the apparatus.

かかる目的を達成するために、本発明は、原稿を照射する原稿照射手段と、原稿照射手段により原稿を走査して該原稿の複数ラインの画像データを取得し、該画像データを用いて原稿の副走査サイズを判定し原稿サイズを確定する原稿サイズ検知手段と、原稿サイズ検知手段により確定した原稿サイズに基づいて原稿を走査して原稿画像を読み取る原稿読取手段と、読み取られた原稿画像に対して異なる時間で読み取られた2次元方向の複数パッチの差分値を算出する算出手段と、差分値が所定の値以上である場合には、原稿が存在すると判断する判断手段とを有し、原稿サイズ検知手段は、原稿の副走査サイズの判定に失敗した場合には原稿サイズを確定せずに原稿サイズ検知動作を終了し、原稿読取手段は、原稿サイズ検知手段により原稿サイズが確定した直後に、原稿サイズ検知手段の走査方向とは逆方向に原稿を走査して原稿画像を読み取り、原稿サイズ検知手段は、連続する判定位置において副走査サイズの判定を行うこと、又は、離間する判定位置において副走査サイズの判定を行うことが可能に構成されており、原稿サイズ検知手段が行う判定方法を、連続する判定位置での判定若しくは離間する判定位置での判定に切り換える判定方法切り換え手段を有することを特徴とする画像読取装置である。 In order to achieve such an object, the present invention provides a document irradiating unit for irradiating a document, scanning the document with the document irradiating unit to obtain image data of a plurality of lines of the document, and using the image data, Document size detecting means for determining the sub-scan size and determining the document size, document reading means for scanning the document based on the document size determined by the document size detecting means and reading the document image, and for the read document image And calculating means for calculating a difference value of a plurality of patches in a two-dimensional direction read at different times, and a determination means for determining that a document exists if the difference value is equal to or greater than a predetermined value. If the size detection unit fails to determine the document sub-scanning size, the document size detection unit terminates the document size detection operation without determining the document size. Immediately after the size is determined, the scanning direction of the document size detection means reads the document image by scanning the original in the reverse direction, the document size detection means, to perform the determination in the sub-scanning size in the determination contiguous positions, or The determination of the sub-scanning size can be performed at the determination position to be separated, and the determination method performed by the document size detection unit is switched to determination at a continuous determination position or determination at a separation determination position. an image reading apparatus according to claim Rukoto to have a method switching means.

また、本発明は、上記の画像読取装置において、判定方法切り換え手段は、ユーザの指定により切り換えを行うことを特徴とするものであってもよい。 Further, the present invention may be characterized in that, in the above-described image reading apparatus, the determination method switching means performs switching according to a user designation .

また、本発明は、上記の画像読取装置において、原稿サイズ検知手段により確定された原稿サイズをユーザに通知する原稿サイズ通知手段を有することを特徴とするものであってもよい。 Further, the present invention may be characterized in that the image reading apparatus includes a document size notifying unit that notifies the user of the document size determined by the document size detecting unit.

他の態様として、本発明は、上述した画像読取装置を搭載したことを特徴とする画像形成装置である。As another aspect, the present invention is an image forming apparatus including the above-described image reading apparatus.

本発明によれば、ランプのオン/オフ状態による誤動作の可能性を排除して原稿サイズ検知の精度を向上させるとともに、原稿の読み取り時間を短縮させることが可能となる画像読取装置、及びこれを搭載した画像形成装置が提供される。   According to the present invention, an image reading apparatus capable of improving the accuracy of document size detection by eliminating the possibility of malfunction due to the on / off state of the lamp, and reducing the document reading time, and An on-board image forming apparatus is provided.

以下、図面を参照しながら、本発明の実施形態について説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の実施形態における画像読取装置の概略構成を示す断面図である。当該画像読取装置は、原稿面をなすコンタクトガラス1上に載置いた原稿10に対してランプ2により光を照射し、第1ミラー3、第2ミラー4、第3ミラー5によって反射させた光をレンズ8によって集光し、CCD9上に結像する。ランプ2及び第1ミラー3が距離Lだけ進む間に第2ミラー4、第3ミラー5は距離L/2だけ進む。このことにより、光学系の光路長を一定に保ち、原稿全体を走査する。   FIG. 1 is a cross-sectional view showing a schematic configuration of an image reading apparatus according to an embodiment of the present invention. The image reading apparatus irradiates a document 10 placed on a contact glass 1 forming a document surface with light from a lamp 2 and reflects light by a first mirror 3, a second mirror 4, and a third mirror 5. Is condensed by the lens 8 and imaged on the CCD 9. While the lamp 2 and the first mirror 3 travel a distance L, the second mirror 4 and the third mirror 5 travel a distance L / 2. This keeps the optical path length of the optical system constant and scans the entire document.

図2は、本発明の実施形態における画像読取装置の機械構成を示す斜視図である。ランプ2と第1ミラー3を備えた第1キャリッジ6は、駆動ワイヤ11に取り付けられ、第2ミラー4及び第3ミラー5を備えた第2キャリッジ7は、プーリ12に駆動ワイヤが巻きつけられる。駆動軸14に繋がれたワイヤプーリ15に駆動ワイヤ11を巻きつけ、タイミングプーリ16とタイミングベルト17によってモータ18の駆動を伝達する。第1キャリッジ6の一端がホームポジションセンサ13を横切ってからある一定距離をリターンさせた位置をホームポジションとする。   FIG. 2 is a perspective view showing a mechanical configuration of the image reading apparatus according to the embodiment of the present invention. The first carriage 6 including the lamp 2 and the first mirror 3 is attached to the drive wire 11, and the second carriage 7 including the second mirror 4 and the third mirror 5 is wound around the pulley 12. . The drive wire 11 is wound around the wire pulley 15 connected to the drive shaft 14, and the drive of the motor 18 is transmitted by the timing pulley 16 and the timing belt 17. A position where a certain distance is returned after one end of the first carriage 6 crosses the home position sensor 13 is defined as a home position.

図3は、本発明の実施形態における画像形成装置のハードウェア構成図で、画像一連のコピー動作における電装ブロック図を示す。スキャナ1001に原稿をセットしてスタートキーを押下すると、スキャナ1001にて原稿読み取り、そしてIPU1002内で一連の画像処理を行い、プリンタ1003に画像データを出力し、紙排出が行われる。スキャナ1001、IPU1002、プリンタ1003内の必要なパラメータは、RAM1006内に保持されており、CPU1004により各デバイスに設定が行われる。また、パラメータ設定に必要なモード情報は、操作部1005を使ってユーザが指定できるような構成となっており、操作部1005内になるCPUとCPU1004とが通信を行うことで情報の交換を行っている。   FIG. 3 is a hardware configuration diagram of the image forming apparatus in the embodiment of the present invention, and shows an electrical block diagram in a series of image copying operations. When an original is set in the scanner 1001 and the start key is pressed, the original is read by the scanner 1001, a series of image processing is performed in the IPU 1002, image data is output to the printer 1003, and paper is discharged. Necessary parameters in the scanner 1001, the IPU 1002, and the printer 1003 are held in the RAM 1006, and the CPU 1004 sets each device. Further, the mode information necessary for parameter setting is configured so that the user can specify using the operation unit 1005, and the CPU in the operation unit 1005 and the CPU 1004 communicate to exchange information. ing.

図4は、本発明の実施形態において主要な構成要素となるIPU1002内の構成を示したブロック図である。IPU1002では、スキャナ1001から受け取った原稿読み取りデータに対して所望の画像処理を実施するが、原稿サイズ検知動作を行う場合、画像処理モジュール1011に接続された複数ラインメモリ1012にその画像データを蓄える。また、IPU1002は、複数ラインメモリ1012を制御するメモリコントロール1013を併せ持ち、CPU1004から複数ラインメモリ1012データのリード/ライトが可能となっている。   FIG. 4 is a block diagram showing a configuration in the IPU 1002 which is a main component in the embodiment of the present invention. The IPU 1002 performs desired image processing on the document read data received from the scanner 1001. When performing document size detection operation, the image data is stored in a multi-line memory 1012 connected to the image processing module 1011. The IPU 1002 also has a memory control 1013 for controlling the multi-line memory 1012, and the CPU 1004 can read / write the multi-line memory 1012 data.

図5は、本発明の実施形態における原稿サイズ検知動作シーケンスを示すフローチャートである。以下、図5のフローチャートを用いて原稿サイズ動作を説明する。   FIG. 5 is a flowchart showing a document size detection operation sequence in the embodiment of the present invention. Hereinafter, the document size operation will be described with reference to the flowchart of FIG.

まず、原稿が原稿サイズ検知位置に載置され、かつ圧板が閉められたことを検知した時点若しくはユーザが原稿の読み取りを開始した時点で原稿サイズ検知動作の開始する。圧板の開閉は、DF開閉センサのON/OFFによって検知する。原稿サイズ検知が開始されると、第1に原稿サイズ検知のために必要な準備を行う(ステップS1)。このステップでは、図7、図8に示すような原稿サイズ検知のための原稿読み取りタイミングの設定、及び必要に応じてシェーディング補正に必要な準備設定を実行する。 First, the manuscript size detection operation starts when it is detected that the manuscript is placed at the manuscript size detection position and the pressure plate is closed, or when the user starts reading the manuscript. The opening / closing of the pressure plate is detected by ON / OFF of the DF opening / closing sensor. When document size detection is started, first, preparations necessary for document size detection are made (step S1). In this step, setting of document reading timing for document size detection as shown in FIGS. 7 and 8 and preparation setting necessary for shading correction as necessary are executed.

そして、原稿サイズ検知のために必要な準備が完了すると、原稿読み取りのために原稿の照射を開始する(ステップS2)。このステップでは、ランプ点灯を実行する。なお、図5のフローにおいて、ステップS1及びステップS2は順次処理するような記載となっているが、特に順序の規定はなく、並行処理することも可能である。   When preparations necessary for detecting the document size are completed, irradiation of the document is started for reading the document (step S2). In this step, the lamp is turned on. In the flow of FIG. 5, Step S1 and Step S2 are described as being sequentially processed, but there is no particular order, and parallel processing is also possible.

次に、ステップS1及びステップS2の処理が完了した時点で原稿の読み取りを実行する(ステップS3)。このステップでは、原稿サイズ用のライト信号を発生し、ライト信号の有効期間内の画像データ読み取りを行って処理を終了する。このとき、キャリッジを移動させて原稿を走査しながら読み取りを実行するか、若しくはキャリッジを原稿サイズ検知位置に停止させたまま読み取りを実行し、2ライン以上の読み取り画像データを取得してもよい。キャリッジを移動させて原稿を走査しながら読み取りを実行する場合には、原稿上の異なる位置の画像を読み取ることが可能であり、原稿上の画像データの内容によって原稿サイズの誤検知を招くことを防止するとともに、読み取りと同時に並行してキャリッジを本来の原稿読み取り(本スキャン)位置へ移動させるため、原稿検知後の本スキャン開始までの時間を短縮することができる。 一方、キャリッジを原稿サイズ検知位置に停止させたまま読み取れば、原稿台に対する外光の影響や原稿照射用ランプの点灯状態の変化を画像データの内容から明確に検出することが可能になるというメリットもある(キャリッジを移動させる場合でも検出は不可能ではない)。   Next, when the processing of step S1 and step S2 is completed, the original is read (step S3). In this step, a write signal for the document size is generated, image data is read within the valid period of the write signal, and the process ends. At this time, reading may be performed while moving the carriage and scanning the document, or reading may be performed while the carriage is stopped at the document size detection position to acquire read image data of two or more lines. When scanning is performed while moving the carriage and scanning the document, it is possible to read images at different positions on the document, which may cause erroneous detection of the document size depending on the content of the image data on the document. In addition to preventing this, the carriage is moved to the original document reading (main scanning) position in parallel with the reading, so that the time until the start of the main scanning after the document detection can be shortened. On the other hand, if scanning is performed while the carriage is stopped at the document size detection position, it is possible to clearly detect the influence of external light on the document table and changes in the lighting state of the document irradiation lamp from the contents of the image data. (Detection is not impossible even when the carriage is moved).

続いて、原稿の読み取りが完了したら、原稿の照射を終了する(ステップS4)。ただし、サイズ検知のための原稿読み取りが完了した直後に本スキャンを開始するような場合には、ステップS4の処理を実行せずに原稿照射用ランプを点灯したままにする場合もあり得るが、図5フローには本スキャンを実行するか否かの判断処理は記載しない。また、ステップS4の処理は、以下に説明するステップS5の処理との順序の規定はなく平行処理することも可能である。   Subsequently, when the reading of the original is completed, the irradiation of the original is terminated (step S4). However, in the case where the main scan is started immediately after the reading of the document for size detection is completed, the document irradiation lamp may be kept lit without executing the process of step S4. The flow of FIG. 5 does not describe the process for determining whether to execute the main scan. In addition, the process of step S4 can be performed in parallel with the order of the process of step S5 described below without being defined.

そして、ステップS4の処理が完了した時点で、原稿サイズを解析するために読み取った原稿画像データの取り出しを行う(ステップS5)。本実施形態において、読み取った原稿画像データの取り出しは、図4に記載されているCPU1004から複数ラインメモリ1012に保存されたデータを読み出すことで行われる。   Then, when the process of step S4 is completed, the read document image data is extracted to analyze the document size (step S5). In the present embodiment, the read document image data is extracted by reading data stored in the multi-line memory 1012 from the CPU 1004 shown in FIG.

続いて、ステップS5で取り出した画像データを解析し、原稿サイズの判定を行う(ステップS6)。このステップでの解析の詳細は後述する。   Subsequently, the image data taken out in step S5 is analyzed, and the document size is determined (step S6). Details of the analysis in this step will be described later.

画像データを解析し原稿サイズの判定が成功した場合(ステップS6/YES、ステップS7)には、判定が成功したサイズを原稿サイズとして決定する(ステップS8)。原稿サイズの決定とは、具体的には図4のCPU1004に接続されたプログラム実行用のメモリであるRAM1006に原稿サイズ情報を保存しておくことであり、以降は必要に応じて決定した原稿サイズ情報を読み出して利用する。原稿サイズの決定後は、原稿サイズ検知動作を完了する。他方、原稿サイズの判定に失敗した場合(ステップS6/NO)には、原稿サイズを決定せずに原稿サイズ検知動作を完了する。   When the image data is analyzed and the document size is successfully determined (step S6 / YES, step S7), the size with the successful determination is determined as the document size (step S8). Specifically, the determination of the document size is to store the document size information in the RAM 1006 which is a program execution memory connected to the CPU 1004 in FIG. 4, and thereafter, the document size determined as necessary. Read and use information. After the document size is determined, the document size detection operation is completed. On the other hand, if the determination of the document size fails (step S6 / NO), the document size detection operation is completed without determining the document size.

原稿サイズの判定が失敗する例としては、真黒な原稿であったり、原稿台に対する外光の影響や原稿照射用ランプの点灯状態(ランプをONしたが光量が安定していない状態で読み取りを実行する等)によって、読み取りデータから原稿サイズを判定することができなかったりする場合が考えられる。以上が本実施形態における原稿サイズ検知動作の基本シーケンスである。   Examples of document size determination failures include a black document, the influence of external light on the document table, and the illumination state of the document illumination lamp (reading is performed when the lamp is on but the amount of light is not stable) For example, the document size may not be determined from the read data. The basic sequence of the document size detection operation in the present embodiment has been described above.

次に、図5のステップS6における原稿画像データの解析(原稿サイズの判定)について詳細に説明する。図6にメモリコントロール1013の一例を示す。メモリコントローラ1013は、ラインセンサ読み取り1ラインの基準となるXLSYNC信号、画素クロックであるところのPCLK、そしてラインセンサ読み取り開始トリガを示すXFSYNC信号を画像処理モジュール1011から受け取り、複数ラインメモリ1012にライトリセット(XWRST)信号とライトイネーブル(XWE)信号を渡す。それとともに、CPU1004からメモリライト領域を示す主走査スタート、主走査幅、副走査スタート、副走査幅の4つのパラメータを受け取り、2つの基準信号(XFSYNC、XLSYNC)からメモリのライト位置を確定する。   Next, analysis of document image data (determination of document size) in step S6 in FIG. 5 will be described in detail. FIG. 6 shows an example of the memory control 1013. The memory controller 1013 receives from the image processing module 1011 the XLSYNC signal that is the reference for one line of the line sensor reading, the PCLK that is the pixel clock, and the XFSYNC signal that indicates the line sensor reading start trigger. Pass the (XWRST) signal and the write enable (XWE) signal. At the same time, the CPU 1004 receives four parameters indicating the memory write area, ie, main scan start, main scan width, sub scan start, and sub scan width, and determines the memory write position from the two reference signals (XFSYNC, XLSYNC).

図7に副走査方向のタイミングを、図8に主走査方向のタイミングを示す。メモリコントロールとして上記構成を持つことにより、図9に示すような2次元方向の複数パッチのデータを同時にメモリに書き込むことが可能となる(斜線部がメモリ書き込み領域を示す)。パラメータ、タイミングとして主走査方向、副走査方向としたが、本実施形態における副走査方向は、原稿読み取りに対する副走査方向のみならず、時間の経過をも示すものとしている。図9の横軸tは時間の経過を示し、T1、T2での読み取りパッチの位置を表している。   FIG. 7 shows the timing in the sub-scanning direction, and FIG. 8 shows the timing in the main scanning direction. By having the above configuration as the memory control, it becomes possible to simultaneously write data of a plurality of patches in the two-dimensional direction as shown in FIG. 9 into the memory (the hatched portion indicates the memory writing area). Although the main scanning direction and the sub-scanning direction are used as parameters and timing, the sub-scanning direction in the present embodiment indicates not only the sub-scanning direction with respect to document reading but also the passage of time. The horizontal axis t in FIG. 9 indicates the passage of time and represents the position of the reading patch at T1 and T2.

図10に、図5のフローチャートにおける画像データ取り出し(ステップS5)のフロー例を示す。図9に示すパッチデータを複数ラインメモリ1012から1パッチずつCPU1004の持つRAM1006に読み出し、1パッチの平均値を求めて2値化を行うことで、パッチの白黒判定を行っている。図10のフローチャートに従って説明する。   FIG. 10 shows a flow example of image data extraction (step S5) in the flowchart of FIG. The patch data shown in FIG. 9 is read from the plurality of line memories 1012 one by one to the RAM 1006 of the CPU 1004, and an average value of one patch is obtained and binarized, thereby performing monochrome determination of the patch. This will be described with reference to the flowchart of FIG.

白黒判定のフローがスタートした後、1パッチ内の画素数を設定する(ステップS11)。続いて、複数ラインメモリ1012から1画素単位でリードを行い(ステップS12)、リードした画素が設定されたN画素となるまで(ステップS13/NO、ステップS14)加算を行う(ステップS13)。その後、1パッチ内の平均値を求め(ステップS15)、そのパッチの2値化を行う(ステップS16)。2値化の結果からパッチの白画素あるいは黒画素を判定し(ステップS17、ステップS18)、白黒判定フローを終了する。図10では平均値を求めるフローとしてN画素全加算のあと全平均としているが、例えば主走査方向だけの加算を行って1ラインでの平均を求め、その後に次のラインの加算と平均を繰り返して最終判定を行う方式でもよく、いずれのフローでも本実施形態には影響はない。   After the monochrome determination flow is started, the number of pixels in one patch is set (step S11). Subsequently, reading is performed from the multi-line memory 1012 in units of one pixel (step S12), and addition is performed (step S13 / NO, step S14) until the read pixel becomes the set N pixel (step S13). Thereafter, an average value in one patch is obtained (step S15), and the binarization of the patch is performed (step S16). The white pixel or black pixel of the patch is determined from the binarization result (step S17, step S18), and the monochrome determination flow is terminated. In FIG. 10, the flow for obtaining the average value is the total average after the total addition of N pixels. For example, the addition in only the main scanning direction is performed to obtain the average for one line, and then the addition and averaging for the next line are repeated. The final determination method may be used, and any flow does not affect the present embodiment.

上記の白黒判定について、図11を用いてさらに詳細に説明する。原稿サイズ検知の基本的なアルゴリズムは、圧板が開いているときに、原稿の白地部分が白くなり(反射光が反射)、原稿外の原稿のない部分が黒になる(反射光がない)ことを利用している。つまり、図11において、THよりも明るい場合が原稿あり、THよりも暗い場合が原稿なしとして判定することとなる。ところが、図11に示すように、地肌濃度が暗い原稿の場合は原稿内を読み取ってもTHを超えず原稿なしと誤判定してしまう。これを防ぐため、図10のステップS16にあるように、時間T1、T2で読み取ったパッチをPAT1、PAT2とし、PAT1とPAT2との差分値を求め、ΔD以上差分がある場合にはTHを
超えない場合でも原稿ありと判断するようにしている。図6に示すように、CPU1004からのパラメータ設定として、主走査方向スタート/幅、副走査方向スタート/幅に加え、ΔD設定を追加する。
The above black and white determination will be described in more detail with reference to FIG. The basic algorithm for document size detection is that when the platen is open, the white part of the document is white (reflected light is reflected), and the non-documented part outside the document is black (no reflected light). Is used. That is, in FIG. 11, it is determined that there is a document that is brighter than TH and that there is no document when it is darker than TH. However, as shown in FIG. 11, in the case of a document having a dark background density, TH is not exceeded even if the inside of the document is read, and it is erroneously determined that there is no document. To prevent this, as in step S16 of FIG. 10, patches read at times T1 and T2 are set as PAT1 and PAT2, and a difference value between PAT1 and PAT2 is obtained. If there is a difference of ΔD or more, TH is exceeded. Even if there is no document, it is determined that there is a manuscript. As shown in FIG. 6, as a parameter setting from the CPU 1004, ΔD setting is added in addition to the start / width in the main scanning direction and the start / width in the sub scanning direction.

次に、図5のフローチャートにおける画像データ解析(ステップS6)について、図12に従ってさらに詳細に説明する。読み取りパッチとして、図9に示すようにL(n)INとL(n)JUDGEとを用いている。L(n)のnは、ラインセンサ読み取りスタートしてから何回目の読み取りかを示し(時間経過を示す)、INとJUDGEは主走査方向の位置を示し、INが検知対象原稿の種類に関係なくすべて原稿内に入る主走査位置を、JUDGEが原稿により原稿内/外が切り換わる主走査位置を示している。   Next, the image data analysis (step S6) in the flowchart of FIG. 5 will be described in more detail with reference to FIG. As a reading patch, L (n) IN and L (n) JUDGE are used as shown in FIG. N in L (n) indicates the number of times of reading since the start of line sensor reading (indicating the passage of time), IN and JUDGE indicate positions in the main scanning direction, and IN is related to the type of document to be detected. Rather, the main scanning position where all the documents enter the document is shown, and JUDGE indicates the main scanning position where the document is switched inside / outside the document.

検知フローを開始した後、はじめに、検知回数Nを設定し、初期値としてn=1を設定する(ステップS21)。そして、nが検知回数を超えていないかどうか判断し(ステップS22)、nが設定した検知回数N以下の場合(ステップS22/YES)はL(n)INが白かどうかを判定する(ステップS23)。L(n)INが白でないとき(ステップS23/NO)は原稿内が黒でありランプオフと判断し、n=n+1として(ステップS24)検知回数Nとの比較を再度行う(ステップS22)。これを繰り返してL(n)INが白とならずにnがNを超えた場合(ステップS22/NO)は検知不可と判断し検知フローを抜ける(ステップS25)。   After starting the detection flow, first, the number of detections N is set, and n = 1 is set as an initial value (step S21). Then, it is determined whether or not n exceeds the number of detections (step S22). If n is equal to or less than the set number of detections N (step S22 / YES), it is determined whether L (n) IN is white (step S22). S23). When L (n) IN is not white (step S23 / NO), it is determined that the inside of the document is black and the lamp is off, and n = n + 1 is set (step S24), and the comparison with the number of detections N is performed again (step S22). If this is repeated and L (n) IN does not become white and n exceeds N (step S22 / NO), it is determined that detection is impossible and the detection flow is exited (step S25).

そして、Ln(IN)の判定で判定結果が白だった場合(ステップs23/YES)、L(n)JUDGEの判定結果を検知候補とする(ステップS26)。続いて、検知候補を得たnに1インクリメント(n=n+1)し(ステップS27)、次の読み取り結果の判定、すなわちL(n)JUDGEが黒かどうかを判定する(ステップS28)。L(n)JUDGEが白であった場合(ステップS28/NO)、圧板が閉じてしまった可能性が高いため、ここでの判断は行わず前回検知候補だった結果をそのまま用いることとする。つまり、n=n−1として(ステップS30)このnを代入したL(n)JUDGEの判定結果を検知候補とする(ステップS29)。他方、L(n)JUDGEが黒であった場合(ステップS28/YES)は、前回よりもランプがより安定していると考えられるため、今回の判定結果を用いることとする(ステップS29)。そして、原稿サイズ検知フローを終了する。   If the determination result is white in the determination of Ln (IN) (step s23 / YES), the determination result of L (n) JUDGE is set as a detection candidate (step S26). Subsequently, the detection candidate obtained is incremented by 1 (n = n + 1) (step S27), and the next reading result is determined, that is, whether L (n) JUDGE is black (step S28). If L (n) JUDGE is white (step S28 / NO), there is a high possibility that the pressure plate has been closed. Therefore, the determination is not made here and the result of the previous detection candidate is used as it is. In other words, n = n−1 is set (step S30), and the determination result of L (n) JUDGE to which n is substituted is set as a detection candidate (step S29). On the other hand, if L (n) JUDGE is black (step S28 / YES), it is considered that the lamp is more stable than the previous time, so that the current determination result is used (step S29). Then, the document size detection flow ends.

以上、本実施形態における原稿サイズ検知に関する基本シーケンス及びアルゴリズムについて、図5から図12を用いて説明してきたが、これから原稿サイズ検知のフロー例を実施例として述べる。   The basic sequence and algorithm relating to document size detection in the present embodiment have been described above with reference to FIGS. 5 to 12. An example flow of document size detection will now be described as an example.

[実施例1]
図13は、第1の実施例における原稿サイズ検知動作の一連の流れを示したフローチャートである。本実施例では、原稿サイズの検知位置が連続している場合におけるサイズ検知動作を行っている。
[Example 1]
FIG. 13 is a flow chart showing a series of document size detection operations in the first embodiment. In this embodiment, the size detection operation is performed when the document size detection positions are continuous.

原稿サイズ検知開始のトリガイベント(圧板閉またはユーザによる読み取り開始)が発生すると、原稿サイズ検知の動作を開始する。原稿サイズ検知動作の開始後、原稿サイズ検知のために必要な準備を行う(ステップS101)。このステップでは、図7、図8に示すような原稿サイズ検知のための原稿読み取りタイミングの設定、及び必要に応じてシェーディング補正に必要な準備設定を実行する。また、ここで原稿読み取りのために原稿の照射を開始する。原稿サイズ検知に必要な準備を行った後、キャリッジを正方向に駆動開始する(ステップS102)。図13では、ステップS101及びステップS102は順次処理するような記載となっているが、仮にキャリッジが原稿先端位置(若しくは副走査の原稿サイズ検知開始位置)に到達するまでにステップS101の動作が終了するのであれば特に順序の規定はなく、並行処理することも可能である。   When a trigger event for starting the document size detection (pressure plate closing or reading start by the user) occurs, the document size detection operation is started. After the start of the document size detection operation, preparations necessary for document size detection are made (step S101). In this step, setting of document reading timing for document size detection as shown in FIGS. 7 and 8 and preparation setting necessary for shading correction as necessary are executed. Further, irradiation of the original is started here for reading the original. After making preparations necessary for detecting the document size, the carriage starts to be driven in the forward direction (step S102). In FIG. 13, step S101 and step S102 are described as being sequentially processed, but the operation of step S101 ends until the carriage reaches the document leading edge position (or the sub-scan document size detection start position). If so, the order is not particularly specified, and parallel processing is also possible.

続いて、キャリッジ駆動後、原稿の読み取りを開始する(ステップS103)。当該原稿読み取りは、一定ライン数以上の画像データを読み取ることで行う。なお、このときキャリッジは正方向に移動している。そして、原稿読み取りで一定ライン数以上の画像データを取得した時点で、原稿サイズを解析するために読み取った原稿画像データの取り出しを行う(ステップS104)。本実施例において、読み取った原稿画像データの取り出しは、図4のCPU1004から複数ラインメモリ1012に保存されたデータを読み出すことで行われる。   Subsequently, after the carriage is driven, reading of the document is started (step S103). The document reading is performed by reading image data of a certain number of lines or more. At this time, the carriage is moving in the forward direction. Then, when the image data of a predetermined number of lines or more is acquired by reading the document, the read document image data is taken out in order to analyze the document size (step S104). In this embodiment, the read document image data is extracted by reading data stored in the multi-line memory 1012 from the CPU 1004 in FIG.

次に、取り出した画像データを解析し(ステップS105)、原稿有無の判定を行う(ステップS106)。ここで画像データを解析する対象は、主走査方向のある特定位置の領域である。これは図14に示した検知位置のうち1の位置に相当する。原稿有無の判定で原稿なしと判定された場合(ステップS106/NO)には、原稿サイズを決定する(ステップS107)。原稿サイズの決定とは、具体的には図4のCPU1004に接続されたプログラム実行用のメモリであるRAM1006に原稿サイズ情報を保存しておくことであり、以降は必要に応じて決定した原稿サイズ情報を読み出して利用する。他方、原稿有無の判定で原稿ありと判定された場合(ステップS106/YES)には、原稿読み取りを行って再度画像データを取得する(ステップS103)。   Next, the extracted image data is analyzed (step S105), and the presence / absence of a document is determined (step S106). Here, an object for analyzing image data is a region at a specific position in the main scanning direction. This corresponds to one of the detection positions shown in FIG. When it is determined that there is no original in the determination of the presence / absence of the original (step S106 / NO), the original size is determined (step S107). Specifically, the determination of the document size is to store the document size information in the RAM 1006 which is a program execution memory connected to the CPU 1004 in FIG. 4, and thereafter, the document size determined as necessary. Read and use information. On the other hand, when it is determined that there is a document (step S106 / YES), the document is read and image data is acquired again (step S103).

原稿サイズが決定した後、キャリッジをサイズ検知で走査した方向とは逆方向に駆動させ(ステップS108)、原稿の本スキャンを開始する(ステップS109)。原稿のスキャン動作は、キャリッジが原稿先端(原稿後端よりサイズ検知のためのスキャンを開始し、これとは逆方向に読んでいるため原稿先端が本スキャンの最終スキャン位置となる)に到達するまで継続する(ステップS110/NO)。原稿後端に到達した後(ステップS110/YES)は、原稿サイズ検知動作を完了する(ステップS111)。原稿サイズ検知動作の完了とは、具体的にはキャリッジの駆動停止、ランプの照射終了、後処理等である。以上の動作をもって原稿サイズ検知動作及び本スキャン動作を終了する。   After the document size is determined, the carriage is driven in the direction opposite to the direction scanned by size detection (step S108), and the original scan of the document is started (step S109). In the document scanning operation, the carriage reaches the leading edge of the document (starting scanning for size detection from the trailing edge of the document and reading in the opposite direction, so the leading edge of the document is the final scan position of the main scan). (Step S110 / NO). After reaching the trailing edge of the document (step S110 / YES), the document size detection operation is completed (step S111). The completion of the document size detection operation specifically includes stop of carriage drive, end of lamp irradiation, post-processing, and the like. With the above operation, the document size detection operation and the main scanning operation are completed.

取り出した画像データの解析が行われず原稿サイズの判定に失敗した場合(ステップS105/NO)には、原稿サイズを決定せず、原稿サイズ検知動作を完了する(ステップS111)。原稿サイズの判定が失敗する例としては、真黒な原稿であったり、原稿台に対する外光の影響や原稿照射用ランプの点灯状態(ランプをONしたが光量が安定していない状態で読み取りを実行する等)によって、読み取りデータから原稿のサイズを判定することができなかったりする場合が考えられる。   If the extracted image data is not analyzed and the document size determination fails (step S105 / NO), the document size detection operation is completed without determining the document size (step S111). Examples of document size determination failures include a black document, the influence of external light on the document table, and the illumination state of the document illumination lamp (reading is performed when the lamp is on but the amount of light is not stable) For example, the size of the document cannot be determined from the read data.

[実施例2]
図15は、第2の実施例における原稿サイズ検知動作の一連の流れを示したフローチャートである。実施例1は、原稿サイズの検知位置が連続している場合におけるサイズ検知を行っていたが、本実施例では、該検知位置が離間している場合におけるサイズ検知動作を行っている。
[Example 2]
FIG. 15 is a flowchart showing a series of document size detection operations in the second embodiment. In the first embodiment, the size detection is performed when the document size detection positions are continuous, but in this embodiment, the size detection operation is performed when the detection positions are separated from each other.

原稿サイズ検知開始のトリガイベント(圧板閉またはユーザによる読み取り開始)が発生すると、原稿サイズ検知の動作を開始する。原稿サイズ検知動作の開始後、原稿サイズ検知のために必要な準備を行う(ステップS201)。原稿サイズ検知に必要な準備については、実施例1と同様である。また、ここで原稿読み取りのために原稿の照射を開始する。原稿サイズ検知に必要な準備を行った後、キャリッジを正方向に駆動開始する(ステップS202)。ステップS201及びステップS202での処理については、実施例1と同様に、仮にキャリッジが原稿先端位置(若しくは副走査の原稿サイズ検知開始位置)に到達するまでにステップS201の動作が終了するのであれば特に順序の規定はなく、並行処理することも可能である。   When a trigger event for starting the document size detection (pressure plate closing or reading start by the user) occurs, the document size detection operation is started. After starting the document size detection operation, preparations necessary for document size detection are made (step S201). Preparations necessary for document size detection are the same as those in the first embodiment. Further, irradiation of the original is started here for reading the original. After making necessary preparations for document size detection, the carriage is started to be driven in the forward direction (step S202). As for the processing in step S201 and step S202, as in the first embodiment, if the operation of step S201 is completed before the carriage reaches the document leading edge position (or the subscanning document size detection start position). There is no particular order, and parallel processing is also possible.

そして、キャリッジがあらかじめ決められた原稿サイズ検知位置に到達するまで(ステップS203/NO)原稿の読み取りを待機する。なお、あらかじめ決められた原稿サイズ検知位置は、図14に示すように、定型原稿サイズを判断可能な位置に設定しており、図14の検知位置のうち、A、B、Cの位置に相当する。そして、検知位置に到達した後(ステップS203/YES)、原稿の読み取りを開始する(ステップS204)。当該原稿読み取りは、一定ライン数以上の画像データを読み取ることで行い、このときキャリッジは正方向に移動している。続いて、原稿読み取りで一定ライン数以上の画像データを取得した時点で、原稿サイズを解析するために読み取った原稿画像データの取り出しを行う(ステップS205)。本実施例において、読み取った原稿画像データの取り出しは、図4のCPU1004から複数ラインメモリ1012に保存されたデータを読み出すことで行われる。   Then, until the carriage reaches a predetermined document size detection position (step S203 / NO), it waits for reading of the document. As shown in FIG. 14, the predetermined document size detection position is set to a position where the standard document size can be determined, and corresponds to the positions A, B, and C among the detection positions in FIG. To do. Then, after reaching the detection position (step S203 / YES), reading of the document is started (step S204). The document reading is performed by reading image data of a certain number of lines or more. At this time, the carriage moves in the forward direction. Subsequently, when the image data of a predetermined number of lines or more is acquired by reading the document, the read document image data is taken out in order to analyze the document size (step S205). In this embodiment, the read document image data is extracted by reading data stored in the multi-line memory 1012 from the CPU 1004 in FIG.

次に、取り出した画像データを解析し(ステップS206)、原稿有無の判定を行う(ステップS207)。ここで画像データを解析する対象は、主走査方向のある特定位置の領域である。これは図14に示した検知位置のうち1の位置に相当する。原稿有無の判定で原稿なしと判定された場合(ステップS207/NO)には、原稿サイズを決定し(ステップS208)、原稿有無の判定で原稿ありと判定された場合(ステップS207/YES)には、原稿読み取りを行って再度画像データを取得する(ステップS204)。なお、原稿サイズ決定の具体的動作は、実施例1と同様である。   Next, the extracted image data is analyzed (step S206), and the presence / absence of a document is determined (step S207). Here, an object for analyzing image data is a region at a specific position in the main scanning direction. This corresponds to one of the detection positions shown in FIG. If it is determined that there is no document (NO in step S207), the document size is determined (step S208), and if it is determined that there is a document (YES in step S207). Reads the document and obtains the image data again (step S204). The specific operation for determining the document size is the same as in the first embodiment.

原稿サイズが決定した後、キャリッジをサイズ検知で走査した方向とは逆方向に駆動させ(ステップS209)、原稿の本スキャンを開始する(ステップS210)。原稿のスキャン動作は、キャリッジが原稿先端(原稿後端よりサイズ検知のためのスキャンを開始し、これとは逆方向に読んでいるため原稿先端が本スキャンの最終スキャン位置となる)に到達するまで継続する(ステップS211/NO)。原稿後端に到達した後(ステップS211/YES)は、原稿サイズ検知動作を完了する(ステップS212)。他方、取り出した画像データの解析が行われず原稿サイズの判定に失敗した場合(ステップS206/NO)には、原稿サイズを決定せず、原稿サイズ検知動作を完了する(ステップS212)。原稿サイズ検知動作の完了や原稿サイズの判定が失敗する例については、実施例1と同様である。   After the document size is determined, the carriage is driven in the direction opposite to the direction scanned by size detection (step S209), and the original scan of the document is started (step S210). In the document scanning operation, the carriage reaches the leading edge of the document (starting scanning for size detection from the trailing edge of the document and reading in the opposite direction, so the leading edge of the document is the final scan position of the main scan). (Step S211 / NO). After reaching the trailing edge of the document (step S211 / YES), the document size detection operation is completed (step S212). On the other hand, when the extracted image data is not analyzed and determination of the document size fails (step S206 / NO), the document size detection operation is completed without determining the document size (step S212). An example in which the document size detection operation is completed or the document size determination fails is the same as in the first embodiment.

[実施例3]
図16は、第3の実施例における原稿サイズ検知動作の一連の流れを示したフローチャートである。実施例1は原稿サイズの検知位置が連続している場合のサイズ検知動作(以下、連続サイズ検知動作という)、実施例2は該検知位置が離間している場合のサイズ検知動作(以下、離間サイズ検知動作という)であったが、本実施例は、ユーザの設定に基づいて2つのサイズ検知動作方式のうちいずれかを選択して原稿サイズ検知を行うものである。
[Example 3]
FIG. 16 is a flowchart showing a series of document size detection operations in the third embodiment. Example 1 is a size detection operation when the document size detection positions are continuous (hereinafter referred to as continuous size detection operation), and Example 2 is a size detection operation when the detection positions are separated (hereinafter referred to as separation). In this embodiment, one of the two size detection operation methods is selected based on the user setting to detect the document size.

まず、連続サイズ検知動作を実施するかあるいは離間サイズ検知動作を実施するかといった原稿サイズ検知方式について、あらかじめユーザが操作パネル上から入力する。入力された設定値は不揮発RAMに保存される。そして、原稿サイズ検知開始のトリガイベント(圧板閉またはユーザによる読み取り開始)が発生すると、原稿サイズ検知の動作を開始する。原稿サイズ検知動作の開始後、原稿サイズ検知のために必要な準備を行う(ステップS301)。原稿サイズ検知に必要な準備については、実施例1や実施例2と同様である。また、ここで原稿読み取りのために原稿の照射を開始する。原稿サイズ検知に必要な準備を行った後、キャリッジを正方向に駆動開始する(ステップS302)。ステップS301及びステップS302での処理については、実施例1や実施例2と同様に、仮にキャリッジが原稿先端位置(若しくは副走査の原稿サイズ検知開始位置)に到達するまでにステップS301の動作が終了するのであれば特に順序の規定はなく、並行処理することも可能である。   First, a user inputs in advance from the operation panel a document size detection method such as whether to perform a continuous size detection operation or a separation size detection operation. The input set value is stored in the nonvolatile RAM. When a trigger event for starting document size detection (press plate closing or reading start by the user) occurs, the document size detection operation is started. After the start of the document size detection operation, preparations necessary for document size detection are made (step S301). Preparations necessary for document size detection are the same as those in the first and second embodiments. Further, irradiation of the original is started here for reading the original. After making preparations necessary for detecting the document size, the carriage starts to be driven in the forward direction (step S302). As for the processing in step S301 and step S302, as in the first and second embodiments, the operation in step S301 ends until the carriage reaches the document leading edge position (or the subscanning document size detection start position). If so, the order is not particularly specified, and parallel processing is also possible.

そして、あらかじめ設定された原稿サイズ検知方式を参照し、離散サイズ検知動作であるか連続サイズ検知動作であるか確認する(ステップS303)。離散サイズ検知動作であれば(ステップS303/YES)原稿サイズ検知位置の判定を行い(ステップS304)、連続サイズ検知動作であれば(ステップS303/NO)原稿読み取りを実施する(ステップS305)。原稿サイズ検知位置の判定では、キャリッジがあらかじめ決められた原稿サイズ検知位置に到達するまで(ステップS304/NO)原稿の読み取りを待機する。なお、あらかじめ決められた原稿サイズ検知位置については、実施例2と同様である。そして、検知位置に到達した後(ステップS304/YES)、原稿の読み取りを開始する(ステップS305)。当該原稿読み取りは、一定ライン数以上の画像データを読み取ることで行い、このときキャリッジは正方向に移動している。続いて、原稿読み取りで一定ライン数以上の画像データを取得した時点で、原稿サイズを解析するために読み取った原稿画像データの取り出しを行う(ステップS306)。原稿画像データの取り出しの具体的動作については、実施例1や実施例2と同様である。   Then, referring to a preset document size detection method, it is confirmed whether the operation is a discrete size detection operation or a continuous size detection operation (step S303). If it is a discrete size detection operation (step S303 / YES), the document size detection position is determined (step S304), and if it is a continuous size detection operation (step S303 / NO), document reading is performed (step S305). In the determination of the document size detection position, reading of the document is waited until the carriage reaches a predetermined document size detection position (NO in step S304). The predetermined document size detection position is the same as that in the second embodiment. Then, after reaching the detection position (step S304 / YES), reading of the document is started (step S305). The document reading is performed by reading image data of a certain number of lines or more. At this time, the carriage moves in the forward direction. Subsequently, when the image data of a predetermined number of lines or more is acquired by reading the document, the read document image data is extracted to analyze the document size (step S306). The specific operation for extracting document image data is the same as that in the first and second embodiments.

次に、取り出した画像データを解析し(ステップS307)、原稿有無の判定を行う(ステップS308)。原稿有無の判定で原稿なしと判定された場合(ステップS308/NO)には、原稿サイズを決定し(ステップS309)、原稿有無の判定で原稿ありと判定された場合(ステップS308/YES)には、原稿読み取りを行って再度画像データを取得する(ステップS305)。なお、画像データの解析対象や原稿サイズ決定の具体的動作については、実施例1や実施例2と同様である。そして、原稿サイズが決定した後、キャリッジをサイズ検知で走査した方向とは逆方向に駆動させ(ステップS310)、原稿の本スキャンを開始する(ステップS311)。原稿のスキャン動作は、キャリッジが原稿先端(原稿後端よりサイズ検知のためのスキャンを開始し、これとは逆方向に読んでいるため原稿先端が本スキャンの最終スキャン位置となる)に到達するまで継続する(ステップS312/NO)。原稿後端に到達した後(ステップS312/YES)は、原稿サイズ検知動作を完了する(ステップS313)。他方、取り出した画像データの解析が行われず原稿サイズの判定に失敗した場合(ステップS307/NO)には、原稿サイズを決定せず、原稿サイズ検知動作を完了する(ステップS313)。なお、原稿サイズ検知動作の完了や原稿サイズの判定が失敗する例については、実施例1や実施例2と同様である。   Next, the extracted image data is analyzed (step S307), and the presence / absence of a document is determined (step S308). If it is determined that there is no document (NO in step S308), the document size is determined (step S309), and if it is determined that there is a document (YES in step S308). Reads the document and acquires the image data again (step S305). Note that the specific object of image data analysis and document size determination are the same as in the first and second embodiments. After the document size is determined, the carriage is driven in the direction opposite to the direction scanned by size detection (step S310), and the original scan of the document is started (step S311). In the document scanning operation, the carriage reaches the leading edge of the document (starting scanning for size detection from the trailing edge of the document and reading in the opposite direction, so the leading edge of the document is the final scan position of the main scan). (Step S312 / NO). After reaching the trailing edge of the document (step S312 / YES), the document size detection operation is completed (step S313). On the other hand, when the extracted image data is not analyzed and determination of the document size fails (step S307 / NO), the document size detection operation is completed without determining the document size (step S313). An example in which the document size detection operation is completed or the document size determination fails is the same as in the first and second embodiments.

なお、実施例1から実施例3における一連の動作のフローチャートで、決定された原稿サイズを操作パネル上に表示するようにしてもよい。表示するサイズは、定型の原稿サイズ(A4縦やA3横等)による表示のほか、実際に検出した長さ(297mm×420mm等)での表示が可能である。   It should be noted that the determined document size may be displayed on the operation panel in the flowchart of a series of operations in the first to third embodiments. The display size can be displayed in a standard document size (A4 portrait, A3 landscape, etc.) or in a length actually detected (297 mm × 420 mm, etc.).

上述した実施形態は、本発明の好適な実施形態であり、上記実施形態のみに本発明の範囲を限定するものではなく、本発明の要旨を逸脱しない範囲において種々の変更を施した形態での実施が可能である。   The above-described embodiment is a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention to the above-described embodiment alone, but in a form in which various modifications are made without departing from the gist of the present invention. Implementation is possible.

すなわち、上記した実施形態における画像読取装置は、プログラムの命令によりコンピュータで実行される処理、手段、機能によって動作する。当該プログラムは、コンピュータの各構成要素に指令を送り、先に述べたような所定の処理や機能、例えば、IPUにより、読み取った原稿の画像データを取り出して解析し解析結果に基づいて原稿サイズの検知を行い、検知成功のときに原稿サイズを決定し検知失敗のときには原稿サイズを決定しないで検知動作を終了し、CPUにより、原稿サイズの検知直後にキャリッジをサイズ検知での走査と逆方向に駆動させてスキャナに原稿の本スキャンを開始させる処理を行う。このように、上記実施形態における各処理や手段は、プログラムとコンピュータとが協働した具体的手段によって実現されるものである。   That is, the image reading apparatus in the above-described embodiment operates by processing, means, and functions executed by a computer according to program instructions. The program sends a command to each component of the computer, extracts the image data of the read original by the predetermined processing and functions as described above, for example, the IPU, analyzes it, and sets the original size based on the analysis result. When the detection is successful, the document size is determined. When the detection is unsuccessful, the detection operation is terminated without determining the document size, and the CPU moves the carriage in the direction opposite to the scanning for size detection immediately after the document size is detected. A process for driving the scanner to start a main scan of the document is performed. As described above, the processes and means in the above-described embodiment are realized by specific means in which the program and the computer cooperate.

そして、上記実施形態の機能を実現するソフトウェアのプログラムコードを記録したコンピュータ読み取り可能な記録媒体、すなわち記憶メディアを介して、例えば画像読取装置のコンピュータ(CPU)が記憶メディアに格納されたプログラムコードを読み出し実行することによっても、本発明の目的は達成される。また、プログラムは、記録メディアを介さず、通信回線を通じて直接にコンピュータにロードし実行することもでき、これによっても同様に本発明の目的は達成される。   Then, for example, a computer (CPU) of the image reading apparatus stores the program code stored in the storage medium via a computer-readable recording medium that records the program code of the software that realizes the functions of the above-described embodiment, that is, the storage medium. The object of the present invention is also achieved by executing the reading. Further, the program can be loaded and executed directly on a computer through a communication line without going through a recording medium, and the object of the present invention can be achieved similarly.

この場合、記憶メディアから読み出された又は通信回線を通じてロードし実行されたプログラムコード自体が前述の実施形態の機能を実現することになる。そして、そのプログラムコードを記憶した記憶メディアは本発明を構成する。   In this case, the program code itself read from the storage medium or loaded and executed through the communication line realizes the functions of the above-described embodiment. And the storage medium which memorize | stored the program code comprises this invention.

また、プログラムコードを供給するための記憶メディアとしては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、不揮発性のメモリカード、ROM、磁気テープ等を用いることができる。   Examples of the storage medium for supplying the program code include a floppy (registered trademark) disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a nonvolatile memory card, a ROM, and a magnetic tape. Can be used.

上述した実施形態によれば、原稿サイズが確定した直後に、原稿の本スキャンを開始することで、原稿の読み取り時間を短縮することが可能となる。また、サイズ検知が失敗したときには原稿サイズを決定しないで検知動作を終了することで、ランプのオン/オフ状態による誤動作の可能性を排除して原稿サイズ検知の精度を向上させることが可能となる。   According to the embodiment described above, it is possible to shorten the document reading time by starting a main scan of a document immediately after the document size is determined. In addition, when the size detection fails, the detection operation is terminated without determining the document size, thereby eliminating the possibility of malfunction due to the on / off state of the lamp and improving the accuracy of the document size detection. .

また、上述した実施形態によれば、原稿サイズの検知位置に対して連続的に原稿サイズ判定を行うことで、より正確な原稿サイズを検知することが可能となる。   Further, according to the above-described embodiment, it is possible to detect the document size more accurately by continuously determining the document size with respect to the document size detection position.

また、上述した実施形態によれば、原稿サイズの検知位置に対して離散的に原稿サイズ判定することで、データ処理量が大幅に減るため、処理時間を短縮することが可能となる。これにより、連続判定時に比べてキャリッジの速度を上げることが可能であるため、結果的に圧板の開いている時間(サイズを判定している時間)を短くすることが期待できる。   Further, according to the above-described embodiment, the data processing amount is greatly reduced by discretely determining the document size with respect to the detection position of the document size, so that the processing time can be shortened. As a result, the carriage speed can be increased as compared with the continuous determination, and as a result, it can be expected that the time during which the pressure plate is opened (the time during which the size is determined) is shortened.

また、上述した実施形態によれば、正確なサイズ検知を目的とした動作か、あるいは、処理時間の短縮化を目的とした動作かを適切に選択することで、それぞれのメリットを合わせ持った画像読取装置を提供することが可能となる。   Further, according to the above-described embodiment, an image having both merits can be obtained by appropriately selecting an operation for the purpose of accurate size detection or an operation for the purpose of shortening the processing time. A reading device can be provided.

また、上述した実施形態によれば、ユーザの設定により原稿サイズ検知方式を選択できるようにし、詳細な原稿サイズをユーザに通知するようにしたことで、ユーザのニーズに合致した利便性の高い画像読取装置を提供することが可能となる。   In addition, according to the above-described embodiment, it is possible to select a document size detection method according to user settings, and to notify the user of a detailed document size, so that a highly convenient image that meets the user's needs. A reading device can be provided.

本発明の実施形態に係る画像読取装置の概略構成を示す断面図である。1 is a cross-sectional view illustrating a schematic configuration of an image reading apparatus according to an embodiment of the present invention. 本発明の実施形態に係る画像読取装置の機械構成を示す斜視図である。1 is a perspective view illustrating a mechanical configuration of an image reading apparatus according to an embodiment of the present invention. 本発明の実施形態に係る画像形成装置のハードウェア構成図である。1 is a hardware configuration diagram of an image forming apparatus according to an embodiment of the present invention. 本発明の実施形態に係る画像形成装置のハードウェア構成図である。1 is a hardware configuration diagram of an image forming apparatus according to an embodiment of the present invention. 本発明の実施形態における原稿サイズ検知動作の流れを示したフローチャートである。5 is a flowchart showing a flow of a document size detection operation in the embodiment of the present invention. 本発明の実施形態における原稿画像データの解析を説明するための図で、メモリコントロールの動作を表したものである。FIG. 5 is a diagram for explaining analysis of document image data in the embodiment of the present invention, and illustrates an operation of memory control. 本発明の実施形態における原稿画像データの解析を説明するための図で、副走査方向のタイミングチャートを表したものである。FIG. 6 is a diagram for explaining analysis of document image data in the embodiment of the present invention, and illustrates a timing chart in the sub-scanning direction. 本発明の実施形態における原稿画像データの解析を説明するための図で、主走査方向のタイミングチャートを表したものである。FIG. 5 is a diagram for explaining analysis of document image data in the embodiment of the present invention, and illustrates a timing chart in the main scanning direction. 本発明の実施形態における原稿画像データの解析を説明するための図で、メモリ書き込み領域を表したものである。FIG. 5 is a diagram for explaining analysis of document image data in the embodiment of the present invention and represents a memory writing area. 本発明の実施形態における白黒判定動作の流れを示したフローチャートである。It is the flowchart which showed the flow of the monochrome determination operation | movement in embodiment of this invention. 本発明の実施形態における白黒判定を説明するための図である。It is a figure for demonstrating the black-and-white determination in embodiment of this invention. 本発明の実施形態における原稿画像データの解析動作の流れを示したフローチャートである。6 is a flowchart showing a flow of an original image data analysis operation in the embodiment of the present invention. 本発明の実施形態における原稿サイズ検知動作及び原稿読み取り動作の流れを示したフローチャートである。6 is a flowchart showing a flow of a document size detection operation and a document reading operation in the embodiment of the present invention. 本発明の実施形態における原稿サイズの検知位置を説明するための図である。FIG. 5 is a diagram for explaining a document size detection position in the embodiment of the present invention. 本発明の実施形態における原稿サイズ検知動作及び原稿読み取り動作の流れを示したフローチャートである。6 is a flowchart showing a flow of a document size detection operation and a document reading operation in the embodiment of the present invention. 本発明の実施形態における原稿サイズ検知動作及び原稿読み取り動作の流れを示したフローチャートである。6 is a flowchart showing a flow of a document size detection operation and a document reading operation in the embodiment of the present invention.

符号の説明Explanation of symbols

1 コンタクトガラス
2 ランプ
3 第1ミラー
4 第2ミラー
5 第3ミラー
6 第1キャリッジ
7 第2キャリッジ
8 レンズ
9 CCD
10 原稿
11 駆動ワイヤ
12 プーリ
13 ホームポジションセンサ
14 駆動軸
15 ワイヤプーリ
16 タイミングプーリ
17 タイミングベルト
18 モータ
1001 スキャナ
1002 IPU
1003 プリンタ
1004 CPU
1005 操作部
1006 RAM
1011 画像処理モジュール
1012 複数ラインメモリ
1013 メモリコントロール
DESCRIPTION OF SYMBOLS 1 Contact glass 2 Lamp 3 1st mirror 4 2nd mirror 5 3rd mirror 6 1st carriage 7 2nd carriage 8 Lens 9 CCD
DESCRIPTION OF SYMBOLS 10 Document 11 Drive wire 12 Pulley 13 Home position sensor 14 Drive shaft 15 Wire pulley 16 Timing pulley 17 Timing belt 18 Motor 1001 Scanner 1002 IPU
1003 Printer 1004 CPU
1005 Operation unit 1006 RAM
1011 Image processing module 1012 Multiple line memory 1013 Memory control

Claims (4)

原稿を照射する原稿照射手段と、
前記原稿照射手段により前記原稿を走査して該原稿の複数ラインの画像データを取得し、該画像データを用いて前記原稿の副走査サイズを判定し原稿サイズを確定する原稿サイズ検知手段と、
前記原稿サイズ検知手段により確定した原稿サイズに基づいて前記原稿を走査して原稿画像を読み取る原稿読取手段と、
前記読み取られた原稿画像に対して異なる時間で読み取られた2次元方向の複数パッチの差分値を算出する算出手段と、
前記差分値が所定の値以上である場合には、前記原稿が存在すると判断する判断手段とを有し、
前記原稿サイズ検知手段は、前記原稿の副走査サイズの判定に失敗した場合には原稿サイズを確定せずに原稿サイズ検知動作を終了し、
前記原稿読取手段は、前記原稿サイズ検知手段により原稿サイズが確定した直後に、前記原稿サイズ検知手段の走査方向とは逆方向に前記原稿を走査して原稿画像を読み取り、
前記原稿サイズ検知手段は、連続する判定位置において副走査サイズの判定を行うこと、又は、離間する判定位置において副走査サイズの判定を行うことが可能に構成されており、
前記原稿サイズ検知手段が行う判定方法を、前記連続する判定位置での判定若しくは前記離間する判定位置での判定に切り換える判定方法切り換え手段を有することを特徴とする画像読取装置。
A document irradiation means for irradiating a document;
A document size detecting unit that scans the document by the document irradiation unit to acquire image data of a plurality of lines of the document, determines a sub-scanning size of the document by using the image data, and determines a document size;
A document reading unit that scans the document based on the document size determined by the document size detection unit and reads a document image;
Calculating means for calculating a difference value of a plurality of patches in two-dimensional directions read at different times with respect to the read document image;
Determining means for determining that the document exists when the difference value is equal to or greater than a predetermined value;
The document size detection means ends the document size detection operation without determining the document size when the determination of the sub-scanning size of the document fails.
The document reading unit scans the document in a direction opposite to the scanning direction of the document size detection unit immediately after the document size is determined by the document size detection unit, and reads a document image.
The document size detection unit is configured to be able to determine the sub-scanning size at consecutive determination positions, or to determine the sub-scanning size at determination positions that are separated from each other.
An image reading apparatus comprising: a determination method switching unit that switches a determination method performed by the document size detection unit to determination at the continuous determination position or determination at the separated determination position.
前記判定方法切り換え手段は、ユーザの指定により切り換えを行うことを特徴とする請求項に記載の画像読取装置。 The image reading apparatus according to claim 1 , wherein the determination method switching unit performs switching according to a user designation. 前記原稿サイズ検知手段により確定された原稿サイズをユーザに通知する原稿サイズ通知手段を有することを特徴とする請求項1又は2に記載の画像読取装置。   The image reading apparatus according to claim 1, further comprising a document size notifying unit that notifies a user of a document size determined by the document size detecting unit. 請求項1から3のいずれか1項に記載の画像読取装置を搭載したことを特徴とする画像形成装置。   An image forming apparatus comprising the image reading apparatus according to claim 1.
JP2007150432A 2007-06-06 2007-06-06 Image reading apparatus and image forming apparatus Expired - Fee Related JP4963441B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007150432A JP4963441B2 (en) 2007-06-06 2007-06-06 Image reading apparatus and image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007150432A JP4963441B2 (en) 2007-06-06 2007-06-06 Image reading apparatus and image forming apparatus

Publications (2)

Publication Number Publication Date
JP2008306366A JP2008306366A (en) 2008-12-18
JP4963441B2 true JP4963441B2 (en) 2012-06-27

Family

ID=40234712

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007150432A Expired - Fee Related JP4963441B2 (en) 2007-06-06 2007-06-06 Image reading apparatus and image forming apparatus

Country Status (1)

Country Link
JP (1) JP4963441B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010284912A (en) 2009-06-12 2010-12-24 Ricoh Co Ltd Writing device, control method, and image forming apparatus
JP2022102797A (en) 2020-12-25 2022-07-07 ブラザー工業株式会社 Reading device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04369161A (en) * 1991-06-17 1992-12-21 Fuji Photo Film Co Ltd Picture reading method
JP2004260506A (en) * 2003-02-26 2004-09-16 Murata Mach Ltd Image forming apparatus
JP4662807B2 (en) * 2004-08-06 2011-03-30 株式会社リコー Document reading apparatus, image processing apparatus, image forming apparatus, and copying apparatus
JP4721735B2 (en) * 2005-03-15 2011-07-13 株式会社リコー Document reading apparatus, image processing apparatus, image forming apparatus, and copying apparatus
JP4855017B2 (en) * 2005-08-22 2012-01-18 株式会社リコー Document size detection apparatus, image reading apparatus, and image forming apparatus
JP2007081868A (en) * 2005-09-14 2007-03-29 Ricoh Co Ltd Image reading apparatus, and control method of the image reading apparatus

Also Published As

Publication number Publication date
JP2008306366A (en) 2008-12-18

Similar Documents

Publication Publication Date Title
JP2007060613A (en) Image reading device
US20100309530A1 (en) Image reading apparatus
JP2007124319A (en) Image reader
JP4963441B2 (en) Image reading apparatus and image forming apparatus
JP4504137B2 (en) Document size detection device and document reading device
JP2007110655A (en) Image reading device and image reading method
JP3747695B2 (en) Image reading device
JP6848811B2 (en) Image reader
JP2007158965A (en) Image reading apparatus, and original size detection method and program
JP2010028510A (en) Document reader
JP3453197B2 (en) Document size detector
JP2007266961A (en) Image reading apparatus, image reading method, image reading program, and record medium
JP4855017B2 (en) Document size detection apparatus, image reading apparatus, and image forming apparatus
JP4002377B2 (en) Image reading apparatus and image reading method
JP2007081868A (en) Image reading apparatus, and control method of the image reading apparatus
JP2008022285A (en) Image reading apparatus, image forming apparatus, manuscript size detecting method, manuscript size detecting program, and recording medium
JP2008028522A (en) Image reading device
JP2003219117A (en) Both-ends of original detecting device
JP2006067329A (en) Original reader and original reading method
JP2008306584A (en) Image reader
JP4936917B2 (en) Document size detection device and image reading device
JP2006237999A (en) Image processing apparatus and image processing system
JP3569059B2 (en) Image reading device
JP2007074510A (en) Image reading apparatus, image forming apparatus, image reading control method, and image reading control program
JP2000184144A (en) Image reading device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100126

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110421

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110517

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110622

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111206

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120120

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120221

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120228

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120323

R150 Certificate of patent or registration of utility model

Ref document number: 4963441

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150406

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees