JP2021197605A - Image reading device, skew angle determination method, and program - Google Patents

Image reading device, skew angle determination method, and program Download PDF

Info

Publication number
JP2021197605A
JP2021197605A JP2020102090A JP2020102090A JP2021197605A JP 2021197605 A JP2021197605 A JP 2021197605A JP 2020102090 A JP2020102090 A JP 2020102090A JP 2020102090 A JP2020102090 A JP 2020102090A JP 2021197605 A JP2021197605 A JP 2021197605A
Authority
JP
Japan
Prior art keywords
document
image
skew angle
shadow
image reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2020102090A
Other languages
Japanese (ja)
Inventor
智雄 山中
Tomoo Yamanaka
智広 山口
Tomohiro Yamaguchi
英一 高濱
Hidekazu Takahama
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2020102090A priority Critical patent/JP2021197605A/en
Publication of JP2021197605A publication Critical patent/JP2021197605A/en
Pending legal-status Critical Current

Links

Images

Abstract

To prevent an image from being deteriorated by skew correction when a part of the edge of a document is curled.SOLUTION: An image reading device 2 includes: a document transport unit 3 that automatically transports a document; and an image reading unit 20 that reads an image when the document transported by the document transport unit 3 passes through a predetermined reading position. The image reading device 2 further includes: a shadow detection unit 61 that detects a shadow appearing near the edge of the document in the image read by the image reading unit 20; a skew angle detection unit 62 that detects the skew angle of the image on the basis of the shadow; and a skew angle determination unit 65 that determines the suitability of the skew angle on the basis of the shape of the shadow, and when a part of the edge of the document is curled, determines that the skew angle detected from the image is inappropriate.SELECTED DRAWING: Figure 5

Description

本発明は、画像読取装置、スキュー角度判定方法及びプログラムに関し、特に搬送される原稿が所定位置を通過する際に読み取った画像を処理する技術に関する。 The present invention relates to an image reader, a skew angle determination method and a program, and more particularly to a technique for processing an image read when a conveyed document passes a predetermined position.

コピー機能やスキャン機能、プリント機能を備えたMFP(Multifunction Peripherals)などの画像処理装置は、装置本体の上部に画像読取装置を備えている。画像読取装置は、ユーザーによってセットされる原稿を1枚ずつ自動搬送する原稿搬送部と、原稿搬送部によって自動搬送される原稿が所定位置を通過する際に原稿の主走査方向の画像を光学的に読み取る画像読取部とを備え、原稿搬送部及び画像読取部を同期させて動作させることによって原稿全体の画像を読み取って画像データを生成する。 An image processing device such as an MFP (Multifunction Peripherals) having a copy function, a scan function, and a print function is provided with an image reading device on the upper part of the device body. The image reader optically scans an image in the main scanning direction of the document when the document carrier section automatically transports the documents set by the user one by one and the document automatically transported by the document carrier section passes through a predetermined position. It is provided with an image reading unit to be read, and by operating the document conveying unit and the image reading unit in synchronization with each other, the image of the entire document is read and image data is generated.

この種の画像読取装置において、自動搬送される原稿を画像読取部が読み取った画像に対し、スキュー補正を行うものが知られている(例えば特許文献1)。スキュー補正を適切に行うためには、例えば画像読取部が読み取る主走査方向に対する画像がどの程度傾いているかを示すスキュー角度を検出することが重要である。特許文献1の従来技術では、画像読取部が読み取った画像において原稿の先端部近傍に生じる影を検知することによってスキュー角度を検出するように構成されている。 In this type of image reading device, there is known one that performs skew correction on an image read by an image reading unit from an automatically conveyed original (for example, Patent Document 1). In order to properly perform skew correction, it is important to detect, for example, a skew angle indicating how much the image is tilted with respect to the main scanning direction read by the image reading unit. The prior art of Patent Document 1 is configured to detect the skew angle by detecting a shadow generated near the tip of the original in the image read by the image reading unit.

特開2018−157417号公報JP-A-2018-157417

ところで、画像読取装置において読み取り対象となる原稿は、低湿度の環境下に晒されると原稿内部の水分が蒸発し、原稿端部にカールが生じることがある。このカールが原稿先端において主走査方向の片側に生じると、カールした部分からカールしていない部分に向かって影幅が次第に減少していくことになり、背景領域と影領域との境界(影のエッジ)が原稿先端部のエッジと平行にならないことが起こり得る。そのような場合、原稿の先端部近傍に生じる影に基づいてスキュー角度を検出してしまうと、実際の画像のスキュー角度とは異なる角度を誤検出することになる。そのため、原稿端部の一部にカールが生じている場合、従来のスキュー補正を行ってしまうと、却って画像を劣化させてしまうという問題がある。 By the way, when the original to be read by the image reading device is exposed to a low humidity environment, the moisture inside the original may evaporate and curl may occur at the end of the original. When this curl occurs on one side in the main scanning direction at the tip of the document, the shadow width gradually decreases from the curled part toward the uncurled part, and the boundary between the background area and the shadow area (shadow). It is possible that the edge) is not parallel to the edge of the tip of the document. In such a case, if the skew angle is detected based on the shadow generated near the tip of the document, an angle different from the skew angle of the actual image will be erroneously detected. Therefore, when a part of the edge of the original is curled, there is a problem that the image is deteriorated if the conventional skew correction is performed.

本発明は、上記問題を解決するためになされたものであり、原稿の端部近傍で検知される影に基づいてスキュー角度の適否を判定することにより、原稿端部の一部がカールしている場合にスキュー補正によって画像を劣化させてしまうことを防止できるようにした画像読取装置、スキュー角度判定方法及びプログラムを提供することを目的とする。 The present invention has been made to solve the above problem, and by determining the suitability of the skew angle based on the shadow detected near the edge of the document, a part of the edge of the document is curled. It is an object of the present invention to provide an image reading device, a skew angle determination method, and a program capable of preventing the image from being deteriorated by skew correction in such a case.

上記目的を達成するため、請求項1に係る発明は、画像読取装置であって、原稿の自動搬送を行う原稿搬送手段と、前記原稿搬送手段によって搬送される原稿が所定の読取位置を通過する際に画像を読み取る画像読取手段と、前記画像において原稿の端部近傍に現れている影を検知する影検知手段と、前記影に基づいて前記画像のスキュー角度を検出するスキュー角度検出手段と、前記影の形状に基づいて前記スキュー角度の適否を判定するスキュー角度判定手段と、を備えることを特徴とする構成である。 In order to achieve the above object, the invention according to claim 1 is an image reading device, in which a document transporting means for automatically transporting a document and a document transported by the document transporting means pass through a predetermined reading position. An image reading means for reading an image, a shadow detecting means for detecting a shadow appearing near the edge of a document in the image, and a skew angle detecting means for detecting the skew angle of the image based on the shadow. The configuration is characterized by comprising a skew angle determining means for determining the suitability of the skew angle based on the shape of the shadow.

請求項2に係る発明は、請求項1の画像読取装置において、前記スキュー角度判定手段は、前記影の形状が略三角形である場合に前記スキュー角度が不適であると判定することを特徴とする構成である。 The invention according to claim 2 is characterized in that, in the image reading device of claim 1, the skew angle determining means determines that the skew angle is unsuitable when the shape of the shadow is a substantially triangular shape. It is a composition.

請求項3に係る発明は、請求項1又は2の画像読取装置において、前記スキュー角度判定手段は、前記影の形状が略三角形でない場合に前記スキュー角度が適切であると判定することを特徴とする構成である。 The invention according to claim 3 is characterized in that, in the image reading device of claim 1 or 2, the skew angle determining means determines that the skew angle is appropriate when the shape of the shadow is not a substantially triangular shape. It is a configuration to do.

請求項4に係る発明は、請求項1乃至3のいずれかの画像読取装置において、前記スキュー角度判定手段によって前記スキュー角度が適切であると判定された場合に、前記スキュー角度に基づいて前記画像に対するスキュー補正を行う画像補正手段、を更に備えることを特徴とする構成である。 The invention according to claim 4 is the image based on the skew angle when the skew angle determining means determines that the skew angle is appropriate in the image reading device according to any one of claims 1 to 3. The configuration is characterized in that an image correction means for performing skew correction is further provided.

請求項5に係る発明は、請求項1乃至4のいずれかの画像読取装置において、前記原稿搬送手段は、前記画像読取手段と、前記画像読取手段に対向して配置される背景板との間に原稿を通過させ、前記スキュー角度検出手段は、前記画像において前記影と前記背景板との第1の境界を検知することにより前記スキュー角度を検出することを特徴とする構成である。 The invention according to claim 5 is the image reading apparatus according to any one of claims 1 to 4, wherein the document transporting means is between the image reading means and a background plate arranged so as to face the image reading means. The skew angle detecting means detects the skew angle by detecting the first boundary between the shadow and the background plate in the image.

請求項6に係る発明は、請求項5の画像読取装置において、前記スキュー角度検出手段は、前記第1の境界を直線で近似し、該直線が前記画像読取手段によって読み取られる主走査方向又は副走査方向に対して成す角度を前記スキュー角度として検出することを特徴とする構成である。 The invention according to claim 6 is the image reading device according to claim 5, wherein the skew angle detecting means approximates the first boundary with a straight line, and the straight line is read by the image reading means in the main scanning direction or the sub. The configuration is characterized in that the angle formed with respect to the scanning direction is detected as the skew angle.

請求項7に係る発明は、請求項5又は6の画像読取装置において、前記スキュー角度判定手段は、前記第1の境界に基づいて、前記影の形状を特定することを特徴とする構成である。 The invention according to claim 7 is the image reading device according to claim 5, wherein the skew angle determining means specifies the shape of the shadow based on the first boundary. ..

請求項8に係る発明は、請求項5乃至7のいずれかの画像読取装置において、前記画像において前記影と原稿の端部との第2の境界を検知する原稿端部検知手段、を更に備え、前記スキュー角度判定手段は、前記第1の境界と前記第2の境界とに基づいて前記影の形状を特定することを特徴とする構成である。 The invention according to claim 8 further includes, in the image reading device according to any one of claims 5 to 7, a document edge detecting means for detecting a second boundary between the shadow and the edge of the document in the image. The skew angle determining means is characterized in that the shape of the shadow is specified based on the first boundary and the second boundary.

請求項9に係る発明は、請求項8の画像読取装置において、前記スキュー角度判定手段は、前記第1の境界と前記第2の境界とが交叉している場合に前記影の形状が略三角形であることを特定することを特徴とする構成である。 According to a ninth aspect of the present invention, in the image reading device of the eighth aspect, the skew angle determining means has a substantially triangular shape of the shadow when the first boundary and the second boundary intersect. It is a configuration characterized by specifying that it is.

請求項10に係る発明は、請求項9の画像読取装置において、前記スキュー角度判定手段は、前記第1の境界上の複数の位置のそれぞれから前記第2の境界までの距離を算出し、前記距離が前記第2の境界の中央に向かって単調減少している場合に前記第1の境界が前記第2の境界と交叉していると判断することを特徴とする構成である。 According to a tenth aspect of the present invention, in the image reading device of the ninth aspect, the skew angle determining means calculates a distance from each of a plurality of positions on the first boundary to the second boundary. The configuration is characterized in that when the distance is monotonically decreasing toward the center of the second boundary, it is determined that the first boundary intersects with the second boundary.

請求項11に係る発明は、請求項5乃至10のいずれかの画像読取装置において、前記第1の境界を近似した直線に沿って画素毎の階調値を取得する階調値取得手段と、前記階調値取得手段によって取得される画素毎の階調値に基づいて、前記直線が背景領域、影領域及び原稿領域のいずれの領域に属するかを判別する領域判別手段と、を更に備え、前記スキュー角度判定手段は、前記領域判別手段によって前記直線の少なくとも一部が原稿領域に属すると判別された場合、前記影の形状が略三角形であることを特定することを特徴とする構成である。 The invention according to claim 11 comprises a gradation value acquisition means for acquiring a gradation value for each pixel along a straight line that approximates the first boundary in the image reading device according to any one of claims 5 to 10. Further, a region determination means for determining which region of the background region, the shadow region, and the original region the straight line belongs to based on the gradation value for each pixel acquired by the gradation value acquisition means is provided. The skew angle determining means is configured to specify that the shape of the shadow is a substantially triangular shape when at least a part of the straight line is determined to belong to the original region by the area determining means. ..

請求項12に係る発明は、請求項11の画像読取装置において、前記スキュー角度判定手段は、前記領域判別手段によって前記直線が2つの影領域に属しており、且つ、前記2つの影領域の間の部分が背景領域に属していると判別された場合、前記影の形状が略三角形でないことを特定することを特徴とする構成である。 According to a twelfth aspect of the present invention, in the image reading device according to the eleventh aspect, in the skew angle determining means, the straight line belongs to two shadow regions by the area determining means, and between the two shadow regions. When it is determined that the portion of the shadow belongs to the background region, the configuration is characterized in that it is specified that the shape of the shadow is not a substantially triangular shape.

請求項13に係る発明は、請求項11又は12の画像読取装置において、前記領域判別手段は、前記階調値取得手段によって取得される階調値が予め指定された原稿階調値に等しい場合、前記直線上における当該画素を原稿領域として判別することを特徴とする構成である。 According to a thirteenth aspect of the present invention, in the image reading device according to claim 11, when the area determination means equals the gradation value acquired by the gradation value acquisition means to the original gradation value specified in advance. The configuration is characterized in that the pixel on the straight line is discriminated as a document area.

請求項14に係る発明は、請求項11又は12の画像読取装置において、前記領域判別手段は、前記階調値取得手段によって取得される階調値が予め設定される背景板階調値に等しい場合、前記直線上における当該画素を背景領域として判別することを特徴とする構成である。 The invention according to claim 14 is the image reading apparatus according to claim 11, wherein the area determination means equals the background plate gradation value to which the gradation value acquired by the gradation value acquisition means is set in advance. In this case, the configuration is characterized in that the pixel on the straight line is determined as a background region.

請求項15に係る発明は、請求項1乃至14のいずれかの画像読取装置において、前記スキュー角度判定手段によって前記スキュー角度が不適であると判定された場合に前記スキュー角度が不適であることを通知する通知手段、を更に備えることを特徴とする構成である。 The invention according to claim 15 states that in the image reading device according to any one of claims 1 to 14, the skew angle is unsuitable when the skew angle determining means determines that the skew angle is unsuitable. The configuration is characterized by further including a notification means for notifying.

請求項16に係る発明は、原稿の自動搬送を行う原稿搬送手段と、前記原稿搬送手段によって搬送される原稿が所定の読取位置を通過する際に画像を読み取る画像読取手段と、を備える画像読取装置において、原稿から読み取った画像のスキュー角度の適否を判定するスキュー角度判定方法であって、前記画像において原稿の端部近傍に現れている影を検知する影検知ステップと、前記影に基づいて前記画像のスキュー角度を検出するスキュー角度検出ステップと、前記影の形状に基づいて前記スキュー角度の適否を判定するスキュー角度判定ステップと、を有することを特徴とする構成である。 The invention according to claim 16 includes an image reading means for automatically transporting a document and an image reading means for reading an image when the document transported by the document transporting means passes through a predetermined reading position. A skew angle determination method for determining the suitability of the skew angle of an image read from a document in the apparatus, based on a shadow detection step of detecting a shadow appearing near the edge of the document in the image and the shadow. The configuration is characterized by having a skew angle detecting step for detecting the skew angle of the image and a skew angle determining step for determining the suitability of the skew angle based on the shape of the shadow.

請求項17に係る発明は、原稿の自動搬送を行う原稿搬送手段と、前記原稿搬送手段によって搬送される原稿が所定の読取位置を通過する際に画像を読み取る画像読取手段と、を備える画像読取装置において実行されるプログラムであって、前記画像読取装置に、前記画像において原稿の端部近傍に現れている影を検知する影検知ステップと、前記影に基づいて前記画像のスキュー角度を検出するスキュー角度検出ステップと、前記影の形状に基づいて前記スキュー角度の適否を判定するスキュー角度判定ステップと、を実行させることを特徴とする構成である。 The invention according to claim 17 comprises an image reading means for automatically transporting a document and an image reading means for reading an image when the document transported by the document transporting means passes through a predetermined reading position. A program executed by the device, the image reading device detects a shadow detecting step for detecting a shadow appearing near the edge of a document in the image, and a skew angle of the image based on the shadow. The configuration is characterized in that a skew angle detection step and a skew angle determination step for determining the suitability of the skew angle based on the shape of the shadow are executed.

本発明によれば、原稿の端部近傍で検知される影に基づいて原稿端部の一部がカールしているか否かを判断することが可能であり、原稿端部の一部がカールしていれば、スキュー角度が不適切であると判定することにより、原稿端部の一部がカールしている場合にスキュー補正によって画像を劣化させてしまうことを防止することができる。 According to the present invention, it is possible to determine whether or not a part of the document edge is curled based on the shadow detected near the edge of the document, and the part of the document edge is curled. If this is the case, it is possible to prevent the image from being deteriorated by the skew correction when a part of the edge of the document is curled by determining that the skew angle is inappropriate.

画像読取装置が搭載された画像処理装置の一構成例を示す図である。It is a figure which shows one configuration example of the image processing apparatus equipped with an image reading apparatus. 画像読取装置の内部構造を示す断面図である。It is sectional drawing which shows the internal structure of an image reader. 画像処理装置の制御機構の一例を示すブロック図である。It is a block diagram which shows an example of the control mechanism of an image processing apparatus. 画像読取装置の制御機構を示すブロック図である。It is a block diagram which shows the control mechanism of an image reader. スキュー補正を行うための画像処理部の構成例を示すブロック図である。It is a block diagram which shows the structural example of the image processing part for performing skew correction. 第1画像読取部が原稿の画像を読み取る例を示す図である。It is a figure which shows the example which the 1st image reading unit reads an image of a document. 読取センサーによって読み取られる画像の一例を示す図である。It is a figure which shows an example of the image read by a reading sensor. 主走査方向に対する直線の傾きをスキュー角度として検出する例を示す図である。It is a figure which shows the example which detects the inclination of a straight line with respect to the main scanning direction as a skew angle. 端部がカールしている原稿を読み取る態様を例示する図である。It is a figure which illustrates the mode of reading the document which the edge is curled. 先端部片側にカールが生じている原稿を読み取った画像を示す図である。It is a figure which shows the image which read the original which curled on one side of the tip part. 原稿の端部を検知する処理の一例を示す図である。It is a figure which shows an example of the process which detects the edge of a document. 影の形状を判定する処理概念の一例を示す図である。It is a figure which shows an example of the processing concept which determines the shape of a shadow. 画像読取装置において行われる処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the processing procedure performed in an image reader. スキュー角度判定処理の詳細な処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the detailed processing procedure of the skew angle determination processing. 原稿がカールしている場合の影の異なる例を示す図である。It is a figure which shows the example of a different shadow when a manuscript is curled. 第2実施形態における画像処理部の構成例を示すブロック図である。It is a block diagram which shows the structural example of the image processing part in 2nd Embodiment. 階調値取得部が階調値を取得する画素の例を示す図である。It is a figure which shows the example of the pixel which the gradation value acquisition part acquires a gradation value. 直線上の画素から取得された階調値の一例を示す図である。It is a figure which shows an example of the gradation value acquired from the pixel on a straight line. 原稿端部の両側にカールが生じる例を示す図である。It is a figure which shows the example which curl occurs on both sides of the document edge. 原稿端部の両側に均等な2つのカールが生じている原稿を読み取った画像を示す図である。It is a figure which shows the image which read the original which has two even curls on both sides of the original edge.

以下、本発明に関する好ましい実施形態について図面を参照しつつ詳細に説明する。尚、以下に説明する実施形態において互いに共通する要素には同一符号を付しており、それらについての重複する説明は省略する。 Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. In the embodiments described below, the elements common to each other are designated by the same reference numerals, and duplicate description thereof will be omitted.

(第1実施形態)
図1は、本発明の一実施形態である画像読取装置2が搭載された画像処理装置1の一構成例を示す図である。図1に示すXYZ三次元座標系は、XY平面を水平面とし、Z方向を鉛直方向とする座標系であり、図2に示す座標系と共通する座標系である。
(First Embodiment)
FIG. 1 is a diagram showing a configuration example of an image processing device 1 equipped with an image reading device 2 according to an embodiment of the present invention. The XYZ three-dimensional coordinate system shown in FIG. 1 is a coordinate system having an XY plane as a horizontal plane and a Z direction as a vertical direction, and is a coordinate system common to the coordinate system shown in FIG.

画像処理装置1は、スキャン機能、コピー機能及びプリント機能を備えるMFPとして構成される装置であり、スキャンジョブやコピージョブ、プリントジョブなどを実行する。 The image processing device 1 is a device configured as an MFP having a scan function, a copy function, and a print function, and executes a scan job, a copy job, a print job, and the like.

画像処理装置1は、装置本体の上部に、画像読取装置2を備えている。画像読取装置2は、ユーザーによってセットされる原稿を1枚ずつ自動搬送して原稿の画像を読み取る装置である。画像読取装置2は、原稿搬送部3と、その原稿搬送部3の下側に配置されるスキャナ部4とを備えている。原稿搬送部3は、例えばADF(Auto Document Feeder)と呼ばれる装置であり、ユーザーによってセットされる原稿を1枚ずつ取り出して自動搬送する。スキャナ部4は、原稿搬送部3によって自動搬送される原稿が所定の読み取り位置を通過する際に原稿の画像を光学的に読み取る。例えば、スキャナ部4は、原稿が読み取り位置を通過するときに、原稿の読み取り対象面を照明し、原稿の読み取り対象面からの反射光を受光することで原稿の主走査方向の画像を読み取る。そしてスキャナ部4は、原稿の主走査方向の画像を読み取る動作を原稿の搬送動作に同期させて連続的に行うことにより、主走査方向に直交する副走査方向の画像を繰り返し読み取る。つまり、スキャナ部4は、原稿の搬送動作に同期した読み取り動作を行うことにより、原稿全体の画像を読み取る。 The image processing device 1 includes an image reading device 2 on the upper part of the device main body. The image reading device 2 is a device that automatically conveys the originals set by the user one by one and reads the image of the originals. The image reading device 2 includes a document transporting unit 3 and a scanner unit 4 arranged below the document transporting unit 3. The document transport unit 3 is, for example, a device called an ADF (Auto Document Feeder), which takes out documents set by the user one by one and automatically transports them. The scanner unit 4 optically scans the image of the document when the document automatically conveyed by the document transfer unit 3 passes through a predetermined reading position. For example, when the document passes through the scanning position, the scanner unit 4 illuminates the surface to be scanned of the document and receives the reflected light from the surface to be scanned of the document to read the image in the main scanning direction of the document. Then, the scanner unit 4 repeatedly reads the image in the sub-scanning direction orthogonal to the main scanning direction by continuously performing the operation of reading the image in the main scanning direction of the document in synchronization with the transport operation of the document. That is, the scanner unit 4 reads the image of the entire document by performing a scanning operation synchronized with the document transporting operation.

また、画像処理装置1は、画像読取装置2の下方にプリンタ部5を備えている。プリンタ部5は、印刷対象となる画像データに基づいて印刷用紙などのシートに画像を印刷して出力する装置である。例えば、プリンタ部5は、予め収容される複数枚のシートからなるシート束からシートを1枚ずつ取り出して給紙し、そのシートが所定位置を通過する際に画像データに基づく画像を印刷する。プリンタ部5は、画像を印刷したシートをプリンタ部5の上部に設けられている排紙トレイ5aへ排紙出力する。 Further, the image processing device 1 includes a printer unit 5 below the image reading device 2. The printer unit 5 is a device that prints and outputs an image on a sheet such as printing paper based on the image data to be printed. For example, the printer unit 5 takes out sheets one by one from a sheet bundle composed of a plurality of sheets to be accommodated in advance, feeds them, and prints an image based on image data when the sheets pass through a predetermined position. The printer unit 5 outputs the sheet on which the image is printed to the output tray 5a provided on the upper part of the printer unit 5.

また、画像処理装置1は、装置本体の正面側に、ユーザーインタフェースとなる操作パネル6を備えている。操作パネル6は、ユーザーが操作可能な操作画面を表示し、ユーザーによる操作を受け付ける。画像処理装置1は、ユーザーによる操作に基づいてジョブの設定などを行い、ユーザーによってジョブの実行が指示されると、画像読取装置2及びプリンタ部5のそれぞれを動作させてユーザーによって指定されたジョブを実行する。 Further, the image processing apparatus 1 is provided with an operation panel 6 serving as a user interface on the front side of the apparatus main body. The operation panel 6 displays an operation screen that can be operated by the user, and accepts operations by the user. The image processing device 1 sets a job based on an operation by the user, and when the user instructs to execute the job, the image reading device 2 and the printer unit 5 are operated to operate the job specified by the user. To execute.

尚、ユーザーは、操作パネル6に対する操作を行うことで、画像読取装置2において読み取り対象となる原稿の種類を選択し、原稿の反射率などを指定するようにしても良い。原稿の反射率が分かれば、スキャナ部4が原稿を読み取った際の原稿の階調値を特定することができるようになる。 The user may select the type of the original to be read by the image reading device 2 and specify the reflectance of the original by performing an operation on the operation panel 6. If the reflectance of the document is known, the scanner unit 4 can specify the gradation value of the document when the document is read.

図2は、画像読取装置2の内部構造を示す断面図である。スキャナ部4は、筐体の内部空間33に原稿の第1面(例えば表面)の画像を読み取る第1画像読取部20を備えている。第1画像読取部20は、原稿の主走査方向(X方向)の画像を読み取るように主走査方向に延びる読取ヘッド21を備えている。 FIG. 2 is a cross-sectional view showing the internal structure of the image reading device 2. The scanner unit 4 includes a first image reading unit 20 that reads an image of the first surface (for example, the surface) of the document in the internal space 33 of the housing. The first image reading unit 20 includes a reading head 21 extending in the main scanning direction so as to read an image in the main scanning direction (X direction) of the document.

読取ヘッド21は、光源22とレンズ23と読取センサー24とを備えており、ガイドレール34に沿って副走査方向(Y方向)に移動可能である。光源22は、読み取り対象となる原稿の第1面を照明するためのものであり、例えば主走査方向に複数のLED(Light Emitting Diode)が配置されたLEDアレイによって構成される線光源である。読取センサー24は、主走査方向に複数の画像読取素子が配置されており、原稿の主走査方向の画像を読み取ることができる。レンズ23は、主走査方向に配置されるレンズアレイであり、原稿からの反射光を読取センサー24の複数の画像読取素子のそれぞれに結像させる。 The reading head 21 includes a light source 22, a lens 23, and a reading sensor 24, and can move in the sub-scanning direction (Y direction) along the guide rail 34. The light source 22 is for illuminating the first surface of a document to be read, and is, for example, a line light source composed of an LED array in which a plurality of LEDs (Light Emitting Diodes) are arranged in the main scanning direction. The reading sensor 24 has a plurality of image reading elements arranged in the main scanning direction, and can read an image in the main scanning direction of the document. The lens 23 is a lens array arranged in the main scanning direction, and images the reflected light from the document on each of the plurality of image reading elements of the reading sensor 24.

スキャナ部4は、図示を省略する駆動機構によって第1画像読取部20を副走査方向に移動させることができる。スキャナ部4の筐体の上面側には、主走査方向に細長いコンタクトガラス31と、概略矩形状のプラテンガラス32とが副走査方向に隣接した位置に配置されている。スキャナ部4は、原稿搬送部3によって自動搬送される原稿を読み取る際には、図2に示すように読取ヘッド21をコンタクトガラス31の下方位置に配置し、コンタクトガラス31の上面側を原稿が通過する際に第1画像読取部20が原稿の第1面の画像を読み取ることができるようにする。この場合、第1画像読取部20は、全ての原稿の読み取り動作が終了するまでコンタクトガラス31の下方位置で停止した状態となる。また、スキャナ部4は、ユーザーによってプラテンガラス32上に載置された原稿の画像を読み取ることも可能である。この場合、第1画像読取部20は、原稿の主走査方向の画像を読み取りながらガイドレール34に沿って副走査方向へ移動していくことにより、プラテンガラス32上に載置された原稿の全体の画像を読み取る。 The scanner unit 4 can move the first image reading unit 20 in the sub-scanning direction by a drive mechanism (not shown). On the upper surface side of the housing of the scanner unit 4, a contact glass 31 elongated in the main scanning direction and a substantially rectangular platen glass 32 are arranged at positions adjacent to each other in the sub-scanning direction. When the scanner unit 4 reads a document automatically conveyed by the document transfer unit 3, the scanner unit 4 arranges the scanning head 21 at a position below the contact glass 31 as shown in FIG. 2, and the document is placed on the upper surface side of the contact glass 31. Allows the first image reader 20 to read the image on the first surface of the document as it passes. In this case, the first image reading unit 20 is in a state of being stopped at a lower position of the contact glass 31 until the reading operation of all the documents is completed. Further, the scanner unit 4 can also read the image of the document placed on the platen glass 32 by the user. In this case, the first image reading unit 20 moves in the sub-scanning direction along the guide rail 34 while reading the image in the main scanning direction of the document, thereby moving the entire document placed on the platen glass 32 in the sub-scanning direction. Read the image of.

原稿搬送部3は、画像読み取り対象となる原稿を載置する原稿載置台10と、画像を読み取った原稿を排出する排紙トレイ16とを有している。原稿載置台10は、その先端部10aが回動軸10b周りに回動可能であり、原稿が載置された状態でジョブの実行開始が指示されると、原稿載置台10の先端部10aを持ち上げることにより、原稿の先端部をピックアップローラ11に当接させる。 The document transport unit 3 has a document placing table 10 on which an image to be read is placed, and a paper ejection tray 16 for ejecting the document from which the image has been read. The tip portion 10a of the document mounting table 10 is rotatable around the rotation shaft 10b, and when the job execution start is instructed while the document is placed, the tip portion 10a of the document mounting table 10 is turned on. By lifting, the tip of the document is brought into contact with the pickup roller 11.

ピックアップローラ11は、原稿載置台10に載置された複数枚の原稿のうちの最上部にある原稿を原稿搬送路13に向けて送り出すローラである。ピックアップローラ11の下流側には、給紙ローラ12が設けられている。給紙ローラ12は、ピックアップローラ11によって2枚以上の原稿が送り出された場合に最上部にある1枚の原稿だけを下流側の原稿搬送路13に送り出すローラである。 The pickup roller 11 is a roller that sends out the document at the top of the plurality of documents placed on the document mounting table 10 toward the document transport path 13. A paper feed roller 12 is provided on the downstream side of the pickup roller 11. The paper feed roller 12 is a roller that, when two or more originals are sent out by the pickup roller 11, only one original document at the top is sent out to the downstream original transfer path 13.

原稿搬送路13は、原稿載置台10から排紙トレイ16に向けて原稿を案内する経路である。原稿搬送路13には、複数の搬送ローラ14が設けられている。また、原稿搬送路13には、排紙トレイ16の近傍位置に原稿を排紙トレイ16に向けて排紙する排紙ローラ15が設けられている。また、原稿搬送路13には、スキャナ部4のコンタクトガラス31と対向する位置に背景板17が設けられる。背景板17は、第1画像読取部20に設けられている光源22の光を高い反射率で反射する。例えば、背景板17の反射率は、原稿搬送路13を搬送される原稿の反射率よりも高い値に設定されている。原稿搬送路13を搬送される原稿は、コンタクトガラス31と背景板17との間の位置を通過する際に第1画像読取部20によって原稿の第1面(例えば表面)の画像が読み取られる。尚、コンタクトガラス31と背景板17との間には原稿を通紙させることができる程度の隙間が形成され、その隙間は厚紙やエンボス紙などの比較的厚みのある原稿も支障なく通紙できる間隔に設定される。 The document transport path 13 is a path for guiding documents from the document mounting table 10 toward the paper output tray 16. A plurality of transport rollers 14 are provided in the document transport path 13. Further, the document transport path 13 is provided with a paper ejection roller 15 at a position near the paper ejection tray 16 for ejecting the original paper toward the paper ejection tray 16. Further, the document transport path 13 is provided with a background plate 17 at a position facing the contact glass 31 of the scanner unit 4. The background plate 17 reflects the light of the light source 22 provided in the first image reading unit 20 with a high reflectance. For example, the reflectance of the background plate 17 is set to a value higher than the reflectance of the document transported through the document transport path 13. When the document conveyed through the document transfer path 13 passes through the position between the contact glass 31 and the background plate 17, the image of the first surface (for example, the surface) of the document is read by the first image reading unit 20. A gap is formed between the contact glass 31 and the background plate 17 so that the original can be passed through the gap, and a relatively thick original such as thick paper or embossed paper can be passed through the gap without any problem. Set to interval.

また、原稿搬送路13には、背景板17の更に下流側の所定位置に、第2画像読取部26が設けられる。例えば第1画像読取部20が原稿搬送路13の第1の位置に設けられているとすると、第2画像読取部26は、その第1の位置よりも下流側の第2の位置に設けられている。第2画像読取部26は、原稿搬送路13を搬送される原稿の第2面(例えば裏面)の画像を読み取るためのものである。第2画像読取部26は、第1画像読取部20と同様に、光源22とレンズ23と読取センサー24とを備えている。また、原稿搬送路13を挟んで第2画像読取部26に対向する位置には、背景板18が設けられる。背景板18は、背景板17と同様に、原稿の反射率よりも高い反射率を有している。原稿搬送路13を搬送される原稿は、第2画像読取部26と背景板18との間の位置を通過する際に第2画像読取部26によって原稿の第2面(例えば裏面)の画像が読み取られる。 Further, the document transport path 13 is provided with a second image reading unit 26 at a predetermined position further downstream of the background plate 17. For example, assuming that the first image reading unit 20 is provided at the first position of the document transport path 13, the second image reading unit 26 is provided at a second position on the downstream side of the first position. ing. The second image reading unit 26 is for reading an image of the second surface (for example, the back surface) of the document transported through the document transport path 13. The second image reading unit 26 includes a light source 22, a lens 23, and a reading sensor 24, similarly to the first image reading unit 20. Further, a background plate 18 is provided at a position facing the second image reading unit 26 across the document transport path 13. Like the background plate 17, the background plate 18 has a reflectance higher than that of the original. When the document conveyed through the document transfer path 13 passes through the position between the second image reading unit 26 and the background plate 18, the second image reading unit 26 displays an image of the second surface (for example, the back surface) of the document by the second image reading unit 26. Read.

このように本実施形態の画像読取装置2は、原稿搬送路13に沿って原稿が1回搬送されている間に、原稿の表裏両面を読み取ることが可能な構成である。ただし、これに限られるものではなく、画像読取装置2は、第1画像読取部20のみを備えたものであっても良い。その場合、画像読取装置2は、原稿の裏面を読み取るために、原稿搬送路13に原稿の表裏を反転させる反転経路を設けたものであっても構わない。原稿搬送路13に反転経路を設けることにより、第1画像読取部20は、原稿の表裏両面を読み取ることができるようになる。 As described above, the image reading device 2 of the present embodiment has a configuration capable of reading both the front and back sides of the original while the original is conveyed once along the original conveying path 13. However, the present invention is not limited to this, and the image reading device 2 may include only the first image reading unit 20. In that case, the image reading device 2 may be provided with a reversing path for inverting the front and back of the document in the document transport path 13 in order to read the back surface of the document. By providing the inversion path in the document transport path 13, the first image reading unit 20 can read both the front and back surfaces of the document.

次に画像処理装置1の制御機構について説明する。図3は、画像処理装置1の制御機構の一例を示すブロック図である。画像処理装置1は、上述した画像読取装置2、プリンタ部5及び操作パネル6に加え、システムコントローラ40と、ネットワークインタフェース41と、画像メモリ42とを備えている。システムコントローラ40は、画像処理装置1の全体的な動作を制御するためのものである。ネットワークインタフェース41は、例えば画像処理装置1をLANなどのネットワークに接続し、外部の装置と通信を行うためのものである。画像メモリ42は、ジョブの実行によって生成される画像データやジョブの実行対象となる画像データを記憶するためのメモリである。システムコントローラ40は、ネットワークインタフェース41、操作パネル6、画像読取装置2、画像メモリ42、及び、プリンタ部5のそれぞれを統括的に制御することにより、ユーザーによって指定されたジョブの実行を制御する。 Next, the control mechanism of the image processing device 1 will be described. FIG. 3 is a block diagram showing an example of the control mechanism of the image processing device 1. The image processing device 1 includes a system controller 40, a network interface 41, and an image memory 42 in addition to the image reading device 2, the printer unit 5, and the operation panel 6 described above. The system controller 40 is for controlling the overall operation of the image processing device 1. The network interface 41 is for connecting the image processing device 1 to a network such as a LAN and communicating with an external device. The image memory 42 is a memory for storing image data generated by executing a job and image data to be executed by the job. The system controller 40 controls the execution of a job designated by the user by comprehensively controlling each of the network interface 41, the operation panel 6, the image reading device 2, the image memory 42, and the printer unit 5.

次に図4は、画像読取装置2の制御機構を示すブロック図である。画像読取装置2は、制御部45と、入出力インタフェース46と、搬送駆動部47と、第1画像読取部20と、第2画像読取部26とを備えている。 Next, FIG. 4 is a block diagram showing a control mechanism of the image reading device 2. The image reading device 2 includes a control unit 45, an input / output interface 46, a transport driving unit 47, a first image reading unit 20, and a second image reading unit 26.

制御部45は、各部の動作を制御する。この制御部45は、CPU48とメモリ49とを備えている。CPU48は、メモリ49に記憶されているプログラム50を読み出して実行するハードウェアプロセッサーである。メモリ49は、例えば半導体メモリなどによって構成される不揮発性の記憶デバイスであり、プログラム50を記憶する。 The control unit 45 controls the operation of each unit. The control unit 45 includes a CPU 48 and a memory 49. The CPU 48 is a hardware processor that reads out and executes a program 50 stored in the memory 49. The memory 49 is a non-volatile storage device composed of, for example, a semiconductor memory, and stores the program 50.

入出力インタフェース46は、システムコントローラ40や画像メモリ42との間でデータの入出力を行う。制御部45は、入出力インタフェース46を介してシステムコントローラ40から出力される原稿読み取り指示を受信可能であり、原稿読み取り指示を受信することに伴い、原稿の画像読み取り動作を開始する。また、制御部45は、入出力インタフェース46を介して画像データを出力し、画像メモリ42に格納することができる。 The input / output interface 46 inputs / outputs data to / from the system controller 40 and the image memory 42. The control unit 45 can receive the document reading instruction output from the system controller 40 via the input / output interface 46, and starts the image reading operation of the document when the document reading instruction is received. Further, the control unit 45 can output image data via the input / output interface 46 and store it in the image memory 42.

搬送駆動部47は、原稿搬送部3に設けられている搬送ローラ14などの各種ローラを駆動し、原稿載置台10にセットされた原稿を1枚ずつ取り出し、原稿搬送路13に沿って自動搬送する。例えば、搬送駆動部47は、原稿搬送路13に沿って原稿を一定の速度で搬送する。 The transport drive unit 47 drives various rollers such as the transport roller 14 provided in the document transport unit 3, takes out the documents set on the document mounting table 10 one by one, and automatically transports the documents along the document transport path 13. do. For example, the transport drive unit 47 transports the document at a constant speed along the document transport path 13.

第1画像読取部20及び第2画像読取部26のそれぞれは、上述した光源22及び読取センサー24の他に、AD変換部29を備えている。AD変換部29は、読取センサー24から出力されるアナログ信号をデジタル信号に変換するものである。第1画像読取部20及び第2画像読取部26は、AD変換部29でデジタル信号に変換した画像データを制御部45へ出力する。 Each of the first image reading unit 20 and the second image reading unit 26 includes an AD conversion unit 29 in addition to the light source 22 and the reading sensor 24 described above. The AD conversion unit 29 converts the analog signal output from the reading sensor 24 into a digital signal. The first image reading unit 20 and the second image reading unit 26 output the image data converted into a digital signal by the AD conversion unit 29 to the control unit 45.

制御部45のCPU48は、プログラム50を実行することにより、搬送制御部51、読取制御部52、画像取得部53及び画像処理部54として機能する。搬送制御部51は、搬送駆動部47を駆動することにより、原稿載置台10にセットされた原稿の自動搬送を制御する。読取制御部52は、搬送制御部51による原稿の搬送動作を同期させて第1画像読取部20及び第2画像読取部26のそれぞれに設けられている光源22及び読取センサー24を駆動することにより、原稿の読み取り動作を制御する。尚、原稿の第1面だけを読み取る場合、読取制御部52は、第1画像読取部20だけを動作させれば良い。 By executing the program 50, the CPU 48 of the control unit 45 functions as a transfer control unit 51, a read control unit 52, an image acquisition unit 53, and an image processing unit 54. The transport control unit 51 controls the automatic transport of the documents set on the document mounting table 10 by driving the transport drive unit 47. The reading control unit 52 drives the light source 22 and the reading sensor 24 provided in each of the first image reading unit 20 and the second image reading unit 26 in synchronization with the document transport operation by the transport control unit 51. , Control the reading operation of the document. When reading only the first surface of the document, the reading control unit 52 may operate only the first image reading unit 20.

画像取得部53は、第1画像読取部20及び第2画像読取部26のそれぞれから出力される画像データを取得する。 The image acquisition unit 53 acquires image data output from each of the first image reading unit 20 and the second image reading unit 26.

画像処理部54は、画像取得部53が画像データを取得することに伴い、その画像データに対する画像処理を行う。例えば、画像処理部54は、自動搬送される原稿を第1画像読取部20及び第2画像読取部26のそれぞれが読み取った画像に対し、スキュー補正を行う。スキュー補正は、原稿から読み取った画像が主走査方向又は副走査方向に傾いている場合に、その傾きを補正する処理である。尚、画像処理部54は、スキュー補正の他にも、例えば下地調整処理などの種々の画像処理を行うことが可能である。 The image processing unit 54 performs image processing on the image data as the image acquisition unit 53 acquires the image data. For example, the image processing unit 54 performs skew correction on the images read by each of the first image reading unit 20 and the second image reading unit 26 on the automatically conveyed original. Skew correction is a process for correcting the inclination of an image read from a document when it is inclined in the main scanning direction or the sub-scanning direction. In addition to skew correction, the image processing unit 54 can perform various image processing such as background adjustment processing.

図5は、スキュー補正を行うための画像処理部54の構成例を示すブロック図である。図5に示すように、画像処理部54は、影検知部61と、スキュー角度検出部62と、画像補正部63と、原稿端部検知部64と、スキュー角度判定部65と、通知部68とを備えている。尚、以下においては、説明を簡単にするために第1画像読取部20が原稿の画像を読み取った場合の処理を例示する。 FIG. 5 is a block diagram showing a configuration example of the image processing unit 54 for performing skew correction. As shown in FIG. 5, the image processing unit 54 includes a shadow detection unit 61, a skew angle detection unit 62, an image correction unit 63, a document edge detection unit 64, a skew angle determination unit 65, and a notification unit 68. And have. In the following, in order to simplify the explanation, the processing when the first image reading unit 20 reads the image of the original is illustrated.

影検知部61は、第1画像読取部20が読み取った画像において原稿の端部近傍に現れている影を検知する。これについて詳しく説明する。 The shadow detection unit 61 detects shadows appearing near the edge of the document in the image read by the first image reading unit 20. This will be explained in detail.

図6は、第1画像読取部20が原稿の画像を読み取る例を示す図である。図6(a)に示すように、原稿搬送部3によって矢印F1方向に搬送される原稿9は、背景板17とコンタクトガラス31との間の隙間8を通過する際に第1画像読取部20によって読み取られる。このとき、原稿9は、通常、隙間8のほぼ中央の読取基準位置Pzを通過する。 FIG. 6 is a diagram showing an example in which the first image reading unit 20 reads an image of a document. As shown in FIG. 6A, the document 9 conveyed in the direction of arrow F1 by the document transfer unit 3 passes through the gap 8 between the background plate 17 and the contact glass 31, and the first image reading unit 20 Read by. At this time, the document 9 normally passes through the reading reference position Pz at the center of the gap 8.

第1画像読取部20は、原稿9を照明する光源22として、読取センサー24の上流側に配置される第1光源22aと、読取センサー24の下流側に配置される第2光源22bとを備えている。第1光源22aは、第2光源22bよりも照度が高く、原稿を明るく照らすように構成される。図6(a)に示すように、背景板17とコンタクトガラス31との間に原稿9が到達していないとき、第1光源22a及び第2光源22bのそれぞれから照射される光が背景板17で反射し、その反射光が読取センサー24に入射する。 The first image reading unit 20 includes a first light source 22a arranged on the upstream side of the reading sensor 24 and a second light source 22b arranged on the downstream side of the reading sensor 24 as a light source 22 for illuminating the document 9. ing. The first light source 22a has a higher illuminance than the second light source 22b and is configured to illuminate the document brightly. As shown in FIG. 6A, when the document 9 does not reach between the background plate 17 and the contact glass 31, the light emitted from each of the first light source 22a and the second light source 22b is the background plate 17. The reflected light is incident on the reading sensor 24.

原稿9の先端部が背景板17とコンタクトガラス31との間に進入すると、図6(b)に示すように、原稿9の先端部が第1光源22aから照射される光を遮るため、搬送方向F1の下流側に影28を生じさせる。そのため、読取センサー24によって読み取られる画像は、原稿9の先端部に影28が写り込んだ画像となる。 When the tip of the document 9 enters between the background plate 17 and the contact glass 31, as shown in FIG. 6B, the tip of the document 9 is conveyed because it blocks the light emitted from the first light source 22a. A shadow 28 is formed on the downstream side of the direction F1. Therefore, the image read by the reading sensor 24 is an image in which the shadow 28 is reflected on the tip end portion of the document 9.

図7は、読取センサー24によって読み取られる画像の一例を示す図である。図6(b)に示すように、読取センサー24が原稿9の先端部にカールが生じていない通常の原稿9を読み取ると、それによって得られる画像は、図7(a)に示すような画像となる。つまり、原稿9の先端部に第1光源22から照射される光の影28が写り込んだ画像となる。 FIG. 7 is a diagram showing an example of an image read by the reading sensor 24. As shown in FIG. 6B, when the reading sensor 24 reads a normal document 9 having no curl at the tip of the document 9, the image obtained thereby is an image as shown in FIG. 7A. It becomes. That is, the image is an image in which the shadow 28 of the light emitted from the first light source 22 is reflected on the tip of the document 9.

影検知部61は、読取センサー24から得られる画像を解析することにより、画像に写り込んでいる影28を検出する。原稿9の先端部が背景板17とコンタクトガラス31との間の隙間8に進入する以前では読取センサー24が背景板17からの反射光を受光しているため、読取センサー24によって読み取られる各画素の階調値は比較的高い。これに対し、原稿9の先端部が背景板17とコンタクトガラス31との間の隙間8に進入し、読取センサー24が影28の部分を受光し始めると、各画素の階調値は次第に小さくなっていく。影検知部61は、原稿9の先端部において上記のように階調値の低下している部分を抽出することにより、影28を検知する。 The shadow detection unit 61 detects the shadow 28 reflected in the image by analyzing the image obtained from the reading sensor 24. Before the tip of the document 9 enters the gap 8 between the background plate 17 and the contact glass 31, the reading sensor 24 receives the reflected light from the background plate 17, so that each pixel read by the reading sensor 24. The gradation value of is relatively high. On the other hand, when the tip portion of the document 9 enters the gap 8 between the background plate 17 and the contact glass 31 and the reading sensor 24 begins to receive light on the shadow 28 portion, the gradation value of each pixel gradually decreases. It will become. The shadow detection unit 61 detects the shadow 28 by extracting the portion of the tip of the document 9 whose gradation value is lowered as described above.

例えば、背景板17の階調値は、画像読取装置2に固有のものであるため、予めメモリ49などき記憶しておくことができる。その場合、影検知部61は、メモリ49に記憶されている背景板階調値と各画素の階調値とを比較し、各画素の階調値と背景板階調値との差が所定値以上となった場合に影28であると判定することができる。 For example, since the gradation value of the background plate 17 is unique to the image reading device 2, it can be stored in advance in a memory 49 or the like. In that case, the shadow detection unit 61 compares the background plate gradation value stored in the memory 49 with the gradation value of each pixel, and the difference between the gradation value of each pixel and the background plate gradation value is predetermined. When it becomes more than a value, it can be determined that it is a shadow 28.

影検知部61によって影28が検知されると、スキュー角度検出部62が機能する。スキュー角度検出部62は、読取センサー24が読み取った画像のスキュー角度を検出する。具体的には、スキュー角度検出部62は、影検知部61によって検知された影28に基づいて画像のスキュー角度を検出する。これについて詳しく説明する。 When the shadow 28 is detected by the shadow detection unit 61, the skew angle detection unit 62 functions. The skew angle detection unit 62 detects the skew angle of the image read by the reading sensor 24. Specifically, the skew angle detection unit 62 detects the skew angle of the image based on the shadow 28 detected by the shadow detection unit 61. This will be explained in detail.

読取センサー24が読み取った画像から、図7(a)に示すように影28が検知されると、スキュー角度検出部62は、まず影28と背景板17との境界を第1の境界として検出する。例えば、スキュー角度検出部62は、図7(a)に示す画像の副走査方向(横方向)において影28と背景板17との境界に位置する画素を主走査方向(縦方向)に順に特定していき、それら複数の画素の位置を第1の境界として検出する。このようにして検出される第1の境界は、画素毎にばらつきが生じ、直線上に並んでいないことがある。そのため、スキュー角度検出部62は、図7(b)に示すように、第1の境界を近似した直線L1を算出する。尚、第1の境界として検出した複数の画素が近似するまでもなく、直線L1上に位置する場合、スキュー角度検出部62は、その直線L1を特定すれば良い。 When the shadow 28 is detected from the image read by the reading sensor 24 as shown in FIG. 7A, the skew angle detection unit 62 first detects the boundary between the shadow 28 and the background plate 17 as the first boundary. do. For example, the skew angle detection unit 62 specifies pixels located at the boundary between the shadow 28 and the background plate 17 in the sub-scanning direction (horizontal direction) of the image shown in FIG. 7A in order in the main scanning direction (vertical direction). Then, the positions of the plurality of pixels are detected as the first boundary. The first boundary detected in this way varies from pixel to pixel and may not be aligned on a straight line. Therefore, as shown in FIG. 7B, the skew angle detection unit 62 calculates a straight line L1 that approximates the first boundary. If the plurality of pixels detected as the first boundary are located on the straight line L1 without being close to each other, the skew angle detection unit 62 may specify the straight line L1.

スキュー角度検出部62は、影28と背景板17との第1の境界に対応する直線L1を求めると、読取センサー24が画像を読み取るときの主走査方向(X方向)又は副走査方向(Y方向)に対する直線L1の傾きを算出し、その傾きをスキュー角度として検出する。図8は、主走査方向に対する直線L1の傾きをスキュー角度θとして検出する例を示す図である。スキュー角度検出部62は、図8に示すように、主走査方向(X方向)に対する直線L1の傾きを算出し、その傾きをスキュー角度θとして検出する。ただし、これに限らず、スキュー角度検出部62は、副走査方向(Y方向)に対する直線L1の傾きを算出し、その傾きをスキュー角度θとして検出するようにしても良い。スキュー角度検出部62は、スキュー角度θを検出すると、そのスキュー角度θを画像補正部63に出力する。 When the skew angle detection unit 62 obtains a straight line L1 corresponding to the first boundary between the shadow 28 and the background plate 17, the reading sensor 24 reads an image in the main scanning direction (X direction) or the sub scanning direction (Y). The slope of the straight line L1 with respect to the direction) is calculated, and the slope is detected as the skew angle. FIG. 8 is a diagram showing an example of detecting the inclination of the straight line L1 with respect to the main scanning direction as the skew angle θ. As shown in FIG. 8, the skew angle detection unit 62 calculates the inclination of the straight line L1 with respect to the main scanning direction (X direction), and detects the inclination as the skew angle θ. However, the present invention is not limited to this, and the skew angle detection unit 62 may calculate the inclination of the straight line L1 with respect to the sub-scanning direction (Y direction) and detect the inclination as the skew angle θ. When the skew angle detection unit 62 detects the skew angle θ, the skew angle detection unit 62 outputs the skew angle θ to the image correction unit 63.

画像補正部63は、スキュー角度検出部62で検出されたスキュー角度θに基づき、原稿を読み取った画像に対してスキュー補正を行う。例えば図8に示すような画像の場合、画像補正部63は、スキュー角度θに基づき画像を右周りに回転させることで直線L1が主走査方向と平行になるように補正する。また、スキュー角度検出部62が副走査方向(Y方向)に対する直線L1の傾きを算出してスキュー角度θを検出した場合、画像補正部63は、画像を回転させることにより直線L1が副走査方向と平行になるように補正する。このようなスキュー補正により、原稿9を読み取った画像は傾きのない画像になる。 The image correction unit 63 performs skew correction on the image in which the original is read, based on the skew angle θ detected by the skew angle detection unit 62. For example, in the case of an image as shown in FIG. 8, the image correction unit 63 corrects the straight line L1 so as to be parallel to the main scanning direction by rotating the image clockwise based on the skew angle θ. Further, when the skew angle detection unit 62 calculates the inclination of the straight line L1 with respect to the sub-scanning direction (Y direction) and detects the skew angle θ, the image correction unit 63 rotates the image so that the straight line L1 is in the sub-scanning direction. Correct so that it is parallel to. By such skew correction, the image obtained by scanning the document 9 becomes an image without tilt.

このように原稿9の先端部にカールが発生していない場合、原稿9の先端部に現れる影28は、概略矩形状となる。そのため、影28と背景板17との第1の境界を検知してスキュー角度θを求めれば、そのスキュー角度θは、原稿9の先端部の傾きと同じである。それ故、画像補正部63は、画像に対するスキュー補正を適切に行うことができる。 When no curl is generated at the tip of the document 9 in this way, the shadow 28 appearing at the tip of the document 9 has a substantially rectangular shape. Therefore, if the first boundary between the shadow 28 and the background plate 17 is detected and the skew angle θ is obtained, the skew angle θ is the same as the inclination of the tip portion of the document 9. Therefore, the image correction unit 63 can appropriately perform skew correction on the image.

次に、図9は、端部がカールしている原稿9を読み取る態様を例示する図である。例えば、図9(a)に示すように原稿9の搬送方向F1の先端部片側にカール9aが生じている場合を仮定する。この原稿9がカール9aを下向きにして背景板17とコンタクトガラス31との間に進入すると、図9(b)に示すように、カール9aの先端が読取センサー24に近づいてコンタクトガラス31の表面に接触した状態になると共に、カール9aの撓み部分がカールしていない部分を上方に押し上げるので、カールしていない部分が背景板17に近接した状態となる。つまり、この場合、原稿9の大部分は読取基準位置Pzを通らず、カール9aの先端が読取センサー24に近い位置を通り、カール9a以外の部分が読取センサー24から遠い位置を通る。そして光源22aによって原稿9が照明されると、原稿9の先端部においてカール9aが生じている部分のみに影28が生じる。 Next, FIG. 9 is a diagram illustrating an embodiment of reading a document 9 having a curled end. For example, as shown in FIG. 9A, it is assumed that the curl 9a is generated on one side of the tip end portion of the document 9 in the transport direction F1. When the manuscript 9 enters between the background plate 17 and the contact glass 31 with the curl 9a facing downward, the tip of the curl 9a approaches the reading sensor 24 and the surface of the contact glass 31 is as shown in FIG. 9B. At the same time, the bent portion of the curl 9a pushes up the uncurled portion upward, so that the uncurled portion is in a state close to the background plate 17. That is, in this case, most of the document 9 does not pass through the reading reference position Pz, the tip of the curl 9a passes through a position close to the reading sensor 24, and the portion other than the curl 9a passes through a position far from the reading sensor 24. When the document 9 is illuminated by the light source 22a, a shadow 28 is generated only at the tip of the document 9 where the curl 9a is generated.

図10は、先端部片側にカール9aが生じている原稿9を読み取った画像を示す図である。原稿9の先端部片側にカール9aが生じていると、読み取った画像には、図10(a)に示すように、原稿9の先端部片側のみに影28が写り込む。このような画像に対し、上記と同様に、背景板17と影28との第1の境界を検知し、第1の境界を近似した直線L1を求めると、図10(b)に示すような直線L1を得る。ところが、直線L1は、原稿9の先端部のエッジとは明らかに平行ではないため、直線L1に基づいてスキュー角度を検出してしまうと、適切なスキュー補正を行うことができない。 FIG. 10 is a diagram showing an image obtained by scanning a document 9 having a curl 9a on one side of the tip portion. When the curl 9a is generated on one side of the tip portion of the document 9, the shadow 28 is reflected only on one side of the tip portion of the document 9 in the scanned image as shown in FIG. 10 (a). Similar to the above, when the first boundary between the background plate 17 and the shadow 28 is detected for such an image and the straight line L1 that approximates the first boundary is obtained, it is as shown in FIG. 10 (b). Obtain a straight line L1. However, since the straight line L1 is clearly not parallel to the edge of the tip of the document 9, if the skew angle is detected based on the straight line L1, appropriate skew correction cannot be performed.

そこで、本実施形態の画像読取装置2は、図5に示すように、原稿端部検知部64と、スキュー角度判定部65とを備えており、読み取り対象である原稿9の端部がカールしているか否かを判定するようにしている。 Therefore, as shown in FIG. 5, the image reading device 2 of the present embodiment includes a document edge detecting unit 64 and a skew angle determining unit 65, and the edge of the document 9 to be read is curled. I am trying to determine whether or not it is.

原稿端部検知部64は、原稿9の端部を検知する処理部である。例えば、原稿端部検知部64は、読取センサー24が読み取った画像において影28と原稿9との第2の境界を検知することにより原稿9の端部を検知する。図11は、原稿9の端部を検知する処理の一例を示す図である。まず図11(a)に示すように、原稿端部検知部64は、副走査方向において原稿9の先端部が位置する位置を予測し、その予測した位置を含む副走査方向の所定範囲内(例えば位置Y1から位置Y2の範囲)を原稿端部探索領域として設定する。原稿端部検知部64は、その原稿端部探索領域において主走査方向の1つの位置Xpを選択し、その位置Xpにおける副走査方向の階調値変化を調べる。図11(b)は、図11(a)に示す線分Lpにおける階調値変化を示す図である。副走査方向において位置Y1は、背景板17が写り込んでいる位置であり、その階調値は最も高い値(背景板階調値)を示す。位置Y1から位置Y2に向かうと、画像に影28が写り込んでくるため、階調値は次第に減少し始める。この影28は原稿9の端部近傍で最も暗くなる。そして原稿9が写り込んだ領域になると、階調値は影28の部分よりも高くなる。原稿端部検知部64は、影28から原稿9に切り替わる立ち上がり部分Hを検知することにより、原稿9の端部を検知する。つまり、立ち上がり部分Hの位置にある画素を原稿9の端部として特定するのである。言い換えると、原稿端部検知部64は、線分Lp上の各画素が、背景領域、影領域R2、及び、原稿領域R3のいずれに属しているかを識別することが可能であり、影領域R2と原稿領域R4との第2の境界を原稿9の端部として検知する。上記のようにして主走査方向の1つの位置Xpで原稿9の端部の副走査方向位置を検知すると、原稿端部検知部64は、主走査方向の位置Xpを別の位置に切り替えて同様の処理を行う。これを繰り返すことにより、原稿端部検知部64は、図11(c)に示すように原稿9の端部9eを検知することができる。 The document edge detection unit 64 is a processing unit that detects the edge of the document 9. For example, the document edge detection unit 64 detects the edge of the document 9 by detecting the second boundary between the shadow 28 and the document 9 in the image read by the reading sensor 24. FIG. 11 is a diagram showing an example of a process for detecting an end portion of a document 9. First, as shown in FIG. 11A, the document edge detection unit 64 predicts the position where the tip of the document 9 is located in the sub-scanning direction, and is within a predetermined range in the sub-scanning direction including the predicted position ( For example, the range from the position Y1 to the position Y2) is set as the document edge search area. The document edge detection unit 64 selects one position Xp in the main scanning direction in the document edge search area, and examines the gradation value change in the sub-scanning direction at that position Xp. FIG. 11B is a diagram showing a change in gradation value in the line segment Lp shown in FIG. 11A. The position Y1 in the sub-scanning direction is a position where the background plate 17 is reflected, and the gradation value thereof shows the highest value (background plate gradation value). As the shadow 28 appears in the image from the position Y1 to the position Y2, the gradation value gradually starts to decrease. This shadow 28 is darkest in the vicinity of the edge of the document 9. Then, in the area where the document 9 is reflected, the gradation value becomes higher than that of the shadow 28 portion. The document edge detection unit 64 detects the edge of the document 9 by detecting the rising portion H that switches from the shadow 28 to the document 9. That is, the pixel at the position of the rising portion H is specified as the end portion of the document 9. In other words, the document edge detection unit 64 can identify whether each pixel on the line segment Lp belongs to the background region, the shadow region R2, or the document region R3, and the shadow region R2 can be identified. The second boundary between the document and the document area R4 is detected as the end of the document 9. When the sub-scanning direction position of the end of the document 9 is detected at one position Xp in the main scanning direction as described above, the document edge detecting unit 64 switches the position Xp in the main scanning direction to another position and similarly. Is processed. By repeating this, the document edge detection unit 64 can detect the edge 9e of the document 9 as shown in FIG. 11 (c).

原稿端部検知部64によって原稿9の端部が検知されると、スキュー角度判定部65が機能する。スキュー角度判定部65は、スキュー角度検出部62によって検出されるスキュー角度θの適否を判定する。すなわち、原稿9の端部においてカール9aが生じている場合、スキュー角度判定部65によって検出されるスキュー角度θが原稿9の端部のエッジとは異なる角度となっているため、そのようなスキュー角度θに基づいてスキュー補正が行われると、画像を劣化させてしまうことになる。それを防止するために、スキュー角度判定部65は、スキュー角度検出部62によって検出されるスキュー角度θがスキュー補正に用いられる角度として適切な角度であるか否かを判定する。 When the edge of the document 9 is detected by the document edge detection unit 64, the skew angle determination unit 65 functions. The skew angle determination unit 65 determines the suitability of the skew angle θ detected by the skew angle detection unit 62. That is, when the curl 9a is generated at the end of the document 9, the skew angle θ detected by the skew angle determination unit 65 is different from the edge of the end of the document 9, so that such skew is achieved. If skew correction is performed based on the angle θ, the image will be deteriorated. In order to prevent this, the skew angle determination unit 65 determines whether or not the skew angle θ detected by the skew angle detection unit 62 is an appropriate angle as the angle used for the skew correction.

図10(a)に示したように原稿9の端部片側にカール9aが生じている場合、原稿9の端部に現れる影28は、概略矩形状にはならず、略三角形の形状となる。そこで、スキュー角度判定部65は、影検知部61によって検知された影28の形状に基づいてスキュー角度θの適否を判定する。例えば、スキュー角度判定部65は、影検知部61によって検知された影28の形状が略三角形である場合、スキュー角度検出部62によって検出されたスキュー角度θが不適切であると判定する。 As shown in FIG. 10A, when the curl 9a is generated on one side of the end of the document 9, the shadow 28 appearing at the end of the document 9 does not have a substantially rectangular shape but a substantially triangular shape. .. Therefore, the skew angle determination unit 65 determines the suitability of the skew angle θ based on the shape of the shadow 28 detected by the shadow detection unit 61. For example, when the shape of the shadow 28 detected by the shadow detection unit 61 is substantially triangular, the skew angle determination unit 65 determines that the skew angle θ detected by the skew angle detection unit 62 is inappropriate.

図12は、スキュー角度判定部65において影28の形状を判定する処理概念の一例を示す図である。スキュー角度判定部65は、スキュー角度検出部62によって検知される影28と背景板17との第1の境界を示す直線L1と、原稿端部検知部64によって影28と原稿9との第2の境界として検知される原稿9の端部9eとに基づき、影28の形状を特定する。例えば、直線L1と原稿9の端部9eとが互いに交叉している場合、スキュー角度判定部65は、影28が略三角形であることを特定することができる。 FIG. 12 is a diagram showing an example of a processing concept for determining the shape of the shadow 28 in the skew angle determination unit 65. The skew angle determination unit 65 includes a straight line L1 indicating a first boundary between the shadow 28 detected by the skew angle detection unit 62 and the background plate 17, and a second shadow 28 and the document 9 by the document edge detection unit 64. The shape of the shadow 28 is specified based on the end portion 9e of the document 9 detected as the boundary of the shadow 28. For example, when the straight line L1 and the end portion 9e of the document 9 intersect with each other, the skew angle determination unit 65 can specify that the shadow 28 is a substantially triangular shape.

例えば図12に示すように、スキュー角度判定部65は、直線L1上の複数の位置P1,P2,P3,…,Pnのそれぞれから原稿9の端部9eまでの距離D1,D2,D3,…,Dnを算出する。これらの距離D1,D2,D3,…,Dnは、画素数をカウントことによって算出するようにしても良い。そしてスキュー角度判定部65は、それらの距離D1,D2,D3,…,Pnが原稿9の端部9eの略中央の位置に向かって単調減少している場合に直線L1と原稿9の端部9eとが互いに交叉していると判断する。 For example, as shown in FIG. 12, the skew angle determination unit 65 has distances D1, D2, D3, ... From each of the plurality of positions P1, P2, P3, ... , Dn is calculated. These distances D1, D2, D3, ..., Dn may be calculated by counting the number of pixels. Then, the skew angle determination unit 65 monotonically decreases the distances D1, D2, D3, ..., Pn toward the substantially center position of the end portion 9e of the document 9, and the straight line L1 and the end portion of the document 9. It is determined that 9e and 9e intersect with each other.

また、上記のように距離D1,D2,D3,…,Dnを算出する方向の他にも、例えば、スキュー角度判定部65は、原稿9の端部9eの傾きと、直線L1の傾き(スキュー角度θ)とを比較し、傾きの差が所定値以上である場合に、影28が略三角形であると判断するようにしても良い。 Further, in addition to the directions for calculating the distances D1, D2, D3, ..., Dn as described above, for example, the skew angle determination unit 65 has the inclination of the end portion 9e of the document 9 and the inclination of the straight line L1 (skew). It may be determined that the shadow 28 is a substantially triangular shape by comparing with the angle θ) and when the difference in inclination is equal to or larger than a predetermined value.

スキュー角度判定部65は、影28の形状が略三角形であり、スキュー角度θが不適切であると判定すると、その判定結果を画像補正部63へ出力する。画像補正部63は、スキュー角度判定部65においてスキュー角度θが不適切であると判定されると、スキュー角度θに基づくスキュー補正を行わない。これにより、画像読取装置2から出力される画像が劣化することを防止することができる。 When the skew angle determination unit 65 determines that the shape of the shadow 28 is substantially triangular and the skew angle θ is inappropriate, the determination result is output to the image correction unit 63. When the skew angle determination unit 65 determines that the skew angle θ is inappropriate, the image correction unit 63 does not perform skew correction based on the skew angle θ. This makes it possible to prevent the image output from the image reading device 2 from deteriorating.

また、スキュー角度判定部65は、影28の形状が略三角形であり、スキュー角度θが不適切であると判定すると、通知部68を機能させる。通知部68は、例えばシステムコントローラ40を介して操作パネル6に通知画面を表示し、ジョブの実行を指示したユーザーに対して正常なスキュー補正が行われていないことを通知する。このとき、通知部68は、原稿9の端部がカールしていることを通知するようにしても良い。このような通知により、ユーザーは、正常なスキュー補正が行われていないことを把握することが可能であり、高品質な画像を得るためには原稿9の端部がカールしていない状態に直して再度ジョブを実行すれば良いことを把握できる。 Further, when the skew angle determination unit 65 determines that the shape of the shadow 28 is substantially triangular and the skew angle θ is inappropriate, the skew angle determination unit 65 causes the notification unit 68 to function. The notification unit 68 displays a notification screen on the operation panel 6 via, for example, the system controller 40, and notifies the user instructed to execute the job that normal skew correction has not been performed. At this time, the notification unit 68 may notify that the end portion of the document 9 is curled. With such a notification, the user can know that normal skew correction has not been performed, and in order to obtain a high-quality image, the edges of the document 9 are corrected to be uncurled. You can understand that you should execute the job again.

図13は、上記のような構成を有する画像読取装置2において行われる処理手順の一例を示すフローチャートである。この処理は、制御部45のCPU48がプログラム50を実行することによって行われる。尚、図13では、一例として、第1画像読取部20が原稿9の第1面の画像を読み取る場合を例示する。 FIG. 13 is a flowchart showing an example of a processing procedure performed in the image reading device 2 having the above configuration. This process is performed by the CPU 48 of the control unit 45 executing the program 50. Note that FIG. 13 illustrates, as an example, a case where the first image reading unit 20 reads an image on the first surface of the document 9.

画像読取装置2は、ユーザーによるジョブの実行開始指示を検知すると、搬送駆動部47を駆動し、原稿9の搬送を開始する(ステップS10)。そして画像読取装置2は、原稿搬送路13に沿って搬送される原稿9が背景板17とコンタクトガラス31との間の読取位置を通過する際に第1画像読取部20を駆動し、原稿9の第1面の画像読み取りを開始する(ステップS11)。 When the image reading device 2 detects a job execution start instruction by the user, the image reading device 2 drives the transport driving unit 47 to start transporting the document 9 (step S10). Then, the image reading device 2 drives the first image reading unit 20 when the document 9 transported along the document transport path 13 passes through the reading position between the background plate 17 and the contact glass 31, and the document 9 is driven. The image reading of the first surface of the above surface is started (step S11).

画像読取装置2は、第1画像読取部20による画像読み取りを開始すると、影検知部61を機能させる。そして画像読取装置2は、第1画像読取部20から出力される画像に含まれる影28を検知するための影検知処理を行う(ステップS12)。次に、画像読取装置2は、スキュー角度検出部62を機能させ、画像から検出された影28に基づいて画像のスキュー角度θを検出する(ステップS13)。すなわち、スキュー角度検出部62は、第1画像読取部20から取得した画像において背景板17と影28との第1の境界を検知して第1の境界を直線L1で近似し、画像のスキュー角度θを検出する。 When the image reading device 2 starts reading an image by the first image reading unit 20, the shadow detecting unit 61 is made to function. Then, the image reading device 2 performs a shadow detecting process for detecting the shadow 28 included in the image output from the first image reading unit 20 (step S12). Next, the image reading device 2 makes the skew angle detection unit 62 function, and detects the skew angle θ of the image based on the shadow 28 detected from the image (step S13). That is, the skew angle detection unit 62 detects the first boundary between the background plate 17 and the shadow 28 in the image acquired from the first image reading unit 20, approximates the first boundary with a straight line L1, and skews the image. The angle θ is detected.

そして画像読取装置2は、スキュー角度判定処理を実行する(ステップS14)。図14は、スキュー角度判定処理(ステップS14)の詳細な処理手順の一例を示すフローチャートである。スキュー角度判定処理を開始すると、画像読取装置2は、原稿端部検知部64を機能させ、原稿端部検知処理を行う(ステップS20)。すなわち、原稿端部検知部64は、第1画像読取部20から取得した画像において原稿9と影28との第2の境界を検知することによって原稿9の端部を検知する。 Then, the image reading device 2 executes the skew angle determination process (step S14). FIG. 14 is a flowchart showing an example of a detailed processing procedure of the skew angle determination processing (step S14). When the skew angle determination process is started, the image reading device 2 makes the document edge detection unit 64 function and performs the document edge detection process (step S20). That is, the document edge detection unit 64 detects the edge of the document 9 by detecting the second boundary between the document 9 and the shadow 28 in the image acquired from the first image reading unit 20.

次に画像読取装置2は、スキュー角度判定部65を機能させる。スキュー角度判定部65は、背景板17と影28との第1の境界と、原稿9と影28との第2の境界とに基づき、影の形状を特定する(ステップS21)。そしてスキュー角度判定部65は、原稿9の端部近傍に現れている影28の形状が略三角形であるか否かを判断する(ステップS22)。その結果、影28の形状が略三角形である場合(ステップS22でYES)、スキュー角度判定部65は、ステップS13で検出されたスキュー角度θが不適切であると判定する(ステップS23)。これに対し、影28の形状が略三角形でない場合(ステップS22でNO)、スキュー角度判定部65は、ステップS13で検出されたスキュー角度θが適切であると判定する(ステップS24)。以上で、スキュー角度判定処理が終了する。 Next, the image reading device 2 causes the skew angle determination unit 65 to function. The skew angle determination unit 65 specifies the shape of the shadow based on the first boundary between the background plate 17 and the shadow 28 and the second boundary between the document 9 and the shadow 28 (step S21). Then, the skew angle determination unit 65 determines whether or not the shape of the shadow 28 appearing near the end portion of the document 9 is a substantially triangular shape (step S22). As a result, when the shape of the shadow 28 is substantially triangular (YES in step S22), the skew angle determination unit 65 determines that the skew angle θ detected in step S13 is inappropriate (step S23). On the other hand, when the shape of the shadow 28 is not substantially triangular (NO in step S22), the skew angle determination unit 65 determines that the skew angle θ detected in step S13 is appropriate (step S24). This completes the skew angle determination process.

図13のフローチャートに戻り、次に画像読取装置2は、スキュー角度判定処理においてスキュー角度θが適切であると判定されたか否かを判断する(ステップS15)。スキュー角度θが適切であると判定された場合(ステップS15でYES)、画像読取装置2は、画像補正部63を機能させ、ステップS13で検出されたスキュー角度θに基づいて画像のスキュー補正処理を実行する(ステップS16)。そして画像読取装置2は、スキュー補正が行われた画像を出力する(ステップS17)。 Returning to the flowchart of FIG. 13, the image reading device 2 then determines whether or not the skew angle θ is determined to be appropriate in the skew angle determination process (step S15). When it is determined that the skew angle θ is appropriate (YES in step S15), the image reading device 2 causes the image correction unit 63 to function, and skew correction processing of the image is performed based on the skew angle θ detected in step S13. Is executed (step S16). Then, the image reading device 2 outputs the skew-corrected image (step S17).

一方、スキュー角度θが不適切であると判定された場合(ステップS15でNO)、画像読取装置2は、画像に対するスキュー補正を行わずに、画像を出力する(ステップS18)。そして画像読取装置2は、通知部68を機能させ、スキュー補正のために検出されたスキュー角度θが不適切であったことを通知する(ステップS19)。以上で、画像読取装置2による処理が終了する。尚、複数枚の原稿9の連続読み取りを行う場合、画像読取装置2は、上記のような処理を繰り返し行うことにより、スキュー角度θが適切であるかを1枚ずつ判定していくことになる。 On the other hand, when it is determined that the skew angle θ is inappropriate (NO in step S15), the image reading device 2 outputs the image without performing skew correction on the image (step S18). Then, the image reading device 2 makes the notification unit 68 function, and notifies that the skew angle θ detected for skew correction is inappropriate (step S19). This completes the processing by the image reading device 2. When continuously reading a plurality of originals 9, the image reading device 2 repeatedly performs the above processing to determine whether the skew angle θ is appropriate one by one. ..

また、上記においては、第1画像読取部20が原稿9の第1面の画像を読み取った場合の処理を例示したが、第2画像読取部26が原稿9の第2面の画像を読み取った場合にも上記と同様の処理を適用することができる。 Further, in the above, the process when the first image reading unit 20 reads the image on the first surface of the document 9 is illustrated, but the second image reading unit 26 reads the image on the second surface of the document 9. In this case, the same processing as above can be applied.

以上のように、本実施形態の画像読取装置2は、原稿搬送部3によって搬送される原稿9が所定の読取位置を通過する際に原稿9の画像を読み取ることが可能であり、原稿9が所定の読取位置を通過する際に読み取った画像において原稿9の端部近傍に現れている影28を検知し、その影28に基づいて画像のスキュー角度θを検出して画像のスキュー補正を行うように構成されている。そして画像読取装置2は、原稿9の端部近傍に現れている影28の形状に基づいて、スキュー補正のために検出されたスキュー角度θが適切であるか否かを判定する構成を備えている。このような構成によれば、原稿9の先端部片側においてカール9aが生じている場合には、スキュー補正のために検出されたスキュー角度θが不適切であることを判定することが可能である。つまり、本実施形態の画像読取装置2は、原稿9がカールしている場合にスキュー角度θの誤検出を判定することが可能であり、スキュー補正によって画像を劣化させてしまうことを防止することができる構成となっている。 As described above, the image reading device 2 of the present embodiment can read the image of the document 9 when the document 9 conveyed by the document conveying unit 3 passes through a predetermined reading position, and the document 9 can read the image. A shadow 28 appearing near the end of the original 9 in the image scanned when passing through a predetermined scanning position is detected, and the skew angle θ of the image is detected based on the shadow 28 to perform skew correction of the image. It is configured as follows. The image reading device 2 is provided with a configuration for determining whether or not the skew angle θ detected for skew correction is appropriate based on the shape of the shadow 28 appearing near the end of the document 9. There is. According to such a configuration, when the curl 9a is generated on one side of the tip portion of the document 9, it is possible to determine that the skew angle θ detected for skew correction is inappropriate. .. That is, the image reading device 2 of the present embodiment can determine erroneous detection of the skew angle θ when the document 9 is curled, and prevents the image from being deteriorated by skew correction. It is configured to be able to.

尚、上記においては、スキュー角度θが不適切である場合に、画像読取装置2が画像に対するスキュー補正を行わずに画像を出力する場合を例示したが、これに限られるものではなく、スキュー角度θが不適切であっても画像に対するスキュー補正を行ってから画像を出力するようにしても良い。また、スキュー角度θが不適切である場合、画像読取装置2は、スキュー補正を行っていない画像と、スキュー補正を行った画像との2つの画像を出力するようにしても良い。 In the above description, when the skew angle θ is inappropriate, the image reading device 2 outputs an image without performing skew correction on the image, but the present invention is not limited to this, and the skew angle is not limited to this. Even if θ is inappropriate, the image may be output after skew correction is performed on the image. Further, when the skew angle θ is inappropriate, the image reading device 2 may output two images, an image without skew correction and an image with skew correction.

また、上記においては、原稿9の端部近傍において、原稿9の端部の副走査方向に沿って影28が現れる場合を例示した。しかし、光源22の配置態様によっては、例えば図15に示すように、原稿9の端部の主走査方向に沿って影28が現れることも起こり得る。仮に図15に示すように原稿9の端部の主走査方向に影28が現れたとしても、上述した処理と同様の処理を適用することで、スキュー角度θを検出することが可能であり、上記と同様の処理を行うことで、スキュー角度θの適否を判定することも可能である。 Further, in the above, the case where the shadow 28 appears in the vicinity of the edge of the document 9 along the sub-scanning direction of the edge of the document 9 is illustrated. However, depending on the arrangement mode of the light source 22, a shadow 28 may appear along the main scanning direction of the end portion of the document 9, for example, as shown in FIG. Even if a shadow 28 appears in the main scanning direction at the end of the document 9 as shown in FIG. 15, the skew angle θ can be detected by applying the same processing as the above processing. By performing the same processing as above, it is possible to determine the suitability of the skew angle θ.

(第2実施形態)
次に、本発明の第2実施形態ついて説明する。本実施形態では、スキュー角度θの適否を判定する処理として、第1実施形態とは異なる処理について説明する。尚、以下においては、第1実施形態と異なる部分について説明する。
(Second Embodiment)
Next, the second embodiment of the present invention will be described. In the present embodiment, a process different from that of the first embodiment will be described as a process for determining the suitability of the skew angle θ. In the following, the parts different from the first embodiment will be described.

図16は、第2実施形態における画像処理部54の構成例を示すブロック図である。図5に示すように、画像処理部54は、影検知部61と、スキュー角度検出部62と、画像補正部63と、スキュー角度判定部65と、階調値取得部66と、領域判別部67と、通知部68とを備えている。これらのうち、影検知部61、スキュー角度検出部62、画像補正部63及び通知部68のそれぞれは、第1実施形態で説明したものと同様である。尚、以下においては、説明を簡単にするために第1画像読取部20が原稿の画像を読み取った場合を例示する。 FIG. 16 is a block diagram showing a configuration example of the image processing unit 54 in the second embodiment. As shown in FIG. 5, the image processing unit 54 includes a shadow detection unit 61, a skew angle detection unit 62, an image correction unit 63, a skew angle determination unit 65, a gradation value acquisition unit 66, and an area determination unit. 67 and a notification unit 68 are provided. Of these, each of the shadow detection unit 61, the skew angle detection unit 62, the image correction unit 63, and the notification unit 68 is the same as that described in the first embodiment. In the following, in order to simplify the explanation, a case where the first image reading unit 20 reads the image of the original is illustrated.

影検知部61は、第1実施形態と同様に、読取センサー24が読み取った画像の端部に現れている影28を検知する。スキュー角度検出部62は、読取センサー24が読み取った画像において背景板17と影28との第1の境界を特定し、その第1の境界を近似した直線L1を求める。そしてスキュー角度検出部62は、直線L1の傾きに基づいて画像のスキュー角度θを検出する。 The shadow detection unit 61 detects the shadow 28 appearing at the end of the image read by the reading sensor 24, as in the first embodiment. The skew angle detection unit 62 identifies the first boundary between the background plate 17 and the shadow 28 in the image read by the reading sensor 24, and obtains a straight line L1 that approximates the first boundary. Then, the skew angle detection unit 62 detects the skew angle θ of the image based on the inclination of the straight line L1.

階調値取得部66は、スキュー角度検出部62によって背景板17と影28との第1の境界に対応する直線L1が求められると、その直線L1上に位置する画素の階調値を取得する。図17は、階調値取得部66が階調値を取得する画素の例を示す図である。階調値取得部66は、背景板17と影28との第1の境界を近似した直線L1上に位置する画素P1,P2,P3,P4,…,Pm,…,Pnを順に特定していき、それら特定した画像P1,P2,P3,P4,…,Pm,…,Pnの階調値を取得する。 When the skew angle detection unit 62 obtains the straight line L1 corresponding to the first boundary between the background plate 17 and the shadow 28, the gradation value acquisition unit 66 acquires the gradation values of the pixels located on the straight line L1. do. FIG. 17 is a diagram showing an example of pixels in which the gradation value acquisition unit 66 acquires gradation values. The gradation value acquisition unit 66 specifies pixels P1, P2, P3, P4, ..., Pm, ..., Pn located on a straight line L1 that approximates the first boundary between the background plate 17 and the shadow 28 in order. Then, the gradation values of the specified images P1, P2, P3, P4, ..., Pm, ..., Pn are acquired.

領域判別部67は、階調値取得部66によって取得される階調値に基づき、直線L1上の各画素が属する領域を判別する。図18は、直線L1上の画素から取得された階調値の一例を示す図である。図18に示すように直線L1は、背景板17が写り込んだ背景領域R1と、影28が写り込んだ影領域R2と、原稿9が写り込んだ原稿領域R3との3つの領域のいずれかに属する。領域判別部67は、直線L1上の各画素の階調値を解析することにより、各画素がいずれの領域に属するかを判別する。 The area determination unit 67 determines the area to which each pixel on the straight line L1 belongs based on the gradation value acquired by the gradation value acquisition unit 66. FIG. 18 is a diagram showing an example of gradation values acquired from pixels on the straight line L1. As shown in FIG. 18, the straight line L1 is any one of three areas: a background area R1 in which the background plate 17 is reflected, a shadow area R2 in which the shadow 28 is reflected, and a document area R3 in which the document 9 is reflected. Belongs to. The area determination unit 67 determines which area each pixel belongs to by analyzing the gradation value of each pixel on the straight line L1.

例えば、領域判別部67は、メモリ49に記憶されている背景板階調値V1を取得し、その背景板階調値V1との差が所定値未満の階調値である画素を背景領域R1として特定する。 For example, the area determination unit 67 acquires the background plate gradation value V1 stored in the memory 49, and the background area R1 is a pixel whose difference from the background plate gradation value V1 is less than a predetermined value. Specify as.

また、領域判別部67は、予め設定される影判定閾値Vthを取得し、その影判定閾値Vth未満の階調値である画素を影領域R2として特定する。 Further, the area determination unit 67 acquires a preset shadow determination threshold value Vth, and identifies pixels having a gradation value less than the shadow determination threshold value Vth as the shadow area R2.

さらに、領域判別部67は、例えばユーザーによって予め指定される原稿階調値V2を取得し、その原稿階調値V2と等しい階調値である画素を原稿領域R3として特定する。尚、原稿階調値V2は、例えばユーザーがスキャンジョブの設定操作を行うときに原稿9の種類に応じてユーザーが指定する。また、原稿階調値V2は、領域判別部67が自動検出するようにしても良い。例えば、領域判別部67は、読取センサー24が読み取った画像のうちで原稿9が写っている部分の画像を切り出し、その切り出した画像に含まれる各画素の階調値に基づいてヒストグラムを作成する。そして領域判別部67は、そのヒストグラムにおいて度数ピークを示す階調値を原稿階調値V2として取得するようにしても良い。 Further, the area determination unit 67 acquires, for example, a document gradation value V2 designated in advance by the user, and identifies pixels having a gradation value equal to the document gradation value V2 as the document area R3. The document gradation value V2 is specified by the user according to the type of the document 9, for example, when the user performs a scan job setting operation. Further, the original gradation value V2 may be automatically detected by the area discrimination unit 67. For example, the area discrimination unit 67 cuts out an image of a portion of the image read by the reading sensor 24 in which the document 9 is shown, and creates a histogram based on the gradation value of each pixel included in the cut out image. .. Then, the area discrimination unit 67 may acquire the gradation value indicating the frequency peak in the histogram as the original gradation value V2.

領域判別部67は、上記のようにして直線L1上の各画素が、背景領域R1、影領域R2及び原稿領域R3のいずれに属するかを判別する。そして領域判別部67は、その判別結果をスキュー角度判定部65へ出力する。 As described above, the area determination unit 67 determines whether each pixel on the straight line L1 belongs to the background area R1, the shadow area R2, or the document area R3. Then, the area discrimination unit 67 outputs the discrimination result to the skew angle determination unit 65.

スキュー角度判定部65は、直線L1が含まれる領域に基づいて影28の形状を特定することにより、スキュー角度検出部62で検出されたスキュー角度θの適否を判定する。例えば、直線L1の少なくとも一部が原稿領域R3に属する場合、直線L1が原稿領域R3と交わっていることになる。そのため、スキュー角度判定部65は、直線L1の少なくとも一部が原稿領域R3に属する場合に影28の形状が略三角形であることを特定し、スキュー角度θが不適切であると判定する。スキュー角度θが不適切であると判定すると、スキュー角度判定部65は、その判定結果を画像補正部63へ出力する。また、スキュー角度判定部65は、通知部68を機能させ、ユーザーに対して正常なスキュー補正が行われていないことを通知させる処理を行わせる。 The skew angle determination unit 65 determines the suitability of the skew angle θ detected by the skew angle detection unit 62 by specifying the shape of the shadow 28 based on the region including the straight line L1. For example, when at least a part of the straight line L1 belongs to the document area R3, the straight line L1 intersects the document area R3. Therefore, the skew angle determination unit 65 identifies that the shape of the shadow 28 is a substantially triangular shape when at least a part of the straight line L1 belongs to the document region R3, and determines that the skew angle θ is inappropriate. If it is determined that the skew angle θ is inappropriate, the skew angle determination unit 65 outputs the determination result to the image correction unit 63. Further, the skew angle determination unit 65 causes the notification unit 68 to function to perform a process of notifying the user that normal skew correction has not been performed.

以上のように本実施形態の画像読取装置2は、第1の境界を近似した直線L1に沿って画素毎の階調値を取得する階調値取得部66と、階調値取得部66によって取得される画素毎の階調値に基づいて、直線L1が背景領域R1、影領域R2及び原稿領域R3のいずれの領域に属するかを判別する領域判別部67とを備えており、スキュー角度判定部65が領域判別部67によって直線L1の少なくとも一部が原稿領域R3に属すると判別された場合に影28の形状が略三角形であることを特定し、スキュー角度θが不適切であると判定する。このような構成であっても、第1実施形態と同様に、原稿9の先端部片側においてカール9aが生じている場合には、スキュー補正のために検出されたスキュー角度θが不適切であることを確実に判定することが可能である。つまり、本実施形態の画像読取装置2においても、原稿9がカールしている場合にスキュー角度θの誤検出を判定することが可能であり、スキュー補正によって画像を劣化させてしまうことを防止することが可能である。 As described above, the image reading device 2 of the present embodiment is composed of a gradation value acquisition unit 66 that acquires a gradation value for each pixel along a straight line L1 that approximates the first boundary, and a gradation value acquisition unit 66. A region determination unit 67 for determining which region of the background region R1, the shadow region R2, and the original region R3 the straight line L1 belongs to based on the acquired gradation value for each pixel is provided, and the skew angle determination is determined. When the region 65 determines that at least a part of the straight line L1 belongs to the document region R3 by the region discrimination unit 67, it is specified that the shape of the shadow 28 is a substantially triangular shape, and it is determined that the skew angle θ is inappropriate. do. Even with such a configuration, when the curl 9a is generated on one side of the tip portion of the document 9, the skew angle θ detected for skew correction is inappropriate, as in the first embodiment. It is possible to reliably determine that. That is, even in the image reading device 2 of the present embodiment, it is possible to determine erroneous detection of the skew angle θ when the document 9 is curled, and it is possible to prevent the image from being deteriorated by the skew correction. It is possible.

尚、本実施形態において上述した点以外については、第1実施形態で説明したものと同様である。 The points other than those described above in the present embodiment are the same as those described in the first embodiment.

(変形例)
以上、本発明に関する実施形態について説明したが、本発明は、上記実施形態において説明した内容のものに限られるものではなく、種々の変形例が適用可能である。
(Modification example)
Although the embodiments relating to the present invention have been described above, the present invention is not limited to the contents described in the above embodiments, and various modifications can be applied.

例えば上記実施形態では、原稿9の先端部片側にカール9aが生じている場合にそれを検知することにより、影28に基づいて検出されるスキュー角度θが不適切であることを判定する場合を説明した。一方、図19に示すように、原稿9の先端部の両側にカール9a,9bが生じることも起こり得る。図19に示すように原稿9の先端部の両側にカール9a,9bが生じた場合、それら2つのカール9a,9bが互いに均等なカールであれば、読取センサー24が読み取った画像において原稿9の先端部に2つの均等な影28が現れる。図20は、先端部に均等な2つのカール9a,9bが生じている原稿9を読み取った画像を示す図である。図20(a)に示すように、読取センサー24が読み取った画像には、原稿9の端部近傍において2つの影28が写り込んでいる。この場合、影検知部61は、原稿9の端部近傍において2つの影28を検知する。スキュー角度検出部62は、原稿9の端部近傍において複数の影28が検知された場合、それら複数の影28の先端位置を特定し、それら先端位置を結ぶ直線L1を近似する。これにより、図20(b)に示すような直線L1を得ることができる。つまり、原稿9の端部近傍において複数の影28が検知された場合、スキュー角度検出部62は、上記実施形態で説明したように影28と背景板17との第1の境界を近似した直線を求めるのではなく、複数の影28の先端位置を結ぶ直線L1を求めるのである。このようにして求められる直線L1は、原稿9の端部のエッジと略平行な状態となる。この場合、スキュー角度判定部65は、図20(b)に示す直線L1に基づいてスキュー角度θの適否を判定すれば良い。例えば、第2実施形態で説明したように、スキュー角度判定部65において直線L1が属する領域に基づいてスキュー角度θの適否が判定される場合、図20(b)に示す直線L1は、2つの影領域R2に属し、且つ、2つの影領域R2の間の部分が背景領域R1に属していることが特定される。したがって、スキュー角度判定部65は、直線L1が2つの影領域R2に属し、且つ、2つの影領域R2の間の部分が背景領域R1に属している場合には、影28の形状が略三角形でないと判定すれば良い。これにより、画像補正部63において画像に対するスキュー補正が行われるようになる。 For example, in the above embodiment, when the curl 9a is generated on one side of the tip of the document 9, it is detected to determine that the skew angle θ detected based on the shadow 28 is inappropriate. explained. On the other hand, as shown in FIG. 19, curls 9a and 9b may occur on both sides of the tip of the original document 9. As shown in FIG. 19, when curls 9a and 9b are generated on both sides of the tip of the document 9, if the two curls 9a and 9b are evenly curled with each other, the image of the document 9 in the image read by the reading sensor 24 Two even shadows 28 appear at the tip. FIG. 20 is a diagram showing a scanned image of a document 9 in which two even curls 9a and 9b are generated at the tip portion. As shown in FIG. 20A, two shadows 28 are reflected in the image read by the reading sensor 24 in the vicinity of the end portion of the document 9. In this case, the shadow detection unit 61 detects two shadows 28 in the vicinity of the end portion of the document 9. When a plurality of shadows 28 are detected near the end of the document 9, the skew angle detection unit 62 specifies the tip positions of the plurality of shadows 28 and approximates the straight line L1 connecting the tip positions. As a result, a straight line L1 as shown in FIG. 20 (b) can be obtained. That is, when a plurality of shadows 28 are detected near the edge of the document 9, the skew angle detection unit 62 is a straight line that approximates the first boundary between the shadow 28 and the background plate 17 as described in the above embodiment. Instead of finding, the straight line L1 connecting the tip positions of the plurality of shadows 28 is found. The straight line L1 thus obtained is in a state substantially parallel to the edge of the end portion of the document 9. In this case, the skew angle determination unit 65 may determine the suitability of the skew angle θ based on the straight line L1 shown in FIG. 20 (b). For example, as described in the second embodiment, when the suitability of the skew angle θ is determined by the skew angle determination unit 65 based on the region to which the straight line L1 belongs, the straight line L1 shown in FIG. 20B has two lines. It is specified that it belongs to the shadow region R2 and the portion between the two shadow regions R2 belongs to the background region R1. Therefore, in the skew angle determination unit 65, when the straight line L1 belongs to the two shadow regions R2 and the portion between the two shadow regions R2 belongs to the background region R1, the shape of the shadow 28 is substantially triangular. It should be judged that it is not. As a result, the image correction unit 63 performs skew correction on the image.

尚、原稿9の先端部の両側に生じる2つのカール9a,9bが互いに均等でない場合には、一方の影28の略三角形が他方の影28の略三角形よりも大きくなり、2つの影28の先端位置を結ぶ直線L1は、原稿9の端部のエッジと略平行な状態にはならない。そのため、スキュー角度判定部65は、2つの影28の大きさが均等であるか否かを判定し、2つの影28の先端位置を結ぶ直線L1が原稿9の先端部のエッジに対して平行であるか否かを判定し、平行でない場合にはスキュー角度θが不適切であると判定しても良い。 If the two curls 9a and 9b generated on both sides of the tip of the document 9 are not equal to each other, the substantially triangle of one shadow 28 becomes larger than the substantially triangle of the other shadow 28, and the two shadows 28 The straight line L1 connecting the tip positions is not substantially parallel to the edge of the end portion of the document 9. Therefore, the skew angle determination unit 65 determines whether or not the sizes of the two shadows 28 are equal, and the straight line L1 connecting the tip positions of the two shadows 28 is parallel to the edge of the tip portion of the document 9. If it is not parallel, it may be determined that the skew angle θ is inappropriate.

また、上記実施形態では、主として第1画像読取部20が原稿9を読み取った場合のスキュー補正について説明した。しかし、上述したスキュー補正は、第1画像読取部20が原稿9の第1面を読み取った場合のみに適用可能なものではなく、第2画像読取部26が原稿9の第2面を読み取った場合にも適用可能であることは勿論である。 Further, in the above embodiment, the skew correction when the first image reading unit 20 mainly reads the document 9 has been described. However, the above-mentioned skew correction is not applicable only when the first image reading unit 20 reads the first surface of the document 9, and the second image reading unit 26 reads the second surface of the document 9. Of course, it can also be applied to cases.

また、上記実施形態では、第1画像読取部20及び第2画像読取部26において原稿9を照明する光源22として、原稿読み取り位置の上流側と下流側との双方に光源22a,22bを配置した構成例を説明した。しかし、原稿9の先端部においてカールが生じている場合に略三角形の影28を出現させるためには、少なくとも原稿読み取り位置の上流側の光源22aが設けられていれば良く、下流側の光源22bは必須ではない。 Further, in the above embodiment, the light sources 22a and 22b are arranged on both the upstream side and the downstream side of the document reading position as the light source 22 for illuminating the document 9 in the first image reading unit 20 and the second image reading unit 26. A configuration example has been described. However, in order to make the shadow 28 having a substantially triangular shape appear when the tip of the document 9 is curled, it is sufficient that at least the light source 22a on the upstream side of the document reading position is provided, and the light source 22b on the downstream side is provided. Is not required.

また、上記実施形態では、画像読取装置2が画像処理装置1に搭載されたものである場合を例示した。しかし、これに限られるものではなく、上述した画像読取装置2は、それ単独で構成されるものであっても構わない。 Further, in the above embodiment, the case where the image reading device 2 is mounted on the image processing device 1 is exemplified. However, the present invention is not limited to this, and the above-mentioned image reading device 2 may be configured by itself.

また、上記実施形態では、CPU48によって実行されるプログラム50が予めメモリ49に記憶されている場合を例示した。しかし、プログラム50は、事後的に画像読取装置2にインストールされるものであっても構わない。この場合、プログラム50は、ネットワークなどを介して画像読取装置2にインストール可能な態様で提供されるものであっても良いし、またCD−ROMやUSBメモリなどのコンピュータ読み取り可能な記録媒体に記録された状態で提供されるものであっても構わない。 Further, in the above embodiment, the case where the program 50 executed by the CPU 48 is stored in the memory 49 in advance is illustrated. However, the program 50 may be installed in the image reader 2 after the fact. In this case, the program 50 may be provided in a manner that can be installed in the image reading device 2 via a network or the like, or is recorded on a computer-readable recording medium such as a CD-ROM or a USB memory. It may be provided in the same state as before.

1 画像処理装置
2 画像読取装置
3 原稿搬送部(原稿搬送手段)
4 スキャナ部
20 第1画像読取部(画像読取手段)
26 第2画像読取部(画像読取手段)
50 プログラム
61 影検知部(影検知手段)
62 スキュー角度検出部(スキュー角度検出手段)
63 画像補正部(画像補正手段)
64 原稿端部検知部(原稿端部検知手段)
65 スキュー角度判定部(スキュー角度判定手段)
66 階調値取得部(階調値取得手段)
67 領域判別部(領域判別手段)
68 通知部(通知手段)
1 Image processing device 2 Image reader 3 Document transfer unit (document transfer means)
4 Scanner unit 20 First image reading unit (image reading means)
26 Second image reading unit (image reading means)
50 Program 61 Shadow detection unit (shadow detection means)
62 Skew angle detection unit (skew angle detection means)
63 Image correction unit (image correction means)
64 Manuscript edge detection unit (manuscript edge detection means)
65 Skew angle determination unit (skew angle determination means)
66 Gradation value acquisition unit (gradation value acquisition means)
67 Area discrimination unit (area discrimination means)
68 Notification unit (notification means)

Claims (17)

原稿の自動搬送を行う原稿搬送手段と、
前記原稿搬送手段によって搬送される原稿が所定の読取位置を通過する際に画像を読み取る画像読取手段と、
前記画像において原稿の端部近傍に現れている影を検知する影検知手段と、
前記影に基づいて前記画像のスキュー角度を検出するスキュー角度検出手段と、
前記影の形状に基づいて前記スキュー角度の適否を判定するスキュー角度判定手段と、
を備えることを特徴とする画像読取装置。
Document transport means for automatic document transport and
An image reading means that reads an image when the document conveyed by the document conveying means passes through a predetermined reading position.
A shadow detecting means for detecting a shadow appearing near the edge of the document in the image, and a shadow detecting means.
A skew angle detecting means for detecting the skew angle of the image based on the shadow, and
A skew angle determining means for determining the suitability of the skew angle based on the shape of the shadow, and
An image reading device comprising.
前記スキュー角度判定手段は、前記影の形状が略三角形である場合に前記スキュー角度が不適であると判定することを特徴とする請求項1に記載の画像読取装置。 The image reading device according to claim 1, wherein the skew angle determining means determines that the skew angle is unsuitable when the shape of the shadow is a substantially triangular shape. 前記スキュー角度判定手段は、前記影の形状が略三角形でない場合に前記スキュー角度が適切であると判定することを特徴とする請求項1又は2に記載の画像読取装置。 The image reading device according to claim 1 or 2, wherein the skew angle determining means determines that the skew angle is appropriate when the shape of the shadow is not a substantially triangular shape. 前記スキュー角度判定手段によって前記スキュー角度が適切であると判定された場合に、前記スキュー角度に基づいて前記画像に対するスキュー補正を行う画像補正手段、
を更に備えることを特徴とする請求項1乃至3のいずれかに記載の画像読取装置。
An image correction means that performs skew correction on the image based on the skew angle when the skew angle determining means determines that the skew angle is appropriate.
The image reading device according to any one of claims 1 to 3, further comprising.
前記原稿搬送手段は、前記画像読取手段と、前記画像読取手段に対向して配置される背景板との間に原稿を通過させ、
前記スキュー角度検出手段は、前記画像において前記影と前記背景板との第1の境界を検知することにより前記スキュー角度を検出することを特徴とする請求項1乃至4のいずれかに記載の画像読取装置。
The document transporting means passes a document between the image reading means and a background plate arranged so as to face the image reading means.
The image according to any one of claims 1 to 4, wherein the skew angle detecting means detects the skew angle by detecting a first boundary between the shadow and the background plate in the image. Reader.
前記スキュー角度検出手段は、前記第1の境界を直線で近似し、該直線が前記画像読取手段によって読み取られる主走査方向又は副走査方向に対して成す角度を前記スキュー角度として検出することを特徴とする請求項5に記載の画像読取装置。 The skew angle detecting means is characterized in that the first boundary is approximated by a straight line, and the angle formed by the straight line with respect to the main scanning direction or the sub-scanning direction read by the image reading means is detected as the skew angle. The image reading device according to claim 5. 前記スキュー角度判定手段は、前記第1の境界に基づいて、前記影の形状を特定することを特徴とする請求項5又は6に記載の画像読取装置。 The image reading device according to claim 5 or 6, wherein the skew angle determining means identifies the shape of the shadow based on the first boundary. 前記画像において前記影と原稿の端部との第2の境界を検知する原稿端部検知手段、
を更に備え、
前記スキュー角度判定手段は、前記第1の境界と前記第2の境界とに基づいて前記影の形状を特定することを特徴とする請求項5乃至7のいずれかに記載の画像読取装置。
A document edge detecting means for detecting a second boundary between the shadow and the edge of the document in the image,
Further prepare
The image reading device according to any one of claims 5 to 7, wherein the skew angle determining means identifies the shape of the shadow based on the first boundary and the second boundary.
前記スキュー角度判定手段は、前記第1の境界と前記第2の境界とが交叉している場合に前記影の形状が略三角形であることを特定することを特徴とする請求項8に記載の画像読取装置。 The eighth aspect of the present invention is characterized in that the skew angle determining means specifies that the shape of the shadow is a substantially triangular shape when the first boundary and the second boundary intersect. Image reader. 前記スキュー角度判定手段は、前記第1の境界上の複数の位置のそれぞれから前記第2の境界までの距離を算出し、前記距離が前記第2の境界の中央に向かって単調減少している場合に前記第1の境界が前記第2の境界と交叉していると判断することを特徴とする請求項9に記載の画像読取装置。 The skew angle determining means calculates the distance from each of the plurality of positions on the first boundary to the second boundary, and the distance is monotonically decreasing toward the center of the second boundary. The image reading device according to claim 9, wherein it is determined that the first boundary intersects with the second boundary in some cases. 前記第1の境界を近似した直線に沿って画素毎の階調値を取得する階調値取得手段と、
前記階調値取得手段によって取得される画素毎の階調値に基づいて、前記直線が背景領域、影領域及び原稿領域のいずれの領域に属するかを判別する領域判別手段と、
を更に備え、
前記スキュー角度判定手段は、前記領域判別手段によって前記直線の少なくとも一部が原稿領域に属すると判別された場合、前記影の形状が略三角形であることを特定することを特徴とする請求項5乃至10のいずれかに記載の画像読取装置。
A gradation value acquisition means for acquiring a gradation value for each pixel along a straight line that approximates the first boundary,
An area determination means for determining whether the straight line belongs to a background area, a shadow area, or a document area based on the gradation value for each pixel acquired by the gradation value acquisition means.
Further prepare
5. The skew angle determining means is characterized in that when it is determined by the area determining means that at least a part of the straight line belongs to the original area, the shape of the shadow is substantially triangular. The image reading device according to any one of 10.
前記スキュー角度判定手段は、前記領域判別手段によって前記直線が2つの影領域に属しており、且つ、前記2つの影領域の間の部分が背景領域に属していると判別された場合、前記影の形状が略三角形でないことを特定することを特徴とする請求項11に記載の画像読取装置。 When the area determination means determines that the straight line belongs to two shadow areas and the portion between the two shadow areas belongs to the background area, the skew angle determining means determines that the shadow belongs to the background area. The image reading device according to claim 11, wherein the shape of the image is not substantially triangular. 前記領域判別手段は、前記階調値取得手段によって取得される階調値が予め指定された原稿階調値に等しい場合、前記直線上における当該画素を原稿領域として判別することを特徴とする請求項11又は12に記載の画像読取装置。 The area determination means is characterized in that when the gradation value acquired by the gradation value acquisition means is equal to a predetermined document gradation value, the pixel on the straight line is determined as the document area. Item 12. The image reading device according to Item 11. 前記領域判別手段は、前記階調値取得手段によって取得される階調値が予め設定される背景板階調値に等しい場合、前記直線上における当該画素を背景領域として判別することを特徴とする請求項11又は12に記載の画像読取装置。 The area discrimination means is characterized in that when the gradation value acquired by the gradation value acquisition means is equal to a preset background plate gradation value, the pixel on the straight line is discriminated as a background region. The image reading device according to claim 11 or 12. 前記スキュー角度判定手段によって前記スキュー角度が不適であると判定された場合に前記スキュー角度が不適であることを通知する通知手段、
を更に備えることを特徴とする請求項1乃至14のいずれかに記載の画像読取装置。
A notification means for notifying that the skew angle is unsuitable when the skew angle determining means determines that the skew angle is unsuitable.
The image reading device according to any one of claims 1 to 14, further comprising.
原稿の自動搬送を行う原稿搬送手段と、
前記原稿搬送手段によって搬送される原稿が所定の読取位置を通過する際に画像を読み取る画像読取手段と、
を備える画像読取装置において、原稿から読み取った画像のスキュー角度の適否を判定するスキュー角度判定方法であって、
前記画像において原稿の端部近傍に現れている影を検知する影検知ステップと、
前記影に基づいて前記画像のスキュー角度を検出するスキュー角度検出ステップと、
前記影の形状に基づいて前記スキュー角度の適否を判定するスキュー角度判定ステップと、
を有することを特徴とするスキュー角度判定方法。
A document transporting means that automatically transports documents and
An image reading means that reads an image when the document conveyed by the document conveying means passes through a predetermined reading position.
It is a skew angle determination method for determining the suitability of the skew angle of an image read from a document in an image reading device including the above.
A shadow detection step for detecting a shadow appearing near the edge of the document in the image, and a shadow detection step.
A skew angle detection step that detects the skew angle of the image based on the shadow,
A skew angle determination step for determining the suitability of the skew angle based on the shape of the shadow, and
A skew angle determination method comprising.
原稿の自動搬送を行う原稿搬送手段と、
前記原稿搬送手段によって搬送される原稿が所定の読取位置を通過する際に画像を読み取る画像読取手段と、
を備える画像読取装置において実行されるプログラムであって、前記画像読取装置に、
前記画像において原稿の端部近傍に現れている影を検知する影検知ステップと、
前記影に基づいて前記画像のスキュー角度を検出するスキュー角度検出ステップと、
前記影の形状に基づいて前記スキュー角度の適否を判定するスキュー角度判定ステップと、
を実行させることを特徴とするプログラム。
Document transport means for automatic document transport and
An image reading means that reads an image when the document conveyed by the document conveying means passes through a predetermined reading position.
A program executed in an image reading device comprising the above-mentioned image reading device.
A shadow detection step for detecting a shadow appearing near the edge of the document in the image, and a shadow detection step.
A skew angle detection step that detects the skew angle of the image based on the shadow,
A skew angle determination step for determining the suitability of the skew angle based on the shape of the shadow, and
A program characterized by executing.
JP2020102090A 2020-06-12 2020-06-12 Image reading device, skew angle determination method, and program Pending JP2021197605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020102090A JP2021197605A (en) 2020-06-12 2020-06-12 Image reading device, skew angle determination method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020102090A JP2021197605A (en) 2020-06-12 2020-06-12 Image reading device, skew angle determination method, and program

Publications (1)

Publication Number Publication Date
JP2021197605A true JP2021197605A (en) 2021-12-27

Family

ID=79196426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020102090A Pending JP2021197605A (en) 2020-06-12 2020-06-12 Image reading device, skew angle determination method, and program

Country Status (1)

Country Link
JP (1) JP2021197605A (en)

Similar Documents

Publication Publication Date Title
JP4678278B2 (en) Double-sided simultaneous reading device
JP7131415B2 (en) TILT DETECTION DEVICE, READING DEVICE, IMAGE PROCESSING DEVICE, AND TILT DETECTION METHOD
JP7211238B2 (en) Edge detection device, tilt correction device, reading device, image processing device, and edge detection method
US9888142B2 (en) Image scanning apparatus
JP5556391B2 (en) Image reading device
US20100309530A1 (en) Image reading apparatus
JPH11252351A (en) Image reader
JP6463025B2 (en) Image reading device
US8508803B2 (en) Image reading apparatus and image reading method including a dividing unit that divides image data into vertical-streak-correction subject data
US6236471B1 (en) Vertical alignment correction apparatus and method
JP2015198327A (en) Image reading device, image reading method, and computer program
JP2021197605A (en) Image reading device, skew angle determination method, and program
JP2022012616A (en) Image reading apparatus
JP3417723B2 (en) Image reading device
JP2018085650A (en) Reading device and control method
JP2021125827A (en) Image reading device
US8248673B2 (en) Image reading apparatus capable of separating pages of images
JP7006145B2 (en) Image processing device, image processing method
US10257384B2 (en) Image processing apparatus
JP2020123796A (en) Image reading device, image reading device control method, and program
JP2011193190A (en) Image reader
US20230145962A1 (en) Image reading apparatus and control method for image reading
US11394842B2 (en) Image reading apparatus determines whether a document is chromatic or achromatic and performing a conveyance speed of a document based on the setting of a color determination, and performing conveyance speed based on setting of an output resolution without setting whether to perform a color determination
US20220377192A1 (en) Image reading apparatus and image processing method
JP5966279B2 (en) Image reading apparatus and image forming apparatus