JP4931897B2 - Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium - Google Patents

Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium Download PDF

Info

Publication number
JP4931897B2
JP4931897B2 JP2008317590A JP2008317590A JP4931897B2 JP 4931897 B2 JP4931897 B2 JP 4931897B2 JP 2008317590 A JP2008317590 A JP 2008317590A JP 2008317590 A JP2008317590 A JP 2008317590A JP 4931897 B2 JP4931897 B2 JP 4931897B2
Authority
JP
Japan
Prior art keywords
image
document
inclination
image processing
correction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2008317590A
Other languages
Japanese (ja)
Other versions
JP2010141733A (en
Inventor
仁志 廣畑
淳寿 森本
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2008317590A priority Critical patent/JP4931897B2/en
Publication of JP2010141733A publication Critical patent/JP2010141733A/en
Application granted granted Critical
Publication of JP4931897B2 publication Critical patent/JP4931897B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、取得した原稿画像の原稿及び画像の傾きを検出して補正する画像処理方法、画像処理装置、該画像処理装置を備える画像形成装置、並びに前記画像処理装置を実現するためのコンピュータプログラム及び該コンピュータプログラムを記録した記録媒体に関する。   The present invention relates to an image processing method for detecting and correcting an original of an acquired original image and an image, an image processing apparatus, an image forming apparatus including the image processing apparatus, and a computer program for realizing the image processing apparatus And a recording medium on which the computer program is recorded.

複写機、複合機、スキャナ等で処理される原稿画像を画像データとして生成する場合、原稿を読み取るときに、原稿及び画像の傾きの補正、画像の整形、ノイズ除去等の画像処理がなされることが多い。これらの画像処理の中でも、原稿及び画像の傾きの補正は特に重要な処理として位置付けられており、その処理方法及び処理装置は、既に各種実現されている。   When a document image processed by a copier, multifunction device, scanner, or the like is generated as image data, image processing such as correction of document and image tilt, image shaping, and noise removal is performed when the document is read. There are many. Among these image processes, correction of document and image tilt is positioned as a particularly important process, and various processing methods and apparatuses have already been realized.

例えば、特許文献1では、原稿画像を読み込む画像処理装置において、読み込まれる原稿そのもの又は原稿上に形成された画像(以下、コンテンツという)が傾いている場合、原稿の向きに誤りがある場合等に、複数の傾き角度の候補を求め、夫々の傾き角度を表現した表示用画像を使用者に提示し、使用者が選択した表示用画像に基づいて傾き角度を決定して原稿及び画像の傾きを補正する技術が開示されている。
特開2006−87027号公報
For example, in Patent Document 1, in an image processing apparatus that reads an original image, when the original to be read or an image formed on the original (hereinafter referred to as content) is tilted, or when the orientation of the original is incorrect, etc. Obtaining a plurality of tilt angle candidates, presenting a display image representing each tilt angle to the user, determining the tilt angle based on the display image selected by the user, and determining the tilt of the document and the image. Techniques for correcting are disclosed.
JP 2006-87027 A

しかしながら、特許文献1に開示された技術では、原稿のエッジ情報、文字列情報等の複数種の情報が有する特徴量に基づいて傾き角度の候補が求められるため、傾きの補正を必要としない可能性が高い場合にも使用者に対して表示用画像が提示される。
例えば、原稿は傾いておらずコンテンツが傾いている場合、又は、原稿は傾いているがコンテンツは傾いていない場合にも、使用者に表示用画像が提示されて使用者に選択が求められるため、作業効率が低下する場合があった。
However, in the technique disclosed in Patent Document 1, a tilt angle candidate is obtained based on feature amounts of plural types of information such as document edge information and character string information, so that it is not necessary to correct the tilt. The display image is presented to the user even when the performance is high.
For example, when the document is not tilted and the content is tilted, or when the document is tilted but the content is not tilted, the display image is presented to the user and the user is required to select. In some cases, work efficiency may be reduced.

本発明は斯かる事情に鑑みてなされたものであり、その目的とするところは、検出した原稿及び画像の傾きに応じて表示用画像の生成又は非生成を切り替えることにより、原稿及び画像の傾きの補正を必要としない可能性が高い場合に表示用画像が表示されないようにして、作業効率の低下を抑止することが可能な画像処理装置、画像形成装置、画像処理方法、並びに前記画像処理装置を実現するためのコンピュータプログラム及び該コンピュータプログラムを記録した記録媒体を提供することにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to change the inclination of an original and an image by switching generation or non-generation of a display image according to the detected original and the inclination of the image. Image processing apparatus, image forming apparatus, image processing method, and image processing apparatus capable of preventing a display image from being displayed when there is a high possibility that correction of the image is not required, and suppressing a reduction in work efficiency A computer program for realizing the above and a recording medium on which the computer program is recorded are provided.

本発明に係る画像処理装置は、画像が形成された原稿が走査されて読み取られた原稿画像を取得する手段と、該手段が取得した原稿画像から前記走査の方向に対する原稿及び画像の傾きを夫々検出する検出手段と、該検出手段が検出した夫々の傾きを表現した複数の表示用画像を生成する生成手段と、該生成手段が生成した表示用画像の1つに表現された傾きに基づいて、前記原稿画像の原稿及び画像の傾きを補正する補正手段とを備える画像処理装置において、前記検出手段が検出した原稿及び画像の傾きの夫々が第1閾値より大きいか否かを判定する第1判定手段と、該第1判定手段が両方大きいと判定した場合、前記原稿及び画像の傾きの差が第2閾値より小さいか否かを判定する第2判定手段とを備え、該第2判定手段が小さいと判定した場合、又は前記第1判定手段が少なくとも一方は大きくないと判定した場合、前記生成手段は、前記表示用画像を生成しないようにしてあることを特徴とする。   An image processing apparatus according to the present invention acquires a document image obtained by scanning and reading a document on which an image is formed, and the document and the inclination of the image with respect to the scanning direction from the document image acquired by the unit. Detection means for detecting, generation means for generating a plurality of display images expressing the respective inclinations detected by the detection means, and the inclination expressed in one of the display images generated by the generation means And a correction unit that corrects the inclination of the original and the image of the original image, and a first determination unit that determines whether each of the inclination of the original and the image detected by the detection unit is greater than a first threshold value. And a second determination unit that determines whether or not the difference between the inclinations of the original and the image is smaller than a second threshold when both the first determination unit and the first determination unit are determined to be large. Is small If you, or when the first determination means determines that at least one is not large, the generation unit is characterized in that that is not to generate the display image.

本発明に係る画像処理装置は、前記第2判定手段が小さいと判定した場合、前記検出手段が検出した原稿又は画像の傾きに基づいて、前記補正手段が前記原稿画像の原稿及び画像の傾きを補正するようにしてあることを特徴とする。   In the image processing apparatus according to the present invention, when the second determination unit determines that the second determination unit is small, the correction unit determines the document image and the image inclination of the document image based on the document or image inclination detected by the detection unit. It is characterized by being corrected.

本発明に係る画像処理装置は、前記生成手段が生成した複数の表示用画像を表示する手段と、該手段が表示した表示用画像の選択を受け付ける手段とを備えることを特徴とする。   The image processing apparatus according to the present invention comprises means for displaying a plurality of display images generated by the generating means, and means for receiving selection of display images displayed by the means.

本発明に係る画像処理装置は、傾きの補正に係る設定を受け付ける手段を備え、該手段が前記設定を受け付けた場合、前記第1判定手段が少なくとも一方は大きいと判定したときに、前記生成手段が前記複数の表示用画像を生成するようにしてあることを特徴とする。   The image processing apparatus according to the present invention includes means for accepting a setting relating to inclination correction, and when the means accepts the setting, when the first judging means judges that at least one is larger, the generating means Is configured to generate the plurality of display images.

本発明に係る画像形成装置は、上述した発明の何れか1つに記載の画像処理装置と、該画像処理装置で傾きが補正された原稿画像に基づいて出力画像を形成する画像形成手段とを備えることを特徴とする。   An image forming apparatus according to the present invention includes the image processing apparatus according to any one of the above-described inventions, and an image forming unit that forms an output image based on a document image whose inclination is corrected by the image processing apparatus. It is characterized by providing.

本発明に係る画像処理方法は、画像が形成された原稿が走査されて読み取られた原稿画像を取得し、取得した原稿画像から前記走査の方向に対する原稿及び画像の傾きを夫々検出し、検出した夫々の傾きを表現した複数の表示用画像を生成ステップで生成し、該生成ステップで生成した表示用画像の1つに表現された傾きに基づいて、前記原稿画像の原稿及び画像の傾きを補正ステップで補正する画像処理方法において、検出した原稿及び画像の傾きの夫々が第1閾値より大きいか否かを判定する第1判定ステップと、該第1判定ステップで両方大きいと判定した場合、前記原稿及び画像の傾きの差が第2閾値より小さいか否かを判定する第2判定ステップとを含み、該第2判定ステップで小さいと判定した場合、又は前記第1判定ステップで少なくとも一方は大きくないと判定した場合、前記生成ステップで、前記表示用画像を生成しないようにしてあることを特徴とする。   The image processing method according to the present invention acquires a document image obtained by scanning and reading a document on which an image is formed, and detects and detects the document and the inclination of the image with respect to the scanning direction from the acquired document image. A plurality of display images expressing respective inclinations are generated in the generation step, and the original of the original image and the image inclination are corrected based on the inclination expressed in one of the display images generated in the generation step. In the image processing method to be corrected in steps, when it is determined in the first determination step that determines whether or not each of the detected document and the inclination of the image is larger than the first threshold, and in the first determination step, A second determination step for determining whether or not the difference between the inclinations of the document and the image is smaller than a second threshold value, and when the second determination step determines that the difference is small, or the first determination step If it is determined that at least one is not large, in the generating step, characterized in that you have not to generate the display image.

本発明に係る画像処理方法は、前記第2判定ステップで小さいと判定した場合、検出した原稿又は画像の傾きに基づいて、前記補正ステップで前記原稿画像の原稿及び画像の傾きを補正するようにしてあることを特徴とする。   In the image processing method according to the present invention, when it is determined in the second determination step that the image processing method is small, the document image and the image inclination of the document image are corrected in the correction step based on the detected document or image inclination. It is characterized by being.

本発明に係る画像処理方法は、前記生成ステップで生成した複数の表示用画像を表示するステップと、該ステップで表示した表示用画像の選択を受け付けるステップとを含むことを特徴とする。   The image processing method according to the present invention includes a step of displaying a plurality of display images generated in the generation step, and a step of accepting selection of the display image displayed in the step.

本発明に係る画像処理方法は、傾きの補正に係る設定を受け付けるステップを含み、該ステップで前記設定を受け付けた場合、前記第1判定ステップで少なくとも一方は大きいと判定したときに、前記生成ステップで前記複数の表示用画像を生成するようにしてあることを特徴とする。   The image processing method according to the present invention includes a step of accepting a setting relating to inclination correction, and when the setting is accepted at the step, when the at least one of the first judging steps is judged to be large, the generating step And a plurality of display images are generated.

本発明に係るコンピュータプログラムは、画像データを取得して画像処理するコンピュータに、画像が形成された原稿が走査されて読み取られた原稿画像から前記走査の方向に対する原稿及び画像の傾きを夫々検出させ、検出させた夫々の傾きを表現した複数の表示用画像を生成ステップで生成させ、該生成ステップで生成させた表示用画像の1つに表現された傾きに基づいて、前記原稿画像の原稿及び画像の傾きを補正ステップで補正させるコンピュータプログラムにおいて、コンピュータに、検出させた原稿及び画像の傾きの夫々が第1閾値より大きいか否かを判定させる第1判定ステップと、コンピュータが該第1判定ステップで両方大きいと判定した場合、コンピュータに、前記原稿及び画像の傾きの差が第2閾値より小さいか否かを判定させる第2判定ステップとを含み、コンピュータが該第2判定ステップで小さいと判定した場合、又は前記第1判定ステップで少なくとも一方は大きくないと判定した場合、コンピュータに、前記生成ステップで前記表示用画像を生成させないようにしてあることを特徴とする。   A computer program according to the present invention causes a computer that acquires image data and performs image processing to detect a document and an inclination of the image with respect to the scanning direction from a document image scanned and read from the document on which the image is formed. Generating a plurality of display images expressing the detected inclinations in the generation step, and based on the inclination expressed in one of the display images generated in the generation step, In the computer program for correcting the inclination of the image in the correction step, a first determination step for causing the computer to determine whether each of the detected document and the inclination of the image is larger than a first threshold, and the computer performs the first determination. If it is determined that both are large in the step, the computer determines whether the difference between the inclination of the document and the image is smaller than a second threshold value. A second determination step for determining, and when the computer determines that the second determination step is small, or when it is determined that at least one is not large in the first determination step, the computer displays the display in the generation step. It is characterized by not generating an image for use.

本発明に係るコンピュータプログラムは、コンピュータが前記第2判定ステップで小さいと判定した場合、コンピュータに、検出させた原稿又は画像の傾きに基づいて、前記補正ステップで前記原稿画像の原稿及び画像の傾きを補正させるようにしてあることを特徴とする。   The computer program according to the present invention, when the computer determines that it is small in the second determination step, based on the detected inclination of the original or image, the inclination of the original and the image of the original image in the correction step. It is characterized in that the correction is made.

本発明に係る記録媒体は、上述した発明の何れか1つに記載のコンピュータプログラムを記録してあることを特徴とする。   A recording medium according to the present invention records the computer program according to any one of the above-described inventions.

本発明にあっては、原稿画像について検出した原稿及び画像の傾きの少なくとも一方が第1閾値より大きくない場合、並びに夫々の傾きが第1閾値より大きく且つ夫々の傾きの差が第2閾値より小さい場合、選択されるべき表示用画像を生成しない。
これにより、原稿又は画像の傾きが第1閾値を越えるほど有意ではない場合、及び夫々の傾きが有意であり且つ略一致する場合、原稿及び画像の傾きの補正の要否が自明である可能性が高いものとして表示用画像そのものを生成することがない。このため、使用者に選択が求められることもない。
In the present invention, when at least one of the detected original and the image inclination of the original image is not larger than the first threshold, each inclination is larger than the first threshold, and the difference between the inclinations is larger than the second threshold. If it is smaller, the display image to be selected is not generated.
Thereby, when the inclination of the document or the image is not significant enough to exceed the first threshold, and when each inclination is significant and substantially coincides, the necessity of correcting the inclination of the document or the image may be obvious. Therefore, the display image itself is not generated. For this reason, the user is not required to make a selection.

本発明にあっては、原稿及び画像の傾きが第1閾値より大きく且つ夫々の傾きの差が第2閾値より小さいために表示用画像を生成しない場合、検出した原稿又は画像の傾きに基づいて原稿及び画像の傾き(即ち、画像が含まれる原稿全体の傾き)を補正する。
これにより、原稿及び画像の傾きが有意であり且つ夫々の傾きが略一致する場合、傾きの検出結果の信頼度が高いものとして自動的に原稿及び画像の傾きを補正する。この場合、補正すべき傾きは、例えば、検出した原稿の傾き、画像の傾き、又は原稿の傾きと画像の傾きとの平均値とする。
In the present invention, when the display image is not generated because the inclination of the original and the image is larger than the first threshold and the difference between the inclinations is smaller than the second threshold, the original and the image are detected based on the detected inclination. The inclination of the original and the image (that is, the inclination of the entire original including the image) is corrected.
As a result, when the inclinations of the original and the image are significant and the inclinations substantially coincide with each other, the inclination of the original and the image is automatically corrected on the assumption that the reliability of the inclination detection result is high. In this case, the inclination to be corrected is, for example, the detected original inclination, the image inclination, or the average value of the original inclination and the image inclination.

本発明にあっては、選択されるべき複数の表示用画像を表示し、該表示用画像のうちの1つを使用者が選択したときは、該選択を受け付ける。これにより、例えば、選択された表示用画像が補正されていた傾きの分だけ、元の原稿画像について原稿及び画像の傾きを補正する。   In the present invention, a plurality of display images to be selected are displayed, and when the user selects one of the display images, the selection is accepted. Thus, for example, the original and the image inclination are corrected with respect to the original original image by an amount corresponding to the inclination of the selected display image.

本発明にあっては、予め傾きの補正に係る設定を受け付けていた場合、検出した原稿及び画像の傾きの少なくとも一方が第1閾値より大きいときに複数の表示用画像を生成する。
これにより、例えば、高精度な補正を行うモードが設定されている場合、原稿又は画像の傾きが有意であるときに複数の表示用画像を積極的に表示して使用者に選択を求める。
In the present invention, when a setting related to tilt correction is received in advance, a plurality of display images are generated when at least one of the detected document and image tilt is larger than the first threshold value.
Thereby, for example, when a mode for performing highly accurate correction is set, a plurality of display images are actively displayed when the inclination of the document or the image is significant, and the user is requested to select.

本発明にあっては、上述した発明の何れか1つに記載の画像処理装置で傾きが補正された原稿画像に基づいて出力画像を形成する。
これにより、原稿及び画像の傾きの補正の要否が自明である可能性が高い場合に表示用画像が表示されない画像処理装置が、プリンタ装置、デジタル複合機等に適用される。
In the present invention, an output image is formed based on the original image whose inclination is corrected by the image processing apparatus according to any one of the above-described inventions.
Thus, an image processing apparatus in which a display image is not displayed when there is a high possibility that the necessity of correcting the inclination of the document and the image is obvious is applied to a printer apparatus, a digital multifunction peripheral, and the like.

本発明にあっては、記録媒体から読み出されたコンピュータプログラムによって、上述した画像処理装置の各手段が実現される。   In the present invention, each unit of the image processing apparatus described above is realized by a computer program read from a recording medium.

本発明によれば、原稿及び画像の傾きと、これらの傾きの差分値とに応じて、表示用画像の生成又は非生成を切り替える。
これにより、原稿又は画像の傾きが第1閾値を越えるほど有意ではない場合、及び夫々の傾きが有意であり且つ略一致する場合、原稿及び画像の傾きの補正の要否が自明である可能性が高いものとして表示用画像そのものを生成することがない。このため、使用者に選択が求められることもない。従って、原稿及び画像の傾きの補正を必要としない可能性が高い場合に表示用画像が表示されないようにして、作業効率の低下を抑止することが可能となる。
According to the present invention, the generation or non-generation of the display image is switched according to the inclinations of the document and the image and the difference value between these inclinations.
Thereby, when the inclination of the document or the image is not significant enough to exceed the first threshold, and when each inclination is significant and substantially coincides, the necessity of correcting the inclination of the document or the image may be obvious. Therefore, the display image itself is not generated. For this reason, the user is not required to make a selection. Therefore, when there is a high possibility that the correction of the inclination of the document and the image is not necessary, it is possible to prevent the display efficiency from being displayed and to prevent a reduction in work efficiency.

以下、本発明に係る画像処理装置及び画像形成装置を、コピア、プリンタ、ファクシミリ、scan to e-mail等の機能を備えるデジタルカラー複合機に、また、本発明に係る画像処理装置をカラー画像読取装置に夫々適用した実施の形態について詳述する。
(実施の形態1)
図1は、本発明の実施の形態1に係るデジタルカラー複合機の構成を示すブロック図である。図中100はデジタルカラー複合機であり、デジタルカラー複合機100は、CCD(Charge Coupled Device)ラインセンサを有しており原稿からの反射光を読み取ることにより得られたRGB(R:赤,G:緑,B:青)のアナログ信号を原稿画像として出力する画像入力装置5、及び前記アナログ信号を取得してCMYK(C:シアン,M:マゼンタ,Y:イエロー,K:黒)のデジタルカラー信号を出力する画像処理装置2を備える。
The image processing apparatus and the image forming apparatus according to the present invention are hereinafter referred to as a digital color multifunction peripheral having functions such as a copier, a printer, a facsimile, and a scan to e-mail, and the image processing apparatus according to the present invention is read as a color image. Embodiments applied to each apparatus will be described in detail.
(Embodiment 1)
FIG. 1 is a block diagram showing a configuration of a digital color multifunction peripheral according to Embodiment 1 of the present invention. In the figure, reference numeral 100 denotes a digital color multifunction peripheral. The digital color multifunction peripheral 100 has a CCD (Charge Coupled Device) line sensor, and RGB (R: red, G) obtained by reading reflected light from a document. : Green, B: blue) image input device 5 that outputs an analog signal as an original image, and CMYK (C: cyan, M: magenta, Y: yellow, K: black) digital color obtained by acquiring the analog signal. An image processing apparatus 2 that outputs a signal is provided.

デジタルカラー複合機100は、また、画像処理装置2から与えられたデジタルカラー信号に基づいて写真方式、インクジェット方式等の出力方式により記録紙上に出力画像を形成する画像出力装置3、LCD(Liquid Crystal Display)及びタッチパネルからなり各種表示を行う画像表示装置4、及び上述した各装置についての操作を受け付けるための操作パネル6を備える。
尚、画像出力装置3は、ディスプレイ等の表示装置であってもよい。また、画像表示装置4及び/又は操作パネル6を画像処理装置2に含めるようにしてもよい。
The digital color multifunction peripheral 100 also includes an image output device 3 that forms an output image on a recording sheet by an output method such as a photographic method or an ink jet method based on a digital color signal given from the image processing device 2, and an LCD (Liquid Crystal). And an image display device 4 including a touch panel and performing various displays, and an operation panel 6 for receiving operations on the above-described devices.
Note that the image output device 3 may be a display device such as a display. Further, the image display device 4 and / or the operation panel 6 may be included in the image processing device 2.

画像処理装置2は、画像入力装置5から入力されたアナログの原稿画像をデジタルの原稿画像に変換するA/D変換部20と、A/D変換部20から出力されたRGBのデジタル信号から、画像入力装置5の照明系、結像系及び撮像系で生じる各種の歪を除去するシェーディング補正部21と、階調補正(以下、ガンマ補正という)を行うための入力処理部22とを備える。入力処理部22から出力されたRGBのデジタル信号(原稿画像)は、一旦ハードディスク等の大容量記憶装置を有する送受信部/記憶部23への記憶及び送受信部/記憶部23からの読み出しが行われ、原稿検知部24を介して原稿補正部25へ与えられるようになっている。原稿検知部24及び原稿補正部25には、後述するプレビュー画像(表示用画像)を画像表示装置4へ出力する表示制御部26が接続されている。   The image processing device 2 includes an A / D conversion unit 20 that converts an analog document image input from the image input device 5 into a digital document image, and an RGB digital signal output from the A / D conversion unit 20. The image input apparatus 5 includes a shading correction unit 21 that removes various distortions generated in the illumination system, the imaging system, and the imaging system, and an input processing unit 22 that performs gradation correction (hereinafter referred to as gamma correction). The RGB digital signal (original image) output from the input processing unit 22 is temporarily stored in the transmission / reception unit / storage unit 23 having a large-capacity storage device such as a hard disk and read out from the transmission / reception unit / storage unit 23. The document correction unit 25 is supplied via the document detection unit 24. A display control unit 26 that outputs a preview image (display image) to be described later to the image display device 4 is connected to the document detection unit 24 and the document correction unit 25.

画像処理装置2は、また、原稿補正部25が出力したRGBのデジタル信号をRGBの補色に対応するCMY信号に変換すると共に色再現性を高める処理を行う色補正部27、及び色補正部27が出力したCMY信号に基づいてCMYKのデジタルカラー信号を生成する黒生成/下色除去部28を備える。黒生成/下色除去部28が出力するCMYKのデジタルカラー信号は、空間フィルタ部29で強調処理及び平滑化処理が行われた後に、階調再現処理が行われる中間調生成部30を介して画像出力装置3に与えられる。   The image processing apparatus 2 also converts the RGB digital signal output from the document correction unit 25 into a CMY signal corresponding to RGB complementary colors and performs a process for improving color reproducibility, and a color correction unit 27. Is provided with a black generation / undercolor removal unit 28 that generates a CMYK digital color signal based on the CMY signal output from the. The CMYK digital color signal output from the black generation / undercolor removal unit 28 is subjected to enhancement processing and smoothing processing in the spatial filter unit 29 and then to a halftone generation unit 30 in which gradation reproduction processing is performed. This is given to the image output device 3.

原稿補正部25が出力したRGBのデジタル信号は、また、領域分離部31に与えられる。領域分離部31は、前記デジタル信号に含まれる各画素が、黒文字、色文字、網点、印画紙写真(連続階調領域)等の領域のうち、どの領域に属しているかを示す領域識別信号を生成して黒生成/下色除去部28、空間フィルタ部29、及び中間調生成部30に与える。
尚、上述した画像処理装置2の各部は、CPU401、プログラム等の情報を記憶するROM402及び一時的に発生した情報を記憶するRAM403からなる制御部40と接続されており、制御部40のCPU401が、ROM402に予め格納されている制御プログラムに従って、これら各部の動作を制御するようにしてある。制御部40は、ASIC(Application Specific Integrated Circuit)又はDSP(Digital Signal Processor)で構成するようにしてもよい。
The RGB digital signals output from the document correction unit 25 are also supplied to the region separation unit 31. The area separation unit 31 is an area identification signal that indicates which area each pixel included in the digital signal belongs to among areas such as black characters, color characters, halftone dots, and photographic paper photographs (continuous tone areas). And is supplied to the black generation / undercolor removal unit 28, the spatial filter unit 29, and the halftone generation unit 30.
Each unit of the image processing apparatus 2 described above is connected to a control unit 40 including a CPU 401, a ROM 402 that stores information such as a program, and a RAM 403 that stores temporarily generated information. The operation of each unit is controlled according to a control program stored in the ROM 402 in advance. The control unit 40 may be configured by an application specific integrated circuit (ASIC) or a digital signal processor (DSP).

