JP2003234888A - Image correction device, program, storage medium, and method for correcting image - Google Patents

Image correction device, program, storage medium, and method for correcting image

Info

Publication number
JP2003234888A
JP2003234888A JP2002032775A JP2002032775A JP2003234888A JP 2003234888 A JP2003234888 A JP 2003234888A JP 2002032775 A JP2002032775 A JP 2002032775A JP 2002032775 A JP2002032775 A JP 2002032775A JP 2003234888 A JP2003234888 A JP 2003234888A
Authority
JP
Japan
Prior art keywords
image
skew
correction
page
scanning direction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2002032775A
Other languages
Japanese (ja)
Other versions
JP3891408B2 (en
Inventor
Sadafumi Araki
禎史 荒木
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2002032775A priority Critical patent/JP3891408B2/en
Publication of JP2003234888A publication Critical patent/JP2003234888A/en
Application granted granted Critical
Publication of JP3891408B2 publication Critical patent/JP3891408B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To minimize a change in a distance between the external form of each page after correcting a skew and the locus of an optical axis and to suitably correct three-dimensional distortion in a sub-scanning direction on the basis of the external shape of the page. <P>SOLUTION: The skew angle θ of a scanned image is detected by a binding part boundary TS corresponding to the page binding part of a book original which is detected on the basis of the external form of the page of the book original arranged on the upper and lower sides of the scanned image in a main scanning direction and the main scanning direction of image reading. The skew of the scanned image is corrected by rotating the whole scanned image only by the skew angle θ around an intersecting point O between the locus of the optical axis of an image reading means and the binding part boundary TS. Since the change in the distance between the external form of each page after skew correction and the locus of the optical axis can be minimized, the three- dimensional distortion in the sub-scanning direction on the basis of the external shape of the page can be suitably corrected. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、画像補正装置、プ
ログラム、記憶媒体及び画像補正方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image correction device, a program, a storage medium and an image correction method.

【0002】[0002]

【従来の技術】フラットベットスキャナを用いて読み取
る原稿の多くはシート状の原稿であり、コンタクトガラ
ス上に開閉自在の圧板を設け、コンタクトガラス上に原
稿を載置した後に圧板を閉じて原稿をスキャンするよう
にしている。しかし、原稿としてはシート状のものに限
られず、ブック原稿(本、冊子など)も原稿として扱わ
れることがあり、そのような場合にもコンタクトガラス
上にブック原稿を載置し、原稿をスキャンすることにな
る。
2. Description of the Related Art Most of originals read by using a flat bed scanner are sheet-like originals. An openable / closable pressure plate is provided on a contact glass, and the original is placed on the contact glass and then closed to close the original. I try to scan. However, the originals are not limited to sheet-like ones, and book originals (books, booklets, etc.) may also be handled as originals. In such a case, place the book original on the contact glass and scan the original. Will be done.

【0003】ところが、原稿としてブック原稿を用いた
場合には、図30に示すように、ブック原稿100のペ
ージ綴じ部101がコンタクトガラス102から浮き上
がってしまう。このようにブック原稿100のページ綴
じ部101がコンタクトガラス102から浮き上がって
しまった場合には、ページ綴じ部101が焦点面から離
れてしまうため、浮き上がった部分のスキャン画像に
は、画像歪み、影、文字ボケなどの画像劣化が発生す
る。劣化した画像のページ綴じ部101は読みにくく、
OCRにより文字認識処理を行うときの認識率が著しく
低下する。特に、厚手製本ではその割合が高い。また、
ブック原稿100のページ綴じ部101を焦点面から離
れないように加圧作業した場合には、ブック原稿100
自体を破損してしまうこともある。
However, when a book document is used as the document, the page binding portion 101 of the book document 100 is lifted from the contact glass 102 as shown in FIG. When the page binding portion 101 of the book original 100 floats above the contact glass 102 in this way, the page binding portion 101 moves away from the focal plane, so that the scan image of the floating portion has image distortion and shadow. , Image deterioration such as character blurring occurs. The page binding section 101 of the deteriorated image is difficult to read,
The recognition rate when performing character recognition processing by OCR is significantly reduced. Especially in thick bookbinding, the ratio is high. Also,
When the page binding portion 101 of the book original 100 is pressed so as not to be separated from the focal plane, the book original 100
It may damage itself.

【0004】このような問題を解決すべく、画像の濃度
情報から物体の3次元形状を推定する方法を用いて、画
像の歪みを補正する方法が提案されている。このような
画像の濃度情報から物体の3次元形状を推定する方法と
しては、T. Wada, H. Uchida and T. Matsuyama, “Sha
pe from Shading with Interreflections under a Prox
imal Light Source: Distortion-Free Copying of an U
nfolded Book”, International Journal Computer Vis
ion 24(2), 125-135(1997)に記載されているShape from
Shadingと呼ばれる方法が代表的な例である。
In order to solve such a problem, there has been proposed a method of correcting image distortion by using a method of estimating a three-dimensional shape of an object from density information of the image. As a method for estimating the three-dimensional shape of an object from such density information of an image, T. Wada, H. Uchida and T. Matsuyama, “Sha
pe from Shading with Interreflections under a Prox
imal Light Source: Distortion-Free Copying of an U
nfolded Book ”, International Journal Computer Vis
Ion 24 (2), 125-135 (1997) Shape from
The method called Shading is a typical example.

【0005】しかしながら、前述したShape from Shadi
ngと呼ばれる方法によれば、計算量が多く、歪み補正処
理の計算時間が長いので、実用化は困難である。
However, the above-mentioned Shape from Shadi
According to the method called ng, the amount of calculation is large and the calculation time of the distortion correction processing is long, so that it is difficult to put it into practical use.

【0006】また、特開平5-161002号公報に記載されて
いる方法によれば、三角測量方式により書籍の形状を測
定するための特別な形状計測装置が必要になるため、適
当ではない。
The method disclosed in Japanese Patent Laid-Open No. 5-160002 is not suitable because a special shape measuring device for measuring the shape of a book by the triangulation method is required.

【0007】そこで、近年においては、少ない計算量で
有効に歪みを補正すべく、読み取りスキャン画像のペー
ジ外形の形状を用いて書籍表面の3次元形状を推定する
画像補正装置が提案されている(例えば、特開平11-414
55号公報等を参照)。
Therefore, in recent years, in order to effectively correct the distortion with a small amount of calculation, an image correction apparatus has been proposed which estimates the three-dimensional shape of the book surface using the shape of the page outline of the read scan image ( For example, JP-A-11-414
(See Publication No. 55, etc.).

【0008】[0008]

【発明が解決しようとする課題】ところで、コンタクト
ガラス上にブック原稿をセットする場合、ブック原稿の
画像を下向きにしてセットする必要があり、操作者から
は原稿の裏面しか見ることができないようになってい
る。そのため、スキャン画像には、図31に示すよう
に、ブック原稿のページ綴じ部が主走査方向に対して斜
めに傾く、いわゆるスキューが生じたスキャン画像が発
生する場合がある。
By the way, when setting a book original on the contact glass, it is necessary to set the image of the book original face down, so that the operator can see only the back surface of the original. Has become. Therefore, as shown in FIG. 31, a scan image in which a page binding portion of a book document is inclined with respect to the main scanning direction, that is, a so-called skew may occur in the scan image.

【0009】しかしながら、従来の画像補正方式におい
ては、これらの状況を考慮していないので、このような
スキャン画像の歪みを補正すると十分な補正ができない
ばかりか、むしろ画質が劣化してしまうという問題があ
る。
However, since the conventional image correction method does not take these situations into consideration, if such distortion of the scanned image is corrected, not only the correction cannot be sufficiently performed, but also the image quality is deteriorated. There is.

【0010】本発明の目的は、スキュー補正後の各ペー
ジ外形と光軸の軌跡との間の距離の変化を最小限に抑え
ることができ、ページ外形の形状に基づく副走査方向の
3次元形状歪み補正を適切に行うことができる画像補正
装置、プログラム、記憶媒体及び画像補正方法を提供す
ることである。
An object of the present invention is to minimize the change in the distance between each page outline after skew correction and the optical axis locus, and to obtain a three-dimensional shape in the sub-scanning direction based on the page outline shape. An object of the present invention is to provide an image correction device, a program, a storage medium, and an image correction method capable of appropriately performing distortion correction.

【0011】本発明の目的は、歪み補正に伴う画質の劣
化を回避することができる画像補正装置、プログラム、
記憶媒体及び画像補正方法を提供することである。
An object of the present invention is to provide an image correction device, a program, and a program capable of avoiding deterioration of image quality due to distortion correction.
A storage medium and an image correction method are provided.

【0012】[0012]

【課題を解決するための手段】請求項1記載の発明の画
像補正装置は、画像読み取りの主走査方向に対してペー
ジ綴じ部をほぼ平行にしてコンタクトガラスの上もしく
は下に接触させたブック原稿を画像読取手段により読み
取ったスキャン画像を補正する画像補正装置において、
前記スキャン画像の主走査方向上辺及び下辺の近傍に位
置する前記ブック原稿のページ外形を前記スキャン画像
から抽出するページ外形抽出手段と、このページ外形抽
出手段により抽出された前記ページ外形に基づいて前記
ページ綴じ部に対応する綴じ部境界線を検出する綴じ部
境界線検出手段と、この綴じ部境界線検出手段により検
出された前記綴じ部境界線と画像読み取りの主走査方向
との成す角度を前記スキャン画像のスキュー角度として
検出するスキュー角度検出手段と、前記画像読取手段の
光軸の軌跡と前記綴じ部境界線との交点を中心として前
記スキュー角度検出手段により検出された前記スキュー
角度だけ前記スキャン画像全体を回転させ、前記スキャ
ン画像のスキューを補正するスキュー補正手段と、前記
ページ外形の形状に基づいて前記スキャン画像の3次元
形状歪みを補正する画像歪み補正手段と、を備える。
An image correcting apparatus according to the present invention is a book document in which a page binding portion is substantially parallel to a main scanning direction of image reading and is brought into contact with an upper or lower portion of a contact glass. In an image correction device that corrects the scanned image read by the image reading means,
Based on the page outline extracting means for extracting the page outline of the book document located near the upper side and the lower side in the main scanning direction of the scan image from the scan image, and the page outline extracted by the page outline extracting means. The binding part boundary line detecting means for detecting the binding part boundary line corresponding to the page binding part, and the angle formed between the binding part boundary line detected by the binding part boundary line detecting means and the main scanning direction of the image reading, The skew angle detecting means for detecting the skew angle of the scanned image, and the scan for the skew angle detected by the skew angle detecting means around the intersection of the locus of the optical axis of the image reading means and the binding part boundary line. Skew correction means for rotating the entire image to correct the skew of the scanned image, and the shape of the page outer shape And an image distortion correcting means for correcting the three-dimensional shape distortion of the scanned image based.

【0013】したがって、スキャン画像の主走査方向上
辺及び下辺の近傍に位置するブック原稿のページ外形に
基づいてブック原稿のページ綴じ部に対応する綴じ部境
界線が検出され、この綴じ部境界線と画像読み取りの主
走査方向とによりスキャン画像のスキュー角度が検出さ
れる。そして、スキャン画像全体が、画像読取手段の光
軸の軌跡と綴じ部境界線との交点を中心としてスキュー
角度だけ回転されることにより、スキャン画像のスキュ
ーが補正される。このようにしてスキューが補正された
スキャン画像は、ページ外形の形状に基づいて3次元形
状歪みも補正される。これにより、スキュー補正にあた
っては画像読取手段の光軸の軌跡と綴じ部境界線との交
点を中心として回転させていることから、スキュー補正
後の各ページ外形と光軸の軌跡との間の距離の変化を最
小限に抑えることが可能になるので、検出されたスキュ
ー角度が大きい場合であっても、ページ外形の形状に基
づく副走査方向の3次元形状歪み補正を適切に行うこと
が可能になる。
Therefore, the binding part boundary line corresponding to the page binding part of the book document is detected based on the page outlines of the book document located near the upper side and the lower side of the scanned image in the main scanning direction. The skew angle of the scanned image is detected depending on the main scanning direction of image reading. Then, the skew of the scan image is corrected by rotating the entire scan image by the skew angle about the intersection of the locus of the optical axis of the image reading means and the binding part boundary line. In the scan image in which the skew is corrected in this way, the three-dimensional shape distortion is also corrected based on the shape of the page outline. As a result, in skew correction, since rotation is performed around the intersection of the optical axis trajectory of the image reading means and the binding part boundary line, the distance between each page outline after skew correction and the optical axis trajectory is corrected. Therefore, even if the detected skew angle is large, it is possible to appropriately perform the three-dimensional shape distortion correction in the sub-scanning direction based on the shape of the page outline. Become.

【0014】請求項2記載の発明は、請求項1記載の画
像補正装置において、前記ページ外形抽出手段は、前記
スキャン画像の副走査方向における中央位置から一定範
囲の領域内より前記ブック原稿のページ外形を抽出す
る。
According to a second aspect of the present invention, in the image correction apparatus according to the first aspect, the page outer shape extracting means includes pages of the book document from within a certain range from a central position of the scan image in the sub-scanning direction. Extract the outline.

【0015】したがって、スキャン画像の綴じ部境界線
の位置は、スキャン画像の副走査方向のほぼ中央に存在
すると考えられるため、このように探索する範囲をスキ
ャン画像の副走査方向における中央位置から一定範囲の
領域に限定することにより、処理時間を短くすることが
可能になる。
Therefore, it is considered that the position of the binding line boundary line of the scan image exists substantially at the center of the scan image in the sub-scanning direction, and thus the range to be searched in this way is constant from the center position of the scan image in the sub-scanning direction. By limiting the area to the range, the processing time can be shortened.

【0016】請求項3記載の発明は、請求項1または2
記載の画像補正装置において、前記綴じ部境界線検出手
段は、前記ページ外形抽出手段により抽出された主走査
方向上辺に位置する前記ページ外形についてはその主走
査方向の座標値が最小の点を前記綴じ部境界線の一方の
端点とし、主走査方向下辺に位置する前記ページ外形に
ついてはその主走査方向の座標値が最大の点を前記綴じ
部境界線の他方の端点とし、両端点を結ぶ線分を前記綴
じ部境界線とみなす。
The invention according to claim 3 is the invention according to claim 1 or 2.
In the image correction apparatus described above, the binding portion boundary line detecting unit determines a point having a minimum coordinate value in the main scanning direction for the page outer shape located on the upper side in the main scanning direction extracted by the page outer shape extracting unit. As one end point of the binding section boundary line, and for the page outer shape located on the lower side in the main scanning direction, the point having the maximum coordinate value in the main scanning direction is the other end point of the binding section boundary line, and a line connecting both end points The minute is regarded as the boundary line of the binding portion.

【0017】したがって、ページ綴じ部に対応する綴じ
部境界線はスキャン画像の主走査方向上辺及び下辺のペ
ージ外形の内側へ最も食い込んだ2点を結ぶ線分である
ため、確実にページ綴じ部に対応する綴じ部境界線を検
出することが可能になる。
Therefore, since the binding portion boundary line corresponding to the page binding portion is a line segment that connects the two points that are most indented inside the page outline on the upper side and the lower side in the main scanning direction of the scanned image, the page binding portion is surely It is possible to detect the corresponding binding part boundary line.

【0018】請求項4記載の発明は、請求項1ないし3
のいずれか一記載の画像補正装置において、前記スキュ
ー補正手段は、画像回転後の前記スキャン画像の各画素
値について隣接する4ブロックの各画素値を基に線形補
間処理を行う線形補間手段を備える。
The invention according to claim 4 is the invention according to claims 1 to 3.
In the image correction device described in any one of 1 to 3, the skew correction unit includes a linear interpolation unit that performs a linear interpolation process based on pixel values of four adjacent blocks for each pixel value of the scanned image after image rotation. .

【0019】したがって、スキャン画像全体を回転させ
て補正した画像の画素の座標が小数になることはない。
これにより、スキュー補正画像の画質を維持することが
可能になる。
Therefore, the coordinates of the pixels of the image corrected by rotating the entire scan image will not be decimal.
This makes it possible to maintain the image quality of the skew corrected image.

【0020】請求項5記載の発明は、請求項1ないし4
のいずれか一記載の画像補正装置において、前記スキュ
ー角度検出手段により検出された前記スキュー角度の絶
対値に応じ、前記スキュー補正手段と前記画像歪み補正
手段とを選択的に実行する補正選択手段を備える。
The present invention as defined in claim 5 is any one of claims 1 to 4.
In the image correction device according to any one of the items 1 to 5, a correction selection unit that selectively executes the skew correction unit and the image distortion correction unit according to an absolute value of the skew angle detected by the skew angle detection unit is provided. Prepare

【0021】したがって、スキュー角度の絶対値の大小
に応じてスキュー補正手段と画像歪み補正手段とを選択
的に実行することが可能になるので、例えば、スキュー
角度の絶対値が非常に小さい画像ではスキュー補正をし
なくても3次元形状歪み補正のみで十分に補正できるの
で、処理時間短縮のためにスキュー補正を省略すること
が可能になり、スキュー角度の絶対値が非常に大きい画
像では3次元形状歪み補正を施すとむしろ歪みが増大し
て画質が劣化してしまう場合もあり得るので、この場合
にはスキュー補正及び歪み補正を行わないようにすれ
ば、歪み補正に伴う画質の劣化を回避することが可能に
なる。
Therefore, it becomes possible to selectively execute the skew correction means and the image distortion correction means according to the magnitude of the absolute value of the skew angle. For example, in an image in which the absolute value of the skew angle is very small. Even if the skew correction is not performed, the correction can be sufficiently performed by only the three-dimensional shape distortion correction. Therefore, the skew correction can be omitted to shorten the processing time, and the three-dimensional image can be processed in a very large absolute value of the skew angle. When the shape distortion correction is performed, the distortion may rather increase and the image quality may be deteriorated. Therefore, in this case, if the skew correction and the distortion correction are not performed, the deterioration of the image quality due to the distortion correction can be avoided. It becomes possible to do.

【0022】請求項6記載の発明は、請求項5記載の画
像補正装置において、前記補正選択手段は、前記スキュ
ー角度検出手段により検出された前記スキュー角度の絶
対値が予め定められた第一の閾値以上の場合には、前記
スキャン画像に対する前記スキュー補正手段によるスキ
ュー補正及び前記画像歪み補正手段による歪み補正は行
わず、前記スキュー角度検出手段により検出された前記
スキュー角度の絶対値が前記第一の閾値未満であって予
め定められた第二の閾値以上の場合には、前記スキュー
補正手段によりスキューが補正された前記スキャン画像
の3次元形状歪みを前記画像歪み補正手段により補正
し、前記スキュー角度検出手段により検出された前記ス
キュー角度の絶対値が前記第二の閾値未満の場合には、
前記スキュー補正手段によるスキュー補正を行わずに前
記スキャン画像の3次元形状歪みのみを前記画像歪み補
正手段により補正する。
According to a sixth aspect of the present invention, in the image correction apparatus according to the fifth aspect, the correction selecting means is a first absolute value of the skew angle detected by the skew angle detecting means. When it is equal to or more than the threshold value, the skew correction by the skew correction means and the distortion correction by the image distortion correction means with respect to the scan image are not performed, and the absolute value of the skew angle detected by the skew angle detection means is the first value. Is less than the threshold value and is greater than or equal to a second threshold value that is set in advance, the three-dimensional shape distortion of the scan image whose skew has been corrected by the skew correction means is corrected by the image distortion correction means, and the skew is corrected. When the absolute value of the skew angle detected by the angle detection means is less than the second threshold value,
Only the three-dimensional shape distortion of the scan image is corrected by the image distortion correction means without performing the skew correction by the skew correction means.

【0023】したがって、スキュー角度の絶対値が第一
の閾値未満であれば、処理が続行され、そうでなければ
処理が中断される。そして、処理が続行される場合であ
っても、スキュー角度の絶対値が第二の閾値以上である
場合には、スキュー補正後に3次元形状歪み補正処理が
実行される。これにより、歪み補正に伴う画質の劣化を
回避することが可能になる。
Therefore, if the absolute value of the skew angle is less than the first threshold value, the process is continued, otherwise the process is interrupted. Then, even when the processing is continued, if the absolute value of the skew angle is equal to or larger than the second threshold value, the three-dimensional shape distortion correction processing is executed after the skew correction. This makes it possible to avoid deterioration of image quality due to distortion correction.

【0024】請求項7記載の発明は、請求項5記載の画
像補正装置において、前記補正選択手段は、前記スキュ
ー角度検出手段により検出された前記スキュー角度の絶
対値が予め定められた閾値以上の場合には、前記スキュ
ー補正手段によりスキューが補正された前記スキャン画
像の3次元形状歪みを前記画像歪み補正手段により補正
し、前記スキュー角度検出手段により検出された前記ス
キュー角度の絶対値が予め定められた閾値未満の場合に
は、前記スキュー補正手段によるスキュー補正を行わず
に前記スキャン画像の3次元形状歪みのみを前記画像歪
み補正手段により補正する。
According to a seventh aspect of the invention, in the image correction apparatus according to the fifth aspect, the correction selecting means has an absolute value of the skew angle detected by the skew angle detecting means which is equal to or larger than a predetermined threshold value. In this case, the image distortion correction unit corrects the three-dimensional shape distortion of the scan image whose skew has been corrected by the skew correction unit, and the absolute value of the skew angle detected by the skew angle detection unit is predetermined. If it is less than the threshold value, the skew correction by the skew correction unit is not performed, and only the three-dimensional shape distortion of the scan image is corrected by the image distortion correction unit.

【0025】したがって、スキュー角度の絶対値が閾値
以上であれば、スキュー補正後に3次元形状歪み補正処
理が実行され、そうでなければスキュー補正を行わずに
3次元形状歪み補正処理のみが実行される。これによ
り、歪み補正に伴う画質の劣化を回避することが可能に
なる。
Therefore, if the absolute value of the skew angle is greater than or equal to the threshold value, the three-dimensional shape distortion correction processing is executed after the skew correction, and if not, only the three-dimensional shape distortion correction processing is executed without performing the skew correction. It This makes it possible to avoid deterioration of image quality due to distortion correction.

【0026】請求項8記載の発明は、請求項5記載の画
像補正装置において、前記補正選択手段は、前記スキュ
ー角度検出手段により検出された前記スキュー角度の絶
対値が予め定められた閾値以上の場合には、前記スキャ
ン画像に対する前記スキュー補正手段によるスキュー補
正及び前記画像歪み補正手段による歪み補正は行わず、
前記スキュー角度検出手段により検出された前記スキュ
ー角度の絶対値が予め定められた閾値未満の場合には、
前記スキュー補正手段によりスキューが補正された前記
スキャン画像の3次元形状歪みを前記画像歪み補正手段
により補正する。
According to an eighth aspect of the present invention, in the image correction apparatus according to the fifth aspect, the correction selecting means has an absolute value of the skew angle detected by the skew angle detecting means which is equal to or larger than a predetermined threshold value. In this case, skew correction by the skew correction unit and distortion correction by the image distortion correction unit with respect to the scan image are not performed,
When the absolute value of the skew angle detected by the skew angle detecting means is less than a predetermined threshold value,
The image distortion correction unit corrects the three-dimensional shape distortion of the scan image whose skew has been corrected by the skew correction unit.

【0027】したがって、スキュー角度の絶対値が予め
定められた閾値以上であれば、処理が中断され、そうで
なければスキュー補正後に3次元形状歪み補正処理が実
行される。これにより、歪み補正に伴う画質の劣化を回
避することが可能になる。
Therefore, if the absolute value of the skew angle is equal to or larger than the predetermined threshold value, the processing is interrupted, and if not, the three-dimensional shape distortion correction processing is executed after the skew correction. This makes it possible to avoid deterioration of image quality due to distortion correction.

【0028】請求項9記載の発明のプログラムは、画像
読み取りの主走査方向に対してページ綴じ部をほぼ平行
にしてコンタクトガラスの上もしくは下に接触させたブ
ック原稿を画像読取手段により読み取ったスキャン画像
の画像補正をコンピュータに実行させるプログラムであ
って、前記コンピュータに、前記スキャン画像の主走査
方向上辺及び下辺の近傍に位置する前記ブック原稿のペ
ージ外形を前記スキャン画像から抽出するページ外形抽
出機能と、このページ外形抽出機能により抽出された前
記ページ外形に基づいて前記ページ綴じ部に対応する綴
じ部境界線を検出する綴じ部境界線検出機能と、この綴
じ部境界線検出機能により検出された前記綴じ部境界線
と画像読み取りの主走査方向との成す角度を前記スキャ
ン画像のスキュー角度として検出するスキュー角度検出
機能と、前記画像読取手段の光軸の軌跡と前記綴じ部境
界線との交点を中心として前記スキュー角度検出機能に
より検出された前記スキュー角度だけ前記スキャン画像
全体を回転させ、前記スキャン画像のスキューを補正す
るスキュー補正機能と、前記ページ外形の形状に基づい
て前記スキャン画像の3次元形状歪みを補正する画像歪
み補正機能と、を実行させる。
According to a ninth aspect of the present invention, there is provided a program for scanning a book document, which is brought into contact with the top or bottom of a contact glass with the page binding portion substantially parallel to the main scanning direction of image reading, read by the image reading means. A program for causing a computer to perform image correction of an image, the page outline extracting function for causing the computer to extract the page outline of the book document located near the upper side and the lower side in the main scanning direction of the scan image from the scan image. And a binding part boundary line detecting function for detecting a binding part boundary line corresponding to the page binding part based on the page external shape extracted by the page external shape extracting function, and a binding part boundary line detecting function. The angle formed between the binding portion boundary line and the main scanning direction of image reading is the skew of the scanned image. Skew angle detection function for detecting the degree as a degree, and rotating the entire scan image by the skew angle detected by the skew angle detection function around the intersection of the locus of the optical axis of the image reading means and the binding part boundary line. Then, the skew correction function for correcting the skew of the scan image and the image distortion correction function for correcting the three-dimensional shape distortion of the scan image based on the shape of the page outer shape are executed.

【0029】したがって、スキャン画像の主走査方向上
辺及び下辺の近傍に位置するブック原稿のページ外形に
基づいてブック原稿のページ綴じ部に対応する綴じ部境
界線が検出され、この綴じ部境界線と画像読み取りの主
走査方向とによりスキャン画像のスキュー角度が検出さ
れる。そして、スキャン画像全体が、画像読取手段の光
軸の軌跡と綴じ部境界線との交点を中心としてスキュー
角度だけ回転されることにより、スキャン画像のスキュ
ーが補正される。このようにしてスキューが補正された
スキャン画像は、ページ外形の形状に基づいて3次元形
状歪みも補正される。これにより、スキュー補正にあた
っては画像読取手段の光軸の軌跡と綴じ部境界線との交
点を中心として回転させていることから、スキュー補正
後の各ページ外形と光軸の軌跡との間の距離の変化を最
小限に抑えることが可能になるので、検出されたスキュ
ー角度が大きい場合であっても、ページ外形の形状に基
づく副走査方向の3次元形状歪み補正を適切に行うこと
が可能になる。
Therefore, the binding part boundary line corresponding to the page binding part of the book document is detected based on the page outline of the book document located near the upper side and the lower side of the scanned image in the main scanning direction. The skew angle of the scanned image is detected depending on the main scanning direction of image reading. Then, the skew of the scan image is corrected by rotating the entire scan image by the skew angle about the intersection of the locus of the optical axis of the image reading means and the binding part boundary line. In the scan image in which the skew is corrected in this way, the three-dimensional shape distortion is also corrected based on the shape of the page outline. As a result, in skew correction, since rotation is performed around the intersection of the optical axis trajectory of the image reading means and the binding part boundary line, the distance between each page outline after skew correction and the optical axis trajectory is corrected. Therefore, even if the detected skew angle is large, it is possible to appropriately perform the three-dimensional shape distortion correction in the sub-scanning direction based on the shape of the page outline. Become.

【0030】請求項10記載の発明の記憶媒体は、画像
読み取りの主走査方向に対してページ綴じ部をほぼ平行
にしてコンタクトガラスの上もしくは下に接触させたブ
ック原稿を画像読取手段により読み取ったスキャン画像
の画像補正をコンピュータに実行させるプログラムを記
憶するコンピュータに読み取り可能な記憶媒体であっ
て、前記コンピュータに、前記スキャン画像の主走査方
向上辺及び下辺の近傍に位置する前記ブック原稿のペー
ジ外形を前記スキャン画像から抽出するページ外形抽出
機能と、このページ外形抽出機能により抽出された前記
ページ外形に基づいて前記ページ綴じ部に対応する綴じ
部境界線を検出する綴じ部境界線検出機能と、この綴じ
部境界線検出機能により検出された前記綴じ部境界線と
画像読み取りの主走査方向との成す角度を前記スキャン
画像のスキュー角度として検出するスキュー角度検出機
能と、前記画像読取手段の光軸の軌跡と前記綴じ部境界
線との交点を中心として前記スキュー角度検出機能によ
り検出された前記スキュー角度だけ前記スキャン画像全
体を回転させ、前記スキャン画像のスキューを補正する
スキュー補正機能と、前記ページ外形の形状に基づいて
前記スキャン画像の3次元形状歪みを補正する画像歪み
補正機能と、を実行させるプログラムを記憶する。
In the storage medium according to the tenth aspect of the present invention, the book reading original which is brought into contact with the upper or lower side of the contact glass with the page binding portion substantially parallel to the main scanning direction of image reading is read by the image reading means. A computer-readable storage medium that stores a program for causing a computer to perform image correction of a scan image, the page outline of the book document being located in the computer near an upper side and a lower side in a main scanning direction of the scan image. A page outline extraction function for extracting from the scan image, and a binding part boundary line detection function for detecting a binding part boundary line corresponding to the page binding part based on the page outline extracted by the page external shape extraction function, The binding part boundary line detected by this binding part boundary line detection function and the main scanning of the image A skew angle detection function for detecting the angle formed by the direction as the skew angle of the scan image, and the skew angle detection function for detecting the skew angle of the optical axis of the image reading means and the boundary line of the binding portion as the center. A skew correction function of correcting the skew of the scan image by rotating the entire scan image by the skew angle, and an image distortion correction function of correcting three-dimensional shape distortion of the scan image based on the shape of the page outer shape. , A program for executing, is stored.

【0031】したがって、スキャン画像の主走査方向上
辺及び下辺の近傍に位置するブック原稿のページ外形に
基づいてブック原稿のページ綴じ部に対応する綴じ部境
界線が検出され、この綴じ部境界線と画像読み取りの主
走査方向とによりスキャン画像のスキュー角度が検出さ
れる。そして、スキャン画像全体が、画像読取手段の光
軸の軌跡と綴じ部境界線との交点を中心としてスキュー
角度だけ回転されることにより、スキャン画像のスキュ
ーが補正される。このようにしてスキューが補正された
スキャン画像は、ページ外形の形状に基づいて3次元形
状歪みも補正される。これにより、スキュー補正にあた
っては画像読取手段の光軸の軌跡と綴じ部境界線との交
点を中心として回転させていることから、スキュー補正
後の各ページ外形と光軸の軌跡との間の距離の変化を最
小限に抑えることが可能になるので、検出されたスキュ
ー角度が大きい場合であっても、ページ外形の形状に基
づく副走査方向の3次元形状歪み補正を適切に行うこと
が可能になる。
Therefore, the binding part boundary line corresponding to the page binding part of the book document is detected based on the page outlines of the book document located near the upper side and the lower side in the main scanning direction of the scanned image. The skew angle of the scanned image is detected depending on the main scanning direction of image reading. Then, the skew of the scan image is corrected by rotating the entire scan image by the skew angle about the intersection of the locus of the optical axis of the image reading means and the binding part boundary line. In the scan image in which the skew is corrected in this way, the three-dimensional shape distortion is also corrected based on the shape of the page outline. As a result, in skew correction, since rotation is performed around the intersection of the optical axis trajectory of the image reading means and the binding part boundary line, the distance between each page outline after skew correction and the optical axis trajectory is corrected. Therefore, even if the detected skew angle is large, it is possible to appropriately perform the three-dimensional shape distortion correction in the sub-scanning direction based on the shape of the page outline. Become.

【0032】請求項11記載の発明の画像補正方法は、
画像読み取りの主走査方向に対してページ綴じ部をほぼ
平行にしてコンタクトガラスの上もしくは下に接触させ
たブック原稿を画像読取手段により読み取ったスキャン
画像の画像補正方法であって、前記スキャン画像の主走
査方向上辺及び下辺の近傍に位置する前記ブック原稿の
ページ外形を前記スキャン画像から抽出するページ外形
抽出工程と、このページ外形抽出工程により抽出された
前記ページ外形に基づいて前記ページ綴じ部に対応する
綴じ部境界線を検出する綴じ部境界線検出工程と、この
綴じ部境界線検出工程により検出された前記綴じ部境界
線と画像読み取りの主走査方向との成す角度を前記スキ
ャン画像のスキュー角度として検出するスキュー角度検
出工程と、前記画像読取手段の光軸の軌跡と前記綴じ部
境界線との交点を中心として前記スキュー角度検出手段
により検出された前記スキュー角度だけ前記スキャン画
像全体を回転させ、前記スキャン画像のスキューを補正
するスキュー補正工程と、前記ページ外形の形状に基づ
いて前記スキャン画像の3次元形状歪みを補正する画像
歪み補正工程と、を含む。
The image correction method according to the invention of claim 11 is
An image correction method for a scan image obtained by reading a book document, which is brought into contact with the top or bottom of a contact glass with the page binding portion substantially parallel to the main scanning direction of image reading, by an image reading means. A page outline extraction step of extracting the page outline of the book document located near the upper side and the lower side in the main scanning direction from the scan image, and the page binding section based on the page outline extracted by the page outline extraction step. A binding portion boundary line detecting step of detecting a corresponding binding portion boundary line, and an angle formed between the binding portion boundary line detected by the binding portion boundary line detecting step and a main scanning direction of image reading is a skew of the scan image. The skew angle detecting step of detecting the angle, and the intersection point of the locus of the optical axis of the image reading means and the binding part boundary line A skew correction step of correcting the skew of the scan image by rotating the entire scan image by the skew angle detected by the skew angle detecting means as a core, and a three-dimensional image of the scan image based on the shape of the page outline. An image distortion correction step of correcting the shape distortion.

【0033】したがって、スキャン画像の主走査方向上
辺及び下辺の近傍に位置するブック原稿のページ外形に
基づいてブック原稿のページ綴じ部に対応する綴じ部境
界線が検出され、この綴じ部境界線と画像読み取りの主
走査方向とによりスキャン画像のスキュー角度が検出さ
れる。そして、スキャン画像全体が、画像読取手段の光
軸の軌跡と綴じ部境界線との交点を中心としてスキュー
角度だけ回転されることにより、スキャン画像のスキュ
ーが補正される。このようにしてスキューが補正された
スキャン画像は、ページ外形の形状に基づいて3次元形
状歪みも補正される。これにより、スキュー補正にあた
っては画像読取手段の光軸の軌跡と綴じ部境界線との交
点を中心として回転させていることから、スキュー補正
後の各ページ外形と光軸の軌跡との間の距離の変化を最
小限に抑えることが可能になるので、検出されたスキュ
ー角度が大きい場合であっても、ページ外形の形状に基
づく副走査方向の3次元形状歪み補正を適切に行うこと
が可能になる。
Therefore, the binding part boundary line corresponding to the page binding part of the book document is detected based on the page outlines of the book document located near the upper side and the lower side of the scanned image in the main scanning direction. The skew angle of the scanned image is detected depending on the main scanning direction of image reading. Then, the skew of the scan image is corrected by rotating the entire scan image by the skew angle about the intersection of the locus of the optical axis of the image reading means and the binding part boundary line. In the scan image in which the skew is corrected in this way, the three-dimensional shape distortion is also corrected based on the shape of the page outline. As a result, in skew correction, since rotation is performed around the intersection of the optical axis trajectory of the image reading means and the binding part boundary line, the distance between each page outline after skew correction and the optical axis trajectory is corrected. Therefore, even if the detected skew angle is large, it is possible to appropriately perform the three-dimensional shape distortion correction in the sub-scanning direction based on the shape of the page outline. Become.

【0034】[0034]

【発明の実施の形態】本発明の第一の実施の形態を図1
ないし図25に基づいて説明する。本実施の形態の画像
補正装置は画像形成装置であるデジタル複写機に備えら
れており、画像読取装置としてはデジタル複写機のスキ
ャナ部が適用されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a first embodiment of the present invention.
25 to 25 will be described. The image correction apparatus of the present embodiment is provided in a digital copying machine which is an image forming apparatus, and the scanner unit of the digital copying machine is applied as the image reading apparatus.

【0035】ここで、図1はスキャナ部1の構成を示す
縦断正面図である。図1に示すように、スキャナ部1
は、原稿を載置するコンタクトガラス2と、原稿の露光
用の露光ランプ3及び第一反射ミラー4からなる第一走
行体5と、第二反射ミラー6及び第三反射ミラー7から
なる第二走行体8と、原稿の画像を読み取る撮像素子と
してのCCD(Charge Coupled Device)9と、このC
CD9に結像させるためのレンズユニット10と、原稿
を載置する基準になるとともにコンタクトガラス2のズ
レや外れを防止する原稿スケール11と、この原稿スケ
ール11の下側に設置されたシェーディング補正用の白
基準板12と、フレーム14とを備えている。CCD9
はセンサボード13上に形成されている。
Here, FIG. 1 is a vertical sectional front view showing the configuration of the scanner unit 1. As shown in FIG. 1, the scanner unit 1
Is a contact glass 2 on which an original is placed, a first traveling body 5 including an exposure lamp 3 for exposing the original and a first reflecting mirror 4, and a second traveling mirror including a second reflecting mirror 6 and a third reflecting mirror 7. A running body 8, a CCD (Charge Coupled Device) 9 as an image pickup device for reading an image of an original, and a C
A lens unit 10 for forming an image on the CD 9, a document scale 11 that serves as a reference for placing a document and prevents the contact glass 2 from being displaced or dislocated, and for shading correction installed under the document scale 11. The white reference plate 12 and the frame 14 are provided. CCD9
Are formed on the sensor board 13.

【0036】原稿の走査時には、第一走行体5及び第二
走行体8はステッピングモータ24(図3参照)によっ
て副走査方向に移動する。すなわち、第一走行体5及び
第二走行体8がコンタクトガラス2の下を走行して、露
光ランプ3で原稿を露光走査し、その反射光を第一反射
ミラー4、第二反射ミラー6及び第三反射ミラー7で反
射して、レンズユニット10を通してCCD9に結像さ
せる。ここに、画像読取手段が実現されている。
When scanning the original, the first traveling body 5 and the second traveling body 8 are moved in the sub-scanning direction by the stepping motor 24 (see FIG. 3). That is, the first traveling body 5 and the second traveling body 8 travel under the contact glass 2 to expose and scan an original with the exposure lamp 3, and the reflected light thereof is reflected by the first reflection mirror 4, the second reflection mirror 6, and the second reflection mirror 6. The light is reflected by the third reflection mirror 7 and focused on the CCD 9 through the lens unit 10. The image reading means is realized here.

【0037】このようなスキャナ部1は、このスキャナ
部1で読み取られた原稿の画像に基づく画像データに応
じ、例えば電子写真方式で用紙上に画像の形成を行う画
像印刷装置であるプリンタ部(図示せず)を備えるデジ
タル複写機16に搭載されている。図2は、スキャナ部
1を搭載したデジタル複写機16の上部部分を示す斜視
図である。図2に示すように、スキャナ部1には、コン
タクトガラス2に対して開閉自在な圧板17と、この圧
板17の開閉を検出する開閉センサ18とが設けられて
いる。なお、デジタル複写機16に備えられるプリンタ
としては、電子写真方式のほか、インクジェット方式、
昇華型熱転写方式、銀塩写真方式、直接感熱記録方式、
溶融型熱転写方式など、種々の印刷方式を適用すること
ができる。その具体的な構成については周知であるた
め、詳細な説明は省略する。
The scanner unit 1 as described above is a printer unit (a printer unit, which is an image printing device, which forms an image on a sheet by, for example, an electrophotographic method according to image data based on an image of a document read by the scanner unit 1 ( It is mounted on a digital copying machine 16 including an unillustrated device). FIG. 2 is a perspective view showing an upper portion of the digital copying machine 16 equipped with the scanner unit 1. As shown in FIG. 2, the scanner unit 1 is provided with a pressure plate 17 that can be opened and closed with respect to the contact glass 2 and an opening / closing sensor 18 that detects opening / closing of the pressure plate 17. The printer provided in the digital copying machine 16 includes an electrophotographic system, an inkjet system,
Sublimation type thermal transfer system, silver salt photography system, direct thermal recording system,
Various printing methods such as a fusion type thermal transfer method can be applied. Since its specific configuration is well known, detailed description thereof will be omitted.

【0038】図3は、スキャナ部1の制御系の電気的な
接続を示すブロック図である。図3に示すように、この
制御系は、スキャナ部1の全体を制御するメイン制御部
19に、CCD9で読み取った画像データに各種の画像
処理を施す回路である画像処理部20と、第一走行体5
及び第二走行体8を制御する回路である走行体制御部2
1と、デジタル複写機16への各種操作を受け付け、ま
た、各種メッセージを表示する操作パネル22と、CC
D9で読み取った画像データや所定のデータ等を記憶す
るメモリ23とが接続されている。なお、操作パネル2
2には、コピー開始を宣言するためのコピースタートキ
ー等が設けられている。また、走行体制御部21には、
露光ランプ3と、第一走行体5及び第二走行体8を駆動
するステッピングモータ24と、第一走行体5及び第二
走行体8がホームポジションにあるか否かを検出するス
キャナホームポジションセンサ(HPセンサ)25と、
開閉センサ18とが接続されている。
FIG. 3 is a block diagram showing the electrical connection of the control system of the scanner section 1. As shown in FIG. 3, this control system includes a main control unit 19 that controls the entire scanner unit 1, an image processing unit 20 that is a circuit that performs various image processes on image data read by the CCD 9, and a first control unit 19. Traveling body 5
And a traveling body control unit 2 which is a circuit for controlling the second traveling body 8.
1, an operation panel 22 for receiving various operations to the digital copying machine 16 and displaying various messages, and a CC
The memory 23 that stores the image data read in D9, predetermined data, and the like is connected. The operation panel 2
2 is provided with a copy start key for declaring the start of copying. Further, the traveling body control unit 21 has
Exposure lamp 3, stepping motor 24 that drives first traveling body 5 and second traveling body 8, and scanner home position sensor that detects whether first traveling body 5 and second traveling body 8 are at home positions. (HP sensor) 25,
The open / close sensor 18 is connected.

【0039】ここで、図4は画像処理部20の基本的な
内部構成を示すブロック図である。図4に示すように、
画像処理部20は、原稿をCCD9により読み取ったア
ナログ画像信号の増幅処理やデジタル変換処理等を行う
アナログビデオ処理部26、シェーディング補正処理を
行うシェーディング補正処理部27、シェーディング補
正処理後のデジタル画像信号に、MTF補正、変倍処
理、γ補正等の各種画像データ処理を行いスキャン画像
を生成する画像データ処理部28、本実施の形態の特長
的な機能であるスキャン画像の画像補正機能を実現する
画像補正部29から構成されている。以上のような画像
処理後のデジタル画像信号は、メイン制御部19を介し
てプリンタ部に送信されて、画像形成に供される。
FIG. 4 is a block diagram showing the basic internal structure of the image processing section 20. As shown in FIG.
The image processing unit 20 includes an analog video processing unit 26 that performs amplification processing and digital conversion processing of an analog image signal obtained by reading an original with the CCD 9, a shading correction processing unit 27 that performs shading correction processing, and a digital image signal after shading correction processing. Further, an image data processing unit 28 that performs various image data processing such as MTF correction, scaling processing, and γ correction to generate a scan image, and an image correction function of a scan image that is a characteristic function of the present embodiment are realized. It is composed of an image correction unit 29. The digital image signal after the above image processing is transmitted to the printer unit via the main control unit 19 and is used for image formation.

【0040】メイン制御部19は、図5に示すように、
各部を集中的に制御するCPU(Central Processing U
nit)31を備えており、このCPU31には、BIO
Sなどを記憶した読出し専用メモリであるROM(Read
Only Memory)32と、各種データを書換え可能に記憶
してCPU31の作業エリアとして機能するRAM(Ra
ndom Access Memory)33とがバス34で接続されてお
り、マイクロコンピュータを構成している。さらにバス
34には、制御プログラムが記憶されたHDD35と、
CD(Compact Disc)−ROM37を読み取るCD−R
OMドライブ36と、プリンタ部等との通信を司るイン
タフェース(I/F)38とが接続されている。
The main controller 19 is, as shown in FIG.
A CPU (Central Processing Unit) that centrally controls each unit
nit) 31 and the CPU 31 has a BIO
ROM (Read Only Memory that stores S etc.)
Only Memory) 32 and a RAM (Ra that functions as a work area of the CPU 31 by rewritably storing various data.
ndom Access Memory) 33 is connected by a bus 34 to form a microcomputer. Further, on the bus 34, an HDD 35 in which a control program is stored,
CD (Compact Disc) -CD-R that reads ROM 37
An OM drive 36 and an interface (I / F) 38 that controls communication with the printer unit and the like are connected.

【0041】図5に示すCD−ROM37は、この発明
の記憶媒体を実施するものであり、所定の制御プログラ
ムが記憶されている。CPU31は、CD−ROM37
に記憶されている制御プログラムをCD−ROMドライ
ブ36で読み取り、HDD35にインストールする。こ
れにより、メイン制御部19は、後述するような各種の
処理を行うことが可能な状態となる。
The CD-ROM 37 shown in FIG. 5 embodies the storage medium of the present invention and stores a predetermined control program. The CPU 31 is a CD-ROM 37
The control program stored in is read by the CD-ROM drive 36 and installed in the HDD 35. As a result, the main control unit 19 enters a state in which it is possible to perform various types of processing described below.

【0042】なお、記憶媒体としては、CD−ROM3
7のみならず、DVDなどの各種の光ディスク、各種光
磁気ディスク、フレキシブルディスクなどの各種磁気デ
ィスク、半導体メモリ等、各種方式のメディアを用いる
ことができる。また、インターネットなどのネットワー
クからプログラムをダウンロードし、HDD35にイン
ストールするようにしてもよい。この場合に、送信側の
サーバでプログラムを記憶している記憶装置も、この発
明の記憶媒体である。なお、プログラムは、所定のOS
(Operating System)上で動作するものであってもよい
し、その場合に後述の各種処理の一部の実行をOSに肩
代わりさせるものであってもよいし、ワープロソフトな
ど所定のアプリケーションソフトやOSなどを構成する
一群のプログラムファイルの一部として含まれているも
のであってもよい。
The storage medium is a CD-ROM 3
In addition to 7, various types of media such as various optical discs such as DVD, various magneto-optical discs, various magnetic discs such as flexible discs, and semiconductor memories can be used. Alternatively, the program may be downloaded from a network such as the Internet and installed in the HDD 35. In this case, the storage device that stores the program in the server on the transmission side is also the storage medium of the present invention. The program is a specified OS
(Operating System) may be used, in which case some of the various processes described below may be executed by the OS, or predetermined application software such as word processing software or OS It may be included as a part of a group of program files configuring the above.

【0043】次に、メイン制御部19に設けられたCP
U31が制御プログラムに基づいて実行する各種処理の
内容について説明する。ここでは、CPU31が実行す
る処理のうち、本実施の形態のスキャナ部1が備える特
長的な機能であるスキャン画像の画像補正機能を実現す
る画像補正装置である画像補正部29におけるスキャン
画像の画像補正処理についてのみ説明する。
Next, the CP provided in the main controller 19
The contents of various processes executed by the U31 based on the control program will be described. Here, of the processing executed by the CPU 31, the image of the scan image in the image correction unit 29, which is an image correction apparatus that realizes the image correction function of the scan image, which is a characteristic function of the scanner unit 1 according to the present embodiment. Only the correction process will be described.

【0044】図6は、スキャン画像の画像補正処理の流
れを概略的に示すフローチャートである。なお、ここで
は、図7に示すように、ブック原稿40のページ綴じ部
41とスキャナ部1の画像読み取りの主走査方向とがほ
ぼ平行になるように位置させてブック原稿40をコンタ
クトガラス2上に下向きに載置したことを意図した場合
について説明する。
FIG. 6 is a flow chart schematically showing the flow of the image correction processing of the scanned image. Here, as shown in FIG. 7, the book binding 40 is positioned on the contact glass 2 by arranging the page binding section 41 of the book binding 40 and the main scanning direction of the image reading of the scanner section 1 to be substantially parallel to each other. The case where the device is intended to be placed downward will be described.

【0045】まず、画像データ処理部28から出力され
たコンタクトガラス2に載置されているブック原稿40
のスキャン画像を入力する(ステップS1)。ここで、
図8は入力した画像の一例を示したものである。そし
て、図9に示すように、入力されたブック原稿40のス
キャン画像には、ページ綴じ部41のスキャン画像41
´の近傍において歪みが生じている。
First, the book document 40 output from the image data processing unit 28 and placed on the contact glass 2 is placed.
The scan image of is input (step S1). here,
FIG. 8 shows an example of the input image. Then, as shown in FIG. 9, the scan image 41 of the page binding portion 41 is included in the scan image of the input book document 40.
Distortion occurs near ´.

【0046】次いで、ステップS2に進み、画像補正処理
を実行する。
Next, in step S2, image correction processing is executed.

【0047】画像補正処理においては、まず、スキャン
画像からページ外形を抽出する(ステップS2−1)。
ここで、図10は上端にページ外形が存在するスキャン
画像の一例を示す説明図、図11は図10に示したスキ
ャン画像の綴じ部境界線左側の黒画素ヒストグラムであ
る。図11に示すヒストグラムのx軸はスキャン画像の
主走査方向(図10の上下方向)を示すものであり、ス
キャン画像の上端はヒストグラムの左端に対応付けられ
ている。なお、ページ外形が下端に存在するスキャン画
像の場合には、スキャン画像の下端がヒストグラムの右
端に対応付けられることになる。したがって、図10に
示すようにスキャン画像の上端にページ外形が存在する
場合、スキャン画像の上部に黒い帯が現れることから、
図11に示すヒストグラムの左端には高い縦棒が現れる
ことになる。本実施の形態では、このような特性を利用
して、スキャン画像にページ外形が存在するか否かの判
断を行う。
In the image correction process, first, the page outline is extracted from the scan image (step S2-1).
Here, FIG. 10 is an explanatory diagram showing an example of a scan image having a page outline at the upper end, and FIG. 11 is a black pixel histogram on the left side of the binding portion boundary line of the scan image shown in FIG. The x-axis of the histogram shown in FIG. 11 indicates the main scanning direction of the scan image (vertical direction in FIG. 10), and the upper end of the scan image is associated with the left end of the histogram. In the case of a scan image whose page outer shape exists at the lower end, the lower end of the scan image is associated with the right end of the histogram. Therefore, as shown in FIG. 10, when the page outline exists at the upper end of the scan image, a black band appears at the top of the scan image,
A tall vertical bar appears at the left end of the histogram shown in FIG. In the present embodiment, using such a characteristic, it is determined whether or not the page outline exists in the scan image.

【0048】より具体的には、図11に示すように、ペ
ージ綴じ部41のスキャン画像41´からスキャン画像
の左端(図10の左端)までの距離AO、ヒストグラム
縦棒の高さBOとし、その比率を下記に示す式(1)に
より算出し、
More specifically, as shown in FIG. 11, the distance AO from the scan image 41 'of the page binding portion 41 to the left end (the left end in FIG. 10) of the scan image, and the height BO of the histogram vertical bar, The ratio is calculated by the following formula (1),

【0049】[0049]

【数1】 算出された比率kが、予め定められた閾値よりも大きい
場合に、スキャン画像にページ外形が存在すると判断す
る。
[Equation 1] When the calculated ratio k is larger than a predetermined threshold value, it is determined that the page outline exists in the scan image.

【0050】なお、スキャン画像の上下にページ外形が
存在する場合には、ヒストグラムの左右両端に高い縦棒
が現れることになるので、このような場合には、ヒスト
グラムの左右両端の高い縦棒に基づいてスキャン画像に
ページ外形が存在するか否かの判断がそれぞれ実行され
る。
If there are page outlines above and below the scanned image, high vertical bars will appear at the left and right ends of the histogram. In such a case, the vertical bars at the left and right ends of the histogram will be high. Based on this, a determination is made as to whether or not a page outline exists in the scanned image.

【0051】このスキャン画像にページ外形が存在する
か否かの判断処理は、スキャン画像の綴じ部境界線を境
にした左右ページ毎に実行される。
The determination processing as to whether or not the page outline exists in the scan image is executed for each of the left and right pages with the binding portion boundary line of the scan image as a boundary.

【0052】以上の処理により、スキャン画像にページ
外形が存在すると判断された場合には、左右ページの上
下辺のいずれにページ外形が存在しているのかという情
報とともにページ外形を抽出し、RAM33に一時的に
記憶する。ここに、ページ外形抽出手段の機能が実行さ
れる。
When it is determined by the above processing that the page outline exists in the scan image, the page outline is extracted together with the information indicating which of the upper and lower sides of the left and right pages the page outline exists in, and the RAM 33 stores it. Store temporarily. Here, the function of the page outline extracting means is executed.

【0053】ただし、本実施の形態においては、図12
に示すように、スキャン画像の副走査方向(図12中、
x方向)の中央位置から予め定めた範囲内の上下のペー
ジ外形を抽出するものとする。スキャン画像の綴じ部境
界線の位置は、スキャン画像の副走査方向のほぼ中央に
存在すると考えられるからである。なお、探索する範囲
は、スキャナの特性等に応じて定めておく。このように
探索する範囲を限定することにより、処理時間を短くす
ることができる。
However, in the present embodiment, FIG.
As shown in, the sub-scanning direction of the scan image (in FIG. 12,
Upper and lower page outlines within a predetermined range from the center position in the x direction) are extracted. This is because it is considered that the position of the binding part boundary line of the scan image is present at substantially the center of the scan image in the sub-scanning direction. The range to be searched is set according to the characteristics of the scanner. By limiting the search range in this way, the processing time can be shortened.

【0054】なお、スキャン画像からのページ外形の抽
出方法としては、これに限るものではなく、特開平11-4
1455号公報に記載されている方法等を用いるようにして
も良い。
The method for extracting the page outline from the scanned image is not limited to this, and it is not limited to this method.
The method described in Japanese Patent No. 1455 may be used.

【0055】また、スキャン画像にページ外形が存在す
ることが予め解かっている場合には、ページ外形が存在
するか否かの判断を省略し、ページ外形の抽出のみを行
うようにしても良い。
Further, when it is known in advance that the page outline exists in the scan image, the determination as to whether or not the page outline exists may be omitted and only the page outline may be extracted.

【0056】スキャン画像からページ外形が抽出される
と、ステップS2−2に進み、スキャン画像の綴じ部境
界線を検出する。ここに、綴じ部境界線検出手段の機能
が実行される。より具体的には、図13に示すように、
上辺のページ外形についてはその主走査方向(図13
中、y方向)の座標値が最小の点を、下辺のページ外形
についてはその主走査方向の座標値が最大の点を、それ
ぞれ綴じ部境界線の端点とし、両端点を結ぶ線分を綴じ
部境界線とみなす。これにより、ページ綴じ部41に対
応する綴じ部境界線はスキャン画像の主走査方向上辺及
び下辺のページ外形の内側へ最も食い込んだ2点を結ぶ
線分であるため、確実にページ綴じ部41に対応する綴
じ部境界線を検出することが可能になる。
When the page outline is extracted from the scan image, the flow advances to step S2-2 to detect the binding part boundary line of the scan image. Here, the function of the binding portion boundary line detecting means is executed. More specifically, as shown in FIG.
Regarding the page outline on the upper side, its main scanning direction (see FIG.
The point with the smallest coordinate value in the (m, y direction) and the point with the largest coordinate value in the main scanning direction for the page outline on the lower side are the end points of the binding section boundary line, and the line segment connecting both end points is bound. It is regarded as a division line. As a result, the binding portion boundary line corresponding to the page binding portion 41 is a line segment that connects the two points that are most indented inside the page outline on the upper side and the lower side in the main scanning direction of the scanned image, and thus the page binding portion 41 is reliably It is possible to detect the corresponding binding part boundary line.

【0057】スキャン画像の綴じ部境界線が検出される
と、ステップS2−3に進み、スキャン画像の綴じ部境
界線に基づいてスキュー角度を検出する。より具体的に
は、図14に示すように、綴じ部境界線の綴じ部頂点を
それぞれT,Sとする。そして、綴じ部境界線である線
分TSと主走査方向とのなす角度θをスキュー角度とす
る。θの算出については、各種既知の手法がいろいろあ
るが、一例としては、頂点Tと頂点Sの主走査方向と副
走査方向の各座標値の差からtanを求め、線分TSと
主走査方向とのなす角度θを算出する手法がある。ここ
に、スキュー角度検出手段の機能が実行される。
When the boundary of the binding portion of the scan image is detected, the process proceeds to step S2-3, and the skew angle is detected based on the boundary of the binding portion of the scan image. More specifically, as shown in FIG. 14, the binding portion vertices of the binding portion boundary line are set to T and S, respectively. The angle θ formed by the line segment TS, which is the boundary line of the binding portion, and the main scanning direction is defined as the skew angle. There are various known methods for calculating θ, but as an example, tan is obtained from the difference between the coordinate values of the vertex T and the vertex S in the main scanning direction and the sub scanning direction, and the line segment TS and the main scanning direction are obtained. There is a method of calculating the angle θ formed by. Here, the function of the skew angle detecting means is executed.

【0058】次に、ステップS2−4におけるスキャン
画像の画像歪み補正について図15を参照しつつ説明す
る。スキャン画像の画像歪み補正処理は、まず、ステッ
プS2−3で検出したスキュー角度θの絶対値が予め定
めた閾値ts1及び閾値ts2より大きいか否かを判断する
(ステップS21,S22)。なお、 閾値ts2<閾値ts1 とする。このように、検出したスキュー角度θの絶対値
と閾値ts1及び閾値ts2とを比較するのは、スキュー角度
θの絶対値が非常に小さい画像ではスキュー補正をしな
くても従来の歪み補正のみで十分に補正できるので、処
理時間短縮のためにはスキュー補正を省略するのが望ま
しく、逆にスキュー角度θの絶対値が非常に大きい画像
では歪み補正を施すとむしろ歪みが増大して画質が劣化
してしまう場合もあり得るからである。そこで、本実施
の形態においては、詳細は後述するが、スキュー角度θ
の絶対値が予め定められた閾値ts1未満であれば、画像
歪み補正処理を続行し、そうでなければ画像歪み補正処
理を中断する。そして、画像歪み補正処理を続行する場
合であっても、スキュー角度θの絶対値が予め定められ
た閾値ts2以上である場合には、スキュー補正後に歪み
補正処理を実行するようにしたものである。ここに、補
正選択手段が実現されている。
Next, the image distortion correction of the scanned image in step S2-4 will be described with reference to FIG. In the image distortion correction process of the scan image, first, it is determined whether or not the absolute value of the skew angle θ detected in step S2-3 is larger than the predetermined thresholds ts1 and ts2 (steps S21 and S22). Note that threshold ts2 <threshold ts1. In this way, the absolute value of the detected skew angle θ is compared with the threshold values ts1 and ts2 only in the conventional distortion correction without skew correction in an image in which the absolute value of the skew angle θ is very small. It is desirable to omit skew correction in order to shorten the processing time because it can be sufficiently corrected. Conversely, if distortion correction is performed on an image with a very large absolute value of skew angle θ, the distortion is rather increased and the image quality deteriorates. This is because it may happen. Therefore, in the present embodiment, the skew angle θ will be described later in detail.
If the absolute value of is less than the predetermined threshold value ts1, the image distortion correction processing is continued, and if not, the image distortion correction processing is interrupted. Then, even when the image distortion correction process is continued, if the absolute value of the skew angle θ is equal to or larger than a predetermined threshold value ts2, the distortion correction process is executed after the skew correction. . Here, the correction selection means is realized.

【0059】つまり、検出したスキュー角度θの絶対値
が閾値ts2未満である場合には(ステップS21のN,
ステップS22のN)、ステップS23に進む。
That is, when the absolute value of the detected skew angle θ is less than the threshold value ts2 (N in step S21,
It progresses to N) of step S22 and step S23.

【0060】ステップS23では、ページ外形(上辺及
び下辺)に基づく主走査方向の形状補正を行う。本実施
の形態におけるスキャン画像の主走査方向の形状補正
は、歪み補正(伸張)に際しての基準となる線(基準
線)と、この基準線に対応するものであって補正率(伸
張率)の算出用の参照線と、に基づいてスキャン画像に
伸張処理を施して主走査方向の歪みを補正するものであ
る。より具体的には、図16に示すように、スキャン画
像の下辺のページ外形を基準線とし、スキャン画像の上
辺のページ外形を参照線とする。
In step S23, shape correction in the main scanning direction is performed based on the page outer shape (upper side and lower side). The shape correction of the scan image in the main scanning direction in the present embodiment is a line (reference line) serving as a reference for distortion correction (expansion), and a correction rate (expansion rate) corresponding to the reference line. Based on the reference line for calculation, the scan image is expanded to correct the distortion in the main scanning direction. More specifically, as shown in FIG. 16, the page outline on the lower side of the scan image is used as a reference line, and the page outline on the upper side of the scan image is used as a reference line.

【0061】図16に示すように、ページ綴じ部41の
スキャン画像41´付近に位置する「ページ外形」の曲
線部分が歪み発生部分であって、x0は右ページに位置
する基準線(下辺のページ外形)の直線部分と曲線部分
との境界点、y0は左ページに位置する基準線(下辺の
ページ外形)の直線部分と曲線部分との境界点である。
なお、ページ外形の直線部分と曲線部分との境界点の判
定処理については、各種の処理方法を用いることが可能
である。例えば、特開平11-41455号公報に記載されてい
るような手法を用いることが可能である。概略的には、
抽出したページ外形に基づいて近似直線を求め、この直
線から離れて曲線となる部分をページ外形の直線部分と
曲線部分との境界点として判定するものである。ここ
で、図16中、Aはスキャン画像の画像境界線である。
As shown in FIG. 16, the curved portion of the "page outline" located near the scanned image 41 'of the page binding portion 41 is the distortion occurrence portion, and x0 is the reference line located on the right page (on the lower side). The boundary point between the straight line portion and the curved portion of the page outline), and y0 is the boundary point between the straight line portion and the curved portion of the reference line (lower side page outline) located on the left page.
Various processing methods can be used for the determination processing of the boundary point between the straight line portion and the curved portion of the page outline. For example, it is possible to use the method described in JP-A-11-41455. In general,
An approximate straight line is obtained based on the extracted page outline, and a portion that becomes a curve apart from this straight line is determined as a boundary point between the linear portion and the curved portion of the page outline. Here, in FIG. 16, A is an image boundary line of the scan image.

【0062】主走査方向の形状補正処理としては、ま
ず、図17において二点鎖線で示すような仮想ページ外
形VEを求める。仮想ページ外形VEは、スキャン画像
の境界部分である画像境界線Aにページ外形が位置する
とみなした場合の仮想的なページ外形である。例えば右
ページにおける仮想ページ外形VEは、境界点x0にお
ける基準線と画像境界線Aとの距離a0と、境界点x0
における基準線と参照線との距離b0とに基づいて算出
することができる。すなわち、境界点x0よりもページ
綴じ部41のスキャン画像41´寄りであって副走査方
向上の任意位置である位置xにおける基準線と参照線間
の距離bが解かれば、 a/b=a0/b0 であることから、位置xから仮想ページ外形VEまでの
距離aを算出することができる。したがって、右ページ
に位置する基準線(下辺のページ外形)の曲線部分の副
走査方向の全ての位置xにおける距離aを算出すること
により、仮想ページ外形VEを求めることができる。こ
こに、仮想ページ外形算出手段の機能が実行される。こ
のような処理は、左右ページについてそれぞれ独立に行
われる。
As the shape correction processing in the main scanning direction, first, the virtual page outline VE as shown by the chain double-dashed line in FIG. 17 is obtained. The virtual page outline VE is a virtual page outline when it is considered that the page outline is located at the image boundary line A which is the boundary portion of the scan image. For example, the virtual page outline VE on the right page has a distance a0 between the reference line at the boundary point x0 and the image boundary line A, and a boundary point x0.
It can be calculated based on the distance b0 between the reference line and the reference line at. That is, if the distance b between the reference line and the reference line at the position x, which is closer to the scan image 41 ′ of the page binding unit 41 than the boundary point x0 and is an arbitrary position in the sub-scanning direction, is found, then a / b = Since it is a0 / b0, the distance a from the position x to the virtual page outline VE can be calculated. Therefore, the virtual page outline VE can be obtained by calculating the distance a at all positions x in the sub-scanning direction of the curved portion of the reference line (the page outline on the lower side) located on the right page. Here, the function of the virtual page outline calculating means is executed. Such processing is performed independently for the left and right pages.

【0063】そして、主走査方向の形状補正の際に用い
る補正率は、境界点x0における基準線と画像境界線A
との距離a0と、境界点x0における基準線と参照線と
の距離b0とを加算した距離h0(h0=a0+b0)
に基づいて算出され、位置xにおける参照線から仮想ペ
ージ外形VEまでの距離をh(h=a+b)とした場合
には、位置xにおける歪み補正率は、 h0/h として表すことができる。即ち、歪み補正率とは、主走
査方向に画像を伸張して補正する際に、基準線と参照線
との間の距離を曲線部分における副走査方向の全ての位
置xにおいて等しくなるように、各xに関して算出した
値である。
The correction rate used in the shape correction in the main scanning direction is the reference line at the boundary point x0 and the image boundary line A.
A distance h0 (h0 = a0 + b0) obtained by adding the distance b0 between the reference line and the reference line at the boundary point x0
When the distance from the reference line at the position x to the virtual page outline VE is calculated as h (h = a + b), the distortion correction rate at the position x can be expressed as h0 / h. That is, the distortion correction rate is such that when the image is expanded and corrected in the main scanning direction, the distance between the reference line and the reference line becomes equal at all positions x in the sub scanning direction in the curved line portion. It is a value calculated for each x.

【0064】実際に補正をする際は、まず、図18に示
すように仮想ページ外形VE(図17参照)が画像境界
線Aに一致するように、主走査方向に各画素をシフトす
る。この場合、仮想ページ外形VEは基準線(下辺のペ
ージ外形)の曲線部分(y0とx0との間に位置する部
分)であるので、本実施の形態における主走査方向の形
状補正処理は、ページ外形の曲線部分(歪み発生部分)
のみに対して実行されることになる。その結果、基準線
は図18のED、参照線は図18のEUのようになる。
In actual correction, first, each pixel is shifted in the main scanning direction so that the virtual page outline VE (see FIG. 17) matches the image boundary line A as shown in FIG. In this case, since the virtual page outline VE is a curved portion (a portion located between y0 and x0) of the reference line (the page outline on the lower side), the shape correction process in the main scanning direction in the present embodiment is performed on the page. Curved part of external shape (distortion occurrence part)
Will be executed only for. As a result, the reference line becomes ED in FIG. 18, and the reference line becomes EU in FIG.

【0065】その後、ページ外形の曲線部分(歪み発生
部分)における副走査方向の全ての位置xにおいて、画
像を主走査方向の上辺側にh0/hで伸張する。その結
果、基準線は図18のRED、参照線は図18のREU
のように、直線に補正される。
After that, the image is expanded to the upper side in the main scanning direction by h0 / h at all positions x in the sub scanning direction in the curved portion (distortion occurring portion) of the page outline. As a result, the reference line is RED in FIG. 18, and the reference line is REU in FIG.
Is corrected to a straight line.

【0066】以上によりスキャン画像の主走査方向の形
状補正が終了する。なお、ステップS24の主走査方向
の形状補正処理については、前述した処理に示したもの
に限られるものではなく、各種の処理方法を用いること
が可能である。
As described above, the shape correction of the scan image in the main scanning direction is completed. The shape correction process in the main scanning direction in step S24 is not limited to the process described above, and various processing methods can be used.

【0067】スキャン画像の主走査方向の形状補正が終
了すると、続いて副走査方向の形状補正(ステップS2
4)を実行する。
When the shape correction in the main scanning direction of the scan image is completed, the shape correction in the sub-scanning direction is subsequently performed (step S2).
Execute 4).

【0068】ステップS24の副走査方向の形状補正
は、概略的には、検出したページ綴じ部41の境界方向
(主走査方向)の画像の復元後の長さが1画素以上とな
るようにして整数画素分のラインの画像濃度データを演
算し、復元後の単位ラインの画像を算出するための周囲
画素のデータが得られ次第、画像伸長の演算を行うもの
である。このため、リアルタイムの補正処理が可能とな
っている。
The shape correction in the sub-scanning direction in step S24 is performed roughly so that the length of the detected image in the boundary direction (main scanning direction) of the page binding portion 41 after restoration is one pixel or more. The image expansion data is calculated as soon as the image density data of the line for an integer number of pixels is calculated and the data of the surrounding pixels for calculating the image of the restored unit line is obtained. Therefore, real-time correction processing is possible.

【0069】具体的には、ページ綴じ部41の深さの変
化量により画像の伸長を行う。図19に示すように、ブ
ック原稿40の形状を読み取ってライン毎の微少な三角
形とし、ページの読み取り1ラインにおける画像長さL
nを次の式 Ln=√{1+(Tn−Tn-1)} により算出し、画像長さLnの累積をページの伸長長さ
とする。その結果、近似した三角形の斜辺は湾曲したペ
ージの形状とほぼ等しくなるので、その累積をページの
画像長さとすることにより、正確なページ長さを得る。
特に、1ライン毎の最小ピッチによる形状近似により、
その長さの復元精度は高い。
Specifically, the image is expanded according to the amount of change in the depth of the page binding portion 41. As shown in FIG. 19, the shape of the book original 40 is read to form a minute triangle for each line, and the image length L in one line for reading a page is read.
n is calculated by the following formula Ln = √ {1+ (Tn-Tn-1) 2 }, and the accumulated image length Ln is taken as the page extension length. As a result, the hypotenuse of the approximated triangle becomes almost the same as the curved page shape, and the cumulative page length is used as the image length of the page to obtain an accurate page length.
Especially by shape approximation with the minimum pitch for each line,
The restoration accuracy of the length is high.

【0070】ブック原稿40のページ綴じ部41は、ブ
ック原稿40の見開き方向に読み取り画素ピッチがブッ
ク原稿40に対して変化していく。つまり、ブック原稿
40のページ綴じ部41は、ブック原稿40の見開き方
向に読み取り画素ピッチがブック原稿40に対して等間
隔にはならない。そこで、ブック原稿40のページ綴じ
部41の形状を検出し、サンプリングピッチの変化に対
応して画素位置の復元演算を行う。
In the page binding portion 41 of the book original 40, the reading pixel pitch changes with respect to the book original 40 in the spread direction of the book original 40. That is, in the page binding portion 41 of the book original 40, the reading pixel pitch is not equal to the book original 40 in the spread direction of the book original 40. Therefore, the shape of the page binding portion 41 of the book document 40 is detected, and the pixel position restoration calculation is performed in accordance with the change in the sampling pitch.

【0071】すなわち、検出したページ綴じ部41の境
界方向(主走査方向)について3次関数コンボリューシ
ョン法で復元画像を算出し、その注目画素の画素間隔を
基準“1”として演算することにより、読み取りライン
間隔が変化、すなわち、平面状としたときの原稿に対し
てサンプリング画素間隔が逐次替わっていくのに対し、
画像伸長処理を適応する。また、幾何学的に主走査方向
の画像投影倍長さとページ綴じ部41の深さは比例関係
にあり、図20に示すように、上述のように境界アドレ
スA3よりブック原稿40のページ綴じ部41の深さT
を以下の式T=焦点面距離*(A3−Ak)/{(Ak
−Ka)−(A3−Ak)}により、求めることができ
る。このようにして算出される隣接する主走査ラインの
深さの差により、1画素毎の微少ピッチの直線で近似し
てページの復元位置を算出することができる。
That is, a restored image is calculated by the cubic function convolution method in the detected boundary direction (main scanning direction) of the page binding portion 41, and the pixel interval of the pixel of interest is calculated as the reference "1". While the reading line interval changes, that is, the sampling pixel interval changes sequentially for a document when it is flat,
Apply image expansion processing. Further, geometrically, the image projection double length in the main scanning direction and the depth of the page binding portion 41 are in a proportional relationship, and as shown in FIG. 20, the page binding portion of the book original 40 is determined from the boundary address A3 as described above. 41 depth T
The following equation T = focal plane distance * (A3-Ak) / {(Ak
-Ka)-(A3-Ak)}. Based on the difference between the depths of the adjacent main scanning lines calculated in this way, the page restoration position can be calculated by approximating with a straight line with a fine pitch for each pixel.

【0072】このようにして算出されたブック原稿40
のページ綴じ部41の深さTは、図19に示すように、
1ライン毎の復元すべき副走査方向の画像長さLnの算
出に用いられることになる。すなわち、前述した次の式 Ln=√{1+(Tn−Tn-1)} により、1ライン毎の復元すべき副走査方向の画像長さ
Lnが算出される。したがって、画像長さLnの累積が
副走査方向のページ長さになる。なお、画像拡大は主走
査方向の拡大と同様に3次関数コンボリューション法に
よる画素間補間を用いて行い、その計算精度は充分に高
くとっている。
Book manuscript 40 calculated in this way
As shown in FIG. 19, the depth T of the page binding portion 41 of
It is used to calculate the image length Ln in the sub-scanning direction to be restored for each line. That is, the image length Ln in the sub-scanning direction to be restored for each line is calculated by the following equation Ln = √ {1+ (Tn-Tn-1) 2 }. Therefore, the cumulative image length Ln becomes the page length in the sub-scanning direction. Note that image enlargement is performed by using inter-pixel interpolation by the cubic function convolution method as in the case of enlargement in the main scanning direction, and the calculation accuracy is sufficiently high.

【0073】通常、ブック原稿40のページ綴じ部41
の深さが深くなるに連れてその深さの変化量が増す。そ
こで、本実施の形態においては、その位置のブック原稿
40のページ綴じ部41の深さに応じて画像伸長に制限
をかける。具体的には、隣合う境界アドレスの差をその
位置の(深さ[mm]/5)[画素]に制限して境界の
誤検出による副走査方向復元のエラーを抑制する。
Normally, the page binding portion 41 of the book document 40 is
As the depth of the depth increases, the amount of change in the depth increases. Therefore, in the present embodiment, the image expansion is limited according to the depth of the page binding portion 41 of the book document 40 at that position. Specifically, the difference between adjacent boundary addresses is limited to (depth [mm] / 5) [pixels] at that position to suppress an error in restoration in the sub-scanning direction due to erroneous detection of a boundary.

【0074】副走査方向の復元では画像長さLnは位置
によって異なり、図21に示すように読み取り画像デー
タは等間隔ではない。図21では、復元データの濃度と
して3'の位置の濃度を求めるために読み取り画像デー
タにおける2,3,4,5の位置の濃度データを使う
が、r1:(3〜3'の位置の間の距離)/(3〜4の
位置の間の距離)、r2:(1−r1)、r3:(2〜
3'の位置の間の距離)/(3〜4の位置の間の距
離)、r4:(3'〜5の位置の間の距離)/(3〜4
の位置の間の距離)は、3〜4の位置の間の距離を1と
している。そして、これらをrとすることで、3次関数
コンボリューション法により画素間補間が実行される。
In the restoration in the sub-scanning direction, the image length Ln differs depending on the position, and the read image data are not at regular intervals as shown in FIG. In FIG. 21, the density data at the positions 2, 3, 4, and 5 in the read image data is used to obtain the density at the position 3'as the density of the restored data, but r1: (between the positions 3 to 3 ' Distance) / (distance between positions 3-4), r2: (1-r1), r3: (2-
3'position distance) / (distance between 3-4 positions), r4: (distance between 3'-5 positions) / (3-4
The distance between the positions 3) and 4) is set to 1. Then, by setting these as r, inter-pixel interpolation is executed by the cubic function convolution method.

【0075】図22は副走査方向復元フローを示す。図
21において、画像長さLnの累積が副走査方向のペー
ジの長さになり、これを読み取り原稿(ブック原稿4
0)の位置とする。図21の2,3,4,5は主走査ラ
インを表わし、それぞれの位置をf4[2]、f4
[3]、f4[4]、f4[5]とする。wは、補間す
るラインの位置であって、f4[3]とf4[4]の間
の位置で整数になるところである。
FIG. 22 shows a sub-scanning direction restoration flow. In FIG. 21, the accumulation of the image length Ln becomes the page length in the sub-scanning direction, which is read by the original document (book original 4
0) position. Reference numerals 2, 3, 4, and 5 in FIG. 21 represent main scanning lines, and the respective positions are f4 [2] and f4.
Let [3], f4 [4], f4 [5]. w is the position of the line to be interpolated and is an integer between f4 [3] and f4 [4].

【0076】まず、wに位置f4[3]の整数部分を代
入する(ステップ7−a)。この時のwの位置はf4
[2]とf4[3]との間になっている。
First, the integer part of the position f4 [3] is substituted for w (step 7-a). The position of w at this time is f4
It is between [2] and f4 [3].

【0077】次に、w+1がf4[4]以下であるか否
かを判断し(ステップ7−b)、w+1がf4[4]以
下でなければ(ステップ7−bのN)、ステップ7−f
に進む。
Next, it is judged whether or not w + 1 is f4 [4] or less (step 7-b). If w + 1 is not f4 [4] or less (N in step 7-b), step 7- f
Proceed to.

【0078】ステップ7−fでは、補間をせず、ライン
4とライン5の間の補間に移るために4ラインのバッフ
ァで濃度データのシフトをする。すなわち、ライン3の
濃度データをライン2の濃度データに置き換え、ライン
4の濃度データをライン3の濃度データに置き換え、ラ
イン5の濃度データをライン4の濃度データに置き換
え、新しいラインの濃度データをライン5の濃度データ
に置き換え、また、位置f4[2]に位置f4[3]を
置き換え、位置f4[3]に位置f4[4]を置き換
え、位置f4[4]に位置f4[5]を置き換え、位置
f4[5]に新しい位置f4[5]を置き換える。
In step 7-f, the interpolation is not performed, and the density data is shifted by the 4-line buffer in order to shift to the interpolation between the line 4 and the line 5. That is, the density data of line 3 is replaced with the density data of line 2, the density data of line 4 is replaced with the density data of line 3, the density data of line 5 is replaced with the density data of line 4, and the density data of the new line is replaced. Replaced with the density data of line 5, replaced position f4 [2] with position f4 [3], replaced position f4 [3] with position f4 [4], and replaced position f4 [4] with position f4 [5]. The new position f4 [5] is replaced with the new position f4 [5].

【0079】次に、読み取り画像の最終ラインであるか
否かを判断し、読み取り画像の最終ラインであれば、ス
テップ7−gに進み、処理を終了する。また、読み取り
画像の最終ラインでなければ、ステップ7−aに戻る。
Next, it is judged whether or not it is the last line of the read image, and if it is the last line of the read image, the process proceeds to step 7-g and the process is ended. If it is not the final line of the read image, the process returns to step 7-a.

【0080】一方、w+1がf4[4]以下であれば
(ステップ7−bのY)、ステップ7−cに進み、wの
位置の濃度データを補間で求めるための3次関数コンボ
リューション法で必要なr1,r2,r3,r4を求め
る。読み取り画像のデータの間隔は等間隔ではない。そ
こで、以下のように補間する位置を挟む読み取りデータ
のライン位置の間隔(3から4、すなわち、f4[4]
−f4[3])を1とする。すなわち、 r1=(3〜3'の距離)/(3〜4の距離)=(w−
f4[3])/(f4[4]−f4[3]) r2=1−r1 r3=(2〜3'の距離)/(3〜4の距離)=(w−
f4[2])/(f4[4]−f4[3]) r4=(3'〜5の距離)/(3〜4の距離)=(w−
f4[5])/(f4[4]−f4[3]) を算出する。
On the other hand, if w + 1 is equal to or less than f4 [4] (Y in step 7-b), the process proceeds to step 7-c, and the cubic function convolution method is used to obtain the density data at the position of w by interpolation. Find the required r1, r2, r3, r4. The data intervals of the read image are not equal. Therefore, as described below, the interval between the line positions of the read data sandwiching the position to be interpolated (3 to 4, that is, f4 [4]
-F4 [3]) is set to 1. That is, r1 = (distance of 3 to 3 ′) / (distance of 3 to 4) = (w−
f4 [3]) / (f4 [4] −f4 [3]) r2 = 1−r1 r3 = (distance of 2 to 3 ′) / (distance of 3 to 4) = (w−
f4 [2]) / (f4 [4] −f4 [3]) r4 = (distance of 3 ′ to 5) / (distance of 3 to 4) = (w−
f4 [5]) / (f4 [4] -f4 [3]) is calculated.

【0081】そして、ステップ7−dでは、位置wのラ
インの濃度を3次関数コンボリューション法で補間して
求め、ステップ7−aに戻る。
Then, in step 7-d, the density of the line at the position w is obtained by interpolating by the cubic function convolution method, and the process returns to step 7-a.

【0082】以上の処理により副走査方向の形状補正処
理(ステップS24)が終了する。
The shape correction processing in the sub-scanning direction (step S24) is completed by the above processing.

【0083】なお、ステップS24の副走査方向の形状
補正処理については、前述した処理に示したものに限ら
れるものではなく、各種の処理方法を用いることが可能
である。
The shape correction process in the sub-scanning direction in step S24 is not limited to the process described above, and various processing methods can be used.

【0084】以上、ステップS23〜S24により、画
像歪み補正手段の機能が実行される。
As described above, the functions of the image distortion correction means are executed by steps S23 to S24.

【0085】一方、検出したスキュー角度θの絶対値が
閾値ts1未満であるが閾値ts2以上である場合には(ス
テップS21のN,ステップS22のY)、ステップS
25に進み、ステップS2−3で検出したスキュー角度
θに基づくスキュー補正を行った後、ステップS23〜
S24の処理を行う。
On the other hand, when the absolute value of the detected skew angle θ is less than the threshold value ts1 but not less than the threshold value ts2 (N in step S21, Y in step S22), step S
25, after performing skew correction based on the skew angle θ detected in step S2-3, step S23-
The processing of S24 is performed.

【0086】ここで、スキュー角度θに基づくスキュー
補正処理について説明する。スキャン画像のスキュー補
正は、概略的には、スキャン画像全体をスキュー角度θ
だけ回転させることにより行われる。その際、回転の中
心を適切に定めておかねばならない。なぜなら、前述し
た副走査方向の形状補正(ステップS24)を行う際に
は副走査方向の伸長率を書籍ページのスキャン面からの
浮きの高さから算出するが、浮きの高さを求めるにはペ
ージ外形とスキャナのレンズ光軸の軌跡との間の距離を
測定する必要があり、このようなスキュー補正後のペー
ジ外形と光軸軌跡間の距離は回転の中心位置により変化
してしまうからである。
Here, the skew correction processing based on the skew angle θ will be described. Skew correction of the scan image is roughly performed by skewing the entire scan image by the skew angle θ.
Only by rotating. At that time, the center of rotation must be properly determined. This is because, when performing the shape correction in the sub-scanning direction (step S24) described above, the expansion rate in the sub-scanning direction is calculated from the height of floating from the scan surface of the book page. It is necessary to measure the distance between the page outline and the optical axis trajectory of the lens of the scanner, and the distance between the page outline and the optical axis trajectory after such skew correction will change depending on the rotation center position. is there.

【0087】そこで、本実施の形態においては、図23
に示すように、回転の中心をスキャナのレンズ光軸の軌
跡との距離の関係がなるべく変化しないような「線分T
Sとレンズ光軸の軌跡の交点(図23中、O)」とし、
スキャン画像全体をスキュー角度θだけ回転させること
によりスキャン画像のスキュー補正が行われる。ここ
に、スキュー補正手段の機能が実行される。
Therefore, in the present embodiment, FIG.
As shown in, the line segment T that does not change the distance relationship between the center of rotation and the locus of the optical axis of the lens of the scanner as much as possible.
Intersection of the locus of S and the optical axis of the lens (O in FIG. 23) ",
Skew correction of the scan image is performed by rotating the entire scan image by the skew angle θ. The function of the skew correction means is executed here.

【0088】ただし、スキャン画像全体を回転させてス
キュー補正する際に、そのままスキャン画像全体を回転
させただけでは、補正した画像の画素の座標が小数にな
る場合があり、スキュー補正画像の画質を落としてしま
う場合がある。そこで、本実施の形態においてはこれを
解消するため、画素の線形補間処理を行う。ここに、線
形補間手段の機能が実行される。
However, when skew correction is performed by rotating the entire scan image, if the entire scan image is simply rotated as it is, the pixel coordinates of the corrected image may become a decimal number, and the image quality of the skew correction image may be reduced. It may be dropped. Therefore, in the present embodiment, in order to solve this, linear interpolation processing of pixels is performed. Here, the function of the linear interpolation means is carried out.

【0089】図24は、画素値の線形補間処理による求
め方を示す説明図である。図24に示す座標(x,y)
での画素値f(x,y)は、その周辺ブロック[i,
j]、[i+1,j]、[i,j+1]、[i+1,j
+1]の平滑化処理後の画素値f(i,j)、f(i+
1,j)、f(i,j+1)、f(i+1,j+1)の
線形補間値として計算される。より具体的には、座標
(x,y)での線形補間処理後の画素値f(x,y)
は、
FIG. 24 is an explanatory view showing how to obtain the pixel value by the linear interpolation processing. Coordinates (x, y) shown in FIG. 24
The pixel value f (x, y) at
j], [i + 1, j], [i, j + 1], [i + 1, j
Pixel values f (i, j), f (i +) after the smoothing processing of [+1]
1, j), f (i, j + 1), f (i + 1, j + 1) are calculated as linear interpolation values. More specifically, the pixel value f (x, y) after the linear interpolation processing at the coordinates (x, y)
Is

【0090】[0090]

【数2】 により、算出される。[Equation 2] Is calculated by

【0091】以上の処理により、ステップS2−3で検
出したスキュー角度θに基づくスキュー補正が終了す
る。スキュー補正後のスキャン画像を図25に示す。図2
5に示すように、スキュー補正前のスキャン画像の綴じ
部境界線である線分TSは、スキュー補正後には線分
T'S'になり、主走査方向に対して正確に平行となって
いる。
With the above processing, the skew correction based on the skew angle θ detected in step S2-3 is completed. The scan image after skew correction is shown in FIG. Figure 2
As shown in FIG. 5, the line segment TS that is the binding portion boundary line of the scan image before the skew correction becomes the line segment T ′S ′ after the skew correction and is exactly parallel to the main scanning direction. .

【0092】また、検出したスキュー角度θの絶対値が
閾値ts1以上である場合には(ステップS21のY)、ス
テップS26に進み、画像歪み補正処理を中断する。こ
れにより、歪み補正に伴う画質の劣化を回避することが
可能になっている。
If the absolute value of the detected skew angle θ is greater than or equal to the threshold value ts1 (Y in step S21), the process proceeds to step S26 and the image distortion correction process is interrupted. This makes it possible to avoid deterioration of image quality due to distortion correction.

【0093】ここに、スキャン画像の主走査方向上辺及
び下辺の近傍に位置するブック原稿40のページ外形に
基づいてブック原稿40のページ綴じ部41に対応する
綴じ部境界線が検出され、この綴じ部境界線と画像読み
取りの主走査方向とによりスキャン画像のスキュー角度
θが検出される。そして、スキャン画像全体が、画像読
取手段の光軸の軌跡と綴じ部境界線との交点を中心とし
てスキュー角度θだけ回転されることにより、スキャン
画像のスキューが補正される。このようにしてスキュー
が補正されたスキャン画像は、ページ外形の形状に基づ
いて3次元形状歪みも補正される。これにより、スキュ
ー補正にあたっては画像読取手段の光軸の軌跡と綴じ部
境界線との交点を中心として回転させていることから、
スキュー補正後の各ページ外形と光軸の軌跡との間の距
離の変化を最小限に抑えることが可能になるので、検出
されたスキュー角度θが大きい場合であっても、ページ
外形の形状に基づく副走査方向の3次元形状歪み補正を
適切に行うことが可能になる。
Here, the binding portion boundary line corresponding to the page binding portion 41 of the book original 40 is detected based on the page outline of the book original 40 located near the upper side and the lower side in the main scanning direction of the scanned image, and this binding is performed. The skew angle θ of the scan image is detected from the boundary line and the main scanning direction of image reading. Then, the skew of the scan image is corrected by rotating the entire scan image by the skew angle θ around the intersection of the optical axis trajectory of the image reading means and the binding part boundary line. In the scan image in which the skew is corrected in this way, the three-dimensional shape distortion is also corrected based on the shape of the page outline. Accordingly, in skew correction, since the optical axis of the image reading means is rotated about the intersection of the boundary line of the binding portion,
Since it is possible to minimize the change in the distance between each page outline after skew correction and the optical axis trajectory, even if the detected skew angle θ is large, the page outline shape is Based on this, it becomes possible to appropriately perform three-dimensional shape distortion correction in the sub-scanning direction.

【0094】また、スキュー角度θの絶対値が第一の閾
値未満であれば、処理が続行され、そうでなければ処理
が中断される。そして、処理が続行される場合であって
も、スキュー角度θの絶対値が第二の閾値以上である場
合には、スキュー補正後に3次元形状歪み補正処理が実
行される。これにより、歪み補正に伴う画質の劣化を回
避することが可能になる。
If the absolute value of the skew angle θ is less than the first threshold value, the processing is continued, and if not, the processing is interrupted. Then, even when the processing is continued, if the absolute value of the skew angle θ is equal to or larger than the second threshold value, the three-dimensional shape distortion correction processing is executed after the skew correction. This makes it possible to avoid deterioration of image quality due to distortion correction.

【0095】次に、本発明の第二の実施の形態を図26
に基づいて説明する。なお、本発明の第一の実施の形態
において説明した部分と同一部分については同一符号を
用い、説明も省略する。本実施の形態は、前述した第一
の実施の形態とは、画像歪み補正処理(図6に示すステ
ップS2−4)が異なるものである。
Next, FIG. 26 shows a second embodiment of the present invention.
It will be described based on. The same parts as those described in the first embodiment of the present invention are designated by the same reference numerals, and the description thereof will be omitted. The present embodiment is different from the above-described first embodiment in the image distortion correction processing (step S2-4 shown in FIG. 6).

【0096】本実施の形態のスキャン画像の画像歪み補
正処理は、まず、ステップS2−3で検出したスキュー
角度θの絶対値が予め定めた閾値ts1より大きいか否か
を判断する(ステップS31)。このように、検出した
スキュー角度θの絶対値と閾値ts1を比較するのは、スキ
ュー角度θの絶対値が非常に小さい画像ではスキュー補
正をしなくても従来の歪み補正のみで十分に補正できる
ので、処理時間短縮のためにはスキュー補正を省略する
のが望ましいからである。そこで、本実施の形態におい
ては、詳細は後述するが、スキュー角度θの絶対値が予
め定められた閾値ts1未満であれば、画像歪み補正処理
を続行し、そうでなければスキュー補正後に歪み補正処
理を実行するようにしたものである。ここに、補正選択
手段が実現されている。
In the image distortion correction processing of the scanned image of the present embodiment, first, it is judged whether or not the absolute value of the skew angle θ detected in step S2-3 is larger than a predetermined threshold value ts1 (step S31). . As described above, the absolute value of the detected skew angle θ is compared with the threshold value ts1. In the image in which the absolute value of the skew angle θ is very small, the conventional distortion correction can be sufficiently performed without performing the skew correction. Therefore, it is desirable to omit the skew correction in order to reduce the processing time. Therefore, in the present embodiment, details will be described later, but if the absolute value of the skew angle θ is less than a predetermined threshold value ts1, the image distortion correction process is continued, and if not, the distortion correction is performed after the skew correction. The processing is executed. Here, the correction selection means is realized.

【0097】つまり、本実施の形態においては、検出し
たスキュー角度θの絶対値が閾値ts1未満である場合に
は(ステップS31のN)、主走査方向の形状補正(ス
テップS32)、及び副走査方向の形状補正(ステップ
S33)を実行する。なお、主走査方向の形状補正(ス
テップS32)、及び副走査方向の形状補正(ステップ
S33)については、第一の実施の形態で説明した主走
査方向の形状補正(ステップS23)、及び副走査方向
の形状補正(ステップS24)と何ら変わるものではな
いので、ここでの説明は省略する。
That is, in the present embodiment, when the absolute value of the detected skew angle θ is less than the threshold value ts1 (N in step S31), shape correction in the main scanning direction (step S32) and sub-scanning are performed. The shape correction of the direction (step S33) is executed. Regarding the shape correction in the main scanning direction (step S32) and the shape correction in the sub-scanning direction (step S33), the shape correction in the main-scanning direction (step S23) and the sub-scanning described in the first embodiment. This is not different from the shape correction of the direction (step S24), and therefore the description thereof is omitted here.

【0098】一方、検出したスキュー角度θの絶対値が
閾値ts1以上である場合には(ステップS31のY)、ス
テップS34に進み、ステップS2−3で検出したスキ
ュー角度θに基づくスキュー補正を行った後、ステップ
S32〜S33の処理を行う。なお、ステップS2−3
で検出したスキュー角度θに基づくスキュー補正(ステ
ップS34)については、第一の実施の形態で説明した
スキュー補正(ステップS25)と何ら変わるものでは
ないので、ここでの説明は省略する。
On the other hand, when the absolute value of the detected skew angle θ is greater than or equal to the threshold value ts1 (Y in step S31), the process proceeds to step S34, and skew correction is performed based on the skew angle θ detected in step S2-3. After that, the processes of steps S32 to S33 are performed. Note that step S2-3
The skew correction (step S34) based on the skew angle θ detected in step S23 is no different from the skew correction (step S25) described in the first embodiment, and thus the description thereof is omitted here.

【0099】ここに、スキュー角度θが閾値以上であれ
ば、スキュー補正後に3次元形状歪み補正処理が実行さ
れ、そうでなければスキュー補正を行わずに3次元形状
歪み補正処理のみが実行される。これにより、歪み補正
に伴う画質の劣化を回避することが可能になる。
Here, if the skew angle θ is equal to or larger than the threshold value, the three-dimensional shape distortion correction processing is executed after the skew correction, and otherwise, the skew correction is not executed and only the three-dimensional shape distortion correction processing is executed. . This makes it possible to avoid deterioration of image quality due to distortion correction.

【0100】次に、本発明の第三の実施の形態を図27
に基づいて説明する。なお、本発明の第一の実施の形態
において説明した部分と同一部分については同一符号を
用い、説明も省略する。本実施の形態は、前述した第一
の実施の形態とは、画像歪み補正処理(図6に示すステ
ップS2−4)が異なるものである。
Next, FIG. 27 shows a third embodiment of the present invention.
It will be described based on. The same parts as those described in the first embodiment of the present invention are designated by the same reference numerals, and the description thereof will be omitted. The present embodiment is different from the above-described first embodiment in the image distortion correction processing (step S2-4 shown in FIG. 6).

【0101】本実施の形態のスキャン画像の画像歪み補
正処理は、まず、ステップS2−3で検出したスキュー
角度θの絶対値が予め定めた閾値ts1より大きいか否か
を判断する(ステップS41)。このように、検出した
スキュー角度θの絶対値と閾値ts1を比較するのは、スキ
ュー角度θの絶対値が非常に大きい画像では歪み補正を
施すとむしろ歪みが増大して画質が劣化してしまう場合
もあり得るからである。そこで、本実施の形態において
は、詳細は後述するが、スキュー角度θの絶対値が予め
定められた閾値ts1未満であれば、スキュー補正後に歪
み補正処理を実行するようにし、そうでなければ画像歪
み補正処理を中断するようにしたものである。ここに、
補正選択手段が実現されている。
In the image distortion correction processing of the scan image of the present embodiment, first, it is judged whether the absolute value of the skew angle θ detected in step S2-3 is larger than a predetermined threshold value ts1 (step S41). . In this way, the absolute value of the detected skew angle θ is compared with the threshold value ts1. When an image with a very large absolute value of the skew angle θ is subjected to distortion correction, the distortion is rather increased and the image quality deteriorates. This may be the case. Therefore, in the present embodiment, the details will be described later, but if the absolute value of the skew angle θ is less than a predetermined threshold value ts1, the distortion correction processing is executed after the skew correction, and if not, the image The distortion correction process is interrupted. here,
The correction selection means is realized.

【0102】つまり、本実施の形態においては、検出し
たスキュー角度θの絶対値が閾値ts1未満である場合に
は(ステップS41のN)、ステップS2−3で検出し
たスキュー角度θに基づくスキュー補正(ステップS4
2)、主走査方向の形状補正(ステップS43)、及び
副走査方向の形状補正(ステップS44)を実行する。
なお、ステップS2−3で検出したスキュー角度θに基
づくスキュー補正(ステップS42)については、第一
の実施の形態で説明したスキュー補正(ステップS2
5)と何ら変わるものではないので、ここでの説明は省
略する。また、主走査方向の形状補正(ステップS4
3)、及び副走査方向の形状補正(ステップS44)に
ついても、第一の実施の形態で説明した主走査方向の形
状補正(ステップS23)、及び副走査方向の形状補正
(ステップS24)と何ら変わるものではないので、こ
こでの説明は省略する。
That is, in the present embodiment, when the absolute value of the detected skew angle θ is less than the threshold value ts1 (N in step S41), the skew correction based on the skew angle θ detected in step S2-3 is performed. (Step S4
2), shape correction in the main scanning direction (step S43), and shape correction in the sub-scanning direction (step S44).
The skew correction based on the skew angle θ detected in step S2-3 (step S42) is the skew correction described in the first embodiment (step S2).
Since it is not different from 5), its description is omitted here. Further, the shape correction in the main scanning direction (step S4
3) and the shape correction in the sub-scanning direction (step S44) are also the same as the shape correction in the main-scanning direction (step S23) and the shape correction in the sub-scanning direction (step S24) described in the first embodiment. Since it does not change, the description here is omitted.

【0103】一方、検出したスキュー角度θの絶対値が
閾値ts1以上である場合には(ステップS41のY)、ス
テップS45に進み、画像歪み補正処理を中断する。こ
れにより、歪み補正に伴う画質の劣化を回避することが
可能になっている。
On the other hand, when the absolute value of the detected skew angle θ is equal to or larger than the threshold value ts1 (Y in step S41), the process proceeds to step S45 to interrupt the image distortion correction process. This makes it possible to avoid deterioration of image quality due to distortion correction.

【0104】ここに、スキュー角度θの絶対値が予め定
められた閾値以上であれば、処理が中断され、そうでな
ければスキュー補正後に3次元形状歪み補正処理が実行
される。これにより、歪み補正に伴う画質の劣化を回避
することが可能になる。
If the absolute value of the skew angle θ is equal to or larger than the predetermined threshold value, the process is interrupted. If not, the three-dimensional shape distortion correction process is executed after the skew correction. This makes it possible to avoid deterioration of image quality due to distortion correction.

【0105】次に、本発明の第四の実施の形態を図28
に基づいて説明する。なお、本発明の第一の実施の形態
において説明した部分と同一部分については同一符号を
用い、説明も省略する。本実施の形態は、前述した第一
の実施の形態とは、画像歪み補正処理(図6に示すステ
ップS2−4)が異なるものである。
Next, FIG. 28 shows a fourth embodiment of the present invention.
It will be described based on. The same parts as those described in the first embodiment of the present invention are designated by the same reference numerals, and the description thereof will be omitted. The present embodiment is different from the above-described first embodiment in the image distortion correction processing (step S2-4 shown in FIG. 6).

【0106】本実施の形態のスキャン画像の画像歪み補
正処理は、本発明の第一ないし第三の実施の形態とは異
なり、ステップS2−3で検出したスキュー角度θの絶
対値によらず、常にスキュー補正後に歪み補正処理を実
行するようにしたものである。ここに、補正選択手段が
実現されている。
Unlike the first to third embodiments of the present invention, the image distortion correction processing of the scanned image of the present embodiment does not depend on the absolute value of the skew angle θ detected in step S2-3, The distortion correction process is always executed after the skew correction. Here, the correction selection means is realized.

【0107】つまり、本実施の形態においては、ステッ
プS2−3で検出したスキュー角度θに基づくスキュー
補正(ステップS51)、主走査方向の形状補正(ステ
ップS52)、及び副走査方向の形状補正(ステップS
53)を実行する。なお、ステップS2−3で検出した
スキュー角度θに基づくスキュー補正(ステップS5
1)については、第一の実施の形態で説明したスキュー
補正(ステップS25)と何ら変わるものではないの
で、ここでの説明は省略する。また、主走査方向の形状
補正(ステップS52)、及び副走査方向の形状補正
(ステップS53)についても、第一の実施の形態で説
明した主走査方向の形状補正(ステップS23)、及び
副走査方向の形状補正(ステップS24)と何ら変わる
ものではないので、ここでの説明は省略する。
That is, in the present embodiment, the skew correction based on the skew angle θ detected in step S2-3 (step S51), the shape correction in the main scanning direction (step S52), and the shape correction in the sub-scanning direction ( Step S
53) is executed. Note that skew correction based on the skew angle θ detected in step S2-3 (step S5
Since 1) is not different from the skew correction (step S25) described in the first embodiment, description thereof will be omitted here. As for the shape correction in the main scanning direction (step S52) and the shape correction in the sub scanning direction (step S53), the shape correction in the main scanning direction (step S23) and the sub scanning described in the first embodiment are also performed. This is not different from the shape correction of the direction (step S24), and therefore the description thereof is omitted here.

【0108】なお、各実施の形態においては、画像読取
装置としてデジタル複写機のスキャナ部1を適用した
が、これに限るものではなく、例えば自動ページ捲り機
能を搭載したスキャナ等に適用するようにしても良い。
In each of the embodiments, the scanner unit 1 of the digital copying machine is applied as the image reading device, but the present invention is not limited to this, and may be applied to, for example, a scanner equipped with an automatic page turning function. May be.

【0109】また、各実施の形態においては、ブック原
稿40のページ綴じ部41とスキャナ部1の画像読み取
りの主走査方向とが平行になるように位置させてブック
原稿40をコンタクトガラス2上に下向きに載置した場
合について説明したが、これに限るものではない。例え
ば、図29に示すように、上向きのブック原稿40をコ
ンタクトガラス2の下方からコンタクトガラス2に対し
て押し付けるように接触させるものであっても良い。
Further, in each of the embodiments, the book binding 40 is positioned on the contact glass 2 so that the page binding section 41 of the book binding 40 and the main scanning direction of the image reading of the scanner section 1 are parallel to each other. Although the case where the device is placed facing downward has been described, the present invention is not limited to this. For example, as shown in FIG. 29, the book document 40 facing upward may be pressed against the contact glass 2 from below the contact glass 2.

【0110】さらに、各実施の形態においては、画像補
正装置を画像形成装置であるデジタル複写機16に備
え、デジタル複写機16のスキャナ部1で読み取ったス
キャン画像に対して画像補正処理を施すようにしたが、
これに限るものではない。例えば、原稿画像を読み取る
画像読取手段を備えたイメージスキャナを、図5に示し
たメイン制御部19と同等なシステム構成を備えたパー
ソナルコンピュータに接続するとともに、このパーソナ
ルコンピュータのHDDに記憶媒体であるCD−ROM
37に格納されたプログラムをインストールし、このプ
ログラムに従ってパーソナルコンピュータのCPUを動
作させることによって画像補正装置を構成しても、前述
したような各種の作用効果と同様の作用効果を得ること
ができる。また、記憶媒体であるCD−ROM37に格
納されたプログラムを、図5に示したメイン制御部19
と同等なシステム構成を備えたパーソナルコンピュータ
のHDDにインストールし、このプログラムに従ってパ
ーソナルコンピュータのCPUを動作させることによっ
て画像補正装置を構成し、予め画像読取手段により読み
取られたスキャン画像に対して画像補正処理を施すよう
にしても良い。
Further, in each of the embodiments, the image correction apparatus is provided in the digital copying machine 16 which is an image forming apparatus, and the image correction processing is performed on the scan image read by the scanner section 1 of the digital copying machine 16. I chose
It is not limited to this. For example, an image scanner having an image reading unit for reading a document image is connected to a personal computer having a system configuration equivalent to that of the main controller 19 shown in FIG. 5, and the HDD of the personal computer is a storage medium. CD-ROM
Even if the image correction apparatus is configured by installing the program stored in 37 and operating the CPU of the personal computer in accordance with this program, the same effects as the various effects described above can be obtained. Further, the program stored in the CD-ROM 37, which is a storage medium, is stored in the main control unit 19 shown in FIG.
Installed in the HDD of a personal computer having a system configuration equivalent to that of the above, and the CPU of the personal computer is operated according to this program to configure an image correction device, and image correction is performed on a scan image read in advance by the image reading means. You may make it process.

【0111】[0111]

【発明の効果】請求項1記載の発明の画像補正装置によ
れば、画像読み取りの主走査方向に対してページ綴じ部
をほぼ平行にしてコンタクトガラスの上もしくは下に接
触させたブック原稿を画像読取手段により読み取ったス
キャン画像を補正する画像補正装置において、前記スキ
ャン画像の主走査方向上辺及び下辺の近傍に位置する前
記ブック原稿のページ外形を前記スキャン画像から抽出
するページ外形抽出手段と、このページ外形抽出手段に
より抽出された前記ページ外形に基づいて前記ページ綴
じ部に対応する綴じ部境界線を検出する綴じ部境界線検
出手段と、この綴じ部境界線検出手段により検出された
前記綴じ部境界線と画像読み取りの主走査方向との成す
角度を前記スキャン画像のスキュー角度として検出する
スキュー角度検出手段と、前記画像読取手段の光軸の軌
跡と前記綴じ部境界線との交点を中心として前記スキュ
ー角度検出手段により検出された前記スキュー角度だけ
前記スキャン画像全体を回転させ、前記スキャン画像の
スキューを補正するスキュー補正手段と、前記ページ外
形の形状に基づいて前記スキャン画像の3次元形状歪み
を補正する画像歪み補正手段と、を備え、スキャン画像
の主走査方向上辺及び下辺の近傍に位置するブック原稿
のページ外形に基づいてブック原稿のページ綴じ部に対
応する綴じ部境界線を検出し、この綴じ部境界線と画像
読み取りの主走査方向とによりスキャン画像のスキュー
角度を検出する。そして、スキャン画像全体を画像読取
手段の光軸の軌跡と綴じ部境界線との交点を中心として
スキュー角度だけ回転することで、スキャン画像のスキ
ューを補正し、ページ外形の形状に基づいて3次元形状
歪みも補正することにより、スキュー補正にあたっては
画像読取手段の光軸の軌跡と綴じ部境界線との交点を中
心として回転させていることから、スキュー補正後の各
ページ外形と光軸の軌跡との間の距離の変化を最小限に
抑えることができるので、検出されたスキュー角度が大
きい場合であっても、ページ外形の形状に基づく副走査
方向の3次元形状歪み補正を適切に行うことができる。
According to the image correcting apparatus of the first aspect of the present invention, a book document which is in contact with the top or bottom of the contact glass with the page binding portion substantially parallel to the main scanning direction of image reading is imaged. In an image correction device that corrects a scan image read by a reading unit, a page outline extraction unit that extracts the page outline of the book document located near the upper side and the lower side in the main scanning direction of the scan image from the scan image, and Bounding part boundary line detecting means for detecting a binding part boundary line corresponding to the page binding part based on the page outer shape extracted by the page outer shape extracting means, and the binding part detected by the binding part boundary line detecting means Skew angle detection for detecting the angle between the boundary line and the main scanning direction of image reading as the skew angle of the scanned image Steps, the entire scan image is rotated by the skew angle detected by the skew angle detecting means about the intersection of the locus of the optical axis of the image reading means and the binding part boundary line, and the skew of the scan image is rotated. Skew correction means for correcting the three-dimensional shape distortion of the scanned image based on the shape of the page outer shape, and image distortion correction means for correcting three-dimensional shape distortion of the scanned image, which are located near the upper side and the lower side in the main scanning direction of the scanned image. The binding portion boundary line corresponding to the page binding portion of the book original document is detected based on the page outline of the book original document, and the skew angle of the scan image is detected by the binding portion boundary line and the main scanning direction of image reading. Then, the entire scan image is rotated by a skew angle around the intersection of the locus of the optical axis of the image reading means and the binding part boundary line, thereby correcting the skew of the scan image and three-dimensionally based on the outer shape of the page. By correcting the shape distortion as well, the skew is corrected by rotating around the intersection of the optical axis locus of the image reading means and the binding part boundary line. Therefore, each page outline after skew correction and the optical axis locus are corrected. Since the change in the distance between and can be minimized, even if the detected skew angle is large, the three-dimensional shape distortion correction in the sub-scanning direction based on the shape of the page outline is appropriately performed. You can

【0112】請求項2記載の発明によれば、請求項1記
載の画像補正装置において、前記ページ外形抽出手段
は、前記スキャン画像の副走査方向における中央位置か
ら一定範囲の領域内より前記ブック原稿のページ外形を
抽出することにより、スキャン画像の綴じ部境界線の位
置は、スキャン画像の副走査方向のほぼ中央に存在する
と考えられるため、処理時間を短くすることができる。
According to a second aspect of the invention, in the image correction apparatus according to the first aspect, the page outline extracting means is arranged to select the book document from a region within a certain range from a central position of the scan image in the sub-scanning direction. By extracting the page outline of, the position of the binding portion boundary line of the scan image is considered to be present substantially at the center of the scan image in the sub-scanning direction, and therefore the processing time can be shortened.

【0113】請求項3記載の発明によれば、請求項1ま
たは2記載の画像補正装置において、前記綴じ部境界線
検出手段は、前記ページ外形抽出手段により抽出された
主走査方向上辺に位置する前記ページ外形についてはそ
の主走査方向の座標値が最小の点を前記綴じ部境界線の
一方の端点とし、主走査方向下辺に位置する前記ページ
外形についてはその主走査方向の座標値が最大の点を前
記綴じ部境界線の他方の端点とし、両端点を結ぶ線分を
前記綴じ部境界線とみなすことにより、ページ綴じ部に
対応する綴じ部境界線はスキャン画像の主走査方向上辺
及び下辺のページ外形の内側へ最も食い込んだ2点を結
ぶ線分であるため、確実にページ綴じ部に対応する綴じ
部境界線を検出することができる。
According to the third aspect of the invention, in the image correction apparatus according to the first or second aspect, the binding portion boundary line detecting means is located on the upper side in the main scanning direction extracted by the page outer shape extracting means. Regarding the page outer shape, the point having the smallest coordinate value in the main scanning direction is defined as one end point of the binding part boundary line, and the page outer shape located on the lower side in the main scanning direction has the largest coordinate value in the main scanning direction. By defining a point as the other end point of the binding part boundary line and regarding the line segment connecting both end points as the binding part boundary line, the binding part boundary line corresponding to the page binding part is the upper side and the lower side in the main scanning direction of the scan image. Since it is a line segment that connects the two points that are the most inside the page outer shape, it is possible to reliably detect the binding portion boundary line corresponding to the page binding portion.

【0114】請求項4記載の発明によれば、請求項1な
いし3のいずれか一記載の画像補正装置において、前記
スキュー補正手段は、画像回転後の前記スキャン画像の
各画素値について隣接する4ブロックの各画素値を基に
線形補間処理を行う線形補間手段を備えることにより、
スキャン画像全体を回転させて補正した画像の画素の座
標が小数になることはないので、スキュー補正画像の画
質を維持することができる。
According to a fourth aspect of the invention, in the image correction apparatus according to any one of the first to third aspects, the skew correction means are adjacent to each other for each pixel value of the scan image after image rotation. By providing a linear interpolation unit that performs a linear interpolation process based on each pixel value of the block,
Since the coordinates of the pixels of the image corrected by rotating the entire scan image are not decimal, the image quality of the skew corrected image can be maintained.

【0115】請求項5記載の発明によれば、請求項1な
いし4のいずれか一記載の画像補正装置において、前記
スキュー角度検出手段により検出された前記スキュー角
度の絶対値に応じ、前記スキュー補正手段と前記画像歪
み補正手段とを選択的に実行する補正選択手段を備える
ことにより、スキュー角度の絶対値の大小に応じてスキ
ュー補正手段と画像歪み補正手段とを選択的に実行する
ことができるので、例えば、スキュー角度の絶対値が非
常に小さい画像ではスキュー補正をしなくても3次元形
状歪み補正のみで十分に補正できるので、処理時間短縮
のためにスキュー補正を省略することができ、スキュー
角度の絶対値が非常に大きい画像では3次元形状歪み補
正を施すとむしろ歪みが増大して画質が劣化してしまう
場合もあり得るので、この場合にはスキュー補正及び歪
み補正を行わないようにすれば、歪み補正に伴う画質の
劣化を回避することができる。
According to the fifth aspect of the invention, in the image correction apparatus according to any one of the first to fourth aspects, the skew correction is performed according to the absolute value of the skew angle detected by the skew angle detection means. By including the correction selecting unit that selectively executes the image correcting unit and the image distortion correcting unit, the skew correcting unit and the image distortion correcting unit can be selectively executed according to the magnitude of the absolute value of the skew angle. Therefore, for example, in an image in which the absolute value of the skew angle is very small, the skew correction can be sufficiently performed by only the three-dimensional shape distortion correction without performing the skew correction, and thus the skew correction can be omitted to shorten the processing time. If an image having a very large absolute value of the skew angle is subjected to the three-dimensional shape distortion correction, the distortion may rather increase and the image quality may deteriorate. If so does not perform the skew correction and distortion correction in this case, it is possible to avoid the deterioration of image quality caused by distortion correction.

【0116】請求項6記載の発明によれば、請求項5記
載の画像補正装置において、前記補正選択手段は、前記
スキュー角度検出手段により検出された前記スキュー角
度の絶対値が予め定められた第一の閾値以上の場合に
は、前記スキャン画像に対する前記スキュー補正手段に
よるスキュー補正及び前記画像歪み補正手段による歪み
補正は行わず、前記スキュー角度検出手段により検出さ
れた前記スキュー角度の絶対値が前記第一の閾値未満で
あって予め定められた第二の閾値以上の場合には、前記
スキュー補正手段によりスキューが補正された前記スキ
ャン画像の3次元形状歪みを前記画像歪み補正手段によ
り補正し、前記スキュー角度検出手段により検出された
前記スキュー角度の絶対値が前記第二の閾値未満の場合
には、前記スキュー補正手段によるスキュー補正を行わ
ずに前記スキャン画像の3次元形状歪みのみを前記画像
歪み補正手段により補正することにより、スキュー角度
の絶対値が第一の閾値未満であれば、処理を続行し、そ
うでなければ処理を中断する。そして、処理を続行する
場合であっても、スキュー角度の絶対値が第二の閾値以
上である場合には、スキュー補正後に3次元形状歪み補
正処理を実行するので、歪み補正に伴う画質の劣化を回
避することができる。
According to a sixth aspect of the invention, in the image correction apparatus according to the fifth aspect, the correction selecting means is a first absolute value of the skew angle detected by the skew angle detecting means. When it is equal to or more than one threshold value, the skew correction by the skew correction unit and the distortion correction by the image distortion correction unit with respect to the scan image are not performed, and the absolute value of the skew angle detected by the skew angle detection unit is When it is less than the first threshold value and equal to or more than the predetermined second threshold value, the three-dimensional shape distortion of the scan image whose skew is corrected by the skew correction means is corrected by the image distortion correction means, If the absolute value of the skew angle detected by the skew angle detecting means is less than the second threshold value, the skew If the absolute value of the skew angle is less than the first threshold value by correcting only the three-dimensional shape distortion of the scan image by the image distortion correction means without performing skew correction by the corrector, the processing is continued, Otherwise, the process is interrupted. Then, even when the processing is continued, if the absolute value of the skew angle is equal to or larger than the second threshold value, the three-dimensional shape distortion correction processing is executed after the skew correction, so that the image quality is deteriorated due to the distortion correction. Can be avoided.

【0117】請求項7記載の発明によれば、請求項5記
載の画像補正装置において、前記補正選択手段は、前記
スキュー角度検出手段により検出された前記スキュー角
度の絶対値が予め定められた閾値以上の場合には、前記
スキュー補正手段によりスキューが補正された前記スキ
ャン画像の3次元形状歪みを前記画像歪み補正手段によ
り補正し、前記スキュー角度検出手段により検出された
前記スキュー角度の絶対値が予め定められた閾値未満の
場合には、前記スキュー補正手段によるスキュー補正を
行わずに前記スキャン画像の3次元形状歪みのみを前記
画像歪み補正手段により補正することにより、スキュー
角度の絶対値が閾値以上であれば、スキュー補正後に3
次元形状歪み補正処理を実行し、そうでなければスキュ
ー補正を行わずに3次元形状歪み補正処理のみを実行す
るので、歪み補正に伴う画質の劣化を回避することがで
きる。
According to a seventh aspect of the invention, in the image correcting apparatus according to the fifth aspect, the correction selecting means is a threshold value in which the absolute value of the skew angle detected by the skew angle detecting means is predetermined. In the above case, the image distortion correction unit corrects the three-dimensional shape distortion of the scan image whose skew has been corrected by the skew correction unit, and the absolute value of the skew angle detected by the skew angle detection unit is If it is less than a predetermined threshold value, the image distortion correction unit corrects only the three-dimensional shape distortion of the scan image without performing the skew correction by the skew correction unit, so that the absolute value of the skew angle becomes the threshold value. If it is above, 3 after skew correction
Since the three-dimensional shape distortion correction processing is executed and otherwise the three-dimensional shape distortion correction processing is executed without performing skew correction, it is possible to avoid deterioration of image quality due to the distortion correction.

【0118】請求項8記載の発明によれば、請求項5記
載の画像補正装置において、前記補正選択手段は、前記
スキュー角度検出手段により検出された前記スキュー角
度の絶対値が予め定められた閾値以上の場合には、前記
スキャン画像に対する前記スキュー補正手段によるスキ
ュー補正及び前記画像歪み補正手段による歪み補正は行
わず、前記スキュー角度検出手段により検出された前記
スキュー角度の絶対値が予め定められた閾値未満の場合
には、前記スキュー補正手段によりスキューが補正され
た前記スキャン画像の3次元形状歪みを前記画像歪み補
正手段により補正することにより、スキュー角度の絶対
値が予め定められた閾値以上であれば、処理を中断し、
そうでなければスキュー補正後に3次元形状歪み補正処
理を実行するので、歪み補正に伴う画質の劣化を回避す
ることができる。
According to the invention described in claim 8, in the image correction apparatus according to claim 5, the correction selection means is a threshold value in which the absolute value of the skew angle detected by the skew angle detection means is predetermined. In the above case, the skew correction by the skew correction unit and the distortion correction by the image distortion correction unit with respect to the scan image are not performed, and the absolute value of the skew angle detected by the skew angle detection unit is predetermined. If it is less than the threshold value, the absolute value of the skew angle is equal to or greater than a predetermined threshold value by correcting the three-dimensional shape distortion of the scan image whose skew is corrected by the skew correction means by the image distortion correction means. If so, interrupt the process,
Otherwise, since the three-dimensional shape distortion correction process is executed after the skew correction, it is possible to avoid the deterioration of the image quality due to the distortion correction.

【0119】請求項9記載の発明のプログラムによれ
ば、画像読み取りの主走査方向に対してページ綴じ部を
ほぼ平行にしてコンタクトガラスの上もしくは下に接触
させたブック原稿を画像読取手段により読み取ったスキ
ャン画像の画像補正をコンピュータに実行させるプログ
ラムであって、前記コンピュータに、前記スキャン画像
の主走査方向上辺及び下辺の近傍に位置する前記ブック
原稿のページ外形を前記スキャン画像から抽出するペー
ジ外形抽出機能と、このページ外形抽出機能により抽出
された前記ページ外形に基づいて前記ページ綴じ部に対
応する綴じ部境界線を検出する綴じ部境界線検出機能
と、この綴じ部境界線検出機能により検出された前記綴
じ部境界線と画像読み取りの主走査方向との成す角度を
前記スキャン画像のスキュー角度として検出するスキュ
ー角度検出機能と、前記画像読取手段の光軸の軌跡と前
記綴じ部境界線との交点を中心として前記スキュー角度
検出機能により検出された前記スキュー角度だけ前記ス
キャン画像全体を回転させ、前記スキャン画像のスキュ
ーを補正するスキュー補正機能と、前記ページ外形の形
状に基づいて前記スキャン画像の3次元形状歪みを補正
する画像歪み補正機能と、を実行させ、スキャン画像の
主走査方向上辺及び下辺の近傍に位置するブック原稿の
ページ外形に基づいてブック原稿のページ綴じ部に対応
する綴じ部境界線を検出し、この綴じ部境界線と画像読
み取りの主走査方向とによりスキャン画像のスキュー角
度を検出する。そして、スキャン画像全体を画像読取手
段の光軸の軌跡と綴じ部境界線との交点を中心としてス
キュー角度だけ回転することで、スキャン画像のスキュ
ーを補正し、ページ外形の形状に基づいて3次元形状歪
みも補正することにより、スキュー補正にあたっては画
像読取手段の光軸の軌跡と綴じ部境界線との交点を中心
として回転させていることから、スキュー補正後の各ペ
ージ外形と光軸の軌跡との間の距離の変化を最小限に抑
えることができるので、検出されたスキュー角度が大き
い場合であっても、ページ外形の形状に基づく副走査方
向の3次元形状歪み補正を適切に行うことができる。
According to the program of the ninth aspect of the invention, the image reading means reads the book document which is brought into contact with the upper or lower side of the contact glass with the page binding portion substantially parallel to the main scanning direction of image reading. A program for causing a computer to perform image correction of the scanned image, the page contour extracting the page contour of the book document located near the upper side and the lower side of the scanned image in the main scanning direction from the scanned image. An extraction function, a binding part boundary line detection function that detects a binding part boundary line corresponding to the page binding part based on the page external shape extracted by the page external shape extraction function, and a binding part boundary line detection function The angle formed by the bound line of the bound portion and the main scanning direction of image reading is defined as the scan of the scanned image. The skew angle detection function for detecting as a skew angle, and the entire scan image by the skew angle detected by the skew angle detection function centered on the intersection of the locus of the optical axis of the image reading means and the binding part boundary line. The main scanning of the scan image is performed by rotating and performing a skew correction function of correcting the skew of the scan image and an image distortion correction function of correcting the three-dimensional shape distortion of the scan image based on the shape of the page outline. The binding part boundary line corresponding to the page binding part of the book document is detected based on the page outer shape of the book document located near the upper side and the lower side in the direction, and the scanned image is obtained by the binding part boundary line and the main scanning direction of image reading. The skew angle of is detected. Then, the entire scan image is rotated by a skew angle around the intersection of the locus of the optical axis of the image reading means and the binding part boundary line, thereby correcting the skew of the scan image and three-dimensionally based on the outer shape of the page. By correcting the shape distortion as well, the skew is corrected by rotating around the intersection of the optical axis locus of the image reading means and the binding part boundary line. Therefore, each page outline after skew correction and the optical axis locus are corrected. Since the change in the distance between and can be minimized, even if the detected skew angle is large, the three-dimensional shape distortion correction in the sub-scanning direction based on the shape of the page outline is appropriately performed. You can

【0120】請求項10記載の発明の記憶媒体によれ
ば、画像読み取りの主走査方向に対してページ綴じ部を
ほぼ平行にしてコンタクトガラスの上もしくは下に接触
させたブック原稿を画像読取手段により読み取ったスキ
ャン画像の画像補正をコンピュータに実行させるプログ
ラムを記憶するコンピュータに読み取り可能な記憶媒体
であって、前記コンピュータに、前記スキャン画像の主
走査方向上辺及び下辺の近傍に位置する前記ブック原稿
のページ外形を前記スキャン画像から抽出するページ外
形抽出機能と、このページ外形抽出機能により抽出され
た前記ページ外形に基づいて前記ページ綴じ部に対応す
る綴じ部境界線を検出する綴じ部境界線検出機能と、こ
の綴じ部境界線検出機能により検出された前記綴じ部境
界線と画像読み取りの主走査方向との成す角度を前記ス
キャン画像のスキュー角度として検出するスキュー角度
検出機能と、前記画像読取手段の光軸の軌跡と前記綴じ
部境界線との交点を中心として前記スキュー角度検出機
能により検出された前記スキュー角度だけ前記スキャン
画像全体を回転させ、前記スキャン画像のスキューを補
正するスキュー補正機能と、前記ページ外形の形状に基
づいて前記スキャン画像の3次元形状歪みを補正する画
像歪み補正機能と、を実行させるプログラムを記憶さ
せ、スキャン画像の主走査方向上辺及び下辺の近傍に位
置するブック原稿のページ外形に基づいてブック原稿の
ページ綴じ部に対応する綴じ部境界線を検出し、この綴
じ部境界線と画像読み取りの主走査方向とによりスキャ
ン画像のスキュー角度を検出する。そして、スキャン画
像全体を画像読取手段の光軸の軌跡と綴じ部境界線との
交点を中心としてスキュー角度だけ回転することで、ス
キャン画像のスキューを補正し、ページ外形の形状に基
づいて3次元形状歪みも補正することにより、スキュー
補正にあたっては画像読取手段の光軸の軌跡と綴じ部境
界線との交点を中心として回転させていることから、ス
キュー補正後の各ページ外形と光軸の軌跡との間の距離
の変化を最小限に抑えることができるので、検出された
スキュー角度が大きい場合であっても、ページ外形の形
状に基づく副走査方向の3次元形状歪み補正を適切に行
うことができる。
According to the storage medium of the tenth aspect of the present invention, the book reading original brought into contact with the top or bottom of the contact glass with the page binding portion substantially parallel to the main scanning direction of image reading is brought into contact with the image reading means. A computer-readable storage medium that stores a program for causing a computer to perform image correction of a read scan image, wherein the computer stores the book document located near an upper side and a lower side in a main scanning direction of the scan image. A page outline extracting function for extracting a page outline from the scan image, and a binding part boundary line detecting function for detecting a binding part boundary line corresponding to the page binding part based on the page outline extracted by the page outline extracting function. And the binding part boundary line detected by this binding part boundary line detection function and image reading With a skew angle detection function for detecting an angle formed with the main scanning direction as a skew angle of the scan image, and the skew angle detection function with the intersection of the optical axis trajectory of the image reading means and the binding portion boundary line as the center. A skew correction function of rotating the entire scan image by the detected skew angle to correct the skew of the scan image, and an image distortion correction of correcting three-dimensional shape distortion of the scan image based on the shape of the page outline. And a program for executing the function, and detects the binding portion boundary line corresponding to the page binding portion of the book document based on the page outer shape of the book document located near the upper side and the lower side in the main scanning direction of the scan image, The skew angle of the scan image is detected based on the boundary line of the binding portion and the main scanning direction of image reading. Then, the entire scan image is rotated by a skew angle around the intersection of the locus of the optical axis of the image reading means and the binding part boundary line, thereby correcting the skew of the scan image and three-dimensionally based on the outer shape of the page. By correcting the shape distortion as well, the skew is corrected by rotating around the intersection of the optical axis locus of the image reading means and the binding part boundary line. Therefore, each page outline after skew correction and the optical axis locus are corrected. Since the change in the distance between and can be minimized, even if the detected skew angle is large, the three-dimensional shape distortion correction in the sub-scanning direction based on the shape of the page outline is appropriately performed. You can

【0121】請求項11記載の発明の画像補正方法によ
れば、画像読み取りの主走査方向に対してページ綴じ部
をほぼ平行にしてコンタクトガラスの上もしくは下に接
触させたブック原稿を画像読取手段により読み取ったス
キャン画像の画像補正方法であって、前記スキャン画像
の主走査方向上辺及び下辺の近傍に位置する前記ブック
原稿のページ外形を前記スキャン画像から抽出するペー
ジ外形抽出工程と、このページ外形抽出工程により抽出
された前記ページ外形に基づいて前記ページ綴じ部に対
応する綴じ部境界線を検出する綴じ部境界線検出工程
と、この綴じ部境界線検出工程により検出された前記綴
じ部境界線と画像読み取りの主走査方向との成す角度を
前記スキャン画像のスキュー角度として検出するスキュ
ー角度検出工程と、前記画像読取手段の光軸の軌跡と前
記綴じ部境界線との交点を中心として前記スキュー角度
検出手段により検出された前記スキュー角度だけ前記ス
キャン画像全体を回転させ、前記スキャン画像のスキュ
ーを補正するスキュー補正工程と、前記ページ外形の形
状に基づいて前記スキャン画像の3次元形状歪みを補正
する画像歪み補正工程と、を含み、スキャン画像の主走
査方向上辺及び下辺の近傍に位置するブック原稿のペー
ジ外形に基づいてブック原稿のページ綴じ部に対応する
綴じ部境界線を検出し、この綴じ部境界線と画像読み取
りの主走査方向とによりスキャン画像のスキュー角度を
検出する。そして、スキャン画像全体を画像読取手段の
光軸の軌跡と綴じ部境界線との交点を中心としてスキュ
ー角度だけ回転することで、スキャン画像のスキューを
補正し、ページ外形の形状に基づいて3次元形状歪みも
補正することにより、スキュー補正にあたっては画像読
取手段の光軸の軌跡と綴じ部境界線との交点を中心とし
て回転させていることから、スキュー補正後の各ページ
外形と光軸の軌跡との間の距離の変化を最小限に抑える
ことができるので、検出されたスキュー角度が大きい場
合であっても、ページ外形の形状に基づく副走査方向の
3次元形状歪み補正を適切に行うことができる。
According to the image correcting method of the eleventh aspect of the present invention, the image reading means is used for the book original which is brought into contact with the upper or lower side of the contact glass with the page binding portion substantially parallel to the main scanning direction of the image reading. An image correction method for a scan image read by the method, comprising: a page outline extraction step of extracting the page outline of the book document located near the upper side and the lower side in the main scanning direction of the scan image from the scan image; A binding part boundary line detecting step of detecting a binding part boundary line corresponding to the page binding part based on the page outline extracted by the extracting step, and the binding part boundary line detected by the binding part boundary line detecting step And a skew angle detection step of detecting an angle formed by the main scanning direction of image reading as a skew angle of the scan image, The entire scan image is rotated by the skew angle detected by the skew angle detection means around the intersection of the optical axis trajectory of the image reading means and the binding part boundary line, and the skew of the scan image is corrected. A skew correction step and an image distortion correction step of correcting the three-dimensional shape distortion of the scan image based on the shape of the page outer shape are included, and a book document located near the upper side and the lower side of the scan image in the main scanning direction is stored. The binding portion boundary line corresponding to the page binding portion of the book document is detected based on the page outer shape, and the skew angle of the scan image is detected based on the binding portion boundary line and the main scanning direction of image reading. Then, the entire scan image is rotated by a skew angle around the intersection of the locus of the optical axis of the image reading means and the binding part boundary line, thereby correcting the skew of the scan image and three-dimensionally based on the outer shape of the page. By correcting the shape distortion as well, the skew is corrected by rotating around the intersection of the optical axis locus of the image reading means and the binding part boundary line. Therefore, each page outline after skew correction and the optical axis locus are corrected. Since the change in the distance between and can be minimized, even if the detected skew angle is large, the three-dimensional shape distortion correction in the sub-scanning direction based on the shape of the page outline is appropriately performed. You can

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第一の実施の形態のスキャナ部の構成
を示す縦断正面図である。
FIG. 1 is a vertical sectional front view showing a configuration of a scanner unit according to a first embodiment of the present invention.

【図2】スキャナ部を搭載したデジタル複写機の上部部
分を示す斜視図である。
FIG. 2 is a perspective view showing an upper portion of a digital copying machine equipped with a scanner unit.

【図3】スキャナ部の制御系の電気的な接続を示すブロ
ック図である。
FIG. 3 is a block diagram showing electrical connection of a control system of a scanner unit.

【図4】画像処理部の基本的な内部構成を示すブロック
図である。
FIG. 4 is a block diagram showing a basic internal configuration of an image processing unit.

【図5】メイン制御部の電気的な接続を示すブロック図
である。
FIG. 5 is a block diagram showing electrical connection of a main control unit.

【図6】スキャン画像の補正処理の流れを概略的に示す
フローチャートである。
FIG. 6 is a flowchart schematically showing the flow of a scan image correction process.

【図7】スキャナ部のコンタクトガラス上にブック原稿
を載置した状態を示す斜視図である。
FIG. 7 is a perspective view showing a state where a book document is placed on the contact glass of the scanner unit.

【図8】入力した画像の一例を示す平面図である。FIG. 8 is a plan view showing an example of an input image.

【図9】スキャン画像のページ綴じ部の近傍の歪みを示
す説明図である。
FIG. 9 is an explanatory diagram showing distortion in the vicinity of a page binding portion of a scan image.

【図10】上端にページ外形が存在するスキャン画像の
一例を示す説明図である。
FIG. 10 is an explanatory diagram showing an example of a scan image having a page outline on the upper end.

【図11】図10に示したスキャン画像の綴じ部境界線
左側の黒画素ヒストグラムである。
11 is a black pixel histogram on the left side of the binding portion boundary line of the scan image shown in FIG.

【図12】スキャン画像のページ外形の探索範囲を示す
説明図である。
FIG. 12 is an explanatory diagram showing a search range of a page outline of a scan image.

【図13】スキャン画像の綴じ部境界線の検出手法を示
す説明図である。
FIG. 13 is an explanatory diagram illustrating a method of detecting a binding part boundary line of a scan image.

【図14】スキャン画像のスキュー角度の検出手法を示
す説明図である。
FIG. 14 is an explanatory diagram showing a method of detecting a skew angle of a scan image.

【図15】スキャン画像の画像歪み補正処理の流れを示
すフローチャートである。
FIG. 15 is a flowchart showing a flow of image distortion correction processing of a scan image.

【図16】スキャン画像における歪み発生部分の境界点
を示す説明図である。
FIG. 16 is an explanatory diagram showing boundary points of a distortion occurrence portion in a scan image.

【図17】図16における仮想ページ外形を示す説明図
である。
17 is an explanatory diagram showing the outer shape of the virtual page in FIG.

【図18】図16を画素シフトした後に所定の歪み補正
率により伸張して補正した状態を示す説明図である。
FIG. 18 is an explanatory diagram showing a state in which FIG. 16 is pixel-shifted and then expanded and corrected by a predetermined distortion correction rate.

【図19】画像長さの算出を示す説明図である。FIG. 19 is an explanatory diagram showing calculation of image length.

【図20】ページ綴じ部の境界歪みを示す説明図であ
る。
FIG. 20 is an explanatory diagram showing boundary distortion of a page binding portion.

【図21】主走査方向画素間補間を示す説明図である。FIG. 21 is an explanatory diagram showing interpolation between pixels in the main scanning direction.

【図22】副走査方向復元を示すフローチャートであ
る。
FIG. 22 is a flowchart showing sub-scanning direction restoration.

【図23】回転中心の決め方を示す説明図である。FIG. 23 is an explanatory diagram showing how to determine a rotation center.

【図24】画素値の線形補間処理による求め方を示す説
明図である。
FIG. 24 is an explanatory diagram showing a method of obtaining a pixel value by linear interpolation processing.

【図25】スキュー補正後のスキャン画像を示す説明図
である。
FIG. 25 is an explanatory diagram showing a scan image after skew correction.

【図26】本発明の第二の実施の形態のスキャン画像の
画像歪み補正処理の流れを示すフローチャートである。
FIG. 26 is a flowchart showing a flow of image distortion correction processing for a scanned image according to the second embodiment of this invention.

【図27】本発明の第三の実施の形態のスキャン画像の
画像歪み補正処理の流れを示すフローチャートである。
FIG. 27 is a flowchart showing a flow of image distortion correction processing for a scanned image according to the third embodiment of this invention.

【図28】本発明の第四の実施の形態のスキャン画像の
画像歪み補正処理の流れを示すフローチャートである。
FIG. 28 is a flowchart showing the flow of image distortion correction processing for a scanned image according to the fourth embodiment of the present invention.

【図29】コンタクトガラスにブック原稿を接触させた
状態を示す正面図である。
FIG. 29 is a front view showing a state where a book document is brought into contact with the contact glass.

【図30】コンタクトガラス上にブック原稿を載置した
状態を示す正面図である。
FIG. 30 is a front view showing a state where a book document is placed on the contact glass.

【図31】スキューが生じたスキャン画像を示す説明図
である。
FIG. 31 is an explanatory diagram showing a scan image in which skew has occurred.

【符号の説明】[Explanation of symbols]

2 コンタクトガラス 29 画像補正装置 37 記憶媒体 40 ブック原稿 41 ページ綴じ部 2 contact glass 29 Image correction device 37 storage media 40 book manuscripts 41 pages binding

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 AA11 CA02 CA12 CA16 CB02 CB12 CB16 CC01 CD03 CD12 CH08 5C072 AA01 DA02 DA05 EA05 LA03 RA03 VA06 5C076 AA23 AA24 BA06    ─────────────────────────────────────────────────── ─── Continued front page    F term (reference) 5B057 AA11 CA02 CA12 CA16 CB02                       CB12 CB16 CC01 CD03 CD12                       CH08                 5C072 AA01 DA02 DA05 EA05 LA03                       RA03 VA06                 5C076 AA23 AA24 BA06

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 画像読み取りの主走査方向に対してペー
ジ綴じ部をほぼ平行にしてコンタクトガラスの上もしく
は下に接触させたブック原稿を画像読取手段により読み
取ったスキャン画像を補正する画像補正装置において、 前記スキャン画像の主走査方向上辺及び下辺の近傍に位
置する前記ブック原稿のページ外形を前記スキャン画像
から抽出するページ外形抽出手段と、 このページ外形抽出手段により抽出された前記ページ外
形に基づいて前記ページ綴じ部に対応する綴じ部境界線
を検出する綴じ部境界線検出手段と、 この綴じ部境界線検出手段により検出された前記綴じ部
境界線と画像読み取りの主走査方向との成す角度を前記
スキャン画像のスキュー角度として検出するスキュー角
度検出手段と、 前記画像読取手段の光軸の軌跡と前記綴じ部境界線との
交点を中心として前記スキュー角度検出手段により検出
された前記スキュー角度だけ前記スキャン画像全体を回
転させ、前記スキャン画像のスキューを補正するスキュ
ー補正手段と、前記ページ外形の形状に基づいて前記ス
キャン画像の3次元形状歪みを補正する画像歪み補正手
段と、を備えることを特徴とする画像補正装置。
1. An image correction apparatus for correcting a scan image obtained by reading an image of a book document, which is brought into contact with the top or bottom of a contact glass, with a page binding portion substantially parallel to the main scanning direction of image reading. Based on the page contour extraction unit that extracts the page contour of the book document located near the upper side and the lower side of the scan image in the main scanning direction from the scan image, and the page contour extracted by the page contour extraction unit. A binding portion boundary line detecting unit that detects a binding portion boundary line corresponding to the page binding unit, and an angle formed between the binding portion boundary line detected by the binding portion boundary line detecting unit and the main scanning direction of image reading. Skew angle detecting means for detecting the skew angle of the scanned image, and a trajectory of the optical axis of the image reading means Skew correction means for correcting the skew of the scan image by rotating the entire scan image by the skew angle detected by the skew angle detection means around the intersection with the binding part boundary line, and forming the page outline shape. And an image distortion correction unit that corrects the three-dimensional shape distortion of the scan image based on the image correction apparatus.
【請求項2】 前記ページ外形抽出手段は、前記スキャ
ン画像の副走査方向における中央位置から一定範囲の領
域内より前記ブック原稿のページ外形を抽出することを
特徴とする請求項1記載の画像補正装置。
2. The image correction according to claim 1, wherein the page outline extracting means extracts the page outline of the book document from an area within a certain range from a central position of the scan image in the sub-scanning direction. apparatus.
【請求項3】 前記綴じ部境界線検出手段は、前記ペー
ジ外形抽出手段により抽出された主走査方向上辺に位置
する前記ページ外形についてはその主走査方向の座標値
が最小の点を前記綴じ部境界線の一方の端点とし、主走
査方向下辺に位置する前記ページ外形についてはその主
走査方向の座標値が最大の点を前記綴じ部境界線の他方
の端点とし、両端点を結ぶ線分を前記綴じ部境界線とみ
なすことを特徴とする請求項1または2記載の画像補正
装置。
3. The binding section boundary line detecting unit determines, for the page outline located on the upper side in the main scanning direction extracted by the page outline extracting unit, a point having a minimum coordinate value in the main scanning direction as the binding unit. As one end point of the boundary line, with respect to the page outer shape located on the lower side in the main scanning direction, the point having the maximum coordinate value in the main scanning direction is set as the other end point of the binding section boundary line, and a line segment connecting both end points is formed. The image correction apparatus according to claim 1, wherein the image correction apparatus regards it as the boundary line of the binding portion.
【請求項4】 前記スキュー補正手段は、画像回転後の
前記スキャン画像の各画素値について隣接する4ブロッ
クの各画素値を基に線形補間処理を行う線形補間手段を
備えることを特徴とする請求項1ないし3のいずれか一
記載の画像補正装置。
4. The skew correction means comprises a linear interpolation means for performing linear interpolation processing on each pixel value of the scan image after image rotation based on each pixel value of four adjacent blocks. Item 4. The image correction device according to any one of items 1 to 3.
【請求項5】 前記スキュー角度検出手段により検出さ
れた前記スキュー角度の絶対値に応じ、前記スキュー補
正手段と前記画像歪み補正手段とを選択的に実行する補
正選択手段を備えることを特徴とする請求項1ないし4
のいずれか一記載の画像補正装置。
5. A correction selecting means for selectively executing the skew correcting means and the image distortion correcting means according to an absolute value of the skew angle detected by the skew angle detecting means. Claims 1 to 4
The image correction device according to any one of 1.
【請求項6】 前記補正選択手段は、前記スキュー角度
検出手段により検出された前記スキュー角度の絶対値が
予め定められた第一の閾値以上の場合には、前記スキャ
ン画像に対する前記スキュー補正手段によるスキュー補
正及び前記画像歪み補正手段による歪み補正は行わず、
前記スキュー角度検出手段により検出された前記スキュ
ー角度の絶対値が前記第一の閾値未満であって予め定め
られた第二の閾値以上の場合には、前記スキュー補正手
段によりスキューが補正された前記スキャン画像の3次
元形状歪みを前記画像歪み補正手段により補正し、前記
スキュー角度検出手段により検出された前記スキュー角
度の絶対値が前記第二の閾値未満の場合には、前記スキ
ュー補正手段によるスキュー補正を行わずに前記スキャ
ン画像の3次元形状歪みのみを前記画像歪み補正手段に
より補正することを特徴とする請求項5記載の画像補正
装置。
6. The correction selecting means, when the absolute value of the skew angle detected by the skew angle detecting means is greater than or equal to a predetermined first threshold value, the skew correcting means for the scan image. Skew correction and distortion correction by the image distortion correction means are not performed,
When the absolute value of the skew angle detected by the skew angle detecting means is less than the first threshold value and is equal to or more than a predetermined second threshold value, the skew is corrected by the skew correcting means. When the absolute value of the skew angle detected by the skew angle detecting unit is less than the second threshold value, the skew correcting unit corrects the three-dimensional shape distortion of the scan image by the image distortion correcting unit. The image correction apparatus according to claim 5, wherein only the three-dimensional shape distortion of the scan image is corrected by the image distortion correction unit without correction.
【請求項7】 前記補正選択手段は、前記スキュー角度
検出手段により検出された前記スキュー角度の絶対値が
予め定められた閾値以上の場合には、前記スキュー補正
手段によりスキューが補正された前記スキャン画像の3
次元形状歪みを前記画像歪み補正手段により補正し、前
記スキュー角度検出手段により検出された前記スキュー
角度の絶対値が予め定められた閾値未満の場合には、前
記スキュー補正手段によるスキュー補正を行わずに前記
スキャン画像の3次元形状歪みのみを前記画像歪み補正
手段により補正することを特徴とする請求項5記載の画
像補正装置。
7. The scan in which the skew is corrected by the skew correction means when the absolute value of the skew angle detected by the skew angle detection means is equal to or greater than a predetermined threshold value. Image 3
If the absolute value of the skew angle detected by the skew angle detecting means is less than a predetermined threshold value, the skew correcting means does not perform the skew correction. The image correction apparatus according to claim 5, wherein only the three-dimensional shape distortion of the scan image is corrected by the image distortion correction unit.
【請求項8】 前記補正選択手段は、前記スキュー角度
検出手段により検出された前記スキュー角度の絶対値が
予め定められた閾値以上の場合には、前記スキャン画像
に対する前記スキュー補正手段によるスキュー補正及び
前記画像歪み補正手段による歪み補正は行わず、前記ス
キュー角度検出手段により検出された前記スキュー角度
の絶対値が予め定められた閾値未満の場合には、前記ス
キュー補正手段によりスキューが補正された前記スキャ
ン画像の3次元形状歪みを前記画像歪み補正手段により
補正することを特徴とする請求項5記載の画像補正装
置。
8. The correction selecting means, when the absolute value of the skew angle detected by the skew angle detecting means is equal to or more than a predetermined threshold value, skew correction by the skew correcting means for the scan image and If the absolute value of the skew angle detected by the skew angle detecting means is less than a predetermined threshold value, the skew is corrected by the skew correcting means without performing the distortion correction by the image distortion correcting means. The image correction apparatus according to claim 5, wherein the three-dimensional shape distortion of the scanned image is corrected by the image distortion correction unit.
【請求項9】 画像読み取りの主走査方向に対してペー
ジ綴じ部をほぼ平行にしてコンタクトガラスの上もしく
は下に接触させたブック原稿を画像読取手段により読み
取ったスキャン画像の画像補正をコンピュータに実行さ
せるプログラムであって、前記コンピュータに、 前記スキャン画像の主走査方向上辺及び下辺の近傍に位
置する前記ブック原稿のページ外形を前記スキャン画像
から抽出するページ外形抽出機能と、 このページ外形抽出機能により抽出された前記ページ外
形に基づいて前記ページ綴じ部に対応する綴じ部境界線
を検出する綴じ部境界線検出機能と、 この綴じ部境界線検出機能により検出された前記綴じ部
境界線と画像読み取りの主走査方向との成す角度を前記
スキャン画像のスキュー角度として検出するスキュー角
度検出機能と、 前記画像読取手段の光軸の軌跡と前記綴じ部境界線との
交点を中心として前記スキュー角度検出機能により検出
された前記スキュー角度だけ前記スキャン画像全体を回
転させ、前記スキャン画像のスキューを補正するスキュ
ー補正機能と、前記ページ外形の形状に基づいて前記ス
キャン画像の3次元形状歪みを補正する画像歪み補正機
能と、を実行させることを特徴とするプログラム。
9. A computer executes image correction of a scan image obtained by reading a book document which is in contact with the top or bottom of a contact glass with the page binding portion substantially parallel to the main scanning direction of the image reading by the image reading means. A program for causing the computer to extract a page outline of the book document located near the upper side and the lower side in the main scanning direction of the scan image from the scan image, and a page outline extracting function. A binding portion boundary line detecting function for detecting a binding portion boundary line corresponding to the page binding portion based on the extracted page outer shape, and the binding portion boundary line and image reading detected by the binding portion boundary line detecting function. Skew angle detection for detecting the angle formed by the main scanning direction of the The output function, the entire scan image is rotated by the skew angle detected by the skew angle detection function around the intersection point of the locus of the optical axis of the image reading unit and the binding part boundary line, and the scan image A program for executing a skew correction function for correcting skew and an image distortion correction function for correcting three-dimensional shape distortion of the scan image based on the shape of the page outer shape.
【請求項10】 画像読み取りの主走査方向に対してペ
ージ綴じ部をほぼ平行にしてコンタクトガラスの上もし
くは下に接触させたブック原稿を画像読取手段により読
み取ったスキャン画像の画像補正をコンピュータに実行
させるプログラムを記憶するコンピュータに読み取り可
能な記憶媒体であって、前記コンピュータに、 前記スキャン画像の主走査方向上辺及び下辺の近傍に位
置する前記ブック原稿のページ外形を前記スキャン画像
から抽出するページ外形抽出機能と、 このページ外形抽出機能により抽出された前記ページ外
形に基づいて前記ページ綴じ部に対応する綴じ部境界線
を検出する綴じ部境界線検出機能と、 この綴じ部境界線検出機能により検出された前記綴じ部
境界線と画像読み取りの主走査方向との成す角度を前記
スキャン画像のスキュー角度として検出するスキュー角
度検出機能と、 前記画像読取手段の光軸の軌跡と前記綴じ部境界線との
交点を中心として前記スキュー角度検出機能により検出
された前記スキュー角度だけ前記スキャン画像全体を回
転させ、前記スキャン画像のスキューを補正するスキュ
ー補正機能と、 前記ページ外形の形状に基づいて前記スキャン画像の3
次元形状歪みを補正する画像歪み補正機能と、を実行さ
せるプログラムを記憶することを特徴とするコンピュー
タに読み取り可能な記憶媒体。
10. A computer executes image correction of a scan image obtained by reading a book document which is brought into contact with the top or bottom of a contact glass with the page binding portion substantially parallel to the main scanning direction of the image reading by the image reading means. A computer-readable storage medium that stores a program for causing the computer to extract a page outline of the book document located near an upper side and a lower side in the main scanning direction of the scan image from the scan image. An extraction function, a binding part boundary line detection function that detects a binding part boundary line corresponding to the page binding part based on the page outline extracted by the page outline extraction function, and a binding part boundary line detection function The angle formed between the bound line of the bound portion and the main scanning direction of image reading is defined as the scan angle. Skew angle detection function for detecting the skew angle of the scanned image, and the scan for the skew angle detected by the skew angle detection function centered on the intersection of the optical axis trajectory of the image reading means and the binding portion boundary line. A skew correction function of rotating the entire image to correct the skew of the scan image, and 3 of the scan image based on the shape of the page outline.
A computer-readable storage medium characterized by storing a program for executing an image distortion correction function for correcting a three-dimensional shape distortion.
【請求項11】 画像読み取りの主走査方向に対してペ
ージ綴じ部をほぼ平行にしてコンタクトガラスの上もし
くは下に接触させたブック原稿を画像読取手段により読
み取ったスキャン画像の画像補正方法であって、 前記スキャン画像の主走査方向上辺及び下辺の近傍に位
置する前記ブック原稿のページ外形を前記スキャン画像
から抽出するページ外形抽出工程と、 このページ外形抽出工程により抽出された前記ページ外
形に基づいて前記ページ綴じ部に対応する綴じ部境界線
を検出する綴じ部境界線検出工程と、 この綴じ部境界線検出工程により検出された前記綴じ部
境界線と画像読み取りの主走査方向との成す角度を前記
スキャン画像のスキュー角度として検出するスキュー角
度検出工程と、 前記画像読取手段の光軸の軌跡と前記綴じ部境界線との
交点を中心として前記スキュー角度検出手段により検出
された前記スキュー角度だけ前記スキャン画像全体を回
転させ、前記スキャン画像のスキューを補正するスキュ
ー補正工程と、 前記ページ外形の形状に基づいて前記スキャン画像の3
次元形状歪みを補正する画像歪み補正工程と、を含むこ
とを特徴とする画像補正方法。
11. A method for correcting an image of a scan image obtained by reading, by an image reading means, a book document which is in contact with the top or bottom of a contact glass with a page binding portion substantially parallel to the main scanning direction of image reading. A page outline extracting step of extracting the page outline of the book document located near the upper side and the lower side in the main scanning direction of the scan image from the scan image, and based on the page outline extracted by the page outline extracting step. A binding part boundary line detecting step of detecting a binding part boundary line corresponding to the page binding part, and an angle formed between the binding part boundary line detected by the binding part boundary line detecting step and a main scanning direction of image reading. A skew angle detecting step of detecting as a skew angle of the scan image, a locus of an optical axis of the image reading means, and the binding A skew correction step of correcting the skew of the scan image by rotating the entire scan image by the skew angle detected by the skew angle detection means around an intersection with a boundary line, and based on the shape of the page outline. 3 of the scan image
An image distortion correction step of correcting a three-dimensional shape distortion.
JP2002032775A 2002-02-08 2002-02-08 Image correction apparatus, program, storage medium, and image correction method Expired - Fee Related JP3891408B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002032775A JP3891408B2 (en) 2002-02-08 2002-02-08 Image correction apparatus, program, storage medium, and image correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002032775A JP3891408B2 (en) 2002-02-08 2002-02-08 Image correction apparatus, program, storage medium, and image correction method

Publications (2)

Publication Number Publication Date
JP2003234888A true JP2003234888A (en) 2003-08-22
JP3891408B2 JP3891408B2 (en) 2007-03-14

Family

ID=27775797

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002032775A Expired - Fee Related JP3891408B2 (en) 2002-02-08 2002-02-08 Image correction apparatus, program, storage medium, and image correction method

Country Status (1)

Country Link
JP (1) JP3891408B2 (en)

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008537861A (en) * 2005-03-24 2008-09-25 コファック イメージ プロダクツ, インコーポレイテッド System and method for processing scanned data
US7430065B2 (en) * 2001-08-27 2008-09-30 Ricoh Company, Ltd Method and system for correcting distortions in image data scanned from bound originals
US8855375B2 (en) 2012-01-12 2014-10-07 Kofax, Inc. Systems and methods for mobile image capture and processing
US8885229B1 (en) 2013-05-03 2014-11-11 Kofax, Inc. Systems and methods for detecting and classifying objects in video captured using mobile devices
US8958605B2 (en) 2009-02-10 2015-02-17 Kofax, Inc. Systems, methods and computer program products for determining document validity
US9058515B1 (en) 2012-01-12 2015-06-16 Kofax, Inc. Systems and methods for identification document processing and business workflow integration
US9058580B1 (en) 2012-01-12 2015-06-16 Kofax, Inc. Systems and methods for identification document processing and business workflow integration
US9137417B2 (en) 2005-03-24 2015-09-15 Kofax, Inc. Systems and methods for processing video data
US9141926B2 (en) 2013-04-23 2015-09-22 Kofax, Inc. Smart mobile application development platform
US9208536B2 (en) 2013-09-27 2015-12-08 Kofax, Inc. Systems and methods for three dimensional geometric reconstruction of captured image data
US9311531B2 (en) 2013-03-13 2016-04-12 Kofax, Inc. Systems and methods for classifying objects in digital images captured using mobile devices
US9355312B2 (en) 2013-03-13 2016-05-31 Kofax, Inc. Systems and methods for classifying objects in digital images captured using mobile devices
US9386235B2 (en) 2013-11-15 2016-07-05 Kofax, Inc. Systems and methods for generating composite images of long documents using mobile video data
US9396388B2 (en) 2009-02-10 2016-07-19 Kofax, Inc. Systems, methods and computer program products for determining document validity
US9483794B2 (en) 2012-01-12 2016-11-01 Kofax, Inc. Systems and methods for identification document processing and business workflow integration
US9576272B2 (en) 2009-02-10 2017-02-21 Kofax, Inc. Systems, methods and computer program products for determining document validity
US9747269B2 (en) 2009-02-10 2017-08-29 Kofax, Inc. Smart optical input/output (I/O) extension for context-dependent workflows
US9760788B2 (en) 2014-10-30 2017-09-12 Kofax, Inc. Mobile document detection and orientation based on reference object characteristics
US9767354B2 (en) 2009-02-10 2017-09-19 Kofax, Inc. Global geographic information retrieval, validation, and normalization
US9769354B2 (en) 2005-03-24 2017-09-19 Kofax, Inc. Systems and methods of processing scanned data
US9779296B1 (en) 2016-04-01 2017-10-03 Kofax, Inc. Content-based detection and three dimensional geometric reconstruction of objects in image and video data
US10146795B2 (en) 2012-01-12 2018-12-04 Kofax, Inc. Systems and methods for mobile image capture and processing
US10242285B2 (en) 2015-07-20 2019-03-26 Kofax, Inc. Iterative recognition-guided thresholding and data extraction
US10803350B2 (en) 2017-11-30 2020-10-13 Kofax, Inc. Object detection and image cropping using a multi-detector approach

Cited By (45)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7430065B2 (en) * 2001-08-27 2008-09-30 Ricoh Company, Ltd Method and system for correcting distortions in image data scanned from bound originals
JP2008537861A (en) * 2005-03-24 2008-09-25 コファック イメージ プロダクツ, インコーポレイテッド System and method for processing scanned data
US8749839B2 (en) 2005-03-24 2014-06-10 Kofax, Inc. Systems and methods of processing scanned data
US8823991B2 (en) 2005-03-24 2014-09-02 Kofax, Inc. Systems and methods of processing scanned data
US9769354B2 (en) 2005-03-24 2017-09-19 Kofax, Inc. Systems and methods of processing scanned data
US9137417B2 (en) 2005-03-24 2015-09-15 Kofax, Inc. Systems and methods for processing video data
US9767354B2 (en) 2009-02-10 2017-09-19 Kofax, Inc. Global geographic information retrieval, validation, and normalization
US9747269B2 (en) 2009-02-10 2017-08-29 Kofax, Inc. Smart optical input/output (I/O) extension for context-dependent workflows
US8958605B2 (en) 2009-02-10 2015-02-17 Kofax, Inc. Systems, methods and computer program products for determining document validity
US9576272B2 (en) 2009-02-10 2017-02-21 Kofax, Inc. Systems, methods and computer program products for determining document validity
US9396388B2 (en) 2009-02-10 2016-07-19 Kofax, Inc. Systems, methods and computer program products for determining document validity
US9058580B1 (en) 2012-01-12 2015-06-16 Kofax, Inc. Systems and methods for identification document processing and business workflow integration
US8971587B2 (en) 2012-01-12 2015-03-03 Kofax, Inc. Systems and methods for mobile image capture and processing
US10664919B2 (en) 2012-01-12 2020-05-26 Kofax, Inc. Systems and methods for mobile image capture and processing
US9158967B2 (en) 2012-01-12 2015-10-13 Kofax, Inc. Systems and methods for mobile image capture and processing
US9165188B2 (en) 2012-01-12 2015-10-20 Kofax, Inc. Systems and methods for mobile image capture and processing
US9165187B2 (en) 2012-01-12 2015-10-20 Kofax, Inc. Systems and methods for mobile image capture and processing
US10657600B2 (en) 2012-01-12 2020-05-19 Kofax, Inc. Systems and methods for mobile image capture and processing
US10146795B2 (en) 2012-01-12 2018-12-04 Kofax, Inc. Systems and methods for mobile image capture and processing
US9058515B1 (en) 2012-01-12 2015-06-16 Kofax, Inc. Systems and methods for identification document processing and business workflow integration
US9342742B2 (en) 2012-01-12 2016-05-17 Kofax, Inc. Systems and methods for mobile image capture and processing
US8855375B2 (en) 2012-01-12 2014-10-07 Kofax, Inc. Systems and methods for mobile image capture and processing
US8879120B2 (en) 2012-01-12 2014-11-04 Kofax, Inc. Systems and methods for mobile image capture and processing
US8989515B2 (en) 2012-01-12 2015-03-24 Kofax, Inc. Systems and methods for mobile image capture and processing
US9483794B2 (en) 2012-01-12 2016-11-01 Kofax, Inc. Systems and methods for identification document processing and business workflow integration
US9514357B2 (en) 2012-01-12 2016-12-06 Kofax, Inc. Systems and methods for mobile image capture and processing
US9996741B2 (en) 2013-03-13 2018-06-12 Kofax, Inc. Systems and methods for classifying objects in digital images captured using mobile devices
US9311531B2 (en) 2013-03-13 2016-04-12 Kofax, Inc. Systems and methods for classifying objects in digital images captured using mobile devices
US9754164B2 (en) 2013-03-13 2017-09-05 Kofax, Inc. Systems and methods for classifying objects in digital images captured using mobile devices
US9355312B2 (en) 2013-03-13 2016-05-31 Kofax, Inc. Systems and methods for classifying objects in digital images captured using mobile devices
US10127441B2 (en) 2013-03-13 2018-11-13 Kofax, Inc. Systems and methods for classifying objects in digital images captured using mobile devices
US9141926B2 (en) 2013-04-23 2015-09-22 Kofax, Inc. Smart mobile application development platform
US10146803B2 (en) 2013-04-23 2018-12-04 Kofax, Inc Smart mobile application development platform
US8885229B1 (en) 2013-05-03 2014-11-11 Kofax, Inc. Systems and methods for detecting and classifying objects in video captured using mobile devices
US9253349B2 (en) 2013-05-03 2016-02-02 Kofax, Inc. Systems and methods for detecting and classifying objects in video captured using mobile devices
US9584729B2 (en) 2013-05-03 2017-02-28 Kofax, Inc. Systems and methods for improving video captured using mobile devices
US9946954B2 (en) 2013-09-27 2018-04-17 Kofax, Inc. Determining distance between an object and a capture device based on captured image data
US9208536B2 (en) 2013-09-27 2015-12-08 Kofax, Inc. Systems and methods for three dimensional geometric reconstruction of captured image data
US9386235B2 (en) 2013-11-15 2016-07-05 Kofax, Inc. Systems and methods for generating composite images of long documents using mobile video data
US9747504B2 (en) 2013-11-15 2017-08-29 Kofax, Inc. Systems and methods for generating composite images of long documents using mobile video data
US9760788B2 (en) 2014-10-30 2017-09-12 Kofax, Inc. Mobile document detection and orientation based on reference object characteristics
US10242285B2 (en) 2015-07-20 2019-03-26 Kofax, Inc. Iterative recognition-guided thresholding and data extraction
US9779296B1 (en) 2016-04-01 2017-10-03 Kofax, Inc. Content-based detection and three dimensional geometric reconstruction of objects in image and video data
US10803350B2 (en) 2017-11-30 2020-10-13 Kofax, Inc. Object detection and image cropping using a multi-detector approach
US11062176B2 (en) 2017-11-30 2021-07-13 Kofax, Inc. Object detection and image cropping using a multi-detector approach

Also Published As

Publication number Publication date
JP3891408B2 (en) 2007-03-14

Similar Documents

Publication Publication Date Title
JP3891408B2 (en) Image correction apparatus, program, storage medium, and image correction method
JP4141235B2 (en) Image correction apparatus and program
US7016081B2 (en) Image distortion correction apparatus, distortion correction method therefor, recording media, image scanner and image construction apparatus
JP4162633B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, program, and storage medium
JP3983721B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, and program
JP4006242B2 (en) Image correction apparatus, program, storage medium, and image correction method
JP4111697B2 (en) Image brightness correction apparatus, image reading apparatus, image forming apparatus, and program
JP3865215B2 (en) Image distortion correction apparatus, program, storage medium, and image distortion correction method
JP3986059B2 (en) Image correction apparatus, program, storage medium, and detection method of boundary point between straight line portion and curved portion of page outline
JP2003234890A (en) Image correction device, program, storage medium, and method for correcting image
JP3926294B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, image distortion correction method, image distortion correction program, and recording medium
JP4180260B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, and program
JP4507124B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, and program
JP4585015B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, and program
JP4093970B2 (en) Image distortion correction apparatus, program, and storage medium
JP3979639B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, and program
JP4061256B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, and program
JP2003143407A (en) Picture luminance correcting apparatus, picture read apparatus, picture forming apparatus, program, and memorizing medium
JP4136860B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, and program
JP4194076B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, program, and storage medium
JP2000200344A (en) Image processor and recording medium where image processing program is recorded
JP2003204428A (en) Image correcting device, image reader, image forming apparatus program, and recording medium
JP4198613B2 (en) Image distortion correction apparatus, program, and storage medium
JP4145256B2 (en) Image distortion correction apparatus, program, and storage medium
JP4789221B2 (en) Image distortion correction apparatus, image reading apparatus, image forming apparatus, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041005

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20041005

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050620

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060901

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060905

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061106

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061128

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061130

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101215

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101215

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111215

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111215

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121215

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131215

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees