JP2016192678A - Image reading device and image reading method - Google Patents

Image reading device and image reading method Download PDF

Info

Publication number
JP2016192678A
JP2016192678A JP2015071604A JP2015071604A JP2016192678A JP 2016192678 A JP2016192678 A JP 2016192678A JP 2015071604 A JP2015071604 A JP 2015071604A JP 2015071604 A JP2015071604 A JP 2015071604A JP 2016192678 A JP2016192678 A JP 2016192678A
Authority
JP
Japan
Prior art keywords
image
tilt angle
unit
rotation correction
document
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
JP2015071604A
Other languages
Japanese (ja)
Inventor
敦 藤木
Atsushi Fujiki
敦 藤木
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions 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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2015071604A priority Critical patent/JP2016192678A/en
Publication of JP2016192678A publication Critical patent/JP2016192678A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an image reading device capable of suppressing the reduction in quality of an output image.SOLUTION: An image reading device includes a tilt angle detection unit 81a, a rotation correction processing unit 82 and a determination unit 83a. The tilt angle detection unit 81a detects a tilt angle of an image read by a reading unit. The rotation correction processing unit 82 executes rotation correction processing on image data corresponding to an image read by the reading unit in accordance with the tilt angle detected by the tilt angle detection unit 81a. The determination unit 83a determines whether the rotation correction processing is approved or not approved on the basis of the tilt angle detected by the tilt angle detection unit 81a.SELECTED DRAWING: Figure 3

Description

本発明は、画像読取装置、及び画像読取方法に関する。   The present invention relates to an image reading apparatus and an image reading method.

スキャナーのような画像読取装置が知られている。また、原稿搬送装置を備えたスキャナー(画像読取装置)が知られている。原稿搬送装置は、原稿読取領域を通過するように原稿を自動搬送する。原稿搬送装置によって原稿が傾いた状態で搬送されると、原稿の画像が傾いた状態で読み取られる。このため、スキャナー(画像読取装置)は、一般的に、読み取った画像の画像データから、画像の傾き角度を検出して、画像データに対しスキュー補正や斜め補正等と称される回転補正処理(画像処理)を実行する(例えば、特許文献1参照)。   An image reading apparatus such as a scanner is known. Also, a scanner (image reading device) provided with a document conveying device is known. The document conveying device automatically conveys the document so as to pass through the document reading area. When the original is conveyed in an inclined state by the original conveying device, the image of the original is read in an inclined state. For this reason, a scanner (image reading device) generally detects an inclination angle of an image from image data of a read image, and performs a rotation correction process (referred to as skew correction or oblique correction) on the image data ( Image processing) is executed (see, for example, Patent Document 1).

回転補正処理は、具体的には記憶領域上で画像(画像データ)を回転させる処理である。回転補正処理には、典型的には最近傍補間法又は双一次補間法を用いた回転処理が採用される。   Specifically, the rotation correction process is a process of rotating an image (image data) on the storage area. For the rotation correction process, a rotation process using a nearest neighbor interpolation method or a bilinear interpolation method is typically employed.

特開平10−336425号公報JP-A-10-336425

しかしながら、最近傍補間法や双一次補間法を用いた回転処理が実行されると、画像の端部(特に、四隅)のデータが、回転処理前と回転処理後とで変化することがある。このため、ディスプレーに表示(出力)される画像や、記録媒体に印刷(出力)される画像のような出力画像の品質が低下することがある。   However, when the rotation process using the nearest neighbor interpolation method or the bilinear interpolation method is executed, the data at the edge portions (particularly, the four corners) of the image may change before and after the rotation process. For this reason, the quality of an output image such as an image displayed (output) on a display or an image printed (output) on a recording medium may deteriorate.

本発明は、上記問題に鑑み、出力画像の品質の低下を抑制することができる画像読取装置、及び画像読取方法を提供することを目的とする。   In view of the above problems, an object of the present invention is to provide an image reading apparatus and an image reading method capable of suppressing deterioration in quality of an output image.

本発明の一局面は、読取部と、傾き角度検出部と、回転補正処理部と、決定部とを備えた画像読取装置である。前記読取部は、原稿の画像を読み取る。前記傾き角度検出部は、前記読取部が読み取った前記画像の傾き角度を検出する。前記回転補正処理部は、前記傾き角度検出部によって検出された前記傾き角度に応じて、前記画像に対応する画像データに回転補正処理を実行する。前記決定部は、前記傾き角度検出部によって検出された前記傾き角度に基づいて、前記回転補正処理の許可/不許可を決定する。   One aspect of the present invention is an image reading apparatus including a reading unit, an inclination angle detection unit, a rotation correction processing unit, and a determination unit. The reading unit reads an image of a document. The inclination angle detection unit detects an inclination angle of the image read by the reading unit. The rotation correction processing unit performs rotation correction processing on image data corresponding to the image according to the tilt angle detected by the tilt angle detection unit. The determination unit determines permission / non-permission of the rotation correction process based on the tilt angle detected by the tilt angle detection unit.

本発明によれば、出力画像の品質の低下を抑制することができる。   According to the present invention, it is possible to suppress a decrease in quality of an output image.

本発明の実施形態に係るスキャナーの外観を示す斜視図である。1 is a perspective view illustrating an appearance of a scanner according to an embodiment of the present invention. 本発明の実施形態に係るスキャナーの構成を示す図である。It is a figure which shows the structure of the scanner which concerns on embodiment of this invention. 本発明の第1実施形態〜第3実施形態に係るスキャナーが備える制御部の構成を示す図である。It is a figure which shows the structure of the control part with which the scanner which concerns on 1st Embodiment-3rd Embodiment of this invention is provided. 本発明の実施形態に係る原稿画像領域を示す図である。It is a figure which shows the original image area | region which concerns on embodiment of this invention. 本発明の第1実施形態に係る回転補正処理のフローを示す図である。It is a figure which shows the flow of the rotation correction process which concerns on 1st Embodiment of this invention. 本発明の実施形態に係る原稿画像領域を示す図である。It is a figure which shows the original image area | region which concerns on embodiment of this invention. 本発明の実施形態に係る原稿画像領域を示す図である。It is a figure which shows the original image area | region which concerns on embodiment of this invention. 本発明の第2実施形態に係る回転補正処理のフローを示す図である。It is a figure which shows the flow of the rotation correction process which concerns on 2nd Embodiment of this invention. 本発明の実施形態に係る原稿画像領域を示す図である。It is a figure which shows the original image area | region which concerns on embodiment of this invention. 本発明の第4実施形態に係るスキャナーが備える制御部の構成を示す図である。It is a figure which shows the structure of the control part with which the scanner which concerns on 4th Embodiment of this invention is provided.

[第1実施形態]
図1に示すように、スキャナー1(画像読取装置の一例)は、本体部2と、本体部2に対して開閉自在の原稿搬送装置3と、操作表示部4と、主コンタクトガラス5と、副コンタクトガラス6とを備える。操作表示部4は、操作部41と表示部42とを有する。操作部41は、例えば複数種類の押しボタン(キー)を含む。表示部42は、例えば液晶ディスプレーを含む。
[First Embodiment]
As shown in FIG. 1, a scanner 1 (an example of an image reading device) includes a main body unit 2, a document conveying device 3 that can be opened and closed with respect to the main body unit 2, an operation display unit 4, a main contact glass 5, Sub contact glass 6 is provided. The operation display unit 4 includes an operation unit 41 and a display unit 42. The operation unit 41 includes, for example, a plurality of types of push buttons (keys). The display unit 42 includes, for example, a liquid crystal display.

図2に示すように、原稿搬送装置3は、給紙トレイ31と、排紙トレイ32とを備える。原稿搬送装置3は、給紙トレイ31にセットされた原稿を、排紙トレイ32まで搬送する。この搬送過程で、原稿は、原稿読取領域Rを通過する。原稿読取領域Rは、副コンタクトガラス6(図1参照)が設けられた領域である。   As shown in FIG. 2, the document conveying device 3 includes a paper feed tray 31 and a paper discharge tray 32. The document transport device 3 transports the document set on the paper feed tray 31 to the paper discharge tray 32. In this conveyance process, the document passes through the document reading area R. The document reading region R is a region where the sub contact glass 6 (see FIG. 1) is provided.

スキャナー1は、読取部7を備える。読取部7は、原稿の画像を読み取る。またスキャナー1は、制御部8を備える。制御部8は、CPU又はMPUのような演算処理装置を有するコンピューターである。制御部8は、スキャナー1の動作を制御する。また、制御部8は、読取部7によって読み取られた画像の画像データに対し各種の画像処理(補正処理を含む)を実行する。   The scanner 1 includes a reading unit 7. The reading unit 7 reads an image of a document. The scanner 1 includes a control unit 8. The control unit 8 is a computer having an arithmetic processing device such as a CPU or MPU. The control unit 8 controls the operation of the scanner 1. In addition, the control unit 8 executes various image processing (including correction processing) on the image data of the image read by the reading unit 7.

読取部7は、光源ユニット71、2枚のミラー72、73、集光レンズ74、及び電荷結合素子のような撮像素子を含む撮像装置75を有する。また、光源ユニット71は、LED光源711と、ミラー712とを有する。LED光源711は、主走査方向(図2の紙面における奥行き方向)に沿って配列された多数の白色LEDを備える。発光させる白色LEDを選択することにより、主走査方向における画像読取範囲を調整することができる。また、LED光源711(白色LED)の発光時間を制御することにより、主走査方向に直交する副走査方向Sにおける画像読取範囲を調整することができる。第1実施形態では、画像読取範囲は、原稿サイズよりも大きく設定される。但し、主走査方向については、LED光源711の主走査方向の幅を限度に、原稿サイズよりも大きく設定される。   The reading unit 7 includes an imaging device 75 including a light source unit 71, two mirrors 72 and 73, a condenser lens 74, and an imaging device such as a charge coupled device. The light source unit 71 includes an LED light source 711 and a mirror 712. The LED light source 711 includes a large number of white LEDs arranged along the main scanning direction (the depth direction in FIG. 2). By selecting the white LED to emit light, the image reading range in the main scanning direction can be adjusted. Further, by controlling the light emission time of the LED light source 711 (white LED), the image reading range in the sub-scanning direction S orthogonal to the main scanning direction can be adjusted. In the first embodiment, the image reading range is set larger than the document size. However, the main scanning direction is set to be larger than the document size, up to the width of the LED light source 711 in the main scanning direction.

原稿搬送装置3によって搬送される原稿の画像を読取部7が読み取る場合、LED光源711は、副コンタクトガラス6を介して、搬送中の原稿に光を照射する。原稿から反射した光は、3枚のミラー712、72、73、及び集光レンズ74を介して撮像装置75に入射する。撮像装置75は、入射した光の受光量に応じた電気信号を制御部8に入力する。制御部8は、撮像装置75の出力に基づいて、画像データを生成する。撮像装置75から出力される電気信号は、画像データを構成する各画素の濃度値又は輝度値に対応する。   When the reading unit 7 reads an image of a document transported by the document transport device 3, the LED light source 711 irradiates the document being transported through the sub contact glass 6. The light reflected from the document enters the imaging device 75 via the three mirrors 712, 72, 73 and the condenser lens 74. The imaging device 75 inputs an electrical signal corresponding to the amount of incident light received into the control unit 8. The control unit 8 generates image data based on the output of the imaging device 75. The electrical signal output from the imaging device 75 corresponds to the density value or luminance value of each pixel constituting the image data.

図3に示すように、制御部8は、記憶部84を有する。記憶部84は、ROM、RAM、及びEEPROM等を含み得る。制御部8は、読取部7によって読み取られた画像の画像データを記憶部84に記憶させる。制御部8は、画像データに対して各種の画像処理を行う度に、記憶部84から画像データを読み出し、画像処理後の画像データを記憶部84に記憶させる。   As illustrated in FIG. 3, the control unit 8 includes a storage unit 84. The storage unit 84 can include a ROM, a RAM, an EEPROM, and the like. The control unit 8 causes the storage unit 84 to store the image data of the image read by the reading unit 7. The control unit 8 reads the image data from the storage unit 84 and stores the image data after the image processing in the storage unit 84 every time various image processing is performed on the image data.

また第1実施形態において、制御部8は、記憶部84に記憶されているプログラムを実行することにより、傾き角度検出部81a、回転補正処理部82、及び決定部83aとして機能する。   In the first embodiment, the control unit 8 functions as an inclination angle detection unit 81a, a rotation correction processing unit 82, and a determination unit 83a by executing a program stored in the storage unit 84.

傾き角度検出部81aは、読取部7によって読み取られた画像の傾き角度を検出する。回転補正処理部82は、傾き角度検出部81aによって検出された傾き角度に応じて、画像データに対する回転補正処理を実行する。回転補正処理には、最近傍補間法又は双一次補間法のような一般な回転処理技術を用いることができる。   The inclination angle detection unit 81a detects the inclination angle of the image read by the reading unit 7. The rotation correction processing unit 82 executes rotation correction processing on the image data according to the tilt angle detected by the tilt angle detection unit 81a. For the rotation correction process, a general rotation processing technique such as nearest neighbor interpolation or bilinear interpolation can be used.

決定部83aは、傾き角度検出部81aによって検出された傾き角度に基づいて、回転補正処理の許可/不許可を決定する。第1実施形態では、決定部83aは、傾き角度検出部81aによって検出された傾き角度と閾値とを比較する。そして、決定部83aは、傾き角度と閾値との比較結果に応じて、回転補正処理の許可/不許可を決定する。具体的には、決定部83aは、傾き角度が閾値以上であるか否かに応じて、回転補正処理の許可/不許可を決定する。   The determination unit 83a determines permission / non-permission of the rotation correction process based on the tilt angle detected by the tilt angle detection unit 81a. In the first embodiment, the determination unit 83a compares the inclination angle detected by the inclination angle detection unit 81a with a threshold value. Then, the determination unit 83a determines permission / non-permission of the rotation correction process according to the comparison result between the tilt angle and the threshold value. Specifically, the determination unit 83a determines permission / non-permission of the rotation correction process depending on whether or not the inclination angle is equal to or greater than a threshold value.

図4に示すように、原稿画像領域51が、X方向、及びX方向に直交するY方向に対して傾くことがある。原稿画像領域51は、読取部7によって読み取られた画像の画像データを記憶する領域である。X方向は、主走査方向又は副走査方向に対応している。Y方向は、副走査方向又は主走査方向に対応している。例えば、原稿搬送装置3によって原稿が傾いた状態で搬送されると、その傾きに応じて原稿画像領域51がX方向及びY方向に対して傾く。   As shown in FIG. 4, the document image area 51 may be inclined with respect to the X direction and the Y direction orthogonal to the X direction. The document image area 51 is an area for storing image data of an image read by the reading unit 7. The X direction corresponds to the main scanning direction or the sub scanning direction. The Y direction corresponds to the sub-scanning direction or the main scanning direction. For example, when the original is conveyed in an inclined state by the original conveying device 3, the original image area 51 is inclined with respect to the X direction and the Y direction according to the inclination.

傾き角度検出部81aは、読取部7によって読み取られた画像の端の傾き角度を検出する。詳しくは、傾き角度検出部81aは、原稿画像領域51の端の傾き角度を検出する。例えば、傾き角度検出部81aは、原稿画像領域51の前端e1の傾き角度θ1を検出する。原稿画像領域51の前端e1の傾き角度θ1を検出する際に、傾き角度検出部81aは、原稿画像領域51の前端e1を構成する各画素から選択された複数の画素の記憶領域における座標をそれぞれ検出する。そして、傾き角度検出部81aは、検出した座標に基づいて、X方向に対する前端e1の傾き角度θ1を検出(算出)する。   The tilt angle detection unit 81 a detects the tilt angle of the edge of the image read by the reading unit 7. Specifically, the tilt angle detector 81 a detects the tilt angle of the edge of the document image area 51. For example, the tilt angle detection unit 81a detects the tilt angle θ1 of the front end e1 of the document image area 51. When detecting the inclination angle θ1 of the front edge e1 of the document image area 51, the inclination angle detection unit 81a sets the coordinates in the storage area of a plurality of pixels selected from the pixels constituting the front edge e1 of the document image area 51, respectively. To detect. Then, the tilt angle detection unit 81a detects (calculates) the tilt angle θ1 of the front end e1 with respect to the X direction based on the detected coordinates.

なお、傾き角度検出部81aは、原稿画像領域51の左端e2又は右端e3のY方向に対する傾き角度を検出してもよい。又は、傾き角度検出部81aは、原稿画像領域51の後端e4のX方向に対する傾き角度を検出してもよい。   Note that the tilt angle detection unit 81a may detect the tilt angle of the left end e2 or the right end e3 of the document image region 51 with respect to the Y direction. Alternatively, the tilt angle detection unit 81a may detect the tilt angle of the trailing edge e4 of the document image area 51 with respect to the X direction.

続いて図1〜図5を参照して、第1実施形態における回転補正処理(画像読取方法)について説明する。図5に示す処理は、ユーザーが給紙トレイ31に原稿をセットした後、操作部41を操作して画像読取を指示することにより開始する。   Next, a rotation correction process (image reading method) in the first embodiment will be described with reference to FIGS. The process shown in FIG. 5 starts when the user sets an original on the paper feed tray 31 and then operates the operation unit 41 to instruct image reading.

ユーザーからの画像読取の指示を制御部8が受け付けると、原稿搬送装置3が原稿を搬送し、読取部7が原稿の画像を読み取る(ステップS601)。この結果、原稿の画像に対応する画像データが記憶部84に記憶される。傾き角度検出部81aは、記憶部84に画像データが記憶されると、原稿画像領域51の特定の端の傾き角度を検出する(ステップS602a)。傾き角度を検出する対象の端は、予め記憶部84に記憶(設定)されている。   When the control unit 8 receives an image reading instruction from the user, the document conveying device 3 conveys the document, and the reading unit 7 reads the image of the document (step S601). As a result, image data corresponding to the original image is stored in the storage unit 84. When the image data is stored in the storage unit 84, the tilt angle detection unit 81a detects the tilt angle of a specific end of the document image area 51 (step S602a). The target end for detecting the tilt angle is stored (set) in the storage unit 84 in advance.

次に、決定部83aが、傾き角度検出部81aによって検出された傾き角度が閾値以上であるか否かを判定する(ステップS603)。閾値は予め記憶部84に記憶(設定)されている。なお、閾値は、ユーザーが操作部41を操作することにより設定されてもよい。   Next, the determination unit 83a determines whether or not the tilt angle detected by the tilt angle detection unit 81a is equal to or greater than a threshold value (step S603). The threshold value is stored (set) in the storage unit 84 in advance. The threshold value may be set by the user operating the operation unit 41.

決定部83aは、傾き角度が閾値以上であると判定すると、回転補正処理部82による回転補正処理の許可を決定する。その結果、回転補正処理部82が処理対象の画像データに対して回転補正処理を実行して、図5に示す処理が終了する。一方、決定部83aは、傾き角度が閾値未満であると判定すると、回転補正処理部82による回転補正処理の不許可を決定する。この場合、回転補正処理が実行されることなく、図5に示す処理が終了する。   When the determination unit 83a determines that the tilt angle is equal to or greater than the threshold value, the determination unit 83a determines permission of the rotation correction processing by the rotation correction processing unit 82. As a result, the rotation correction processing unit 82 executes rotation correction processing on the image data to be processed, and the processing shown in FIG. 5 ends. On the other hand, when the determination unit 83a determines that the tilt angle is less than the threshold value, the determination unit 83a determines that the rotation correction processing by the rotation correction processing unit 82 is not permitted. In this case, the process illustrated in FIG. 5 ends without executing the rotation correction process.

以上説明した第1実施形態によれば、読取部7によって読み取られた画像の傾き角度が閾値以上である場合にのみ、回転補正処理が実行される。換言すると、読取部7によって読み取られた画像の傾き角度が閾値未満である場合には、回転補正処理が実行されない。したがって、回転補正処理の実行を制限することができる。その結果、品質の低い出力画像が生成される頻度が小さくなる。よって、出力画像の品質の低下を抑制することができる。   According to the first embodiment described above, the rotation correction process is executed only when the inclination angle of the image read by the reading unit 7 is equal to or larger than the threshold value. In other words, when the inclination angle of the image read by the reading unit 7 is less than the threshold value, the rotation correction process is not executed. Therefore, execution of the rotation correction process can be restricted. As a result, the frequency with which low quality output images are generated is reduced. Therefore, it is possible to suppress a decrease in the quality of the output image.

閾値として記憶部84に予め記憶させる傾き角度は、ユーザーにおいて画像の傾きが気にならない程度の傾き角度であることが好ましい。例えば、閾値は0.2度である。この場合、0.2度未満の角度で傾いている画像に対し、回転補正処理が実行されないが、0.2度未満の傾きであれば、ユーザーは画像の傾きに気が付かないか、又は、画像の傾きが気にならない。   The inclination angle stored in advance in the storage unit 84 as the threshold value is preferably an inclination angle that does not bother the user about the inclination of the image. For example, the threshold is 0.2 degrees. In this case, the rotation correction process is not executed for an image tilted at an angle of less than 0.2 degrees. However, if the tilt is less than 0.2 degrees, the user does not notice the tilt of the image, or the image I don't mind the inclination of

また第1実施形態によれば、読取部7の画像読取範囲が、原稿サイズよりも大きく設定される。これにより、画像の端(原稿画像領域51の端)の傾き角度をより確実に検出することができる。   According to the first embodiment, the image reading range of the reading unit 7 is set larger than the document size. Thereby, the inclination angle of the edge of the image (the edge of the document image area 51) can be detected more reliably.

また第1実施形態によれば、画像の端(原稿画像領域51の端)の傾き角度が検出される。これにより、画像全体(原稿画像領域51全体)の傾き角度を検出する場合に比べて、制御部8による演算量が少なくなる。   Further, according to the first embodiment, the inclination angle of the edge of the image (the edge of the document image area 51) is detected. As a result, the amount of calculation by the control unit 8 is reduced as compared with the case where the inclination angle of the entire image (the entire original image area 51) is detected.

[第2実施形態]
以下、図3、及び図6〜図8を参照して第2実施形態について説明する。但し、第1実施形態と異なる事項を説明し、第1実施形態と同じ事項についての説明は割愛する。
[Second Embodiment]
Hereinafter, the second embodiment will be described with reference to FIG. 3 and FIGS. 6 to 8. However, items different from the first embodiment will be described, and descriptions of the same items as the first embodiment will be omitted.

第2実施形態における制御部8は、記憶部84に記憶されているプログラムを実行することにより、傾き角度検出部81b、回転補正処理部82、及び決定部83bとして機能する。   The control unit 8 in the second embodiment functions as an inclination angle detection unit 81b, a rotation correction processing unit 82, and a determination unit 83b by executing a program stored in the storage unit 84.

傾き角度検出部81bは、原稿画像領域51の左端e2及び右端e3(画像の左端及び右端)の傾き角度を検出する。決定部83bは、原稿画像領域51の左端e2及び右端e3(画像の左端及び右端)の傾き角度θ2及びθ3を比較する。また、決定部83bは、傾き角度θ2と傾き角度θ3との比較結果、及び、傾き角度θ2又は傾き角度θ3と閾値との比較結果に応じて、回転補正処理の許可/不許可を決定する。具体的には、決定部83bは、傾き角度θ2と傾き角度θ3とが一致するか否かを判定する。また、決定部83bは、傾き角度θ2と傾き角度θ3とが一致し、かつ、傾き角度θ2又は傾き角度θ3が閾値以上である場合に、回転補正処理の実行を許可する。換言すると、原稿画像領域51の左端e2及び右端e3の傾き角度θ2及びθ3が一致しない場合には、回転補正処理は実行されない。   The inclination angle detection unit 81b detects the inclination angles of the left end e2 and right end e3 (the left end and right end of the image) of the document image area 51. The determination unit 83b compares the inclination angles θ2 and θ3 of the left end e2 and the right end e3 (the left end and the right end of the image) of the document image area 51. In addition, the determination unit 83b determines whether the rotation correction process is permitted or not according to the comparison result between the inclination angle θ2 and the inclination angle θ3 and the comparison result between the inclination angle θ2 or the inclination angle θ3 and the threshold value. Specifically, the determination unit 83b determines whether or not the inclination angle θ2 and the inclination angle θ3 match. Further, the determination unit 83b permits the execution of the rotation correction process when the inclination angle θ2 and the inclination angle θ3 match and the inclination angle θ2 or the inclination angle θ3 is equal to or greater than a threshold value. In other words, when the inclination angles θ2 and θ3 of the left end e2 and the right end e3 of the document image area 51 do not match, the rotation correction process is not executed.

即ち、図6に示すように、原稿の画像の形状が矩形以外の形状である場合、原稿画像領域51の左端e2及び右端e3の傾き角度θ2及びθ3は一致しない。このような形状を有する画像の画像データに対する回転補正処理は、出力画像の品質の低下を招くおそれがある。一方、図7に示すように、原稿の画像の形状が矩形である場合、原稿画像領域51の前端e1、左端e2、及び右端e3の傾き角度θ1、θ2、及びθ3は一致するか、又は略一致する。矩形形状を有する画像の画像データに回転補正処理を実行する場合、矩形以外の形状を有する画像の画像データに回転補正処理を実行する場合に比べて、出力画像の品質が低下する可能性が小さい。したがって、原稿画像領域51の左端e2及び右端e3の傾き角度θ2及びθ3が一致していることを条件に回転補正処理を実行することにより、出力画像の品質の低下を抑制することができる。   That is, as shown in FIG. 6, when the shape of the document image is a shape other than a rectangle, the inclination angles θ2 and θ3 of the left end e2 and the right end e3 of the document image area 51 do not match. The rotation correction process for the image data of the image having such a shape may cause a reduction in the quality of the output image. On the other hand, as shown in FIG. 7, when the shape of the document image is a rectangle, the inclination angles θ1, θ2, and θ3 of the front end e1, the left end e2, and the right end e3 of the document image area 51 are equal or substantially the same. Match. When rotation correction processing is performed on image data of an image having a rectangular shape, the possibility that the quality of the output image will be lower is lower than when rotation correction processing is performed on image data of an image having a shape other than a rectangle. . Therefore, by executing the rotation correction process on the condition that the inclination angles θ2 and θ3 of the left end e2 and the right end e3 of the document image area 51 coincide with each other, it is possible to suppress a decrease in the quality of the output image.

続いて図3、及び図6〜図8を参照して、第2実施形態における回転補正処理(画像読取方法)について説明する。図8に示すように、第2実施形態では、読取部7が原稿の画像を読み取ると(ステップS601)、傾き角度検出部81bは、原稿画像領域51の左端e2及び右端e3の傾き角度θ2及びθ3を検出する(ステップS602b)。   Next, the rotation correction process (image reading method) in the second embodiment will be described with reference to FIGS. 3 and 6 to 8. As shown in FIG. 8, in the second embodiment, when the reading unit 7 reads an image of a document (step S601), the tilt angle detection unit 81b detects the tilt angles θ2 of the left end e2 and the right end e3 of the document image region 51, and θ3 is detected (step S602b).

次に、決定部83bが、傾き角度θ2と傾き角度θ3とを比較して、傾き角度θ2と傾き角度θ3とが一致するか否かを判定する(ステップS701)。決定部83bは、傾き角度θ2と傾き角度θ3とが一致すると判定すると、傾き角度θ2又は傾き角度θ3が閾値以上であるか否かを判定する(ステップS603)。一方、決定部83bは、傾き角度θ2と傾き角度θ3とが一致しないと判定すると、回転補正処理部82による回転補正処理の不許可を決定する。この場合、回転補正処理が実行されることなく、図8に示す処理が終了する。なお、ステップS701の処理とステップS603の処理とは、順序を入れ替えることができる。   Next, the determination unit 83b compares the inclination angle θ2 and the inclination angle θ3, and determines whether or not the inclination angle θ2 and the inclination angle θ3 match (step S701). If the determination unit 83b determines that the inclination angle θ2 and the inclination angle θ3 coincide with each other, the determination unit 83b determines whether the inclination angle θ2 or the inclination angle θ3 is equal to or greater than a threshold value (step S603). On the other hand, when the determination unit 83b determines that the inclination angle θ2 and the inclination angle θ3 do not match, the determination unit 83b determines that the rotation correction processing by the rotation correction processing unit 82 is not permitted. In this case, the process illustrated in FIG. 8 ends without executing the rotation correction process. Note that the order of step S701 and step S603 can be interchanged.

以上説明した第2実施形態によれば、原稿画像領域51の左端e2及び右端e3の傾き角度θ2及びθ3が一致していることを条件に回転補正処理が実行される。これにより出力画像の品質の低下が抑制される。   According to the second embodiment described above, the rotation correction process is executed on condition that the inclination angles θ2 and θ3 of the left end e2 and the right end e3 of the document image area 51 are the same. As a result, deterioration of the quality of the output image is suppressed.

なお、第2実施形態では、原稿画像領域51の左端e2及び右端e3(画像の左端及び右端)の傾き角度θ2及びθ3が一致するか否かが判定されたが、傾き角度θ2と傾き角度θ3との差が許容値の範囲内であるか否かが判定されてもよい。具体的には、決定部83bは、傾き角度θ2と傾き角度θ3とを比較して、傾き角度θ2と傾き角度θ3との差を算出し、傾き角度θ2と傾き角度θ3との差が許容値の範囲内であるか否かを判定してもよい。この場合、傾き角度θ2と傾き角度θ3との差が許容値の範囲内であることが、回転補正処理の実行条件の一つとなる。   In the second embodiment, it is determined whether or not the inclination angles θ2 and θ3 of the left end e2 and the right end e3 (the left end and the right end of the image) of the document image area 51 match, but the inclination angle θ2 and the inclination angle θ3 are determined. It may be determined whether or not the difference is within the allowable range. Specifically, the determination unit 83b compares the inclination angle θ2 and the inclination angle θ3, calculates the difference between the inclination angle θ2 and the inclination angle θ3, and the difference between the inclination angle θ2 and the inclination angle θ3 is an allowable value. It may be determined whether it is within the range. In this case, one of the conditions for executing the rotation correction process is that the difference between the tilt angle θ2 and the tilt angle θ3 is within the allowable value range.

[第3実施形態]
以下、図3及び図9を参照して、第3実施形態について説明する。但し、第1実施形態及び第2実施形態と異なる事項を説明し、第1実施形態及び第2実施形態と同じ事項についての説明は割愛する。
[Third Embodiment]
Hereinafter, the third embodiment will be described with reference to FIGS. 3 and 9. However, matters different from the first embodiment and the second embodiment will be described, and descriptions of the same matters as the first embodiment and the second embodiment will be omitted.

第3実施形態における制御部8は、記憶部84に記憶されているプログラムを実行することにより、傾き角度検出部81c、回転補正処理部82、及び決定部83cとして機能する。   The control unit 8 in the third embodiment functions as an inclination angle detection unit 81c, a rotation correction processing unit 82, and a determination unit 83c by executing a program stored in the storage unit 84.

傾き角度検出部81cは、原稿画像領域51の前端e1、左端e2、及び右端e3(画像の前端、左端、及び右端)の傾き角度を検出する。決定部83cは、原稿画像領域51の前端e1、左端e2、及び右端e3(画像の前端、左端、及び右端)の傾き角度θ1、θ2、及びθ3を比較する。また、決定部83cは、傾き角度θ1、θ2、及びθ3の比較結果、及び、傾き角度θ1、θ2、又はθ3と閾値との比較結果に応じて、回転補正処理の許可/不許可を決定する。具体的には、決定部83cは、傾き角度θ1、θ2、及びθ3が一致するか否かを判定する。また、決定部83cは、傾き角度θ1、θ2、及びθ3が一致し、かつ、傾き角度θ1、θ2、又はθ3が閾値以上である場合に、回転補正処理の実行を許可する。換言すると、原稿画像領域51の前端e1、左端e2、及び右端e3の傾き角度θ1、θ2、及びθ3が一致しない場合には、回転補正処理は実行されない。   The inclination angle detection unit 81c detects the inclination angles of the front edge e1, the left edge e2, and the right edge e3 (the front edge, the left edge, and the right edge of the image) of the document image area 51. The determination unit 83c compares the inclination angles θ1, θ2, and θ3 of the front end e1, the left end e2, and the right end e3 (the front end, the left end, and the right end of the image) of the document image area 51. Further, the determination unit 83c determines whether the rotation correction process is permitted or not according to the comparison result of the inclination angles θ1, θ2, and θ3 and the comparison result of the inclination angles θ1, θ2, or θ3 and the threshold value. . Specifically, the determination unit 83c determines whether the inclination angles θ1, θ2, and θ3 match. The determination unit 83c permits the rotation correction process to be executed when the tilt angles θ1, θ2, and θ3 match and the tilt angles θ1, θ2, or θ3 are equal to or greater than the threshold value. In other words, when the tilt angles θ1, θ2, and θ3 of the front end e1, the left end e2, and the right end e3 of the document image area 51 do not match, the rotation correction process is not executed.

即ち、図9に示すように、原稿画像領域51の左端e2及び右端e3が共にY方向に対して傾かない一方で、原稿画像領域51の前端e1がX方向に対して傾く場合がある。このようなケースにおいて回転補正処理が実行されると、出力画像の品質の低下を招くおそれがある。一方、図7を参照して説明したように、原稿画像領域51の形状が矩形である場合、原稿画像領域51の前端e1、左端e2、及び右端e3の傾き角度θ1、θ2、及びθ3は一致するか、又は略一致する。したがって、原稿画像領域51の前端e1、左端e2、及び右端e3の傾き角度θ1、θ2、及びθ3が一致することを条件に回転補正処理を実行することにより、出力画像の品質の低下を抑制することができる。   That is, as shown in FIG. 9, the left end e2 and the right end e3 of the document image area 51 may not be inclined with respect to the Y direction, while the front end e1 of the document image area 51 may be inclined with respect to the X direction. If rotation correction processing is executed in such a case, the quality of the output image may be degraded. On the other hand, as described with reference to FIG. 7, when the shape of the document image region 51 is a rectangle, the inclination angles θ1, θ2, and θ3 of the front end e1, the left end e2, and the right end e3 of the document image region 51 coincide. Or approximately match. Therefore, by performing the rotation correction process on the condition that the inclination angles θ1, θ2, and θ3 of the front end e1, the left end e2, and the right end e3 of the document image area 51 coincide with each other, a reduction in the quality of the output image is suppressed. be able to.

以上説明した第3実施形態によれば、原稿画像領域51の前端e1、左端e2、及び右端e3の傾き角度θ1、θ2、及びθ3が一致していることを条件に回転補正処理が実行される。これにより出力画像の品質の低下が抑制される。   According to the third embodiment described above, the rotation correction process is executed on the condition that the inclination angles θ1, θ2, and θ3 of the front end e1, the left end e2, and the right end e3 of the document image area 51 coincide with each other. . As a result, deterioration of the quality of the output image is suppressed.

なお、第3実施形態では、原稿画像領域51の前端e1、左端e2、及び右端e3(画像の前端、左端、及び右端)の傾き角度θ1、θ2、及びθ3が一致するか否かが判定されたが、傾き角度θ1、θ2、及びθ3間の差が許容値の範囲内であるか否かが判定されてもよい。例えば、決定部83cは、傾き角度θ1と傾き角度θ2とを比較して、傾き角度θ1と傾き角度θ2との差を算出し、傾き角度θ1と傾き角度θ2との差が許容値の範囲内であるか否かを判定する。また、決定部83cは、傾き角度θ1と傾き角度θ3とを比較して、傾き角度θ1と傾き角度θ3との差を算出し、傾き角度θ1と傾き角度θ3との差が許容値の範囲内であるか否かを判定する。この場合、傾き角度θ1と傾き角度θ2との差、及び、傾き角度θ1と傾き角度θ3との差がいずれも許容値の範囲内であることが、回転補正処理の実行条件の一つとなる。   In the third embodiment, it is determined whether or not the inclination angles θ1, θ2, and θ3 of the front end e1, the left end e2, and the right end e3 (the front end, the left end, and the right end of the image) of the document image area 51 match. However, it may be determined whether or not the difference between the tilt angles θ1, θ2, and θ3 is within the allowable value range. For example, the determination unit 83c compares the tilt angle θ1 and the tilt angle θ2, calculates the difference between the tilt angle θ1 and the tilt angle θ2, and the difference between the tilt angle θ1 and the tilt angle θ2 is within the allowable range. It is determined whether or not. Further, the determination unit 83c compares the tilt angle θ1 and the tilt angle θ3 to calculate the difference between the tilt angle θ1 and the tilt angle θ3, and the difference between the tilt angle θ1 and the tilt angle θ3 is within the allowable range. It is determined whether or not. In this case, one of the conditions for executing the rotation correction process is that the difference between the inclination angle θ1 and the inclination angle θ2 and the difference between the inclination angle θ1 and the inclination angle θ3 are both within the allowable range.

[第4実施形態]
以下、図10を参照して第4実施形態について説明する。但し、第1実施形態〜第3実施形態と異なる事項を説明し、第1実施形態〜第3実施形態と同じ事項についての説明は割愛する。
[Fourth Embodiment]
Hereinafter, the fourth embodiment will be described with reference to FIG. However, matters different from the first embodiment to the third embodiment will be described, and description of the same matters as the first embodiment to the third embodiment will be omitted.

第4実施形態における制御部8は、記憶部84に記憶されているプログラムを実行することにより、傾き角度検出部81c、回転補正処理部82、決定部83c、及び警告処理部85として機能する。   The control unit 8 in the fourth embodiment functions as an inclination angle detection unit 81c, a rotation correction processing unit 82, a determination unit 83c, and a warning processing unit 85 by executing a program stored in the storage unit 84.

警告処理部85は、傾き角度検出部81cによって検出された傾き角度θ1、θ2、及びθ3に基づいて、警告情報を表示部42に表示させる。第4実施形態では、警告処理部85は、傾き角度検出部81cによって検出された傾き角度θ1、θ2、及びθ3に基づいて、原稿画像領域51の前端e1のみが傾いているか否かを判定する。例えば、警告処理部85は、傾き角度θ1、θ2、及びθ3が許容値の範囲内であるか否かによって、原稿画像領域51の前端e1のみが傾いているか否かを判定する。また、警告処理部85は、原稿画像領域51の前端e1のみが傾いていると判定した連続回数を計数する。警告処理部85は、計数値が所定値を超えると、表示部42に警告情報を表示させる。具体的には、警告処理部85は、原稿搬送装置3が本体部2に対して傾いた状態で設置されていることを教示する情報を表示部42に表示させる。   The warning processing unit 85 causes the display unit 42 to display warning information based on the tilt angles θ1, θ2, and θ3 detected by the tilt angle detection unit 81c. In the fourth embodiment, the warning processing unit 85 determines whether only the front end e1 of the document image area 51 is tilted based on the tilt angles θ1, θ2, and θ3 detected by the tilt angle detecting unit 81c. . For example, the warning processing unit 85 determines whether only the front end e1 of the document image area 51 is tilted based on whether the tilt angles θ1, θ2, and θ3 are within the allowable range. Further, the warning processing unit 85 counts the number of consecutive times when it is determined that only the front end e1 of the document image area 51 is tilted. The warning processing unit 85 displays warning information on the display unit 42 when the count value exceeds a predetermined value. Specifically, the warning processing unit 85 causes the display unit 42 to display information that teaches that the document conveying device 3 is installed in an inclined state with respect to the main body unit 2.

即ち、図9を参照して説明した原稿画像領域51(画像)のように、左端e2及び右端e3が傾かない一方で、前端e1が傾くケースでは、原稿搬送装置3が本体部2に対して傾いた状態で設置されている可能性がある。このため、このようなケースでは、傾いた画像が常に出力される。これに対し、第4実施形態によれば、原稿搬送装置3が本体部2に対して傾いた状態で設置されていることを教示する情報を表示部42に表示させることにより、傾いた状態の画像が常に出力される不具合の除去を図ることができる。   That is, in the case where the left end e2 and the right end e3 are not tilted as in the document image area 51 (image) described with reference to FIG. It may be installed in a tilted state. For this reason, in such a case, a tilted image is always output. On the other hand, according to the fourth embodiment, information indicating that the document conveying device 3 is installed in a tilted state with respect to the main body unit 2 is displayed on the display unit 42, whereby the tilted state is displayed. It is possible to eliminate the problem that images are always output.

なお、第2実施形態〜第4実施形態では、原稿画像領域51の前端e1(画像の先端)の傾き角度θ1が検出されたが、本発明はこれに限定されない。第2実施形態〜第4実施形態において、傾き角度θ1に替えて、原稿画像領域51の後端e4(画像の後端)の傾き角度が検出されてもよい。   In the second to fourth embodiments, the inclination angle θ1 of the front end e1 (the leading end of the image) of the document image area 51 is detected. However, the present invention is not limited to this. In the second to fourth embodiments, instead of the tilt angle θ1, the tilt angle of the trailing edge e4 (the trailing edge of the image) of the document image area 51 may be detected.

また、上記実施形態では、本発明をスキャナー1に適用した形態について説明したが、本発明はスキャナーにのみ適用されるものではない。本発明は、例えば複合機(MFP)のような画像読取機能を有する画像形成装置を含み得る。   In the above-described embodiment, the embodiment in which the present invention is applied to the scanner 1 has been described. However, the present invention is not applied only to the scanner. The present invention may include an image forming apparatus having an image reading function such as a multifunction peripheral (MFP).

本発明は、画像読取機能を有する電子機器に有用である。   The present invention is useful for an electronic apparatus having an image reading function.

1 スキャナー
3 原稿搬送装置
7 読取部
8 制御部
81a〜81c 傾き角度検出部
82 回転補正処理部
83a〜83c 決定部
84 記憶部
DESCRIPTION OF SYMBOLS 1 Scanner 3 Document conveying apparatus 7 Reading part 8 Control part 81a-81c Inclination angle detection part 82 Rotation correction process part 83a-83c Determination part 84 Memory | storage part

Claims (8)

原稿の画像を読み取る読取部と、
前記読取部が読み取った前記画像の傾き角度を検出する傾き角度検出部と、
前記傾き角度検出部によって検出された前記傾き角度に応じて、前記画像に対応する画像データに回転補正処理を実行する回転補正処理部と、
前記傾き角度検出部によって検出された前記傾き角度に基づいて、前記回転補正処理の許可/不許可を決定する決定部と
を備える、画像読取装置。
A reading unit for reading an image of a document;
An inclination angle detection unit for detecting an inclination angle of the image read by the reading unit;
A rotation correction processing unit that executes rotation correction processing on image data corresponding to the image according to the tilt angle detected by the tilt angle detection unit;
An image reading apparatus comprising: a determination unit that determines permission / non-permission of the rotation correction process based on the tilt angle detected by the tilt angle detection unit.
前記決定部は、前記傾き角度検出部によって検出された前記傾き角度と閾値との比較結果に応じて、前記回転補正処理の許可/不許可を決定する、請求項1に記載の画像読取装置。   The image reading apparatus according to claim 1, wherein the determination unit determines whether the rotation correction process is permitted or not according to a comparison result between the tilt angle detected by the tilt angle detection unit and a threshold value. 前記傾き角度検出部は、前記読取部が読み取った前記画像の端の傾き角度を検出する、請求項1又は請求項2に記載の画像読取装置。   The image reading apparatus according to claim 1, wherein the inclination angle detection unit detects an inclination angle of an edge of the image read by the reading unit. 前記傾き角度検出部は、前記画像の端のうち、少なくとも2つの端の傾き角度を検出し、
前記決定部は、前記傾き角度検出部によって検出された前記傾き角度の比較結果と、前記傾き角度検出部によって検出された前記傾き角度と閾値との比較結果とに応じて、前記回転補正処理の許可/不許可を決定する、請求項3に記載の画像読取装置。
The inclination angle detection unit detects an inclination angle of at least two of the edges of the image;
The determination unit performs the rotation correction process according to the comparison result of the tilt angle detected by the tilt angle detection unit and the comparison result of the tilt angle detected by the tilt angle detection unit and a threshold value. The image reading apparatus according to claim 3, wherein permission / denial is determined.
表示部と、
前記傾き角度検出部によって検出された傾き角度に基づいて、警告情報を前記表示部に表示させる警告処理部と
を更に備える、請求項1〜請求項4のいずれか1項に記載の画像読取装置。
A display unit;
The image reading apparatus according to claim 1, further comprising: a warning processing unit that displays warning information on the display unit based on the tilt angle detected by the tilt angle detection unit. .
前記読取部が前記原稿の画像を読み取る際に、前記原稿の画像よりも大きい読取範囲が設定される、請求項1〜請求項5のいずれか1項に記載の画像読取装置。   The image reading apparatus according to claim 1, wherein a reading range larger than the image of the original is set when the reading unit reads the image of the original. 前記原稿を搬送する原稿搬送装置を更に備え、
前記読取部は、前記原稿搬送装置によって搬送される前記原稿の画像を読み取る、請求項1〜請求項6のいずれか1項に記載の画像読取装置。
A document conveying device for conveying the document;
The image reading apparatus according to claim 1, wherein the reading unit reads an image of the document conveyed by the document conveying device.
原稿の画像を読み取るステップと、
前記画像の傾き角度を検出するステップと、
前記傾き角度に基づいて、回転補正処理の許可/不許可を決定するステップと、
前記回転補正処理が許可された場合に、前記傾き角度に応じて、前記画像に対応する画像データに回転補正処理を実行するステップと
を包含する画像読取方法。
Scanning the image of the document;
Detecting a tilt angle of the image;
Determining permission / denial of rotation correction processing based on the tilt angle;
And a step of executing rotation correction processing on image data corresponding to the image in accordance with the tilt angle when the rotation correction processing is permitted.
JP2015071604A 2015-03-31 2015-03-31 Image reading device and image reading method Pending JP2016192678A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015071604A JP2016192678A (en) 2015-03-31 2015-03-31 Image reading device and image reading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015071604A JP2016192678A (en) 2015-03-31 2015-03-31 Image reading device and image reading method

Publications (1)

Publication Number Publication Date
JP2016192678A true JP2016192678A (en) 2016-11-10

Family

ID=57245865

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015071604A Pending JP2016192678A (en) 2015-03-31 2015-03-31 Image reading device and image reading method

Country Status (1)

Country Link
JP (1) JP2016192678A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10887488B2 (en) 2018-09-05 2021-01-05 Seiko Epson Corporation Reading apparatus and non-transitory computer-readable storage medium storing program for inclination correction of document image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10887488B2 (en) 2018-09-05 2021-01-05 Seiko Epson Corporation Reading apparatus and non-transitory computer-readable storage medium storing program for inclination correction of document image

Similar Documents

Publication Publication Date Title
JP2007335927A (en) Image processing apparatus and image processing program
JP6338469B2 (en) Image processing apparatus and image processing method
JP2011147027A (en) Image reader and image reading system
US7830543B2 (en) Photographic image region extracting apparatus and copying apparatus
JP6463025B2 (en) Image reading device
US10853010B2 (en) Image processing apparatus, image processing method, and storage medium
US20110135362A1 (en) Image forming apparatus and method for de-skewing thereof
US20200296244A1 (en) Image reading apparatus and image reading method
JP2009290627A (en) Image reading device and original size determination program
JP2005252559A (en) Image processor, image processing method and program
JP2016192678A (en) Image reading device and image reading method
JP2009152901A (en) Image processing device, and image processing method
JP2011166778A (en) Image-forming device, and method of correcting image and program for the same
JP2017069877A (en) Image processing apparatus
JP6551316B2 (en) Image reading apparatus and image forming apparatus
JP2011254271A (en) Image processing device and image processing method
US10887488B2 (en) Reading apparatus and non-transitory computer-readable storage medium storing program for inclination correction of document image
JP2009111842A (en) Image reading apparatus
JP6274175B2 (en) Image reading apparatus and image forming apparatus
JP2021039698A (en) Image processing device, method, and computer program
US20230208999A1 (en) Image reading system, image reading method, non-transitory computer-readable storage medium storing program
JP6107493B2 (en) Image reading apparatus, image processing apparatus, and program
JP6083807B2 (en) Image processing apparatus and image forming system
JP6680038B2 (en) Image reading apparatus and image processing method
JP4623214B2 (en) Photo image area extraction device and copy device