原稿補正部25が出力したRGBのデジタル信号は、上述したように色補正部27及び領域分離部31に与えられる他、PDFフォーマットに変換され、ネットワークインタフェース及び通信回線インタフェース(何れも図示せず)を介して外部接続装置及び通信回線へ夫々送信される。前記デジタル信号は、また、JPEG圧縮アルゴリズムに基づいてJPEGコードに圧縮し、送受信部/記憶部23にファイリングデータとして保存して管理するようにしてもよい。   The RGB digital signal output from the document correction unit 25 is supplied to the color correction unit 27 and the region separation unit 31 as described above, and is also converted into the PDF format, and a network interface and a communication line interface (both not shown). To the external connection device and the communication line, respectively. The digital signal may also be compressed into a JPEG code based on a JPEG compression algorithm, stored in the transmission / reception unit / storage unit 23 as filing data, and managed.

保存されたデータについて、コピー出力及びプリント出力が指示されたときは、送受信部/記憶部23の大容量記憶装置から目的のJPEGコードが読み出され、図示しないJPEG伸張部に与えられて複合化され、元のRGBのデジタル信号に変換される。
一方、イメージ送信が指示されたときは、送受信部/記憶部23の大容量記憶装置から目的のJPEGコードが読み出され、ネットワークインタフェース及び通信回線インタフェースを介して外部接続装置及び通信回線へ夫々送信される。
When copy output and print output are instructed for the stored data, the target JPEG code is read from the large-capacity storage device of the transmission / reception unit / storage unit 23 and is given to a JPEG decompression unit (not shown) to be combined. And converted into the original RGB digital signal.
On the other hand, when an image transmission is instructed, the target JPEG code is read from the mass storage device of the transmission / reception unit / storage unit 23 and transmitted to the external connection device and the communication line via the network interface and the communication line interface, respectively. Is done.

図2は、画像入力装置5の構成を示す模式的な正面断面図である。画像入力装置5は、上部筐体に構成される原稿搬送部51及び下部筐体に構成されるスキャナ部56からなる。   FIG. 2 is a schematic front sectional view showing the configuration of the image input device 5. The image input device 5 includes a document conveying unit 51 configured in an upper casing and a scanner unit 56 configured in a lower casing.

原稿搬送部51は、一側方から他側方に傾斜して配された原稿トレイ511にフェイスダウンで載置された原稿の検知を行う原稿セットセンサ514を備える。原稿トレイ511の下端部の上方には、原稿セットセンサ514に検知された原稿を1枚ずつ下流側へ呼び込むための呼込ローラ512が配されている。原稿トレイ511の下流側には、ガイドによって形成された搬送路Sを有し、該搬送路Sの上端部及び中間部には、後述する原稿台561の他端部の読取位置Rまで原稿を搬送するための搬送ローラ513a,513bが夫々配設されている。読取位置Rの他側方には、読み取った原稿の排出を行う原稿排出ローラ50、及び排出された原稿を検知する原稿排出センサ567が配されている。   The document transport unit 51 includes a document set sensor 514 that detects a document placed face down on a document tray 511 that is inclined from one side to the other. Above the lower end portion of the document tray 511, an attracting roller 512 is disposed for bringing the documents detected by the document setting sensor 514 one by one downstream. A conveyance path S formed by a guide is provided on the downstream side of the document tray 511, and a document is placed on the upper end and the middle of the conveyance path S up to a reading position R at the other end of the document table 561 described later. Conveying rollers 513a and 513b for conveying are respectively provided. On the other side of the reading position R, a document discharge roller 50 that discharges the read document and a document discharge sensor 567 that detects the discharged document are arranged.

搬送ローラ(整合ローラ)513bは、駆動軸に電磁クラッチ(図示せず)を有しており、駆動モータ(図示せず)による回転駆動力の伝達が制御されるようになっている。原稿が原稿トレイ511に載置されていない場合、搬送ローラ513bの駆動軸は、前記電磁クラッチにより拘束されて停止している。   The conveyance roller (alignment roller) 513b has an electromagnetic clutch (not shown) on the drive shaft, and the transmission of rotational driving force by a drive motor (not shown) is controlled. When the document is not placed on the document tray 511, the drive shaft of the transport roller 513b is restrained and stopped by the electromagnetic clutch.

原稿が原稿トレイ511に載置され、下流側へ搬送された原稿の先端部が、搬送ローラ513a及び搬送ローラ513bの間に配された給送タイミングセンサ515に接触し、該タイミングセンサ515が所定の信号を発した場合、前記電磁クラッチに内蔵された電磁石の励磁状態が所定のタイミングで切り替わる。これにより、搬送ローラ513bは、駆動軸の拘束が解除され、原稿を下流側へ搬送する方向への回転を開始する。この時、上流側から搬送された原稿の先端部は、既に搬送ローラ513bのニップ部に到達しており、搬送ローラ513bのニップ部は、原稿に所定の撓みを形成した後に原稿の先端部が搬送方向と略直角となるように整合させて下流側へ搬送するように動作する。   A document is placed on the document tray 511, and the leading edge of the document conveyed downstream contacts a feeding timing sensor 515 disposed between the conveyance roller 513a and the conveyance roller 513b. When the signal is issued, the excitation state of the electromagnet built in the electromagnetic clutch is switched at a predetermined timing. As a result, the transport roller 513b releases the restraint of the drive shaft and starts to rotate in the direction of transporting the document downstream. At this time, the leading end portion of the document conveyed from the upstream side has already reached the nip portion of the conveying roller 513b, and the nip portion of the conveying roller 513b is formed so that the leading end portion of the document is formed after a predetermined deflection is formed on the document. It operates so as to be transported to the downstream side with being aligned so as to be substantially perpendicular to the transport direction.

スキャナ部56は、原稿を水平に載置する載置台561の下面に沿って、原稿を読み取りながら両側方に平行移動する走査ユニット562,563を備える。走査ユニット563の一側方には、走査ユニット562が原稿を読み取った光を収束させるための結像レンズ564が立設されており、該結像レンズ564が収束させた光は、CCDラインセンサ565上に結像するようにしてある。スキャナ部56の他方の側部には、上述した搬送路Sから搬送され読取位置Rで読み取られて排出された原稿をフェイスダウンで載置するトレイ566が突設されている。   The scanner unit 56 includes scanning units 562 and 563 that translate in parallel to both sides while reading a document along the lower surface of the mounting table 561 for placing the document horizontally. On one side of the scanning unit 563, an imaging lens 564 is provided for converging the light read by the scanning unit 562. The light converged by the imaging lens 564 is a CCD line sensor. An image is formed on 565. On the other side of the scanner unit 56, a tray 566 is provided so as to project the document transported from the transport path S described above, read at the reading position R and discharged, face-down.

走査ユニット562は、原稿トレイ511から搬送された原稿及び原稿台561に載置された原稿に光を照射するための、例えばハロゲンランプからなる光源562aを有し、原稿からの反射光をミラー562aが他側方へ反射するようにしてある。走査ユニット563は、走査ユニット562のミラー562aが反射した光を下方及び一側方へ夫々反射するミラー563a及び563bを有し、ミラー563bが反射した光は、結像レンズ564を介してCCDラインセンサ565上に原稿像として結像するようになっている。CCDラインセンサ565は、結像した原稿像を光電変換してRGBのアナログ信号を生成する。   The scanning unit 562 includes a light source 562a composed of, for example, a halogen lamp for irradiating light on the original conveyed from the original tray 511 and the original placed on the original table 561, and reflects light reflected from the original in the mirror 562a. Is reflected to the other side. The scanning unit 563 includes mirrors 563a and 563b that reflect light reflected by the mirror 562a of the scanning unit 562 downward and to one side, respectively, and the light reflected by the mirror 563b passes through the imaging lens 564 to the CCD line. An image is formed on the sensor 565 as a document image. The CCD line sensor 565 photoelectrically converts the formed original image to generate RGB analog signals.

図3は、原稿の検知及び傾きの補正に係る要部構成を示すブロック図である。図3(a)の入力処理部22は、前段のシェーディング補正部21から与えられたRGBのデジタル信号(原稿画像)を送受信部/記憶部23の大容量記憶装置へ一旦引き渡し、その後前記大容量記憶装置から読み出したRGBのデジタル信号を原稿検知部24に与える。原稿検知部24は、図3(b)に示すように、原稿及び画像(コンテンツ)の傾きを夫々検出する原稿傾き検出部241及びコンテンツ傾き検出部242と、検出した原稿及びコンテンツの傾き並びに夫々の傾きの差について所定の閾値との大小関係を判定する傾き判定部243とで構成される。傾き判定部243での判定結果及び使用者による所定の設定の有無に応じて、使用者によるプレビュー画像の選択の要否が判定される。   FIG. 3 is a block diagram illustrating a configuration of a main part related to document detection and inclination correction. The input processing unit 22 in FIG. 3A temporarily delivers the RGB digital signal (original image) given from the previous shading correction unit 21 to the large-capacity storage device of the transmission / reception unit / storage unit 23, and then the large-capacity storage device. RGB digital signals read from the storage device are supplied to the document detection unit 24. As shown in FIG. 3B, the document detection unit 24 includes a document tilt detection unit 241 and a content tilt detection unit 242 that detect the tilt of the document and the image (content), respectively, and the detected tilt of the document and the content, and each of them. And an inclination determination unit 243 that determines a magnitude relationship between the difference in inclination and a predetermined threshold. Whether or not the user needs to select a preview image is determined according to the determination result of the inclination determination unit 243 and the presence or absence of a predetermined setting by the user.

プレビュー画像を表示させる場合、表示制御部26が、送受信部/記憶部23の大容量記憶装置に記憶されたRGBのデジタル信号を読み出し、必要に応じて解像度変換及びガンマ補正を施して複数のプレビュー画像を生成し、画像表示装置4に表示させる。このとき、原稿が天地方向に反転、あるいは±90度方向に回転している場合もあり得るため、プレビュー画像を回転させるボタンを操作パネルに設けてある(例えば、画像表示装置4の後述するLCD画面4aにタッチパネル式の操作ボタンを設ける)。これにより、使用者は、天地方向について補正する方向を決定することができる。尚、天地方向の補正情報は、原稿補正部25に与えられる。   When displaying a preview image, the display control unit 26 reads out the RGB digital signals stored in the large-capacity storage device of the transmission / reception unit / storage unit 23, performs resolution conversion and gamma correction as necessary, and performs a plurality of previews. An image is generated and displayed on the image display device 4. At this time, since the document may be reversed in the vertical direction or rotated in the direction of ± 90 degrees, a button for rotating the preview image is provided on the operation panel (for example, an LCD of the image display device 4 described later) A touch panel type operation button is provided on the screen 4a). As a result, the user can determine the direction to be corrected with respect to the vertical direction. The correction information for the vertical direction is given to the document correction unit 25.

その後、使用者が画像表示装置4のタッチパネルからプレビュー画像の一つを選択し、該選択が受け付けられた場合、選択されたプレビュー画像の傾きの補正情報が原稿補正部25に与えられる。原稿補正部25は、送受信部/記憶部23の大容量記憶装置に記憶されたRGBのデジタル信号を読み出し、前記補正情報に基づいて原稿及びコンテンツの傾き(即ち、コンテンツを含む原稿の傾き)及び原稿の天地方向の補正を行う。
尚、プレビュー画像の選択は、操作パネル6から行うようにしてもよい。
Thereafter, when the user selects one of the preview images from the touch panel of the image display device 4 and the selection is accepted, the correction information of the inclination of the selected preview image is given to the document correction unit 25. The document correction unit 25 reads RGB digital signals stored in the large-capacity storage device of the transmission / reception unit / storage unit 23, and based on the correction information, the document and content tilt (that is, the document tilt including the content) and Correct the vertical orientation of the original.
Note that the preview image may be selected from the operation panel 6.

上述した図3の各部の動作は、制御部40のCPU401が、ROM402に予め格納されている制御プログラムに従って制御するようにしてある。   3 is controlled by the CPU 401 of the control unit 40 in accordance with a control program stored in the ROM 402 in advance.

表示制御部26がプレビュー画像を生成する際に行う解像度変換は、画素を間引くことによって原稿画像全体が画像表示装置4の画面に表示されるようにするものである。画素を間引くときは、以下に示す補間を行う。
(a)ニアレストネイバー:補間すべき画素に最も近い画素の値、又は補間すべき画素に対して所定の位置関係にある既存の画素の値をその補間画素の値とする。
(b)バイリニア:補間すべき画素を囲む周囲4点の既存画素までの距離に比例するように重み付けした前記既存画素の値の平均値をその補間画素の値とする。
(c)バイキュービック:補間する画素を囲む4点にこれらを囲む12点を加えた16点の画素の値に基づいて補間演算を行った値をその補間画素の値とする。
The resolution conversion performed when the display control unit 26 generates a preview image is such that the entire document image is displayed on the screen of the image display device 4 by thinning out pixels. When thinning out pixels, the following interpolation is performed.
(A) Nearest neighbor: The value of the pixel closest to the pixel to be interpolated or the value of an existing pixel having a predetermined positional relationship with the pixel to be interpolated is used as the value of the interpolated pixel.
(B) Bilinear: The average value of the values of the existing pixels weighted so as to be proportional to the distance to the existing pixels around the surrounding four pixels surrounding the pixel to be interpolated is set as the value of the interpolation pixel.
(C) Bicubic: A value obtained by performing an interpolation operation based on the value of 16 pixels obtained by adding 12 points surrounding these to 4 points surrounding the pixel to be interpolated is set as the value of the interpolated pixel.

表示制御部26は、上述した画素の間引き及び補間を行った上で、原稿傾き検出部241及びコンテンツ傾き検出部242が夫々検出した原稿及びコンテンツの傾きの分だけ、コンテンツを含む原稿の傾きを夫々補正し、更に画像表示装置4の表示特性に基づいたガンマ補正を施してプレビュー画像を夫々生成する。表示制御部26は、また、検出された原稿及びコンテンツの傾きの夫々1/2だけコンテンツを含む原稿の傾きを補正したプレビュー画像も夫々生成する。   The display control unit 26 performs the above-described pixel decimation and interpolation, and then the inclination of the document including the content by the document inclination and the content inclination detected by the document inclination detection unit 241 and the content inclination detection unit 242 respectively. Each of the images is corrected, and further gamma correction based on the display characteristics of the image display device 4 is performed to generate a preview image. The display control unit 26 also generates a preview image in which the inclination of the original including the content is corrected by ½ of the detected original and the inclination of the content, respectively.

原稿補正部25は、使用者が選択したプレビュー画像の傾きの補正情報(即ち、原稿傾き検出部241及びコンテンツ傾き検出部242が夫々検出した傾きの値の何れか、又はこれらの傾きの1/2の値の何れか)に基づいて、以下の式(1)に示す座標変換によりコンテンツを含む原稿の傾きの補正を行う。但し、傾きを角度θで表し、傾きの補正は、原点を中心として座標を半時計回りにθだけ回転させるものとする。また、補正前の座標を(X、Y)、補正後の座標を(X´、Y´)とする。   The document correction unit 25 corrects the inclination information of the preview image selected by the user (that is, one of the inclination values detected by the document inclination detection unit 241 and the content inclination detection unit 242 or 1 / of these inclinations). Based on one of the values (2), the inclination of the document including the content is corrected by coordinate conversion shown in the following formula (1). However, the inclination is represented by an angle θ, and correction of the inclination is performed by rotating the coordinates counterclockwise by θ around the origin. Further, the coordinates before correction are (X, Y), and the coordinates after correction are (X ′, Y ′).

Figure 0004931897
Figure 0004931897

図4は、原稿及びコンテンツの傾き相互の関係を示す説明図であり、図5は、原稿及びコンテンツの傾きの状態に対する処理の例を示す説明図である。図4において、横軸βはコンテンツの傾きを表し、縦軸αは原稿の傾きを表す。α及びβの値で決まる領域のうち、α及びβが閾値Tより大きくない領域を(イ)、αが閾値Tより大きくない領域((イ)を除く)を(ロ)、βが閾値Tより大きくない領域((イ)を除く)を(ハ)、α及びβが閾値Tより大きい領域((イ)〜(ハ)を除く)であってαとβとの差が閾値Dより小さい領域を(ニ)、その他の領域を(ホ)で示す。以下、α及びβが図4の(イ)〜(ホ)の領域にある場合について、図5を用いて処理の内容を説明する。   FIG. 4 is an explanatory diagram showing the relationship between the inclination of the document and the content, and FIG. 5 is an explanatory diagram showing an example of processing for the state of the document and content tilt. In FIG. 4, the horizontal axis β represents the content inclination, and the vertical axis α represents the document inclination. Of the regions determined by the values of α and β, a region where α and β are not greater than the threshold T is (A), a region where α is not greater than the threshold T (excluding (A)) is (B), and β is the threshold T Regions that are not larger (except (A)) are (C), α and β are regions that are larger than the threshold T (except (A) to (C)), and the difference between α and β is smaller than the threshold D The area is indicated by (d) and the other areas are indicated by (e). Hereinafter, the contents of processing will be described with reference to FIG. 5 in the case where α and β are in the regions (a) to (e) in FIG. 4.

尚、α及びβが閾値Tより大きくない場合、夫々「α≒0」及び「β≒0」と表し、原稿及びコンテンツの傾きは夫々「無」(即ち有意ではない)と表す。また、α及びβが閾値Tより大きい場合、夫々「α≠0」及び「β≠0」と表し、原稿及びコンテンツの傾きは夫々「有」(即ち有意である)と表す。
更に、α及びβの差が閾値Dより小さい場合、「α≒β」と表し、α及びβの差が閾値Dより小さくない場合、「α≠β」と表すものとする。
When α and β are not larger than the threshold T, they are expressed as “α≈0” and “β≈0”, respectively, and the inclinations of the original and the content are respectively expressed as “none” (that is, not significant). Further, when α and β are larger than the threshold value T, they are represented as “α ≠ 0” and “β ≠ 0”, respectively, and the inclinations of the document and the content are represented as “present” (that is, significant), respectively.
Further, when the difference between α and β is smaller than the threshold D, it is expressed as “α≈β”, and when the difference between α and β is not smaller than the threshold D, it is expressed as “α ≠ β”.

(イ)α≒β≒0の場合
原稿の傾き(α)もコンテンツの傾き(β)も「無」の場合である。この場合、原稿及びコンテンツの傾きが「無」で一致しており、傾きの検出の信頼度が高いものと判定される。また、夫々の傾きが「無」であるため、コンテンツを含む原稿の傾きの補正は不要と判定される。従って、使用者による選択は不要であり、プレビュー画像は表示しない。これは、高精度な補正を行うモード(以下、高精度モードという)が操作パネル6から予め設定されているときについても同様である。
(A) When α≈β≈0 This is a case where neither the document inclination (α) nor the content inclination (β) is “None”. In this case, it is determined that the inclination of the document and the content is “none” and the reliability of the inclination detection is high. Further, since each inclination is “none”, it is determined that correction of the inclination of the document including the content is unnecessary. Therefore, selection by the user is unnecessary and a preview image is not displayed. This is the same when a mode for performing high-accuracy correction (hereinafter referred to as high-accuracy mode) is set in advance from the operation panel 6.

(ロ)α≒0、α≠β≠0の場合
原稿の傾きが「無」でコンテンツの傾きが「有」の場合である。この場合、原稿の傾きが「無」であるため、コンテンツを含む原稿の傾きの補正は不要と判定される。従って、使用者による選択は不要であり、プレビュー画像は表示しない。
尚、高精度モードが設定されているときは、傾きを補正していないプレビュー画像と、コンテンツを含む原稿の傾きをβ分及びβ/2分だけ夫々補正したプレビュー画像とを画像表示装置4に夫々表示して、使用者に選択を求める。
(B) When α≈0 and α ≠ β ≠ 0 This is the case where the document tilt is “none” and the content tilt is “present”. In this case, since the inclination of the document is “none”, it is determined that correction of the inclination of the document including the content is unnecessary. Therefore, selection by the user is unnecessary and a preview image is not displayed.
When the high-accuracy mode is set, a preview image that has not been corrected for inclination and a preview image that has been corrected for the inclination of the document including the content by β and β / 2 are displayed on the image display device 4. Display each one and ask the user for selection.

(ハ)β≒0、β≠α≠0の場合
原稿の傾きが「有」でコンテンツの傾きが「無」の場合であり、原稿画像には、傾きが「有」の原稿の中に、傾きが「無」のコンテンツが読み取られている。この場合、コンテンツの傾きが「無」であるため、コンテンツを含む原稿の傾きの補正は不要と判定される。従って、使用者による選択は不要であり、プレビュー画像は表示しない。
尚、高精度モードが設定されているときは、コンテンツを含む原稿の傾きをα分及びα/2分だけ夫々補正したプレビュー画像と、傾きを補正していないプレビュー画像とを画像表示装置4に夫々表示して、使用者に選択を求める。
(C) When β≈0, β ≠ α ≠ 0 This is the case where the document tilt is “Yes” and the content tilt is “None”. Content with a tilt of “none” has been read. In this case, since the content inclination is “none”, it is determined that correction of the inclination of the document including the content is unnecessary. Therefore, selection by the user is unnecessary and a preview image is not displayed.
When the high-accuracy mode is set, a preview image in which the inclination of the document including the content is corrected by α and α / 2 and a preview image in which the inclination is not corrected are displayed on the image display device 4. Display each one and ask the user for selection.

(ニ)α≒β≠0の場合
原稿及びコンテンツの傾きが夫々「有」で略等しい場合である。この場合、原稿及びコンテンツの傾きが略一致しており、傾きの検出の信頼度が高いものと判定される。従って、使用者による選択は不要であり、プレビュー画像は表示しない。コンテンツを含む原稿について補正すべき傾きは、α、β、又はαとβとの平均値とする。
尚、高精度モードが設定されているときは、コンテンツを含む原稿の傾きをα分及びα/2分だけ夫々補正したプレビュー画像と、β分及びβ/2分だけ夫々補正したプレビュー画像と、α及びβの平均値分並びに該平均値の半分だけ夫々補正したプレビュー画像とを画像表示装置4に夫々表示して、使用者に選択を求める。
(D) When α≈β ≠ 0 This is a case where the inclinations of the document and the content are “Yes” and substantially equal. In this case, it is determined that the inclinations of the document and the content are substantially the same, and the reliability of inclination detection is high. Therefore, selection by the user is unnecessary and a preview image is not displayed. The inclination to be corrected for the document including the content is α, β, or an average value of α and β.
When the high-accuracy mode is set, a preview image obtained by correcting the inclination of the document including the content by α and α / 2, a preview image obtained by correcting by β and β / 2 respectively, An average value of α and β and a preview image corrected by half of the average value are displayed on the image display device 4 respectively, and the user is asked to select.

(ホ)α≠β、α≠0、β≠0の場合
原稿及びコンテンツの傾きが夫々「有」ではあるが略等しいとは言えない場合であり、上述した(イ)〜(ニ)以外の場合に相当する。この場合、原稿及びコンテンツの傾きが「有」であるのに対し、夫々の傾きが一致しないため、傾きの検出の信頼度が低いものと判定される。従って、使用者に選択を求めるためにプレビュー画像を表示する。プレビュー画像は、コンテンツを含む原稿の傾きをα分及びα/2分だけ夫々補正したものと、β分及びβ/2分だけ夫々補正したものとを用意する。これは、高精度モードが設定されているときについても同様である。
(E) When α ≠ β, α ≠ 0, β ≠ 0 This is a case where the inclinations of the original and the content are “present” but cannot be said to be substantially equal, and other than the above (a) to (d) Corresponds to the case. In this case, since the inclinations of the document and the content are “Yes”, but the inclinations of each do not match, it is determined that the reliability of inclination detection is low. Therefore, a preview image is displayed to ask the user for selection. The preview image is prepared by correcting the inclination of the document including the content by α and α / 2, and by correcting by β and β / 2, respectively. This is the same when the high accuracy mode is set.

図6は、複数のプレビュー画像を生成して画像表示装置4に表示し、使用者に選択を求める例を示す説明図である。原稿画像における原稿及びコンテンツが、例えば上述した(ホ)のように夫々α及びβだけ傾いている場合、コンテンツを含む原稿の傾きをα分だけ補正したプレビュー画像P2及びβ分だけ補正したプレビュー画像P1の他、補正なしのプレビュー画像P0が生成される。尚、コンテンツを含む原稿の傾きをα/2分及びβ/2分だけ夫々補正したプレビュー画像も生成されるが、図6では省略してある。   FIG. 6 is an explanatory diagram illustrating an example in which a plurality of preview images are generated and displayed on the image display device 4 and the user is requested to select. For example, when the document and the content in the document image are inclined by α and β, respectively, as described above in (e), the preview image P2 in which the inclination of the document including the content is corrected by α and the preview image corrected by β. In addition to P1, an uncorrected preview image P0 is generated. A preview image in which the inclination of the document including the content is corrected by α / 2 and β / 2 is also generated, but is omitted in FIG.

その後、生成されたプレビュー画像P0,P1,P2が、夫々に対応させた「選択」ボタンと共に、「無補正」,「候補1」,「候補2」として画像表示装置4のLCD画面4aに夫々表示される。そして、使用者が、適切に傾きが補正されたプレビュー画像を視認し、視認したプレビュー画像に対応する選択ボタンを画像表示装置4のタッチパネルから押下することにより、原稿補正部25がコンテンツを含む原稿の傾きを補正すべきか否かと、補正すべき傾きの量(図6では、β又はα)とが決定される。   Thereafter, the generated preview images P0, P1, and P2 are displayed on the LCD screen 4a of the image display device 4 as “uncorrected”, “candidate 1”, and “candidate 2”, respectively, together with “select” buttons corresponding to the respective preview images. Is displayed. Then, the user visually recognizes the preview image whose inclination is appropriately corrected, and presses a selection button corresponding to the visually recognized preview image from the touch panel of the image display device 4 so that the document correcting unit 25 includes the document including the content. Whether or not to correct the inclination and the amount of inclination to be corrected (β or α in FIG. 6) are determined.

図7は、原稿の傾きを角度として検出する方法を示す説明図である。また、図8は、正接とその正接に対応する角度との関係を示す図表である。図7には、画像(コンテンツ)が形成された原稿が画像入力装置5で走査されて原稿画像として読み取られた状態が表されている。図中実線は、原稿端(エッジ)を表し、波線は、原稿が走査されたときの走査線に対応しており原稿画像を構成する水平方向のラインを表す。各ラインは夫々の画素値を有する複数の画素の集合であり、図の左側(又は上側)の画素は右側(又は下側)の画素よりも時間的/空間的に先に出現するように伝送/記憶される。
尚、ここでの画素値は、各画素のRGB夫々の値に対し、例えば以下の式(2)により重み付けして平均化した明るさを示すものとする。
FIG. 7 is an explanatory diagram showing a method for detecting the inclination of the document as an angle. FIG. 8 is a chart showing a relationship between a tangent and an angle corresponding to the tangent. FIG. 7 shows a state where a document on which an image (content) is formed is scanned by the image input device 5 and read as a document image. In the figure, the solid line represents the document edge (edge), and the wavy line corresponds to the scanning line when the document is scanned, and represents the horizontal line constituting the document image. Each line is a set of a plurality of pixels having respective pixel values, and the left (or upper) pixel in the figure is transmitted so that it appears earlier in time / space than the right (or lower) pixel. / Memorized.
Note that the pixel value here indicates the brightness obtained by weighting the RGB values of each pixel, for example, by weighting using the following equation (2).

明るさ=R×0.30+G×0.59+B×0.11・・・・・・・・・(2)   Brightness = R x 0.30 + G x 0.59 + B x 0.11 (2)

原稿の傾きの検出に先立ち、各ラインについて原稿端が検出される。原稿端は、夫々のラインにおいて、隣接画素の画素値が所定の閾値より大きくなるように変化する画素のうち、最も左側及び最も右側にある画素の座標として検出される。前記閾値は、例えば、画像入力装置5の原稿カバーが半開きで原稿が読み取られたときに、原稿以外の領域を原稿として検出しないように選ばれる。   Prior to detecting the inclination of the original, the end of the original is detected for each line. The document edge is detected as the coordinates of the leftmost pixel and the rightmost pixel among the pixels that change so that the pixel value of the adjacent pixel is larger than a predetermined threshold in each line. The threshold value is selected so that an area other than the original is not detected as an original when the original cover of the image input device 5 is opened halfway and the original is read.

原稿画像の全てのラインについて原稿端が検出された場合、検出された画素の座標のうち、最も上側、下側、左側、及び右側にある画素の座標を、夫々(EdgeTx,EdgeTy)、(EdgeBx,EdgeBy)、(EdgeLx,EdgeLy)、及び(EdgeRx,EdgeRy)とする。この場合、原稿画像の原稿の傾きは、以下の式(3)で示される正接に対応する角度θとして検出される。   When document edges are detected for all lines of the document image, the coordinates of the pixels on the uppermost, lower, left, and right sides of the detected pixel coordinates are (EdgeTx, EdgeTy), (EdgeBx), respectively. , EdgeBy), (EdgeLx, EdgeLy), and (EdgeRx, EdgeRy). In this case, the document inclination of the document image is detected as an angle θ corresponding to the tangent represented by the following equation (3).

tanθ=(EdgeTy−EdgeLy)/(EdgeTx−EdgeLx)・・・(3)   tan θ = (EdgeTy−EdgeLy) / (EdgeTx−EdgeLx) (3)

尚、tanθに対応する角度θの値は、図8から読み出すことができる。但し、角度θの値が45°を越えたときは、角度θを以下の式(4)により変換する。   Note that the value of the angle θ corresponding to tan θ can be read from FIG. However, when the value of the angle θ exceeds 45 °, the angle θ is converted by the following equation (4).

θ=θ−90・・・・・・・・・・・・・・・・・・・・(4)   θ = θ−90 (4)

以下では、コンテンツの傾きを検出する方法の例について説明する。
コンテンツの傾きの検出に先立ち、原稿画像の各画素の画素値が所定の閾値より大きいか否かによって、夫々の画素値を白・黒の2値化データに変換する。画素値が8ビットで表されるときは、例えば閾値を128とする。あるいは、注目する画素を中心とする複数の画素(例えば5×5の25個の画素)について、各画素の画素値の平均値を算出して閾値としてもよい。
Hereinafter, an example of a method for detecting the tilt of content will be described.
Prior to detecting the tilt of the content, each pixel value is converted into white / black binarized data depending on whether the pixel value of each pixel of the document image is larger than a predetermined threshold value. When the pixel value is represented by 8 bits, for example, the threshold value is set to 128. Alternatively, an average value of pixel values of each pixel may be calculated and used as a threshold for a plurality of pixels (for example, 25 pixels of 5 × 5) centering on the pixel of interest.

次いで、白・黒に2値化された画素値を有する各画素について、黒画素及び白画素の境界点を複数個抽出し、夫々の境界点の点列の座標(x,y)を求める。例えば、k個の文字列がコンテンツとして含まれている原稿の場合、前記文字列の各文字の上端における白・黒境界点の座標である(X1,Y1)〜(Xk,Yk)が点列の座標となる。そして、上記点列の座標から回帰曲線を求め、該回帰曲線の回帰係数bを算出する。   Next, for each pixel having a pixel value binarized into white and black, a plurality of boundary points between the black pixel and the white pixel are extracted, and the coordinates (x, y) of the point sequence of each boundary point are obtained. For example, in the case of a document including k character strings as contents, (X1, Y1) to (Xk, Yk), which are coordinates of white / black boundary points at the upper end of each character of the character string, are point strings. Coordinates. Then, a regression curve is obtained from the coordinates of the point sequence, and a regression coefficient b of the regression curve is calculated.

一般に2つの変量x及びyの関係を解析するのに用いられる解析係数bは、以下の式(5)で定義される。   In general, an analysis coefficient b used for analyzing the relationship between two variables x and y is defined by the following equation (5).

Figure 0004931897
Figure 0004931897

ここで、Sx及びSyは、夫々変量x及びyの残差平方和であり、Sxyは、xの残差及びyの残差の積の和である。従って、Sx、Sy及びSxyは、夫々以下の式(6)〜(8)によって表される。   Here, Sx and Sy are the residual sum of squares of the variables x and y, respectively, and Sxy is the sum of the product of the residual of x and the residual of y. Therefore, Sx, Sy, and Sxy are represented by the following equations (6) to (8), respectively.

Figure 0004931897
Figure 0004931897

このようにして算出した回帰係数bより、原稿画像のコンテンツの傾きは、以下の式(9)で示される正接に対応する角度θとして検出される。   From the regression coefficient b calculated in this way, the inclination of the content of the document image is detected as an angle θ corresponding to the tangent represented by the following equation (9).

tanθ=b・・・・・・・・・・・・・・・・・・・・(9)   tan θ = b (9)

尚、tanθに対応する角度θの値は、上述した原稿の傾きの角度の場合と同様に、図8から読み出すことができる。角度θの値が45°を越えたときに、上述した式(4)によりθを変換するのも、原稿の傾きの角度の場合と同様である。   Note that the value of the angle θ corresponding to tan θ can be read from FIG. 8 as in the case of the document inclination angle described above. When the value of the angle θ exceeds 45 °, θ is converted by the above-described equation (4) as in the case of the angle of inclination of the document.

図9は、コンテンツを含む原稿の傾きの補正の要否及びコンテンツを含む原稿が有する傾き量を決定するCPU401の処理手順を示すメインルーチンのフローチャートである。以下の処理は、ROM402に予め格納されている制御プログラムに従って、原稿画像を取得する都度実行される。   FIG. 9 is a flowchart of a main routine showing the processing procedure of the CPU 401 for determining the necessity of correcting the inclination of the document including the content and the amount of inclination of the document including the content. The following processing is executed each time a document image is acquired according to a control program stored in advance in the ROM 402.

尚、「閾値T」及び「閾値D」は、操作パネル6の図示しないテンキーより、使用者が予め入力することができる閾値であり、夫々の内容(例えば、1度及び0.2度)はRAM403に記憶される。前記閾値は、画像表示装置4に表示される設定画面に従って、図示しないマウス及びキーボードから入力するようにしてもよく、予め準備された複数の数値の中から選択するようにしてもよい。また「補正要否」及び「補正量」は、RAM403に記憶される変数であり、操作パネル6から予め設定される操作モードが「高精度モード」であるか否かもRAM403に記憶されるものとする。   Note that “threshold value T” and “threshold value D” are threshold values that can be input in advance by a user from a numeric keypad (not shown) of the operation panel 6, and their contents (for example, 1 degree and 0.2 degree) are as follows. Stored in the RAM 403. The threshold value may be input from a mouse and a keyboard (not shown) according to a setting screen displayed on the image display device 4, or may be selected from a plurality of numerical values prepared in advance. Further, “correction necessity” and “correction amount” are variables stored in the RAM 403, and whether or not the operation mode set in advance from the operation panel 6 is the “high accuracy mode” is also stored in the RAM 403. To do.

CPU401は、原稿の傾き(α)を検出する(ステップS11)と共に、コンテンツの傾き(β)を検出し(ステップS12)、αが「閾値T」より大きいか否かを判定する(ステップS13)。「閾値T」より大きくないと判定した場合(ステップS13:NO)、CPU401は、βが「閾値T」より大きいか否かを判定する(ステップS14)。「閾値T」より大きくないと判定した場合(ステップS14:NO)、CPU401は、「補正要否」に「0」を書き込み(ステップS15)、「傾き量」に「0」を書き込んで(ステップS16)処理を終了する。
このように、α及びβが共に「閾値T」より大きくない場合、コンテンツを含む原稿の傾きの補正は不要とする。
The CPU 401 detects the inclination (α) of the document (step S11), detects the inclination (β) of the content (step S12), and determines whether α is larger than the “threshold value T” (step S13). . When it is determined that the value is not greater than the “threshold value T” (step S13: NO), the CPU 401 determines whether β is greater than the “threshold value T” (step S14). When it is determined that it is not larger than “threshold value T” (step S14: NO), the CPU 401 writes “0” in “necessity of correction” (step S15) and “0” in “inclination amount” (step S15). S16) The process ends.
As described above, when both α and β are not larger than the “threshold value T”, it is not necessary to correct the inclination of the document including the content.

ステップS14でβが「閾値T」より大きいと判定した場合(ステップS14:YES)、CPU401は、設定されている操作モードが「高精度モード」であるか否かを判定する(ステップS17)。「高精度モード」でないと判定した場合(ステップS17:NO)、CPU401は、「補正要否」に「0」を書き込み(ステップS18)、「傾き量」に「α」を書き込んで(ステップS19)処理を終了する。
このように、βのみが「閾値T」より大きい場合、コンテンツを含む原稿の傾きの補正は不要とする。この場合、コンテンツを含む原稿が有する傾き量は、検出の信頼度が高いと考えられる原稿の傾き(α)とする。
When it is determined in step S14 that β is larger than “threshold value T” (step S14: YES), the CPU 401 determines whether or not the set operation mode is “high accuracy mode” (step S17). When it is determined that the mode is not “high accuracy mode” (step S17: NO), the CPU 401 writes “0” in “correction necessity” (step S18) and “α” in “inclination amount” (step S19). ) End the process.
As described above, when only β is larger than the “threshold value T”, it is not necessary to correct the inclination of the document including the content. In this case, the amount of inclination of the document including the content is assumed to be the inclination (α) of the document considered to have high detection reliability.

ステップS13でαが「閾値T」より大きいと判定した場合(ステップS13:YES)、CPU401は、βが「閾値T」より大きいか否かを判定する(ステップS20)。「閾値T」より大きくないと判定した場合(ステップS20:NO)、CPU401は、設定されている操作モードが「高精度モード」であるか否かを判定する(ステップS21)。「高精度モード」でないと判定した場合(ステップS21:NO)、CPU401は、「補正要否」に「0」を書き込み(ステップS22)、「傾き量」に「β」を書き込んで(ステップS23)処理を終了する。
このように、αのみが「閾値T」より大きい場合、コンテンツを含む原稿の傾きの補正は不要とする。この場合、コンテンツを含む原稿が有する傾き量は、検出の信頼度が高いと考えられるコンテンツの傾き(β)とする。
When it is determined in step S13 that α is larger than “threshold value T” (step S13: YES), the CPU 401 determines whether β is larger than “threshold value T” (step S20). When it is determined that it is not greater than the “threshold value T” (step S20: NO), the CPU 401 determines whether or not the set operation mode is the “high accuracy mode” (step S21). When it is determined that the mode is not “high accuracy mode” (step S21: NO), the CPU 401 writes “0” in “correction necessity” (step S22) and “β” in “inclination amount” (step S23). ) End the process.
As described above, when only α is larger than the “threshold value T”, it is not necessary to correct the inclination of the document including the content. In this case, the amount of inclination of the document including content is assumed to be the content inclination (β) considered to have high detection reliability.

ステップS20でβが「閾値T」より大きいと判定した場合(ステップS20:YES)、CPU401は、α及びβの差が「閾値D」より小さいか否かを判定する(ステップS24)。「閾値D」より小さいと判定した場合(ステップS24:YES)、CPU401は、設定されている操作モードが「高精度モード」であるか否かを判定する(ステップS25)。   When it is determined in step S20 that β is larger than “threshold value T” (step S20: YES), the CPU 401 determines whether or not the difference between α and β is smaller than “threshold value D” (step S24). When it is determined that it is smaller than “threshold D” (step S24: YES), the CPU 401 determines whether or not the set operation mode is “high accuracy mode” (step S25).

「高精度モード」でないと判定した場合(ステップS25:NO)、CPU401は、「補正要否」に「1」を書き込み(ステップS26)、「傾き量」に「α(又はβ)」を書き込んで(ステップS27)処理を終了する。
このように、α及びβが「閾値T」より大きく、夫々の差が「閾値D」より小さい場合、コンテンツを含む原稿の傾きの補正が必要であるものとし、コンテンツを含む原稿が有する傾き量はα(又はαに略等しいβ)とする。
尚、前記傾き量は、αとβとの平均値としてもよい。
If it is determined that the mode is not “high accuracy mode” (step S25: NO), the CPU 401 writes “1” in “necessity of correction” (step S26) and “α (or β)” in “inclination amount”. (Step S27), the process ends.
As described above, when α and β are larger than the “threshold value T” and the difference between them is smaller than the “threshold value D”, it is assumed that the inclination of the document including the content needs to be corrected, and the amount of inclination of the document including the content is included. Is α (or β substantially equal to α).
The inclination amount may be an average value of α and β.

ステップS17,S21,S25で「高精度モード」であると判定した場合(ステップS17:YES,ステップS21:YES,ステップS25:YES)、又はステップS24でα及びβの差が「閾値D」より小さくないと判定した場合(ステップS24:NO)、CPU401は、プレビューに係るサブルーチンを呼び出して実行し(ステップS28)、処理を終了する。
このように、α及びβが「閾値T」より大きく、夫々の差が「閾値D」より小さくない場合、無条件にプレビュー画像を表示させる。また、「高精度モード」が設定されており、且つα又はβが「閾値T」より大きい場合、積極的にプレビュー画像を表示させる。
When it is determined in steps S17, S21, and S25 that the mode is “high precision mode” (step S17: YES, step S21: YES, step S25: YES), or the difference between α and β is greater than “threshold D” in step S24. When it is determined that it is not small (step S24: NO), the CPU 401 calls and executes a subroutine related to the preview (step S28), and ends the process.
As described above, when α and β are larger than “threshold value T” and the difference between them is not smaller than “threshold value D”, the preview image is displayed unconditionally. Also, when the “high accuracy mode” is set and α or β is larger than the “threshold value T”, the preview image is positively displayed.

図10は、プレビューのサブルーチンに係るCPU401の処理手順を示すフローチャートである。
本サブルーチンがメインルーチンから呼び出された場合、CPU401は、コンテンツを含む原稿の傾きを補正しないプレビュー画像P0を生成する(ステップS31)。その後、CPU401は、αが「閾値T」より大きいか否かを判定する(ステップS32)。「閾値T」より大きいと判定した場合(ステップS32:YES)、CPU401は、コンテンツを含む原稿の傾きをα分だけ補正してプレビュー画像P2を生成する(ステップS33)。「閾値T」より大きくないと判定した場合(ステップS32:NO)、CPU401は、プレビュー画像P0をプレビュー画像P2にコピーして生成する(ステップS34)。
FIG. 10 is a flowchart showing the processing procedure of the CPU 401 relating to the preview subroutine.
When this subroutine is called from the main routine, the CPU 401 generates a preview image P0 that does not correct the inclination of the document including the content (step S31). Thereafter, the CPU 401 determines whether α is larger than the “threshold value T” (step S32). When it is determined that the value is larger than “threshold value T” (step S32: YES), the CPU 401 corrects the inclination of the document including the content by α and generates a preview image P2 (step S33). If it is determined that it is not larger than “threshold value T” (step S32: NO), the CPU 401 copies and generates the preview image P0 to the preview image P2 (step S34).

ステップS33,S34の処理を終えた場合、CPU401は、βが「閾値T」より大きいか否かを判定する(ステップS35)。「閾値T」より大きいと判定した場合(ステップS35:YES)、CPU401は、コンテンツを含む原稿の傾きをβ分だけ補正してプレビュー画像P1を生成する(ステップS36)。「閾値T」より大きくないと判定した場合(ステップS35:NO)、CPU401は、プレビュー画像P0をプレビュー画像P1にコピーして生成する(ステップS37)。   When the processes of steps S33 and S34 are completed, the CPU 401 determines whether or not β is larger than “threshold value T” (step S35). If it is determined that the value is larger than “threshold value T” (step S35: YES), the CPU 401 corrects the inclination of the document including the content by β and generates a preview image P1 (step S36). When it is determined that it is not larger than “threshold value T” (step S35: NO), the CPU 401 copies and generates the preview image P0 to the preview image P1 (step S37).

ステップS36,S37の処理を終えた場合、CPU401は、プレビュー画像P0,P1,P2を、夫々「無補正」,「候補1」,「候補2」の表示と共に画像表示装置4のLCD画面4aに表示させる(ステップS38)。その後、CPU401は、「無補正」が選択されたか否かを判定し(ステップS39)、選択されたと判定した場合(ステップS39:YES)、「補正要否」に「0」を書き込み(ステップS40)、更に「傾き量」に「0」を書き込み(ステップS41)、サブルーチンの処理を終了してメインルーチンへリターンする。   When the processes in steps S36 and S37 are completed, the CPU 401 displays the preview images P0, P1, and P2 on the LCD screen 4a of the image display device 4 together with the display of “no correction”, “candidate 1”, and “candidate 2”, respectively. It is displayed (step S38). Thereafter, the CPU 401 determines whether or not “no correction” is selected (step S39), and when it is determined that it is selected (step S39: YES), “0” is written to “necessity of correction” (step S40). Further, “0” is written in “inclination amount” (step S41), the subroutine processing is terminated, and the process returns to the main routine.

「無補正」が選択されていないと判定した場合(ステップS39:NO)、CPU401は、「候補1」が選択されたか否かを判定し(ステップS42)、選択されたと判定した場合(ステップS42:YES)、「補正要否」に「1」を書き込み(ステップS43)、更に「傾き量」に「β」を書き込み(ステップS44)、サブルーチンの処理を終了してメインルーチンへリターンする。
このように、「候補1」が選択されたときは、コンテンツを含む原稿の傾きの補正が必要であるものとし、コンテンツを含む原稿が有する傾き量はβとする。
When it is determined that “no correction” is not selected (step S39: NO), the CPU 401 determines whether “candidate 1” is selected (step S42), and when it is determined that it is selected (step S42). : YES), “1” is written in “necessity of correction” (step S43), “β” is further written in “inclination amount” (step S44), the subroutine processing is terminated, and the process returns to the main routine.
As described above, when “candidate 1” is selected, it is necessary to correct the inclination of the document including the content, and the inclination amount of the document including the content is β.

「候補1」が選択されていないと判定した場合(ステップS42:NO)、CPU401は、「候補2」が選択されたか否かを判定し(ステップS45)、選択されていないと判定した場合(ステップS45:NO)、CPU401は、処理をステップS39に戻す。選択されたと判定した場合(ステップS45:YES)、「補正要否」に「1」を書き込み(ステップS46)、更に「傾き量」に「α」を書き込み(ステップS47)、サブルーチンの処理を終了してメインルーチンへリターンする。
このように、「候補2」が選択されたときは、コンテンツを含む原稿の傾きの補正が必要であるものとし、コンテンツを含む原稿が有する傾き量はαとする。
When it is determined that “candidate 1” is not selected (step S42: NO), the CPU 401 determines whether or not “candidate 2” is selected (step S45), and when it is determined that it is not selected (step S45). Step S45: NO), the CPU 401 returns the process to Step S39. If it is determined that it has been selected (step S45: YES), “1” is written in “necessity of correction” (step S46), “α” is further written in “inclination amount” (step S47), and the subroutine processing ends. And return to the main routine.
Thus, when “candidate 2” is selected, it is necessary to correct the inclination of the document including the content, and the amount of inclination of the document including the content is α.

尚、上述したプレビューに係るサブルーチンにおいて、コンテンツを含む原稿の傾きをα/2分及びβ/2分だけ夫々補正したプレビュー画像を生成及び表示させる場合は、ステップS35及びステップS38の前に夫々のプレビュー画像を生成するステップを挿入し、ステップS38の中で夫々のプレビュー画像を併せて表示させればよい。また、ステップS39,S42,S45が形成するループの中に、夫々のプレビュー画像に対応する候補が選択されたか否かを判定するステップを挿入し、選択されたと判定した場合、「補正要否」に「1」を書き込み、「傾き量」にα/2及びβ/2を夫々書き込めばよい。   Note that, in the above-described subroutine relating to the preview, when generating and displaying a preview image in which the inclination of the document including the content is corrected by α / 2 and β / 2, respectively, before step S35 and step S38, respectively. A step of generating a preview image may be inserted, and the respective preview images may be displayed together in step S38. Further, a step of determining whether or not a candidate corresponding to each preview image has been selected is inserted into the loop formed by steps S39, S42, and S45. “1” may be written in “α”, and α / 2 and β / 2 may be written in “inclination amount”.

以上のように本実施の形態1によれば、原稿画像について検出した原稿の傾き(α)及びコンテンツの傾き(β)の少なくとも一方が閾値Tより大きくない場合と、α及びβの夫々が閾値Tより大きく且つα及びβの差が閾値Dより小さい場合とでは、選択されるべきプレビュー画像を生成しない。
これにより、α又はβが閾値Tを越えるほど有意でない場合と、α及びβが有意であり且つ略一致する場合とでは、コンテンツを含む原稿の傾きの補正の要否が自明である可能性が高いものとしてプレビュー画像そのものを生成することがない。このため、使用者に選択が求められることもない。従って、コンテンツを含む原稿の傾きの補正を必要としない可能性が高い場合に表示用画像が表示されないようにして、作業効率の低下を抑止することが可能となる。
As described above, according to the first embodiment, when at least one of the document inclination (α) and the content inclination (β) detected for the document image is not larger than the threshold T, each of α and β is the threshold. When the difference is larger than T and the difference between α and β is smaller than the threshold D, the preview image to be selected is not generated.
As a result, whether α or β is not significant enough to exceed the threshold value T and whether α and β are significant and substantially coincide with each other may be obvious. The preview image itself is not generated as high. For this reason, the user is not required to make a selection. Therefore, when there is a high possibility that the correction of the inclination of the document including the content is not necessary, it is possible to prevent the display image from being displayed and to prevent a reduction in work efficiency.

また、α及びβが閾値Tより大きく且つα及びβの差が閾値Dより小さいためにプレビュー画像を生成しない場合、コンテンツを含む原稿の傾きをα、β、又はαとβとの平均値分だけ補正する。
従って、α及びβが有意であり且つα及びβが略一致する場合、傾きの検出結果の信頼度が高いものとして自動的にコンテンツを含む原稿の傾きを補正することが可能となる。
If the preview image is not generated because α and β are larger than the threshold value T and the difference between α and β is smaller than the threshold value D, the inclination of the document including the content is set to α, β, or an average value of α and β. Only correct.
Therefore, when α and β are significant and α and β substantially match, it is possible to automatically correct the inclination of the document including the content on the assumption that the reliability of the inclination detection result is high.

更にまた、表示した複数のプレビュー画像のうちの1つを使用者が選択したときに該選択を受け付け、選択されたプレビュー画像が補正されていた傾きの分だけ、元の原稿画像についてコンテンツを含む原稿の傾きを補正する。
従って、選択されたプレビュー画像に表現された傾きに基づいて、原稿及び画像の傾きを補正することが可能となる。
Furthermore, when the user selects one of the displayed preview images, the selection is accepted, and the original document image includes the content corresponding to the corrected inclination of the selected preview image. Correct the skew of the original.
Therefore, it is possible to correct the inclination of the document and the image based on the inclination expressed in the selected preview image.

更にまた、予め高精度モードの設定を受け付けていた場合、α及びβの少なくとも一方が閾値Tより大きいときに複数のプレビュー画像を生成する。
従って、高精度モードが設定されている場合は、α又はβが有意であるときに複数のプレビュー画像を積極的に表示して使用者に選択を求めることが可能となる。
Furthermore, when the setting of the high accuracy mode has been received in advance, a plurality of preview images are generated when at least one of α and β is greater than the threshold value T.
Therefore, when the high-accuracy mode is set, it is possible to actively display a plurality of preview images and to ask the user for selection when α or β is significant.

更にまた、画像処理装置で原稿及び画像の傾きが補正された原稿画像に基づいて出力画像を形成する。
従って、コンテンツを含む原稿の傾きの補正の要否が自明である可能性が高い場合にプレビュー画像を生成しない画像処理装置をプリンタ装置、デジタル複合機等に適用することが可能となる。
Furthermore, an output image is formed based on the document and the document image in which the inclination of the image is corrected by the image processing apparatus.
Therefore, an image processing apparatus that does not generate a preview image can be applied to a printer apparatus, a digital multi-function peripheral, or the like when it is highly likely that the correction of the inclination of the document including content is obvious.

(実施の形態2)
実施の形態1は、本発明に係る画像処理装置及び画像形成装置をデジタルカラー複合機に適用した形態であるのに対し、実施の形態2は、本発明に係る画像処理装置をカラー画像読取装置に適用した形態である。
図11は、本発明の実施の形態2に係るカラー画像読取装置の構成を示すブロック図である。図中200はカラー画像読取装置であり、カラー画像読取装置200は、RGBのアナログ信号を原稿画像として出力する画像入力装置5、前記アナログ信号を取得してRGBのデジタル信号を出力する画像処理装置2a、及びこれらの装置に対する操作を受け付けるための操作パネル6aを備える。
尚、操作パネル6aを画像処理装置2aに含めるようにしてもよい。
(Embodiment 2)
The first embodiment is an embodiment in which the image processing apparatus and the image forming apparatus according to the present invention are applied to a digital color multifunction peripheral, whereas the second embodiment is a color image reading apparatus in which the image processing apparatus according to the present invention is applied. It is a form applied to.
FIG. 11 is a block diagram showing a configuration of a color image reading apparatus according to Embodiment 2 of the present invention. In the figure, reference numeral 200 denotes a color image reading device. The color image reading device 200 is an image input device 5 that outputs RGB analog signals as a document image, and an image processing device that acquires the analog signals and outputs RGB digital signals. 2a and an operation panel 6a for receiving operations on these devices.
Note that the operation panel 6a may be included in the image processing apparatus 2a.

画像処理装置2aは、画像入力装置5から入力されたアナログの原稿画像をデジタルの原稿画像に変換するA/D変換部20と、A/D変換部20から出力されたRGBのデジタル信号から、画像入力装置5の照明系、結像系及び撮像系で生じる各種の歪を除去するシェーディング補正部21と、ガンマ補正を行うための入力処理部22とを備える。入力処理部22から出力されたRGBのデジタル信号(原稿画像)は、ハードディスク等の大容量記憶装置を有する送受信部/記憶部23への記憶及び送受信部/記憶部23からの読み出しが行われ、原稿検知部24を介して原稿補正部25へ与えられるようになっている。   The image processing device 2a includes an A / D conversion unit 20 that converts an analog document image input from the image input device 5 into a digital document image, and an RGB digital signal output from the A / D conversion unit 20. The image input apparatus 5 includes a shading correction unit 21 that removes various distortions generated in the illumination system, the imaging system, and the imaging system, and an input processing unit 22 that performs gamma correction. The RGB digital signal (original image) output from the input processing unit 22 is stored in the transmission / reception unit / storage unit 23 having a large-capacity storage device such as a hard disk, and is read from the transmission / reception unit / storage unit 23. The data is supplied to the document correction unit 25 via the document detection unit 24.

原稿検知部24及び原稿補正部25には、プレビュー画像(表示用画像)を、例えばLCDからなる外部のディスプレイへ出力する表示制御部26が接続されている。また、上述した画像処理装置2aの各部は、CPU401、プログラム等の情報を記憶するROM402及び一時的に発生した情報を記憶するRAM403からなる制御部40と接続されており、制御部40のCPU401が、ROM402に予め格納されている制御プログラムに従って、これら各部の動作を制御するようにしてある。
尚、前記ディスプレイは、カラー画像読取装置200の本体に設置するようにしてもよい。
A display control unit 26 that outputs a preview image (display image) to an external display such as an LCD is connected to the document detection unit 24 and the document correction unit 25. Each unit of the above-described image processing apparatus 2a is connected to a control unit 40 including a CPU 401, a ROM 402 that stores information such as a program, and a RAM 403 that stores temporarily generated information. The operation of each unit is controlled according to a control program stored in the ROM 402 in advance.
The display may be installed in the main body of the color image reading apparatus 200.

原稿補正部25が出力したRGBのデジタル信号は、図示しないデバイスインタフェース及びネットワークインタフェースを介して外部のコンピュータ、ハードディスク、及びイントラネット、インターネット等のネットワークへ夫々送出される。
その他、実施の形態1に対応する箇所には同様の符号を付して、その詳細な説明を省略する。
The RGB digital signals output from the document correction unit 25 are sent to an external computer, a hard disk, and a network such as an intranet or the Internet via a device interface and a network interface (not shown).
In addition, the same code | symbol is attached | subjected to the location corresponding to Embodiment 1, and the detailed description is abbreviate | omitted.

以上のように本実施の形態2によれば、読み取った原稿画像について画像処理装置で原稿及び画像の傾きを補正する。
従って、コンテンツを含む原稿の傾きの補正の要否が自明である可能性が高い場合にプレビュー画像を生成しない画像処理装置を画像読取装置に適用することが可能となる。
As described above, according to the second embodiment, the inclination of the original and the image is corrected by the image processing apparatus for the read original image.
Therefore, an image processing apparatus that does not generate a preview image can be applied to the image reading apparatus when it is highly likely that the correction of the inclination of the document including the content is obvious.

本発明は、コンピュータに実行させるためのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)を記録したコンピュータ読み取り可能な記録媒体に、上述した原稿及び画像の傾きの判定結果に応じて表示用画像の生成又は非生成を切り替える画像処理方法を記録したものとすることも可能である。これにより、原稿及び画像の傾きの判定結果に応じて表示用画像の生成又は非生成を切り替える画像処理方法を行うプログラムを記録した記録媒体を持ち運び自在に提供することができる。   The present invention provides a computer-readable recording medium on which program code (executable program, intermediate code program, source program) to be executed by a computer is recorded in accordance with the above-described original and image inclination determination results. It is also possible to record an image processing method for switching between image generation and non-generation. Accordingly, it is possible to provide a portable recording medium on which a program for performing an image processing method for switching between generation and non-generation of a display image according to the determination result of the document and the image inclination is portable.

記録媒体としては、例えばROMのようなプログラムメディアであってもよく、外部記憶装置として設けられた図示しないプログラム読取装置に記録媒体を挿入することで読み取り可能なプログラムメディアであってもよい。何れの場合においても、格納されているプログラムコードは、CPUにアクセスされて実行される構成であってもよく、プログラムコードが読み出され、例えばRAMのプログラム記憶エリアにダウンロードされて実行される構成であってもよい。このダウンロード用のプログラムは予め本体装置に格納されているものとする。   The recording medium may be, for example, a program medium such as a ROM, or a program medium that can be read by inserting the recording medium into a program reading device (not shown) provided as an external storage device. In any case, the stored program code may be configured to be accessed and executed by the CPU, or the program code may be read and downloaded to the program storage area of the RAM and executed. It may be. It is assumed that this download program is stored in the main device in advance.

前記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープ、カセットテープ等のテープ系、フロッピー(登録商標)ディスク及びハードディスクに代表される磁気ディスク、CD−ROM/MO/MD/DVDに代表される光ディスク等のディスク系、ICカード(メモリカードを含む)、光カード等のカード系、及びマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等の半導体メモリ系の媒体に固定的にプログラムコードを担持するものであってもよい。   The program medium is a recording medium configured to be separable from the main body, such as a magnetic tape, a tape system such as a cassette tape, a magnetic disk represented by a floppy (registered trademark) disk and a hard disk, CD-ROM / MO / MD. / Disk systems such as optical disks represented by DVD, IC cards (including memory cards), card systems such as optical cards, mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory) The program code may be fixedly carried on a semiconductor memory medium such as a flash ROM.

前記プログラムメディアは、また、インターネットを含む通信ネットワークからプログラムコードがダウンロード可能となるようにプログラムコードが流動的に担持された媒体であってもよい。このように通信ネットワークからプログラムコードをダウンロードする場合、ダウンロード用のプログラムは、予め本体装置に格納されるものでもよく、他の記録媒体からインストールされるものであってもよい。尚、本発明は、前記プログラムコードが搬送波に埋め込まれて電子的に伝送されるコンピュータデータ信号の形態でも実現され得る。     The program medium may be a medium in which the program code is fluidly supported so that the program code can be downloaded from a communication network including the Internet. When downloading the program code from the communication network in this way, the download program may be stored in the main device in advance or may be installed from another recording medium. The present invention can also be realized in the form of a computer data signal in which the program code is embedded in a carrier wave and transmitted electronically.

前記記録媒体は、例えば、デジタルカラー複合機及びコンピュータシステムに備えられるプログラム読取装置によって読み取られ、CPUによって上述した画像処理方法が実行される。コンピュータシステムは、フラットベッドスキャナ、フィルムスキャナ、デジタルカメラ等の画像入力装置、所定のプログラムがロードされることにより上記画像処理方法など様々な処理が行われるコンピュータ、コンピュータの処理結果を表示するCRTディスプレイ、液晶ディスプレイ等の画像表示装置、及びコンピュータの処理結果を紙等に出力するプリンタより構成される。更には、ネットワークを介してサーバー等に接続するためのネットワークカード、モデム等の通信手段が備えられる。   The recording medium is read by, for example, a program reading device provided in a digital color multifunction peripheral and a computer system, and the above-described image processing method is executed by a CPU. The computer system includes an image input device such as a flatbed scanner, a film scanner, and a digital camera, a computer that performs various processes such as the image processing method by loading a predetermined program, and a CRT display that displays the processing results of the computer. An image display device such as a liquid crystal display, and a printer that outputs the processing results of the computer to paper or the like. Furthermore, a communication means such as a network card and a modem for connecting to a server or the like via a network is provided.

本発明の実施の形態1に係るデジタルカラー複合機の構成を示すブロック図である。1 is a block diagram illustrating a configuration of a digital color multifunction peripheral according to a first embodiment of the present invention. 画像入力装置の構成を示す模式的な正面断面図である。It is a typical front sectional view showing the composition of an image input device. 原稿の検知及び傾きの補正に係る要部構成を示すブロック図である。FIG. 3 is a block diagram showing a main part configuration related to document detection and inclination correction. 原稿及びコンテンツの傾き相互の関係を示す説明図である。It is explanatory drawing which shows the relationship between the inclination of a document and content. 原稿及びコンテンツの傾きの状態に対する処理の例を示す説明図である。It is explanatory drawing which shows the example of the process with respect to the state of the inclination of a document and content. 複数のプレビュー画像を生成して画像表示装置に表示し、使用者に選択を求める例を示す説明図である。It is explanatory drawing which shows the example which produces | generates a some preview image, displays it on an image display apparatus, and asks a user for selection. 原稿の傾きを角度として検出する方法を示す説明図である。It is explanatory drawing which shows the method of detecting the inclination of a document as an angle. 正接とその正接に対応する角度との関係を示す図表である。It is a graph which shows the relationship between a tangent and the angle corresponding to the tangent. コンテンツを含む原稿の傾きの補正の要否及びコンテンツを含む原稿が有する傾き量を決定するCPUの処理手順を示すメインルーチンのフローチャートである。6 is a flowchart of a main routine showing a CPU processing procedure for determining whether or not the inclination of a document including content needs to be corrected and the amount of inclination of the document including the content. プレビューのサブルーチンに係るCPUの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of CPU which concerns on the subroutine of a preview. 本発明の実施の形態2に係るカラー画像読取装置の構成を示すブロック図である。It is a block diagram which shows the structure of the color image reading apparatus which concerns on Embodiment 2 of this invention.

符号の説明Explanation of symbols

100 デジタルカラー複合機(画像形成装置)
200 カラー画像読取装置
2、2a 画像処理装置
20 A/D変換部(原稿画像を取得する手段)
24 原稿検知部
241 原稿傾き検出部(検出手段)
242 コンテンツ傾き検出部(検出手段)
243 傾き判定部(第1判定手段、第2判定手段)
25 原稿補正部(補正手段)
26 表示制御部(生成手段)
3 画像出力装置(画像形成手段)
4 画像表示装置(表示用画像を表示する手段、選択を受け付ける手段)
4a LCD画面
40 制御部
401 CPU
402 ROM
403 RAM
5 画像入力装置
6,6a 操作パネル(設定を受け付ける手段)
100 Digital color MFP (image forming device)
200 Color Image Reading Device 2, 2a Image Processing Device 20 A / D Conversion Unit (Means for Acquiring Document Image)
24 Document detection unit 241 Document tilt detection unit (detection means)
242 Content inclination detection unit (detection means)
243 Inclination determination unit (first determination means, second determination means)
25 Document correction section (correction means)
26 Display control unit (generation means)
3 Image output device (image forming means)
4. Image display device (means for displaying display image, means for accepting selection)
4a LCD screen 40 Control unit 401 CPU
402 ROM
403 RAM
5 Image input device 6, 6a Operation panel (means for accepting settings)

Claims (12)

画像が形成された原稿が走査されて読み取られた原稿画像を取得する手段と、該手段が取得した原稿画像から前記走査の方向に対する原稿及び画像の傾きを夫々検出する検出手段と、該検出手段が検出した夫々の傾きを表現した複数の表示用画像を生成する生成手段と、該生成手段が生成した表示用画像の1つに表現された傾きに基づいて、前記原稿画像の原稿及び画像の傾きを補正する補正手段とを備える画像処理装置において、
前記検出手段が検出した原稿及び画像の傾きの夫々が第1閾値より大きいか否かを判定する第1判定手段と、
該第1判定手段が両方大きいと判定した場合、前記原稿及び画像の傾きの差が第2閾値より小さいか否かを判定する第2判定手段とを備え、
該第2判定手段が小さいと判定した場合、又は前記第1判定手段が少なくとも一方は大きくないと判定した場合、前記生成手段は、前記表示用画像を生成しないようにしてあること
を特徴とする画像処理装置。
Means for acquiring a document image scanned and read from a document on which an image is formed, detection means for detecting the document and the inclination of the image with respect to the scanning direction from the document image acquired by the means, and the detection means Generating means for generating a plurality of display images representing the respective inclinations detected by the image forming means, and the original of the original image and the image based on the inclination expressed in one of the display images generated by the generating means. In an image processing apparatus comprising correction means for correcting inclination,
First determination means for determining whether each of the document and the inclination of the image detected by the detection means is greater than a first threshold;
Second determination means for determining whether or not the difference between the inclinations of the original and the image is smaller than a second threshold when the first determination means determines that both are large,
When it is determined that the second determination unit is small, or when the first determination unit determines that at least one is not large, the generation unit is configured not to generate the display image. Image processing device.
前記第2判定手段が小さいと判定した場合、前記検出手段が検出した原稿又は画像の傾きに基づいて、前記補正手段が前記原稿画像の原稿及び画像の傾きを補正するようにしてあることを特徴とする請求項1に記載の画像処理装置。   When it is determined that the second determination unit is small, the correction unit corrects the document and image inclinations of the document image based on the document or image inclination detected by the detection unit. The image processing apparatus according to claim 1. 前記生成手段が生成した複数の表示用画像を表示する手段と、
該手段が表示した表示用画像の選択を受け付ける手段と
を備えることを特徴とする請求項1又は2に記載の画像処理装置。
Means for displaying a plurality of display images generated by the generating means;
The image processing apparatus according to claim 1, further comprising: means for receiving selection of a display image displayed by the means.
傾きの補正に係る設定を受け付ける手段を備え、
該手段が前記設定を受け付けた場合、前記第1判定手段が少なくとも一方は大きいと判定したときに、前記生成手段が前記複数の表示用画像を生成するようにしてあること
を特徴とする請求項1から3までの何れか1項に記載の画像処理装置。
Means for accepting a setting relating to inclination correction;
When the means accepts the setting, the generating means generates the plurality of display images when the first determining means determines that at least one of them is larger. The image processing apparatus according to any one of 1 to 3.
請求項1から4までの何れか1項に記載の画像処理装置と、
該画像処理装置で傾きが補正された原稿画像に基づいて出力画像を形成する画像形成手段と
を備えることを特徴とする画像形成装置。
An image processing apparatus according to any one of claims 1 to 4,
An image forming apparatus comprising: an image forming unit that forms an output image based on a document image whose inclination is corrected by the image processing apparatus.
画像が形成された原稿が走査されて読み取られた原稿画像を取得し、取得した原稿画像から前記走査の方向に対する原稿及び画像の傾きを夫々検出し、検出した夫々の傾きを表現した複数の表示用画像を生成ステップで生成し、該生成ステップで生成した表示用画像の1つに表現された傾きに基づいて、前記原稿画像の原稿及び画像の傾きを補正ステップで補正する画像処理方法において、
検出した原稿及び画像の傾きの夫々が第1閾値より大きいか否かを判定する第1判定ステップと、
該第1判定ステップで両方大きいと判定した場合、前記原稿及び画像の傾きの差が第2閾値より小さいか否かを判定する第2判定ステップとを含み、
該第2判定ステップで小さいと判定した場合、又は前記第1判定ステップで少なくとも一方は大きくないと判定した場合、前記生成ステップで、前記表示用画像を生成しないようにしてあること
を特徴とする画像処理方法。
A document image obtained by scanning and reading a document on which an image is formed is acquired, the document and the inclination of the image with respect to the scanning direction are respectively detected from the acquired document image, and a plurality of displays expressing each detected inclination In the image processing method of generating an image for use in the generation step, and correcting the document of the document image and the tilt of the image in the correction step based on the tilt expressed in one of the display images generated in the generation step.
A first determination step of determining whether each of the detected document and image inclination is greater than a first threshold;
A second determination step for determining whether or not the difference between the inclination of the document and the image is smaller than a second threshold when it is determined that both are large in the first determination step;
When it is determined that the second determination step is small, or when it is determined that at least one is not large in the first determination step, the display image is not generated in the generation step. Image processing method.
前記第2判定ステップで小さいと判定した場合、検出した原稿又は画像の傾きに基づいて、前記補正ステップで前記原稿画像の原稿及び画像の傾きを補正するようにしてあることを特徴とする請求項6に記載の画像処理方法。   The document and image inclination of the document image are corrected in the correction step based on the detected document or image inclination when determined to be small in the second determination step. 6. The image processing method according to 6. 前記生成ステップで生成した複数の表示用画像を表示するステップと、
該ステップで表示した表示用画像の選択を受け付けるステップと
を含むことを特徴とする請求項6又は7に記載の画像処理方法。
Displaying a plurality of display images generated in the generating step;
The image processing method according to claim 6, further comprising a step of receiving selection of a display image displayed in the step.
傾きの補正に係る設定を受け付けるステップを含み、
該ステップで前記設定を受け付けた場合、前記第1判定ステップで少なくとも一方は大きいと判定したときに、前記生成ステップで前記複数の表示用画像を生成するようにしてあること
を特徴とする請求項6から8までの何れか1項に記載の画像処理方法。
Including a step of accepting a setting relating to inclination correction;
The plurality of display images are generated in the generation step when the setting is accepted in the step and it is determined in the first determination step that at least one is larger. The image processing method according to any one of 6 to 8.
画像データを取得して画像処理するコンピュータに、画像が形成された原稿が走査されて読み取られた原稿画像から前記走査の方向に対する原稿及び画像の傾きを夫々検出させ、検出させた夫々の傾きを表現した複数の表示用画像を生成ステップで生成させ、該生成ステップで生成させた表示用画像の1つに表現された傾きに基づいて、前記原稿画像の原稿及び画像の傾きを補正ステップで補正させるコンピュータプログラムにおいて、
コンピュータに、検出させた原稿及び画像の傾きの夫々が第1閾値より大きいか否かを判定させる第1判定ステップと、
コンピュータが該第1判定ステップで両方大きいと判定した場合、コンピュータに、前記原稿及び画像の傾きの差が第2閾値より小さいか否かを判定させる第2判定ステップとを含み、
コンピュータが該第2判定ステップで小さいと判定した場合、又は前記第1判定ステップで少なくとも一方は大きくないと判定した場合、コンピュータに、前記生成ステップで前記表示用画像を生成させないようにしてあること
を特徴とするコンピュータプログラム。
A computer that acquires image data and performs image processing causes a document on which an image is formed to be scanned and read from a document image to detect the inclination of the document and the image with respect to the scanning direction, and each detected inclination is detected. A plurality of expressed display images are generated in the generation step, and the original of the original image and the inclination of the image are corrected in the correction step based on the inclination expressed in one of the display images generated in the generation step. Computer program
A first determination step for causing the computer to determine whether or not each of the detected document and image inclination is greater than a first threshold;
A second determination step for causing the computer to determine whether or not the difference between the inclinations of the original and the image is smaller than a second threshold when the computer determines that both are large in the first determination step;
When it is determined that the computer is small in the second determination step, or when it is determined that at least one is not large in the first determination step, the computer does not generate the display image in the generation step. A computer program characterized by the above.
コンピュータが前記第2判定ステップで小さいと判定した場合、コンピュータに、検出させた原稿又は画像の傾きに基づいて、前記補正ステップで前記原稿画像の原稿及び画像の傾きを補正させるようにしてあることを特徴とする請求項10に記載のコンピュータプログラム。   When the computer determines that the second determination step is small, the computer is configured to correct the document image and the image inclination of the document image based on the detected document or image inclination in the correction step. The computer program according to claim 10. 請求項10又は11に記載のコンピュータプログラムを記録してあることを特徴とするコンピュータでの読み取りが可能な記録媒体。   The computer program of Claim 10 or 11 is recorded, The computer-readable recording medium characterized by the above-mentioned.
JP2008317590A 2008-12-12 2008-12-12 Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium Expired - Fee Related JP4931897B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008317590A JP4931897B2 (en) 2008-12-12 2008-12-12 Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008317590A JP4931897B2 (en) 2008-12-12 2008-12-12 Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium

Publications (2)

Publication Number Publication Date
JP2010141733A JP2010141733A (en) 2010-06-24
JP4931897B2 true JP4931897B2 (en) 2012-05-16

Family

ID=42351433

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008317590A Expired - Fee Related JP4931897B2 (en) 2008-12-12 2008-12-12 Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium

Country Status (1)

Country Link
JP (1) JP4931897B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5739295B2 (en) * 2011-09-30 2015-06-24 シャープ株式会社 Image forming apparatus and printer driver program
JP7159664B2 (en) * 2018-07-18 2022-10-25 富士フイルムビジネスイノベーション株式会社 Image processing device and program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3396006B2 (en) * 1995-03-08 2003-04-14 株式会社リコー Digital copier
JP2007213331A (en) * 2006-02-09 2007-08-23 Ricoh Co Ltd Image processing method, image processor, image processing program and storage medium

Also Published As

Publication number Publication date
JP2010141733A (en) 2010-06-24

Similar Documents

Publication Publication Date Title
JP4570670B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP5280425B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, program, and recording medium thereof
US8537443B2 (en) Image processing apparatus, image forming apparatus, image processing method, and storage medium
JP4927122B2 (en) Image processing method, image processing apparatus, image forming apparatus, program, and recording medium
JP4495201B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
US20100141991A1 (en) Image processing apparatus, image forming apparatus, and image processing method
JP5264831B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, computer program, and recording medium
KR102553581B1 (en) Image processing apparatus that performs multi-crop processing, method of generating image in units of documents by multi-crop processing and storage medium
JP2010146185A (en) Image processing apparatus, image reading apparatus, image sending apparatus, image processing method, program, and recording medium thereof
JP2011010033A (en) Image processing apparatus, image forming apparatus, image processing method, computer program and recording medium
JP2012118863A (en) Image reading device, image formation device, image reading method, program and recording medium therefor
JP4931897B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP2012227569A (en) Image processing apparatus, image forming apparatus, computer program, recording medium and image processing method
JP2010011359A (en) Image processing apparatus, image forming apparatus, method of controlling the image processing apparatus, control program, and recording medium
JP5542380B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP6105134B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP5970582B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2010098445A (en) Image processing apparatus, image reading apparatus, image forming apparatus, method of controlling image processing apparatus, control program, and recording medium
JP2005101726A (en) Image processor, image reader, image forming apparatus, image processing method and program
US11863717B2 (en) Image reading apparatus and image reading method
JP2010118769A (en) Image processor, image reader, image formation device, image processing method, computer program, and recording medium
JP5736068B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2015226264A (en) Image processing apparatus, image formation apparatus with the same, image processing program, and recording medium with recorded program
JP2010087826A (en) Image processing device, image reader, image forming apparatus, image processing method, program and recording medium therefor
JP6081874B2 (en) Image reading device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110223

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120113

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: 20120124

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120214

R150 Certificate of patent or registration of utility model

Ref document number: 4931897

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150224

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees