JP6163907B2 - Image reading apparatus, image forming apparatus, and program - Google Patents

Image reading apparatus, image forming apparatus, and program Download PDF

Info

Publication number
JP6163907B2
JP6163907B2 JP2013129439A JP2013129439A JP6163907B2 JP 6163907 B2 JP6163907 B2 JP 6163907B2 JP 2013129439 A JP2013129439 A JP 2013129439A JP 2013129439 A JP2013129439 A JP 2013129439A JP 6163907 B2 JP6163907 B2 JP 6163907B2
Authority
JP
Japan
Prior art keywords
inclination
image
document
reading
correction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013129439A
Other languages
Japanese (ja)
Other versions
JP2015005854A (en
Inventor
茂朗 田村
茂朗 田村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2013129439A priority Critical patent/JP6163907B2/en
Publication of JP2015005854A publication Critical patent/JP2015005854A/en
Application granted granted Critical
Publication of JP6163907B2 publication Critical patent/JP6163907B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Input (AREA)
  • Image Processing (AREA)
  • Facsimiles In General (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

本発明は、画像読取装置、画像形成装置およびプログラムに関する。   The present invention relates to an image reading apparatus, an image forming apparatus, and a program.

原稿から画像を読み取る画像読取装置において、読み取られた画像の傾きを補正する技術が知られている。特許文献1には、原稿を光学的に読み取ることにより得られた画像データから画像の傾きを検出し、検出された傾きに基づいて画像データを補正する技術が記載されている。特許文献2には、スキャン画像から抽出されたページの外形に基づいてスキャン画像のスキュー角度を検出し、検出されたスキュー角度に応じてスキャン画像に対して歪み補正を行う技術が記載されている。特許文献3には、原稿が利用者によって作為に傾けられたか否かを判別し、利用者の作為による画像の傾きは補正しないことが記載されている。   In an image reading apparatus that reads an image from a document, a technique for correcting the inclination of the read image is known. Japanese Patent Application Laid-Open No. 2004-228561 describes a technique for detecting the tilt of an image from image data obtained by optically reading a document and correcting the image data based on the detected tilt. Patent Document 2 describes a technique for detecting a skew angle of a scanned image based on the outer shape of a page extracted from the scanned image, and correcting distortion on the scanned image according to the detected skew angle. . Patent Document 3 describes that it is determined whether or not a manuscript has been tilted by the user, and the tilt of the image caused by the user is not corrected.

特開平8−251387号公報JP-A-8-251387 特開2003−189082号公報JP 2003-189082 A 特開2010−011360号公報JP 2010-011360 A

本発明は、原稿の画像が読み取られてから当該画像の傾きの補正が開始されるまでの時間を短縮することを目的とする。   An object of the present invention is to shorten the time from when an image of a document is read to when correction of the inclination of the image is started.

請求項1に係る画像読取装置は、原稿から画像を読み取る読取手段と、前記読取手段に対して複数の原稿を順次搬送する搬送手段と、像の傾きを記憶する記憶手段と、前記読取手段によって読み取られた原稿の画像の傾きを、前記記憶手段に記憶されている傾きに基づいて補正する補正手段と、前記補正手段による補正と並行して、当該原稿の画像の傾きを検出する検出手段と、前記記憶手段に記憶されている傾きと前記検出手段により検出された傾きとの差が第1の閾値を超えた場合、前記記憶手段に記憶されている傾きを前記検出手段により検出された傾きに更新する更新手段とを有し、前記補正手段は、前記記憶手段に記憶されている傾きが前記更新手段により更新された場合、実行中の前記補正を中断し、更新後の傾きに基づいて、当該原稿の画像の傾きを補正し、当該原稿の次の原稿の読み取り時に、前記読取手段によって読み取られた前記次の原稿の画像の傾きを、前記記憶手段に記憶されている傾きに基づいて補正することを特徴とするThe image reading apparatus according to claim 1, reading means for reading an image from a document, and a conveying means for sequentially conveying a plurality of originals to said reading means, storage means for storing the tilt of the images, the reading unit detecting means for the inclination of the image of the document read, and correcting means for correcting, based on the inclination stored in the storage means, in parallel with the correction by the correcting means, for detecting a tilt of the image of the document by And the inclination stored in the storage means is detected by the detection means if the difference between the inclination stored in the storage means and the inclination detected by the detection means exceeds a first threshold. possess an updating means for updating the inclination, the correction means, when the slope stored in said memory means is updated by said updating means, to interrupt the correction of the running, based on the tilt of the updated The The inclination of the image of the original is corrected, and when the next original of the original is read, the inclination of the image of the next original read by the reading unit is corrected based on the inclination stored in the storage unit. It is characterized by doing .

請求項に係る画像読取装置は、請求項1に記載の構成において、記検出手段により検出された傾きが決められた条件を充たす場合、前記更新手段は、前記差が前記第1の閾値を超えたか否かに関わらず、前記記憶手段に記憶されている傾きを前記検出手段により検出された傾きに更新し、前記補正手段は、前記記憶手段に記憶されている傾きが前記更新手段により更新された後に、前記補正を開始することを特徴とする。 The image reading apparatus according to claim 2 is the structure of claim 1, when the inclination detected by pre Symbol detection means satisfy the determined condition, the update unit, the difference is the first threshold value Regardless of whether or not the value exceeds the inclination, the inclination stored in the storage means is updated to the inclination detected by the detection means, and the correction means updates the inclination stored in the storage means by the update means. The correction is started after the update.

請求項に係る画像読取装置は、請求項に記載の構成において、記決められた条件は、前記差が前記第1の閾値を超えた頻度が、決められた頻度を超えたことであることを特徴とする。 Read image according to claim 3 devices, in the configuration of claim 2, prior SL-determined conditions, the frequency of the difference exceeds the first threshold value, that exceeds a frequency which is determined It is characterized by being.

請求項係る画像読取装置は、請求項に記載の構成において、記決められた条件は、前記差が前記第1の閾値よりも大きい第2の閾値を超えたことであることを特徴とする。 4. The image reading apparatus according is characterized in that in the configuration of claim 2, prior SL-determined condition is that the difference exceeds a second threshold value larger than the first threshold value And

請求項係る画像形成装置は、稿から画像を読み取る読取手段と、前記読取手段に対して複数の原稿を順次搬送する搬送手段と、像の傾きを記憶する記憶手段と、前記読取手段によって読み取られた原稿の画像の傾きを、前記記憶手段に記憶されている傾きに基づいて補正する補正手段と、前記補正手段による補正と並行して、当該原稿の画像の傾きを検出する検出手段と、前記記憶手段に記憶されている傾きと前記検出手段により検出された傾きとの差が第1の閾値を超えた場合、前記記憶手段に記憶されている傾きを前記検出手段により検出された傾きに更新する更新手段と、前記補正手段により傾きが補正された画像を、記録媒体に形成する画像形成手段とを有し、前記補正手段は、前記記憶手段に記憶されている傾きが前記更新手段により更新された場合、実行中の前記補正を中断し、更新後の傾きに基づいて、当該原稿の画像の傾きを補正し、当該原稿の次の原稿の読み取り時に、前記読取手段によって読み取られた前記次の原稿の画像の傾きを、前記記憶手段に記憶されている傾きに基づいて補正することを特徴とするThe image forming apparatus according claim 5, reading means for reading an image from the original draft, and conveying means for sequentially conveying a plurality of originals to said reading means, storage means for storing the tilt of the images, the reading unit detecting means for the inclination of the image of the document read, and correcting means for correcting, based on the inclination stored in the storage means, in parallel with the correction by the correcting means, for detecting a tilt of the image of the document by And the inclination stored in the storage means is detected by the detection means if the difference between the inclination stored in the storage means and the inclination detected by the detection means exceeds a first threshold. and updating means for updating the inclination, the image inclination is corrected by the correction means, have a image forming means for forming on a recording medium, the correction means, the slope stored in said storing means the update If it is updated by a stage, the correction that is being executed is interrupted, the inclination of the image of the original is corrected based on the updated inclination, and is read by the reading unit when the next original of the original is read. The inclination of the image of the next original is corrected based on the inclination stored in the storage means .

請求項6に係るプログラムは、読取手段と搬送手段と記憶手段と制御手段とを有するコンピュータに、前記読取手段が、原稿から画像を読み取るステップと、前記搬送手段が、前記読取手段に対して複数の原稿を順次搬送するステップと、前記記憶手段が、原稿から読み取られた画像の傾きを記憶するステップと、前記制御手段が、前記読取手段によって読み取られた原稿の画像の傾きを、前記記憶手段に記憶されている傾きに基づいて補正するステップと、前記補正するステップと並行して、前記制御手段が、当該原稿の画像の傾きを検出するステップと、前記記憶手段に記憶されている傾きと前記検出された傾きとの差が第1の閾値を超えた場合、前記制御手段が、実行中の前記補正を中断し、前記記憶手段に記憶されている傾きが前記検出された傾きに更新された後の傾きに基づいて当該原稿の画像の傾きを補正し、前記読取手段によって読み取られた前記原稿の次の原稿の画像の傾きを、更新後の傾きに基づいて補正するステップとを実行させる。 According to a sixth aspect of the present invention, there is provided a program including a reading unit, a conveying unit, a storage unit, and a control unit, wherein the reading unit reads an image from a document, and the conveying unit includes a plurality of units for the reading unit. A step of sequentially transporting the original, a step in which the storage means stores an inclination of an image read from the original, and a control means in which the inclination of the image of the original read by the reading means is stored in the storage means. The step of correcting based on the inclination stored in the step, the step of the control means detecting the inclination of the image of the document in parallel with the step of correcting, and the inclination stored in the storage means If the difference between the detected slope is greater than a first threshold value, said control means interrupts the correction of the running, the inclination stored in the storage means the Based on the slope after being updated in the issued inclination correcting the tilt of the image of the document, the inclination of the next document image of the document read by said reading means, on the basis of the inclination of the updated And a step of correcting.

請求項1、、およびに係る発明によれば、第2の原稿の画像の傾きが検出された後に当該画像の傾きの補正が開始された場合に比べて、第2の原稿の画像が読み取られてから当該画像の傾きの補正が開始されるまでの時間が短縮される。
請求項に係る発明によれば、第2の原稿の画像の傾きが決められた条件を充たす場合に、第2の原稿の画像の傾きが補正されるときの誤差が低減される。
請求項に係る発明によれば、第1の原稿の画像の傾きと第2の原稿の画像の傾きとの差が第1の閾値を超えた頻度が決められた頻度を超えた場合に、第2の原稿の画像の傾きが補正されるときの誤差が低減される。
請求項に係る発明によれば、第1の原稿の画像の傾きと第2の原稿の画像の傾きとの差が第1の閾値よりも大きい第2の閾値を超えた場合に、第2の原稿の画像の傾きが補正されるときの誤差が低減される。
According to the first, fifth , and sixth aspects of the invention, the image of the second original is compared with the case where the correction of the inclination of the image is started after the inclination of the image of the second original is detected. The time from reading to the start of correction of the tilt of the image is shortened.
According to the invention of claim 2, when satisfying the condition that the inclination of the image of the second original has been determined, error when the inclination of the image of the second original is corrected is reduced.
According to the invention according to claim 3, when the difference between the inclination of the image of the first document and the inclination of the image of the second document exceeds the first threshold, An error in correcting the inclination of the image of the second original is reduced.
According to the fourth aspect of the present invention, when the difference between the inclination of the image of the first original and the inclination of the image of the second original exceeds a second threshold that is larger than the first threshold, the second The error when the inclination of the original image is corrected is reduced.

画像形成装置の機能的構成を示すブロック図Block diagram showing the functional configuration of the image forming apparatus 画像形成装置のハードウェア構成を示すブロック図Block diagram showing hardware configuration of image forming apparatus 画像読取部の全体構成を説明する図The figure explaining the whole structure of an image reading part 画像を読み取る処理を示すフローチャートFlow chart showing processing for reading image 基準傾きαの更新を例示する図Diagram illustrating update of reference slope α 画像の読み取りと画像データの出力との関係を示すタイミングチャートTiming chart showing the relationship between image reading and image data output 画像の読み取りと画像データの出力との関係の別の例を示すタイミングチャートTiming chart showing another example of relationship between image reading and image data output

図1は、本発明の一実施形態に係る画像形成装置1000の機能的構成を示すブロック図である。画像形成装置1000は、複写機、プリンタ、スキャナ、およびファクシミリなどとして機能する装置である。画像形成装置1000は、原稿搬送手段11と、画像読取手段12と、記憶手段13と、補正手段14と、検出手段15と、更新手段16と、画像形成手段17とを有する。原稿搬送手段11は、画像読取手段12に対して複数枚の原稿をページ単位で順次搬送する。画像読取手段12は、原稿から画像を読み取る。以下では、複数枚の原稿のうち、先に画像読取手段12により読み取られた原稿を「第1の原稿」と表現し、第1の原稿よりも後に画像読取手段12により読み取られた原稿を「第2の原稿」と表現する。ここで、「原稿」という語は、複数枚の用紙に記録された文書のうちの1枚を指す。記憶手段13は、後述する傾き補正において用いられる、傾きを記憶する。以下では、記憶手段13により記憶されている傾きを「基準傾き」と表現する。補正手段14は、原稿の画像の傾きを、基準傾きに基づいて補正する。検出手段15は、補正手段14による補正と並行して、第2の原稿の画像の傾きを検出する。更新手段16は、基準傾きと検出手段15により検出された第2の原稿の画像の傾きとの差が第1の閾値を超えた場合、基準傾きを検出手段15により検出された傾きに更新する。第1の閾値は、基準傾きが更新手段16により更新されるときの基準となる、予め定められた値である。画像形成手段17は、補正手段14により傾きが補正された画像を、用紙(記録媒体の一例)に形成する。   FIG. 1 is a block diagram showing a functional configuration of an image forming apparatus 1000 according to an embodiment of the present invention. The image forming apparatus 1000 is an apparatus that functions as a copier, a printer, a scanner, a facsimile, or the like. The image forming apparatus 1000 includes a document conveying unit 11, an image reading unit 12, a storage unit 13, a correcting unit 14, a detecting unit 15, an updating unit 16, and an image forming unit 17. The document transport unit 11 sequentially transports a plurality of documents to the image reading unit 12 in units of pages. The image reading unit 12 reads an image from a document. In the following, among the plurality of originals, the original read by the image reading unit 12 first is expressed as “first original”, and the original read by the image reading unit 12 after the first original is “ This is expressed as “second manuscript”. Here, the term “original” refers to one of the documents recorded on a plurality of sheets. The storage unit 13 stores an inclination used in inclination correction described later. Hereinafter, the inclination stored in the storage unit 13 is expressed as “reference inclination”. The correcting unit 14 corrects the inclination of the document image based on the reference inclination. The detection unit 15 detects the inclination of the image of the second document in parallel with the correction by the correction unit 14. The update means 16 updates the reference inclination to the inclination detected by the detection means 15 when the difference between the reference inclination and the inclination of the second original image detected by the detection means 15 exceeds the first threshold. . The first threshold value is a predetermined value that serves as a reference when the reference slope is updated by the update unit 16. The image forming unit 17 forms an image whose inclination is corrected by the correcting unit 14 on a sheet (an example of a recording medium).

図2は、画像形成装置1000のハードウェア構成を示すブロック図である。画像形成装置1000は、制御部101と、通信部102と、記憶部103と、表示部104と、入力部105と、画像読取部106と、画像形成部107とを有する。制御部101は、画像形成装置1000の各部の動作を制御する。制御部101は、CPU(Central Processing Unit)1011とROM(Read Only Memory)1012とRAM(Random Access Memory)1013とを有する。CPU1011は、プログラムを実行することにより画像形成装置1000の各部を制御する制御装置である。ROM1012は、各種のプログラムおよびデータを記憶した不揮発性の記憶装置である。RAM1013は、データを記憶する揮発性の記憶装置である。本実施形態において、RAM1013は、画像読取部106が読み取った原稿の一枚分の画像データを記憶する記憶領域(フレームメモリ)を有する。通信部102は、外部装置と通信を行なう。記憶部103は、データおよびプログラムを記憶する記憶装置、例えばHDDである。表示部104は、液晶ディスプレイまたは有機ELディスプレイなどの表示装置を有し、画像形成装置1000を操作するためのメニュー画面または各種メッセージを表示する。入力部105は、画像形成装置1000にデータまたは指示を入力するための各種キーを備える。入力部105は、また、表示部104のディスプレイに重ねて設けられたタッチスクリーン(タッチパネル)を備える。画像読取部106は、原稿を光学的に読み取り、読み取った原稿を示す画像データを出力するイメージスキャナである。画像形成部107は、例えば電子写真方式またはインクジェット方式により用紙に画像を形成する装置である。   FIG. 2 is a block diagram illustrating a hardware configuration of the image forming apparatus 1000. The image forming apparatus 1000 includes a control unit 101, a communication unit 102, a storage unit 103, a display unit 104, an input unit 105, an image reading unit 106, and an image forming unit 107. The control unit 101 controls the operation of each unit of the image forming apparatus 1000. The control unit 101 includes a CPU (Central Processing Unit) 1011, a ROM (Read Only Memory) 1012, and a RAM (Random Access Memory) 1013. The CPU 1011 is a control device that controls each unit of the image forming apparatus 1000 by executing a program. The ROM 1012 is a non-volatile storage device that stores various programs and data. The RAM 1013 is a volatile storage device that stores data. In the present embodiment, the RAM 1013 has a storage area (frame memory) that stores image data for one sheet of document read by the image reading unit 106. The communication unit 102 communicates with an external device. The storage unit 103 is a storage device that stores data and programs, for example, an HDD. The display unit 104 includes a display device such as a liquid crystal display or an organic EL display, and displays a menu screen or various messages for operating the image forming apparatus 1000. The input unit 105 includes various keys for inputting data or instructions to the image forming apparatus 1000. The input unit 105 also includes a touch screen (touch panel) provided on the display of the display unit 104. The image reading unit 106 is an image scanner that optically reads a document and outputs image data indicating the read document. The image forming unit 107 is an apparatus that forms an image on a sheet by, for example, an electrophotographic method or an inkjet method.

図3は、画像読取部106の全体構成を説明する図である。画像読取部106は、容器1061と、送出ロール111と、第1フィードロール112と、プレレジロール113と、レジロール114と、プラテンガラス1062と、フルレートキャリッジ121と、ハーフレートキャリッジ122と、第2フィードロール115と、アウトロール116と、結像レンズ123と、CCD(Charge Coupled Device)イメージセンサ124と、蓄積部1063とを有する。   FIG. 3 is a diagram illustrating the overall configuration of the image reading unit 106. The image reading unit 106 includes a container 1061, a delivery roll 111, a first feed roll 112, a pre-registration roll 113, a registration roll 114, a platen glass 1062, a full rate carriage 121, a half rate carriage 122, and a second feed. A roll 115, an out-roll 116, an imaging lens 123, a CCD (Charge Coupled Device) image sensor 124, and a storage unit 1063 are included.

容器1061は、複数の原稿を積載する。容器1061が積載する原稿には、写真、文字、線画などの画像が記録されている。送出ロール111は、待機時にはリフトアップされて退避位置に保持され、原稿搬送時にニップ位置(原稿搬送位置)へ降下させられる。ニップ位置へ降下させられた送出ロール111は、容器1061に積載された原稿の束から最上位の原稿を1枚ずつ捌いて下流へ搬送する。以下では、原稿が搬送される方向を「搬送方向」と表現する。第1フィードロール112は、送出ロール111により搬送された原稿を搬送方向の更に下流側へ搬送する。プレレジロール113は、原稿を搬送方向の更に下流側のロールへ搬送するとともにその原稿のループ(たわみ)形成を行う。具体的には、プレレジロール113は、停止しているレジロール114に原稿の先端を突き当てて原稿にループを形成する。レジロール114は、一旦、停止した後にタイミングを合わせて回転を再開し、プラテンガラス1062の原稿が読み取られる領域に対してレジストレーション調整を施しながら原稿を搬送する。レジロール114から搬送された原稿は、プラテンガラス1062に押圧される。以下では、原稿の両面のうち、押圧されることによってプラテンガラス1062に接触する側の面を「表面」と表現する。   The container 1061 loads a plurality of documents. An image such as a photograph, a character, or a line drawing is recorded on the original loaded on the container 1061. The delivery roll 111 is lifted up and held at the retracted position during standby, and is lowered to the nip position (original conveyance position) during document conveyance. The delivery roll 111 lowered to the nip position picks up the uppermost document one by one from the bundle of documents loaded on the container 1061 and conveys it downstream. In the following, the direction in which the document is conveyed is expressed as a “conveyance direction”. The first feed roll 112 transports the document transported by the delivery roll 111 further downstream in the transport direction. The pre-registration roll 113 transports the document to a roll further downstream in the transport direction and forms a loop (deflection) of the document. Specifically, the pre-registration roll 113 forms a loop on the document by abutting the leading edge of the document against the stopped registration roll 114. The registration roll 114 once stops and resumes rotation at the same timing, and conveys the original while performing registration adjustment on the area of the platen glass 1062 where the original is read. The document conveyed from the registration roll 114 is pressed against the platen glass 1062. In the following, the surface of the document that comes into contact with the platen glass 1062 when pressed is expressed as “front surface”.

フルレートキャリッジ121は、ランプ121Lと第1ミラーM1とを有する。ランプ121Lは、主走査方向(図3の紙面に垂直な方向)に伸びた棒状の光源であり、プラテンガラス1062に押圧された原稿の表面に対して光を照射する。以下では、プラテンガラス1062上で、ランプ121Lにより光が照射される領域(すなわち原稿が読み取られる領域)を、「読み取りライン」と表現する。第1ミラーM1は、原稿に照射された光の反射光を受光する。ハーフレートキャリッジ122は、第2ミラーM2と第3ミラーM3とを有する。第2ミラーM2と第3ミラーM3とは、第1ミラーM1から得られた光を結像レンズ123へ伝播させる。結像レンズ123は、第3ミラーM3から得られた光学像を光学的に縮小する。CCDイメージセンサ124は、結像レンズ123によって結像された光学像を光電変換する。これにより原稿の表面に記録された画像は、搬送方向の下流側から順に、読み取りラインに沿って読み取られる。   The full rate carriage 121 includes a lamp 121L and a first mirror M1. The lamp 121L is a rod-shaped light source extending in the main scanning direction (a direction perpendicular to the paper surface of FIG. 3), and irradiates light on the surface of the document pressed against the platen glass 1062. Hereinafter, an area on the platen glass 1062 that is irradiated with light by the lamp 121L (that is, an area where an original is read) is expressed as a “read line”. The first mirror M1 receives the reflected light of the light irradiated on the document. The half rate carriage 122 includes a second mirror M2 and a third mirror M3. The second mirror M2 and the third mirror M3 propagate the light obtained from the first mirror M1 to the imaging lens 123. The imaging lens 123 optically reduces the optical image obtained from the third mirror M3. The CCD image sensor 124 photoelectrically converts the optical image formed by the imaging lens 123. As a result, the images recorded on the surface of the document are read along the reading line in order from the downstream side in the transport direction.

第2フィードロール115は、CCDイメージセンサ124によって画像が読み取られた原稿をアウトロール116に向けて搬送する。アウトロール116は、原稿を蓄積部1063に向けて排出する。蓄積部1063は、アウトロール116により排出された原稿を蓄積する。なお、画像読取部106は、容器1061に積載された原稿のほか、プラテンガラス1062に置かれた原稿を読み取る構成も備える。プラテンガラス1062に置かれた原稿を読み取る場合、画像読取部106は、フルレートキャリッジ121とハーフレートキャリッジ122とを矢印D1の方向に移動させる。   The second feed roll 115 conveys the document whose image has been read by the CCD image sensor 124 toward the out roll 116. The out roll 116 discharges the document toward the storage unit 1063. The accumulating unit 1063 accumulates the document discharged by the out-roll 116. The image reading unit 106 has a configuration for reading a document placed on the platen glass 1062 in addition to the document loaded on the container 1061. When reading an original placed on the platen glass 1062, the image reading unit 106 moves the full rate carriage 121 and the half rate carriage 122 in the direction of the arrow D1.

画像読取部106において、プログラムを実行しているCPU1011は、補正手段14、検出手段15、および更新手段16の一例である。プログラムを実行しているCPU1011により制御されているRAM1013は、記憶手段13の一例である。プログラムを実行しているCPU1011により制御されている送出ロール111、第1フィードロール112、プレレジロール113、およびレジロール114は、原稿搬送手段11の一例である。プログラムを実行しているCPU1011により制御されているフルレートキャリッジ121、ハーフレートキャリッジ122、結像レンズ123、およびCCDイメージセンサ124は、画像読取手段12の一例である。プログラムを実行しているCPU1011により制御されている画像形成部107は、画像形成手段17の一例である。   In the image reading unit 106, the CPU 1011 executing the program is an example of the correction unit 14, the detection unit 15, and the update unit 16. A RAM 1013 controlled by the CPU 1011 executing the program is an example of the storage unit 13. The delivery roll 111, the first feed roll 112, the pre-registration roll 113, and the registration roll 114 controlled by the CPU 1011 executing the program are examples of the document conveying unit 11. The full-rate carriage 121, the half-rate carriage 122, the imaging lens 123, and the CCD image sensor 124 that are controlled by the CPU 1011 executing the program are examples of the image reading unit 12. The image forming unit 107 controlled by the CPU 1011 executing the program is an example of the image forming unit 17.

図4は、画像形成装置1000が原稿から画像を読み取る処理を示すフローチャートである。以下の処理は、例えば、複数枚の原稿が容器1061に積み重ねられた状態で、ユーザが、入力部105を操作して画像形成装置1000に画像の読み取りの指示を入力したことを契機として開始される。画像の読み取りの指示は、複写、スキャナ、またはファクシミリなどの機能を実行させるために入力される。なお、以下で説明する「傾き」とは、読み取りラインに対する原稿に記録された画像の傾きをいう。   FIG. 4 is a flowchart illustrating processing in which the image forming apparatus 1000 reads an image from a document. The following processing is started when, for example, the user inputs an image reading instruction to the image forming apparatus 1000 by operating the input unit 105 in a state where a plurality of documents are stacked on the container 1061. The An image reading instruction is input to execute a function such as copying, scanning, or facsimile. Note that “tilt” described below refers to the tilt of an image recorded on a document with respect to a reading line.

ステップS1において、CPU1011は、容器1061に積載された複数枚の原稿のうち最上位の原稿について、画像の読み取りを開始する。以下では、画像の読み取りの対象となる原稿を「対象原稿」と表現する。また、対象原稿が2枚目以降の原稿である場合において、対象原稿よりも前に読み取りが開始された原稿を「先行原稿」と表現する。対象原稿の画像データは、搬送方向の下流側のデータから順にフレームメモリに記憶される。   In step S <b> 1, the CPU 1011 starts reading an image of the uppermost document among a plurality of documents stacked on the container 1061. In the following, a document that is a target of image reading is expressed as a “target document”. In addition, when the target document is a second or subsequent document, a document whose reading is started before the target document is expressed as “preceding document”. The image data of the target document is stored in the frame memory in order from the data on the downstream side in the transport direction.

ステップS2において、CPU1011は、先行原稿から読み取られた画像の傾きが決められた条件を充たすか否かを判断する。決められた条件の例としては、基準傾きと先行原稿の画像の傾きとの差が、第1の閾値(以下、「閾値Th1」という)よりも大きい第2の閾値(以下、「閾値Th2」という)を超えたことである。決められた条件の別の例としては、複数枚の先行原稿について、基準傾きと先行原稿の画像の傾きとの差が閾値Th1を超えた頻度が、入力部105から画像の読み取りの指示が入力されたときから数えて決められた頻度を超えたことである。この場合、ステップS1において、CPU1011は、画像の読み取りの指示が入力された後に読み取りが開始された原稿の枚数をRAM1013に記憶する。なお、上記頻度の判断は、読み取りが開始された原稿の枚数が予め決められた枚数を超えた後に行われてもよい。決められた条件を充たすか否かを判断するための要素は、後述するステップS6の判断が「YES」である場合にRAM1013に記憶される。先行原稿から読み取られた画像の傾きが決められた条件を充たさないと判断された場合(ステップS2:NO)、CPU1011は、処理をステップS3に移行する。ステップS3〜ステップS10の処理においては、対象原稿の画像の傾きの補正(以下、「傾き補正」という)が、対象原稿の画像の傾きが検出される前に開始される。以下では、ステップS3〜ステップS10の処理を、「並列処理モード」と表現する。先行原稿から読み取られた画像の傾きが決められた条件を充たすと判断された場合(ステップS2:YES)、CPU1011は、処理をステップS11に移行する。ステップS11〜ステップS14の処理においては、傾き補正が、対象原稿の画像の傾きが検出された後に開始される。以下では、ステップS11〜ステップS14の処理を、「個別処理モード」と表現する。なお、対象原稿が1枚目に読み取られた原稿である場合(すなわち先行原稿が存在しない場合)には、CPU1011は、ステップS2の判断をすることなく並列処理モードに移行する。   In step S2, the CPU 1011 determines whether or not the inclination of the image read from the preceding document satisfies a predetermined condition. As an example of the determined condition, a second threshold (hereinafter referred to as “threshold Th2”) in which the difference between the reference tilt and the tilt of the image of the preceding document is larger than a first threshold (hereinafter referred to as “threshold Th1”). It was over). As another example of the determined conditions, for a plurality of preceding documents, the frequency at which the difference between the reference tilt and the tilt of the image of the preceding document exceeds the threshold Th1 is input from the input unit 105 as an instruction to read an image. The frequency that was determined from the time of being exceeded was exceeded. In this case, in step S <b> 1, the CPU 1011 stores in the RAM 1013 the number of documents that have been read after an image reading instruction is input. The determination of the frequency may be performed after the number of originals from which reading has started exceeds a predetermined number. The element for determining whether or not the determined condition is satisfied is stored in the RAM 1013 when the determination in step S6 described later is “YES”. If it is determined that the inclination of the image read from the preceding document does not satisfy the determined condition (step S2: NO), the CPU 1011 shifts the processing to step S3. In the processing from step S3 to step S10, correction of the inclination of the image of the target document (hereinafter referred to as “tilt correction”) is started before the inclination of the image of the target document is detected. Hereinafter, the processing in steps S3 to S10 is expressed as “parallel processing mode”. When it is determined that the inclination of the image read from the preceding document satisfies the determined condition (step S2: YES), the CPU 1011 shifts the process to step S11. In the processing from step S11 to step S14, the inclination correction is started after the inclination of the image of the target document is detected. Hereinafter, the processing in steps S11 to S14 is expressed as “individual processing mode”. When the target document is the first document read (that is, when there is no preceding document), the CPU 1011 shifts to the parallel processing mode without making a determination in step S2.

ステップS3において、CPU1011は、RAM1013に記憶されている基準傾き(以下、「基準傾きα」という)を用いて、傾き補正を開始する。具体的には、CPU1011は、フレームメモリに記憶された対象原稿の画像データを、搬送方向の下流側のデータから順に、予め定められた処理単位(例えば1画素または1ライン(主走査方向の複数の画素のまとまり))毎に読み出し、傾き補正を開始する。CPU1011は、読み出した処理単位のデータに対して傾き補正を行う。CPU1011は、傾き補正したデータを、フレームメモリのうち、このデータの記憶領域に記憶する。以下では、傾き補正が開始された後の対象原稿の画像データを「補正中画像データ」と表現する。また、傾き補正が開始される前の対象原稿の画像データを「補正前画像データ」と表現する。なお、基準傾きαには、予め初期値が定められており、ROM1012に記憶されている。対象原稿が1枚目に読み取られた原稿である場合には、CPU1011は、当該初期値を用いて傾き補正を開始する。   In step S <b> 3, the CPU 1011 starts inclination correction using a reference inclination (hereinafter referred to as “reference inclination α”) stored in the RAM 1013. Specifically, the CPU 1011 sequentially processes the image data of the target document stored in the frame memory in a predetermined processing unit (for example, one pixel or one line (a plurality of pixels in the main scanning direction) from the downstream data in the transport direction. For each pixel))), and tilt correction is started. The CPU 1011 performs tilt correction on the read processing unit data. The CPU 1011 stores the tilt-corrected data in the data storage area of the frame memory. In the following, the image data of the target document after the inclination correction is started is expressed as “image data being corrected”. Further, the image data of the target document before the tilt correction is started is expressed as “pre-correction image data”. Note that an initial value is set in advance for the reference inclination α and is stored in the ROM 1012. If the target document is the first scanned document, the CPU 1011 starts tilt correction using the initial value.

ステップS4において、CPU1011は、補正中画像データの出力を開始する。具体的には、CPU1011は、補正中画像データのうち傾き補正が行われたデータを、搬送方向の下流側のデータから順にフレームメモリから読み出し、画像形成部107に対する出力を開始する。   In step S4, the CPU 1011 starts outputting the image data being corrected. Specifically, the CPU 1011 reads out the corrected image data from the frame memory in order from the data on the downstream side in the transport direction, and starts output to the image forming unit 107.

ステップS5において、CPU1011は、対象原稿の画像の傾き(以下、「傾きβ」という)を検出する。具体的には、CPU1011は、補正中画像データのうち傾き補正が行われたデータの中から予め定められた一部のデータ(例えば搬送方向の最下流から数ライン分のデータ)をフレームメモリから読み出して、当該データが示す画像の傾き(以下、「傾きγ」という)を検出する。CPU1011は、検出された傾きγと基準傾きαとの和を算出することにより傾きβを検出する。CPU1011は、検出された傾きβおよび傾きγをRAM1013に記憶する。なお、CPU1011は、補正中画像データのうち未だ傾き補正が行われていないデータをフレームメモリから読み出して(例えば、補正中画像データのうち搬送方向の最上流から数ライン分のデータを読みだして)、傾きβを検出してもよい。この場合、CPU1011は、検出された傾きβと基準傾きαとの差を算出することにより傾きγを検出してもよい。このように、CPU1011は、原稿の一枚分のフレームメモリを用いて、対象原稿の画像データの傾き補正と並行して、傾きβを検出する。ここでいう「並行」とは、対象原稿の画像データの傾き補正が開始された後に、当該対象原稿の画像の傾きの検出が開始されることをいう。   In step S5, the CPU 1011 detects the inclination of the image of the target document (hereinafter referred to as “inclination β”). Specifically, the CPU 1011 receives a part of predetermined data (for example, data corresponding to several lines from the most downstream in the transport direction) from the frame memory from among the corrected image data among the corrected image data. It reads out and detects the inclination of the image indicated by the data (hereinafter referred to as “inclination γ”). The CPU 1011 detects the inclination β by calculating the sum of the detected inclination γ and the reference inclination α. The CPU 1011 stores the detected inclination β and inclination γ in the RAM 1013. The CPU 1011 reads from the frame memory data that has not yet been subjected to tilt correction among the image data being corrected (for example, reads data for several lines from the most upstream of the image data being corrected in the transport direction). ), The slope β may be detected. In this case, the CPU 1011 may detect the inclination γ by calculating the difference between the detected inclination β and the reference inclination α. As described above, the CPU 1011 detects the inclination β in parallel with the inclination correction of the image data of the target original, using the frame memory for one original. Here, “parallel” means that the detection of the inclination of the image of the target document is started after the correction of the inclination of the image data of the target document is started.

ステップS6において、CPU1011は、基準傾きαと傾きβとの差が閾値Th1を超えるか否かを判断する。具体的には、CPU1011は、RAM1013から基準傾きαと傾きβを、ROM1012から閾値Th1をそれぞれ読みだして、基準傾きαと傾きβとの差の絶対値が閾値Th1を超えるか否かを判断する。基準傾きαと傾きβとの差が閾値Th1を超えると判断された場合(ステップS6:YES)、CPU1011は、処理をステップS7に移行する。基準傾きαと傾きβとの差が閾値Th1を超えないと判断された場合(ステップS6:NO)、CPU1011は、処理をステップS15に移行する。なお、ステップS6で「YES」と判断された場合には、CPU1011は、ステップS2において決められた条件を充たすか否かを判断するための要素として以下の情報をRAM1013に記憶する。ステップS2において基準傾きと先行原稿の画像の傾きとの差が閾値Th2を超えるか否かが判断される場合には、CPU1011は、基準傾きαと傾きβとの差をRAM1013に記憶する。また、ステップS2において基準傾きと先行原稿の画像の傾きとの差が閾値Th1を超えた頻度が、決められた頻度を超えたか否かが判断される場合には、CPU1011は、基準傾きαと傾きβとの差が閾値Th1を超えた回数をRAM1013に記憶する。   In step S6, the CPU 1011 determines whether or not the difference between the reference inclination α and the inclination β exceeds the threshold value Th1. Specifically, the CPU 1011 reads the reference inclination α and inclination β from the RAM 1013 and the threshold value Th1 from the ROM 1012, and determines whether or not the absolute value of the difference between the reference inclination α and the inclination β exceeds the threshold value Th1. To do. When it is determined that the difference between the reference inclination α and the inclination β exceeds the threshold Th1 (step S6: YES), the CPU 1011 shifts the process to step S7. When it is determined that the difference between the reference inclination α and the inclination β does not exceed the threshold Th1 (step S6: NO), the CPU 1011 proceeds to step S15. If “YES” is determined in the step S6, the CPU 1011 stores the following information in the RAM 1013 as an element for determining whether or not the condition determined in the step S2 is satisfied. If it is determined in step S2 whether the difference between the reference inclination and the inclination of the image of the preceding document exceeds the threshold Th2, the CPU 1011 stores the difference between the reference inclination α and the inclination β in the RAM 1013. If it is determined in step S2 whether or not the frequency at which the difference between the reference inclination and the inclination of the image of the preceding document exceeds the threshold Th1 exceeds the determined frequency, the CPU 1011 determines that the reference inclination α is The number of times that the difference from the slope β exceeds the threshold Th1 is stored in the RAM 1013.

ステップS7において、CPU1011は、ステップS3で開始された実行中の傾き補正、およびステップS4で開始された補正中画像データの出力を中断する。CPU1011は、フレームメモリに記憶された補正中画像データのうち、傾き補正を中断するまでに傾き補正を行ったデータと、傾き補正が行われていないデータとの境界を示す情報(以下、「境界情報」という)をRAM1013に記憶する。ステップS8において、CPU1011は、基準傾きαを更新する。具体的には、CPU1011は、RAM1013に記憶されている基準傾きαの値を、ステップS5で検出された傾きβに更新する。   In step S <b> 7, the CPU 1011 interrupts the currently executed tilt correction started in step S <b> 3 and the output of the image data being corrected started in step S <b> 4. The CPU 1011 displays information indicating a boundary between data that has been subjected to inclination correction until the inclination correction is interrupted and data that has not been subjected to inclination correction (hereinafter referred to as “boundary”). Information ”) is stored in the RAM 1013. In step S8, the CPU 1011 updates the reference inclination α. Specifically, the CPU 1011 updates the value of the reference inclination α stored in the RAM 1013 to the inclination β detected in step S5.

ステップS9において、CPU1011は、再び傾き補正を開始する。具体的には、CPU1011は、RAM1013から境界情報を読み出すことにより、フレームメモリに記憶された補正中画像データのうち、傾き補正が中断されるまでに傾き補正が行われたデータと、傾き補正が行われていないデータとを識別する。CPU1011は、傾き補正が中断されるまでに傾き補正が行われたデータについては、傾きγを用いて傾き補正を行う。CPU1011は、また、傾き補正が中断されるまでに傾き補正が行われていないデータについては、更新後の基準傾きαを用いて傾き補正を行う。このように、フレームメモリに記憶された補正中画像データには、全体として傾きβに基づいた補正が行われる。CPU1011は、傾きβに基づいて傾き補正が行われた対象原稿の画像データを、再びフレームメモリに記憶する。なお、CPU1011は、傾き補正が中断されるまでに傾き補正が行われたデータを、補正前のデータに戻す補正を行った上で、補正中画像データ全体に対して、更新後の基準傾きαを用いて傾き補正を行ってもよい。この場合、傾き補正が中断されるまでに傾き補正が行われたデータを補正前のデータに戻す補正は、ステップS8で基準傾きαが更新される前に行われる。ステップS10において、CPU1011は、再び補正中画像データの出力を開始する。CPU1011は、ステップS4と同様の処理により補正中画像データの出力を開始する。   In step S9, the CPU 1011 starts tilt correction again. Specifically, the CPU 1011 reads the boundary information from the RAM 1013, and thereby, among the image data being corrected stored in the frame memory, the data that has been subjected to the inclination correction until the inclination correction is interrupted, and the inclination correction. Identify data that has not been performed. The CPU 1011 performs the inclination correction using the inclination γ for the data that has been subjected to the inclination correction before the inclination correction is interrupted. The CPU 1011 also performs inclination correction using the updated reference inclination α for data that has not been subjected to inclination correction until the inclination correction is interrupted. In this way, the image data being corrected stored in the frame memory is corrected based on the inclination β as a whole. The CPU 1011 again stores the image data of the target document that has been tilt-corrected based on the tilt β in the frame memory. Note that the CPU 1011 performs correction for returning the data that has been subjected to the tilt correction until the tilt correction is interrupted to the data before the correction, and then the updated reference tilt α for the entire image data being corrected. The tilt correction may be performed using. In this case, the correction for returning the data whose inclination correction has been performed until the inclination correction is interrupted to the data before the correction is performed before the reference inclination α is updated in step S8. In step S10, the CPU 1011 starts outputting the image data being corrected again. The CPU 1011 starts outputting the image data being corrected by the same process as in step S4.

ステップS11において、CPU1011は、傾きβを検出する。具体的には、CPU1011は、フレームメモリから読み出した補正前画像データに基づいて、傾きβを検出する。CPU1011は、検出された傾きβをRAM1013に記憶する。ステップS12において、CPU1011は、基準傾きαを更新する。具体的には、CPU1011は、RAM1013に記憶された基準傾きαの値を、ステップS11で検出された傾きβに更新する。ステップS13において、CPU1011は、基準傾きαを用いて傾き補正を開始する。CPU1011は、ステップS3と同様の処理により傾き補正を行う。ステップS14において、CPU1011は、補正中画像データの出力を開始する。CPU1011は、ステップS4と同様の処理により補正中画像データを画像形成部107に出力する。   In step S11, the CPU 1011 detects the inclination β. Specifically, the CPU 1011 detects the inclination β based on the pre-correction image data read from the frame memory. The CPU 1011 stores the detected inclination β in the RAM 1013. In step S12, the CPU 1011 updates the reference inclination α. Specifically, the CPU 1011 updates the value of the reference inclination α stored in the RAM 1013 to the inclination β detected in step S11. In step S13, the CPU 1011 starts inclination correction using the reference inclination α. The CPU 1011 performs tilt correction by the same process as in step S3. In step S14, the CPU 1011 starts outputting the image data being corrected. The CPU 1011 outputs the image data being corrected to the image forming unit 107 by the same processing as step S4.

ステップS15において、CPU1011は、傾き補正および補正中画像データの出力を終了する。ステップS16において、CPU1011は、容器1061に積載されたすべての原稿から画像データが読み取られたか否かを判断する。容器1061に積載されたすべての原稿から画像データが読み取られたと判断された場合(ステップS16:YES)、CPU1011は、処理を終了する。未だ画像データが読み取られていない原稿があると判断された場合(ステップS16:NO)、CPU1011は、処理をステップS1に移行する。   In step S15, the CPU 1011 ends the tilt correction and the output of the image data being corrected. In step S <b> 16, the CPU 1011 determines whether image data has been read from all the originals stacked on the container 1061. When it is determined that the image data has been read from all the documents loaded on the container 1061 (step S16: YES), the CPU 1011 ends the process. If it is determined that there is a document whose image data has not yet been read (step S16: NO), the CPU 1011 shifts the processing to step S1.

図5は、基準傾きαの更新を例示する図である。図5(a)は、並列処理モードにおける基準傾きαの更新を示す。図5(b)は、個別処理モードにおける基準傾きαの更新を示す。図5は、5枚の原稿について読み取りが行われた場合における基準傾きαの更新を示している。図5において、「ページ番号」は、画像の読み取りが行われた原稿を識別するための番号である。「基準傾きα」は、ページ番号により識別される原稿について、画像の読み取りが開始されたときにおける基準傾きαを示す。この例で、基準傾きαの初期値は、1°に設定されている。「傾きβ」は、ページ番号により識別される原稿について検出された傾きβを示す。図5(a)において、「|α−β|」は、基準傾きαと傾きβとの差の絶対値を示す。図5(a)において、閾値Th1は3°である。   FIG. 5 is a diagram illustrating the update of the reference inclination α. FIG. 5A shows the update of the reference gradient α in the parallel processing mode. FIG. 5B shows the update of the reference gradient α in the individual processing mode. FIG. 5 shows the update of the reference inclination α when reading is performed on five originals. In FIG. 5, “page number” is a number for identifying a document from which an image has been read. The “reference inclination α” indicates the reference inclination α when image reading is started for the document identified by the page number. In this example, the initial value of the reference inclination α is set to 1 °. “Inclination β” indicates the inclination β detected for the document identified by the page number. In FIG. 5A, “| α−β |” indicates the absolute value of the difference between the reference inclination α and the inclination β. In FIG. 5A, the threshold value Th1 is 3 °.

図5(a)に示す例では、1枚目の原稿の画像については、基準傾きαを1°とする傾き補正が開始される(ステップS3)。1枚目の原稿の画像の傾きβは3°であり、基準傾きαと傾きβとの差は2°(≦閾値Th1)である(ステップS6:NO)。したがって、1枚目の原稿については、ステップS3で開始された傾き補正は中断されず、また、基準傾きαも更新されない。2枚目の原稿については、1枚目と同様の処理が行われる。3枚目の原稿の画像については、基準傾きαを1°とする傾き補正が開始される(ステップS3)。3枚目の原稿の画像の傾きβは5°であり、基準傾きαと傾きβとの差は4°(>閾値Th1)である(ステップS6:YES)。したがって、3枚目の原稿については、ステップS3で開始された傾き補正が中断され(ステップS7)、また、基準傾きαが5°に更新される(ステップS8)。3枚目の原稿の画像については、基準傾きαを5°とする傾き補正が再び開始される(ステップS9)。4枚目および5枚目の原稿については、1枚目と同様の処理が行われる。   In the example shown in FIG. 5A, for the first original image, inclination correction is started with the reference inclination α being 1 ° (step S3). The inclination β of the image of the first document is 3 °, and the difference between the reference inclination α and the inclination β is 2 ° (≦ threshold Th1) (step S6: NO). Therefore, for the first original, the inclination correction started in step S3 is not interrupted, and the reference inclination α is not updated. For the second document, the same processing as that for the first document is performed. For the image of the third original, tilt correction is started with the reference tilt α being 1 ° (step S3). The inclination β of the image of the third original is 5 °, and the difference between the reference inclination α and the inclination β is 4 ° (> threshold Th1) (step S6: YES). Therefore, for the third original, the inclination correction started in step S3 is interrupted (step S7), and the reference inclination α is updated to 5 ° (step S8). For the image of the third original, inclination correction is started again with the reference inclination α being 5 ° (step S9). For the fourth and fifth originals, the same processing as that for the first document is performed.

図5(b)に示す例では、1枚目の原稿の画像の傾きβは2°であり、基準傾きαが2°に更新される(ステップS12)。1枚目の原稿の画像については、基準傾きαを2°とする傾き補正が開始される(ステップS13)。2枚目以降の原稿についても、1枚目と同様の処理が行われる。   In the example shown in FIG. 5B, the inclination β of the image of the first document is 2 °, and the reference inclination α is updated to 2 ° (step S12). For the first original image, tilt correction is started with a reference tilt α of 2 ° (step S13). For the second and subsequent documents, the same processing as that for the first document is performed.

図6は、画像読取部106による画像の読み取りと画像データの出力との関係の例を示すタイミングチャートである。図6は、4枚の原稿について画像の読み取りと画像データの出力とが行われる様子を、並列モードと個別処理モードとのそれぞれについて示している。なお、並列モードについては、傾き補正の中断および基準傾きαの更新が行われなかった場合(ステップS6の判断が「NO」である場合)の様子を示している。図6において、「IN」は、各モードにおいて画像の読み取りが行われるタイミングを示す。「OUT」は、各モードにおいて画像データの出力が行われるタイミングを示す。斜線で示された領域は、傾きβが検出されるタイミングを示す。矢印Asは、傾き補正が開始されるタイミングを示す。図6において、対象原稿の画像の読み取りは、先行原稿の画像データの出力が終了した時刻から時間Td後に開始される。図6に示す通り、並列処理モードでは、傾き補正および画像データの出力は、傾きβが検出される前に開始される。したがって、並列処理モードでは、画像が読み取られる時間と画像データが出力される時間との時間差が、個別処理モードに比べて短縮される。一方、個別処理モードでは、傾き補正および画像データの出力は、傾きβが検出された後に開始される。したがって、個別処理モードでは、画像が読み取られる時間と画像データが出力される時間との時間差が、並列処理モードに比べて多くなる。図6において、時間Tsは、並列処理モードと個別処理モードについて、最後の原稿の画像データの出力が終了した時刻の差(すなわち並列処理モードにより短縮された時間)を示す。並列処理モードでは、連続して読み取られる原稿の枚数が多くなるほど、より多くの時間が短縮される。   FIG. 6 is a timing chart showing an example of the relationship between image reading by the image reading unit 106 and image data output. FIG. 6 shows how image reading and image data output are performed for four documents in each of the parallel mode and the individual processing mode. The parallel mode shows a state in which the inclination correction is not interrupted and the reference inclination α is not updated (when the determination in step S6 is “NO”). In FIG. 6, “IN” indicates the timing at which an image is read in each mode. “OUT” indicates the timing at which image data is output in each mode. A region indicated by diagonal lines indicates a timing at which the inclination β is detected. An arrow As indicates the timing at which the inclination correction is started. In FIG. 6, the reading of the image of the target document is started after time Td from the time when the output of the image data of the preceding document is completed. As shown in FIG. 6, in the parallel processing mode, the inclination correction and the output of the image data are started before the inclination β is detected. Therefore, in the parallel processing mode, the time difference between the time when the image is read and the time when the image data is output is shortened compared to the individual processing mode. On the other hand, in the individual processing mode, inclination correction and image data output are started after the inclination β is detected. Therefore, in the individual processing mode, the time difference between the time when the image is read and the time when the image data is output is larger than that in the parallel processing mode. In FIG. 6, time Ts indicates a difference in time when the output of the image data of the last document is completed between the parallel processing mode and the individual processing mode (that is, time shortened by the parallel processing mode). In the parallel processing mode, more time is shortened as the number of documents read continuously increases.

図7は、並列処理モードについて、画像の読み取りと画像データの出力との関係の別の例を示すタイミングチャートである。図7は、2枚目の原稿について、傾き補正の中断および基準傾きαの更新が行われた場合(ステップS6の判断が「YES」である場合)の様子を示している。この場合、2枚目の原稿については、傾きβが検出されると、傾き補正および画像データの出力が中断され(ステップS7)、基準傾きαが更新される(ステップS8)。また矢印Arで示されたタイミングで、更新後の基準傾きαを用いた傾き補正と画像データの出力とが開始される。このように、基準傾きαと傾きβとの差が閾値Th1を超える場合には、基準傾きαが傾きβに更新され、更新後の基準傾きαを用いて傾き補正がされた画像データが出力される。したがって、基準傾きαと傾きβとの差が閾値Th1を超える場合には、傾き補正の誤差が低減される。   FIG. 7 is a timing chart showing another example of the relationship between image reading and image data output in the parallel processing mode. FIG. 7 shows a state where the inclination correction is interrupted and the reference inclination α is updated for the second original (when the determination in step S6 is “YES”). In this case, for the second original, when the inclination β is detected, the inclination correction and the output of the image data are interrupted (step S7), and the reference inclination α is updated (step S8). In addition, at the timing indicated by the arrow Ar, inclination correction using the updated reference inclination α and output of image data are started. As described above, when the difference between the reference inclination α and the inclination β exceeds the threshold value Th1, the reference inclination α is updated to the inclination β, and image data that has been corrected for inclination using the updated reference inclination α is output. Is done. Therefore, when the difference between the reference inclination α and the inclination β exceeds the threshold Th1, an error in inclination correction is reduced.

本発明は、上述の実施形態に限定されるものではなく、種々の変形実施が可能である。以下、変形例をいくつか説明する。以下で説明する変形例のうち、2つ以上のものが組み合わされて用いられてもよい。   The present invention is not limited to the above-described embodiments, and various modifications can be made. Hereinafter, some modifications will be described. Two or more of the modifications described below may be used in combination.

実施形態に記載した並列処理モードは、必ずしも個別処理モードと併用されなくてもよい。この場合、図4に示したステップS2の処理、およびステップS11からステップS14の処理は省略される。   The parallel processing mode described in the embodiment is not necessarily used together with the individual processing mode. In this case, the process of step S2 shown in FIG. 4 and the processes of step S11 to step S14 are omitted.

閾値Th1および閾値Th2は、傾きβが基準傾きα以上である場合と、傾きβが基準傾きαより小さい場合とで別個に定められていてもよい。   The threshold Th1 and the threshold Th2 may be determined separately for the case where the slope β is equal to or greater than the reference slope α and the case where the slope β is smaller than the reference slope α.

ステップS2の条件は、実施形態に記載した条件に限らない。例えば、複数枚の先行原稿について、基準傾きと先行原稿の画像の傾きとの差が閾値Th1を超えたことが、決められた回数続いたか否かが判断されてもよい。   The condition of step S2 is not limited to the condition described in the embodiment. For example, for a plurality of preceding documents, it may be determined whether or not the difference between the reference inclination and the inclination of the image of the preceding document has exceeded a threshold value Th1 for a predetermined number of times.

画像形成装置1000のハードウェア構成は、図2および図3に示した構成に限らない。画像形成装置1000は、図4に示した各ステップの処理を実行できれば、どのようなハードウェア構成であってもよい。例えば、RAM1013は、二以上のフレームメモリを有していてもよい。この場合、一方のフレームメモリが、対象原稿の画像データの傾き補正に用いられ、他方のフレームメモリが、傾きβの検出に用いられてもよい。   The hardware configuration of the image forming apparatus 1000 is not limited to the configuration shown in FIGS. The image forming apparatus 1000 may have any hardware configuration as long as the processing of each step shown in FIG. 4 can be executed. For example, the RAM 1013 may have two or more frame memories. In this case, one frame memory may be used for correcting the inclination of the image data of the target document, and the other frame memory may be used for detecting the inclination β.

実施形態において、画像形成装置1000によって実行されるプログラムは、磁気記録媒体(磁気テープ、磁気ディスク(HDD、FD(Flexible Disk))など)、光記録媒体(光ディスク(CD(Compact Disk)、DVD(Digital Versatile Disk))など)、光磁気記録媒体、半導体メモリ(フラッシュROMなど)などのコンピュータが読み取り可能な記録媒体に記憶した状態で提供されてもよい。また、このプログラムは、インターネットなどのネットワーク経由でダウンロードされてもよい。   In the embodiment, a program executed by the image forming apparatus 1000 includes a magnetic recording medium (magnetic tape, magnetic disk (HDD, FD (Flexible Disk)), etc.), an optical recording medium (optical disk (CD (Compact Disk), DVD ( Digital Versatile Disk))), magneto-optical recording medium, semiconductor memory (flash ROM, etc.) and the like may be provided in a state stored in a computer-readable recording medium. The program may be downloaded via a network such as the Internet.

1000…画像形成装置、11…原稿搬送手段、12…画像読取手段、13…記憶手段、14…補正手段、15…検出手段、16…更新手段、17…画像形成手段、101…制御部、1011…CPU、1012…ROM、1013…RAM、102…通信部、103…記憶部、104…表示部、105…入力部、106…画像読取部、107…画像形成部、1061…容器、111…送出ロール、112…第1フィードロール、113…プレレジロール、114…レジロール、1062…プラテンガラス、121…フルレートキャリッジ、122…ハーフレートキャリッジ、115…第2フィードロール、116…アウトロール、123…結像レンズ、124…CCDイメージセンサ、1063…蓄積部   DESCRIPTION OF SYMBOLS 1000 ... Image forming apparatus, 11 ... Document conveying means, 12 ... Image reading means, 13 ... Storage means, 14 ... Correction means, 15 ... Detection means, 16 ... Update means, 17 ... Image forming means, 101 ... Control part, 1011 ... CPU, 1012 ... ROM, 1013 ... RAM, 102 ... communication unit, 103 ... storage unit, 104 ... display unit, 105 ... input unit, 106 ... image reading unit, 107 ... image forming unit, 1061 ... container, 111 ... sending Roll, 112 ... first feed roll, 113 ... pre-registration roll, 114 ... registration roll, 1062 ... platen glass, 121 ... full rate carriage, 122 ... half rate carriage, 115 ... second feed roll, 116 ... out roll, 123 ... imaging Lens 124: CCD image sensor 1063 Storage unit

Claims (6)

原稿から画像を読み取る読取手段と、
前記読取手段に対して複数の原稿を順次搬送する搬送手段と、
画像の傾きを記憶する記憶手段と、
前記読取手段によって読み取られた原稿の画像の傾きを、前記記憶手段に記憶されている傾きに基づいて補正する補正手段と、
前記補正手段による補正と並行して、当該原稿の画像の傾きを検出する検出手段と、
前記記憶手段に記憶されている傾きと前記検出手段により検出された傾きとの差が第1の閾値を超えた場合、前記記憶手段に記憶されている傾きを前記検出手段により検出された傾きに更新する更新手段と
を有し、
前記補正手段は、
前記記憶手段に記憶されている傾きが前記更新手段により更新された場合、実行中の前記補正を中断し、更新後の傾きに基づいて、当該原稿の画像の傾きを補正し、
当該原稿の次の原稿の読み取り時に、前記読取手段によって読み取られた前記次の原稿の画像の傾きを、前記記憶手段に記憶されている傾きに基づいて補正する
ことを特徴とする画像読取装置。
Reading means for reading an image from a document;
Conveying means for sequentially conveying a plurality of documents to the reading means;
Storage means for storing the inclination of the image;
Correction means for correcting the inclination of the image of the document read by the reading means based on the inclination stored in the storage means;
In parallel with the correction by the correction means, detection means for detecting the inclination of the image of the document,
When the difference between the inclination stored in the storage means and the inclination detected by the detection means exceeds a first threshold, the inclination stored in the storage means is changed to the inclination detected by the detection means. Updating means for updating,
The correction means includes
When the inclination stored in the storage means is updated by the updating means, the correction being executed is interrupted, and the inclination of the image of the document is corrected based on the updated inclination,
An image reading apparatus that corrects an inclination of an image of the next original read by the reading unit based on an inclination stored in the storage unit when reading the next original of the original.
前記検出手段により検出された傾きが決められた条件を充たす場合、
前記更新手段は、前記差が前記第1の閾値を超えたか否かに関わらず、前記記憶手段に記憶されている傾きを前記検出手段により検出された傾きに更新し、
前記補正手段は、前記記憶手段に記憶されている傾きが前記更新手段により更新された後に、前記補正を開始する
ことを特徴とする請求項1に記載の画像読取装置。
When the inclination detected by the detection means satisfies a predetermined condition,
The update means updates the inclination stored in the storage means to the inclination detected by the detection means, regardless of whether the difference exceeds the first threshold value,
The image reading apparatus according to claim 1, wherein the correction unit starts the correction after the inclination stored in the storage unit is updated by the update unit.
前記決められた条件は、前記差が前記第1の閾値を超えた頻度が、決められた頻度を超えたことである
ことを特徴とする請求項2に記載の画像読取装置。
The image reading apparatus according to claim 2, wherein the determined condition is that a frequency at which the difference exceeds the first threshold exceeds a determined frequency.
前記決められた条件は、前記差が前記第1の閾値よりも大きい第2の閾値を超えたことである
ことを特徴とする請求項2に記載の画像読取装置。
The image reading apparatus according to claim 2, wherein the determined condition is that the difference exceeds a second threshold value that is larger than the first threshold value.
原稿から画像を読み取る読取手段と、
前記読取手段に対して複数の原稿を順次搬送する搬送手段と、
画像の傾きを記憶する記憶手段と、
前記読取手段によって読み取られた原稿の画像の傾きを、前記記憶手段に記憶されている傾きに基づいて補正する補正手段と、
前記補正手段による補正と並行して、当該原稿の画像の傾きを検出する検出手段と、
前記記憶手段に記憶されている傾きと前記検出手段により検出された傾きとの差が第1の閾値を超えた場合、前記記憶手段に記憶されている傾きを前記検出手段により検出された傾きに更新する更新手段と
前記補正手段により傾きが補正された画像を、記録媒体に形成する画像形成手段と
を有し、
前記補正手段は、
前記記憶手段に記憶されている傾きが前記更新手段により更新された場合、実行中の前記補正を中断し、更新後の傾きに基づいて、当該原稿の画像の傾きを補正し、
当該原稿の次の原稿の読み取り時に、前記読取手段によって読み取られた前記次の原稿の画像の傾きを、前記記憶手段に記憶されている傾きに基づいて補正する
ことを特徴とする画像形成装置。
Reading means for reading an image from a document;
Conveying means for sequentially conveying a plurality of documents to the reading means;
Storage means for storing the inclination of the image;
Correction means for correcting the inclination of the image of the document read by the reading means based on the inclination stored in the storage means;
In parallel with the correction by the correction means, detection means for detecting the inclination of the image of the document,
When the difference between the inclination stored in the storage means and the inclination detected by the detection means exceeds a first threshold, the inclination stored in the storage means is changed to the inclination detected by the detection means. Updating means for updating, and image forming means for forming an image whose inclination is corrected by the correcting means on a recording medium,
The correction means includes
When the inclination stored in the storage means is updated by the updating means, the correction being executed is interrupted, and the inclination of the image of the document is corrected based on the updated inclination,
An image forming apparatus for correcting an inclination of an image of the next original read by the reading unit based on an inclination stored in the storage unit when reading the next original of the original.
読取手段と搬送手段と記憶手段と制御手段とを有するコンピュータに、
前記読取手段が、原稿から画像を読み取るステップと、
前記搬送手段が、前記読取手段に対して複数の原稿を順次搬送するステップと、
前記記憶手段が、原稿から読み取られた画像の傾きを記憶するステップと、
前記制御手段が、前記読取手段によって読み取られた原稿の画像の傾きを、前記記憶手段に記憶されている傾きに基づいて補正するステップと、
前記補正するステップと並行して、前記制御手段が、当該原稿の画像の傾きを検出するステップと、
前記記憶手段に記憶されている傾きと前記検出された傾きとの差が第1の閾値を超えた場合、前記制御手段が、実行中の前記補正を中断し、前記記憶手段に記憶されている傾きが前記検出された傾きに更新された後の傾きに基づいて当該原稿の画像の傾きを補正し、前記読取手段によって読み取られた前記原稿の次の原稿の画像の傾きを、更新後の傾きに基づいて補正するステップと
を実行させるためのプログラム。
In a computer having reading means, conveying means, storage means, and control means,
The reading means reading an image from a document;
The conveying means sequentially conveys a plurality of documents to the reading means;
Storing the inclination of the image read from the document;
The control means correcting the inclination of the image of the document read by the reading means based on the inclination stored in the storage means;
In parallel with the correcting step, the control means detects the inclination of the image of the document;
When the difference between the inclination stored in the storage means and the detected inclination exceeds a first threshold, the control means interrupts the correction that is being executed and is stored in the storage means correcting the tilt of the image of the document on the basis of the slope after the slope has been updated to the slope which is the detection, the tilt of the next document image of the document read by the reading means, the inclination of the updated And a program for executing the step of correcting based on.
JP2013129439A 2013-06-20 2013-06-20 Image reading apparatus, image forming apparatus, and program Active JP6163907B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013129439A JP6163907B2 (en) 2013-06-20 2013-06-20 Image reading apparatus, image forming apparatus, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013129439A JP6163907B2 (en) 2013-06-20 2013-06-20 Image reading apparatus, image forming apparatus, and program

Publications (2)

Publication Number Publication Date
JP2015005854A JP2015005854A (en) 2015-01-08
JP6163907B2 true JP6163907B2 (en) 2017-07-19

Family

ID=52301418

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013129439A Active JP6163907B2 (en) 2013-06-20 2013-06-20 Image reading apparatus, image forming apparatus, and program

Country Status (1)

Country Link
JP (1) JP6163907B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6874422B2 (en) * 2017-02-28 2021-05-19 株式会社リコー Image processing device, image forming device, and image processing method of image forming device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000228711A (en) * 1999-02-05 2000-08-15 Toshiba Tec Corp Medium reader
JP2004165925A (en) * 2002-11-12 2004-06-10 Ricoh Co Ltd Device and method for image tilt calculation/correction, and program making computer implement the method

Also Published As

Publication number Publication date
JP2015005854A (en) 2015-01-08

Similar Documents

Publication Publication Date Title
JP2011030205A (en) Image reading apparatus
JP6330505B2 (en) Image reading device
JP2016001795A (en) Control device, control method, and program
JP6163907B2 (en) Image reading apparatus, image forming apparatus, and program
JP4849166B2 (en) Image reading device
JP6330506B2 (en) Image reading device
JP5966569B2 (en) Image reading apparatus and reading control program
JP5544795B2 (en) Image reading apparatus, image forming apparatus, and control program
JP2015128288A (en) Image processing system, image processing method and image processing program
JP7482625B2 (en) IMAGE PROCESSING APPARATUS, CONTROL METHOD FOR IMAGE PROCESSING APPARATUS, AND PROGRAM
JP7196474B2 (en) reader and program
JP6299645B2 (en) Image reading apparatus and image reading method
JP2016158162A (en) Image reading device and image forming apparatus
JP6127810B2 (en) Image forming system and image reading apparatus
JP5377450B2 (en) Image forming apparatus and reading end timing adjusting method
JP3987850B2 (en) Image processing apparatus and image forming apparatus
JP2018019187A (en) Image reading device, and image reading method therefor
JP2016197773A (en) Image reading device
JP2017118193A (en) Image reader and image forming apparatus
US10334132B2 (en) Image reading device for rotating read image in accordance with orientation of face image, image forming apparatus, and image reading method
JP5670302B2 (en) Image forming apparatus
JP2016063473A (en) Image processing apparatus, image processing method, and image processing program
JP5847059B2 (en) Document reading apparatus and image forming apparatus
JP2014140134A (en) Original reader and image forming apparatus
JP2014099711A (en) Document reading device and image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160218

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161214

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170418

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170510

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170523

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170605

R150 Certificate of patent or registration of utility model

Ref document number: 6163907

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350