JP2009164807A - Image reader - Google Patents
Image reader Download PDFInfo
- Publication number
- JP2009164807A JP2009164807A JP2007340771A JP2007340771A JP2009164807A JP 2009164807 A JP2009164807 A JP 2009164807A JP 2007340771 A JP2007340771 A JP 2007340771A JP 2007340771 A JP2007340771 A JP 2007340771A JP 2009164807 A JP2009164807 A JP 2009164807A
- Authority
- JP
- Japan
- Prior art keywords
- document
- edge
- reading
- original
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
Description
本発明は、読取ユニットに、原稿台に載置された原稿を読み取らせることにより、原稿台に載置された原稿の読取画像を表す画像データを生成する画像読取装置に関する。 The present invention relates to an image reading apparatus that generates image data representing a read image of a document placed on a document table by causing a reading unit to read the document placed on the document table.
従来、画像読取装置としては、読取ガラス下に読取ユニットを備え、読取ガラス下で読取ユニットを搬送しつつ、その搬送時に読取ユニットに読取動作を実行させることにより、読取ガラス上に配置された原稿を読み取り、原稿の読取画像を表す画像データを生成する画像読取装置が知られている。 2. Description of the Related Art Conventionally, an image reading apparatus includes a reading unit below a reading glass, and conveys the reading unit under the reading glass, and causes the reading unit to perform a reading operation when the reading unit is transported, whereby the document placed on the reading glass. An image reading apparatus that generates image data representing a read image of a document is known.
画像読取装置がコピー機能を有するものである場合、上記生成された画像データは、例えば、印刷処理に供される。即ち、読取画像を表す画像データが印刷処理に供されることで、記録紙には、読み取られた原稿のコピー画像が印刷される。このような、コピー機能を有する画像読取装置としては、コピー機能の他、プリンタ機能やファックス機能などを有したディジタル複合機が知られている。 When the image reading apparatus has a copy function, the generated image data is used for, for example, a printing process. That is, the image data representing the read image is subjected to a printing process, whereby a copy image of the read original is printed on the recording paper. As such an image reading apparatus having a copy function, a digital multifunction peripheral having a printer function, a fax function, and the like in addition to a copy function is known.
また、画像読取装置としては、プレスキャンにより、読取ガラス上における原稿が載置された領域を把握し、本スキャン時には、読取領域を、読取ガラス下全域ではなく、原稿が載置された領域に限定し、この読取領域において、読取ユニットを搬送し、原稿を読み取るものが知られている。 In addition, the image reading device grasps the area where the document is placed on the reading glass by pre-scanning, and at the time of the main scanning, the reading area is not the entire area under the reading glass but the area where the document is placed. In this reading area, a reading unit that conveys a reading unit and reads a document is known.
この他、画像読取装置としては、読取ユニットによる原稿の読取結果に基づき、原稿のサイズや傾きを検出するものが知られている(特許文献1,2参照)。また、この画像読取装置としては、原稿サイズや傾きの検出結果を、本スキャン時の読取領域の自動設定動作や、コピー時の変倍率の自動設定動作・傾き補正動作に用いるものが知られている。
In addition, an image reading apparatus that detects the size and inclination of a document based on a document reading result by a reading unit is known (see
例えば、検出した原稿サイズと記録紙サイズとから、原稿サイズと記録紙サイズの比に合わせて、変倍率を設定すると共に、原稿の傾きから回転量を設定して、読取結果としての画像データを回転処理して傾き補正すると共に、設定した変倍率に合わせて拡大縮小し、読み取った原稿の画像を、記録紙に、その記録紙サイズに合わせた倍率で印刷するといった具合である。
しかしながら、従来の画像読取装置では、次のような問題があった。例えば、原稿全体を読み取り、その全体像から原稿のサイズ・傾き・載置領域等を求める手法では、読取動作前に、どのようなサイズの原稿がどういった状態で載置されているか不明であるため、読取ガラス下の読取可能領域全体に渡って読取ユニットを搬送し、読取動作を実行しなければならず、原稿の読取動作に時間がかかるといった問題があった。即ち、原稿の存在しない領域に対して無駄に読取動作を実行しなければならないといった問題があった。 However, the conventional image reading apparatus has the following problems. For example, in the method of reading the entire document and obtaining the size, inclination, placement area, etc. of the document from the entire image, it is unclear what size document is placed in what state before the scanning operation. For this reason, there has been a problem in that it takes time for the document reading operation because the reading unit must be transported over the entire readable area under the reading glass and the reading operation must be executed. That is, there has been a problem that a reading operation has to be performed unnecessarily for an area where no document exists.
また、特許文献2には、原稿の一部領域の読取結果に基づき、原稿サイズを推定する手法が開示されているが、この手法は、読取対象の原稿を搬送して、原稿通過前後の読取データの変化から原稿範囲及び原稿範囲外を決定し、原稿サイズを推定するものであり、原稿を搬送することを前提とした技術であるため、この技術を、原稿を読取ガラス上に静止させた状態で読取ユニットを搬送して読み取る画像読取装置に転用しても、上記の問題を解決することは、できなかった。 Patent Document 2 discloses a technique for estimating a document size based on a reading result of a partial area of a document. This method, however, conveys a document to be scanned and reads the document before and after passing through the document. The document size is determined by determining the document range and the document range from the data change, and is based on the assumption that the document is transported. Even if the reading unit is conveyed to be read and used as an image reading apparatus, the above problem cannot be solved.
即ち、この技術を、原稿を読取ガラス上に静止させた状態で読取ユニットを搬送して読み取る画像読取装置に転用する場合には、読取ガラス上に原稿が載置されていない状態の画像を読み取る必要があり、原稿の存在しない領域に対して無駄に読取動作を実行しなければならないといった問題があった。 That is, when this technique is applied to an image reading apparatus that transports and reads a reading unit while the original is stationary on the reading glass, an image in which no original is placed on the reading glass is read. There is a problem that it is necessary to perform a reading operation unnecessarily on an area where a document does not exist.
本発明は、こうした問題に鑑みなされたものであり、原稿台に載置された原稿を、読取ユニットを搬送して読み取る画像読取装置において、効率的且つ正確に、原稿のサイズ・傾き・載置領域等を推定可能な技術を提供することを目的とする。 The present invention has been made in view of these problems, and in an image reading apparatus that reads a document placed on a document table by conveying a reading unit, the size, inclination, and placement of the document are efficiently and accurately detected. An object is to provide a technique capable of estimating a region or the like.
かかる目的を達成するためになされた請求項1記載の発明は、読取対象の原稿が載置される原稿台と、原稿台に沿って搬送される読取ユニットと、を備え、読取ユニットに、原稿台に載置された原稿を読み取らせることにより、原稿台に載置された原稿の読取画像を表す画像データを生成する画像読取装置であって、読取ユニットが読取可能な原稿台の領域である読取可能領域の内、一部領域において読取ユニットを搬送し、当該一部領域において読取ユニットに読取動作を実行させる一部プレスキャン手段と、一部プレスキャン手段の動作により得られた読取ユニットの読取結果としての画像データを、エッジ画像を表すエッジ画像データに変換し、このエッジ画像データに基づき、原稿台に載置された原稿が四角形であるとの仮定の下で、当該原稿が有する四つ角の内、二つの各角に対応する原稿台上の位置座標を推定する角推定手段と、角推定手段の推定結果に基づき、原稿台に載置された原稿の状態を推定する原稿推定手段と、を備えるものである。
In order to achieve this object, the invention according to
本発明の画像読取装置によれば、従来のように読取可能領域全体をプレスキャンして、その読取結果である画像データに基づき、原稿の状態(原稿サイズ・原稿の傾き・原稿の載置領域等)を推定するのではなく、読取可能領域の一部をプレスキャンして、その読取結果に基づき、原稿の状態を推定する。従って、この発明によれば、読取可能領域全体をプレスキャンする手法よりも高速にプレスキャン動作を終了することができて、効率的に原稿の状態を推定することができる。 According to the image reading apparatus of the present invention, the entire readable area is pre-scanned as in the prior art, and based on the image data as a result of the reading, the state of the original (original size, original inclination, original placement area) Etc.), a part of the readable area is pre-scanned, and the state of the document is estimated based on the reading result. Therefore, according to the present invention, the prescan operation can be completed at a higher speed than the method of prescanning the entire readable area, and the state of the document can be estimated efficiently.
但し、読取可能領域の全体をプレスキャンせずに、読取可能領域の一部のみをプレスキャンする場合には、原稿の全体像をプレスキャンにより読み取ることができない。このため、本発明では、原稿台に載置されている原稿が四角形状の原稿であると仮定して、原稿台に載置された原稿の二角の各位置座標を推定し、この推定結果に基づいて、原稿の状態を推定するようにしている。 However, when only a part of the readable area is pre-scanned without pre-scanning the entire readable area, the entire image of the document cannot be read by pre-scanning. For this reason, in the present invention, assuming that the document placed on the platen is a quadrilateral document, the respective position coordinates of the two corners of the document placed on the platen are estimated, and this estimation result Based on the above, the state of the document is estimated.
読取対象の原稿は、多くの場合、四角形状で縦横比が一定の定型用紙であり、定型用紙外の原稿が読取対象となるケースは、少ない。更に、読取対象の原稿が、定型用紙外の原稿である場合でも、読取対象の原稿が、定型用紙の形状と大きく相違する場合も、まれである。 In many cases, a document to be read is a standard paper having a rectangular shape and a constant aspect ratio, and there are few cases where a document outside the standard paper is to be read. Further, even when the document to be read is a document outside the standard paper, it is rare that the document to be read is greatly different from the shape of the standard paper.
一方、読取対象の原稿については、原稿台に載せる過程で角が折れてしまう場合などがあるが、本発明のように読取対象の全体像を読み取ることができない状態で、読取対象の原稿が四角形状ではない場合も考慮して、原稿の状態を推定しようとすると、折れた角に惑わされて正確な原稿の大きさや傾き等を推定することができなくなる。 On the other hand, for a document to be read, corners may be broken during the process of placing on the document table. However, when the entire image to be read cannot be read as in the present invention, the document to be read is square. If an attempt is made to estimate the state of a document in consideration of a case where the shape is not a shape, it will be confused by broken corners, and it will not be possible to estimate the exact size or inclination of the document.
そこで、本発明では、原稿台に載置されている原稿が四角形状の原稿であると仮定して、角位置を推定し、この推定結果に基づき、原稿の状態を推定するようにしている。このように、原稿台に載置されている原稿が四角形状の原稿であるとの仮定の下で、原稿の角位置を推定するようにすれば、原稿台に載置されている原稿が実際に四角形状のものである限り、その角が折れている場合でも、推定した角位置の情報から、原稿の傾きや原稿の一辺の長さを導出することができ、原稿台におけるプレスキャン領域外の領域に載置された部分を含む原稿の全体像を正確に推定することができる。 Therefore, in the present invention, assuming that the document placed on the document table is a rectangular document, the angular position is estimated, and the state of the document is estimated based on the estimation result. In this way, if the angular position of the document is estimated under the assumption that the document placed on the platen is a rectangular document, the document placed on the platen is actually Can be derived from the estimated corner position information, even if the corner is broken, the document tilt and the length of one side of the document can be derived from the prescan area on the document table. It is possible to accurately estimate the entire image of the document including the portion placed in the area.
従って、この発明によれば、原稿台に載置された原稿を、読取ユニットを搬送して読み取る画像読取装置において、効率的且つ正確に、原稿の状態(原稿のサイズ・傾き・載置領域等)を推定することができる。 Therefore, according to the present invention, in an image reading apparatus that reads a document placed on a document table by conveying a reading unit, the state of the document (size, inclination, placement region, etc. of the document) can be efficiently and accurately. ) Can be estimated.
尚、具体的に、原稿推定手段は、角推定手段により推定された二つの角の各位置座標間の長さから原稿台に載置された原稿の一辺の長さを推定すると共に、原稿台に載置された原稿が定型用紙であるとの仮定の下で、推定した辺の長さから、この辺に直交する原稿の辺の長さを推定することにより、原稿台に載置された原稿の状態として、原稿台に載置された原稿のサイズを推定する構成にすることができる(請求項2)。 Specifically, the document estimation means estimates the length of one side of the document placed on the document table from the length between the position coordinates of the two corners estimated by the angle estimation means, and the document table The document placed on the platen is estimated by estimating the length of the side of the document perpendicular to this side from the estimated side length under the assumption that the document placed on the standard paper. In this state, the size of the document placed on the document table can be estimated (claim 2).
このように原稿推定手段を構成すれば、原稿台に載置されている原稿が定型用紙である限り、一部領域のプレスキャンで正確に、原稿の角位置及び原稿サイズを推定することができ、これらの情報から、原稿の傾きや原稿の載置領域についても、正確に導出することができる。 If the document estimation unit is configured in this way, as long as the document placed on the document table is a standard sheet, the corner position and document size of the document can be accurately estimated by pre-scanning of a partial area. From these pieces of information, the tilt of the document and the document placement area can be accurately derived.
勿論、この発明では、原稿台に載置されている原稿が定型用紙外である場合、その原稿の状態の推定動作について、確度が低くなるが、一般的に読取対象の原稿は、定型用紙であるため、誤推定による影響は少ない。従って、この発明によれば、従来よりも、効率的且つ正確に、原稿の状態(原稿のサイズ・傾き・載置領域等)を推定することができる。 Of course, in the present invention, when the document placed on the document table is out of the standard paper, the accuracy of the operation for estimating the state of the original document is lowered, but generally, the original to be read is a standard paper. As a result, there is little impact from erroneous estimation. Therefore, according to the present invention, it is possible to estimate the document state (document size, inclination, placement area, etc.) more efficiently and accurately than in the past.
また、角推定手段は、エッジ画像データが示すエッジ点群の中から、原稿台に載置された原稿の三辺に対応するエッジ点群を抽出し、当該抽出した各辺に対応するエッジ点群を直線近似して得られる三本の直線が交わる二つの交点の各位置座標を、原稿台に載置された原稿の角に対応する位置座標であると推定する構成にすることができる(請求項3)。 Further, the angle estimation means extracts edge point groups corresponding to three sides of the document placed on the document table from the edge point groups indicated by the edge image data, and edge points corresponding to the extracted sides. Each position coordinate of two intersection points where three straight lines obtained by linearly approximating the group intersect can be estimated to be a position coordinate corresponding to the corner of the document placed on the document table ( Claim 3).
このように角推定手段を構成すれば、原稿台に載置されている原稿の角が折れている場合等にも、原稿の角が折れていない場合と同様に、原稿の角位置を正確に推定することができ、その結果として、正確に、原稿のサイズや傾き等を推定することができる。 If the corner estimation means is configured in this way, the corner position of the document can be accurately determined even when the corner of the document placed on the document table is folded, as in the case where the corner of the document is not folded. As a result, the size and inclination of the document can be estimated accurately.
また、原稿台の読取可能領域の内、一部領域について読取動作を実行して得られる画像データに基づき、原稿の状態を正確に推定するためには、その一部領域において原稿の像が多く写っているのが好ましい。 Further, in order to accurately estimate the state of the document based on the image data obtained by executing the reading operation on a part of the readable area of the document table, there are many images of the document in the part area. It is preferable that it is reflected.
従って、上述の画像読取装置においては、原稿台を原稿の形状に合わせて四角形状とし、原稿台の四つ角の内、一つの特定の角を、原稿の角を合わせるべき位置として定め、この特定の角を基準にして上記一部領域を定めるのが好ましい。 Therefore, in the above-described image reading apparatus, the document table is formed into a quadrangular shape in accordance with the shape of the document, and one specific corner among the four corners of the document table is determined as a position where the corner of the document is to be aligned. It is preferable that the partial area is determined based on the corner.
即ち、一部プレスキャン手段は、原稿台における上記特定の角から延びる原稿台の端縁(原稿台の第一辺)から、原稿台内側に所定距離離れた位置までの領域であって読取可能領域に該当する部位を、上記一部領域として、当該領域において、読取ユニットを搬送し読取ユニットに読取動作を実行させる構成にされるとよい(請求項4)。 That is, a part of the pre-scan means can read a region from the edge of the document table (first side of the document table) extending from the specific corner on the document table to a position a predetermined distance away from the inside of the document table. The part corresponding to the area may be set as the partial area, and the reading unit may be transported in the area and the reading unit may perform a reading operation.
また、角推定手段は、エッジ画像データが示すエッジ点群の中から、原稿台に載置された原稿の三辺に対応するエッジ点群として、原稿台の上記第一辺に沿って配置されるべき原稿の第一辺に対応するエッジ点群、及び、原稿台における上記特定の角から延びる辺であって上記第一辺とは垂直な第二辺に沿って配置されるべき原稿の第二辺に対応するエッジ点群、及び、原稿の上記第二辺に平行な原稿の第三辺に対応するエッジ点群を抽出する構成にすることができる(請求項5)。 The angle estimation means is arranged along the first side of the document table as an edge point group corresponding to three sides of the document placed on the document table from among the edge point groups indicated by the edge image data. A group of edge points corresponding to the first side of the document to be scanned, and a side of the document to be arranged along the second side that extends from the specific corner on the document table and is perpendicular to the first side. An edge point group corresponding to two sides and an edge point group corresponding to the third side of the document parallel to the second side of the document can be extracted.
このように構成された画像読取装置においては、原稿の二角が写るように上記一部領域を定めて、プレスキャン動作を実現することができるので、角推定手段にて正確に角を推定することができ、結果として、正確に、原稿の状態を推定することができる。 In the image reading apparatus configured as described above, the pre-scan operation can be realized by defining the partial area so that two corners of the document can be captured, so that the angle is accurately estimated by the angle estimation means. As a result, the state of the original can be accurately estimated.
また、原稿推定手段は、原稿の状態として、原稿台に載置された原稿の当該原稿台における載置領域を推定する構成にすることができ、画像読取装置は、この原稿推定手段の推定結果を用いて、次のように動作する構成にすることができる。 Further, the document estimation means can be configured to estimate the placement area of the document placed on the document table as the document state, and the image reading apparatus can estimate the result of the document estimation means. Can be configured to operate as follows.
即ち、画像読取装置は、原稿推定手段により推定された原稿の載置領域に対応する原稿台上の領域を、読取ユニットによる読取領域に決定し、決定した読取領域において、読取ユニットを搬送し、当該読取領域において読取ユニットに読取動作を実行させることにより、原稿台に載置された原稿の読取画像を表す画像データを生成する構成にすることができる(請求項6)。 That is, the image reading apparatus determines an area on the document table corresponding to the document placement area estimated by the document estimation unit as a reading area by the reading unit, and conveys the reading unit in the determined reading area. By causing the reading unit to perform a reading operation in the reading area, image data representing a read image of the document placed on the document table can be generated.
このように構成された画像読取装置によれば、効率的なプレスキャン動作により、迅速に本スキャンに移行することができると共に、本スキャン時には、原稿の載置領域に対応する読取領域のみについて読取動作を実行するため、迅速に原稿台に載置された原稿に対応する画像データを生成することができる。即ち、本発明によれば、高速に、原稿台に載置された原稿の読取結果を表す画像データを生成することができる。 According to the image reading apparatus configured as described above, it is possible to quickly shift to the main scan by an efficient pre-scan operation, and at the time of the main scan, only the reading area corresponding to the document placement area is read. Since the operation is executed, it is possible to quickly generate image data corresponding to the document placed on the document table. That is, according to the present invention, it is possible to generate image data representing the reading result of the document placed on the document table at high speed.
また、原稿推定手段は、原稿の状態として、角推定手段の推定結果に基づき、原稿台に載置された原稿のサイズを推定すると共に、原稿の各辺に対応するエッジ点群を直線近似して得られる三本の直線の少なくとも一つの傾きに基づき、原稿台に載置された原稿の原稿台に対する傾きを推定する構成にすることができる。この他、当該画像読取装置は、原稿推定手段により推定された傾きの情報に基づき、読取ユニットの読取結果である画像データを傾き補正して、原稿台に載置された原稿の読取画像を表す画像データを生成する構成にすることができる(請求項7)。 Further, the document estimation means estimates the size of the document placed on the document table based on the estimation result of the angle estimation means as the document state, and linearly approximates the edge point group corresponding to each side of the document. Based on at least one inclination of the three straight lines obtained in this way, the inclination of the original placed on the original table with respect to the original table can be estimated. In addition, the image reading apparatus represents the read image of the original placed on the original table by correcting the inclination of the image data as the reading result of the reading unit based on the inclination information estimated by the original estimation means. The image data can be generated (claim 7).
このように構成された画像読取装置によれば、効率的なプレスキャン動作により、迅速に本スキャンに移行することができると共に、原稿が傾いて配置されている場合においても、本スキャン時には、読み取った画像データを傾き補正して、まっすぐで綺麗な画像データを生成することができる。 According to the image reading apparatus configured as described above, it is possible to quickly shift to the main scan by an efficient pre-scan operation, and even when the document is arranged at an inclination, the image is read during the main scan. It is possible to correct the tilt of the image data and generate straight and beautiful image data.
この他、原稿推定手段は、原稿の状態として、角推定手段により推定された二つの角の各位置座標から、原稿の傾きを推定する構成にされてもよい(請求項8)。
また、読取可能領域の一部領域のみをプレスキャンして原稿の状態を推定する手法では、読取可能領域の全体をプレスキャンして原稿の状態を推定する手法よりも、その推定動作の正確性が劣るため、上述の画像読取装置は、必要に応じて、読取可能領域全体をプレスキャンして原稿の状態を推定できる構成にされると一層好ましい。
In addition, the document estimation means may be configured to estimate the inclination of the document from the position coordinates of the two corners estimated by the angle estimation means as the state of the document (claim 8).
In addition, the method of estimating the original state by pre-scanning only a part of the readable area is more accurate than the method of pre-scanning the entire readable area and estimating the original state. Therefore, it is more preferable that the above-described image reading apparatus is configured to be able to estimate the state of the document by pre-scanning the entire readable area as necessary.
即ち、上述の画像読取装置は、原稿台の読取可能領域全体において読取ユニットを搬送し、原稿台の読取可能領域全体において読取ユニットに読取動作を実行させる全体プレスキャン手段と、全体プレスキャン手段の動作により得られた読取ユニットの読取結果に基づき、原稿台に載置された原稿の状態を推定する副原稿推定手段と、
外部からの指令に従って、一部プレスキャン手段及び全体プレスキャン手段のいずれか一方を作動させる切替手段と、を備える構成にされると一層好ましい(請求項9)。
That is, the above-described image reading apparatus includes an entire prescan unit that conveys the reading unit in the entire readable area of the document table, and causes the reading unit to perform a reading operation in the entire readable area of the document table. Sub-document estimation means for estimating the state of the document placed on the document table based on the reading result of the reading unit obtained by the operation;
It is more preferable that the apparatus includes a switching unit that operates either one of the partial prescan unit and the entire prescan unit in accordance with a command from the outside.
このように構成された画像読取装置によれば、必要に応じて読取可能領域全体をプレスキャンして、原稿の状態を推定することができるので、ユーザの要求に応じて適切なモードで動作し、原稿の読取画像を表す画像データを生成することができる。 According to the image reading apparatus configured as described above, the entire readable area can be pre-scanned as necessary to estimate the state of the document, and thus operates in an appropriate mode according to the user's request. Image data representing the read image of the document can be generated.
以下に本発明の実施例について、図面と共に説明する。
図1(a)は、本実施例のディジタル複合機1の構成を表すブロック図である。図1(a)に示すように、本実施例のディジタル複合機1は、画像読取部10、読取制御部20、印刷部30、印刷制御部40、表示操作部50、通信部60、CPU70、RAM80及びフラッシュメモリ90を備え、フラッシュメモリ90に記録されたプログラムに基づきCPU70にて各種処理を実行し、装置全体を統括制御する構成にされている。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1A is a block diagram illustrating the configuration of the digital multifunction peripheral 1 according to the present embodiment. As shown in FIG. 1A, the
具体的に、画像読取部10は、図1(b)(c)に示す構成にされている。図1(b)(c)は、画像読取部10の構成を示した説明図である。画像読取部10は、読取対象の原稿Pが載置される透明な板状の読取ガラス11が筐体13に支持された構成にされており、筐体13内の読取ガラス11下に、読取ガラス11に写る画像を主走査方向において光学的に読み取る読取ユニット15と、読取ユニット15を副走査方向に搬送する搬送機構16と、搬送機構16を駆動するモータ17とを備える。
Specifically, the
この画像読取部10は、読取制御部20から入力される制御信号に従って、モータ17の回転力により搬送機構16を駆動し、これにより読取ユニット15を読取ガラス11下で副走査方向(図1(b)(c)に示す点線矢印方向)に搬送すると共に、搬送時において、読取ユニット15に読取動作を実行させる。
The
尚、読取ユニット15は、読取制御部20に制御されて、副走査方向への移動と共に、読取ガラス11に写る画像をライン毎に読み取り、その読取画像を表すライン画像信号を出力するコンタクトイメージセンサ(CIS)である。この読取ユニット15から出力されるライン画像信号は、図示しないA/D変換器にてディジタルデータ(ライン画像データ)に変換され、読取制御部20に入力される。
The
また、画像読取部10には、周知のスキャナと同様、読取ガラス11を被覆可能な蓋が開閉自在に設けられており(図示せず)、読取ユニット15による読取動作の実行時には、ユーザによる手動操作により、読取ガラス11に載置された原稿の上にかぶせられるようにして蓋が閉められる。尚、読取ガラス11と対向する蓋の内側は、原稿の読取画像に蓋の画像が写らないよう白色部材で構成されている。
The
一方、読取制御部20は、CPU70からの指令に従って読取制御処理を実行し、当該読取制御処理にて、読取ユニット15の副走査方向への移動を制御すると共に、読取ユニット15の読取動作を制御する。
On the other hand, the
この制御により、読取制御部20は、読取ユニット15を読取ガラス11下で副走査方向に搬送しつつ、CPU70から指定された読取ガラス11の読取領域に写る画像を、読取ユニット15に読み取らせ、読取ガラスの読取領域に写る画像を表す画像データを、RAM80に記録する。このような動作により、RAM80には、読取ガラス11の読取領域に載置された原稿Pの読取画像を表す画像データが記録される。
With this control, the
尚、読取制御部20は、画像読取部10から入力される各ライン画像データを、一旦内蔵のバッファに蓄積し、各ライン画像データに対してシェーディング補正等の画像処理を実行した後、各ライン画像データを、RAM80に記録する。
The
この他、印刷部30は、印刷制御部40から入力される制御信号に従い、トレイ(図示せず)に載置された記録紙を、記録位置に搬送し、インクジェット方式やレーザプリンタ方式等の周知の記録方式で、記録紙に、制御信号に対応した画像を形成するものである。
In addition, the
また、印刷制御部40は、印刷部30を制御して記録紙に画像を形成するものであり、CPU70からの指令に従って、CPU70から指定された印刷対象データに基づく画像を、印刷部30を通じて、記録紙に印刷する。
The
また、通信部60は、外部機器と通信するためのインタフェース群からなり、USBインタフェース、LANインタフェース、FAXモデム等から構成されている。即ち、複合機1は、通信部60が備えるFAXモデムを通じて外部のFAX装置とFAX通信可能な構成にされ、USBインタフェース又はLANインタフェースを通じて外部のパーソナルコンピュータと通信可能な構成にされている。
The
この他、表示操作部50は、情報表示用の液晶ディスプレイ(図示せず)と、各種操作キーとを備え、CPU70に制御されて、液晶ディスプレイに、ユーザ向けの情報を表示すると共に、操作キーを通じて入力されたユーザからの指令を、CPU70に入力する。
In addition, the
また、CPU70は、プログラムの実行により、操作キーを通じて入力される指令や通信部60を通じて外部のパーソナルコンピュータ等から入力される指令に従い、コピー機能、FAX機能、スキャナ機能、及び、プリンタ機能等を実現する。
Further, the
例えば、CPU70は、表示操作部50に設けられた操作キーを通じてユーザからコピー指令が入力されると、複写制御処理(図3参照)を実行して装置内各部を制御し、読取ガラス11上に載置された原稿Pの読取画像を、記録紙に印刷する。詳細には、読取ユニット15による読取結果に基づいて読取ガラス11上に載置された原稿Pのサイズを推定し、推定した原稿サイズと記録紙サイズとから変倍率を設定して、原稿Pの読取画像を、記録紙サイズに適合する大きさに拡大又は縮小し、これを、印刷部30を通じて記録紙に印刷する。
For example, when a copy command is input from the user through an operation key provided on the
以下、この複写制御処理の内容について具体的に説明するが、それに先駆けては、図2を用いて本実施例の画像読取部10の特徴について説明する。
図2は、読取ガラス11の読取可能領域R0を示した説明図である。当該複合機1においては、一面が開口された長方体状の筐体13の当該開口部において、長方形状のガラス板である読取ガラス11が当該開口部を閉塞するように設けられており、読取ガラス11の周囲が筐体13により支持された構成にされている。
The contents of the copy control process will be specifically described below. Prior to that, the characteristics of the
FIG. 2 is an explanatory view showing the readable region R0 of the reading
この読取ガラス11は、筐体13の上面よりも若干筐体13の下側に設けられており、筐体13から露出する読取ガラス11の領域11a(以下、「原稿台」と表現する。)と筐体13との境界BDには、原稿Pを突き当て可能に段差が形成されている(以下、筐体13の読取ガラス11より上方に位置する部位(上記段差を形成する部位)13aを「フレーム」と表現する。)
また、画像読取部10においては、読取ユニット15のライン幅と、原稿台11aの大きさとの関係から、四角形状の原稿台11aの全領域よりも若干狭い四角形状の領域R0が、読取ユニット15により原稿を読取可能な読取可能領域R0に定められている。具体的に、読取可能領域R0は、図2において点線で示すように、フレーム13aと読取ガラス11との境界BDから微小量(本実施例では3mm)離れた位置に外周を有した領域となっている。
The reading
Further, in the
また、この画像読取部10においては、フレーム13aの左下部分に、原稿Pの角を突き当てるように指示するマークMKが記されている。尚、本実施例では、マークMKが付された原稿台11aの角を、「左下角」と定義して、この左下角より、主走査方向に離れた地点に位置する原稿台11aの角を「右下角」と定義し、左下角より、副走査方向に離れた地点に位置する原稿台11aの角を「左上角」と定義する。
In the
即ち、複合機1においては、原稿台11aの左下角(換言すれば、フレーム13aの内側左下角)が、原稿Pの角を合わせるべき位置として定められており、複合機1は、ユーザが概ね、このマークMKに合わせて原稿Pを載置しているとの仮定の下で、原稿サイズの推定等を行い、原稿のコピー動作を実現する。
That is, in the
この他、本実施例の複合機1においては、このマークMKが付されたフレーム13aの内側左下角に対応する読取可能領域R0の左下角を原点、主走査方向をX軸、副走査方向をY軸としたXY座標系(図2(b)参照)が導入されており、CPU70は、このXY座標系を用いて図3に示す複写制御処理を実行する。
In addition, in the
続いて、CPU70が実行する複写制御処理について説明する。図3は、操作キーを通じてコピー指令が入力されると、CPU70が実行する複写制御処理を表すフローチャートである。
Next, a copy control process executed by the
複写制御処理を開始すると、CPU70は、操作キーを通じて入力されたコピー指令が「縁無し」コピー指令であるか否かを判断し(S110)、「縁無し」コピー指令であると判断すると(S110でYes)、S120に移行して、図4(a)に示す第一複写処理を実行する。
When the copy control process is started, the
詳しくは後述するが、第一複写処理では、読取可能領域R0全体に渡ってプレスキャン動作を画像読取部10に実行させ、プレスキャン結果として、読取可能領域R0全体の読取結果である画像データを画像読取部10から取得し、この画像データに基づいて原稿サイズや原稿の傾き角を推定して、変倍率及び傾き補正量を設定し、その後、本スキャン動作を画像読取部10に実行させて、これにより得られる画像データを、拡大・縮小・回転処理し、印刷部30を通じて、記録紙に「縁なし」で原稿のコピー画像を印刷する。CPU70は、この第一複写処理を終了すると、複写制御処理を終了する。
As will be described in detail later, in the first copying process, the
一方、操作キーを通じて入力されたコピー指令が「縁無し」コピー指令ではないと判断すると(S110でNo)、CPU70は、当該コピー指令が「自動変倍/傾き補正」コピー指令であるか否かを判断し(S130)、入力されたコピー指令が「自動変倍/傾き補正」コピー指令であると判断すると(S130でYes)、図4(b)に示す第二複写処理を実行する(S140)。
On the other hand, if it is determined that the copy command input through the operation key is not a “marginless” copy command (No in S110), the
詳しくは後述するが、第二複写処理では、読取可能領域R0の一部領域においてプレスキャン動作を画像読取部10に実行させ、プレスキャン結果として、当該一部領域に載置された原稿の読取結果である画像データを画像読取部10から取得し、この画像データに基づいて原稿サイズや原稿の傾き角を推定して、変倍率及び傾き補正量を設定し、その後、本スキャン動作を画像読取部10に実行させ、これにより得られる画像データを、拡大・縮小・回転処理し、印刷部30を通じて、記録紙に、傾き補正した原稿のコピー画像を、記録紙サイズに対応する大きさで印刷する。CPU70は、この第二複写処理を終了すると、複写制御処理を終了する。
As will be described in detail later, in the second copying process, the
また、操作キーを通じて入力されたコピー指令が「自動変倍/傾き補正」コピー指令ではないと判断すると(S130でNo)、CPU70は、入力されたコピー指令が「ノーマル」コピー指令であるか否かを判断する(S150)。そして、「ノーマル」コピー指令であると判断すると(S150でYes)、S160に移行し、「ノーマル」コピー指令ではないと判断すると(S150でNo)、入力されたコピー指令に対応した処理を実行した後(S155)、当該複写制御処理を終了する。
If the
また、S160に移行すると、CPU70は、印刷制御部40を通じて、印刷部30に給紙動作を実行させると共に、給紙動作の対象となった記録紙のサイズを検出する(S165)。尚、記録紙のサイズは、例えば、記録紙の搬送路に設けられたセンサを用いて周知の手法で検出することができる。
In step S160, the
また、この処理を終えると、CPU70は、S165での検出結果に基づき、読取ガラス11上において、記録紙サイズと同サイズの原稿が正しく規定の位置に載置されていると仮定して、原稿読取開始位置を読取可能領域R0の下端(Y=0)に設定し、原稿読取終了位置を、原稿の上端に対応する位置に設定する(S170)。このようにして、上記原稿読取開始位置から原稿読取終了位置までを読取領域に設定する。
When this processing is completed, the
その後、CPU70は、読取制御部20を通じて画像読取部10を制御し、画像読取部10に、読取ユニット15を原稿読取開始位置から原稿読取終了位置まで副走査方向に搬送させると共に、当該搬送中にはライン毎の読取動作を読取ユニット15に実行させて、読取ガラス11上の読取領域に写る画像を、読取ユニット15に読み取らせ、当該読取領域の読取結果を表す画像データが、RAM80に記録されるようにする(S180)。
Thereafter, the
また、この処理を終えると、CPU70は、RAM80に記録された上記読取結果を表す画像データを、印刷対象データに設定して、当該印刷対象データについての印刷処理を実行する(S190)。即ち、印刷制御部40を通じて、印刷部30に印刷対象データに基づく画像を、給紙した記録紙に印刷させる。このようにして、原稿のコピー画像を、拡大・縮小や傾き補正無しで記録紙に印刷する。その後、当該複写制御処理を終了する。
When this process is finished, the
続いて、CPU70が、S120で実行する第一複写処理について説明する。図4(a)は、CPU70が実行する第一複写処理を表すフローチャートである。
第一複写処理を開始すると、CPU70は、原稿読取開始位置を、読取可能領域R0の下端(Y=0)に設定し、原稿読取終了位置を、読取可能領域R0の上端(Y=YMAX)に設定することにより、読取可能領域R0全域を読取領域に設定し、読取制御部20を通じて、画像読取部10に、プレスキャン動作を実行させる(S210:全体プレスキャン処理)。
Next, the first copying process executed by the
When the first copying process is started, the
尚、画像読取部10は、プレスキャン動作として、設定された読取領域の端から端まで、プレスキャン用の解像度に対応する速度で、読取ユニット15を副走査方向に搬送し、その読取領域の画像を読取ユニット15に読み取らせ、プレスキャン結果として、低解像度の画像データ(以下、「プレスキャン画像データ」という。)を、読取制御部20を通じて、RAM80に記録する動作を実行する。
As a pre-scan operation, the
S210での処理を終えると、CPU70は、RAM80に記録されたプレスキャン画像データに対してエッジ検出処理を実行し、この画像データに対応するエッジ画像データを生成する(S215)。即ち、RAM80に記録されたプレスキャン画像データを、エッジ検出用の画像フィルタ(周知の微分フィルタ)に通して、この画像データに対応するエッジ画像を表すエッジ画像データを生成する。
When the processing in S210 is completed, the
また、この処理を終えると、CPU70は、生成したエッジ画像データを解析して、原稿台11aに載置された原稿のサイズ(縦幅及び横幅)、及び、原稿の傾き角θ、及び、原稿台11aにおける原稿の載置領域を推定する(S220)。但し、ここでは、X軸に対して原稿の下辺がなす角度を、原稿の傾き角θ(図9参照)とする。
When this processing is completed, the
また、S220での処理を終えると、CPU70は、印刷制御部40を通じて、印刷部30に給紙動作を実行させると共に(S230)、給紙動作の対象となった記録紙のサイズを検出する(S235)。更に、S220で推定した原稿サイズ及びS235で検出した記録紙サイズに基づき、予め定められた計算式で(具体的には、原稿のコピー画像が記録紙の縁まで最大限広がって印刷されるように)変倍率を設定する(S240)。
When the processing in S220 is completed, the
この他、CPU70は、S220で推定した原稿の傾き角θから、画像データの傾き補正量を設定する(S250)。具体的には、原稿のコピー画像が、傾きのない状態でまっすぐ、記録紙に印刷されるように、傾き補正量を設定する。但し、推定した原稿の傾き角θが微小量(本実施例では−0.5度≦θ≦0.5度)である場合には、誤差も考慮して、傾き補正量をゼロに設定する。
In addition, the
また、S250での処理を終えると、CPU70は、S220で推定した原稿の載置領域の情報に基づいて、原稿読取開始位置及び原稿読取終了位置を設定し、原稿読取開始位置及び原稿読取終了位置で定められる読取領域を、原稿台11aにおける原稿の載置領域に対応させる(S260)。
When the processing in S250 is completed, the
具体的には、原稿の載置領域全体を読取ユニット15が読み取ることができるように、原稿読取開始位置を、副走査方向において最も下側に位置する原稿の端点に対応した位置に設定し、原稿読取終了位置を、副走査方向において最も上側に位置する原稿の端点に対応した位置に設定して、読取領域を原稿台11aにおける原稿の載置領域に対応させる。
Specifically, the document reading start position is set to a position corresponding to the end point of the document located on the lowermost side in the sub-scanning direction so that the
また、S260での処理を終えると、CPU70は、読取制御部20を通じて画像読取部10を制御することで、画像読取部10に、読取ユニット15を原稿読取開始位置から原稿読取終了位置まで副走査方向に搬送させると共に、当該搬送中にはライン毎の読取動作を読取ユニット15に実行させて、上記設定した読取領域の画像を、読取ユニット15に読み取らせ、当該読取領域の読取結果を表す画像データが、RAM80に記録されるようにする(S270)。
When the processing in S260 is completed, the
また、この処理を終えると、CPU70は、RAM80に記録された上記読取結果を表す画像データを、予め設定した変倍率で拡大又は縮小処理すると共に、予め設定した傾き補正量分、回転処理して、上記読取結果を表す画像データを、印刷用の画像データに変換し、変換後の画像データを、印刷対象データに設定する(S280)。但し、傾き補正量がゼロに設定されている場合には、S280において、回転処理を、実行しないものとする。
When this processing is completed, the
そして、S280での処理を終えると、CPU70は、当該印刷対象データについての印刷処理を実行する(S290)。即ち、印刷制御部40を通じて、印刷部30に印刷対象データに基づく画像を、給紙した記録紙に印刷させる。その後、当該複写制御処理を終了する。
When the process in S280 is completed, the
続いて、S140でCPU70が実行する第二複写処理について説明する。図4(b)は、CPU70が実行する第二複写処理を表すフローチャートである。
第二複写処理を開始すると、CPU70は、原稿読取開始位置を、読取可能領域R0の下端(Y=0)に設定し、原稿読取終了位置を、設計段階で予め定められた読取可能領域R0の下端から所定距離離れた位置(Y=YPRE)に設定することにより、読取可能領域R0の一部を読取領域に設定し、読取制御部20を通じて、画像読取部10に、当該読取領域に対するプレスキャン動作を実行させる(S310:先端部プレスキャン処理)。
Next, the second copy process executed by the
When the second copying process is started, the
図5は、第一複写処理で実行される全体プレスキャン処理の読取領域と、第二複写処理で実行される先端部プレスキャン処理の読取領域と、の相違を表した説明図である。図5に示すように、第二複写処理では、第一複写処理のように読取可能領域R0全体に対してプレスキャン動作を画像読取部10に実行させるのではなく、読取可能領域R0の下端から読取可能領域R0内側へ所定距離離れた地点まで(本実施例では、読取可能領域R0の下端から30mm離れた地点まで)に対して、プレスキャン動作を画像読取部10に実行させる。
FIG. 5 is an explanatory diagram showing the difference between the reading area of the entire prescan process executed in the first copying process and the reading area of the leading edge prescan process executed in the second copying process. As shown in FIG. 5, in the second copying process, the pre-scanning operation is not performed on the entire readable area R0 as in the first copying process, but from the lower end of the readable area R0. The
このようにして、S310での処理を終えると、CPU70は、RAM80に記録されたプレスキャン画像データ(プレスキャン結果)に対してエッジ検出処理を実行し、この画像データに対応するエッジ画像データを生成する(S315)。即ち、RAM80に記録されたプレスキャン画像データを、エッジ検出用の画像フィルタ(周知の微分フィルタ)に通して、エッジ画像データに変換する。
In this way, when the processing in S310 is completed, the
また、この処理を終えると、CPU70は、S315で生成したエッジ画像データを検査対象データに設定し、S320にて、図6に示す原稿推定処理を実行する。これにより、上記エッジ画像データを解析して、原稿台11aに載置された原稿のサイズ(縦幅及び横幅)、及び、原稿の傾き角θ、及び、原稿台11aにおける原稿の載置領域を推定する。具体的には、原稿台11aに載置された原稿が四角形状で縦横比が一定の定型用紙であるとの仮定の下で、原稿台11aに載置された原稿のエッジを検出すると共に、その検出結果から原稿の左下角位置及び右下角位置を推定し、この推定結果に基づいて、原稿台11aに載置された原稿のサイズ、及び、原稿の傾き角θ、及び、原稿の載置領域を推定する(詳細後述)。
When this process is finished, the
また、S320での処理を終えると、CPU70は、S230〜S290の処理と同様に、S330〜S390の処理を実行する。
但し、S340では、S320で推定した原稿サイズ及びS335で検出した記録紙サイズに基づき、変倍率を、予め定められた計算式に従って、原稿サイズと記録紙サイズとの比(例えば、記録紙短辺長さ÷原稿短辺長さ)に対応した倍率に設定し、後続の処理で、原稿のコピー画像が、原稿サイズとの記録紙サイズの比に対応した倍率で拡大(倍率が1未満の場合には縮小)されて記録紙に印刷されるようにする。
When the process in S320 is completed, the
However, in S340, based on the document size estimated in S320 and the recording paper size detected in S335, the scaling factor is set to a ratio between the document size and the recording paper size according to a predetermined calculation formula (for example, the short side of the recording paper). When the magnification is set to a length corresponding to the length divided by the original document's short side length, and in subsequent processing, the copy image of the original is enlarged at a magnification corresponding to the ratio of the recording paper size to the original size (when the magnification is less than 1) Is reduced to be printed on the recording paper.
また、S350では、S320で推定した原稿の傾き角θから、原稿のコピー画像が、まっすぐ記録紙に印刷されるように、読取結果である画像データの傾き補正量を設定し、S360では、S320で推定した原稿の載置領域の情報に基づいて、原稿読取開始位置及び原稿読取終了位置を設定し、原稿読取開始位置及び原稿読取終了位置で定められる読取領域を、原稿台11aにおける原稿の載置領域に対応させる。 In S350, the inclination correction amount of the image data that is the read result is set so that the copy image of the original is printed straight on the recording paper from the inclination angle θ of the original estimated in S320. The document reading start position and the document reading end position are set based on the information of the document placement area estimated in step S1, and the reading area defined by the document reading start position and the document reading end position is set on the document table 11a. It corresponds to the placement area.
このようにして、第二複写処理では、読取可能領域R0における一部領域のプレスキャン結果に基づき、原稿サイズ、原稿の傾き角、及び、原稿の載置領域を推定し、その結果から、本スキャン時(S370実行時)の読取領域を決定すると共に、変倍率及び傾き補正量を決定して、原稿のコピー画像を、記録紙サイズに対応する大きさで、記録紙に印刷する。 In this way, in the second copying process, the document size, the document inclination angle, and the document placement area are estimated based on the prescan result of the partial area in the readable area R0, and the result is A reading area at the time of scanning (at the time of execution of S370) is determined, a scaling factor and an inclination correction amount are determined, and a copy image of an original is printed on a recording sheet with a size corresponding to the recording sheet size.
続いて、図6を用いて、CPU70が、S320で実行する原稿推定処理について説明する。図6は、CPU70が実行する原稿推定処理を表すフローチャートである。
この原稿推定処理を開始すると、CPU70は、変数Sを上述のプレスキャン領域上端のY座標であるYPREに設定することにより(S=YPRE)、Y軸方向の検査範囲を、Y=0からY=S=YPREに設定する(S410)。また、この処理を終えると、S420に移行し、右エッジ検出処理を実行する。図7は、CPU70が実行する右エッジ検出処理を表すフローチャートである。
Next, the document estimation process executed by the
When this document estimation process is started, the
右エッジ検出処理を開始すると、CPU70は、まずS610にて、副走査方向検査位置Yeを、読取可能領域R0の下端Y座標に設定し(Ye=0)、S615にて、主走査方向検査位置Xeを、読取可能領域R0の右端X座標に設定する(Xe=XMAX)。また、S615では、変数Cを値ゼロに初期化する(C=0)。その後、副走査方向検査位置Yeが検査範囲を超えているか否かを判断する(S620)。具体的には、Ye>Sであるか否かを判断する。
When the right edge detection process is started, the
そして、副走査方向検査位置Yeが検査範囲を超えていないと判断すると(S620でNo)、CPU70は、主走査方向検査位置Xe及び副走査方向検査位置Yeで定まる検査位置(X,Y)=(Xe,Ye)に対応する検査対象データの画素値を参照することにより、検査位置(Xe,Ye)がエッジ点であるか否かを判断する(S625)。尚、図8は、エッジ画像データの構成を抜粋して示し、更に、右エッジ検出処理により追跡するエッジ点の軌跡を表した説明図である。図8に示す例では、画素値「1」の地点がエッジ点に該当する。
When determining that the sub-scanning direction inspection position Ye does not exceed the inspection range (No in S620), the
そして、検査位置(Xe,Ye)がエッジ点ではないと判断すると(S625でNo)、CPU70は、S640に移行して、主走査方向検査位置Xeを、X軸マイナス方向に1画素移動した位置に更新し(Xe←Xe−1)、更新後の主走査方向検査位置Xeが読取可能領域R0の左端を、はみ出ていないかどうかを判断する。具体的には、Xe<0であるか否かを判断する(S643)。
If the
そして、主走査方向検査位置Xeが、読取可能領域R0の左端をはみ出ていないと判断すると(S643でNo)、CPU70は、S620に移行して、副走査方向検査位置Yeが検査範囲を超えているか否か(Ye>Sであるか否か)を判断し、副走査方向検査位置Yeが検査範囲を超えていないと判断すると(S620でNo)、S625に移行し、副走査方向検査位置Yeが検査範囲を超えていると判断すると(S620でYes)、S690に移行する。
If the
一方、S643において、主走査方向検査位置Xeが読取可能領域R0の左端をはみ出ていると判断すると(Xe<0であると判断すると)、CPU70は、S647に移行し、主走査方向検査位置Xeを、読取可能領域R0の右端(XMAX)に設定すると共に(Xe=XMAX)、副走査方向検査位置Yeを、現在値Yeに8加えた値に更新する(Ye←Ye+8)。即ち、副走査方向検査位置Yeを、Y軸方向に8画素進んだ位置に設定する。その後、S620に移行して、上述の処理を実行する。
On the other hand, if it is determined in S643 that the main scanning direction inspection position Xe protrudes from the left end of the readable region R0 (when it is determined that Xe <0), the
また、検査位置(Xe,Ye)がエッジ点であると判断すると(S625でYes)、CPU70は、S630に移行し、変数(X0,Y0)に、現在の検査位置(Xe,Ye)の座標値を、設定する(X0←Xe,Y0←Ye)。また、変数Y1を、座標Y=Y0からY軸方向に8画素進んだ座標値Y1(=Y0+8)に更新する(S633)。
If the
その後、座標(X0−1,Y1)の地点、座標(X0,Y1)の地点及び座標(X0+1,Y1)の地点の少なくとも一つが、エッジ点であるか否かを判断し(S637)、座標(X0−1,Y1)の地点、座標(X0,Y1)の地点及び座標(X0+1,Y1)の地点のいずれもがエッジ点でない場合には(S637でNo)、S640に移行して、主走査方向検査位置Xeを、X軸マイナス方向に1画素移動した位置に更新する(Xe←Xe−1)。 Thereafter, it is determined whether at least one of the point of coordinates (X0-1, Y1), the point of coordinates (X0, Y1), and the point of coordinates (X0 + 1, Y1) is an edge point (S637). If none of the point of (X0-1, Y1), the point of coordinates (X0, Y1), and the point of coordinates (X0 + 1, Y1) is an edge point (No in S637), the process proceeds to S640. The scanning direction inspection position Xe is updated to a position moved by one pixel in the X axis minus direction (Xe ← Xe−1).
一方、座標(X0−1,Y1)の地点、座標(X0,Y1)の地点及び座標(X0+1,Y1)の地点の少なくとも一つがエッジ点であると判断した場合には(S637でYes)、S650に移行して、座標(X0,Y0)の地点が連続性のあるエッジ点であると判定し、この座標(X0,Y0)を、連続性のあるエッジ点の座標データとして、一時記憶する。 On the other hand, when it is determined that at least one of the coordinates (X0-1, Y1), the coordinates (X0, Y1), and the coordinates (X0 + 1, Y1) is an edge point (Yes in S637), The process proceeds to S650, where it is determined that the point of coordinates (X0, Y0) is a continuous edge point, and this coordinate (X0, Y0) is temporarily stored as coordinate data of the continuous edge point. .
また、この処理を終えると、CPU70は、S660に移行し、座標(X0−1,Y1)の地点、座標(X0,Y1)の地点及び座標(X0+1,Y1)の地点の内、エッジ点である地点の一つを、予め定められた優先度に従って選択する。
When this process is finished, the
具体的に、右エッジ検出処理においては、読取可能領域R0右端側に近い座標ほど高い優先度が設定されている。即ち、読取可能領域R0右端側に近い座標(X0+1,Y1)の地点が優先度「大」に設定され、座標(X0,Y1)の地点が優先度「中」に設定され、座標(X0−1,Y1)の地点が優先度「小」に設定されている。 Specifically, in the right edge detection process, higher priority is set for coordinates closer to the right end side of the readable area R0. That is, the point of the coordinate (X0 + 1, Y1) close to the right end side of the readable area R0 is set to the priority “high”, the point of the coordinate (X0, Y1) is set to the priority “medium”, and the coordinate (X0− 1, Y1) is set to the priority “small”.
このように優先度が設定されているのは、原稿の右端より右側においては、原稿台11aに何も存在せず、エッジ点は存在しないはずであり、読取可能領域R0右端側に近いエッジ点であるほど、そのエッジ点が原稿の右端に対応するエッジ点である可能性が高いためである。
The priority is set in this way because nothing exists on the
即ち、S660では、上記優先度に従って、座標(X0−1,Y1)の地点、座標(X0,Y1)の地点、及び、座標(X0+1,Y1)の地点の内、エッジ点である地点であって優先度の最も高い地点を選択する。そして、変数X0を、選択した地点のX座標に更新し、変数Y0を、選択した地点のY座標に更新する。その後、変数Cを1加算した値に更新する(S663)。 That is, in S660, according to the priority, the point of the coordinate (X0-1, Y1), the point of the coordinate (X0, Y1), and the point of the coordinate (X0 + 1, Y1) is a point that is an edge point. To select the point with the highest priority. Then, the variable X0 is updated to the X coordinate of the selected point, and the variable Y0 is updated to the Y coordinate of the selected point. Thereafter, the variable C is updated to a value obtained by adding 1 (S663).
そして、この処理を終えると、CPU70は、更新後の変数Cの値がC=8であるか否かを判断し、C=8でないと判断すると(S667でNo)、S633に移行して、変数Y1を、座標Y=Y0からY軸方向に8画素進んだ地点のY座標に更新する(Y1=Y0+8)。その後、S637以降の処理を実行する。
When this process is completed, the
CPU70は、このような処理を実行することにより、図8に示すように、Y軸方向に8画素おきに、エッジ点がY軸方向に連続するものであるか否かを検査する。そして、C=8であると判断すると(S667でYes)、8回に及ぶS650の処理で連続性のあるエッジ点として判定した計8地点の各座標データを、原稿右エッジデータとしてRAM80に記憶する(S670)。
By executing such processing, the
また、この処理を終えると、CPU70は、S680に移行して、副走査方向検査位置Yeが検査範囲を超えているか否か(Ye>Sであるか否か)を判断し、副走査方向検査位置Yeが検査範囲を超えていないと判断すると(S680でNo)、副走査方向検査位置Yeを64画素進んだ位置に更新して(S685)、S615に移行する。
When this process is completed, the
このようにして、CPU70は、連続するエッジ点を、8つを1組として、繰返し検出する。そして、副走査方向検出位置Yeが検査範囲を超えると(S620でYes又はS680でYes)、S690に移行し、S670で原稿右エッジデータとして記憶された座標データ群の中から、右エッジ(原稿の右端を表すエッジ点)として確度の低い座標データ群を削除して、原稿右エッジデータを確定する。
In this way, the
具体的には、図9に示すように、原稿右エッジデータとして記憶された座標データ群の内、連続性のある座標データ群に対して原稿内側領域に大きくずれた位置にある、明白に連続性のない座標データ群を、原稿右エッジデータから除去し、原稿右エッジデータを確定する。その後、当該右エッジ検出処理を終了する。但し、S690の処理は原稿エッジの検出精度を高めるための処理であるので、S690の処理については、実行しないように、右エッジ検出処理を構成してもよい。 Specifically, as shown in FIG. 9, the coordinate data group stored as the document right edge data is clearly continuously located at a position greatly shifted to the document inner area with respect to the coordinate data group having continuity. The inconsistent coordinate data group is removed from the document right edge data, and the document right edge data is determined. Thereafter, the right edge detection process ends. However, since the process of S690 is a process for increasing the detection accuracy of the document edge, the right edge detection process may be configured not to execute the process of S690.
このようにして、右エッジ検出処理を終えると、CPU70は、S430に移行し、直前の右エッジ検出処理で右エッジの検出に失敗したか否かを判断する。具体的には、直前の右エッジ検出処理で原稿右エッジデータとして登録された座標データがない場合、右エッジの検出に失敗したと判断し、原稿右エッジデータとして登録された座標データがある場合には、右エッジの検出に成功したと判断する。
In this way, when the right edge detection process is completed, the
但し、例外的に、原稿右エッジデータとして登録された座標データが読取可能領域R0の左端(Y=0)近傍にある場合には、左エッジ(原稿の左端を表すエッジ点)の座標データが間違って原稿右エッジデータとして登録されているとみなして、原稿右エッジデータとして登録された座標データがある場合でも、右エッジの検出に失敗したと判断してもよい。 However, exceptionally, when the coordinate data registered as the document right edge data is in the vicinity of the left end (Y = 0) of the readable region R0, the coordinate data of the left edge (the edge point representing the left end of the document) is It may be determined that the detection of the right edge has failed even when there is coordinate data registered as the right edge data of the document, assuming that it is erroneously registered as the right edge data of the document.
尚、右エッジの検出に失敗するケースとしては、原稿サイズが原稿台11aのサイズより大きく、原稿の右端が原稿台11aからはみ出しているケースなどを挙げることができる。 Examples of cases where the detection of the right edge fails include a case where the document size is larger than the size of the document table 11a and the right edge of the document protrudes from the document table 11a.
そして、右エッジの検出に失敗したと判断すると(S430でYes)、CPU70は、S431に移行し、原稿台11aに載置されている原稿のサイズ(縦幅及び横幅)が、原稿台11aに載置可能な最大サイズ(読取可能領域R0に対応するサイズ)であると推定すると共に(S431)、原稿の傾き角θがゼロ(θ=0)であると推定し(S433)、読取可能領域R0全体を、原稿の載置領域と推定する(S435)。そして、この処理を終えると、当該原稿推定処理を終了する。
If it is determined that the detection of the right edge has failed (Yes in S430), the
一方、S430において右エッジの検出に成功したと判断すると(S430でNo)、CPU70は、S437に移行し、右エッジ検出処理で確定された原稿右エッジデータが示す各点を直線近似して、原稿右エッジデータが示す点群の近似直線(以下、「右エッジ近似直線」と表現する。)を算出する。
On the other hand, if it is determined in S430 that the right edge has been successfully detected (No in S430), the
また、この処理を終えると、CPU70は、S440に移行して、右エッジ近似直線がY軸に対し所定角度より大きく傾いているか否かを判断する。本実施例では、具体的に、右エッジ近似直線がY軸に対し0.5度より大きく傾いているか否かを判断する。
When this process is finished, the
そして、右エッジ近似直線の傾きが上記所定角度以下であると判断すると(S440でNo)、CPU70は、原稿がフレーム13aの内側左下角に突き当てられて原稿台11aに正しく載置されていると見なして、図6右図に示すように、右エッジ近似直線と原稿台11a下端縁(換言すると、フレーム13aの下辺(以下、「下フレーム」と表現する。)内側)との交点を、原稿の右下角位置であると推定する(S441)。
If it is determined that the slope of the right edge approximate straight line is equal to or smaller than the predetermined angle (No in S440), the
また、この処理を終えると、CPU70は、原稿の左下角位置が原稿台11aの左下角(換言すると、フレーム13aの内側左下角)の地点であるとみなして、原稿サイズを推定する。具体的には、原稿台11aに載置されている原稿が、長方形状の定型用紙であると仮定の下で、上記原稿の左下角位置からS441で推定した原稿の右下角位置までの長さを、原稿の短辺長さ(横幅)と推定し、この短辺長さの√2倍を、原稿の長辺長さ(縦幅)と推定する(S443)。尚、ここで原稿短辺長さの√2倍を、原稿の長辺長さとして推定しているのは、定型用紙の短辺長さ:長辺長さの比が1:√2となっているためである。
When this processing is completed, the
そして、S443での処理を終えると、CPU70は、S445に移行し、原稿台11aに載置されている原稿の傾き角θをゼロであると推定し(換言すると、原稿が傾いていないと推定し)、上記左下角位置及び推定した右下角位置、及び、原稿サイズ、及び、傾き角θの関係から、原稿の左上角及び右上角が位置する座標を導出する。これにより、これら4つの角を結んでできる四角形の辺を原稿の外縁であると推定し、その外縁で囲まれる領域を、原稿の載置領域であると推定する(S447)。
When the processing in S443 is completed, the
即ち、原稿の左下角がフレーム13a内側左下角に突き当てられ、この状態で上記推定したサイズの原稿の長辺がY軸に平行に配置され、原稿の短辺がX軸に平行に配置されている場合に、原稿によって読取ガラス11が被覆される領域を、原稿の載置領域であると推定する(S447)。そして、この処理を終えると、当該原稿推定処理を終了する。
That is, the lower left corner of the document is abutted against the lower left corner inside the
一方、右エッジ近似直線がY軸に対し所定角度より大きく傾いていると判断すると(S440でYes)、CPU70は、S450に移行し、図10に示す左エッジ検出処理を実行する。図10は、CPU70が実行する左エッジ検出処理を表すフローチャートである。
On the other hand, when determining that the right edge approximate straight line is inclined more than a predetermined angle with respect to the Y axis (Yes in S440), the
左エッジ検出処理を開始すると、CPU70は、S710にて、副走査方向検査位置Ye=0に設定し、S715にて、主走査方向検査位置Xeを、読取可能領域R0の左端X座標に設定する(Xe=0)。また、S715では、変数Cを値ゼロに初期化する(C=0)。
When the left edge detection process is started, the
その後、CPU70は、副走査方向検査位置Yeが検査範囲を超えているか否か(即ち、Ye>Sであるか否か)を判断し(S720)、副走査方向検査位置Yeが検査範囲を超えていないと判断すると(S720でNo)、検査位置(X,Y)=(Xe,Ye)に対応する検査対象データの画素値を参照して、検査位置(Xe,Ye)がエッジ点であるか否かを判断する(S725)。
Thereafter, the
そして、検査位置(Xe,Ye)がエッジ点ではないと判断すると(S725でNo)、S740に移行し、主走査方向検査位置Xeを、X軸プラス方向に1画素移動した地点に更新し(Xe←Xe+1)、更新した主走査方向検査位置Xeが、読取可能領域R0の右端を、はみ出ていないかどうかを判断する。具体的には、Xe>XMAXであるか否かを判断する(S743)。そして、主走査方向検査位置Xeが、読取可能領域R0の右端をはみ出ていないと判断すると(S743でNo)、S720に移行する。 If it is determined that the inspection position (Xe, Ye) is not an edge point (No in S725), the process proceeds to S740, and the main scanning direction inspection position Xe is updated to a point moved by one pixel in the X axis plus direction ( Xe ← Xe + 1), it is determined whether or not the updated main scanning direction inspection position Xe protrudes from the right end of the readable region R0. Specifically, it is determined whether Xe> XMAX (S743). If it is determined that the main scanning direction inspection position Xe does not protrude from the right end of the readable area R0 (No in S743), the process proceeds to S720.
一方、S743で主走査方向検査位置Xeが読取可能領域R0の右端をはみ出ていると判断すると(Xe>XMAXであると判断すると)、CPU70は、S747に移行し、主走査方向検査位置Xeを、読取可能領域R0の左端に設定すると共に(Xe=0)、副走査方向検査位置Yeを、Y軸方向に8画素進んだ位置に設定する(Ye←Ye+8)。その後、S720に移行する。
On the other hand, when it is determined in S743 that the main scanning direction inspection position Xe protrudes from the right end of the readable area R0 (when it is determined that Xe> XMAX), the
また、検査位置(Xe,Ye)がエッジ点であると判断すると(S725でYes)、CPU70は、S730に移行して、変数(X0,Y0)に、現在の検査位置(Xe,Ye)の座標値を設定する(X0←Xe,Y0←Ye)と共に、変数Y1を、値Y1=Y0+8に更新する(S733)。
If the
その後、座標(X0−1,Y1)の地点、座標(X0,Y1)の地点及び座標(X0+1,Y1)の地点の少なくとも一つが、エッジ点であるか否かを判断し(S737)、座標(X0−1,Y1)の地点、座標(X0,Y1)の地点及び座標(X0+1,Y1)の地点のいずれもがエッジ点でない場合には(S737でNo)、S740に移行する。 Thereafter, it is determined whether at least one of the point of coordinates (X0-1, Y1), the point of coordinates (X0, Y1), and the point of coordinates (X0 + 1, Y1) is an edge point (S737). If none of the point of (X0-1, Y1), the point of coordinates (X0, Y1), and the point of coordinates (X0 + 1, Y1) is an edge point (No in S737), the process proceeds to S740.
一方、座標(X0−1,Y1)の地点、座標(X0,Y1)の地点及び座標(X0+1,Y1)の地点の少なくとも一つがエッジ点であると判断した場合には(S737でYes)、S750に移行して、座標(X0,Y0)の地点が連続性のあるエッジ点であると判定し、この座標(X0,Y0)を、連続性のあるエッジ点の座標データとして、一時記憶する。 On the other hand, when it is determined that at least one of the point of coordinates (X0-1, Y1), the point of coordinates (X0, Y1), and the point of coordinates (X0 + 1, Y1) is an edge point (Yes in S737), Moving to S750, it is determined that the point of coordinates (X0, Y0) is a continuous edge point, and the coordinates (X0, Y0) are temporarily stored as coordinate data of the continuous edge point. .
また、この処理を終えると、CPU70は、S760に移行し、座標(X0−1,Y1)の地点、座標(X0,Y1)の地点及び座標(X0+1,Y1)の地点の内、エッジ点である地点の一つを、予め定められた優先度に従って選択する。
When this process is finished, the
具体的に、左エッジ検出処理においては、読取可能領域R0左端側に近い座標ほど高い優先度が設定されているものとする。即ち、読取可能領域R0左端側に近い座標(X0−1,Y1)の地点が優先度「大」に設定され、座標(X0,Y1)の地点が優先度「中」に設定され、座標(X0+1,Y1)の地点が優先度「小」に設定されている。このように優先度が設定されているのは、原稿の左端より左側においては、原稿台11aに何も存在せず、エッジ点は存在しないはずであり、読取可能領域R0左端側に近いエッジ点であるほど、そのエッジ点が原稿の左端に対応するエッジ点である可能性が高いためである。 Specifically, in the left edge detection process, it is assumed that a higher priority is set for coordinates closer to the left end side of the readable area R0. That is, the point of the coordinates (X0-1, Y1) close to the left end side of the readable area R0 is set to the priority “large”, the point of the coordinates (X0, Y1) is set to the priority “medium”, and the coordinates ( The point of X0 + 1, Y1) is set to the priority “small”. The priority is set in this way because there is nothing on the document table 11a on the left side of the left edge of the document, and there should be no edge point, and the edge point close to the left edge side of the readable area R0. This is because there is a high possibility that the edge point is an edge point corresponding to the left end of the document.
従って、S760では、この優先度に従って、座標(X0−1,Y1)の地点、座標(X0,Y1)の地点、及び、座標(X0+1,Y1)の地点の内、エッジ点である地点であって優先度の最も高い地点を選択する。そして、変数X0を、選択した地点のX座標に更新し、変数Y0を、選択した地点のY座標に更新する。その後、変数Cを1加算した値に更新する(S763)。 Therefore, in S760, according to the priority, the point of the coordinate (X0-1, Y1), the point of the coordinate (X0, Y1), and the point of the coordinate (X0 + 1, Y1) are points that are edge points. To select the point with the highest priority. Then, the variable X0 is updated to the X coordinate of the selected point, and the variable Y0 is updated to the Y coordinate of the selected point. Thereafter, the variable C is updated to a value obtained by adding 1 (S763).
また、この処理を終えると、CPU70は、更新後の変数Cの値がC=8であるか否かを判断し、C=8でないと判断すると(S767でNo)、S733に移行して、変数Y1を、Y1=Y0+8に更新する。その後、S737以降の処理を実行する。
When this process is finished, the
このような処理手順により、CPU70は、右エッジ検出処理と同様(図8参照)、Y軸方向に8画素おきに、エッジ点がY軸方向に連続するものであるか否かを検査する。そして、C=8であると判断すると(S767でYes)、S750で連続性のあるエッジ点として判定した計8地点の各座標データを、原稿左エッジデータとしてRAM80に記憶する(S770)。
With such a processing procedure, the
また、この処理を終えると、CPU70は、S780に移行して、副走査方向検査位置Yeが検査範囲を超えているか否か(Ye>Sであるか否か)を判断し、副走査方向検査位置Yeが検査範囲を超えていないと判断すると(S780でNo)、副走査方向検査位置Yeを64画素進んだ地点に更新して(S785)、S715に移行する。
When this process is finished, the
このようにして、CPU70は、連続するエッジ点を、8つずつ、繰返し検出する。そして、副走査方向検出位置Yeが検査範囲を超えると(S720でYes又はS780でYes)、S790に移行し、S770で原稿左エッジデータとして記憶された座標データ群の中から、左エッジ(原稿の左端を表すエッジ点)として確度の低い座標データ群を削除して、原稿左エッジデータを確定する。
In this way, the
具体的には、S690での処理と同様、原稿左エッジデータとして記憶された座標データ群の内、連続性のある座標データ群に対して原稿内側領域に大きくずれた位置にある、明白に連続性のない座標データ群を、原稿左エッジデータから除去し、原稿左エッジデータを確定する。その後、当該左エッジ検出処理を終了する。但し、S790の処理については、実行しないように、左エッジ検出処理を構成してもよい。 Specifically, in the same manner as the processing in S690, the coordinate data group stored as the document left edge data is clearly continuously located at a position greatly deviated to the inner area of the document with respect to the coordinate data group having continuity. The inconsistent coordinate data group is removed from the document left edge data, and the document left edge data is determined. Thereafter, the left edge detection process ends. However, the left edge detection process may be configured not to execute the process of S790.
また、このようにして、左エッジ検出処理を終えると、CPU70は、S455に移行し、左エッジ検出処理で確定された原稿左エッジデータが示す各点を直線近似して、原稿左エッジデータが示す点群の近似直線(以下、「左エッジ近似直線」という。)を算出する。その後、S460に移行する。
In addition, when the left edge detection process is completed in this way, the
但し、直前の左エッジ検出処理で原稿左エッジデータとして登録された座標データがない場合には、左エッジの検出に失敗したと判断して、左エッジ近似直線を算出することなく、S460に移行するものとする。この他、原稿左エッジデータとして登録されている座標データの全て又は一部が原稿右エッジデータにも登録されている場合には、右エッジ(原稿の右端を表すエッジ点)の座標データが間違って原稿左エッジデータとして登録されているとみなして、原稿左エッジデータとして登録された座標データがある場合でも、左エッジの検出に失敗したと判断し、左エッジ近似直線を算出することなく、S460に移行するようにしてもよい。 However, if there is no coordinate data registered as document left edge data in the immediately preceding left edge detection process, it is determined that detection of the left edge has failed, and the process proceeds to S460 without calculating the left edge approximate straight line. It shall be. In addition, when all or part of the coordinate data registered as the document left edge data is also registered in the document right edge data, the coordinate data of the right edge (the edge point representing the right edge of the document) is incorrect. Even if there is coordinate data registered as document left edge data, it is determined that detection of the left edge has failed, and without calculating the left edge approximate straight line, You may make it transfer to S460.
また、S460に移行すると、CPU70は、図11に示す下エッジ検出処理を実行する。図11は、CPU70が実行する下エッジ検出処理を表すフローチャートである。
下エッジ検出処理を開始すると、CPU70は、S810にて、主走査方向検査位置Xeを、読取可能領域R0の左端X座標に設定し(Xe=0)、S815にて、副走査方向検査位置Yeを、読取可能領域R0の下端Y座標に設定する(Ye=0)。また、S815では、変数Cを値ゼロに初期化する(C=0)。
In S460, the
When the lower edge detection process is started, the
また、この処理を終えると、CPU70は、主走査方向検査位置Xeが読取可能領域R0の右端を超えているか否か(即ち、Xe>XMAXであるか否か)を判断し(S820)、主走査方向検査位置Xeが読取可能領域R0の右端を超えていないと判断すると(S820でNo)、検査位置(X,Y)=(Xe,Ye)に対応する検査対象データの画素値を参照し、検査位置(Xe,Ye)がエッジ点であるか否かを判断する(S825)。
When this process is finished, the
そして、検査位置(Xe,Ye)がエッジ点ではないと判断すると(S825でNo)、S840に移行して、副走査方向検査位置Yeを、Y軸プラス方向に1画素移動した位置に更新し(Ye←Ye+1)、更新後の副走査方向検査位置Yeが検査範囲を超えているか否か(Ye>Sであるか否か)を判断する(S843)。 If it is determined that the inspection position (Xe, Ye) is not an edge point (No in S825), the process proceeds to S840, and the sub-scanning inspection position Ye is updated to a position moved by one pixel in the Y-axis plus direction. (Ye ← Ye + 1), it is determined whether or not the updated sub-scanning direction inspection position Ye exceeds the inspection range (whether or not Ye> S) (S843).
そして、副走査方向検査位置Yeが検査範囲を超えていないと判断すると(S843でNo)、S820に移行する。
一方、S843で副走査方向検査位置Yeが検査範囲を超えていると判断すると(Ye>Sであると判断すると)、CPU70は、S847に移行し、副走査方向検査位置Yeを、読取可能領域R0の下端に設定すると共に(Ye=0)、主走査方向検査位置Xeを、X軸方向に8画素進んだ位置に設定する(Xe←Xe+8)。その後、S820に移行する。
If it is determined that the sub-scanning direction inspection position Ye does not exceed the inspection range (No in S843), the process proceeds to S820.
On the other hand, when it is determined in S843 that the sub-scanning direction inspection position Ye exceeds the inspection range (when it is determined that Ye> S), the
この他、CPU70は、S825において、検査位置(Xe,Ye)がエッジ点であると判断すると(S825でYes)、S830に移行し、変数(X0,Y0)に、現在の検査位置(Xe,Ye)の座標値を、設定する(X0←Xe,Y0←Ye)。また、変数X1を、値X1=X0+8に更新する(S833)。
In addition, when the
その後、CPU70は、座標(X1,Y0−1)の地点、座標(X1,Y0)の地点及び座標(X1,Y0+1)の地点の少なくとも一つが、エッジ点であるか否かを判断し(S837)、座標(X1,Y0−1)の地点、座標(X1,Y0)の地点及び座標(X1,Y0+1)の地点のいずれもがエッジ点でない場合には(S837でNo)、S840に移行する。
Thereafter, the
一方、座標(X1,Y0−1)の地点、座標(X1,Y0)の地点及び座標(X1,Y0+1)の地点の少なくとも一つがエッジ点であると判断すると(S837でYes)、CPU70は、S850に移行して、座標(X0,Y0)の地点が連続性のあるエッジ点であると判定し、この座標(X0,Y0)を、連続性のあるエッジ点の座標データとして、一時記憶する。
On the other hand, if it is determined that at least one of the coordinates (X1, Y0-1), the coordinates (X1, Y0), and the coordinates (X1, Y0 + 1) is an edge point (Yes in S837), the
また、この処理を終えると、CPU70は、S860に移行し、座標(X1,Y0−1)の地点、座標(X1,Y0)の地点及び座標(X1,Y0+1)の地点の内、エッジ点である地点の一つを、予め定められた優先度に従って選択する。
When this process is finished, the
具体的に、下エッジ検出処理においては、読取可能領域R0下端側に近い座標ほど高い優先度が設定されている。即ち、読取可能領域R0下端側に近い座標(X1,Y0−1)の地点が優先度「大」に設定され、座標(X1,Y0)の地点が優先度「中」に設定され、座標(X1,Y0+1)の地点が優先度「小」に設定されている。このように優先度が設定されているのは、原稿の下端より下側においては、原稿台11aに何も存在せず、エッジ点は存在しないはずであり、読取可能領域R0下端側に近いエッジ点であるほど、そのエッジ点が原稿の下端に対応するエッジ点である可能性が高いためである。 Specifically, in the lower edge detection process, a higher priority is set for coordinates closer to the lower end side of the readable area R0. That is, the point of the coordinates (X1, Y0-1) close to the lower end side of the readable area R0 is set to the priority “large”, the point of the coordinates (X1, Y0) is set to the priority “medium”, and the coordinates ( The point of (X1, Y0 + 1) is set to the priority “small”. The priority is set in this way because there is nothing on the document table 11a below the lower end of the original, there should be no edge point, and the edge close to the lower end of the readable area R0. This is because the point is more likely to be the edge point corresponding to the lower end of the document.
従って、S860では、この優先度に従って、座標(X1,Y0−1)の地点、座標(X1,Y0)の地点及び座標(X1,Y0+1)の地点の内、エッジ点である地点であって優先度の最も高い地点を選択する。そして、変数X0を、選択した地点のX座標に更新し、変数Y0を、選択した地点のY座標に更新する。その後、変数Cを1加算した値に更新する(S863)。 Therefore, in S860, according to this priority, the point that is the edge point among the point of the coordinate (X1, Y0-1), the point of the coordinate (X1, Y0), and the point of the coordinate (X1, Y0 + 1) is preferred. Select the point with the highest degree. Then, the variable X0 is updated to the X coordinate of the selected point, and the variable Y0 is updated to the Y coordinate of the selected point. Thereafter, the variable C is updated to a value obtained by adding 1 (S863).
また、この処理を終えると、CPU70は、更新後の変数Cの値がC=8であるか否かを判断し(S867)、C=8でないと判断すると(S867でNo)、S833に移行して、変数X1を、X1=X0+8に更新する。その後、S837以降の処理を実行する。
When this process is finished, the
このような処理を実行することにより、CPU70は、X軸方向に8画素おきに、エッジ点がX軸方向に連続するものであるか否かを検査する。そして、C=8であると判断すると(S867でYes)、S850で連続性のあるエッジ点として判定した計8地点の各座標データを、原稿下エッジデータとしてRAM80に記憶する(S870)。
By executing such processing, the
また、この処理を終えると、CPU70は、S880に移行して、主走査方向検査位置Xeが読取可能領域R0右端を超えているか否か(Xe>XMAXであるか否か)を判断し、主走査方向検査位置Xeが読取可能領域R0右端を超えていないと判断すると(S880でNo)、主走査方向検査位置Xeを64画素進んだ地点に更新して(S885)、S815に移行する。
When this process is finished, the
このようにして、CPU70は、連続するエッジ点を、8つずつ、繰返し検出する。そして、主走査方向検出位置Xeが読取可能領域R0右端を超えると(S820でYes又はS880でYes)、S890に移行し、S870で原稿下エッジデータとして記憶された座標データ群の中から、下エッジ(原稿の下端を表すエッジ点)として確度の低い座標データ群を削除して、原稿下エッジデータを確定する。
In this way, the
具体的には、S690での処理と同様、原稿下エッジデータとして記憶された座標データ群の内、連続性のある座標データ群に対して原稿内側領域に大きくずれた位置にある、明白に連続性のない座標データ群を、原稿下エッジデータから除去し、原稿下エッジデータを確定する。その後、当該下エッジ検出処理を終了する。但し、S890の処理については、実行しないように、下エッジ検出処理を構成してもよい。 Specifically, like the processing in S690, the coordinate data group stored as the document lower edge data is clearly continuously located at a position that is greatly shifted to the inner area of the document with respect to the coordinate data group having continuity. The inferior coordinate data group is removed from the document lower edge data to determine the document lower edge data. Thereafter, the lower edge detection process ends. However, the lower edge detection process may be configured not to execute the process of S890.
また、このようにして、下エッジ検出処理を終えると、CPU70は、S465に移行し、下エッジ検出処理で確定された原稿下エッジデータが示す各点を直線近似して、原稿下エッジデータが示す点群の近似直線(以下、「下エッジ近似直線」という。)を算出する。その後、S470に移行する。但し、直前の下エッジ検出処理で原稿下エッジデータとして登録された座標データがない場合には、下エッジの検出に失敗したと判断して、下エッジ近似直線を算出することなく、S470に移行するものとする。
In addition, when the lower edge detection process is completed in this way, the
また、S470に移行すると、CPU70は、右エッジ近似直線Y=A・X+Bの傾きAが負(A<0)であるか否かを判断する。そして、右エッジ近似直線の傾きAが負であると判断すると(S470でYes)、図12に示す第一角位置推定処理を実行し(S480)、右エッジ近似直線の傾きAが負ではないと判断すると(S470でNo)、図15に示す第二角位置推定処理を実行する(S485)。
In S470, the
図12は、CPU70が実行する第一角位置推定処理を表すフローチャートである。S480において、第一角位置推定処理を開始すると、CPU70は、S420、S450及びS460において右エッジ、左エッジ及び下エッジの全てが正常に検出されたか否かを判断する(S910)。
FIG. 12 is a flowchart showing a first angular position estimation process executed by the
具体的に、S910では、右エッジ、左エッジ及び下エッジのいずれか一つでも、その検出に失敗している場合、Noと判断する。また、右エッジ、左エッジ及び下エッジの全てについて検出に成功している場合でも、直交関係にあるはずの右エッジ近似直線と下エッジ近似直線とが直交関係にない場合には、右エッジ、左エッジ及び下エッジの全てが正常に検出されていないと判断する。 Specifically, in S910, if any one of the right edge, the left edge, and the lower edge fails to be detected, it is determined as No. Further, even when the detection is successful for all of the right edge, the left edge, and the lower edge, if the right edge approximate straight line and the lower edge approximate straight line that should be in an orthogonal relationship are not in an orthogonal relationship, the right edge, It is determined that all of the left edge and the lower edge are not normally detected.
同様に、平行関係にあるはずの右エッジ近似直線と左エッジ近似直線とが平行関係にない場合にも、右エッジ、左エッジ及び下エッジの全てが正常に検出されていないと判断する。そして、上記以外の場合には、S910でYesと判断する。 Similarly, when the right edge approximate straight line and the left edge approximate straight line that should be in parallel relation are not in parallel relation, it is determined that all of the right edge, left edge, and lower edge are not normally detected. In cases other than the above, it is determined Yes in S910.
このような判断手法にてS910の処理を実行し、S910にて、右エッジ、左エッジ及び下エッジの全てが正常に検出されていると判断すると(S910でYes)、CPU70は、原稿の左下角位置を、左エッジ近似直線と下エッジ近似直線との交点であると推定して、その座標値を算出し(S920)、更に、原稿の右下角位置を、右エッジ近似直線と下エッジ近似直線との交点であると推定して、その座標値を算出する(S930)。その後、当該第一角位置推定処理を終了する。尚、図13は、S910でYesと判断したときの原稿左下角位置Ka及び原稿右下角位置Kbの推定方法を示した説明図である。図中、白丸がエッジ点を表し、黒丸が角位置Ka,Kbを表す。
When the process of S910 is executed by such a determination method and it is determined in S910 that all of the right edge, the left edge, and the lower edge are normally detected (Yes in S910), the
一方、S910にて、右エッジ、左エッジ及び下エッジの全てが正常に検出されていないと判断すると(S910でNo)、CPU70は、S940に移行して、右エッジ及び左エッジの全てが正常に検出されているか否かを判断する。
On the other hand, if it is determined in S910 that all of the right edge, the left edge, and the lower edge are not normally detected (No in S910), the
具体的に、S940では、右エッジ又は左エッジの検出に失敗している場合、Noと判断する。また、右エッジ及び左エッジの検出に成功している場合でも、平行関係にあるはずの右エッジ近似直線と左エッジ近似直線とが平行関係にない場合には、右エッジ及び左エッジの全てが正常に検出されていないと判断する。そして、上記以外の場合には、S940でYesと判断する。 Specifically, in S940, if the detection of the right edge or the left edge fails, it is determined No. Even if the right edge and the left edge are successfully detected, if the right edge approximate straight line and the left edge approximate straight line that should be in parallel relation are not in parallel relation, all of the right edge and left edge are Judge that it is not detected normally. In cases other than the above, it is determined Yes in S940.
このような判断手法にてS940の処理を実行し、S940にて、右エッジ及び左エッジの全てが正常に検出されていると判断すると(S940でYes)、CPU70は、S950に移行して、原稿の左下角位置を、左エッジ近似直線と原稿台11aの下端縁(即ち、下フレーム内側)との交点であると推定して、その座標値を算出すると共に、原稿の右下角位置を、右エッジ近似直線に垂直な直線であって推定した左下角位置を通る直線と、右エッジ近似直線との交点であると推定して、その座標値を算出する(S960)。
When the processing of S940 is executed by such a determination method, and it is determined that all of the right edge and the left edge are normally detected in S940 (Yes in S940), the
尚、図14(a)は、S940でYesと判断したときの原稿左下角位置Ka及び原稿右下角位置Kbの推定方法を示した説明図である。S960で、原稿の左下角位置を、左エッジ近似直線と原稿台11aの下端縁(即ち、下フレーム内側)との交点であると推定するのは、原稿が左側に傾いている場合には、原稿の左下角が、原稿台11aの下端縁と下フレームの内側との境界にある段差に、突き当たっている可能性が高いためである。このような理由から、本実施例では、下エッジを正常検出することができなかったとき、原稿の左下角が、原稿台11aの下端縁と下フレームの内側との境界にある段差に、突き当たっていると仮定して、原稿の左下角位置を推定する。 FIG. 14A is an explanatory diagram showing a method for estimating the document lower left corner position Ka and the document lower right corner position Kb when it is determined Yes in S940. In S960, the lower left corner position of the document is estimated to be the intersection of the left edge approximate straight line and the lower edge of the document table 11a (that is, the lower frame inner side) when the document is inclined to the left side. This is because there is a high possibility that the lower left corner of the document hits a step at the boundary between the lower edge of the document table 11a and the inside of the lower frame. For this reason, in this embodiment, when the lower edge cannot be detected normally, the lower left corner of the document hits the step at the boundary between the lower edge of the document table 11a and the inner side of the lower frame. The lower left corner position of the document is estimated.
また、このようにしてS960での処理を終えると、CPU70は、当該第一角位置推定処理を終了する。
一方、S940にて、右エッジ及び左エッジの全てが正常に検出されていないと判断すると(S940でNo)、CPU70は、S970に移行して、原稿右エッジデータが示すエッジ点群の内、原稿台11a上で最も右下寄りのエッジ点に対応する右エッジ近似直線上の点を、原稿の右下角位置であると推定し、その座標値を算出する。尚、S970では、原稿右エッジデータが示すエッジ点であってエッジ点から右エッジ近似直線へ伸ばした右エッジ近似直線に直交する直線が右エッジ近似直線と交わる交点が、右エッジ近似直線上において最も右側にあるエッジ点の当該交点を、「最も右下寄りのエッジ点に対応する右エッジ近似直線上の点」と取り扱えばよい。
In addition, when the process in S960 is finished in this way, the
On the other hand, if it is determined in S940 that all of the right edge and the left edge are not normally detected (No in S940), the
また、S970での処理を終えると、CPU70は、原稿の左下角位置を、上記推定した右下角位置を通る直線であって右エッジ近似直線に垂直な直線と、原稿台11a端縁(フレーム内側)との交点であると推定して、その座標値を算出する。その後、当該第一角位置推定処理を終了する。
When the processing in S970 is completed, the
尚、図14(b)は、S940でNoと判断したときの原稿左下角位置Ka及び原稿右下角位置Kbの推定方法を示した説明図である。S970,S980で、原稿右エッジデータを用いて原稿の左下角位置及び右下角位置を推定するのは、原稿の突き当て位置が、フレーム13aの内側左下角に設定され、原稿台11aの端縁近傍では読取不可能な領域がある関係上、右エッジ、左エッジ及び下エッジの中では、右エッジを一番正しく検出することができ、原稿右エッジデータ、原稿左エッジデータ、原稿下エッジデータの中で一番信用できる確度の高いデータが、原稿右エッジデータであるためである。本実施例では、このような理由から、原稿右エッジデータを一番信用して、この原稿右エッジデータ及び右エッジ近似直線を拠所に、原稿サイズ及び原稿の傾き角θを推定する。
FIG. 14B is an explanatory view showing a method for estimating the document lower left corner position Ka and the document lower right corner position Kb when it is determined No in S940. In S970 and S980, the lower left corner position and the lower right corner position of the document are estimated using the document right edge data. The document abutment position is set to the inner lower left corner of the
続いて、CPU70が、S485で実行する第二角位置推定処理について説明する。図15は、CPU70が実行する第二角位置推定処理を表すフローチャートである。第二角位置推定処理を開始すると、CPU70は、まず、S420及びS460において右エッジ及び下エッジの全てが正常に検出されたか否かを判断する(S1010)。
Subsequently, the second angular position estimation process executed by the
具体的に、S1010では、右エッジ又は下エッジの検出に失敗している場合、Noと判断する。また、右エッジ及び下エッジの全てについて検出に成功している場合でも、直交関係にあるはずの右エッジ近似直線と下エッジ近似直線が直交関係にない場合には、右エッジ及び下エッジの全てが正常に検出されていないと判断する。そして、上記以外の場合には、S1010でYesと判断する。 Specifically, in S1010, if the detection of the right edge or the lower edge has failed, it is determined No. In addition, even when the right edge and the lower edge are all successfully detected, if the right edge approximate straight line and the lower edge approximate straight line that should be in an orthogonal relationship are not in an orthogonal relationship, all of the right edge and the lower edge are detected. Is determined not to be detected normally. In cases other than the above, “Yes” is determined in S1010.
尚、第二角位置推定処理では、左エッジの検出結果を使用せずに、原稿の左下角位置及び右下角位置を推定するが、このような手法で原稿の角位置を推定する理由は、原稿が右側に傾いている場合には、図16(a)に示すように原稿右端がプレスキャン領域に十分な長さ納まっている可能性が高く、原稿右エッジデータの確度が非常に高い一方で、原稿左端についてはプレスキャン領域に十分な長さ納まっていない可能性が高く、原稿左エッジデータの確度が、原稿右エッジデータや原稿下エッジデータと比較して低いためである。 In the second corner position estimation process, the lower left corner position and the lower right corner position of the document are estimated without using the detection result of the left edge. The reason for estimating the corner position of the document by such a method is as follows. When the document is inclined to the right side, it is highly possible that the right edge of the document is sufficiently long in the pre-scan area as shown in FIG. 16A, and the accuracy of the document right edge data is very high. This is because there is a high possibility that the document left edge is not sufficiently long in the pre-scan area, and the accuracy of the document left edge data is lower than the document right edge data and the document lower edge data.
このような判断手法にてS1010の処理を実行し、S1010にて、右エッジ及び下エッジの全てが正常に検出されていると判断すると(S1010でYes)、CPU70は、原稿の左下角位置を、下エッジ近似直線と原稿台11aの左端縁(左フレーム内側)との交点であると推定して、その座標値を算出し(S1020)、更に、原稿の右下角位置を、右エッジ近似直線と下エッジ近似直線との交点であると推定して、その座標値を算出する(S1030)。その後、当該第二角位置推定処理を終了する。尚、図16(a)は、S1010でYesと判断したときの原稿左下角位置Ka及び原稿右下角位置Kbの推定方法を示した説明図である。
When the processing of S1010 is executed by such a determination method, and it is determined in S1010 that all of the right edge and the lower edge are detected normally (Yes in S1010), the
一方、S1010にて、右エッジ及び下エッジの全てが正常に検出されていないと判断すると(S1010でNo)、CPU70は、S1040に移行して、原稿の右下角位置を、右エッジ近似直線と原稿台11aの下端縁(下フレーム内側)との交点であると推定し、その座標値を算出すると共に、原稿の左下角位置を、上記推定した右下角位置を通る直線であって右エッジ近似直線に垂直な直線と原稿台11a端縁(フレーム内側)との交点であると推定し、その座標値を算出する(S1050)。その後、当該第二角位置推定処理を終了する。
On the other hand, if it is determined in S1010 that all of the right edge and the lower edge have not been detected normally (No in S1010), the
尚、図16(b)は、S1010でNoと判断したときの原稿左下角位置Ka及び原稿右下角位置Kbの推定方法を示した説明図である。原稿が右側に傾いている場合には、原稿の右下角が、原稿台11aの下端縁と下フレームの内側との境界BDにある段差に、突き当たっている可能性が高いため、本実施例では、下エッジを正常検出することができなかったとき、原稿の右下角が、原稿台11aの下端縁と下フレームの内側との境界BDにある段差に、突き当たっていると仮定して、原稿の右下角位置を推定する。 FIG. 16B is an explanatory diagram showing a method for estimating the document lower left corner position Ka and the document lower right corner position Kb when it is determined No in S1010. When the document is inclined to the right side, the lower right corner of the document is likely to hit a step at the boundary BD between the lower edge of the document table 11a and the inside of the lower frame. When the lower edge cannot be detected normally, it is assumed that the lower right corner of the document hits a step at the boundary BD between the lower edge of the document table 11a and the inner side of the lower frame. Estimate the lower right corner position.
また、このようにして第一又は第二角位置推定処理(S480,S485)を終了すると、CPU70は、S490に移行して、S480又はS485で推定した角位置の情報に基づき、原稿サイズを推定する。即ち、原稿台11aに載置されている原稿が、長方形状の定型用紙であると仮定の下で、上記推定した原稿の左下角位置から原稿の右下角位置までの長さを、原稿の短辺長さ(横幅)と推定し、この短辺長さの√2倍を、原稿の長辺長さ(縦幅)と推定する。
When the first or second angular position estimation process (S480, S485) is completed in this way, the
また、この処理を終えると、右エッジ近似直線を基準にして、原稿の傾き角θを推定する。即ち、Y軸に対して右エッジ近似直線がなす角度を、原稿の傾き角θと推定する(S493)。 When this process is finished, the inclination angle θ of the document is estimated based on the right edge approximate straight line. That is, the angle formed by the right edge approximate straight line with respect to the Y axis is estimated as the document inclination angle θ (S493).
その後、CPU70は、S497に移行し、上記推定した角位置、原稿サイズ、原稿の傾き角θの情報に基づき、原稿の載置領域を推定する。具体的には、上記推定した左下角位置、右下角位置、原稿の傾き角θ、及び、原稿サイズの情報から、原稿の左上角位置、原稿の右上角位置を導出することにより、原稿の外縁を推定し、この原稿の外縁により囲まれる領域を、原稿の載置領域であると推定する。そして、この処理を終えると、当該原稿推定処理を終了して、S330以降の処理を実行する。
Thereafter, the
即ち、推定した原稿サイズ及び原稿の傾き角θの情報に基づき、変倍率及び傾き補正量を設定すると共に(S340,S350)、推定した原稿載置領域の情報に基づき、原稿読取開始位置及び原稿読取終了位置を設定することで、原稿の載置領域に対応する読取領域を設定し(S360)、この読取領域内で、読取ユニットを搬送して、読取ユニットに読取領域に写る画像を読み取らせ、その読取結果としてRAM80に記録された画像データを、予め設定した変倍率及び傾き補正量に合わせて、拡大/縮小及び回転処理することにより印刷用の画像データを生成し(S380)、この画像データを、印刷対象データとして、当該印刷対象データについての印刷処理を実行することで(S390)、原稿のコピー画像を記録紙に印刷する。その後、第二複写処理及び複写制御処理を終えて、外部から入力されたコピー指令に対応する処理を完了する。
That is, based on the information on the estimated document size and the document inclination angle θ, the scaling factor and the inclination correction amount are set (S340, S350), and the document reading start position and the document are determined based on the estimated document placement area information. By setting the reading end position, a reading area corresponding to the document placement area is set (S360), and within this reading area, the reading unit is transported so that the image displayed in the reading area is read by the reading unit. Then, the image data recorded in the
以上、本実施例の複合機1の構成について説明したが、この複合機1によれば、「自動変倍/傾き補正」コピー指令が入力された場合、読取可能領域R0の一部をプレスキャンして、その読取結果に基づき、原稿の状態(原稿サイズ・原稿の傾き・原稿の載置領域)を推定する。
The configuration of the
従って、本実施例によれば、「自動変倍/傾き補正」コピー指令が入力された場合、「縁無し」コピーのように、読取可能領域R0全体をプレスキャンする手法よりも高速にプレスキャン動作を終了することができて、効率的に原稿の状態を推定することができる。 Therefore, according to the present embodiment, when an “automatic scaling / tilt correction” copy command is input, prescanning is faster than the method of prescanning the entire readable area R0, such as “marginless” copying. The operation can be completed, and the state of the original can be estimated efficiently.
尚、本実施例においては、「縁無し」コピー指令が入力された場合、読取可能領域R0全体をプレスキャンして、その結果に基づき、原稿の状態を推定するようにしているが、このようにしているのは、コピー指令の目的から、処理の高速性よりも「縁無し」コピーを適切に実現するために、原稿の状態を可能な限り正確に推定するのが好ましいためである。 In this embodiment, when a “marginless” copy command is input, the entire readable area R0 is pre-scanned, and based on the result, the state of the document is estimated. This is because, for the purpose of the copy command, it is preferable to estimate the state of the document as accurately as possible in order to appropriately realize “marginless” copying rather than high-speed processing.
即ち、本実施例においては、ユーザの要求に応じて動作モードを切り替え、正確な状態推定が必要な場合には、全体プレスキャン処理を実行して原稿の状態推定を行い、そうでない場合には、先端部プレスキャン処理を実行して原稿の状態推定を行うことで、処理の正確性と迅速性の調和を図るようにした。従って、このディジタル複合機1によれば、ユーザの利便性を、従来よりも高めることができる。 That is, in this embodiment, the operation mode is switched according to the user's request, and when the accurate state estimation is necessary, the entire pre-scan process is executed to estimate the state of the original. The leading edge pre-scan process is executed to estimate the state of the original so that the accuracy and speed of the process are harmonized. Therefore, according to the digital multi-function peripheral 1, the convenience for the user can be enhanced as compared with the conventional case.
また、本実施例では、原稿推定処理にて原稿の状態を推定する際、原稿台11aに載置された原稿Pが定型用紙であると仮定して、原稿台11aに載置された原稿の状態を推定するようにした。従って、定型用紙が原稿台11aに載置されている場合には、読取可能領域R0の一部をプレスキャンをする程度でも、正確に原稿サイズや原稿の傾き、原稿の載置領域を推定することができ、この推定結果に基づき、適切に読取領域や変倍率、傾き補正量を設定して、記録紙に、適切なコピー画像を印刷することができる。 Further, in this embodiment, when estimating the state of the document in the document estimation process, it is assumed that the document P placed on the document table 11a is a standard sheet, and the document placed on the document table 11a. The state was estimated. Therefore, when the standard sheet is placed on the document table 11a, the document size, the document inclination, and the document placement area are accurately estimated even when a part of the readable area R0 is pre-scanned. Based on this estimation result, an appropriate copy image can be printed on a recording sheet by appropriately setting a reading area, a variable magnification, and an inclination correction amount.
特に、本実施例では、先端部プレスキャン処理により得られたプレスキャン画像データを、エッジ画像データに変換して、このエッジ画像データから、右エッジ、左エッジ及び下エッジに対応するエッジ点を抽出し、これらの近似直線から原稿の角位置を推定するようにした。 In particular, in the present embodiment, the prescan image data obtained by the tip prescan process is converted into edge image data, and edge points corresponding to the right edge, the left edge, and the lower edge are converted from the edge image data. Extracted and estimated the angular position of the document from these approximate lines.
具体的に、本実施例では、右エッジ近似直線が傾いており原稿が正確に載置されていないと考えられるときであって、右エッジ近似直線、左エッジ近似直線、下エッジ近似直線の確度が高いと考えられるとき、右エッジ近似直線と下エッジ近似直線との交点を右下角位置と推定し、左エッジ近似直線と下エッジ近似直線との交点を左下角位置と推定するようにした。 Specifically, in the present embodiment, the right edge approximate straight line is inclined and the document is considered not accurately placed, and the accuracy of the right edge approximate straight line, the left edge approximate straight line, and the lower edge approximate straight line is determined. Is considered high, the intersection of the right edge approximate line and the lower edge approximate line is estimated as the lower right corner position, and the intersection of the left edge approximate line and the lower edge approximate line is estimated as the lower left corner position.
従って、本実施例によれば、プレスキャン画像データに原稿の全体像が現れていない場合もさることながら、原稿が正確に載置されておらず、原稿の角が折れていたり、原稿の角が読取可能領域外にある場合等のように原稿の角がプレスキャン結果には現れていない場合にも、適切に原稿の角位置を推定して、原稿の状態(サイズ等)を推定することができる。 Therefore, according to the present embodiment, the entire image of the document does not appear in the pre-scan image data, and the document is not placed correctly, the corner of the document is broken, the corner of the document is Even when the corner of the document does not appear in the prescan result, such as when the image is outside the readable area, the document corner (size, etc.) is estimated by appropriately estimating the corner position of the document. Can do.
尚、本実施例では、原稿台11aの端部が読取可能領域外となっているため、フレーム13aの内側左下角に原稿Pの左下角が正確に突き当てられると、原稿の左エッジ及び下エッジを検出することができない。従って、本実施例では、原稿の傾きが微小量である場合には、右エッジ近似直線のみで、原稿のサイズ等を推定しているが、原稿の傾きがある程度の大きさある場合でも、左エッジや下エッジを正確に検出することができない場合がある。
In this embodiment, since the end portion of the document table 11a is outside the readable area, when the lower left corner of the document P is accurately abutted against the inner lower left corner of the
一方、本実施例では、マークMKで原稿の突き当てを指示しているので、原稿が傾いているとしても、原稿の載置状態が、正しい原稿の載置状態から大きくずれていることは考えにくく、原稿が左側に傾いている場合には、原稿の左下角が原稿台11aとフレーム13aとの境界BDの段差に突き当たっている可能性が高く、原稿が右側に傾いている場合には、原稿の右下角が上記段差に突き当たっている可能性が高い。
On the other hand, in this embodiment, since the mark MK instructs the abutment of the document, it is considered that the document placement state is greatly deviated from the correct document placement state even if the document is tilted. When the original is inclined to the left side, the lower left corner of the original is likely to have hit the step of the boundary BD between the original table 11a and the
このため、本実施例では、原稿が傾いているときであって、右エッジ、左エッジ及び下エッジを正確に検出することができなかったとき、右エッジの検出結果が一番正しいと取り扱うと共に、原稿が左側に傾いている場合には、原稿の左下角が原稿台11aとフレーム13aとの境界の段差に突き当たっているとして、原稿が右側に傾いている場合には、原稿の右下角が上記段差に突き当たっているとして、原稿の左下角位置及び右下角位置を推定するようにした。
For this reason, in this embodiment, when the original is tilted and the right edge, the left edge, and the lower edge cannot be accurately detected, the right edge detection result is treated as the most correct. When the document is tilted to the left, the lower left corner of the document is in contact with the step at the boundary between the document table 11a and the
従って、本実施例によれば、右エッジ、左エッジ及び下エッジを正確に検出することができない場合においても、概ね正しく原稿のサイズや傾き・原稿の載置領域を推定することができる。 Therefore, according to the present embodiment, even when the right edge, the left edge, and the lower edge cannot be accurately detected, it is possible to estimate the document size, inclination, and document placement area almost correctly.
尚、本発明の一部プレスキャン手段は、CPU70が実行するS310の処理及び読取制御部20の処理により実現され、角推定手段は、CPU70が実行するS315の処理及び原稿推定処理(S320)におけるS410〜S485の処理により実現されている。この他、原稿推定手段は、S490〜S497の処理により実現され、読取領域決定手段は、CPU70が実行するS360の処理により実現されている。
The partial pre-scanning means of the present invention is realized by the processing of S310 executed by the
また、本発明の全体プレスキャン手段は、CPU70が実行するS210の処理及び読取制御部20の処理により実現され、副原稿推定手段は、S215,S220の処理により実現され、切替手段は、S110,S130の処理により実現されている。
Further, the whole pre-scanning means of the present invention is realized by the processing of S210 executed by the
また、本発明は、上記実施例に限定されるものではなく、種々の態様を採ることができる。例えば、上記実施例では、コンタクトイメージセンサを読取ユニットとして備えるディジタル複合機1に、本発明を適用した例を説明したが、本発明は、コンタクトイメージセンサを読取ユニットとして備える画像読取装置に限定されるものではないことは言うまでもない。 Further, the present invention is not limited to the above-described embodiments, and can take various forms. For example, in the above-described embodiment, the example in which the present invention is applied to the digital multifunction peripheral 1 including the contact image sensor as a reading unit has been described. However, the present invention is limited to an image reading apparatus including the contact image sensor as a reading unit. Needless to say, it is not something.
この他、上記実施例では、右エッジ近似直線から、原稿の傾き角θを求めるようにしたが(S493)、S493では、第一又は第二角位置推定処理にて推定した原稿の左下角と右下角の位置座標に基づき、当該左下角と右下角を結ぶ線分がX軸となす角度を、原稿の傾き角θとして求めても良い。 In addition, in the above-described embodiment, the document inclination angle θ is obtained from the right edge approximate straight line (S493). In S493, the lower left corner of the document estimated by the first or second angle position estimation process is calculated. Based on the position coordinates of the lower right corner, the angle formed by the line connecting the lower left corner and the lower right corner with the X axis may be obtained as the document inclination angle θ.
1…ディジタル複合機、10…画像読取部、11…読取ガラス、11a…原稿台、13…筐体、13a…フレーム、15…読取ユニット、16…搬送機構、17…モータ、20…読取制御部、30…印刷部、40…印刷制御部、50…表示操作部、60…通信部、70…CPU、80…RAM、90…フラッシュメモリ、MK…マーク、P…原稿、R0…読取可能領域
DESCRIPTION OF
Claims (9)
前記原稿台に沿って搬送される読取ユニットと、
を備え、
前記読取ユニットに、前記原稿台に載置された原稿を読み取らせることにより、前記原稿台に載置された原稿の読取画像を表す画像データを生成する画像読取装置であって、
前記読取ユニットが読取可能な前記原稿台の領域である読取可能領域の内、一部領域において前記読取ユニットを搬送し、前記一部領域において前記読取ユニットに読取動作を実行させる一部プレスキャン手段と、
前記一部プレスキャン手段の動作により得られた前記読取ユニットの読取結果である画像データを、エッジ画像を表すエッジ画像データに変換し、当該エッジ画像データに基づき、前記原稿台に載置された原稿が四角形状であるとの仮定の下で、当該原稿が有する四つ角の内、二つの各角に対応する前記原稿台上の位置座標を推定する角推定手段と、
前記角推定手段の推定結果に基づき、前記原稿台に載置された原稿の状態を推定する原稿推定手段と、
を備えることを特徴とする画像読取装置。 A document table on which a document to be read is placed;
A reading unit conveyed along the document table;
With
An image reading apparatus for generating image data representing a read image of a document placed on the document table by causing the reading unit to read the document placed on the document table,
Partial pre-scanning means for transporting the reading unit in a partial area of the readable area that is an area of the original platen that can be read by the reading unit, and causing the reading unit to perform a reading operation in the partial area. When,
The image data, which is the reading result of the reading unit obtained by the operation of the partial pre-scanning means, is converted into edge image data representing an edge image, and placed on the document table based on the edge image data. Under the assumption that the document has a quadrangular shape, angle estimation means for estimating position coordinates on the document table corresponding to each of two corners of the four corners of the document;
Document estimation means for estimating the state of the document placed on the document table based on the estimation result of the angle estimation means;
An image reading apparatus comprising:
前記一部プレスキャン手段は、前記原稿台における前記特定の角から延びる前記原稿台の一辺を構成する前記原稿台の端縁から、前記原稿台内側に所定距離離れた位置までの領域であって前記読取可能領域に該当する部位を、前記一部領域として、当該領域において、前記読取ユニットを搬送し、前記読取ユニットに読取動作を実行させる構成にされていることを特徴とする請求項1〜請求項3のいずれかに記載の画像読取装置。 The document table has a quadrangular shape, and one specific corner among the four corners is defined as a position where the corners of the document should be aligned,
The partial pre-scanning means is a region from an edge of the document table constituting one side of the document table extending from the specific corner of the document table to a position separated by a predetermined distance on the inside of the document table. The part corresponding to the readable area is defined as the partial area, and the reading unit is transported in the area and the reading unit is configured to perform a reading operation. The image reading apparatus according to claim 3.
前記一部プレスキャン手段は、前記原稿台における前記特定の角から延びる前記原稿台の第一辺を構成する前記原稿台の端縁から、前記原稿台内側に所定距離離れた位置までの領域であって前記読取可能領域に該当する部位を、前記一部領域として、当該領域において、前記読取ユニットを搬送し、前記読取ユニットに読取動作を実行させる構成にされ、
前記角推定手段は、前記前記エッジ画像データが示すエッジ点群の中から、前記原稿台に載置された原稿の三辺に対応するエッジ点群として、前記原稿台の第一辺に沿って配置されるべき前記原稿の第一辺に対応するエッジ点群、及び、前記原稿台における前記特定の角から延びる辺であって前記第一辺とは垂直な第二辺に沿って配置されるべき前記原稿の第二辺に対応するエッジ点群、及び、前記原稿の第二辺に平行な前記原稿の第三辺に対応するエッジ点群を抽出する構成にされていることを特徴とする請求項4記載の画像読取装置。 The document table has a quadrangular shape, and one specific corner among the four corners is defined as a position where the corners of the document should be aligned,
The partial pre-scanning means is a region from the edge of the document table constituting the first side of the document table extending from the specific corner of the document table to a position separated by a predetermined distance inside the document table. The portion corresponding to the readable area is defined as the partial area, the reading unit is transported in the area, and the reading unit is configured to perform a reading operation.
The corner estimation unit is configured to follow the first side of the document table as an edge point group corresponding to three sides of the document placed on the document table from among the edge point groups indicated by the edge image data. The edge point group corresponding to the first side of the original to be arranged, and the side extending from the specific corner on the original table and arranged along the second side perpendicular to the first side The edge point group corresponding to the second side of the original and the edge point group corresponding to the third side of the original parallel to the second side of the original are extracted. The image reading apparatus according to claim 4.
更に、当該画像読取装置は、
前記原稿推定手段により推定された前記原稿の載置領域に対応する前記原稿台上の領域を、前記読取ユニットによる読取領域に決定する読取領域決定手段
を備え、前記読取対象領域決定手段により決定された前記読取領域において、前記読取ユニットを搬送し、前記読取ユニットに読取動作を実行させることにより、前記原稿台に載置された原稿の読取画像を表す画像データを生成することを特徴とする請求項1〜請求項5のいずれかに記載の画像読取装置。 The document estimation means is configured to estimate a placement area of the document placed on the document table on the document table as the state of the document.
Furthermore, the image reading apparatus
A reading area determining means for determining an area on the document table corresponding to the document placement area estimated by the document estimating means as a reading area by the reading unit; In the reading area, image data representing a read image of a document placed on the document table is generated by conveying the reading unit and causing the reading unit to perform a reading operation. The image reading apparatus according to claim 1.
当該画像読取装置は、前記原稿推定手段により推定された傾きの情報に基づき、前記読取ユニットの読取結果である画像データを傾き補正して、前記原稿台に載置された原稿の読取画像を表す画像データを生成することを特徴とする請求項3記載の画像読取装置。 The document estimation unit estimates the size of the document placed on the document table based on the estimation result of the angle estimation unit as the state of the document, and sets edge point groups corresponding to each side of the document. Based on at least one inclination of three straight lines obtained by linear approximation, the inclination of the original placed on the original table with respect to the original table is estimated,
The image reading apparatus represents the read image of the original placed on the original table by correcting the inclination of the image data as the reading result of the reading unit based on the inclination information estimated by the original estimation means. The image reading apparatus according to claim 3, wherein the image data is generated.
前記全体プレスキャン手段の動作により得られた前記読取ユニットの読取結果に基づき、前記原稿台に載置された原稿の状態を推定する副原稿推定手段と、
外部からの指令に従って、前記一部プレスキャン手段及び前記全体プレスキャン手段のいずれか一方を作動させる切替手段と、
を備えることを特徴とする請求項1〜請求項8のいずれかに記載の画像読取装置。 Whole pre-scanning means for transporting the reading unit in the entire readable area of the document table and causing the reading unit to perform a reading operation in the entire readable area of the document table;
Sub-document estimation means for estimating the state of the document placed on the document table based on the reading result of the reading unit obtained by the operation of the overall pre-scanning means;
Switching means for operating one of the partial pre-scan means and the whole pre-scan means in accordance with an external command;
The image reading apparatus according to claim 1, further comprising:
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007340771A JP5205963B2 (en) | 2007-12-28 | 2007-12-28 | Image reading device |
US12/341,963 US8284463B2 (en) | 2007-12-28 | 2008-12-22 | Image reading apparatus |
US12/343,110 US8174737B2 (en) | 2007-12-28 | 2008-12-23 | Image reading apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007340771A JP5205963B2 (en) | 2007-12-28 | 2007-12-28 | Image reading device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009164807A true JP2009164807A (en) | 2009-07-23 |
JP5205963B2 JP5205963B2 (en) | 2013-06-05 |
Family
ID=40966916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007340771A Active JP5205963B2 (en) | 2007-12-28 | 2007-12-28 | Image reading device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5205963B2 (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8427714B2 (en) | 2009-07-30 | 2013-04-23 | Brother Kogyo Kabushiki Kaisha | Image-reading device |
JP2013098720A (en) * | 2011-10-31 | 2013-05-20 | Brother Ind Ltd | Image reader |
JP2013115617A (en) * | 2011-11-29 | 2013-06-10 | Brother Ind Ltd | Image processing device |
JP2013232834A (en) * | 2012-05-01 | 2013-11-14 | Shimoda Oa System Corp | Image processing program, image processing apparatus and image reading apparatus |
JP2014030109A (en) * | 2012-07-31 | 2014-02-13 | Brother Ind Ltd | Image reader |
US8861040B2 (en) | 2011-09-30 | 2014-10-14 | Brother Kogyo Kabushiki Kaisha | Image-reading device and computer-readable storage medium configured to determine document edge from plurality of candidate edge points |
JP2017059990A (en) * | 2015-09-16 | 2017-03-23 | 富士ゼロックス株式会社 | Image reading device and image forming apparatus |
US20220021779A1 (en) * | 2020-07-14 | 2022-01-20 | Canon Kabushiki Kaisha | Image processing apparatus, control method, and storage medium |
US11330115B2 (en) | 2019-11-29 | 2022-05-10 | Brother Kogyo Kabushiki Kaisha | Image scanning device |
US11665296B2 (en) | 2021-06-24 | 2023-05-30 | Brother Kogyo Kabushiki Kaisha | Image reading device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63280569A (en) * | 1987-05-13 | 1988-11-17 | Ricoh Co Ltd | Original position detector |
JPH05145710A (en) * | 1991-11-18 | 1993-06-11 | Sharp Corp | Copying machine |
JPH11122433A (en) * | 1997-10-09 | 1999-04-30 | Ricoh Co Ltd | Picture reading device |
JPH11177774A (en) * | 1997-12-15 | 1999-07-02 | Minolta Co Ltd | Detector for original |
JPH11187207A (en) * | 1997-12-19 | 1999-07-09 | Ricoh Co Ltd | Image reader |
JP2001268367A (en) * | 2000-03-22 | 2001-09-28 | Minolta Co Ltd | Image scanning apparatus |
JP2002142084A (en) * | 2000-10-31 | 2002-05-17 | Pfu Ltd | Image reader |
JP2003283766A (en) * | 2002-03-22 | 2003-10-03 | Ricoh Co Ltd | Image input apparatus |
JP2004282517A (en) * | 2003-03-17 | 2004-10-07 | Sharp Corp | Original reader |
-
2007
- 2007-12-28 JP JP2007340771A patent/JP5205963B2/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63280569A (en) * | 1987-05-13 | 1988-11-17 | Ricoh Co Ltd | Original position detector |
JPH05145710A (en) * | 1991-11-18 | 1993-06-11 | Sharp Corp | Copying machine |
JPH11122433A (en) * | 1997-10-09 | 1999-04-30 | Ricoh Co Ltd | Picture reading device |
JPH11177774A (en) * | 1997-12-15 | 1999-07-02 | Minolta Co Ltd | Detector for original |
JPH11187207A (en) * | 1997-12-19 | 1999-07-09 | Ricoh Co Ltd | Image reader |
JP2001268367A (en) * | 2000-03-22 | 2001-09-28 | Minolta Co Ltd | Image scanning apparatus |
JP2002142084A (en) * | 2000-10-31 | 2002-05-17 | Pfu Ltd | Image reader |
JP2003283766A (en) * | 2002-03-22 | 2003-10-03 | Ricoh Co Ltd | Image input apparatus |
JP2004282517A (en) * | 2003-03-17 | 2004-10-07 | Sharp Corp | Original reader |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8427714B2 (en) | 2009-07-30 | 2013-04-23 | Brother Kogyo Kabushiki Kaisha | Image-reading device |
US8861040B2 (en) | 2011-09-30 | 2014-10-14 | Brother Kogyo Kabushiki Kaisha | Image-reading device and computer-readable storage medium configured to determine document edge from plurality of candidate edge points |
JP2013098720A (en) * | 2011-10-31 | 2013-05-20 | Brother Ind Ltd | Image reader |
JP2013115617A (en) * | 2011-11-29 | 2013-06-10 | Brother Ind Ltd | Image processing device |
JP2013232834A (en) * | 2012-05-01 | 2013-11-14 | Shimoda Oa System Corp | Image processing program, image processing apparatus and image reading apparatus |
JP2014030109A (en) * | 2012-07-31 | 2014-02-13 | Brother Ind Ltd | Image reader |
JP2017059990A (en) * | 2015-09-16 | 2017-03-23 | 富士ゼロックス株式会社 | Image reading device and image forming apparatus |
US11330115B2 (en) | 2019-11-29 | 2022-05-10 | Brother Kogyo Kabushiki Kaisha | Image scanning device |
US20220021779A1 (en) * | 2020-07-14 | 2022-01-20 | Canon Kabushiki Kaisha | Image processing apparatus, control method, and storage medium |
US11665296B2 (en) | 2021-06-24 | 2023-05-30 | Brother Kogyo Kabushiki Kaisha | Image reading device |
Also Published As
Publication number | Publication date |
---|---|
JP5205963B2 (en) | 2013-06-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5205963B2 (en) | Image reading device | |
US8174737B2 (en) | Image reading apparatus | |
JP4678278B2 (en) | Double-sided simultaneous reading device | |
JP4952576B2 (en) | Image reading device | |
US8284463B2 (en) | Image reading apparatus | |
JPH04313958A (en) | Picture processor | |
JP4941316B2 (en) | Image reading device | |
JP4888439B2 (en) | Image reading apparatus and original size determination program | |
JP6885111B2 (en) | Image processing equipment and image forming equipment | |
JP2010074753A (en) | Image reading apparatus | |
JP4924416B2 (en) | Image reading device | |
JP4858437B2 (en) | Image reading device | |
WO2017056799A1 (en) | Image-reading device and image-forming device | |
JP4924417B2 (en) | Image analysis device | |
JP4998257B2 (en) | Image reading device | |
JP4952575B2 (en) | Image reading device | |
US7545524B2 (en) | Method of controlling operation of image sensor | |
JP4941317B2 (en) | Image reading device | |
JP2012142712A (en) | Printing device and printing method | |
JP4016774B2 (en) | Document reader | |
JP7211118B2 (en) | Reading system and reading method | |
JP4507923B2 (en) | Translation device | |
JP6606957B2 (en) | Copy machine and control program | |
JP2023116052A (en) | Image reading apparatus | |
JP6327225B2 (en) | Facsimile device and facsimile system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100212 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110722 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110823 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20111024 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120228 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120501 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121002 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121203 |
|
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: 20130122 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130204 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160301 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5205963 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |