JP4952575B2 - Image reading device - Google Patents
Image reading device Download PDFInfo
- Publication number
- JP4952575B2 JP4952575B2 JP2007340770A JP2007340770A JP4952575B2 JP 4952575 B2 JP4952575 B2 JP 4952575B2 JP 2007340770 A JP2007340770 A JP 2007340770A JP 2007340770 A JP2007340770 A JP 2007340770A JP 4952575 B2 JP4952575 B2 JP 4952575B2
- Authority
- JP
- Japan
- Prior art keywords
- document
- edge
- reading
- accuracy
- 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.)
- Expired - Fee Related
Links
- 238000011156 evaluation Methods 0.000 claims description 23
- 238000000605 extraction Methods 0.000 claims description 6
- 238000000034 method Methods 0.000 description 190
- 238000007689 inspection Methods 0.000 description 92
- 238000012545 processing Methods 0.000 description 46
- 238000003708 edge detection Methods 0.000 description 42
- 239000011521 glass Substances 0.000 description 29
- 238000001514 detection method Methods 0.000 description 17
- 238000012937 correction Methods 0.000 description 16
- 230000006870 function Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 12
- 230000002411 adverse Effects 0.000 description 9
- 230000002093 peripheral effect Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000012840 feeding operation Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000003705 background correction Methods 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
Images
Landscapes
- Facsimile Scanning Arrangements (AREA)
- Image Analysis (AREA)
- Holders For Sensitive Materials And Originals (AREA)
- Optical Systems Of Projection Type Copiers (AREA)
- Image Input (AREA)
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 conveying the reading unit and causing the reading unit to read an image on a 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.
画像読取装置がコピー機能を有するものである場合、上記生成された画像データは、例えば、印刷処理に供される。即ち、読取画像を表す画像データが印刷処理に供されることで、記録紙には、読み取られた原稿のコピー画像が印刷される。このような、コピー機能を有する画像読取装置としては、コピー機能の他、プリンタ機能やファックス(FAX)機能などを有したディジタル複合機が知られている。 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 (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〜4参照)。
In addition, an image reading apparatus that detects the size of a document based on the result of reading the document by a reading unit is known. Specifically, there is known a technique for detecting an edge of a document from a reading result and detecting a document size from the detection result (see
このようにして得られる原稿サイズの検出結果は、例えば、本スキャン時の読取領域の自動設定動作や、コピー時の変倍率の自動設定動作に用いられる。例えば、検出した原稿サイズと記録紙サイズとから、原稿サイズと記録紙サイズの比に合わせて、変倍率を設定し、設定した変倍率に合わせて、読取画像を拡大/縮小し、原稿のコピー画像を、記録紙に、その用紙サイズに合わせた倍率で印刷するといった具合である。
しかしながら、読取ユニットによる原稿の読取結果に基づいて、原稿サイズを検出する方法では、原稿内の罫線等を原稿エッジであると誤検出する可能性があるといった問題があった。 However, the method of detecting the document size based on the result of reading the document by the reading unit has a problem that a ruled line in the document may be erroneously detected as the document edge.
原稿エッジの検出方法としては、読取ユニットで読み取った読取画像データを、画像フィルタ(所謂微分フィルタ)に通して、読取画像データを、エッジ画像を表すエッジ画像データに変換し、このエッジ画像データから、原稿の外縁である原稿エッジを検出する方法が知られているが、読取画像データを画像フィルタに通した場合には、原稿の外縁でエッジ点の連続するパターンが検出される他、原稿内の罫線がある地点においても、原稿の外縁と似た連続するエッジ点のパターンが検出される。 As a method for detecting a document edge, read image data read by a reading unit is passed through an image filter (so-called differential filter), and the read image data is converted into edge image data representing an edge image. A method for detecting the document edge, which is the outer edge of the document, is known. However, when the scanned image data is passed through an image filter, a continuous pattern of edge points is detected at the outer edge of the document. Even at the point where there is a ruled line, a pattern of continuous edge points similar to the outer edge of the document is detected.
一方で、読取対象の原稿については、必ずしも、その原稿の全てが原稿台の読取可能領域内に収まっているとは限らない。例えば、ユーザによる原稿の置き方が雑であったために、原稿の端が読取可能領域から外れてしまう場合や、新聞等のように読取対象の原稿が大きすぎて、原稿の端が読取可能領域に収まらない場合等がある。 On the other hand, the document to be read does not necessarily have to be entirely within the readable area of the document table. For example, when the user places the document in a complicated manner, the edge of the document is out of the readable area, or the document to be read is too large, such as a newspaper, and the edge of the document is readable. May not fit in.
従って、原稿の端が読み取られていないのにも拘わらず、読取結果のエッジ画像データから原稿エッジを検出して、原稿サイズを検出しようとすると、原稿サイズを誤検出してしまうことになる。そして、このような原稿サイズの誤検出が発生した場合には、例えば、変倍率の設定ミスが生じて、コピー機能が上手く働かない事態が生じる。 Therefore, if the document edge is detected from the edge image data as a result of reading even though the edge of the document is not read, the document size is erroneously detected. If such an erroneous detection of the document size occurs, for example, a variable magnification setting error occurs and the copy function does not work well.
本発明は、こうした問題に鑑みなされたものであり、画像読取装置において、原稿エッジの誤検出により、検出結果を用いた後続の処理(コピー動作等)に、悪影響が及ぶのを抑えることを目的とする。 The present invention has been made in view of these problems, and an object of the present invention is to suppress an adverse effect on subsequent processing (such as a copying operation) using a detection result due to erroneous detection of an original edge in an image reading apparatus. And
かかる目的を達成するためになされた請求項1記載の発明は、読取対象の原稿が載置される透明な原稿台下において読取ユニットを搬送し、原稿台に写る画像を、読取ユニットに読み取らせることにより、原稿台に載置された原稿の読取画像を表す画像データを生成する画像読取装置であって、抽出手段と、外縁認識手段と、確度評価手段と、を備えるものである。
In order to achieve this object, the invention according to
抽出手段は、読取ユニットの読取結果である画像データを、エッジ画像を表すエッジ画像データに変換し、当該エッジ画像データの中から、原稿台に載置された原稿の辺に対応するエッジ点群として推定されるエッジ点群を抽出する。 Extraction means, read image data is a result of reading unit and converted into an edge image data representing an edge image, from among the edge image data, the edge points corresponding to the edges of the document placed on the original manuscript platform The edge point group estimated as a group is extracted.
一方、外縁認識手段は、抽出手段により抽出された原稿の各辺に対応するエッジ点群を直線近似することにより原稿の外縁を認識し、確度評価手段は、外縁認識手段により認識された外縁の確度の高低を評価する。 On the other hand, the outer edge recognizing means recognizes the outer edge of the original by linearly approximating the edge point group corresponding to each side of the original extracted by the extracting means, and the accuracy evaluating means determines the outer edge recognized by the outer edge recognizing means. Evaluate the level of accuracy.
具体的に、本発明の画像読取装置において、原稿台端縁の特定部位は、原稿の辺を合わせるべき基準線として定められており、確度評価手段は、外縁認識手段により認識された原稿の外縁と、基準線との位置関係に基づき、外縁認識手段により認識された外縁の確度の高低を評価する。 Specifically, in the image reading apparatus of the present invention, the specific portion of the document table edge is defined as a reference line to which the sides of the document are to be aligned, and the accuracy evaluation means is the document outer edge recognized by the outer edge recognition means. The accuracy of the accuracy of the outer edge recognized by the outer edge recognition means is evaluated based on the positional relationship with the reference line.
画像読取装置の構成としては、外縁認識手段により認識された原稿の外縁の情報に基づき、原稿サイズや原稿の傾き、原稿台における原稿の載置領域を推定し、これらの情報に基づき、本スキャンを実行する構成や、読取結果から原稿のデータを抽出し出力する構成などが考えられるが、このような構成の画像読取装置においては、外縁認識手段が原稿の外縁を誤認識しているにも関わらず、後続の処理を実行すると、その後続の処理にも誤りが生じて、ユーザの所望する処理結果が得られない。 The configuration of the image reading apparatus is based on information on the outer edge of the original recognized by the outer edge recognition means, estimating the original size, the inclination of the original, and the area on which the original is placed on the original table. In the image reading apparatus having such a configuration, the outer edge recognition unit erroneously recognizes the outer edge of the document. Regardless, if the subsequent process is executed, an error also occurs in the subsequent process, and the process result desired by the user cannot be obtained.
従って、外縁認識手段が誤認識をしていると推定される場合には、後続処理の内容を切り替えたり、誤認識の可能性があることをユーザに報知するのが好ましいが、従来では、その誤認識を判定する術がないため、後続処理に悪影響を与える結果となっていた。 Therefore, when it is presumed that the outer edge recognition means is misrecognizing, it is preferable to switch the contents of subsequent processing or notify the user that there is a possibility of misrecognition. Since there is no way to determine misrecognition, the subsequent processing is adversely affected.
そこで、本発明では、確度評価手段を設けて、外縁認識手段により認識された原稿の外縁と、基準線との位置関係に基づき、外縁認識手段により認識された外縁の確度の高低を評価するようにしている。 Therefore, in the present invention, accuracy evaluation means is provided to evaluate the accuracy of the accuracy of the outer edge recognized by the outer edge recognition means based on the positional relationship between the outer edge of the document recognized by the outer edge recognition means and the reference line. I have to.
本発明のように、原稿の辺を合わせるべき基準線を定めて、原稿の辺を原稿台の端縁(基準線)に合わせるようにユーザに指示すると、その原稿台の端縁に合わせられる原稿の辺が、原稿台の読取可能領域からはみ出たりして、読み取り辛くなり、エッジ画像データにより原稿の辺に対応するエッジ点群を抽出する際、誤って、原稿内に描写された罫線等に対応するエッジ点群を、原稿の辺に対応するエッジ点群として抽出してしまう可能性がある。そして、この場合には、当然のことながら、外縁認識手段により原稿の外縁が誤認識されてしまうことになる。 As in the present invention, when a reference line for aligning the sides of the document is determined and the user is instructed to align the sides of the document with the edge (reference line) of the document table, the document to be aligned with the edge of the document table When the edge point group corresponding to the side of the document is extracted from the edge image data by mistake, the side of the image will be out of the readable area of the document table. There is a possibility that the corresponding edge point group is extracted as the edge point group corresponding to the side of the document. In this case, as a matter of course, the outer edge recognition unit erroneously recognizes the outer edge of the document.
しかしながら、このような場合には、大抵、誤認識された原稿の外縁が基準線から大きく離れた位置に現れる。このような理由から、本発明では、上述の手法で、外縁認識手段により認識された外縁の確度の高低を評価するようにしているのである。 However, in such a case, the outer edge of the erroneously recognized document usually appears at a position far away from the reference line. For this reason, in the present invention, the accuracy of the outer edge recognized by the outer edge recognition means is evaluated by the above-described method.
このような手法で外縁認識手段により認識された外縁の確度の高低を評価すれば、外縁の確度を、正確に評価することができ、外縁認識手段が誤認識している場合には、後続処理の内容を切り替えることができる。従って、この発明によれば、誤認識が後続処理に及ぼす悪影響を抑え、誤認識による不満の及びにくい画像読取装置をユーザに提供することができる。 If the accuracy of the outer edge recognized by the outer edge recognition means is evaluated by such a method, the accuracy of the outer edge can be accurately evaluated. If the outer edge recognition means is erroneously recognized, the subsequent processing is performed. The contents of can be switched. Therefore, according to the present invention, it is possible to suppress an adverse effect of erroneous recognition on subsequent processing, and to provide a user with an image reading apparatus that is less likely to be frustrated by erroneous recognition.
尚、上述の確度評価手段は、外縁認識手段により認識された基準線に対向する原稿の外縁が、基準線に対し所定量以上離れているか否かの条件判断により、確度を評価する構成にすることができる。具体的に、確度評価手段は、基準線に対向する原稿の外縁が基準線に対し所定量以上離れている場合、確度が低いと評価し、基準線に対向する原稿の外縁が基準線に対して所定量以上離れていない場合、確度が高いと評価する構成にすることができる(請求項2)。 The accuracy evaluation unit described above is configured to evaluate the accuracy by determining whether or not the outer edge of the document facing the reference line recognized by the outer edge recognition unit is a predetermined amount or more away from the reference line. be able to. Specifically, the accuracy evaluation means evaluates that the accuracy is low when the outer edge of the document facing the reference line is more than a predetermined amount away from the reference line, and the outer edge of the document facing the reference line is lower than the reference line. When the distance is not more than a predetermined amount, it can be configured to evaluate that the accuracy is high (claim 2).
また、原稿台が、四角形状にされ、当該原稿台が有する四辺の内、特定の角から互いに直交する方向に延びる二辺が、夫々、上記基準線に定められた画像読取装置においては、次のように確度評価手段を構成することができる。 Further, in the image reading apparatus in which the document table has a quadrangular shape, and two sides extending in a direction orthogonal to each other from a specific corner among the four sides of the document table are respectively defined as the reference line, Thus, the accuracy evaluation means can be configured.
即ち、確度評価手段は、二つの基準線の夫々について、当該基準線に対向する外縁認識手段により認識された原稿の外縁が、基準線に対し所定量以上離れているか否かを判断し、上記二つの基準線の両者について、原稿の外縁が基準線に対し所定量以上離れていないと判断した場合には、確度が高いと評価し、上記二つの基準線のいずれか一方について、原稿の外縁が基準線に対し所定量以上離れていると判断した場合には、確度が低いと評価する構成にすることができる(請求項3)。 That is, the accuracy evaluation unit determines, for each of the two reference lines, whether or not the outer edge of the document recognized by the outer edge recognition unit facing the reference line is a predetermined amount or more away from the reference line. If it is determined that the outer edge of the document is not more than a predetermined amount away from the reference line for both of the two reference lines, it is evaluated that the accuracy is high, and the outer edge of the document is determined for one of the two reference lines. When it is determined that is more than a predetermined amount away from the reference line, the accuracy can be evaluated to be low (claim 3).
この画像読取装置によれば、一層高精度に、外縁認識手段が認識した外縁(辺)の確度を評価することができる。
更に、上述の画像読取装置(請求項1〜請求項3)は、次のように構成することができる。即ち、上述の画像読取装置は、読取ユニットが読取可能な原稿台の領域である読取可能領域であって、四角形状にされた原稿台が有する四辺の内、基準線に定められた一辺から、原稿台内側に所定距離離れた位置までの方形領域に属する読取可能領域の一部領域において、読取ユニットを搬送し、当該一部領域において読取ユニットに読取動作を実行させるプレスキャン手段を備え、抽出手段が、プレスキャン手段の動作によって得られた読取ユニットの読取結果である画像データを、エッジ画像を表すエッジ画像データに変換し、当該エッジ画像データの中から、原稿台に載置された原稿の辺に対応するエッジ点群として推定されるエッジ点群を抽出する構成にすることができる(請求項4)。
According to this image reading apparatus, the accuracy of the outer edge (side) recognized by the outer edge recognition unit can be evaluated with higher accuracy.
Further, the above-described image reading apparatus (
画像読取装置としては、原稿の一部領域のみを読み取って、その読取結果から原稿サイズ等を推定する構成が考えられるが、原稿の全体像が写っていない画像データに基づいて、原稿の外縁を認識する場合には、原稿全体を読み取って、その読取結果から原稿の外縁を認識する手法よりも、その精度が劣る。 As an image reading apparatus, a configuration in which only a partial area of a document is read and the size of the document is estimated from the read result can be considered, but the outer edge of the document is determined based on image data in which the entire image of the document is not captured. In the case of recognition, the accuracy is inferior to the method of reading the entire original and recognizing the outer edge of the original from the read result.
従って、このような画像読取装置に、本発明の概念を適用すれば、誤認識による問題を、処理の切り替え等により緩和することができ、利便性の高い画像読取装置をユーザに提供することができる。 Therefore, if the concept of the present invention is applied to such an image reading apparatus, the problem due to misrecognition can be alleviated by switching processing, and a highly convenient image reading apparatus can be provided to the user. it can.
また、上述の画像読取装置には、確度評価手段により確度が高いと評価されると、外縁認識手段により認識された原稿の外縁から原稿台に載置された原稿のサイズを推定するが、確度評価手段により確度が低いと評価されると、原稿台に載置された原稿のサイズが、予め定められた所定サイズであると推定する原稿サイズ推定手段を設けるとよい(請求項5)。特に、原稿サイズ推定手段は、確度評価手段により確度が低いと評価されると推定される原稿サイズを、ユーザの指示に従って切り替えられる構成にされると一層好ましい。 The image reading apparatus estimates the size of the document placed on the document table from the outer edge of the document recognized by the outer edge recognition unit when the accuracy evaluation unit evaluates that the accuracy is high. If the evaluation means evaluates that the accuracy is low, it is preferable to provide document size estimation means for estimating that the size of the document placed on the document table is a predetermined size. In particular, it is more preferable that the manuscript size estimation unit is configured to switch the manuscript size estimated to be evaluated as having low accuracy by the accuracy evaluation unit in accordance with a user instruction.
確度評価手段が評価した確度の高低により、原稿サイズの推定手法を、このように切り替えるように、画像読取装置を構成すれば、外縁認識手段の誤認識が及ぼす後続処理への悪影響を抑えることができる。 If the image reading apparatus is configured so that the document size estimation method is switched in this way depending on the level of accuracy evaluated by the accuracy evaluation unit, it is possible to suppress adverse effects on subsequent processing caused by erroneous recognition of the outer edge recognition unit. it can.
例えば、外縁認識手段による認識結果の確度が低い場合でも、その認識結果に基づいて原稿サイズを推定する場合には、真の原稿サイズに対して原稿サイズ推定手段がどのように原稿サイズを推定するのかについて予測不能であり、その推定結果が後続処理に及ぼす影響をコントロールできないが、外縁認識手段による認識結果の確度が低い場合に、その認識結果に基づいて原稿サイズを推定せずに、原稿サイズを、特定の原稿サイズであると推定すれば、その推定結果が真の原稿サイズに一致しているか否かに関わらず、当該推定結果が後続処理に及ぼす影響をコントロールできる。 For example, even when the accuracy of the recognition result by the outer edge recognition unit is low, when the document size is estimated based on the recognition result, how the document size estimation unit estimates the document size with respect to the true document size. However, if the accuracy of the recognition result by the outer edge recognition means is low, the document size is not estimated based on the recognition result. Is estimated to be a specific document size, the influence of the estimation result on the subsequent processing can be controlled regardless of whether or not the estimation result matches the true document size.
従って、この発明によれば、原稿サイズの推定結果が正しいか否かに依らず、外縁認識手段の誤認識が、後続処理に及ぼす影響を抑えることができるのである。具体的に、プレスキャンにより得られた原稿外縁の認識結果の確度が低い場合に、原稿台に載置された原稿のサイズが最大サイズであると推定すれば、読取領域を自動設定する画像読取装置において、本スキャン時の読取領域が、外縁認識手段の誤認識により正しい読取領域よりも狭くなるのを防止することができる。結果、本スキャン時において、ユーザが所望する原稿の画像全体を、正しく読み取ることができる。 Therefore, according to the present invention, regardless of whether or not the document size estimation result is correct, it is possible to suppress the influence of the erroneous recognition of the outer edge recognition means on the subsequent processing. Specifically, when the accuracy of the recognition result of the document outer edge obtained by the pre-scan is low, if the size of the document placed on the document table is estimated to be the maximum size, the image reading that automatically sets the reading area is performed. In the apparatus, it is possible to prevent the reading area at the time of the main scan from becoming narrower than the correct reading area due to erroneous recognition by the outer edge recognition unit. As a result, the entire image of the original desired by the user can be read correctly during the main scan.
また、確度評価手段により確度が低いと評価される場合に原稿サイズ推定手段により推定する原稿サイズを、ユーザの指示に従って切り替えられるように、画像読取装置を構成すれば、ユーザに、誤認識による悪影響の一番少ない原稿サイズを指定させることができて、外縁認識手段の誤認識が及ぼす後続処理への悪影響を効果的に抑えることができる。 Further, if the image reading apparatus is configured so that the document size estimated by the document size estimation unit can be switched according to the user's instruction when the accuracy evaluation unit evaluates that the accuracy is low, the user is adversely affected by the erroneous recognition. Therefore, the adverse effect on the subsequent processing caused by the erroneous recognition of the outer edge recognition means can be effectively suppressed.
この他、一部領域のプレスキャンにて原稿の外縁を認識する場合には、次のように、画像読取装置を構成して、原稿サイズの推定を行うとよい。
即ち、抽出手段は、原稿台に載置された原稿の三辺の夫々について、エッジ画像データの中から、この辺に対応するエッジ点群として推定されるエッジ点群を抽出する構成にされ、外縁認識手段は、抽出手段により抽出された各辺に対応するエッジ点群を直線近似して得られる三本の直線が交わる二つの交点を、原稿台に載置された原稿の角であると認識する構成にされるのがよい。
In addition, when recognizing the outer edge of the document by pre-scanning of a partial area, it is preferable to configure the image reading apparatus and estimate the document size as follows.
That is, the extraction means is configured to extract an edge point group estimated as an edge point group corresponding to this side from the edge image data for each of the three sides of the document placed on the document table. The recognizing unit recognizes two intersection points where three straight lines obtained by linear approximation of the edge point group corresponding to each side extracted by the extracting unit are corners of the document placed on the document table. It is good to be configured to do.
また、原稿サイズ推定手段は、確度評価手段により確度が高いと評価されると、原稿台に載置された原稿が定型の用紙であるとの仮定の下で、外縁認識手段により原稿の角であると認識された二つの交点間の距離に基づき、原稿台に載置された原稿のサイズを推定するが、確度評価手段により確度が低いと評価されると、原稿台に載置された原稿のサイズが、予め定められた所定サイズであると推定する構成にされるのがよい(請求項6)。 Further, when the accuracy evaluation unit evaluates that the accuracy is high, the manuscript size estimation unit assumes that the manuscript placed on the manuscript table is a standard sheet, and the outer edge recognition unit uses the corner of the manuscript. The size of the document placed on the document table is estimated based on the distance between the two intersections recognized as being, but if the accuracy evaluation means that the accuracy is low, the document placed on the document table It is preferable that the size is estimated to be a predetermined size (claim 6).
このように画像読取装置を構成すれば、一部領域のプレスキャン結果からでも、原稿サイズとして、原稿の縦幅及び横幅の両方を導出することができ、一部領域のプレスキャン結果から、原稿台に載置された原稿全体の外形を概ね正確に把握することができる。 If the image reading apparatus is configured in this manner, both the vertical and horizontal widths of the document can be derived as the document size even from the pre-scan result of the partial area, and the original can be derived from the pre-scan result of the partial area. The outline of the entire document placed on the table can be grasped almost accurately.
また、上述した原稿サイズ推定手段に関する発明は、原稿サイズ推定手段により推定された原稿サイズの情報に基づき、読取ユニットによる読取領域を決定する読取領域決定手段と、読取対象領域決定手段により決定された読取領域において、読取ユニットを搬送し、読取ユニットに読取動作を実行させることにより、原稿台に載置された原稿の読取画像を表す画像データを生成する本スキャン手段と、を備える画像読取装置に適用することができる(請求項7)。 The invention relating to the document size estimation means described above is determined by the reading area determination means for determining the reading area by the reading unit and the reading target area determination means based on the document size information estimated by the document size estimation means. An image reading apparatus comprising: a main scanning unit configured to generate image data representing a read image of a document placed on a document table by conveying the reading unit in the reading region and causing the reading unit to perform a reading operation. It can be applied (claim 7).
このようにして本スキャンを実行する画像読取装置では、外縁認識手段の誤認識が最終的に読取領域の設定に悪影響を及ぼす可能性があるが、本発明では、外縁認識手段の認識結果の確度が低い場合、原稿サイズを固定サイズに推定するので、外縁認識手段の誤認識が読取領域の設定に悪影響を及ぼすのを従来よりも抑えることができる。 In the image reading apparatus that performs the main scan in this way, erroneous recognition by the outer edge recognition unit may ultimately have an adverse effect on the setting of the reading area. However, in the present invention, the accuracy of the recognition result of the outer edge recognition unit Is low, the document size is estimated to be a fixed size, so that it is possible to suppress the erroneous recognition of the outer edge recognition means from adversely affecting the setting of the reading area.
以下に本発明の実施例について、図面と共に説明する。
図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に入力される。
Note that 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を「フレーム」と表現する。)。
The reading
また、画像読取部10においては、読取ユニット15のライン幅と、原稿台11aの大きさとの関係から、四角形状の原稿台11aの全領域よりも若干狭い四角形状の領域R0が、読取ユニット15により原稿を読取可能な読取可能領域R0に定められている。具体的に、読取可能領域R0は、図2において点線で示すように、フレーム13aと読取ガラス11との境界BDから微小量(本実施例では3mm)離れた位置に外周を有した領域となっている。
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に示す自動変倍複写処理を実行する。その後、当該複写制御処理を終了する。
When the copy control process is started, the
一方、操作キーを通じて入力されたコピー指令が、「自動変倍/傾き補正」コピー指令以外のコピー指令であると判断すると(例えば、自動変倍や傾き補正の指示のないノーマルなコピー指令であると判断すると)、CPU70は、S130にて、入力されたコピー指令に対応した処理を実行した後、当該複写制御処理を終了する。
On the other hand, if it is determined that the copy command input through the operation key is a copy command other than the “automatic scaling / tilt correction” copy command (for example, a normal copy command without an automatic scaling or tilt correction instruction). In step S130, the
続いて、CPU70がS120にて実行する自動変倍複写処理について説明する。図4は、CPU70が実行する自動変倍複写処理を表すフローチャートである。
CPU70は、S120にて自動変倍複写処理を開始すると、まず、原稿読取開始位置を、読取可能領域R0の下端(Y=0)に設定し、原稿読取終了位置を、設計段階で予め定められた読取可能領域R0の下端から所定距離離れた位置(Y=YPRE)に設定することにより、上記原稿読取開始位置から原稿読取終了位置までの領域に該当する読取可能領域R0の一部を、読取領域に設定し、読取制御部20を通じて、画像読取部10に、当該読取領域に対するプレスキャン動作を実行させる(S210:先端部プレスキャン処理)。
Next, the automatic scaling copying process executed by the
When the
即ち、S210では、読取可能領域R0全体に対してプレスキャン動作を画像読取部10に実行させるのではなく、読取可能領域R0の下端から読取可能領域R0内側へ所定距離離れた地点まで(本実施例では、読取可能領域R0の下端から30mm離れた地点まで)に対し、プレスキャン動作を画像読取部10に実行させる。これにより、CPU70は、プレスキャン結果として、読取可能領域R0の一部領域の読取結果を表す画像データを画像読取部10から取得する。
That is, in S210, the pre-scanning operation is not performed on the entire readable area R0 by the
尚、画像読取部10は、プレスキャン動作として、設定された読取領域の端から端まで、プレスキャン用の解像度に対応する速度で、読取ユニット15を副走査方向に搬送し、その読取領域の画像を読取ユニット15に読み取らせ、プレスキャン結果として、低解像度の画像データ(以下、「プレスキャン画像データ」という。)を、読取制御部20を通じて、RAM80に記録する動作を実行する。
As a pre-scan operation, the
このようにしてS210での処理を終えると、CPU70は、RAM80に記録されたプレスキャン画像データに対してエッジ検出処理を実行し、この画像データに対応するエッジ画像データを生成する(S215)。即ち、RAM80に記録されたプレスキャン画像データを、エッジ検出用の画像フィルタ(周知の微分フィルタ)に通して、この画像データに対応するエッジ画像を表すエッジ画像データを生成する。
When the processing in S210 is completed in this way, the
また、S215での処理を終えると、CPU70は、上記生成したエッジ画像データを、検査対象データに設定して、図5に示す原稿推定処理を実行する(S220)。詳細は後述するが、この原稿推定処理では、検査対象データ(S215で得られたエッジ画像データ)を解析して、原稿台11aに載置された原稿のサイズ(縦幅及び横幅)、及び、原稿の傾き角θ、及び、原稿台11aにおける原稿の載置領域を推定する。
When the process in S215 is completed, the
具体的には、原稿台11aに載置された原稿が四角形状であるとの仮定の下で、原稿台11aに載置された原稿のエッジを検査対象データにおいて検出すると共に、その検出結果から原稿の左下角位置及び右下角位置を推定して検査対象データにおける原稿の画像を表す領域(以下、「原稿領域」と表現する。)を推定し、原稿台11aの左端縁(左辺)からの原稿領域の乖離度及び原稿台11aの下端縁(下辺)からの原稿領域の乖離度に基づいて、推定した原稿領域の確度を評価する。 Specifically, under the assumption that the document placed on the document table 11a has a square shape, the edge of the document placed on the document table 11a is detected in the inspection target data, and the detection result is used. By estimating the lower left corner position and the lower right corner position of the original, an area representing the original image in the inspection target data (hereinafter referred to as “original area”) is estimated, and from the left edge (left side) of the original table 11a. The estimated accuracy of the document area is evaluated based on the degree of deviation of the document area and the degree of deviation of the document area from the lower edge (lower side) of the document table 11a.
尚、本実施例では、X軸が原稿台11aの下端縁から原稿台11a内側に所定量(3mm)離れた地点に設定され、Y軸が原稿台11aの左端縁から原稿台11a内側に同量(3mm)離れた地点に設定されているので、原稿台11aの左端縁からの原稿領域の乖離度として、Y軸からの原稿領域の距離D1を求めると共に、原稿台11aの下端縁からの原稿領域の乖離度として、X軸からの原稿領域の距離D2を求め、この距離の情報から、推定した原稿領域の確度を評価する(図12参照)。 In this embodiment, the X axis is set at a predetermined distance (3 mm) from the lower edge of the document table 11a to the inside of the document table 11a, and the Y axis is the same from the left edge of the document table 11a to the document table 11a. Since the distance (3 mm) is set, the distance D1 of the document area from the Y-axis is obtained as the degree of divergence of the document area from the left edge of the document table 11a, and from the lower edge of the document table 11a. The distance D2 of the document area from the X axis is obtained as the degree of deviation of the document area, and the estimated accuracy of the document area is evaluated from this distance information (see FIG. 12).
そして、原稿領域の確度が高い場合には、上記推定した角位置の情報から、原稿台11aに載置された原稿が定型用紙であるとの仮定の下で、当該原稿台11aに載置された原稿のサイズ、及び、原稿の傾き角θ、及び、原稿台11aにおける原稿の載置領域を推定する。但し、ここでは、X軸に対して原稿の下辺がなす角度を、原稿の傾き角θ(図8参照)とする。 When the accuracy of the document area is high, the document is placed on the document table 11a under the assumption that the document placed on the document table 11a is a standard sheet based on the estimated angular position information. The size of the original, the inclination angle θ of the original, and the original placement area on the original table 11a are estimated. However, here, the angle formed by the lower side of the document with respect to the X-axis is the document inclination angle θ (see FIG. 8).
一方、原稿領域の確度が低い場合や、原稿エッジを正常に検出できなかった場合には、原稿台11aに載置された原稿が予め定められた固定サイズの原稿であると推定する。S220では、このような内容の処理を実行する。 On the other hand, when the accuracy of the document area is low, or when the document edge cannot be detected normally, it is estimated that the document placed on the document table 11a is a document of a predetermined fixed size. In S220, processing with such contents is executed.
そして、S220での処理を終えると、CPU70は、印刷制御部40を通じて、印刷部30に給紙動作を実行させると共に(S230)、給紙動作の対象となった記録紙のサイズを検出する(S235)。尚、記録紙のサイズは、例えば、記録紙の搬送路に設けられたセンサを用いて周知の手法で検出することができる。
When the processing in S220 is completed, the
また、この処理を終えると、CPU70は、直前の原稿推定処理(S220)にて、原稿エッジの検出に失敗したことを原因として、S431(図5参照)又はS471で「失敗」判定がなされたか否かを判断する(S240)。そして、「失敗」判定がなされたと判断すると(S240でYes)、S261に移行する。一方、直前の原稿推定処理(S220)にて「失敗」判定がなされていないと判断すると(S240でNo)、S245に移行する。
When this process is finished, the
また、S245では、直前の原稿推定処理にて「確度高」判定がなされたか否かを判断する(S245)。原稿推定処理では、上述したように、推定した原稿領域の確度の高低に応じて、原稿サイズの推定方法を切り替える。ここでは、原稿領域の確度が低く、原稿サイズが固定サイズに推定された状態であるか否かを、直前の原稿推定処理にて「確度高」判定がなされたか否かにより判断する。 In S245, it is determined whether or not the “high accuracy” determination is made in the immediately preceding document estimation process (S245). In the document estimation process, as described above, the document size estimation method is switched according to the estimated accuracy of the document area. Here, whether or not the accuracy of the document area is low and the document size is estimated to be a fixed size is determined based on whether or not the “high accuracy” determination is made in the immediately preceding document estimation process.
そして、「確度低」判定がなされたと判断すると(S245でNo)、S261に移行し、「確度高」判定がなされたと判断すると(S245でYes)、S251に移行する。 When it is determined that the “low accuracy” determination is made (No in S245), the process proceeds to S261. When it is determined that the “high accuracy” determination is made (Yes in S245), the process proceeds to S251.
S251に移行すると、CPU70は、S220で推定された原稿サイズ及びS235で検出された記録紙サイズに基づき、予め定められた計算式に従って変倍率を設定する。具体的には、変倍率を、原稿サイズと記録紙サイズとの比(例えば、記録紙短辺長さ÷原稿短辺長さ)に対応した倍率に設定し、後続の処理で、原稿のコピー画像が、原稿サイズとの記録紙サイズの比に対応した倍率で拡大(倍率が1未満の場合には縮小)されて記録紙に印刷されるようにする。
In step S251, the
また、この処理を終えると、CPU70は、S220で推定された原稿の傾き角θから、画像データの傾き補正量を設定する(S253)。具体的には、原稿のコピー画像が、傾きのない状態でまっすぐ、記録紙に印刷されるように、傾き補正量を設定する。但し、推定された原稿の傾き角θが微小量(本実施例では−0.5度≦θ≦0.5度)である場合には、誤差も考慮して、傾き補正量をゼロに設定する。
When this processing is completed, the
S253での処理を終えると、CPU70は、S220で推定された原稿の載置領域の情報に基づいて、原稿読取開始位置及び原稿読取終了位置を設定し、原稿読取開始位置及び原稿読取終了位置で定められる読取領域を、原稿台11aにおける原稿の載置領域に対応させる(S255)。
When the processing in S253 is completed, the
具体的には、原稿の載置領域全体を読取ユニット15が読み取ることができるように、原稿読取開始位置を、副走査方向において最も下側に位置する原稿の端点に対応した位置に設定し、原稿読取終了位置を、副走査方向において最も上側に位置する原稿の端点に対応した位置に設定して、読取領域を原稿台11aにおける原稿の載置領域に対応させる。また、この処理を終えると、S270に移行する。
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
一方、S261に移行すると、CPU70は、原稿のコピー画像が等倍で記録紙に印刷されるように、変倍率を1に設定すると共に、傾き補正量をゼロに設定する(S263)。更に、直前の原稿推定処理にて推定された原稿サイズの情報に基づき、原稿読取開始位置及び原稿読取終了位置を設定し、原稿読取開始位置及び原稿読取終了位置で定められる読取領域を、原稿台11aにおける原稿の載置領域に対応させる(S265)。
On the other hand, when proceeding to S261, the
具体的に、S265では、原稿台11aの左下角(フレーム内側左下角)に原稿の左下角が合わされて、原稿が正しく原稿台11aに載置されていると仮定し、原稿読取開始位置を、読取可能領域R0の下端(Y=0)に設定し、原稿読取終了位置を、原稿台11aの下端縁(換言すればフレーム13aの下辺内側)から上記推定した原稿の縦幅分離れた位置に設定する。このようにして、S265では、読取領域を、原稿台11aにおける原稿の載置領域に対応させる。
Specifically, in S265, it is assumed that the lower left corner of the document is aligned with the lower left corner of the document table 11a (the lower left corner inside the frame), and the document is correctly placed on the document table 11a. The lower end (Y = 0) of the readable region R0 is set, and the document reading end position is set to a position separated from the estimated lower side of the document from the lower edge of the document table 11a (in other words, the lower side of the
但し、S265では、後続の処理にて変倍率1でコピー動作を実現する関係上、読取領域を記録紙サイズより大きく設定する必要はないので、原稿サイズよりも記録紙サイズの方が小さい場合には、読取領域を記録紙サイズに対応させるようにしてもよい。このようにして、S265での処理を終えると、CPU70は、S270に移行する。
However, in S265, the reading area does not need to be set larger than the recording paper size in order to realize a copying operation with a scaling factor of 1 in the subsequent processing, so that the recording paper size is smaller than the document size. The reading area may correspond to the recording paper size. In this way, when the processing in S265 is completed, the
また、S270に移行すると、CPU70は、読取制御部20を通じて画像読取部10を制御することで、画像読取部10に、読取ユニット15を原稿読取開始位置から原稿読取終了位置まで副走査方向に搬送させると共に、当該搬送中にはライン毎の読取動作を読取ユニット15に実行させて、上記設定した読取領域の画像を、読取ユニット15に読み取らせ、当該読取領域の読取結果を表す画像データが、RAM80に記録されるようにする(S270)。
In step S <b> 270, the
また、この処理を終えると、CPU70は、RAM80に記録された上記読取結果を表す画像データを、予め設定された変倍率で拡大又は縮小処理すると共に、予め設定された傾き補正量分、回転処理して、上記読取結果を表す画像データを、印刷用の画像データに変換し、変換後の画像データを、印刷対象データに設定する(S280)。但し、傾き補正量がゼロに設定されている場合には、S280において、回転処理を、実行しないものとする。
When this process is completed, the
また、S280での処理を終えると、CPU70は、当該印刷対象データについての印刷処理を実行する(S290)。即ち、印刷制御部40を通じて、印刷部30に印刷対象データに基づく画像を、給紙した記録紙に印刷させる。その後、当該複写制御処理を終了する。
When the process in S280 is completed, the
このようにして、自動変倍複写処理では、読取可能領域R0における一部領域のプレスキャン結果に基づき、原稿サイズ等を推定し、その結果から、本スキャン時(S270実行時)の読取領域を決定すると共に、変倍率及び傾き補正量を決定する。特に、原稿エッジの検出に失敗した場合や、検出した原稿エッジに基づいて推定した原稿領域の確度が低い場合には、自動変倍機能をオフにして、変倍率1で、コピー動作を実現し、それ以外の場合には、自動変倍機能を働かせて、原稿のコピー画像を、原稿サイズと記録紙サイズとの比に対応する大きさに、拡大又は縮小して、記録紙に印刷する。 In this way, in the automatic scaling copying process, the document size and the like are estimated based on the prescan result of the partial area in the readable area R0, and the read area at the time of the main scan (when executing S270) is determined based on the result. At the same time, a scaling factor and an inclination correction amount are determined. In particular, when the detection of the document edge fails, or when the accuracy of the document area estimated based on the detected document edge is low, the automatic scaling function is turned off and the copying operation is realized with a scaling factor of 1. In other cases, the automatic scaling function is activated to enlarge or reduce the copy image of the original to a size corresponding to the ratio between the original size and the recording paper size and print it on the recording paper.
続いて、図5を用いて、CPU70が、S220で実行する原稿推定処理について説明する。図5は、CPU70が実行する原稿推定処理を表すフローチャートである。
この原稿推定処理を開始すると、CPU70は、まず、変数Sを上述のプレスキャン領域上端のY座標であるYPREに設定することにより(S=YPRE)、Y軸方向の検査範囲を、Y=0からY=S=YPREに設定する(S410)。また、この処理を終えると、S420に移行し、右エッジ検出処理を実行する。図6は、CPU70が実行する右エッジ検出処理を表すフローチャートである。
Subsequently, the document estimation process executed by the
When the document estimation process is started, the
右エッジ検出処理を開始すると、CPU70は、まずS510にて、副走査方向検査位置Yeを、読取可能領域R0の下端Y座標に設定し(Ye=0)、S515にて、主走査方向検査位置Xeを、読取可能領域R0の右端X座標に設定する(Xe=XMAX)。また、S515では、変数Cを値ゼロに初期化する(C=0)。その後、副走査方向検査位置Yeが検査範囲を超えているか否かを判断する(S520)。具体的には、Ye>Sであるか否かを判断する。
When the right edge detection process is started, the
そして、副走査方向検査位置Yeが検査範囲を超えていないと判断すると(S520でNo)、CPU70は、主走査方向検査位置Xe及び副走査方向検査位置Yeで定まる検査位置(X,Y)=(Xe,Ye)に対応する検査対象データの画素値を参照することにより、検査位置(Xe,Ye)がエッジ点であるか否かを判断する(S525)。尚、図7は、エッジ画像データの構成を抜粋して示し、更に、右エッジ検出処理により追跡するエッジ点の軌跡を表した説明図である。図7に示す例では、画素値「1」の地点がエッジ点に該当する。
When determining that the sub-scanning direction inspection position Ye does not exceed the inspection range (No in S520), the
そして、検査位置(Xe,Ye)がエッジ点ではないと判断すると(S525でNo)、CPU70は、S540に移行して、主走査方向検査位置Xeを、X軸マイナス方向に1画素移動した位置に更新し(Xe←Xe−1)、更新後の主走査方向検査位置Xeが読取可能領域R0の左端を、はみ出ていないかどうかを判断する。具体的には、Xe<0であるか否かを判断する(S543)。
If the
そして、主走査方向検査位置Xeが、読取可能領域R0の左端をはみ出ていないと判断すると(S543でNo)、CPU70は、S520に移行して、副走査方向検査位置Yeが検査範囲を超えているか否か(Ye>Sであるか否か)を判断し、副走査方向検査位置Yeが検査範囲を超えていないと判断すると(S520でNo)、S525に移行し、副走査方向検査位置Yeが検査範囲を超えていると判断すると(S520でYes)、S590に移行する。
If the
一方、S543において、主走査方向検査位置Xeが読取可能領域R0の左端をはみ出ていると判断すると(Xe<0であると判断すると)、CPU70は、S547に移行し、主走査方向検査位置Xeを、読取可能領域R0の右端(XMAX)に設定すると共に(Xe=XMAX)、副走査方向検査位置Yeを、現在値Yeに8加えた値に更新する(Ye←Ye+8)。即ち、副走査方向検査位置Yeを、Y軸方向に8画素進んだ位置に設定する。その後、S520に移行して、上述の処理を実行する。
On the other hand, in S543, when it is determined that the main scanning direction inspection position Xe protrudes from the left end of the readable area R0 (when it is determined that Xe <0), the
また、検査位置(Xe,Ye)がエッジ点であると判断すると(S525でYes)、CPU70は、S530に移行し、変数(X0,Y0)に、現在の検査位置(Xe,Ye)の座標値を、設定する(X0←Xe,Y0←Ye)。また、変数Y1を、座標Y=Y0からY軸方向に8画素進んだ座標値Y1(=Y0+8)に更新する(S533)。
If the
その後、座標(X0−1,Y1)の地点、座標(X0,Y1)の地点及び座標(X0+1,Y1)の地点の少なくとも一つが、エッジ点であるか否かを判断し(S537)、座標(X0−1,Y1)の地点、座標(X0,Y1)の地点及び座標(X0+1,Y1)の地点のいずれもがエッジ点でない場合には(S537でNo)、S540に移行して、主走査方向検査位置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 (S537). 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 S537), the process proceeds to S540. 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)の地点の少なくとも一つがエッジ点であると判断した場合には(S537でYes)、S550に移行して、座標(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 S537), The process proceeds to S550, 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は、S560に移行し、座標(X0−1,Y1)の地点、座標(X0,Y1)の地点及び座標(X0+1,Y1)の地点の内、エッジ点である地点の一つを、予め定められた優先度に従って選択する。
When this processing 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
即ち、S560では、上記優先度に従って、座標(X0−1,Y1)の地点、座標(X0,Y1)の地点、及び、座標(X0+1,Y1)の地点の内、エッジ点である地点であって優先度の最も高い地点を選択する。そして、変数X0を、選択した地点のX座標に更新し、変数Y0を、選択した地点のY座標に更新する。その後、変数Cを1加算した値に更新する(S563)。 That is, in S560, according to the above 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 (S563).
そして、この処理を終えると、CPU70は、更新後の変数Cの値がC=8であるか否かを判断し、C=8でないと判断すると(S567でNo)、S533に移行して、変数Y1を、座標Y=Y0からY軸方向に8画素進んだ地点のY座標に更新する(Y1=Y0+8)。その後、S537以降の処理を実行する。
When this process is finished, the
CPU70は、このような処理を実行することにより、図7に示すように、Y軸方向に8画素おきに、エッジ点がY軸方向に連続するものであるか否かを検査する。そして、C=8であると判断すると(S567でYes)、8回に及ぶS550の処理で連続性のあるエッジ点として判定した計8地点の各座標データを、原稿右エッジデータとしてRAM80に記憶する(S570)。
By executing such processing, the
また、この処理を終えると、CPU70は、S580に移行して、副走査方向検査位置Yeが検査範囲を超えているか否か(Ye>Sであるか否か)を判断し、副走査方向検査位置Yeが検査範囲を超えていないと判断すると(S580でNo)、副走査方向検査位置Yeを64画素進んだ位置に更新して(S585)、S515に移行する。
When this process is finished, the
このようにして、CPU70は、連続するエッジ点を、8つを1組として、繰返し検出する。そして、副走査方向検出位置Yeが検査範囲を超えると(S520でYes又はS580でYes)、S590に移行し、S570で原稿右エッジデータとして記憶された座標データ群の中から、右エッジ(原稿の右端を表すエッジ点)として確度の低い座標データ群を削除して、原稿右エッジデータを確定する。
In this way, the
具体的には、図8に示すように、原稿右エッジデータとして記憶された座標データ群の内、連続性のある座標データ群に対して原稿内側領域に大きくずれた位置にある、明白に連続性のない座標データ群を、原稿右エッジデータから除去し、原稿右エッジデータを確定する。その後、当該右エッジ検出処理を終了する。但し、S590の処理は原稿エッジの検出精度を高めるための処理であるので、S590の処理については、実行しないように、右エッジ検出処理を構成してもよい。 Specifically, as shown in FIG. 8, 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 to determine the document right edge data. Thereafter, the right edge detection process ends. However, since the process of S590 is a process for improving the document edge detection accuracy, the right edge detection process may be configured not to execute the process of S590.
このようにして、右エッジ検出処理を終えると、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に対応するサイズ)であると推定する(S433)。そして、この処理を終えると、当該原稿推定処理を終了する。尚、S431で「失敗」判定がなされると、上述したS240では、Yesと判断される。
If 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に正しく載置されていると推定して、図5右図に示すように、右エッジ近似直線と原稿台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に載置されている原稿が定型用紙であると仮定して、原稿台11aに載置された原稿のサイズ及び原稿台11aにおける原稿の載置領域を推定する(S443)。
When this processing is finished, the
即ち、上記推定した原稿の左下角位置から右下角位置までの長さを、原稿の短辺長さ(横幅)と推定し、この短辺長さの√2倍を、原稿の長辺長さ(縦幅)と推定して、原稿サイズを推定すると共に、上記推定した左下角位置及び右下角位置を基点に上記原稿サイズの原稿が原稿台11aに載置されているものとして、原稿の左上角及び右上角が位置する座標を導出し、これら4つの角を結んでできる四角形内の領域を、原稿の載置領域であると推定する。尚、ここで原稿短辺長さの√2倍を、原稿の長辺長さとして推定しているのは、定型用紙の短辺長さ:長辺長さの比が1:√2となっているためである。 That is, the estimated length from the lower left corner position to the lower right corner position of the original is estimated as the short side length (horizontal width) of the original, and √2 times the short side length is set to the long side length of the original. Assuming that the document size is estimated based on (vertical width), and the document of the document size is placed on the document table 11a with the estimated lower left corner position and lower right corner position as the base points, the upper left corner of the document The coordinates where the corners and the upper right corner are located are derived, and the area within the quadrilateral formed by connecting these four corners is estimated as the document placement area. Here, the reason why √2 times the original short side length is estimated as the long side length of the original is that the ratio of the short side length to the long side length of the standard paper is 1: √2. This is because.
また、この処理を終えると、CPU70は、原稿台11aに載置されている原稿の傾き角を推定する(S445)。尚、S441,S443では、原稿が原稿台11aの左下角に正確に突き当てられて原稿台11aに載置されていると仮定して角位置を求めているので、S445では、原稿の傾き角がゼロである(傾きがない)と推定する。
When this process is completed, the
その後、CPU70は、S447に移行して、「確度高」と判定する。尚、ここで、「確度高」と判定するのは、後続の処理であるS245においてYesと判断し、S251に移行するための形式的な処理である。即ち、CPU70は、S440でNoと判断すると、S447で「確度高」と判定し、S245においてYesと判断して、S251に移行する。
Thereafter, the
S447での処理を終えると、CPU70は、当該原稿推定処理(S220)を終えて、S230に移行し、上述したようにして、後続の処理を実行する。即ち、原稿推定処理で推定した原稿サイズ、原稿の傾き角、原稿の載置領域の情報を基に、変倍率及び傾き補正量を設定し(S251,S253)、更に読取領域を設定する(S255)。その後、本スキャンに移行して(S270)、コピー動作を実現する。
When the process in S447 is completed, the
話を原稿推定処理のS440(図5参照)に戻すと、CPU70は、ここで、右エッジ近似直線がY軸に対し所定角度より大きく傾いていると判断した場合(S440でYes)、S450に移行して、図9に示す左エッジ検出処理を実行する。図9は、CPU70が実行する左エッジ検出処理を表すフローチャートである。
When the story is returned to S440 (see FIG. 5) of the document estimation process, 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の右端を、はみ出ていないかどうかを判断する(S743)。具体的には、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 area R0 (S743). 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 region 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, 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は、右エッジ検出処理と同様(図7参照)、Y軸方向に8画素おきに、エッジ点がY軸方向に連続するものであるか否かを検査する。そして、C=8であると判断すると(S767でYes)、S750で連続性のあるエッジ点として判定した計8地点の各座標データを、原稿左エッジデータとしてRAM80に記憶する(S770)。
By 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
具体的には、S590での処理と同様、原稿左エッジデータとして記憶された座標データ群の内、連続性のある座標データ群に対して原稿内側領域に大きくずれた位置にある、明白に連続性のない座標データ群を、原稿左エッジデータから除去し、原稿左エッジデータを確定する。その後、当該左エッジ検出処理を終了する。但し、S790の処理については、実行しないように、左エッジ検出処理を構成してもよい。 Specifically, in the same manner as the processing in S590, the coordinate data group stored as the document left 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 left edge data to determine the document left edge data. 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は、図10に示す下エッジ検出処理を実行する。図10は、CPU70が実行する下エッジ検出処理を表すフローチャートである。
下エッジ検出処理を開始すると、CPU70は、S810にて、主走査方向検査位置Xeを、読取可能領域R0の左端X座標に設定し(Xe=0)、S815にて、副走査方向検査位置Yeを、読取可能領域R0の下端Y座標に設定する(Ye=0)。また、S815では、変数Cを値ゼロに初期化する(C=0)。
In step 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
具体的には、S590での処理と同様、原稿下エッジデータとして記憶された座標データ群の内、連続性のある座標データ群に対して原稿内側領域に大きくずれた位置にある、明白に連続性のない座標データ群を、原稿下エッジデータから除去し、原稿下エッジデータを確定する。その後、当該下エッジ検出処理を終了する。但し、S890の処理については、実行しないように、下エッジ検出処理を構成してもよい。 Specifically, as in the process at S590, the coordinate data group stored as the document lower edge data is clearly continuously located at a position 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は、右エッジ近似直線、左エッジ近似直線、及び下エッジ近似直線の相互関係から、右エッジ検出処理(S420)、左エッジ検出処理(S450)及び下エッジ検出処理(S460)にて正しく原稿エッジが検出されたか否かを判断する。即ち、右エッジ、左エッジ及び下エッジの全てが正常に検出されたか否かを判断する。
In step S470, the
具体的には、右エッジ近似直線と左エッジ近似直線とが平行な関係にあり、右エッジ近似直線と下エッジ近似直線とが直交関係にあり、左エッジ近似直線と下エッジ近似直線とが直交関係にある場合には、正しく原稿エッジが検出されたとして、S470でYesと判断する。 Specifically, the right edge approximate line and the left edge approximate line are parallel, the right edge approximate line and the lower edge approximate line are orthogonal, and the left edge approximate line and the lower edge approximate line are orthogonal If there is a relationship, it is determined that the document edge is correctly detected, and the determination in S470 is Yes.
一方、右エッジ、左エッジ及び下エッジのいずれか一つの検出にでも失敗している場合や、右エッジ、左エッジ及び下エッジの関係が正しい関係にない場合には、S470でNoと判断する。即ち、右エッジ近似直線と左エッジ近似直線とが平行な関係にあり、右エッジ近似直線と下エッジ近似直線とが直交関係にあり、且つ、左エッジ近似直線と下エッジ近似直線とが直交関係にある場合を除いては、原稿エッジが正しく検出されていないとして、S470でNoと判断する。但し、ここでの相互関係の判定は、誤差を考慮して実行すべきである。 On the other hand, if detection of any one of the right edge, the left edge, and the lower edge fails, or if the relationship between the right edge, the left edge, and the lower edge is not correct, it is determined No in S470. . That is, the right edge approximate line and the left edge approximate line are parallel, the right edge approximate line and the lower edge approximate line are orthogonal, and the left edge approximate line and the lower edge approximate line are orthogonal. Except in the case of No., it is determined that the document edge is not correctly detected, and No is determined in S470. However, the determination of the mutual relationship here should be executed in consideration of an error.
そして、原稿エッジが正しく検出されていないと判断すると(S470でNo)、CPU70は、S471に移行して、「失敗」判定をすると共に、原稿台11aに載置された原稿のサイズが、予め設定された基本サイズであると推定する(S473)。
If it is determined that the document edge is not detected correctly (No in S470), the
尚、本実施例の複合機1は、基本サイズの情報を、設定情報として、予め操作キーを通じてユーザから入手可能な構成にされている。即ち、S473では、原稿台11aに載置された原稿のサイズが、ユーザから予め指定された基本サイズの原稿であると推定する。
The
但し、製品出荷時の基本サイズの設定値は、原稿台11aに載置可能な原稿の最大サイズとしておくのが好ましい。なぜなら、原稿サイズを最大サイズとして推定すれば、その原稿サイズが真の原稿サイズと異なっていても、S265で実行する読取領域の設定動作において、真の原稿サイズに対応する読取領域よりも小さい読取領域を、設定してしまうことがなく、本スキャンにて、原稿台11aに載置された原稿全体を読み取って、そのコピー画像を、記録紙に印刷することができ、後続処理に悪影響が及びにくいからである。 However, the set value of the basic size at the time of product shipment is preferably set to the maximum size of a document that can be placed on the document table 11a. This is because if the original size is estimated as the maximum size, even if the original size is different from the true original size, the reading area setting operation executed in S265 is smaller than the reading area corresponding to the true original size. Without setting the area, it is possible to read the entire document placed on the document table 11a and print the copy image on the recording paper in the main scan, which adversely affects subsequent processing. It is difficult.
このようにして、S473での処理を終えると、CPU70は、当該原稿推定処理を終了して、S230以降の処理を実行することにより、S473で推定した原稿サイズの情報を基に読取領域等を設定し(S265)、変倍率1且つ傾き補正量ゼロで、コピー動作を実現する。
In this way, when the process in S473 is completed, the
一方、S470で原稿エッジが正しく検出されていると判断すると(S470でYes)、CPU70は、S481に移行して、原稿の左下角位置を、左エッジ近似直線と下エッジ近似直線との交点であると推定して、その座標値を算出し、更に、原稿の右下角位置を、右エッジ近似直線と下エッジ近似直線との交点であると推定して、その座標値を算出する(S483)。尚、図11は、S481及びS483での原稿左下角位置Ka及び原稿右下角位置Kbの推定方法を示した説明図である。図中、白丸がエッジ点を表し、黒丸が角位置Ka,Kbを表す。
On the other hand, if it is determined in S470 that the document edge is correctly detected (Yes in S470), the
また、S483での処理を終えると、CPU70は、上記推定した原稿の左下角位置及び右下角位置の関係から、原稿台11aに載置されている原稿が四角形状であるとの仮定の元で、検査対象データにおける原稿領域を推定する(S485)。
When the processing in S483 is completed, the
具体的に、S485では、下エッジ近似直線の線分であって原稿左下角位置に対応する地点から原稿右下角位置に対応する地点までの線分、右エッジ近似直線の線分であって原稿右下角位置に対応する地点からY軸プラス方向に検査対象データの端縁までの線分、左エッジ近似直線の線分であって原稿左下角位置に対応する地点からY軸プラス方向に検査対象データの端縁までの線分に囲まれる検査対象データ内の領域を、原稿領域と推定する(図12(b)(c)参照)。 Specifically, in S485, the line segment of the lower edge approximate straight line, the line segment from the point corresponding to the lower left corner position of the document to the point corresponding to the lower right corner position of the document, the line segment of the right edge approximate straight line and the original document The line segment from the point corresponding to the lower right corner position to the edge of the inspection target data in the Y axis plus direction, the line segment of the left edge approximate straight line, and the inspection object in the Y axis plus direction from the point corresponding to the lower left corner position of the document An area in the inspection target data surrounded by the line segment to the edge of the data is estimated as a document area (see FIGS. 12B and 12C).
また、S485での処理を終えると、CPU70は、S490に移行し、図12(a)に示す原稿推定副処理を実行する。尚、図12(a)は、CPU70が実行する原稿推定副処理を表すフローチャートである。
When the process in S485 is completed, the
S490で原稿推定副処理を開始すると、CPU70は、まず検査対象データの左端(換言するとY軸)から、左エッジ近似直線の線分で形付けられる原稿領域の左辺までのX軸方向最短距離D1を算出する(S910)。
When the document estimation sub-process is started in S490, the
尚、図9(b)は、原稿台11aにおいて原稿が左側に傾いて載置されている場合の距離D1,D2の算出方法を示した説明図であり、図9(c)は、原稿台11aにおいて原稿が右側に傾いて載置されている場合の距離D1,D2の算出方法を示した説明図である。 FIG. 9B is an explanatory diagram showing a method of calculating the distances D1 and D2 when the document is placed on the document table 11a while being tilted to the left. FIG. 9C is a diagram of the document table. 11A is an explanatory diagram showing a method for calculating distances D1 and D2 when a document is placed on the right side in 11a. FIG.
また、S910での処理を終えると、CPU70は、上記算出した距離D1が予め定められた閾値以下であるか否かを判断し(S920)、算出した距離D1が閾値を超えていると判断すると(S920でNo)、S980に移行する。
When the process in S910 is completed, the
一方、上記算出した距離D1が閾値以下であると判断すると(S920でNo)、CPU70は、S930に移行し、検査対象データの下端(換言するとX軸)から、下エッジ近似直線の線分で形付けられる原稿領域の下辺までのY軸方向最短距離D2を算出する。
On the other hand, if it is determined that the calculated distance D1 is equal to or smaller than the threshold (No in S920), the
その後、S940に移行して、上記算出した距離D2が予め定められた閾値以下であるか否かを判断する。そして、算出した距離D2が閾値を超えていると判断すると(S940でNo)、S980に移行し、距離D2が閾値以下であると判断すると(S940でYes)、S950に移行する。 Thereafter, the process proceeds to S940, and it is determined whether or not the calculated distance D2 is equal to or less than a predetermined threshold value. If it is determined that the calculated distance D2 exceeds the threshold (No in S940), the process proceeds to S980. If it is determined that the distance D2 is equal to or less than the threshold (Yes in S940), the process proceeds to S950.
また、S950に移行すると、CPU70は、S485で推定した原稿領域の確度が高いと評価して、「確度高」と判定する。尚、S950で「確度高」と判定した場合、後続の処理であるS245において、CPU70は、Yesと判断する。
In step S950, the
また、S950での処理を終えると、CPU70は、S960に移行し、S481及びS483で推定した原稿の左下角位置及び右下角位置を結ぶ線分が原稿短辺であり、原稿台11aに載置されている原稿が定型用紙であると仮定して、原稿台11aに載置された原稿のサイズ及び原稿台11aにおける原稿の載置領域を推定すると共に、原稿台11aに載置されている原稿の傾き角θを右エッジ近似直線を基に推定する(S970)。
When the processing in S950 is completed, the
即ち、S960では、上記推定した原稿の左下角位置から右下角位置までの長さを、原稿の短辺長さ(横幅)と推定し、この短辺長さの√2倍を、原稿の長辺長さ(縦幅)と推定して、原稿サイズを推定すると共に、上記推定した左下角位置及び右下角位置を基点に上記原稿サイズの原稿が原稿台11aに載置されているものとして、原稿の左上角及び右上角が位置する座標を導出し、これら4つの角を結んでできる四角形内の領域を、原稿の載置領域であると推定する。 That is, in S960, the estimated length from the lower left corner position to the lower right corner position of the document is estimated as the short side length (horizontal width) of the document, and √2 times the short side length is set to the document length. Assume that the document size is estimated by estimating the side length (vertical width), and the document of the document size is placed on the document table 11a based on the estimated lower left corner position and lower right corner position. The coordinates where the upper left corner and the upper right corner of the document are located are derived, and an area within a quadrilateral formed by connecting these four corners is estimated as the document placement area.
また、S970では、Y軸に対して右エッジ近似直線がなす角度を、原稿の傾き角θと推定する。その後、当該原稿推定副処理を終了する。
一方、S980に移行すると、CPU70は、S485で推定した原稿領域の確度が低いと評価して、「確度低」と判定する。尚、S980で「確度低」と判定した場合、CPU70は、後続の処理であるS245において、Noと判断する。
In S970, the angle formed by the right edge approximate line with respect to the Y axis is estimated as the document inclination angle θ. Thereafter, the document estimation sub-process is terminated.
On the other hand, when the process proceeds to S980, the
ところで、距離D1及び距離D2のいずれか一方が閾値を超える場合に、推定した原稿領域の確度が低いと評価するのは、本実施例の複合機1では、原稿台11aの左下角を、原稿の左下角を合わせるべき位置としてマークMKによりユーザに指示しているためである。
By the way, when either one of the distance D1 and the distance D2 exceeds the threshold value, the
即ち、本実施例においては、原稿台11aの左下角から延びる原稿台11aの下端縁及び原稿台11aの左端縁を、原稿の辺を合わせるべき基準線として定めており、ユーザがマークMKに従って原稿を載置すれば、当然に、距離D1及び距離D2は、ゼロに近い値として算出される。 In other words, in this embodiment, the lower end edge of the document table 11a extending from the lower left corner of the document table 11a and the left edge of the document table 11a are defined as reference lines to align the sides of the document, and the user follows the mark MK. Naturally, the distance D1 and the distance D2 are calculated as values close to zero.
換言すると、距離D1及び距離D2の値が大きい場合には、原稿エッジの検出の際に、原稿の辺ではなく、原稿内に描写された罫線等のエッジ点を原稿エッジであると誤検出している可能性が高い。このため、本実施例では、距離D1及び距離D2のいずれか一方が閾値を超える場合には、推定した原稿領域の確度が低いと評価するようにしているのである。 In other words, when the values of the distance D1 and the distance D2 are large, when the document edge is detected, an edge point such as a ruled line drawn in the document is erroneously detected as the document edge instead of the document side. There is a high possibility. For this reason, in this embodiment, when either one of the distance D1 and the distance D2 exceeds the threshold value, it is evaluated that the accuracy of the estimated document area is low.
CPU70は、このような理由から、S980で「確度低」と判定すると、S990に移行し、S481,S483で推定した左下角位置及び右下角位置の情報を用いずに、S473の処理と同様、原稿台11aに載置された原稿のサイズが、予め設定された基本サイズであると推定する。その後、当該原稿推定副処理を終了する。
For this reason, when the
また、このようにして、S490での原稿推定副処理を終えると、CPU70は、S220での原稿推定処理を終了して、S230に移行し、後続の処理を実行する。
このような動作により、CPU70は、プレスキャンにより得られたエッジ画像データ(検査対象データ)から推定した原稿領域の確度が高い場合には、原稿が定型用紙であるとの仮定の下、エッジ画像データにより推定した原稿左下角位置及び右下角位置の情報に基づき、原稿台11aに載置された原稿のサイズを推定すると共に原稿の傾き角θを推定し(S960,S970)、これに基づき、変倍率及び傾き補正量を設定し(S251,S253)、更に読取領域を設定する(S255)。その後、本スキャンに移行する(S270)。
In addition, when the document estimation sub-process in S490 is completed in this way, the
With such an operation, the
そして、本スキャン(S270)では、上記設定した読取領域下において読取ユニット15を搬送し、その領域に写る画像を読取ユニット15に読み取らせる。そして、その読取結果を、上記設定した変倍率に合わせて拡大/縮小処理すると共に、上記設定した傾き補正量に合わせて回転処理して、印刷用の画像データを生成する。また、これを印刷対象データとして印刷処理することで、原稿のコピー画像であって、自動変倍され、更に傾き補正された画像を、印刷部30を通じて、記録紙に印刷する。
In the main scan (S270), the
一方、CPU70は、プレスキャンにより得られたエッジ画像データから推定した原稿領域の確度が低い場合には、原稿が基本サイズの原稿であると推定すると共に(S990)、原稿の左下角が原稿台11aの左下角に合わせられて、当該原稿がまっすぐ正確に載置されていると仮定して、傾き補正量をゼロに設定し(S263)、更に、自動変倍機能を無効にするように変倍率1に設定する(S261)。
On the other hand, when the accuracy of the document area estimated from the edge image data obtained by the prescan is low, the
また、推定した原稿サイズに合わせて読取領域を設定し(S265)、本スキャンに移行する(S270)。そして、原稿のコピー画像を、変倍率1で、印刷部30を通じて、記録紙に印刷する。
Further, a reading area is set according to the estimated document size (S265), and the process proceeds to the main scan (S270). Then, a copy image of the document is printed on the recording paper through the
以上、本実施例のディジタル複合機1の構成について説明したが、本実施例の複合機1では、読取可能領域R0の一部領域をプレスキャンして、その読取結果に基づき、原稿の状態(原稿サイズ・原稿の傾き・原稿の載置領域)を推定するようにした。従って、本実施例によれば、従来のように、読取可能領域R0全体をプレスキャンする手法よりも高速にプレスキャン動作を終了することができて、効率的に原稿の状態を推定することができる。 The configuration of the digital multi-function peripheral 1 according to the present embodiment has been described above. However, in the multi-function peripheral 1 according to the present embodiment, a partial area of the readable area R0 is pre-scanned, and the document state ( The document size, document tilt, and document placement area are estimated. Therefore, according to the present embodiment, the prescan operation can be completed faster than the conventional method of prescanning the entire readable region R0, and the state of the document can be estimated efficiently. it can.
但し、このように読取可能領域R0全体ではなく、一部領域をプレスキャンする手法を採用すると、原稿の全体像をプレスキャンで読み取ることができなり、原稿状態の推定精度が悪くなる可能性がある。 However, if a method of pre-scanning a partial area instead of the entire readable area R0 is adopted, the entire image of the original can be read by pre-scanning, and the estimation accuracy of the original state may be deteriorated. is there.
そこで、本実施例では、上述したように、プレスキャンにより得られたエッジ画像データから推定した原稿領域の確度を評価して、確度が高い場合には、その原稿領域を導出する基となった原稿左下角及び右下角の位置座標の情報から、原稿のサイズ(縦幅・横幅)を推定するが、確度が低い場合には、原稿サイズが、ユーザにより予め定められたサイズであると推定するようにした。 Therefore, in this embodiment, as described above, the accuracy of the document area estimated from the edge image data obtained by the pre-scan is evaluated, and when the accuracy is high, the document area is derived. The document size (vertical width / horizontal width) is estimated from the position coordinate information of the lower left corner and the lower right corner of the document. If the accuracy is low, the document size is estimated to be a size predetermined by the user. I did it.
従って、本実施例によれば、エッジ画像データから原稿領域を推定する過程で、原稿に描写された罫線などの図形に惑わされて、その原稿領域の推定に誤りが生じた場合に、適切にモードを切り替えて、ユーザの要望(ユーザから指定されたサイズ)にあわせた処理を実行することができる。従って、本実施例によれば、誤った推定により、誤った変倍率や読取領域を設定してしまい、ユーザにとって不要なコピー動作が実行されてしまうのを抑えることができる。よって、本実施例によれば、ユーザに対して利便性の高い複合機1を提供することができる。
Therefore, according to the present embodiment, in the process of estimating the document area from the edge image data, when an error occurs in the estimation of the document area due to being confused by a figure such as a ruled line drawn on the document, It is possible to execute processing in accordance with the user's desire (size specified by the user) by switching the mode. Therefore, according to the present embodiment, it is possible to prevent an erroneous scaling ratio or reading area from being set due to erroneous estimation and a copy operation unnecessary for the user from being executed. Therefore, according to the present embodiment, it is possible to provide the
尚、上記実施例では、S980で「確度低」と判定した際に、ユーザに対して、その旨を報知せずに、S990に移行するようにしたが、S980では、表示操作部50のディスプレイを通じて「確度低」と判定した旨を報知するようにしてもよい。
In the above embodiment, when it is determined that the “accuracy is low” in S980, the process proceeds to S990 without notifying the user, but in S980, the display of the
この他、S980では、表示操作部50のディスプレイを通じて「確度低」と判定した旨を報知すると共に、後続の処理を継続するか否かをユーザに問い合わせ、操作キーを通じて継続する旨の回答が入力された場合には、S990に移行するが、操作キーを通じて継続しない旨の回答が入力された場合には、S990に移行せずに、S980の処理をするに至ったコピー指令に対応する複写制御処理を終了し、当該コピー指令を無効にするようにしてもよい。
In addition, in S980, it is notified through the display of the
また、以上には、本発明の実施例について説明したが、本発明の抽出手段は、CPU70が実行するS215,S420,S450,S460の処理により実現され、外縁認識手段は、S437,S455,S465,S481〜S485の処理により実現され、確度評価手段は、S910〜S950,S980の処理により実現されている。
Further, although the embodiment of the present invention has been described above, the extraction means of the present invention is realized by the processing of S215, S420, S450, S460 executed by the
また、プレスキャン手段は、CPU70が実行するS210の処理及び読取制御部20の動作により実現され、原稿サイズ推定手段は、S960,S990の処理により実現され、読取領域決定手段は、S255,S265の処理により実現され、本スキャン手段は、S270の処理及び読取制御部20の動作により実現されている。
The pre-scanning means 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.
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 (7)
前記読取ユニットの読取結果である画像データを、エッジ画像を表すエッジ画像データに変換し、当該エッジ画像データの中から、前記原稿台に載置された原稿の辺に対応するエッジ点群として推定されるエッジ点群を抽出する抽出手段と、
前記抽出手段により抽出された原稿の各辺に対応するエッジ点群を直線近似することにより原稿の外縁を認識する外縁認識手段と、
前記外縁認識手段により認識された前記外縁の確度の高低を評価する確度評価手段と、
を備え、
前記原稿台端縁の特定部位は、原稿の辺を合わせるべき基準線として定められており、
前記確度評価手段は、前記基準線に原稿の辺を合わせて原稿が載置されていることを前提として、前記外縁認識手段により認識された前記原稿の外縁と、前記基準線との位置関係に基づき、前記外縁認識手段により認識された前記外縁の確度の高低を評価する構成にされていること
を特徴とする画像読取装置。 A reading unit is conveyed under a transparent document table on which a document to be read is placed, and an image on the document table is read by the reading unit, whereby a read image of the document placed on the document table is read. An image reading device for generating image data representing
Image data which is read result of the reading unit, is converted into an edge image data representing an edge image, from among the edge image data, as edge points corresponding to edges of the front SL document placed on the document table Extracting means for extracting the estimated edge point group ;
Outer edge recognition means for recognizing the outer edge of the original by linearly approximating edge points corresponding to each side of the original extracted by the extraction means;
Accuracy evaluation means for evaluating the accuracy of the outer edge recognized by the outer edge recognition means;
With
The specific part of the document table edge is defined as a reference line to align the sides of the document,
The accuracy evaluation means is based on the positional relationship between the outer edge of the original recognized by the outer edge recognition means and the reference line on the assumption that the original is placed with the side of the original aligned with the reference line. An image reading apparatus characterized by being configured to evaluate the accuracy of the outer edge recognized by the outer edge recognition means.
を特徴とする請求項1記載の画像読取装置。 The accuracy evaluation means evaluates that the accuracy is low when the outer edge of the document facing the reference line recognized by the outer edge recognition means is separated by a predetermined amount or more with respect to the reference line, and the reference line The image reading apparatus according to claim 1, wherein the accuracy is evaluated when the outer edge of the document facing the document is not separated from the reference line by a predetermined amount or more.
前記確度評価手段は、前記二つの基準線の夫々について、当該基準線に対向する前記外縁認識手段により認識された前記原稿の外縁が、前記基準線に対し所定量以上離れているか否かを判断し、前記二つの基準線の両者について、前記原稿の外縁が前記基準線に対し所定量以上離れていないと判断した場合には、前記確度が高いと評価し、前記二つの基準線のいずれか一方について、前記原稿の外縁が前記基準線に対し所定量以上離れていると判断した場合には、前記確度が低いと評価する構成にされていること
を特徴とする請求項2記載の画像読取装置。 The document table is formed in a quadrangular shape, and two sides extending in a direction orthogonal to each other from a specific corner among the four sides of the document table are respectively defined as the reference line,
The accuracy evaluation unit determines, for each of the two reference lines, whether or not the outer edge of the document recognized by the outer edge recognition unit facing the reference line is a predetermined amount or more away from the reference line. If it is determined that the outer edge of the document is not more than a predetermined amount away from the reference line with respect to both of the two reference lines, it is evaluated that the accuracy is high, and one of the two reference lines is determined. The image reading apparatus according to claim 2, wherein when the outer edge of the document is determined to be a predetermined amount or more away from the reference line, the accuracy is evaluated to be low. apparatus.
を備え、
前記抽出手段は、前記プレスキャン手段の動作によって得られた前記読取ユニットの読取結果である画像データを、エッジ画像を表すエッジ画像データに変換し、当該エッジ画像データの中から、前記原稿台に載置された原稿の辺に対応するエッジ点群として推定されるエッジ点群を抽出する構成にされていること
を特徴とする請求項1〜請求項3のいずれかに記載の画像読取装置。 A readable area that is an area of the original platen that can be read by the reading unit, and one of the four sides of the square original platen that is defined by the reference line and is located on the inner side of the original platen. Pre-scanning means for transporting the reading unit in a partial area of the readable area belonging to a square area up to a position separated by a predetermined distance, and causing the reading unit to perform a reading operation in the partial area;
The extracting means, the image data is a read result of the reading unit obtained by the operation of the pre-scanning unit, is converted into an edge image data representing an edge image, from among the edge image data, before Symbol platen The image reading apparatus according to claim 1, wherein an edge point group estimated as an edge point group corresponding to a side of the document placed on the document is extracted. .
を備えることを特徴とする請求項1〜請求項4のいずれかに記載の画像読取装置。 If the accuracy evaluation unit evaluates that the accuracy is high, the size of the document placed on the document table is estimated from the outer edge of the document recognized by the outer edge recognition unit, but the accuracy is low by the accuracy evaluation unit. 5. The apparatus according to claim 1, further comprising: a document size estimation unit configured to estimate that a size of the document placed on the document table is a predetermined size. The image reading apparatus described in 1.
前記外縁認識手段は、前記抽出手段により抽出された各辺に対応するエッジ点群を直線近似して得られる三本の直線が交わる二つの交点を、前記原稿台に載置された原稿の角であると認識する構成にされ、
更に、当該画像読取装置は、
前記確度評価手段により確度が高いと評価されると、前記原稿台に載置された原稿が定型の用紙であるとの仮定の下で、前記外縁認識手段により原稿の角であると認識された前記二つの交点間の距離に基づき、前記原稿台に載置された原稿のサイズを推定するが、前記確度評価手段により確度が低いと評価されると、前記原稿台に載置された原稿のサイズが、予め定められたサイズであると推定する原稿サイズ推定手段
を備えることを特徴とする請求項4記載の画像読取装置。 The extraction means is configured to extract an edge point group estimated as an edge point group corresponding to this side from the edge image data for each of the three sides of the document placed on the document table ,
The outer edge recognizing means sets two intersection points at which three straight lines obtained by linearly approximating the edge point group corresponding to each side extracted by the extracting means to the corners of the document placed on the document table. It is configured to recognize that
Furthermore, the image reading apparatus
If the accuracy evaluation unit evaluates that the accuracy is high, the outer edge recognition unit recognizes the corner of the document under the assumption that the document placed on the document table is a standard sheet. Based on the distance between the two intersections, the size of the document placed on the document table is estimated. If the accuracy evaluation means evaluates that the accuracy is low, the size of the document placed on the document table is estimated. The image reading apparatus according to claim 4, further comprising a document size estimation unit that estimates that the size is a predetermined size.
前記読取対象領域決定手段により決定された前記読取領域において、前記読取ユニットを搬送し、前記読取ユニットに読取動作を実行させることにより、前記原稿台に載置された原稿の読取画像を表す画像データを生成する本スキャン手段と、
を備えることを特徴とする請求項5又は請求項6記載の画像読取装置。 A reading area determining means for determining a reading area by the reading unit based on the information of the document size estimated by the document size estimating means;
Image data representing a read image of a document placed on the document table by transporting the reading unit and causing the reading unit to perform a reading operation in the reading region determined by the reading target region determining means. A main scanning means for generating
The image reading apparatus according to claim 5, further comprising:
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007340770A JP4952575B2 (en) | 2007-12-28 | 2007-12-28 | Image reading device |
| US12/341,963 US8284463B2 (en) | 2007-12-28 | 2008-12-22 | Image reading apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007340770A JP4952575B2 (en) | 2007-12-28 | 2007-12-28 | Image reading device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2009164806A JP2009164806A (en) | 2009-07-23 |
| JP4952575B2 true JP4952575B2 (en) | 2012-06-13 |
Family
ID=40966915
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007340770A Expired - Fee Related JP4952575B2 (en) | 2007-12-28 | 2007-12-28 | Image reading device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4952575B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6648455B2 (en) * | 2015-09-16 | 2020-02-14 | 富士ゼロックス株式会社 | Image reading apparatus and image forming apparatus |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2502591B2 (en) * | 1987-05-13 | 1996-05-29 | 株式会社リコー | Document position detector |
| JP3007753B2 (en) * | 1992-05-25 | 2000-02-07 | 株式会社リコー | Document size detector |
| JPH11177774A (en) * | 1997-12-15 | 1999-07-02 | Minolta Co Ltd | Detector for original |
| JP2001268367A (en) * | 2000-03-22 | 2001-09-28 | Minolta Co Ltd | Image scanning apparatus |
| JP2001309114A (en) * | 2000-04-21 | 2001-11-02 | Murata Mach Ltd | Original reader |
| JP2003283766A (en) * | 2002-03-22 | 2003-10-03 | Ricoh Co Ltd | Image input device |
| JP2004282517A (en) * | 2003-03-17 | 2004-10-07 | Sharp Corp | Document reading device |
| JP2006071926A (en) * | 2004-09-01 | 2006-03-16 | Fuji Xerox Co Ltd | Image forming apparatus |
-
2007
- 2007-12-28 JP JP2007340770A patent/JP4952575B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2009164806A (en) | 2009-07-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5205963B2 (en) | Image reading device | |
| US8284463B2 (en) | Image reading apparatus | |
| US8174737B2 (en) | Image reading apparatus | |
| US7742198B2 (en) | Image processing apparatus and method | |
| JP6885111B2 (en) | Image processing equipment and image forming equipment | |
| JP4888439B2 (en) | Image reading apparatus and original size determination program | |
| JPH04313958A (en) | Picture processor | |
| JP4687765B2 (en) | Image reading device | |
| JP4952576B2 (en) | Image reading device | |
| JP4941316B2 (en) | Image reading device | |
| JP2009027396A (en) | Printing device | |
| JP4924416B2 (en) | Image reading device | |
| JP4858437B2 (en) | Image reading device | |
| JP4952575B2 (en) | Image reading device | |
| CN107925709B (en) | Image reading apparatus and image forming apparatus | |
| JP4924417B2 (en) | Image analysis device | |
| JP6848811B2 (en) | Image reader | |
| JP7482625B2 (en) | IMAGE PROCESSING APPARATUS, CONTROL METHOD FOR IMAGE PROCESSING APPARATUS, AND PROGRAM | |
| JP4941317B2 (en) | Image reading device | |
| JP4998257B2 (en) | Image reading device | |
| JP6394579B2 (en) | Image reading apparatus and image forming apparatus | |
| JP4680217B2 (en) | Image forming apparatus | |
| JP2008227852A (en) | Image reading apparatus and image reading method | |
| JP2011194612A (en) | Image forming apparatus and control program | |
| JP2023116052A (en) | Image reader |
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: 20110714 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110816 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20111017 |
|
| 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: 20120214 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120227 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4952575 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150323 Year of fee payment: 3 |
|
| LAPS | Cancellation because of no payment of annual fees |