[go: up one dir, main page]

JP2018129701A - Image reading device, control method thereof, and program - Google Patents

Image reading device, control method thereof, and program Download PDF

Info

Publication number
JP2018129701A
JP2018129701A JP2017021961A JP2017021961A JP2018129701A JP 2018129701 A JP2018129701 A JP 2018129701A JP 2017021961 A JP2017021961 A JP 2017021961A JP 2017021961 A JP2017021961 A JP 2017021961A JP 2018129701 A JP2018129701 A JP 2018129701A
Authority
JP
Japan
Prior art keywords
image
document
reading
image data
setting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017021961A
Other languages
Japanese (ja)
Inventor
裕史 浅野
Hirofumi Asano
裕史 浅野
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2017021961A priority Critical patent/JP2018129701A/en
Publication of JP2018129701A publication Critical patent/JP2018129701A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimiles In General (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Storing Facsimile Image Data (AREA)

Abstract

【課題】簡単な構成で、生産性を損なうことなく、表面画像の出力位置や出力範囲に対応した裏面画像の出力が可能となり、所望の出力結果を得ること。【解決手段】画像形成装置101のCPU103は、スキャンモード設定を指定し(S601)、原稿を搬送して表面読取処理と、裏面を読み取り裏面用ページバッファ502に記憶する裏面読取処理とを並列に実行し(S619〜S627)、スキャンモード設定が原稿の搬送方向先端と原稿の画像上端の位置関係が前記原稿の両面で同一となる読取設定か否かの判定結果(S610、S614、S614)に基づいて、該並列に実行された裏面読取処理にて読み取られて裏面用ページバッファ502に記憶された裏面画像データの画先又は画末に、スキャンモード設定として指定された原稿サイズと検出された原稿サイズとの搬送方向の差分量に基づく画像を付加する(S628〜S644)。【選択図】図6BA rear image corresponding to an output position and output range of a front image can be output with a simple configuration without impairing productivity, and a desired output result can be obtained. A CPU 103 of an image forming apparatus 101 designates a scan mode setting (S601), and parallelly performs front side reading processing by conveying a document and reading back side and storing the back side in a page buffer for back side 502. Executed (S619 to S627), and the determination result (S610, S614, S614) whether the scan mode setting is a reading setting in which the positional relationship between the leading edge in the document transport direction and the top edge of the document image is the same on both sides of the document. Based on the image size specified as the scan mode setting at the image destination or image end of the back image data read and stored in the back side page buffer 502 based on the back side reading process executed in parallel. An image based on the difference in the conveyance direction from the document size is added (S628 to S644). [Selection] Figure 6B

Description

本発明は、原稿の両面を同時読み取り可能な画像読取装置の制御に関する。   The present invention relates to control of an image reading apparatus capable of simultaneously reading both sides of a document.

従来、複写機やファクシミリ等に備えられる画像読取部やコンピュータ入力用のスキャナ等では、ユーザの介在なしにシート原稿における表裏両面の画像情報を自動的に読み取る画像読取装置(自動両面読取装置)が用いられている。これらの自動両面読取装置においては、原稿搬送パスの表面側/裏面側それぞれにイメージセンサを設け、1回の原稿搬送で原稿の両面を自動的に読み取る装置がある。   2. Description of the Related Art Conventionally, image reading units (automatic double-sided reading devices) that automatically read image information on both sides of a sheet document without user intervention have been used in image reading units and computer input scanners provided in copiers and facsimiles. It is used. In these automatic duplex reading apparatuses, there is an apparatus in which an image sensor is provided on each of the front side and the back side of a document transport path to automatically read both sides of the document with one document transport.

かかる自動両面読取装置によって読み取られる原稿には、原稿向き(縦長/横長)や原稿の開き方向(上下開き/左右開き)の種類により、原稿の読み取り基準端と画像基準端の位置関係が表面と裏面で異なる場合がある。後述する図8B、図9A等を参照。   The document read by such an automatic duplex reading device has a positional relationship between the document reading reference edge and the image reference edge depending on the document orientation (portrait / landscape) and the opening direction of the document (upper / lower / left / right). May differ on the back side. Refer to FIG. 8B and FIG. 9A described later.

そのため、このような両面原稿の画像を読み取って所望の出力結果を得るためには、表面画像の出力位置や出力範囲に対応した裏面画像の出力を行う等、表面画像と裏面画像との間の関係性を考慮した出力を行うことが必要となる。   Therefore, in order to read the image of such a double-sided document and obtain a desired output result, a back-side image corresponding to the output position and output range of the front-side image is output. It is necessary to output in consideration of the relationship.

特許文献1には、表面と裏面の画像を同時に読み取り、かつ、表面画像と裏面画像との関係性に対応させて、両面それぞれに対してリアルタイムに画像変換処理を施して画像データを生成する技術が提案されている。特許文献1によれば、生産性を低下させることなく所望の態様の出力結果を得ることができる。   Japanese Patent Application Laid-Open No. 2004-228688 discloses a technique for simultaneously reading front and back images and performing image conversion processing on both sides in real time in accordance with the relationship between the front and back images to generate image data. Has been proposed. According to Patent Document 1, an output result in a desired mode can be obtained without reducing productivity.

特開2005−268893号公報JP 2005-268893 A

上述したような自動両面読取装置では、ユーザにより読取設定で指定された原稿サイズよりも実際の原稿サイズが小さい場合、表面については、表面原稿の後端側に白板画像を読み取って付加し、不足分を補っている。なお、裏面については、生産性や、指定原稿サイズより実際の原稿サイズが大きい場合の読み取り範囲等を考慮し、実際の原稿サイズ分しか画像データを取り込めないように構成されている。そのため、指定原稿サイズよりも実際の原稿サイズが小さい場合、裏面側の出力画像が小さくなってしまう。   In the above-described automatic duplex reading apparatus, when the actual document size is smaller than the document size specified by the user in the scanning setting, the white plate image is read and added to the rear end side of the front document on the front side, and is insufficient. Make up for the minute. The back side is configured so that image data can be captured only for the actual document size in consideration of productivity and a reading range when the actual document size is larger than the specified document size. Therefore, when the actual document size is smaller than the designated document size, the output image on the back side becomes small.

なお、特許文献1は、自動両面読取装置による原稿表面と裏面の同時読み取りを行いつつ、両面それぞれに対して画像変換処理を施し、読み取り画像データをリアルタイムに出力するものである。このため、特許文献1では、表面、裏面それぞれの画像変換処理を並列に実行可能なプロセッサや読み取り開始前に自動で原稿サイズを検知するための原稿サイズ検知センサなどのハードウェア資源を具備することが必要となる。上述のようなハードウェア資源を具備すると、製造コストのアップを避けられない。上述のようなハードウェア資源を具備しない低コストの装置には、特許文献1の技術を適用することができない。   Japanese Patent Application Laid-Open No. 2004-228561 performs image conversion processing on both sides while simultaneously reading the front and back sides of an original by an automatic double-sided reading device, and outputs read image data in real time. For this reason, Patent Document 1 includes hardware resources such as a processor that can execute image conversion processing for each of the front and back surfaces in parallel and a document size detection sensor that automatically detects the document size before starting reading. Is required. If the hardware resources as described above are provided, an increase in manufacturing cost cannot be avoided. The technique of Patent Document 1 cannot be applied to a low-cost apparatus that does not include hardware resources as described above.

本発明は、上記の問題点を解決するためになされたものである。本発明の目的は、簡単な構成で、生産性を損なうことなく、表面画像の出力位置や出力範囲に対応した裏面画像の出力が可能となり、所望の出力結果を得ることができる仕組みを提供することである。   The present invention has been made to solve the above problems. An object of the present invention is to provide a mechanism that can output a back image corresponding to the output position and output range of a front image and obtain a desired output result with a simple configuration without impairing productivity. That is.

本発明は、原稿搬送路に沿って原稿を搬送する搬送手段と、前記原稿搬送路の両側に第1読取手段と第2読取手段を具備し、前記搬送路を搬送される原稿の両面を読取可能な画像読取装置であって、前記第2読取手段により前記原稿から読み取られた画像データを記憶するページバッファとして用いる記憶手段と、前記原稿の読取設定を指定する指定手段と、前記搬送路を搬送される原稿を検知する検知手段と、前記搬送手段により前記原稿を搬送し、前記指定手段で指定された読取設定に基づいて、前記第1読取手段による前記原稿の第1面の読取処理と、前記第2読取手段により前記原稿の第2面を読み取り前記記憶手段に確保されたページバッファに記憶する前記第2面の読取処理とを並列で実行する並列処理を制御する制御手段と、を有し、前記制御手段は、前記読取設定が前記原稿の搬送方向先端と前記原稿上の画像上端の位置関係が前記原稿の両面で同一となる読取設定か否かの判定結果に基づいて、前記並列処理にて前記第2読取手段により読み取られて前記ページバッファに記憶された前記第2面の画像データの画先又は画末に、前記読取設定として指定された原稿サイズと前記検知手段で検出された原稿サイズとの前記搬送方向の差分量に基づく画像を付加する、ことを特徴とする。   The present invention includes a transport unit that transports a document along a document transport path, a first reading unit and a second reading unit on both sides of the document transport path, and reads both sides of the document transported on the transport path. An image reading apparatus capable of storing image data read from the document by the second reading unit, a storage unit used as a page buffer, a designating unit designating the document reading setting, and a transport path Detection means for detecting a document to be conveyed; and reading processing of the first surface of the document by the first reading means based on the reading setting designated by the designation means by conveying the document by the conveying means. Control means for controlling parallel processing for reading the second surface of the document by the second reading means and storing the second surface reading processing stored in a page buffer secured in the storage means in parallel; And the control means is configured to determine whether the reading setting is a reading setting in which the positional relationship between the leading edge of the document in the transport direction and the upper end of the image on the document is the same on both sides of the document. Detected by the detection means and the document size specified as the reading setting at the image destination or end of the image data of the second surface read by the second reading means in parallel processing and stored in the page buffer An image based on a difference amount in the conveyance direction with respect to the original size is added.

本発明によれば、簡単な構成で、生産性を損なうことなく、表面画像の出力位置や出力範囲に対応した裏面画像の出力が可能となり、所望の出力結果を得ることができる。   According to the present invention, it is possible to output a back image corresponding to the output position and output range of the front image with a simple configuration without impairing productivity, and a desired output result can be obtained.

本実施例の画像読取装置を適用可能な画像形成装置全体のブロック図Block diagram of the entire image forming apparatus to which the image reading apparatus of this embodiment can be applied. スキャナ部の構成を例示する断面図Sectional view illustrating the configuration of the scanner unit スキャナI/Fの概略的な構成を例示するブロック図Block diagram illustrating a schematic configuration of the scanner I / F スキャナ画像処理部の概略的な構成を例示するブロック図Block diagram illustrating a schematic configuration of a scanner image processing unit 表面、裏面それぞれの画像データフローを例示する図A diagram illustrating the image data flow for each of the front and back surfaces 本実施例の両面読み取り処理を例示するフローチャートFlowchart illustrating double-sided reading processing of the present embodiment 本実施例の両面読み取り処理を例示するフローチャートFlowchart illustrating double-sided reading processing of the present embodiment 裏面入力画像データの有効範囲を説明する図The figure explaining the effective range of back side input image data 裏面入力画像データの有効範囲を説明する図The figure explaining the effective range of back side input image data 本実施例における両面出力画像を例示する図The figure which illustrates the double-sided output image in a present Example 本実施例における両面出力画像を例示する図The figure which illustrates the double-sided output image in a present Example 本実施例における両面出力画像を例示する図The figure which illustrates the double-sided output image in a present Example 本実施例における両面出力画像を例示する図The figure which illustrates the double-sided output image in a present Example 本実施例における両面出力画像を例示する図The figure which illustrates the double-sided output image in a present Example 本実施例における両面出力画像を例示する図The figure which illustrates the double-sided output image in a present Example 本実施例における両面出力画像を例示する図The figure which illustrates the double-sided output image in a present Example 本実施例における両面出力画像を例示する図The figure which illustrates the double-sided output image in a present Example

以下、本発明を実施するための形態について図面を用いて説明する。
図1は、本発明の一実施例を示す画像読取装置を適用可能な画像形成装置101全体のハードウェア構成を例示するブロック図である。
Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram illustrating a hardware configuration of an entire image forming apparatus 101 to which an image reading apparatus according to an embodiment of the present invention can be applied.

図1において、制御部102は、画像形成装置101全体の動作を制御する。制御部102において、CPU103は、ROM104又はHDD106に記憶された制御プログラムを読み出して、読み取り/印刷/通信などの各種制御を行う。RAM105は、CPU103の主メモリ、ワークエリア等の一時記憶領域として用いられる。HDD(Hard Disk Drive)106は、画像データや各種プログラムを記憶する。なお、HDDの代わりに又は併用してSSD(Solid State Drive)等の他の記憶装置を備えていてもよい。   In FIG. 1, the control unit 102 controls the operation of the entire image forming apparatus 101. In the control unit 102, the CPU 103 reads out a control program stored in the ROM 104 or the HDD 106, and performs various controls such as reading / printing / communication. The RAM 105 is used as a temporary storage area such as a main memory or work area for the CPU 103. An HDD (Hard Disk Drive) 106 stores image data and various programs. Note that another storage device such as an SSD (Solid State Drive) may be provided instead of or in combination with the HDD.

制御部102は、さらに各種インタフェース(I/F)とシステムバス118を備える。操作部I/F107は、操作部112と制御部102を接続する。操作部112には、不図示の表示パネルやキー(ボタン)などが備えられており、ユーザによる操作/入力/指示を受け付ける受付部としての役割を担う。プリンタI/F108は、プリンタ113と制御部102を接続する。プリンタ113で印刷すべき画像データは、プリンタI/F108を介して制御部102から転送され、プリンタ113により記録材上に印刷される。   The control unit 102 further includes various interfaces (I / F) and a system bus 118. The operation unit I / F 107 connects the operation unit 112 and the control unit 102. The operation unit 112 includes a display panel (not shown), keys (buttons), and the like, and plays a role as a reception unit that receives an operation / input / instruction by a user. The printer I / F 108 connects the printer 113 and the control unit 102. Image data to be printed by the printer 113 is transferred from the control unit 102 via the printer I / F 108 and printed on the recording material by the printer 113.

スキャナI/F109は、スキャナ114と制御部102を接続する。スキャナ114は、原稿上の画像を読み取って画像データを生成し、スキャナI/F109を介して制御部102に入力する。スキャナ画像処理部116は、スキャナI/F109の処理によりRAM105に展開された画像データに対して、画像処理モード(カラースキャン、モノクロスキャン等)に応じた画像処理を実行する処理部である。スキャナI/F109およびスキャナ画像処理部116については、後に詳細に説明する。   A scanner I / F 109 connects the scanner 114 and the control unit 102. The scanner 114 reads an image on a document to generate image data, and inputs the image data to the control unit 102 via the scanner I / F 109. The scanner image processing unit 116 is a processing unit that performs image processing corresponding to an image processing mode (color scan, monochrome scan, etc.) on the image data developed in the RAM 105 by the processing of the scanner I / F 109. The scanner I / F 109 and the scanner image processing unit 116 will be described in detail later.

符号化/復号化部117は、JPEG、JBIGといった所定の規格に準拠した画像データの圧縮、伸長処理を実行する処理部である。モデムI/F110は、モデム115と制御部102を接続する。モデム115は、公衆回線に接続され、外部のファクシミリ装置(図示せず)との間のおける画像データのファクシミリ通信を実行する。   The encoding / decoding unit 117 is a processing unit that performs image data compression / decompression processing conforming to a predetermined standard such as JPEG or JBIG. The modem I / F 110 connects the modem 115 and the control unit 102. The modem 115 is connected to a public line and executes image data facsimile communication with an external facsimile apparatus (not shown).

ネットワークI/F111は、制御部102(画像形成装置101)を有線LANに接続する。画像形成装置101は、ネットワークI/F111を介して外部装置と画像データや各種情報を送受信することができる。例えば、画像形成装置101は、ネットワークI/F111を介して、外部装置から印刷用画像データを受信し、プリンタ113で印刷したり、スキャナ114で読み取った画像データを外部装置へ送信することが可能である。システムバス118は、上述の構造要素間のデータ通路となる。
以上のように、本実施例の画像形成装置101は、原稿搬送路の両側に表面画像読取部(CIS204)と裏面画像読取部(CIS221)を具備し、該搬送路を搬送される原稿の両面を読取可能な両面画像読取装置として機能する。
A network I / F 111 connects the control unit 102 (image forming apparatus 101) to a wired LAN. The image forming apparatus 101 can transmit and receive image data and various types of information to and from an external apparatus via the network I / F 111. For example, the image forming apparatus 101 can receive print image data from an external device via the network I / F 111 and print it with the printer 113 or send the image data read with the scanner 114 to the external device. It is. The system bus 118 provides a data path between the above structural elements.
As described above, the image forming apparatus 101 according to the present exemplary embodiment includes the front surface image reading unit (CIS 204) and the back surface image reading unit (CIS 221) on both sides of the document conveyance path, and both sides of the document conveyed on the conveyance path. Functions as a double-sided image reading apparatus.

次に図2を用いて、上述したスキャナ114の構成を説明する。
図2は、スキャナ114の構成を例示する断面図である。
図2に示すように、スキャナ114は、スキャナ下部201およびスキャナ上部202を備える。
Next, the configuration of the scanner 114 will be described with reference to FIG.
FIG. 2 is a cross-sectional view illustrating the configuration of the scanner 114.
As shown in FIG. 2, the scanner 114 includes a scanner lower part 201 and a scanner upper part 202.

スキャナ下部201は、原稿台203およびコンタクトイメージセンサ(CIS:Contact Image Sensor)204を備える。原稿台203は、ガラス板等の透明板で構成される。
スキャナ上部202は、原稿トレイ205、排紙トレイ206、および自動原稿搬送器(ADF:Automatic Document Feeder)207を備える。
The scanner lower part 201 includes a document table 203 and a contact image sensor (CIS) 204. The document table 203 is composed of a transparent plate such as a glass plate.
The scanner upper part 202 includes a document tray 205, a paper discharge tray 206, and an automatic document feeder (ADF) 207.

スキャナ上部202の原稿トレイ205、排紙トレイ206、およびADF207は、一体に構成される。原稿トレイ205に載置される原稿208は、ADF207に取り込まれて画像を読み取られ、排紙トレイ206に排出される。スキャナ114は、ADF207を用いることで、原稿208の片面読み取りおよび両面読み取りを行うことができる。なお、スキャナ上部202は、不図示の開閉機構により、スキャナ下部201に対して開閉自在である。スキャナ上部202の開閉により、スキャナ114は、ADF207を用いずに、原稿台203上に載置された原稿の画像を読み取ることができる。   The document tray 205, the paper discharge tray 206, and the ADF 207 of the scanner upper part 202 are integrally configured. A document 208 placed on the document tray 205 is taken into the ADF 207, an image is read, and the document is discharged to the paper discharge tray 206. The scanner 114 can perform single-sided reading and double-sided reading of the document 208 by using the ADF 207. The scanner upper part 202 can be opened and closed with respect to the scanner lower part 201 by an opening / closing mechanism (not shown). By opening and closing the scanner upper portion 202, the scanner 114 can read the image of the document placed on the document table 203 without using the ADF 207.

スキャナ下部201のCIS204は、原稿208の一方の面の画像読み取り部として機能する。本実施例では、CIS204で読み取る面(第1面)を「表面」とする。従って、原稿トレイ205に載置される原稿208の上側の面が表面になる。また、表面の反対の面(第2面)を「裏面」とする。   The CIS 204 in the lower scanner part 201 functions as an image reading unit on one side of the document 208. In this embodiment, the surface (first surface) read by the CIS 204 is referred to as “surface”. Accordingly, the upper surface of the document 208 placed on the document tray 205 is the front surface. In addition, a surface opposite to the front surface (second surface) is referred to as a “back surface”.

CIS204は、照射部として一対のLED(Light Emitting Diode)光源209、210、光電変換部211、およびレンズ212を備える。LED光源209、210から照射された光は、ADF207で取り込まれた原稿208の表面または原稿台203上に載置された原稿の表面で反射され、その反射光がレンズ212を介して光電変換部211に入力される。光電変換部211は、入力された反射光を電気信号に変換することで画像データを生成する。   The CIS 204 includes a pair of LED (Light Emitting Diode) light sources 209 and 210, a photoelectric conversion unit 211, and a lens 212 as an irradiation unit. The light emitted from the LED light sources 209 and 210 is reflected by the surface of the original 208 taken in by the ADF 207 or the surface of the original placed on the original table 203, and the reflected light passes through the lens 212 to the photoelectric conversion unit. Input to 211. The photoelectric conversion unit 211 generates image data by converting the input reflected light into an electrical signal.

LED光源209は、主走査方向(図2の奥行き方向)に沿って配列される複数のLED素子および導光体を有している。LED光源210も同様に、主走査方向に沿って配列される複数のLED素子および導光体を有している。LED光源209、210は、各LED素子から出射された光により導光体を介して原稿の表面を照射する。   The LED light source 209 has a plurality of LED elements and a light guide arranged along the main scanning direction (depth direction in FIG. 2). Similarly, the LED light source 210 includes a plurality of LED elements and a light guide arranged in the main scanning direction. The LED light sources 209 and 210 irradiate the surface of the document through the light guide with the light emitted from the LED elements.

光電変換部211は、主走査方向に配列される複数の光電素子を備えている。このような構成のCIS204は、原稿台203の下方において副走査方向(図2の左右方向)に移動可能に設けられる。原稿台203に原稿が載置される場合には、CIS204が副走査方向に移動して、当該原稿の画像を読み取る。また、ADF207で原稿208を取り込む場合には、CIS204は停止した状態で、ADF207により搬送されている原稿の画像を読み取る。   The photoelectric conversion unit 211 includes a plurality of photoelectric elements arranged in the main scanning direction. The CIS 204 having such a configuration is provided below the document table 203 so as to be movable in the sub-scanning direction (left-right direction in FIG. 2). When a document is placed on the document table 203, the CIS 204 moves in the sub-scanning direction and reads an image of the document. When the original 208 is captured by the ADF 207, the image of the original conveyed by the ADF 207 is read while the CIS 204 is stopped.

スキャナ上部202のADF207は、原稿搬送ユニットとして機能する。ADF207は、原稿トレイ205上に載置される原稿を1枚ずつ排紙トレイ206まで搬送する。そのためにADF207は、搬送路に沿って、ピックアップローラ213、分離部214、第1レジストローラ215、第2レジストローラ216、第1搬送ローラ217、第2搬送ローラ218、および排紙ローラ219を備える。この他にADF207は、搬送される原稿の先端および後端を検知するための原稿検知センサ220、およびCIS221を備える。   The ADF 207 in the upper scanner portion 202 functions as a document transport unit. The ADF 207 conveys the originals placed on the original tray 205 to the discharge tray 206 one by one. For this purpose, the ADF 207 includes a pickup roller 213, a separation unit 214, a first registration roller 215, a second registration roller 216, a first conveyance roller 217, a second conveyance roller 218, and a paper discharge roller 219 along the conveyance path. . In addition, the ADF 207 includes a document detection sensor 220 and a CIS 221 for detecting the leading edge and the trailing edge of the conveyed document.

スキャナ上部202のCIS221は、原稿208の他方の面である裏面の画像読取部として機能する。CIS221は、照射部としての一対のLED光源222、223、光電変換部224、およびレンズ225を備える。LED光源222、223から照射された光は、ADF207で取り込まれた原稿の裏面に反射され、その反射光がレンズ225を介して光電変換部224に入力される。   The CIS 221 of the scanner upper portion 202 functions as an image reading unit on the back surface that is the other surface of the document 208. The CIS 221 includes a pair of LED light sources 222 and 223, a photoelectric conversion unit 224, and a lens 225 as an irradiation unit. Light emitted from the LED light sources 222 and 223 is reflected on the back side of the document captured by the ADF 207, and the reflected light is input to the photoelectric conversion unit 224 via the lens 225.

光電変換部224は、入力された反射光を電気信号に変換することで画像データを生成する。LED光源222は、主走査方向に沿って配列される複数のLED素子および導光体を有している。LED光源223も同様に、主走査方向に沿って配列される複数のLED素子および導光体を有している。LED光源222、223は、各LED素子から出射された光により導光体を介して原稿の裏面を照射する。光電変換部224は、主走査方向に配列される複数の光電素子を備えている。   The photoelectric conversion unit 224 generates image data by converting the input reflected light into an electrical signal. The LED light source 222 has a plurality of LED elements and a light guide arranged along the main scanning direction. Similarly, the LED light source 223 includes a plurality of LED elements and light guides arranged along the main scanning direction. The LED light sources 222 and 223 irradiate the back surface of the document with light emitted from each LED element through the light guide. The photoelectric conversion unit 224 includes a plurality of photoelectric elements arranged in the main scanning direction.

ADF207は、ピックアップローラ213により原稿トレイ205上に載置される原稿208を取り込む。分離部214は、図中の上方に分離ローラおよび下方に分離パッドを備えた構成であり、ピックアップローラ213で取り込んだ原稿を1枚ずつ分離する。ADF207は、ピックアップローラ213および分離部214により、原稿を1枚ずつ連続して取り込み可能である。第1レジストローラ215は、取り込んだ原稿の斜行補正を行う。斜行補正された原稿は、第2レジストローラ216および第1搬送ローラ217により、CIS204およびCIS221による画像読取位置まで搬送される。   The ADF 207 takes in the document 208 placed on the document tray 205 by the pickup roller 213. The separation unit 214 has a separation roller on the upper side in the drawing and a separation pad on the lower side, and separates the originals taken in by the pickup roller 213 one by one. The ADF 207 can continuously take in the originals one by one by the pickup roller 213 and the separation unit 214. The first registration roller 215 corrects the skew of the fetched document. The skew-corrected original is conveyed by the second registration roller 216 and the first conveying roller 217 to the image reading position by the CIS 204 and CIS 221.

原稿208の表面のみを読み取る場合、CIS204により表面画像が読み取られる。また、原稿208の表裏両面を読み取る場合、CIS204により表面画像が、CIS221により裏面画像がそれぞれ読み取られる。CIS204およびCIS221により画像が読み取られた原稿は、第2搬送ローラ218および排紙ローラ219により、排紙トレイ206に排出される。   When only the surface of the original 208 is read, the surface image is read by the CIS 204. When reading both the front and back sides of the document 208, the front image is read by the CIS 204 and the back image is read by the CIS 221. The document whose image has been read by the CIS 204 and the CIS 221 is discharged to the discharge tray 206 by the second transport roller 218 and the discharge roller 219.

なお、ADF207を用いて原稿の搬送および読み取りを行う過程で、原稿検知センサ220が原稿の先端および後端を検知したタイミングで出力される信号(図示せず)を基にして、CPU103により原稿副走査長の算出が行われる。   In the course of transporting and reading a document using the ADF 207, the document detection sensor 220 detects a document sub-scan by the CPU 103 based on a signal (not shown) output when the document detection sensor 220 detects the leading edge and the trailing edge of the document. The scan length is calculated.

以上の構成により、画像形成装置101は、スキャナ114を用いて、原稿台203上に載置された原稿の画像の読み取り、又は、ADF207で取り込まれた原稿208の画像のみの読み取りの何れかの方法で原稿画像を読み取る。なお、ADF207で取り込まれた原稿208の画像のみの読み取りを行う場合、原稿208の表面の画像のみの読み取り、又は、原稿208の表面/裏面(両面)の画像の同時読み取りが可能となっている。このように、本実施例の画像形成装置101は、原稿表面/裏面の両面同時読み取りが可能な画像読取装置を有する。以下、このような画像読取装置を用い、例えば画像処理プロセッサやメモリ等のハードウェア資源に制限がある場合でも、原稿表面と裏面との間の画像向き関係を考慮して所望の読み取り範囲の画像出力を可能にする構成について説明する。   With the above configuration, the image forming apparatus 101 uses the scanner 114 to read either the image of the document placed on the document table 203 or only the image of the document 208 captured by the ADF 207. Read the original image by the method. Note that when only the image of the original 208 captured by the ADF 207 is read, it is possible to read only the image on the front side of the original 208 or simultaneously read the images on the front / back side (both sides) of the original 208. . As described above, the image forming apparatus 101 according to the present exemplary embodiment includes the image reading apparatus capable of simultaneously reading both the front and back sides of the document. Hereinafter, using such an image reading apparatus, even if there are restrictions on hardware resources such as an image processor and a memory, an image in a desired reading range is considered in consideration of the image orientation relationship between the front surface and the back surface of the document. A configuration that enables output will be described.

図3は、スキャナI/F109の概略的な構成を例示するブロック図である。
図3に示すように、スキャナI/F109は、原稿表面画像の読み取りに使用する表面画像データ入力ブロック301と、原稿裏面画像の読み取りに使用する裏面画像データ入力ブロック302とを有する。本実施例の画像形成装置101では、CIS204により読み取った画像データが表面画像データ入力ブロック301へ入力され、CIS221により読み取った画像データが裏面画像データ入力ブロック302へ入力される。
FIG. 3 is a block diagram illustrating a schematic configuration of the scanner I / F 109.
As shown in FIG. 3, the scanner I / F 109 has a front surface image data input block 301 used for reading a document front surface image and a back surface image data input block 302 used for reading a document back image. In the image forming apparatus 101 of this embodiment, the image data read by the CIS 204 is input to the front image data input block 301, and the image data read by the CIS 221 is input to the back image data input block 302.

まず、表面画像データ入力ブロック301について説明する。
タイミング制御部1(303)は、CIS204に対して、読み取りスピードに応じた読み取りデバイスの制御信号を生成し出力する。このデバイス制御信号は、スキャナI/F109内で生成される同期信号に同期するものであり、これにより主走査方向の読み取りタイミングと、読み取り処理の同調を図ることができる。
First, the surface image data input block 301 will be described.
The timing control unit 1 (303) generates and outputs a reading device control signal corresponding to the reading speed to the CIS 204. This device control signal is synchronized with a synchronization signal generated in the scanner I / F 109, whereby the reading timing in the main scanning direction and the reading process can be synchronized.

LED点灯制御部1(304)は、CIS204の光源となるLED209およびLED210の点灯を制御するユニットである。LED点灯制御部1(304)は、R、G、Bの各色要素に対応したLEDの順次点灯制御のための同期信号、クロック信号およびCIS204に対応した調光の制御、点灯の開始、消灯の制御を実行する。この制御タイミングは、上述のタイミング制御部1(303)から受信する同期信号に基づくものであり、CIS204の駆動と同期したLED209およびLED210の点灯が制御される。   The LED lighting control unit 1 (304) is a unit that controls lighting of the LED 209 and the LED 210 serving as the light source of the CIS 204. The LED lighting control unit 1 (304) controls the synchronization signal, the clock signal, and the dimming control corresponding to the CIS 204 for the sequential lighting control of the LEDs corresponding to the R, G, and B color elements, the start of lighting, and the turn-off of the lighting. Execute control. This control timing is based on the synchronization signal received from the timing control unit 1 (303) described above, and the lighting of the LED 209 and the LED 210 synchronized with the driving of the CIS 204 is controlled.

CIS204の出力信号は、AFE1(305)に入力される。なお、AFEは、Analog Front Endを示す。AFE1(305)の処理は、CIS204の出力信号に対して、ゲイン調整、A/D変換処理を施し、CIS204より出力されるアナログ信号をデジタル信号に変換して、表面画像データ入力ブロック301に入力する。   The output signal of CIS 204 is input to AFE1 (305). Note that AFE indicates Analog Front End. The AFE1 (305) process performs gain adjustment and A / D conversion on the output signal of the CIS 204, converts the analog signal output from the CIS 204 into a digital signal, and inputs it to the surface image data input block 301. To do.

同期制御部1(306)は、AFE1(305)に対して、CIS204のアナログ信号に応じた所定の閾値レベルを設定し、画像読み取りデバイスの相違による出力信号レベルの調整を行う。さらに、同期制御部1(306)は、アナログ信号のサンプリング制御とデジタル信号をAFE1(305)に出力させるための同期クロックを生成して出力し、AFE1(305)から所定のデジタル信号による読み取り画像データを受信する。このデータは、同期制御部1(306)を介して出力データ制御部1(307)に入力される。   The synchronization control unit 1 (306) sets a predetermined threshold level corresponding to the analog signal of the CIS 204 for the AFE1 (305), and adjusts the output signal level according to the difference in the image reading device. Further, the synchronization control unit 1 (306) generates and outputs a sampling clock for analog signal sampling control and a digital signal to be output to the AFE1 (305), and reads an image read by the predetermined digital signal from the AFE1 (305). Receive data. This data is input to the output data control unit 1 (307) via the synchronization control unit 1 (306).

出力データ制御部1(307)は、表面画像データ入力ブロック301の出力モードに合わせてAFE1(305)より受信した画像データをバッファ308(バッファA−1、バッファB−1、バッファC−1)に格納する。バッファ308に格納された画像データは、RAM105に転送される。   The output data control unit 1 (307) receives the image data received from the AFE1 (305) in accordance with the output mode of the surface image data input block 301, and the buffer 308 (buffer A-1, buffer B-1, buffer C-1). To store. The image data stored in the buffer 308 is transferred to the RAM 105.

次に、裏面画像データ入力ブロック302について説明する。
裏面画像データ入力ブロック302は、上述の表面画像データ入力ブロック301と同様の構成となっている。タイミング制御部2(309)は、CIS221に対して、読み取りスピードに応じた読み取りデバイスの制御信号を生成し出力する。このデバイス制御信号は、スキャナI/F109内で生成される同期信号に同期するものであり、これにより主走査方向の読み取りタイミングと、読み取り処理の同調を図ることができる。
Next, the back surface image data input block 302 will be described.
The back image data input block 302 has the same configuration as the above-described front image data input block 301. The timing control unit 2 (309) generates and outputs a reading device control signal corresponding to the reading speed to the CIS 221. This device control signal is synchronized with a synchronization signal generated in the scanner I / F 109, whereby the reading timing in the main scanning direction and the reading process can be synchronized.

LED点灯制御部2(310)は、CIS221の光源となるLED222およびLED223の点灯を制御するユニットである。LED点灯制御部2(310)は、R、G、Bの各色要素に対応したLEDの順次点灯制御のための同期信号、クロック信号およびCIS221に対応した調光の制御、点灯の開始、消灯の制御を実行する。この制御タイミングは、上述のタイミング制御部から受信する同期信号に基づくものであり、CIS221の駆動と同期したLED222およびLED223の点灯が制御される。   The LED lighting control unit 2 (310) is a unit that controls lighting of the LED 222 and the LED 223 serving as the light source of the CIS 221. The LED lighting control unit 2 (310) controls the synchronization signal, the clock signal, and the dimming control corresponding to the CIS 221 for the sequential lighting control of the LEDs corresponding to the R, G, and B color elements, the start of lighting, and the turn-off of the lighting. Execute control. This control timing is based on the synchronization signal received from the above-described timing control unit, and the lighting of the LED 222 and the LED 223 synchronized with the driving of the CIS 221 is controlled.

CIS221の出力信号は、AFE2(311)に入力される。AFE2(311)の処理は、CIS221の出力信号に対して、ゲイン調整、A/D変換処理を施し、CIS221より出力されるアナログ信号をデジタル信号に変換して、裏面画像データ入力ブロック302に入力する。   The output signal of the CIS 221 is input to the AFE 2 (311). The AFE2 (311) process performs gain adjustment and A / D conversion on the output signal of the CIS221, converts the analog signal output from the CIS221 into a digital signal, and inputs it to the back image data input block 302 To do.

同期制御部2(312)は、AFE2(311)に対して、CIS221のアナログ信号に応じた所定の閾値レベルを設定し、画像読み取りデバイスの相違による出力信号レベルの調整を行う。さらに、同期制御部2(312)は、アナログ信号のサンプリング制御とデジタル信号をAFE2(311)に出力させるための同期クロックを生成して出力し、AFE2(311)から所定のデジタル信号による読み取り画像データを受信する。このデータは、同期制御部2(312)を介して出力データ制御部2(313)に入力される。   The synchronization control unit 2 (312) sets a predetermined threshold level corresponding to the analog signal of the CIS 221 for the AFE 2 (311), and adjusts the output signal level depending on the difference in the image reading device. Furthermore, the synchronization control unit 2 (312) generates and outputs a synchronization clock for sampling control of the analog signal and outputting the digital signal to the AFE2 (311), and reads the image from the AFE2 (311) as a predetermined digital signal. Receive data. This data is input to the output data control unit 2 (313) via the synchronization control unit 2 (312).

出力データ制御部2(313)は、裏面画像データ入力ブロック302の出力モードに合わせてAFE2(311)より受信した画像データをバッファ314(バッファA−2、バッファB−2、バッファC−2)に格納する。バッファ314に格納された画像データは、RAM105に転送される。   The output data control unit 2 (313) receives the image data received from the AFE 2 (311) in accordance with the output mode of the back image data input block 302, and the buffer 314 (buffer A-2, buffer B-2, buffer C-2). To store. The image data stored in the buffer 314 is transferred to the RAM 105.

次に、図4を用いてスキャナ画像処理部116の概略的な構成を説明する。
図4は、スキャナ画像処理部116の概略的な構成を例示する図である。
スキャナ画像処理部116は、スキャナI/F109の処理によりRAM105に展開された画像データに対して、画像処理モード(カラースキャン、モノクロスキャン等)に応じた画像処理を実行する処理部である。スキャナ画像処理部116は、スキャナ画像処理バッファ408にロードされたデータに対して、各画像処理モードに応じた処理を実行する。
Next, a schematic configuration of the scanner image processing unit 116 will be described with reference to FIG.
FIG. 4 is a diagram illustrating a schematic configuration of the scanner image processing unit 116.
The scanner image processing unit 116 is a processing unit that performs image processing corresponding to an image processing mode (color scan, monochrome scan, etc.) on the image data developed in the RAM 105 by the processing of the scanner I / F 109. The scanner image processing unit 116 performs processing corresponding to each image processing mode on the data loaded in the scanner image processing buffer 408.

ここで、スキャナ画像処理バッファ408へは、前述したスキャナI/F109の表面画像データ入力ブロック301又は裏面画像データ入力ブロック302の出力データとしてRAM105に転送された画像データが所定のデータサイズ毎に順次ロードされる。また、各原稿面の画像データに係る画像処理は、ページ単位で排他実行されるものとする。   Here, the image data transferred to the RAM 105 as output data of the front-surface image data input block 301 or the back-surface image data input block 302 of the scanner I / F 109 is sequentially input to the scanner image processing buffer 408 for each predetermined data size. Loaded. Further, it is assumed that the image processing related to the image data on each original surface is executed exclusively on a page basis.

図4において、シェーディング補正ブロック402は、主走査方向の光源(LED209、210、222、223)の光量分布のばらつきや、画像読み取りデバイスの受光素子のばらつき、暗出力のオフセットを補正する処理ブロックである。   In FIG. 4, a shading correction block 402 is a processing block that corrects variations in the light amount distribution of the light sources (LEDs 209, 210, 222, and 223) in the main scanning direction, variations in the light receiving elements of the image reading device, and dark output offset. is there.

入力データ処理部401は、R、G、Bに分離した面順次のデータを点順次のデータに再構成する処理部である。1画素のデータは、RAM105に面順次のデータとしてR、G、Bの色毎に格納されている。これらのデータがスキャナ画像処理バッファ408にローディングされると、入力データ処理部401は、各色データ毎に1画素データを取り出し、1画素のR、G、Bデータとして再構成する。入力データ処理部401は、この再構成の処理を、画素毎に行い、面順次の画像データを点順次のデータに変換する。   The input data processing unit 401 is a processing unit that reconstructs frame sequential data separated into R, G, and B into dot sequential data. One-pixel data is stored in the RAM 105 as frame-sequential data for each of R, G, and B colors. When these data are loaded into the scanner image processing buffer 408, the input data processing unit 401 takes out one pixel data for each color data and reconstructs it as R, G, B data of one pixel. The input data processing unit 401 performs this reconstruction process for each pixel, and converts frame-sequential image data into dot-sequential data.

処理ブロック403は、平均化処理部、入力マスキング処理部、γ補正処理部を有する。平均化処理部は、主走査方向の読み取り解像度を落とすためのサブサンプリング(単純間引き)、あるいは平均化処理を行う処理ブロックである。入力マスキング処理部は、入力されたR、G、Bデータの色補正を演算する処理ブロックである。γ補正処理部は、入力されたデータに対して、所定の階調特性を与える処理ブロックである。   The processing block 403 includes an averaging processing unit, an input masking processing unit, and a γ correction processing unit. The averaging processing unit is a processing block that performs sub-sampling (simple thinning) for reducing the reading resolution in the main scanning direction or averaging processing. The input masking processing unit is a processing block that calculates color correction of input R, G, and B data. The γ correction processing unit is a processing block that gives predetermined gradation characteristics to input data.

文字判定処理ブロック404は、入力画像データに対して、黒文字判別、線画輪郭の画素判別を行う処理ブロックである。   The character determination processing block 404 is a processing block that performs black character determination and line drawing outline pixel determination on input image data.

処理ブロック405は、MTF補正処理部、RGB→(L、Ca、Cb)変換処理部、下地濃度調整処理部を有する。MTF補正処理部は、画像読み取りデバイスを変更した際の、MTF差補正、縮小変倍時のモアレ低減のために主走査方向にフィルタ処理を行う処理部であり、注目領域に対して主走査方向の所定画素について各係数を乗加算処理するブロックである。RGB→(L、Ca、Cb)変換処理部は、後続のフィルタ処理ブロック406で行うフィルタリング(明度強調、彩度強調、色判定)に際し、R、G、B各色の多値画像データの変換処理を行う。下地濃度調整処理部は、原稿の下地濃度を自動認識し、下地濃度値を白側に補正することによりファクシミリ通信等に適した二値化データを得るための処理を実行する。   The processing block 405 includes an MTF correction processing unit, an RGB → (L, Ca, Cb) conversion processing unit, and a background density adjustment processing unit. The MTF correction processing unit is a processing unit that performs filter processing in the main scanning direction for MTF difference correction and moire reduction at the time of zooming when changing the image reading device. This is a block for multiplying and adding each coefficient for a predetermined pixel. The RGB → (L, Ca, Cb) conversion processing unit performs conversion processing of multi-value image data of R, G, and B colors in the filtering (lightness enhancement, saturation enhancement, color determination) performed in the subsequent filter processing block 406. I do. The background density adjustment processing unit automatically performs processing for obtaining binarized data suitable for facsimile communication or the like by automatically recognizing the background density of the document and correcting the background density value to the white side.

フィルタ処理ブロック406は、先の処理ブロック405のRGB→(L、Ca、Cb)変換処理部で得られたデータに対して色判定とフィルタリングを行うための処理として、画像の明度成分(L)のエッジ強度処理及び彩度(Ca、Cb)の強調処理を行う。さらに、フィルタ処理ブロック406は、入力画像の彩色判定を行い、その結果を出力する。また、フィルタ処理ブロック406は、文字判定処理ブロック404で生成された文字、線画輪郭部の判定信号等に基づき、強調量のパラメータを変化させることができる。フィルタ処理後のデータは、L、Ca、CbからR、G、Bデータに変換されて出力される。このフィルタ処理ブロック406は、モノクロ画像データを処理する場合は、エッジ強調フィルタとして機能する。   The filter processing block 406 performs the lightness component (L) of the image as processing for performing color determination and filtering on the data obtained by the RGB → (L, Ca, Cb) conversion processing unit of the previous processing block 405. Edge strength processing and saturation (Ca, Cb) enhancement processing. Further, the filter processing block 406 performs coloration determination of the input image and outputs the result. Further, the filter processing block 406 can change the parameter of the enhancement amount based on the character generated in the character determination processing block 404, the determination signal of the line drawing outline portion, and the like. The filtered data is converted from L, Ca, Cb to R, G, B data and output. The filter processing block 406 functions as an edge enhancement filter when processing monochrome image data.

変倍処理ブロック407は、主走査、副走査方向の線形補間変倍処理を施す処理ブロックである。
以上の画像処理が、設定された画像処理モード(コピーモード、スキャナモード等)に応じて、スキャナ画像処理バッファ408にローディングされたデータに対して順次実行される。
A scaling processing block 407 is a processing block that performs linear interpolation scaling processing in the main scanning and sub-scanning directions.
The above image processing is sequentially performed on the data loaded in the scanner image processing buffer 408 in accordance with the set image processing mode (copy mode, scanner mode, etc.).

これまでに説明した通り、スキャナ114は、CIS204、CIS221、スキャナI/F109の表面画像データ入力ブロック301、裏面画像データ入力ブロック302を用いて、原稿の表面/裏面の画像データを同時に制御部102へ入力できる。一方、スキャナ画像処理部116は、表面、裏面の画像データをページ単位で順次処理する。   As described above, the scanner 114 uses the front image data input block 301 and the back image data input block 302 of the CIS 204, CIS 221, and scanner I / F 109 to simultaneously control the image data of the front / back surface of the document 102. Can be entered. On the other hand, the scanner image processing unit 116 sequentially processes the image data of the front and back surfaces in units of pages.

図5は、表面、裏面それぞれの画像データフローを示す図である。
図5に示すように、本実施例の画像形成装置101は、表面画像データ入力ブロック301および裏面画像データ入力ブロック302による表面、裏面の画像データの入力と、スキャナ画像処理部116による表面の画像処理を並列で実行する。すなわち、原稿の表面については、CIS204により原稿の表面を読み取りつつ該読み取られた画像データをスキャナ画像処理部116により逐次画像処理する。該表面の画像処理終了後、画像形成装置101は、直ちにスキャナ画像処理部116により裏面の画像処理を実行する。
FIG. 5 is a diagram showing image data flows on the front surface and the back surface.
As shown in FIG. 5, the image forming apparatus 101 according to the present exemplary embodiment includes input of front and back image data by the front surface image data input block 301 and the back surface image data input block 302, and a front surface image by the scanner image processing unit 116. Perform processing in parallel. That is, for the surface of the original, the scanner image processing unit 116 sequentially performs image processing on the read image data while reading the surface of the original with the CIS 204. After the front-side image processing is completed, the image forming apparatus 101 immediately executes back-side image processing by the scanner image processing unit 116.

その際、表面画像データ入力ブロック301とスキャナ画像処理部116との間においては、RAM105上に確保した所定サイズのリングバッファ(表面用リングバッファ501)を用いて画像データの受け渡しが行われ、順次画像処理される。これにより、表面画像データの入力と該画像データの画像処理が並列で実行される。   At that time, image data is transferred between the surface image data input block 301 and the scanner image processing unit 116 using a ring buffer (surface ring buffer 501) of a predetermined size secured on the RAM 105, and sequentially. Image processing is performed. Thereby, the input of the surface image data and the image processing of the image data are executed in parallel.

一方、裏面画像データ入力ブロック302から入力される裏面画像データは、RAM105上に確保したページバッファ(裏面用ページバッファ502)に一旦蓄積される。そして、表面の処理(入力/画像処理)および裏面画像データの入力の完了後、該ページバッファに蓄積された裏面画像データに対する画像処理が実行される。なお、裏面用ページバッファ502は、リングバッファである。   On the other hand, the back image data input from the back image data input block 302 is temporarily stored in a page buffer (back page buffer 502) secured on the RAM 105. Then, after completion of the front side processing (input / image processing) and the input of the back side image data, image processing is executed on the back side image data stored in the page buffer. The back page buffer 502 is a ring buffer.

次に、図6〜図11を用いて、本実施例の画像形成装置101で原稿の両面読み取りを行う際の処理制御について説明する。
図6A、図6Bは、本実施例の画像形成装置で原稿の両面読み取りを行う際の処理(両面読み取り処理)を例示するフローチャートである。なお、同図の記述では、各ステップを「S」を付して表す。また、このフローチャートに示す処理は、CPU103がROM104又はHDD106に格納されたプログラムを必要に応じてRAM105に読み出して実行することにより実現されるものである。
Next, processing control when the image forming apparatus 101 according to the present exemplary embodiment performs double-sided reading of a document will be described with reference to FIGS.
FIG. 6A and FIG. 6B are flowcharts illustrating a process (double-sided reading process) when performing double-sided reading of a document in the image forming apparatus of this embodiment. In the description of the figure, each step is represented by “S”. The processing shown in this flowchart is realized by the CPU 103 reading out a program stored in the ROM 104 or the HDD 106 to the RAM 105 as necessary and executing it.

図7A、図7Bは、図6A、図6Bの画像処理制御処理を実行した際に裏面用ページバッファ502に一時蓄積される裏面入力画像データと該画像データのうちスキャナ画像処理部116へ入力される画像範囲を説明する図である。
図8〜図11は、本実施例の原稿両面読み取りを実行した際の出力される出力画像の一例を示す図である。なお、図8、図9は、実際の原稿サイズが「LTR」の原稿に対して原稿サイズとして「LGL」を指定して両面読み取りを実行した際の出力画像の一例を表している。図10、図11は、実際の原稿サイズが「LTR」の原稿に対して原稿サイズとして「LTR」を指定して両面読み取りを実行した際の出力画像の一例を表している。
FIGS. 7A and 7B show the back side input image data temporarily stored in the back side page buffer 502 when the image processing control process of FIGS. 6A and 6B is executed and the scanner image processing unit 116 out of the image data. FIG.
8 to 11 are diagrams illustrating an example of an output image that is output when the original duplex reading is performed according to the present exemplary embodiment. FIGS. 8 and 9 show an example of an output image when double-sided scanning is executed by specifying “LGL” as the document size for a document whose actual document size is “LTR”. 10 and 11 show an example of an output image when duplex scanning is executed by designating “LTR” as a document size for a document whose actual document size is “LTR”.

なお、図8、図9に示す例は、「指定原稿サイズ」が「実際の原稿サイズ」よりも大きい例のため、実際の原稿に含まれない画像(付加画像)が最終的な出力画像に含まれることになる。本実施例の画像形成装置101は、原稿から画像を読み取って最終的な出力画像を生成するまで(画像読取処理)の複数の工程のいずれかの工程で、前記実際の原稿に含まれない画像を付加し、最終的な出力画像を生成している。例えば、図8Aの原稿表面の「スキャナI/F部出力画像」における下部の「白画像領域」801は、スキャナ114により白板の読み取りが行われてスキャナI/F109から出力された付加画像を示している。また、図8Bの原稿裏面の「スキャナ画像処理部入力画像」における下部の「斜線領域」802は、裏面用ページバッファ502(ページバッファ)から読み取る際に、後述する空読みを行ってスキャナ画像処理部116に入力された付加画像を示している。例えば、ページバッファから裏面画像データを読み出す際に、ページバッファ内の裏面画像データが記憶されている領域を読み出す前又は後に、ページバッファ内の他の領域のデータを空読みする。これにより、裏面画像データの画先又は画末に、実際の原稿に含まれない画像を付加することが可能となる。   The examples shown in FIGS. 8 and 9 are examples in which the “specified document size” is larger than the “actual document size”, so an image (additional image) that is not included in the actual document is the final output image. Will be included. The image forming apparatus 101 according to the present exemplary embodiment includes an image that is not included in the actual document in any one of a plurality of steps until an image is read from the document to generate a final output image (image reading process). Is added to generate the final output image. For example, a lower “white image area” 801 in the “scanner I / F portion output image” on the surface of the document in FIG. 8A indicates an additional image output from the scanner I / F 109 after the white plate is read by the scanner 114. ing. 8B, the lower “slashed area” 802 in the “scanner image processing unit input image” on the back side of the document is scanned from the back side page buffer 502 (page buffer) to perform scanner image processing by performing idle reading described later. An additional image input to the unit 116 is shown. For example, when reading back-side image data from the page buffer, data in other areas in the page buffer is read idle before or after reading the area in the page buffer where the back-side image data is stored. As a result, an image that is not included in the actual document can be added to the image destination or image end of the back image data.

以下、図6A、図6Bのフローチャートに示す両面読み取り処理について詳細に説明する。
図6A、図6Bに示す処理は、例えば、ユーザがADF207に原稿を載置する、又は、ユーザが操作部112を介して原稿読み取り機能の使用を指示することで、CPU103により開始、実行される。
Hereinafter, the double-sided reading process shown in the flowcharts of FIGS. 6A and 6B will be described in detail.
The processing shown in FIGS. 6A and 6B is started and executed by the CPU 103 when the user places a document on the ADF 207 or the user instructs the use of the document reading function via the operation unit 112, for example. .

まずS601において、CPU103は、操作部112を介してユーザからスキャンモード設定(読取設定)の入力(指定)を受け付ける。ここでは、カラーモード(カラー/モノクロ)、両面モード(ON/OFF)、原稿向き(縦長/横長)、開き方向(上下開き/左右開き)、原稿サイズなどの読取設定の指定を受け付ける。なお、以下、原稿向き:「縦長」は縦長原稿(ポートレート原稿)、原稿向き:「横長」は横長原稿(ランドスケープ原稿)を示す。また、開き方向:「上下開き」は、原稿の上端(又は下端)を軸に裏返した場合に原稿の両面で画像の天地が同一となるように両面印刷等されている原稿を示す(上下開き原稿)。開き方向:「左右開き」は、原稿の左端(又は右端)を軸に裏返した場合に原稿の両面で画像の天地が同一となるように両面印刷等されている原稿を示す(左右開き原稿)。   First, in step S <b> 601, the CPU 103 receives an input (designation) of scan mode setting (reading setting) from the user via the operation unit 112. Here, designation of reading settings such as color mode (color / monochrome), duplex mode (ON / OFF), document orientation (portrait / landscape), opening direction (up / down / left / right), and document size is accepted. In the following, the document orientation: “Portrait” indicates a portrait document (portrait document), and the document orientation: “Landscape” indicates a landscape document (landscape document). Also, the opening direction: “upper and lower opening” indicates a document that is printed on both sides so that the top and bottom of the image is the same on both sides of the document when the document is turned upside down. Manuscript). Opening direction: “Left and right open” indicates a document that has been printed on both sides so that the top and bottom of the image is the same on both sides of the document when the left end (or right end) of the document is turned over. .

例えば、図8Aの例では、原稿画像向き:「縦長」、開き方向:「左右開き」、原稿サイズ:「LGL」が設定される。また、図8Bの例では、原稿画像向き:「縦長」、開き方向:「上下開き」、原稿サイズ:「LGL」が設定される。また、図9Aの例では、原稿画像向き:「横長」、開き方向:「左右開き」、原稿サイズ:「LGL」が設定される。また、図9Bの例では、原稿画像向き:「横長」、開き方向:「上下開き」、原稿サイズ:「LGL」が設定される。また、図10Aの例では、原稿画像向き:「縦長」、開き方向:「左右開き」、原稿サイズ:「LTR」が設定される。また、図10Bの例では、原稿画像向き:「縦長」、開き方向:「上下開き」、原稿サイズ:「LTR」が設定される。また、図11Aの例では、原稿画像向き:「横長」、開き方向:「左右開き」、原稿サイズ:「LTR」が設定される。また、図11Bの例では、原稿画像向き:「横長」、開き方向:「上下開き」、原稿サイズ:「LTR」が設定される。   For example, in the example of FIG. 8A, the document image orientation: “vertically long”, the opening direction: “left / right opening”, and the document size: “LGL” are set. In the example of FIG. 8B, the document image direction: “vertically long”, the opening direction: “vertical opening”, and the document size: “LGL” are set. In the example of FIG. 9A, the document image orientation: “Landscape”, the opening direction: “Left / Right”, and the document size: “LGL” are set. In the example of FIG. 9B, the document image orientation: “Landscape”, the opening direction: “Upper and lower opening”, and the document size: “LGL” are set. In the example of FIG. 10A, the document image orientation: “vertically long”, the opening direction: “left / right opening”, and the document size: “LTR” are set. In the example of FIG. 10B, the document image orientation: “vertically long”, the opening direction: “vertical opening”, and the document size: “LTR” are set. In the example of FIG. 11A, the document image orientation: “Landscape”, the opening direction: “Left / Right”, and the document size: “LTR” are set. In the example of FIG. 11B, the document image direction: “Landscape”, the opening direction: “Upper and lower opening”, and the document size: “LTR” are set.

また、S602において、CPU103は、ユーザからのスキャン開始指示を受け付ける。ユーザがスキャナ114のADF207に原稿を載置し、操作部112を介してスキャン開始を指示すると、CPU103は、この指示を検知し、S603に処理を進める。   In step S602, the CPU 103 receives a scan start instruction from the user. When the user places a document on the ADF 207 of the scanner 114 and gives an instruction to start scanning via the operation unit 112, the CPU 103 detects this instruction and advances the process to S603.

S603において、CPU103は、前記S601で受け付けた原稿サイズ(指定原稿サイズ)を表面画像サイズとして設定する。   In S603, the CPU 103 sets the document size (designated document size) received in S601 as the surface image size.

次に、S604において、CPU103は、スキャナI/F109の表面画像データ入力ブロック301に対して前記S603で設定した表面画像サイズの読み取り画像データの入力を行うためのパラメータ設定を行う。また、S605において、CPU103は、スキャナ画像処理部116に対して該表面画像サイズの読み取り画像データの画像処理を行うためのパラメータ設定を行う。   Next, in S604, the CPU 103 performs parameter setting for inputting the read image data of the surface image size set in S603 to the surface image data input block 301 of the scanner I / F 109. In step S605, the CPU 103 performs parameter setting for the scanner image processing unit 116 to perform image processing of the read image data having the surface image size.

次に、S606において、CPU103は、裏面画像サイズの設定を画像形成装置が読み取り可能な最大原稿サイズに設定する。本実施例の画像形成装置101においては読取可能な最大原稿サイズを「LGL(LEGAL)」サイズとする。
次に、S607において、CPU103は、前記S606で設定した裏面画像サイズの画像データ量に相当するメモリサイズの裏面用ページバッファ502をRAM105から獲得(確保)する。裏面用ページバッファ502の実体はリングバッファであり、バッファの終端アドレスに到達すると、次に開始アドレスに移動するバッファである。
In step S606, the CPU 103 sets the back image size to the maximum document size that can be read by the image forming apparatus. In the image forming apparatus 101 of this embodiment, the maximum readable document size is set to “LGL (LEGAL)”.
Next, in S607, the CPU 103 acquires (reserves) from the RAM 105 the back page buffer 502 having a memory size corresponding to the image data amount of the back image size set in S606. The real page buffer 502 is a ring buffer that moves to the start address when the end address of the buffer is reached.

次に、S608において、CPU103は、裏面画先調整モードを「OFF」に設定する。
また、S609において、CPU103は、裏面画末調整モードを「OFF」に設定する。
なお、裏面画先調整モードは、裏面において後述する空読みによる画先調整を行うか否かを設定するためのものである。また、裏面画末調整モードは、裏面において後述する空読みによる画末調整を行うか否かを設定するためのものである。裏面画先調整モード/裏面画末調整モードが「OFF」の場合は空読みを行わず、「ON」の場合には空読みを行うものとする。
Next, in S608, the CPU 103 sets the back side image tip adjustment mode to “OFF”.
In step S609, the CPU 103 sets the back image end adjustment mode to “OFF”.
Note that the back-side image destination adjustment mode is for setting whether or not to perform image-side adjustment by idle reading described later on the back side. The back side image end adjustment mode is for setting whether or not to perform image end adjustment by idle reading described later on the back side. When the back side image tip adjustment mode / back side image end adjustment mode is “OFF”, no idle reading is performed, and when it is “ON”, empty reading is performed.

その後、S610、S611、S614において、CPU103は、前記S601で受け付けた原稿画像向きおよび開き方向の指示内容(読取設定)を判定する。   Thereafter, in S610, S611, and S614, the CPU 103 determines the instruction content (reading setting) of the original image direction and the opening direction received in S601.

まず、原稿画像向き:「縦長」かつ開き方向:「上下開き」(後述する図8B、図10Bに対応)と判定した場合(S610でYES且つS611でYESの場合)、CPU103は、S612において、裏面画先調整モードを「ON」に設定する。
また、原稿画像向き:「横長」かつ開き方向:「左右開き」(後述する図9A、図11Aに対応)と判定した場合(S610でNO且つS614でYESの場合)にも、CPU103は、S615において、裏面画先調整モードを「ON」に設定する。
First, when it is determined that the document image orientation is “vertically long” and the opening direction is “up and down” (corresponding to FIGS. 8B and 10B described later) (YES in S610 and YES in S611), the CPU 103 determines in S612. Set the back side image adjustment mode to “ON”.
Also, when it is determined that the document image orientation is “horizontal” and the opening direction is “left and right opening” (corresponding to FIGS. 9A and 11A described later) (NO in S610 and YES in S614), the CPU 103 also performs S615. In, the back side image tip adjustment mode is set to “ON”.

上述のように、原稿向き:「縦長」かつ開き方向:「上下開き」、又は、原稿向き:「横長」かつ開き方向:「左右開き」の場合、原稿の読み取り基準端(原稿搬送方向先端)と画像基準端(原稿上の画像上端)の位置関係が表面と裏面で異なる。例えば、図8B、図9A等。この場合には、図7A(a)のように、原稿の裏面から指定画像サイズが読み取られて裏面用ページバッファ502に保存された画像データを図7A(b)のように読み出す。すなわち、裏面用ページバッファ502から読み出す際に、まず画先オフセット分を空読みし、これに続いて裏面画像データを読み出し、スキャナ画像処理部116に入力するようにする必要がある。このために、裏面画先調整モードを「ON」に設定しておく。   As described above, when the document orientation is “portrait” and the opening direction is “up and down”, or the document orientation is “landscape” and the opening direction is “left and right opening”, the document reading reference end (the leading end in the document transport direction) And the image reference end (the upper end of the image on the document) are different on the front surface and the back surface. For example, FIGS. 8B and 9A. In this case, as shown in FIG. 7A (a), the designated image size is read from the back side of the document and the image data stored in the back page buffer 502 is read out as shown in FIG. 7A (b). That is, when reading from the back-side page buffer 502, it is necessary to first read the image destination offset, and then read back-side image data and input it to the scanner image processing unit 116. For this purpose, the back side image tip adjustment mode is set to “ON”.

またS610〜S611で、原稿画像向き:「縦長」かつ開き方向:「左右開き」(図8A、図10Aに対応)と判定した場合(S610でYES且つS611でNOの場合)、CPU103は、S613において、裏面画末調整モードを「ON」に設定する。
また、原稿画像向き:「横長」かつ開き方向:「上下開き」(後述する図9B、図11Bに対応)と判定した場合(S610でNO且つS614でNOの場合)にも、CPU103は、S616において、裏面画末調整モードを「ON」に設定する。
If it is determined in S610 to S611 that the document image orientation is “portrait” and the opening direction is “left and right opening” (corresponding to FIG. 8A and FIG. 10A) (YES in S610 and NO in S611), the CPU 103 performs S613 , The back side image end adjustment mode is set to “ON”.
Further, when it is determined that the document image orientation is “landscape” and the opening direction is “up and down” (corresponding to FIGS. 9B and 11B described later) (NO in S610 and NO in S614), the CPU 103 also performs S616. , The back side image end adjustment mode is set to “ON”.

上述のように、原稿向き:「縦長」かつ開き方向:「左右開き」、又は、原稿向き:「横長」かつ開き方向:「上下開き」の場合、図8A、図9B等に示すように、原稿の読み取り基準端と画像基準端の位置関係が表面と裏面で同じになる。この場合には、図7B(c)のように、原稿の裏面から指定画像サイズが読み取られて裏面用ページバッファ502に保存された画像データを図7B(d)のように読み出す。すなわち、裏面用ページバッファ502から読み出す際に、まず裏面画像データの読み出し、これに続いて画末オフセット分を空読みし、スキャナ画像処理部116に入力する必要がある。このために、裏面画末調整モードをONに設定しておく。   As described above, in the case of document orientation: “portrait” and opening direction: “left-right opening”, or document orientation: “landscape” and opening direction: “vertical opening”, as shown in FIGS. 8A, 9B, etc. The positional relationship between the document reading reference end and the image reference end is the same on the front and back sides. In this case, as shown in FIG. 7B (c), the designated image size is read from the back side of the document and the image data stored in the back page buffer 502 is read out as shown in FIG. 7B (d). That is, when reading from the back-side page buffer 502, it is necessary to read back-side image data first, and subsequently read the end-of-screen offset and input it to the scanner image processing unit 116. For this purpose, the back side image end adjustment mode is set to ON.

このように、前記S610〜S616では、読取設定を判定することで、原稿の搬送方向先端と原稿の画像上端の位置関係が原稿の両面で異なる読取設定か否かを判定し、該判定結果に基づき、裏面画先調整モード、裏面画末調整モードの設定を行っている。   As described above, in S610 to S616, by determining the reading setting, it is determined whether or not the positional relationship between the leading end of the document in the conveyance direction and the upper end of the image of the document is different on both sides of the document. Based on this, settings are made for the back side image tip adjustment mode and the back side image end adjustment mode.

S612、S613、S615又はS616の処理後、CPU103は、S617において、スキャナI/F109の裏面画像データ入力ブロック302に対して前記S606で設定した裏面画像サイズの画像データの入力を行うためのパラメータ設定を行う。すなわち、最大原稿サイズ(ここではLGL)に相当するサイズを上限とした裏面画像の読み取りが設定される。   After the processing of S612, S613, S615, or S616, the CPU 103 sets parameters for inputting image data of the back image size set in S606 to the back image data input block 302 of the scanner I / F 109 in S617. I do. That is, reading of the back surface image is set with the size corresponding to the maximum document size (here, LGL) as the upper limit.

その後、S618において、CPU103は、スキャナ画像処理部116による表面画像データの画像処理を開始させる。また、S619において、CPU103は、スキャナI/F109による表面/裏面それぞれの画像データ入力処理を開始させ、原稿トレイ205に積載された原稿の搬送を開始させる。   Thereafter, in S618, the CPU 103 starts image processing of the surface image data by the scanner image processing unit 116. In step S619, the CPU 103 starts image data input processing for each of the front and back surfaces by the scanner I / F 109, and starts conveyance of the document loaded on the document tray 205.

前記S618およびS619の処理の後、CPU103は、S620〜S624で示す表面画像データの入力処理/画像処理と、S625〜S627で示す裏面画像データの入力処理を並列で実行する。   After the processing of S618 and S619, the CPU 103 executes the front surface image data input processing / image processing shown in S620 to S624 and the back surface image data input processing shown in S625 to S627 in parallel.

<表面画像データの入力処理/画像処理(S621〜S624)>
まず、表面画像データの入力処理/画像処理(S621〜S624)について説明する。
S621において、CPU103は、スキャナI/F109の表面画像データ入力ブロック301への表面画像データの入力が完了したか否かを判定する。本実施例の画像形成装置101においては、前記S603で設定した表面画像サイズ分の画像データの入力が完了した場合、表面画像データの入力完了と判定する。
<Surface image data input processing / image processing (S621 to S624)>
First, input processing / image processing (S621 to S624) of surface image data will be described.
In S621, the CPU 103 determines whether or not the input of the surface image data to the surface image data input block 301 of the scanner I / F 109 is completed. In the image forming apparatus 101 of this embodiment, when the input of the image data for the surface image size set in S603 is completed, it is determined that the input of the surface image data is completed.

前記S621において、未だ表面画像データの入力が完了していなと判定した場合(S621でNOの場合)、CPU103は、S621にて表面画像データの入力完了を待つ。一方、表面画像データの入力が完了したと判定した場合(S621でYESの場合)、CPU103は、S622に処理を進める。S622において、CPU103は、スキャナI/F109の表面画像データ入力ブロック301の処理を停止し、S623に処理を進める。   If it is determined in S621 that the input of the surface image data has not been completed (NO in S621), the CPU 103 waits for the completion of the input of the surface image data in S621. On the other hand, if it is determined that the input of the surface image data has been completed (YES in S621), the CPU 103 advances the process to S622. In S622, the CPU 103 stops the process of the surface image data input block 301 of the scanner I / F 109, and advances the process to S623.

次に、S623において、CPU103は、スキャナ画像処理部116により表面画像データに対する画像処理が完了したか否かを判定する。本実施例の画像形成装置101においては、スキャナI/F109の表面画像データ入力ブロック301へ入力された画像サイズと同等の画像データに対する画像処理が完了した場合に表面画像処理の完了と判定する。   In step S623, the CPU 103 determines whether the scanner image processing unit 116 has completed the image processing on the surface image data. In the image forming apparatus 101 of the present embodiment, it is determined that the surface image processing is completed when the image processing for the image data equivalent to the image size input to the surface image data input block 301 of the scanner I / F 109 is completed.

前記S623において、未だスキャナ画像処理部116により表面画像データに対する画像処理が完了していないと判定した場合(S623でNOの場合)、CPU103は、S623にて表面画像処理の完了を待つ。一方、スキャナ画像処理部116により表面画像データに対する画像処理が完了したと判定した場合(S623でYESの場合)、CPU103は、S624に処理を進める。
S624において、CPU103は、スキャナ画像処理部116の処理を停止し、表面画像データの入力処理/画像処理(S621〜S624)を終了する。
In S623, when the scanner image processing unit 116 determines that the image processing for the surface image data has not yet been completed (NO in S623), the CPU 103 waits for the completion of the surface image processing in S623. On the other hand, when the scanner image processing unit 116 determines that the image processing for the surface image data has been completed (YES in S623), the CPU 103 advances the process to S624.
In step S624, the CPU 103 stops the processing of the scanner image processing unit 116, and ends the surface image data input processing / image processing (S621 to S624).

以上のように、表面画像データの入力処理では、前記S603で設定された原稿サイズ(すなわちS601で受け付けた指定原稿サイズ)を上限として表面画像データを読み取ることができる。なお、指定原稿サイズが実際の原稿サイズを超える場合には、原稿の搬送方向後端より後では白板が読み取られ該白板の画像が原稿表面画像の後端に付加されることになる。また、表面画像データの画像処理では、前記S604で設定された原稿サイズ(すなわちS602で受け付けた指定原稿サイズ)を上限として表面画像データのスキャナ画像処理部116による画像処理を実行することができる。例えば、図8Aに示すように、原稿(LTRサイズ)の表面及び白板からLGLサイズの画像が読み取られて画像処理されて出力される。   As described above, in the surface image data input process, the surface image data can be read with the document size set in S603 (that is, the designated document size accepted in S601) as an upper limit. When the designated document size exceeds the actual document size, the white plate is read after the rear end in the document transport direction, and the white plate image is added to the rear end of the document surface image. In the image processing of the surface image data, the image processing by the scanner image processing unit 116 of the surface image data can be executed with the document size set in S604 (that is, the designated document size accepted in S602) as an upper limit. For example, as shown in FIG. 8A, an LGL size image is read from the surface of a document (LTR size) and a white plate, subjected to image processing, and output.

<裏面画像データの入力処理(S625〜S627)>
次に、裏面画像データの入力処理(S625〜S627)について説明する。
S625において、CPU103は、裏面画像データの入力が完了したか否かを判定する。本実施例の画像形成装置101においては、前記S606で設定した裏面画像サイズ分の画像データの入力が完了した場合、裏面画像データの入力完了と判定する。ここで、裏面画像データの入力が完了したと判定した場合(S625でYESの場合)、CPU103は、S625において、スキャナI/F109の裏面画像データ入力ブロック302の処理を停止する。
<Backside image data input processing (S625 to S627)>
Next, back surface image data input processing (S625 to S627) will be described.
In S625, the CPU 103 determines whether or not the input of the back surface image data is completed. In the image forming apparatus 101 of the present embodiment, when the input of the image data for the back image size set in S606 is completed, it is determined that the input of the back image data is completed. If it is determined that the input of the back image data has been completed (YES in S625), the CPU 103 stops the processing of the back image data input block 302 of the scanner I / F 109 in S625.

一方、未だ裏面画像データの入力が完了していないと判定した場合(S625でNOの場合)、CPU103は、S626に処理を進める。
S626において、CPU103は、スキャナ114のADF207により当該原稿の用紙後端が検出されたか否かを判定する。未だ当該原稿の用紙後端が検出されていないと判定した場合(S626でNOの場合)、CPU103は、S625に処理を戻す。
一方、当該原稿の用紙後端が検出されたと判定した場合(S626でYESの場合)、CPU103は、S627において、スキャナI/F109の裏面画像データ入力ブロック302の処理を停止する。そして、CPU103は、裏面画像データの入力処理(S625〜S629)を終了する。
On the other hand, when it is determined that the input of the back surface image data has not yet been completed (NO in S625), the CPU 103 advances the process to S626.
In step S626, the CPU 103 determines whether the ADF 207 of the scanner 114 has detected the trailing edge of the document. If it is determined that the paper trailing edge of the document has not yet been detected (NO in S626), the CPU 103 returns the process to S625.
On the other hand, if it is determined that the trailing edge of the document has been detected (YES in S626), the CPU 103 stops the processing of the back side image data input block 302 of the scanner I / F 109 in S627. Then, the CPU 103 ends the back surface image data input process (S625 to S629).

以上のように、指定原稿サイズを上限とし、実際の原稿サイズの裏面画像データを読み取ることができる。例えば、図8、図9に示すように、指定原稿サイズ(LGL)が実際の原稿サイズ(LTR)を超える場合でも、LTRサイズの原稿の裏面からLTRサイズの画像が読み取られて裏面用ページバッファ502に格納される。   As described above, the back side image data of the actual document size can be read with the designated document size as the upper limit. For example, as shown in FIGS. 8 and 9, even when the designated document size (LGL) exceeds the actual document size (LTR), an LTR size image is read from the back side of the LTR size document, and the page buffer for the back side. Stored in 502.

上述したS621〜S624で示す表面画像データの入力処理/画像処理と、S625〜S627で示す裏面画像データの入力処理のいずれの処理も完了した後(すなわち前記並列処理の後)、CPU103は、S628に処理を進める。   After completion of both the front surface image data input processing / image processing shown in S621 to S624 and the back side image data input processing shown in S625 to S627 (that is, after the parallel processing), the CPU 103 executes S628. Proceed with the process.

S628において、CPU103は、原稿副走査長の値を取得する。具体的には、CPU103は、上述のように原稿画像の入力のためにADF207により原稿208を搬送した際に原稿検知センサ220が原稿208の先端および後端を検知したタイミングの差をもとにして原稿副走査長を算出する。   In S628, the CPU 103 acquires the value of the document sub-scanning length. Specifically, the CPU 103, based on the difference in timing when the document detection sensor 220 detects the leading edge and the trailing edge of the document 208 when the document 208 is conveyed by the ADF 207 for inputting the document image as described above. To calculate the document sub-scanning length.

次に、S629において、CPU103は、前記S628で取得した原稿副走査長が前記S601で受け付けた原稿サイズより小さいか否かを判定する。そして、前記S628で取得した原稿副走査長が前記S601で受け付けた原稿サイズより小さいと判定した場合(S629でYESの場合)、CPU103は、S630に処理を進める。   In step S629, the CPU 103 determines whether the original sub-scanning length acquired in step S628 is smaller than the original size accepted in step S601. If it is determined that the original sub-scanning length acquired in S628 is smaller than the original size accepted in S601 (YES in S629), the CPU 103 advances the process to S630.

S630において、CPU103は、前記S606で設定した裏面画像サイズを、前記S629で取得した原稿副走査長に相当する原稿サイズで更新する。
次に、S631において、CPU103は、裏面画先調整モードが「ON」か否かを判定する。そして、裏面画先調整モードが「ON」と判定した場合(S631でYESの場合)、CPU103は、S632において、裏面画先空読み量(例えば図7A(b)に示すような画先空読みライン数)を算出して設定し、S634に処理を進める。
In S630, the CPU 103 updates the back side image size set in S606 with a document size corresponding to the document sub-scanning length acquired in S629.
Next, in S631, the CPU 103 determines whether or not the back side image tip adjustment mode is “ON”. If it is determined that the back-surface image adjustment mode is “ON” (YES in S631), the CPU 103 determines in S632 that the back-surface image pre-reading amount (for example, pre-image pre-reading as shown in FIG. 7A (b)). The number of lines) is calculated and set, and the process proceeds to S634.

一方、裏面画先調整モードが「OFF」と判定した場合(S631でNOの場合)、CPU103は、S633において、裏面画先空読み量を「0」に設定し、S634に処理を進める。
なお、裏面画先空読み量は、裏面用ページバッファ502に一時蓄積した裏面画像データの画先より前の領域を空読みするライン数を表す。加えて、裏面画先空読み量分の領域を裏面画先空読み領域とする。
On the other hand, when it is determined that the back side image tip adjustment mode is “OFF” (NO in S631), the CPU 103 sets the back side image tip blank reading amount to “0” in S633, and proceeds to S634.
The back side image pre-reading amount represents the number of lines for pre-reading the area before the image destination of the back image data temporarily stored in the back page buffer 502. In addition, the area for the back side image pre-reading amount is set as the back side image pre-reading area.

S634において、CPU103は、裏面画末調整モードが「ON」か否かを判定する。そして、裏面画末調整モードが「ON」と判定した場合(S634でYESの場合)、CPU103は、S635において、裏面画末空読み量(例えば図7B(d)に示すような画末空読みライン数)を算出して設定し、S640に処理を進める。   In S634, the CPU 103 determines whether or not the back side image end adjustment mode is “ON”. If it is determined that the back side image end adjustment mode is “ON” (YES in S634), the CPU 103 determines in S635 that the back side image end blank reading amount (for example, the end of image end blank reading as shown in FIG. 7B (d)). The number of lines) is calculated and set, and the process proceeds to S640.

一方、前記S634において、裏面画末調整モードが「OFF」と判定した場合(S634でNOの場合)、CPU103は、S636において、裏面画末空読み量を「0」に設定し、S640に処理を進める。
なお、裏面画末空読み量は、裏面用ページバッファ502に一時蓄積した裏面画像データの画末より後の領域を空読みするライン数を表す。加えて、裏面画末空読み量分の領域を裏面画末空読み領域とする。
On the other hand, if it is determined in S634 that the back side image end adjustment mode is “OFF” (NO in S634), the CPU 103 sets the back side image end blank reading amount to “0” in S636 and the processing in S640 To proceed.
The back side image end blank reading amount represents the number of lines in which the area after the end of the back side image data temporarily stored in the back page buffer 502 is read idle. In addition, the back side image end blank reading area is set as the back side image end blank reading region.

また、前記S629において、前記S628で取得した原稿副走査長が前記S601で受け付けた原稿サイズより小さくないと判定した場合(S629でNOの場合)、CPU103は、S637に処理を進める。   If it is determined in S629 that the document sub-scanning length acquired in S628 is not smaller than the document size received in S601 (NO in S629), the CPU 103 advances the process to S637.

S637において、CPU103は、前記S606で設定した裏面画像サイズを前記S601で受け付けた原稿サイズで更新する。次に、S638において、CPU103は、裏面画先空読み量を「0」に設定する。また、S639において、CPU103は、裏面画末空読み量を「0」に設定し、S640に処理を進める。   In step S637, the CPU 103 updates the back side image size set in step S606 with the original size accepted in step S601. Next, in S638, the CPU 103 sets the back side image tip blank reading amount to “0”. In step S639, the CPU 103 sets the back side image end blank reading amount to “0”, and proceeds to step S640.

S640において、CPU103は、前記S630又はS637で設定した裏面画像サイズを、該「裏面画像サイズ」+「裏面画先空読み量に相当するサイズ」+「裏面画末空読み量に相当するサイズ」に更新する。
次に、S641において、CPU103は、前記S632、S633又はS638で設定した裏面画先空読み量を基に、裏面画先空読み領域の入力マスキング設定をスキャナ画像処理部116に対して行う。また、S642において、CPU103は、前記S635、S636又はS639で設定した裏面画末空読み量を基に、裏面画末空読み領域の入力マスキング設定をスキャナ画像処理部116に対して行う。これらの入力マスキング設定により、スキャナ画像処理部116は、画像処理を行う際に、該設定された領域の画像を白マスクする。
In S640, the CPU 103 sets the back image size set in S630 or S637 to the “back image size” + “size corresponding to the back side image blank reading amount” + “size corresponding to the back side image end blank reading amount”. Update to
Next, in S641, the CPU 103 performs input masking setting for the back side image front idle reading area to the scanner image processing unit 116 based on the back side image front idle reading amount set in S632, S633, or S638. In S642, the CPU 103 performs input masking setting for the back side image end blank reading area to the scanner image processing unit 116 based on the back side image end blank reading amount set in S635, S636, or S639. With these input masking settings, the scanner image processing unit 116 performs white masking on the image of the set area when performing image processing.

S643において、CPU103は、スキャナ画像処理部116に対する裏面画像データの画像処理を行うためのパラメータ設定を行う。ここでは、裏面画像サイズとして前記S640で設定された画像サイズを設定する。   In step S643, the CPU 103 performs parameter setting for performing image processing of the back surface image data on the scanner image processing unit 116. Here, the image size set in S640 is set as the back image size.

次に、S644において、CPU103は、前記S632、S633又はS638で設定した裏面画先空読み量を基に、裏面用ページバッファ502の画先空読みオフセットを設定する。具体的には、図7A(b)に示すように、CPU103は、裏面画先空読み量(ライン数)と1ラインあたりの画像サイズ(メモリサイズ)との乗算で求められる裏面画先空読み領域の大きさを画先オフセットサイズとする。さらに、CPU103は、実体がリングバッファである裏面用ページバッファ502の終端アドレスから前記画先オフセットサイズを減算したアドレスから、裏面画像データの読み出しが行われるように、スキャナ画像処理部116の画像データ入力設定を行う。また、図7B(d)に示すように、CPU103は、裏面画末空読み量(ライン数)と1ラインあたりの画像サイズ(メモリサイズ)との乗算で求められる裏面画末空読み領域の大きさを画末オフセットサイズとする。なお、前記画先空読みオフセットを先頭として、裏面用ページバッファ502から読み出すデータの総サイズは、前記原稿副走査長分のデータサイズに、前記画先オフセットサイズと前記画末オフセットサイズを加算した値となる。また、前記原稿副走査長分のデータサイズに、前記画先オフセットサイズと前記画末オフセットサイズを加算した値は、前記S601で受け付けた原稿サイズ分のデータサイズと一致する。   Next, in S644, the CPU 103 sets the image destination idle reading offset of the back page buffer 502 based on the back image destination idle reading amount set in S632, S633, or S638. Specifically, as shown in FIG. 7A (b), the CPU 103 determines that the back side image pre-reading is obtained by multiplying the back side image pre-reading amount (number of lines) by the image size (memory size) per line. Let the size of the area be the destination offset size. Further, the CPU 103 reads the image data of the scanner image processing unit 116 so that the back side image data is read from the address obtained by subtracting the image destination offset size from the end address of the back side page buffer 502 which is a ring buffer. Configure input settings. Further, as shown in FIG. 7B (d), the CPU 103 determines the size of the back end blank reading area obtained by multiplying the back end blank reading amount (number of lines) by the image size (memory size) per line. This is the end-of-screen offset size. Note that the total size of data read from the back page buffer 502 starting from the image destination blank reading offset is obtained by adding the image destination offset size and the image end offset size to the data size of the original sub-scanning length. Value. Further, the value obtained by adding the image destination offset size and the image end offset size to the data size corresponding to the document sub-scanning length matches the data size corresponding to the document size received in S601.

次に、S645において、CPU103は、スキャナ画像処理部116による裏面の画像処理を開始する。
次に、S646において、CPU103は、スキャナ画像処理部116による裏面の画像処理が完了したか否かを判定する。ここで、裏面画像処理が完了していないと判定した場合(S646でNOの場合)、CPU103は、S646にて裏面画像処理の完了を待つ。一方、裏面画像処理が完了していると判定した場合(S646でYESの場合)、CPU103は、S647に処理を進める。
Next, in S645, the CPU 103 starts the back side image processing by the scanner image processing unit 116.
Next, in S646, the CPU 103 determines whether or not the back surface image processing by the scanner image processing unit 116 has been completed. If it is determined that the back image processing has not been completed (NO in S646), the CPU 103 waits for completion of the back image processing in S646. On the other hand, if it is determined that the back image processing has been completed (YES in S646), the CPU 103 advances the process to S647.

S647において、CPU103は、スキャナ画像処理部116の処理を停止する。
次に、S648において、CPU103は、前記裏面用ページバッファを解放し、当該原稿に対する読み取り処理を終了する。
以上の処理により、裏面用ページバッファ502内の裏面画像データの画末又は画先に、原稿裏面読取時に不足していた画像を付加し、スキャナ画像処理部116に入力することが可能となる。
In S647, the CPU 103 stops the process of the scanner image processing unit 116.
In step S648, the CPU 103 releases the back page buffer and ends the reading process for the document.
With the above processing, it is possible to add an image that has been insufficient at the time of reading the back side of the document to the end of the back side image data or the image destination in the back side page buffer 502 and input it to the scanner image processing unit 116.

以下、図7〜図11について説明する。
図7A(a)は、原稿の画像向きが「縦長」、かつ、開き方向が「上下開き」である場合の裏面画像の裏面用ページバッファ502への一時蓄積を表している。図7A(b)は、原稿の画像向きが「縦長」、かつ、開き方向が「上下開き」である場合の裏面画像のスキャナ画像処理部116への入力を表している。この場合、裏面用ページバッファ502の終端アドレスから画先オフセットサイズを減算したアドレスから、指定原稿サイズの裏面画像データの読み出しが行われ、スキャナ画像処理部116に入力される。すなわち、裏面画先空読み領域の画像が画先に付加された裏面画像データがスキャナ画像処理部116に入力される。
Hereinafter, FIGS. 7 to 11 will be described.
FIG. 7A (a) shows temporary storage of the back image in the back page buffer 502 when the image orientation of the document is “vertically long” and the opening direction is “vertical open”. FIG. 7A (b) shows the input of the back image to the scanner image processing unit 116 when the image orientation of the original is “portrait” and the opening direction is “vertical opening”. In this case, the back side image data of the designated document size is read from the address obtained by subtracting the image destination offset size from the end address of the back side page buffer 502 and input to the scanner image processing unit 116. That is, back side image data in which an image of the back side image front blank reading area is added to the image side is input to the scanner image processing unit 116.

図7B(c)は、原稿の画像向きが「縦長」、かつ、開き方向が「左右開き」である場合の裏面画像の裏面用ページバッファ502への一時蓄積を表している。図7B(d)は、原稿の画像向きが「縦長」、かつ、開き方向が「左右開き」である場合の裏面画像のスキャナ画像処理部116への入力を表している。この場合、裏面用ページバッファ502の先頭アドレスから、指定原稿サイズの裏面画像データの読み出しが行われ、スキャナ画像処理部116に入力される。すなわち、裏面画先空読み領域の画像が画末に付加された裏面画像データがスキャナ画像処理部116に入力される。   FIG. 7B (c) shows the temporary storage of the back image in the back page buffer 502 when the image orientation of the document is “vertically long” and the opening direction is “left and right open”. FIG. 7B (d) shows the input of the back image to the scanner image processing unit 116 when the image orientation of the document is “portrait” and the opening direction is “left / right opening”. In this case, the back side image data of the designated document size is read from the top address of the back side page buffer 502 and input to the scanner image processing unit 116. That is, the back side image data in which the image of the back side image pre-read area is added to the end of the screen is input to the scanner image processing unit 116.

上述したように、図8および図9は、実際の原稿サイズがLTRサイズの原稿に対して、原稿サイズとしてLGLサイズを指定して両面読み取りを実行した際の出力画像の一例を表している。また、図10および図11は、実際の原稿サイズがLTRサイズの原稿に対して原稿サイズとしてLTRサイズを指定して両面読み取りを実行した際の出力画像の一例を表している。   As described above, FIG. 8 and FIG. 9 show an example of an output image when double-sided scanning is performed with the LGL size specified as the document size for the document whose actual document size is the LTR size. FIG. 10 and FIG. 11 show an example of an output image when duplex scanning is executed by designating an LTR size as a document size for a document having an actual document size of LTR.

図8Aは、原稿の画像向きが「縦長」かつ開き方向が「左右開き」である場合の出力画像を表している。この場合、実際の原稿サイズよりも指定原稿サイズが長く、表面と裏面で読み取り基準端と画像基準端の位置関係が同一である。このため、裏面も、表面と同様に、画像基準端(画像上端)から読み取られる。よって、裏面用ページバッファ502には、図7B(c)のように、実際の原稿サイズの裏面画像データが裏面用ページバッファ502に格納される。この場合、図7B(d)のように、裏面画末空読み量を、実際の原稿サイズと指定原稿サイズの原稿搬送方向の差分量とする。すなわち、裏面用ページバッファ502内のデータ有効範囲は、裏面用ページバッファ502の先頭アドレスから指定原稿サイズ分までの範囲となる。これにより、原稿読取時に不足していた画像が画末に付加された有効画像が裏面用ページバッファ502から、スキャナ画像処理部116に入力される。   FIG. 8A shows an output image when the image orientation of the document is “portrait” and the opening direction is “left-right opening”. In this case, the designated document size is longer than the actual document size, and the positional relationship between the reading reference end and the image reference end is the same on the front and back surfaces. For this reason, the back side is also read from the image reference end (upper end of the image) in the same manner as the front side. Therefore, the back side image buffer of the actual document size is stored in the back side page buffer 502 as shown in FIG. 7B (c). In this case, as shown in FIG. 7B (d), the back side image end blank reading amount is set as a difference amount between the actual document size and the designated document size in the document conveyance direction. That is, the valid data range in the back page buffer 502 is a range from the top address of the back page buffer 502 to the designated document size. As a result, an effective image in which an image that has been insufficient at the time of document reading is added to the end of the image is input from the back page buffer 502 to the scanner image processing unit 116.

図8Bは、原稿の画像向きが「縦長」かつ開き方向が「上下開き」である場合の出力画像を表している。この場合、実際の原稿サイズよりも指定原稿サイズが長く、さらに表面と裏面で読み取り基準端と画像基準端の位置関係が異なる。このため、裏面は、表面と異なり、画像基準端(画像上端)とは逆の方向から読み取られる。よって、裏面用ページバッファ502には、図7A(a)のように、実際の原稿サイズの裏面画像データが裏面用ページバッファ502に格納される。この場合、図7A(b)のように、裏面画先空読み量を、実際の原稿サイズと指定原稿サイズの原稿搬送方向の差分量とする。すなわち、裏面用ページバッファ502内のデータ有効範囲は、裏面用ページバッファ502の終末アドレスから上述の差分量を減算したアドレスから、指定原稿サイズ分までの範囲となる。これにより、原稿読取時に不足していた画像が画先に付加された有効画像が裏面用ページバッファ502から、スキャナ画像処理部116に入力される。   FIG. 8B shows an output image when the image orientation of the document is “portrait” and the opening direction is “vertical opening”. In this case, the designated document size is longer than the actual document size, and the positional relationship between the reading reference edge and the image reference edge is different between the front surface and the back surface. For this reason, unlike the front surface, the back surface is read from a direction opposite to the image reference end (image upper end). Therefore, the back side image buffer of the actual document size is stored in the back side page buffer 502 as shown in FIG. In this case, as shown in FIG. 7A (b), the back side image pre-reading amount is set as a difference amount between the actual document size and the designated document size in the document transport direction. That is, the valid data range in the back page buffer 502 is a range from the address obtained by subtracting the above-described difference amount from the end address of the back page buffer 502 to the designated document size. As a result, an effective image in which an image lacking at the time of document reading is added to the image destination is input from the back page buffer 502 to the scanner image processing unit 116.

図9Aは、原稿の画像向きが「横長」かつ開き方向が「左右開き」である場合の出力画像を表している。この場合は、図8Bと同様である。
図9Bは、原稿の画像向きが「横長」かつ開き方向が「上下開き」である場合の出力画像を表している。この場合は、図8Aと同様である。
FIG. 9A shows an output image when the image orientation of the document is “landscape” and the opening direction is “left-right opening”. This case is similar to FIG. 8B.
FIG. 9B shows an output image when the image orientation of the document is “horizontal” and the opening direction is “vertical opening”. This case is similar to FIG. 8A.

図10Aは、原稿の画像向きが「縦長」かつ開き方向が「左右開き」である場合の出力画像を表している。図10Bは、原稿の画像向きが「縦長」かつ開き方向が「上下開き」である場合の出力画像を表している。
図11Aは、原稿の画像向きが「横長」かつ開き方向が「左右開き」である場合の出力画像を表している。図11Bは、原稿の画像向きが「横長」かつ開き方向が「上下開き」である場合の出力画像を表している。
FIG. 10A shows an output image when the image orientation of the document is “portrait” and the opening direction is “left-right opening”. FIG. 10B shows an output image when the image orientation of the document is “portrait” and the opening direction is “vertical opening”.
FIG. 11A shows an output image when the image orientation of the document is “landscape” and the opening direction is “left-right opening”. FIG. 11B shows an output image when the image orientation of the document is “landscape” and the opening direction is “up and down”.

図10および図11の場合は、いずれも実際の原稿サイズがLTRサイズの原稿に対して原稿サイズとしてLTRサイズを指定している。このように実際の原稿サイズが指定原稿サイズと同一である。このため、表面と裏面で読み取り基準端と画像基準端の位置関係に関わらず、スキャナ114から入力された画像全体が有効画像と一致する。よって、裏面用ページバッファ502内のデータ有効範囲は、表面と裏面での読み取り基準端と画像基準端の位置関係に関わらず、裏面用ページバッファ502の先頭アドレスから指定原稿サイズ分と決定される。よって、裏面画先空読み量と裏面画末空読み量はともに「0」となる。すなわち、この場合、空読みは行われない。   In both cases of FIGS. 10 and 11, the LTR size is designated as the document size for the document whose actual document size is the LTR size. Thus, the actual document size is the same as the designated document size. Therefore, the entire image input from the scanner 114 matches the effective image regardless of the positional relationship between the reading reference end and the image reference end on the front surface and the back surface. Therefore, the valid data range in the back page buffer 502 is determined as the specified document size from the top address of the back page buffer 502 regardless of the positional relationship between the reading reference end and the image reference end on the front and back sides. . Therefore, both the back side image blank reading amount and the back side image end blank reading amount are “0”. That is, in this case, no idle reading is performed.

以上説明したように、本実施例によれば、画像処理プロセッサやメモリ等のハードウェア資源に制限がある両面画像読取装置で、次のような効果がある。表面と裏面で読み取り基準端と画像基準端の位置関係が異なる両面原稿に対して、表面画像の出力位置や出力範囲に対応した裏面画像の出力を行い、所望の出力結果を得ることが可能となる。すなわち、簡単な構成で、生産性を損なうことなく、表面画像の出力位置や出力範囲に対応した裏面画像の出力が可能となり、所望の出力結果を得ることが可能となる。   As described above, according to this embodiment, the double-sided image reading apparatus with limited hardware resources such as an image processor and a memory has the following effects. It is possible to output the back image corresponding to the output position and output range of the front image and obtain the desired output result for a double-sided document where the positional relationship between the reading reference edge and the image reference edge is different on the front and back sides. Become. That is, it is possible to output the back image corresponding to the output position and output range of the front image with a simple configuration without impairing the productivity, and it is possible to obtain a desired output result.

なお、上記実施例では、生産性等を考慮し、表面と裏面で読み取り基準端と画像基準端の位置関係に関わらず、裏面の画像データを実際の原稿サイズで読み取る。そして、表面と裏面で読み取り基準端と画像基準端の位置関係が異なるか同じかに応じて、裏面画先空読み量、裏面画末空読み量を決定する構成について説明した。しかし、表面と裏面で読み取り基準端と画像基準端の位置関係が同じ場合(例えば図8A、図9B等)には、表面と同様に、裏面の画像データを指定原稿サイズで読み取るように構成してもよい。すなわち、指定原稿サイズが実際の原稿サイズを超える場合、原稿サイズを超える範囲についてはスキャナ114により白板から読み取られた画像データが、スキャナ114から入力されるように構成してもよい。この場合、スキャナ画像処理部116へ入力される画像データの範囲も、表面と同様となる。   In the above embodiment, considering the productivity and the like, the back side image data is read at the actual document size regardless of the positional relationship between the reading reference end and the image reference end on the front side and the back side. The configuration has been described in which the back side image front blank reading amount and the back side image blank reading amount are determined according to whether the positional relationship between the reading reference edge and the image reference edge is different between the front surface and the back surface. However, when the positional relationship between the reading reference edge and the image reference edge is the same on the front surface and the back surface (for example, FIG. 8A, FIG. 9B, etc.), the back side image data is configured to be read at a specified original size as with the front surface. May be. That is, when the designated document size exceeds the actual document size, the image data read from the white plate by the scanner 114 may be input from the scanner 114 for the range exceeding the document size. In this case, the range of image data input to the scanner image processing unit 116 is the same as that on the surface.

なお、上述した各種データの構成及びその内容はこれに限定されるものではなく、用途や目的に応じて、様々な構成や内容で構成されていてもよい。
以上、一実施形態について示したが、本発明は、例えば、システム、装置、方法、プログラムもしくは記憶媒体等としての実施態様をとることが可能である。具体的には、複数の機器から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。
また、上記各実施例を組み合わせた構成も全て本発明に含まれるものである。
In addition, the structure of the various data mentioned above and its content are not limited to this, You may be comprised with various structures and content according to a use and the objective.
Although one embodiment has been described above, the present invention can take an embodiment as, for example, a system, apparatus, method, program, or storage medium. Specifically, the present invention may be applied to a system composed of a plurality of devices, or may be applied to an apparatus composed of a single device.
Moreover, all the structures which combined said each Example are also contained in this invention.

(その他の実施例)
本発明は、上述の実施例の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
また、本発明は、複数の機器から構成されるシステムに適用しても、1つの機器からなる装置に適用してもよい。
本発明は上記実施例に限定されるものではなく、本発明の趣旨に基づき種々の変形(各実施例の有機的な組合せを含む)が可能であり、それらを本発明の範囲から除外するものではない。即ち、上述した各実施例及びその変形例を組み合わせた構成も全て本発明に含まれるものである。
(Other examples)
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
Further, the present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device.
The present invention is not limited to the above embodiments, and various modifications (including organic combinations of the embodiments) are possible based on the spirit of the present invention, and these are excluded from the scope of the present invention. is not. That is, the present invention includes all the combinations of the above-described embodiments and modifications thereof.

101 画像形成装置
103 CPU
105 RAM
109 スキャナI/F
114 スキャナ
116 スキャナ画像処理部
101 Image forming device
103 CPU
105 RAM
109 Scanner I / F
114 scanner
116 Scanner image processor

Claims (11)

原稿搬送路に沿って原稿を搬送する搬送手段と、前記原稿搬送路の両側に第1読取手段と第2読取手段を具備し、前記搬送路を搬送される原稿の両面を読取可能な画像読取装置であって、
前記第2読取手段により前記原稿から読み取られた画像データを記憶するページバッファとして用いる記憶手段と、
前記原稿の読取設定を指定する指定手段と、
前記搬送路を搬送される原稿を検知する検知手段と、
前記搬送手段により前記原稿を搬送し、前記指定手段で指定された読取設定に基づいて、前記第1読取手段による前記原稿の第1面の読取処理と、前記第2読取手段により前記原稿の第2面を読み取り前記記憶手段に確保されたページバッファに記憶する前記第2面の読取処理とを並列で実行する並列処理を制御する制御手段と、を有し、
前記制御手段は、前記読取設定が前記原稿の搬送方向先端と前記原稿の画像上端の位置関係が前記原稿の両面で同一となる読取設定か否かの判定結果に基づいて、前記並列処理にて前記第2読取手段により読み取られて前記ページバッファに記憶された前記第2面の画像データの画先又は画末に、前記読取設定として指定された原稿サイズと前記検知手段の原稿検知に基づいて検出された原稿サイズとの前記搬送方向の差分量に基づく画像を付加する、ことを特徴とする画像読取装置。
An image reading unit that includes a conveyance unit that conveys a document along a document conveyance path, and a first reading unit and a second reading unit on both sides of the document conveyance path, and is capable of reading both sides of the document conveyed on the conveyance path. A device,
Storage means used as a page buffer for storing image data read from the original by the second reading means;
Designating means for designating the reading setting of the document;
Detection means for detecting a document conveyed on the conveyance path;
The original is conveyed by the conveying means, and the first surface of the original is read by the first reading means based on the reading setting designated by the designation means, and the original of the original is read by the second reading means. Control means for controlling parallel processing for reading two surfaces and executing parallel reading processing of the second surface for storing in a page buffer secured in the storage means;
The control means performs the parallel processing based on a determination result as to whether or not the reading setting is a reading setting in which a positional relationship between the leading end of the document in the transport direction and the upper end of the image of the document is the same on both sides of the document. Based on the original size designated as the reading setting and the original detection of the detection means at the image destination or the end of the image data of the second surface read by the second reading means and stored in the page buffer. An image reading apparatus that adds an image based on a difference amount in the conveyance direction from a detected document size.
前記制御手段は、前記ページバッファから前記第2面の画像データを読み出す際に、前記ページバッファの前記第2面の画像データが記憶されている領域を読み出す前又は後に、前記ページバッファの他の領域の前記差分量に基づく量のデータを読み出すことにより、前記第2面の画像データの画先又は画末に前記画像を付加する、ことを特徴とする請求項1に記載の画像読取装置。   The control means, when reading out the image data of the second surface from the page buffer, before or after reading the area where the image data of the second surface of the page buffer is stored, 2. The image reading apparatus according to claim 1, wherein the image is added to an image destination or an image end of the image data of the second surface by reading out data of an amount based on the difference amount of a region. 前記ページバッファは、リングバッファであり、
前記制御手段は、前記位置関係が前記原稿の両面で異なる読取設定の場合、前記ページバッファから前記第2面の画像データを読み出す際の読み出す有効範囲を、前記リングバッファの終端アドレスから前記差分量に相当するアドレスを減算したアドレスから、前記指定された原稿サイズに相当する範囲までとする、ことを特徴とする請求項2に記載の画像読取装置。
The page buffer is a ring buffer;
When the reading relationship is different for both sides of the document, the control means determines the effective range for reading the image data of the second side from the page buffer from the end address of the ring buffer. The image reading apparatus according to claim 2, wherein an address corresponding to is subtracted from an address corresponding to the designated document size.
前記ページバッファは、リングバッファであり、
前記制御手段は、前記位置関係が前記原稿の両面で同一となる読取設定の場合、前記ページバッファから前記第2面の画像データを読み出す際の読み出す有効範囲を、前記リングバッファの先頭アドレスから、前記指定された原稿サイズに相当する範囲までとする、ことを特徴とする請求項2に記載の画像読取装置。
The page buffer is a ring buffer;
In the case of the reading setting in which the positional relationship is the same on both sides of the document, the control means determines the effective range to be read when reading the image data of the second side from the page buffer from the head address of the ring buffer. The image reading apparatus according to claim 2, wherein the image reading apparatus has a range corresponding to the designated document size.
前記制御手段は、前記第1読取手段の読み取り範囲を、前記読取設定として指定された原稿サイズとして前記並列処理における前記第1面の読取処理を制御し、前記第2読取手段の読み取り範囲を、前記読取設定として指定された原稿サイズを上限とした前記搬送される原稿の先端から後端までの範囲として前記並列処理における前記第2面の読取処理を制御する、ことを特徴とする請求項1〜4のいずれか1項に記載の画像読取装置。   The control unit controls the reading process of the first surface in the parallel processing by setting the reading range of the first reading unit as the document size specified as the reading setting, and sets the reading range of the second reading unit, 2. The reading process of the second surface in the parallel processing is controlled as a range from the leading end to the trailing end of the conveyed document with the document size specified as the reading setting as an upper limit. The image reading device according to any one of? 前記読取設定は、前記原稿が縦長原稿か横長原稿かを指定する設定と、前記原稿が上下開き原稿か左右開き原稿かを指定する設定と、前記原稿の原稿サイズを指定する設定とを含み、
前記制御手段は、前記読取設定として縦長原稿かつ上下開き原稿、又は、横長原稿かつ左右開き原稿が指定された場合、前記位置関係が前記原稿の両面で異なる読取設定であると判定し、また、前記読取設定として縦長原稿かつ左右開き原稿、又は、横長原稿かつ上下開き原稿が指定された場合、前記位置関係が前記原稿の両面で同一の読取設定であると判定する、ことを特徴とする請求項1〜5のいずれか1項に記載の画像読取装置。
The reading setting includes a setting for designating whether the document is a portrait document or a landscape document, a setting for designating whether the document is a vertically opened document or a horizontally opened document, and a setting for designating a document size of the document,
The control unit determines that the positional relationship is a different reading setting on both sides of the document when a vertically long document and a vertically opened document or a horizontally long document and a horizontally opened document are designated as the reading setting, and When a vertically long document and a horizontally opened document or a horizontally long document and a vertically opened document are designated as the reading setting, it is determined that the positional relationship is the same reading setting on both sides of the document. Item 6. The image reading apparatus according to any one of Items 1 to 5.
前記原稿から読み取られた画像データに対して画像処理を行う画像処理手段を有し、
前記制御手段は、前記画像処理手段により前記第2面の画像データを画像処理させる場合、前記画像が付加されたデータを前記画像処理手段に入力する、ことを特徴とする請求項1〜6のいずれか1項に記載の画像読取装置。
Image processing means for performing image processing on image data read from the document;
7. The control unit according to claim 1, wherein when the image processing unit performs image processing on the image data of the second surface, the control unit inputs data to which the image is added to the image processing unit. The image reading apparatus according to claim 1.
前記制御手段は、前記画像処理手段により前記第2面の画像データを画像処理させる場合、前記画像処理手段に入力するデータのうち、前記画像を付加した領域に対応するデータに関しては、前記画像処理手段に入力マスキング処理を実行させるように制御する、ことを特徴とする請求項7に記載の画像読取装置。   When the image processing unit causes the image processing unit to perform image processing on the image data of the second surface, the data corresponding to the region to which the image is added among the data input to the image processing unit is the image processing unit. The image reading apparatus according to claim 7, wherein the image reading apparatus is controlled to cause the means to execute an input masking process. 前記制御手段は、前記並列処理では、前記第1読取手段により前記第1面を読み取りつつ該第1面から読み取られた画像データを前記画像処理手段により逐次画像処理する第1面の読取処理と、前記第2読取手段により前記第2面を読み取り該第2面から読み取られた画像データを前記ページバッファに記憶する第2面の読取処理を並列で行い、該並列処理が完了した後に、前記ページバッファから読み出されるデータを前記画像処理手段により画像処理するように制御する、ことを特徴とする請求項7又は8に記載の画像読取装置。   In the parallel processing, the control unit reads the first surface by the first reading unit, and sequentially performs image processing on the image data read from the first surface by the image processing unit. The second reading means reads the second surface and stores the image data read from the second surface in the page buffer in parallel, and after the parallel processing is completed, 9. The image reading apparatus according to claim 7, wherein control is performed so that data read from a page buffer is processed by the image processing means. 原稿搬送路に沿って原稿を搬送する搬送手段と、前記原稿搬送路の両側に第1読取手段と第2読取手段を具備し、前記搬送路を搬送される原稿の両面を読取可能であり、前記第2読取手段により前記原稿から読み取られた画像データを記憶するページバッファとして用いる記憶手段と、前記搬送路を搬送される原稿を検知する検知手段と、を有する画像読取装置の制御方法であって、
前記原稿の読取設定を指定する指定ステップと、
前記搬送手段により前記原稿を搬送し、前記指定ステップで指定された読取設定に基づいて、前記第1読取手段による前記原稿の第1面の読取処理と、前記第2読取手段により前記原稿の第2面を読み取り前記ページバッファに記憶する前記第2面の読取処理とを並列で実行する並列処理ステップと、
前記読取設定が前記原稿の搬送方向先端と前記原稿の画像上端の位置関係が前記原稿の両面で同一となる読取設定か否かの判定結果に基づいて、前記並列処理ステップにて前記第2読取手段により読み取られて前記ページバッファに記憶された前記第2面の画像データの画先又は画末に、前記読取設定として指定された原稿サイズと前記検知手段の原稿検知に基づいて検出された原稿サイズとの前記搬送方向の差分量に基づく画像を付加する付加ステップと、
を有することを特徴とする画像読取装置の制御方法。
A conveyance unit that conveys a document along a document conveyance path; and a first reading unit and a second reading unit that are provided on both sides of the document conveyance path, and capable of reading both sides of the document conveyed on the conveyance path; A control method for an image reading apparatus, comprising: storage means used as a page buffer for storing image data read from the original by the second reading means; and detection means for detecting the original conveyed on the conveyance path. And
A specifying step for specifying the reading setting of the document;
The original is conveyed by the conveying means, and the first surface of the original is read by the first reading means based on the reading setting designated in the designation step, and the first reading of the original is made by the second reading means. A parallel processing step of reading two sides and storing the second side in a page buffer in parallel;
The second reading is performed in the parallel processing step based on a determination result of whether the reading setting is a reading setting in which the positional relationship between the leading edge of the document in the conveyance direction and the upper end of the image of the document is the same on both sides of the document. A document detected based on the document size specified as the reading setting and the document detection of the detection unit at the image destination or the end of the image data of the second surface read by the device and stored in the page buffer An addition step of adding an image based on a difference amount in the transport direction with respect to a size;
An image reading apparatus control method comprising:
コンピュータを、請求項1〜9のいずれか1項に記載の制御手段として機能させるためのプログラム。   The program for functioning a computer as a control means of any one of Claims 1-9.
JP2017021961A 2017-02-09 2017-02-09 Image reading device, control method thereof, and program Pending JP2018129701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017021961A JP2018129701A (en) 2017-02-09 2017-02-09 Image reading device, control method thereof, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017021961A JP2018129701A (en) 2017-02-09 2017-02-09 Image reading device, control method thereof, and program

Publications (1)

Publication Number Publication Date
JP2018129701A true JP2018129701A (en) 2018-08-16

Family

ID=63174233

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017021961A Pending JP2018129701A (en) 2017-02-09 2017-02-09 Image reading device, control method thereof, and program

Country Status (1)

Country Link
JP (1) JP2018129701A (en)

Similar Documents

Publication Publication Date Title
US7626735B2 (en) Image reading apparatus for correcting images on both sides of a document sheet
JP6338554B2 (en) Image processing apparatus, image processing method, and program
JP6884580B2 (en) Image processing device, control method of image processing device, and program
JP2006013821A (en) Image reading apparatus and correcting method of image data
JP6590991B2 (en) Information processing apparatus, information processing apparatus control method, and program
JP5354310B2 (en) Image reading apparatus and ground color correction program
JP2018129701A (en) Image reading device, control method thereof, and program
JP4465997B2 (en) Image reading apparatus, image processing apparatus, and image processing method
JP2006086734A (en) Image scanner
JP4367096B2 (en) Image reading device
JP2006080941A (en) Image reading apparatus
JP4936076B2 (en) Image reading apparatus and image reading method
JP2010041595A (en) Image reader, image forming apparatus, image reading method, and computer program
JP4186796B2 (en) Image reading device
JP2005123703A (en) Image reading apparatus
JP7537136B2 (en) Image reading device, image processing device, and image processing system
JP2012156962A (en) Image reader and program of the same
JP2009194762A (en) Image processing apparatus
JP5251644B2 (en) Image reading apparatus and image reading method
JP5754134B2 (en) Image reading apparatus and image forming apparatus
JP2005123683A (en) Image reading apparatus
JP2005033457A (en) Image reader, image read method, and storage method for shading data
JP2011223347A (en) Original image reading apparatus
JP2019149664A (en) Double-sided image reader, method for controlling double-sided image reader, and program
JP2005094680A (en) Image forming apparatus and control method thereof

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20180306