JPH11308437A - Inclined image corrector, inclined image correction method and storage medium - Google Patents

Inclined image corrector, inclined image correction method and storage medium

Info

Publication number
JPH11308437A
JPH11308437A JP10124320A JP12432098A JPH11308437A JP H11308437 A JPH11308437 A JP H11308437A JP 10124320 A JP10124320 A JP 10124320A JP 12432098 A JP12432098 A JP 12432098A JP H11308437 A JPH11308437 A JP H11308437A
Authority
JP
Japan
Prior art keywords
image
tilt
correction
routine
correcting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10124320A
Other languages
Japanese (ja)
Inventor
Mitsuhiro Naito
光浩 内藤
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP10124320A priority Critical patent/JPH11308437A/en
Publication of JPH11308437A publication Critical patent/JPH11308437A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To correctly correct inclination as quickly as possible regardless of the kind of images. SOLUTION: In this inclined image corrector, the inclination to an original of image signals obtained by photoelectrically converting and digitally converting image information optically read from the original is corrected. In this case, it is provided with a first inclination correction program 23 for detecting the inclination of a character and correcting the inclination of the image and a second inclination correction program 24 for detecting the inclination of the edge line of the original and correcting the inclination of the image. By the control of a scanning driver 21, the first inclination correction program 23 or the second inclination correction program 24 is appropriately selected corresponding to the kind of the image or the like and the inclination is corrected.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、原稿から光学的に
読取られた画像情報を光電変換、及びデジタル変換して
得られた画像信号の前記原稿に対する傾きを補正する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention corrects the inclination of an image signal obtained by photoelectrically and digitally converting image information optically read from an original with respect to the original.

【0002】[0002]

【従来の技術】従来、画像読取装置(以下、イメージス
キャナと呼ぶ)により原稿から読取られた画像の原稿に
対する傾き、すなわち元の原稿上の画像に対する傾きを
補正する技術が知られている。
2. Description of the Related Art Conventionally, there has been known a technique for correcting an inclination of an image read from an original by an image reading apparatus (hereinafter, referred to as an image scanner) with respect to the original, that is, an inclination with respect to an image on an original original.

【0003】以下に、図面を参照して従来例を詳細に説
明する。図1は、原稿搬送機能のあるイメージスキャナ
(以後、シートフィードスキャナと呼ぶ)を用いた場合の
構成例を示す。図1において、シートフィードスキャナ
1とマイクロソフトウィンドウズなどのウィンドウズ環
境を備えたコンピュ−タ装置2が接続されている。コン
ピュ−タ装置2には、カラーモニタ等の表示装置3と、
ユーザからの命令を入力するためのキーボード4と、表
示装置3に表示されたオブジェクトを指示したりするた
めのポインティングデバイス5とが接続されている。
Hereinafter, a conventional example will be described in detail with reference to the drawings. FIG. 1 shows an image scanner having a document conveying function.
(Hereinafter referred to as a sheet feed scanner). In FIG. 1, a sheet feed scanner 1 and a computer device 2 having a Windows environment such as Microsoft Windows are connected. A display device 3 such as a color monitor;
A keyboard 4 for inputting a command from a user and a pointing device 5 for pointing an object displayed on the display device 3 are connected.

【0004】そして、コンピュータ装置2は、図14に
示したソフトウェアに基づいて、シートフィードスキャ
ナ1から画像を読込んで画像の傾きを補正し、その傾き
を補正した画像を表示装置3に表示する。図14に示し
たソフトウェアは、画像読取用のドライバプログラムと
して機能するスキャニングドライバ、実際にシートフィ
ードスキャナ1と通信して画像を読込むためのドライバ
プログラムとして機能するローレベルドライバ、画像の
傾きを補正するための斜き補正プログラムにより構成さ
れている。
The computer device 2 reads the image from the sheet feed scanner 1 based on the software shown in FIG. 14, corrects the inclination of the image, and displays the corrected image on the display device 3. The software shown in FIG. 14 is a scanning driver that functions as a driver program for image reading, a low-level driver that actually functions as a driver program for communicating with the sheet feed scanner 1 and reading an image, and correcting an image inclination. Is constituted by the skew correction program.

【0005】この斜き補正プログラムとしては、例え
ば、テキストデータに係る画像中の文字の傾きを検出し
て、ブロック単位で回転することにより傾き補正を行う
プログラムや、或いはグラフィックデータに係る画像
(原稿)のエッジラインの傾きを検出して、画像全体を
回転することにより傾き補正を行うプログラムが利用さ
れている。
The skew correction program includes, for example, a program for detecting the skew of a character in an image related to text data and correcting the skew by rotating the block in units of blocks, or an image related to graphic data (original document). The program which detects the inclination of the edge line and rotates the entire image to correct the inclination is used.

【0006】[0006]

【発明が解決しようとする課題】しかし、従来は、上記
の文字の傾きを検出する方式の傾き補正プログラム、ま
たは原稿のエッジラインの傾きを検出する方式の傾き補
正プログラムのいずれか一方だけを用いて、各種の画像
の傾きを補正するように構成されていた。
Conventionally, however, only one of the above-described inclination correction program for detecting the inclination of a character and the inclination correction program for detecting the inclination of an edge line of a document is used. Thus, it is configured to correct the inclination of various images.

【0007】このため、文字の傾きを検出する方式の傾
き補正プログラムを用いた場合には、ブロック単位で傾
きを検出しているため、グラフィックデータに係る画像
について傾き補正を行う際に、本来傾斜している線を検
出してその本来傾斜している線を間違って傾き補正する
等、グラフィックデータに係る画像について正しく傾き
補正を行えない場合が生じていた。
For this reason, when a tilt correction program of a method for detecting the tilt of a character is used, the tilt is detected in units of blocks. In some cases, it is not possible to correctly correct inclination of an image related to graphic data, for example, a line that is tilted is detected and the originally inclined line is erroneously corrected.

【0008】また、原稿のエッジラインの傾きを検出す
る方式の傾き補正プログラムを用いた場合には、テキス
トデータに係る画像を傾き補正した場合に、文字の傾き
を検出する方式の傾き補正プログラムで傾き補正した場
合に較べて処理速度が遅くなると共に、ファクシミリ通
信に係るテキストデータの画像中にノイズとして混在し
ている線を画像のエッジラインとして誤検出し、間違っ
て傾き補正をしてしまう場合もあった。
In addition, when a skew correction program for detecting the skew of an edge line of a document is used, a skew correction program for detecting the skew of a character when an image related to text data is corrected for skew. When the processing speed is slower than the case where the inclination is corrected, and the line mixed as noise in the image of the text data related to the facsimile communication is erroneously detected as the edge line of the image, and the inclination is corrected by mistake. There was also.

【0009】さらに、従来の傾き補正処理では、画像の
サイズが大きくて傾き補正処理に長時間を要するような
場合でも、傾き補正処理を中止(キャンセル)すること
はできなかった。
Furthermore, in the conventional tilt correction processing, even when the image size is large and the tilt correction processing takes a long time, the tilt correction processing cannot be canceled (canceled).

【0010】本発明は、このような背景の下になされた
もので、その課題は、画像の内容を問わずに正しく、か
つ可及的迅速に傾き補正を行えるようにすることにあ
る。また、任意に傾き補正処理を中止できるようにする
ことにある。
The present invention has been made under such a background, and an object of the present invention is to make it possible to correct a tilt correctly and as quickly as possible regardless of the content of an image. Another object of the present invention is to enable the inclination correction process to be stopped arbitrarily.

【0011】[0011]

【課題を解決するための手段】上記課題を解決するた
め、本発明は、原稿から光学的に読取られた画像情報を
光電変換、及びデジタル変換して得られた画像信号の前
記原稿に対する傾きを補正する傾斜画像補正装置におい
て、補正方式の異なる複数の傾斜画像補正手段と、前記
複数の傾斜画像補正手段の中から画像の内容に応じて適
切な傾斜画像補正手段を選択する選択手段とを備えてい
る。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention provides an image signal optically read from a document by photoelectric conversion and digital conversion. The tilt image correcting apparatus for correcting includes a plurality of tilt image correcting units having different correction methods, and a selecting unit for selecting an appropriate tilt image correcting unit from the plurality of tilt image correcting units according to the content of an image. ing.

【0012】また、本発明は、原稿から光学的に読取ら
れた画像情報を光電変換、及びデジタル変換して得られ
た画像信号の前記原稿に対する傾きを補正する傾斜画像
補正方法において、補正方式の異なる複数の傾斜画像補
正工程と、前記複数の傾斜画像補正工程の中から画像の
内容に応じて適切な傾斜画像補正工程を選択する選択工
程とを備えている。
The present invention also provides a tilt image correction method for correcting the tilt of an image signal obtained by photoelectrically converting and digitally converting image information optically read from a document with respect to the document. The method includes a plurality of different tilt image correction steps and a selection step of selecting an appropriate tilt image correction step from the plurality of tilt image correction steps according to the content of the image.

【0013】また、本発明は、原稿から光学的に読取ら
れた画像情報を光電変換、及びデジタル変換して得られ
た画像信号の前記原稿に対する傾きを補正するためのプ
ログラムを記憶する記憶媒体であって、前記プログラム
は、補正方式の異なる複数の傾斜画像補正ルーチンと、
前記複数の傾斜画像補正ルーチンの中から画像の内容に
応じて適切な傾斜画像補正ルーチンを選択する選択ルー
チンとを含んでいる。また、本発明では、前記複数の傾
斜画像補正手段・工程・ルーチンは、文字の傾きを検出
して画像の傾きを補正する第1の傾斜画像補正手段・工
程・ルーチンと、前記原稿のエッジラインの傾きを検出
して画像の傾きを補正する第2の傾斜画像補正手段・工
程・ルーチンとを含んでいる。
Further, the present invention is a storage medium for storing a program for correcting a tilt of an image signal obtained by photoelectrically converting and digitally converting image information optically read from a document with respect to the document. The program includes a plurality of tilt image correction routines having different correction methods,
A selection routine for selecting an appropriate tilt image correction routine from the plurality of tilt image correction routines according to the content of the image. In the present invention, the plurality of skewed image correction means, steps, and routines include first skewed image correction means, steps, and routines for detecting a skew of a character and correcting the skew of an image, and an edge line of the document. And a second tilt image correcting means / step / routine for detecting the tilt of the image and correcting the tilt of the image.

【0014】また、本発明では、前記選択手段・工程・
ルーチンは、設定された画像の内容に基づいて傾斜画像
補正手段・工程・ルーチンを選択している。
Further, according to the present invention, the selecting means, the step,
The routine selects an inclined image correcting means, a process, and a routine based on the contents of the set image.

【0015】また、本発明では、前記選択手段・工程・
ルーチンは、画像の内容としてテキストが設定されてい
る場合には前記第1の傾斜画像補正手段・工程・ルーチ
ンを選択し、テキスト以外の画像の内容が設定されてい
る場合には、前記第2の傾斜画像補正手段・工程・ルー
チンを選択している。
Further, according to the present invention, the selecting means, the step,
The routine selects the first tilted image correction means / step / routine when text is set as the content of the image, and selects the second tilted image when the content of the image other than the text is set. Is selected.

【0016】また、本発明では、前記選択手段・工程・
ルーチンは、画像のヒストグラムを作成して前記原稿の
エッジラインを検出する検出手段・工程・ルーチンを含
み、該検出手段・工程・ルーチンにより該エッジライン
が検出された場合には前記第2の傾斜画像補正手段・工
程・ルーチンを選択し、該エッジラインが検出されなか
った場合には前記第1の傾斜画像補正手段・工程・ルー
チンを選択している。
Further, according to the present invention, the selecting means, the step,
The routine includes detecting means, a step, and a routine for generating an image histogram and detecting an edge line of the document, and detecting the second inclination when the edge line is detected by the detecting means, the step, and the routine. The image correction means / step / routine is selected, and if the edge line is not detected, the first tilt image correction means / step / routine is selected.

【0017】また、本発明では、前記選択手段・工程・
ルーチンは、画像の中から文字を抽出する抽出手段・工
程・ルーチンを含み、該抽出手段・工程・ルーチンによ
り文字が抽出された場合には前記第1の傾斜画像補正手
段・工程・ルーチンを選択し、文字が検出されなかった
場合には前記第2の傾斜画像補正手段・工程・ルーチン
を選択している。
Further, according to the present invention, the selecting means, the step,
The routine includes extraction means, steps, and routines for extracting characters from an image, and selects the first inclined image correction means, steps, and routines when characters are extracted by the extraction means, steps, and routines. If no character is detected, the second tilt image correction means / step / routine is selected.

【0018】また、本発明では、画像の傾きを補正する
前に画像の大きさに応じて傾き補正を中止するか否かを
指示する指示手段・工程・ルーチンを含んでいる。
Further, the present invention includes an instruction means, a step, and a routine for instructing whether or not to cancel the inclination correction according to the size of the image before correcting the inclination of the image.

【0019】また、本発明では、前記指示手段・工程・
ルーチンは、画像の大きさが所定以上の場合に、傾き補
正に長時間を要する旨のメッセージを表示する表示手段
・工程・ルーチンを含んでいる。
Further, in the present invention, the indicating means, the step,
The routine includes a display unit, a process, and a routine for displaying a message indicating that it takes a long time to correct the tilt when the size of the image is equal to or larger than a predetermined value.

【0020】また、本発明では、前記傾斜画像補正装置
(すなわち傾斜画像補正手段・工程・ルーチン)は、原
稿から光学的に読取られた画像情報を光電変換、及びデ
ジタル変換して画像信号として出力する画像読取装置に
接続されたコンピュータ装置に搭載(またはコンピュー
タ装置により実行)されている。
Further, according to the present invention, the tilt image correction device (ie, tilt image correction means, step, routine) photoelectrically and digitally converts image information optically read from a document and outputs it as an image signal. Installed in (or executed by) a computer device connected to the image reading device.

【0021】また、本発明では、前記傾斜画像補正装置
(すなわち傾斜画像補正手段・工程・ルーチン)は、原
稿から光学的に読取られた画像情報を光電変換、及びデ
ジタル変換して画像信号として出力する画像読取装置に
搭載(またはコンピュータ装置により実行)されてい
る。
Further, according to the present invention, the tilt image correction device (ie, tilt image correction means, step, routine) photoelectrically and digitally converts image information optically read from a document and outputs it as an image signal. (Or executed by a computer device).

【0022】[0022]

【発明の実施の形態】以下、本発明の実施形態を図面を
参照しながら説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0023】図1は、本発明に係る傾斜画像補正装置を
適用したデータ処理システムのシステム構成図であり、
シートフィードスキャナ1とマイクロソフトウィンドウ
ズなどのウィンドウズ環境を備えたコンピュ−タ装置2
が接続されている。コンピュ−タ装置2には、カラーモ
ニタ等の表示装置3と、ユーザからの命令を入力するた
めのキーボード4と、表示装置3に表示されたオブジェ
クトを指示したりするためのポインティングデバイス5
とが接続されている。
FIG. 1 is a system configuration diagram of a data processing system to which a tilt image correction device according to the present invention is applied.
A sheet feed scanner 1 and a computer device 2 having a Windows environment such as Microsoft Windows
Is connected. The computer device 2 includes a display device 3 such as a color monitor, a keyboard 4 for inputting a command from a user, and a pointing device 5 for pointing an object displayed on the display device 3.
And are connected.

【0024】シートフィードスキャナ1は、原稿を光学
的に走査して得られた光学像をCCD等の光電変換素子
(イメージセンサ)により電気的な画像信号に変換し、
この画像信号を更にA/D変換器によりデジタル信号に
変換して、外部のコンピュ−タ装置2に転送するもので
あり、図2に示したように、読取原稿を読取位置へ給紙
させるための給紙口11、読取動作を開始させるための
スタートボタン12を有している。
The sheet feed scanner 1 converts an optical image obtained by optically scanning a document into an electric image signal by a photoelectric conversion element (image sensor) such as a CCD.
This image signal is further converted into a digital signal by an A / D converter and is transferred to an external computer device 2. As shown in FIG. 2, a document to be read is fed to a reading position. And a start button 12 for starting a reading operation.

【0025】コンピュータ装置2は、シートフィードス
キャナ1から画像信号を読込んで画像の傾きを補正し、
その傾きを補正した画像を表示装置3に表示する機能を
有している。コンピュータ装置2は、画像の傾きを補正
する場合は、図3に示したアプリケーションソフトウェ
アに基づいて補正処理を行う。
The computer device 2 reads an image signal from the sheet feed scanner 1 and corrects the inclination of the image.
It has a function of displaying an image whose inclination has been corrected on the display device 3. When correcting the inclination of the image, the computer device 2 performs a correction process based on the application software shown in FIG.

【0026】この傾斜画像補正用のソフトウェアは、画
像読取用のドライバプログラムとして機能するスキャニ
ングドライバ21、シートフィードスキャナ1にて読取
られた画像をコンピュータ装置2へ読込むためのドライ
バプログラムとして機能するローレベルドライバ22、
元の原稿上の画像に対する読取画像の傾きを補正するた
めの第1,第2の斜き補正プログラム23,24により
構成されている。
The software for correcting the tilt image includes a scanning driver 21 functioning as a driver program for image reading, and a low-level driver functioning as a driver program for reading an image read by the sheet feed scanner 1 into the computer device 2. 22,
It comprises first and second skew correction programs 23 and 24 for correcting the inclination of the read image with respect to the image on the original document.

【0027】この第1の斜き補正プログラム23は、画
像中の文字の傾きを検出して、ブロック単位で回転する
ことにより傾き補正を行うように構成され、第2の補正
プログラム24は、原稿のエッジラインの傾きを検出し
て、画像全体を回転することにより傾き補正を行うよう
に構成されている。
The first skew correction program 23 is configured to detect the skew of a character in an image and to correct the skew by rotating the block in units of a block. The inclination of the edge line is detected, and the inclination is corrected by rotating the entire image.

【0028】図1に示したように、コンピュータ装置2
にシートフィードスキャナ1を接続した状態で、シート
フィードスキャナ1を駆動するためのスキャニングドラ
イバ21をコンピュータ装置2により起動させる。そし
て、シートフィードスキャナ1の供紙口11に原稿を差
し込み、スタートボタン12を押下して原稿読取りを開
始させる。すると、読取られた原稿画像は、ローレベル
ドライバ22によりコンピュータ装置2に読み込まれ、
画像の内容、すなわち画像の種類、原稿のエッジライン
の有無、文字の有無等に応じて第1,第2の斜き補正プ
ログラム23,24のいずれか1つが選択され、選択さ
れた第1の斜き補正プログラム23、または第2の斜き
補正プログラム24により画像の傾きが補正されて、表
示装置3に表示される。
As shown in FIG. 1, the computer device 2
The scanning driver 21 for driving the sheet feed scanner 1 is started by the computer device 2 with the sheet feed scanner 1 connected to the computer. Then, the original is inserted into the paper supply port 11 of the sheet feed scanner 1, and the start button 12 is pressed to start reading the original. Then, the read document image is read into the computer device 2 by the low-level driver 22, and
One of the first and second skew correction programs 23 and 24 is selected according to the content of the image, that is, the type of the image, the presence / absence of an edge line of the document, the presence / absence of a character, and the like. The skew of the image is corrected by the skew correction program 23 or the second skew correction program 24, and the image is displayed on the display device 3.

【0029】[第1の実施形態]次に、第1の実施形態
における画像傾き補正処理を図4、図5のフローチャー
トに従って説明する。
[First Embodiment] Next, the image inclination correction processing in the first embodiment will be described with reference to the flowcharts of FIGS.

【0030】操作者は、まず、スキャニングドライバ2
1を起動する(ステップS1)。すると、スキャニング
ドライバ21により、画像の種類を設定するための図6
に示したようなダイアログ・ボックスが表示されるの
で、操作者は、カラー、グレー、テキスト、白黒の画像
の種類の中から1つを選択して設定する(ステップS
2)。ここで、テキストとは、原稿上の画像が文字によ
り構成されていることを示している。画像の種類が設定
されると、図7に示したような原稿の大きさを設定する
ためのダイアログ・ボックスが表示されるので、そのダ
イアログ・ボックス上で原稿の大きさを設定する(ステ
ップS3)。原稿の大きさが設定されると、図8に示し
たダイアログ・ボックスが表示されるので、そのダイア
ログ・ボックス上で実際に読取る画像の範囲を設定する
(ステップS4)。なお、図8の81はステップS3に
て設定された原稿の大きさを示し、82はステップS4
にて設定された読取範囲を示している。
The operator first selects the scanning driver 2
1 is started (step S1). Then, FIG. 6 for setting the type of image by the scanning driver 21.
Is displayed, the operator selects and sets one of color, gray, text, and black and white image types (step S).
2). Here, the text indicates that the image on the document is composed of characters. When the type of the image is set, a dialog box for setting the size of the document as shown in FIG. 7 is displayed, and the size of the document is set on the dialog box (step S3). ). When the size of the document is set, the dialog box shown in FIG. 8 is displayed, and the range of the image to be actually read on the dialog box is set (step S4). 8, 81 indicates the size of the document set in step S3, and 82 indicates the size of the document in step S4.
Indicates the reading range set by.

【0031】次に、シートフィードスキャナ1のスター
トボタン12を押下して原稿読取りを開始させる(ステ
ップS5)。この際、読取られた画像データは、ローレ
ベルドライバ22により、コンピュータ装置2に読込ま
れる。そして、スキャニングドライバ21は、ステップ
S2にて設定された画像の種類がテキストであるか否か
を判別する(ステップS6)。その結果、テキストであ
れば、ステップS4にて設定された読取範囲(読取画像
サイズ)が規定サイズより大きいか否かを判別する(ス
テップS7)。その結果、規定サイズより大きい場合に
は、傾き補正にある程度の時間を要しても傾き補正を実
行するか否かを操作者に選択させるべく、図9に示すダ
イアログ・ボックスを表示し(ステップS8)、OKボ
タンが選択されたか否かを判別する(ステップS9)。
Next, the user presses the start button 12 of the sheet feed scanner 1 to start reading the original (step S5). At this time, the read image data is read into the computer device 2 by the low-level driver 22. Then, the scanning driver 21 determines whether the type of the image set in step S2 is text (step S6). As a result, if it is a text, it is determined whether or not the reading range (read image size) set in step S4 is larger than a specified size (step S7). As a result, if the size is larger than the specified size, a dialog box shown in FIG. 9 is displayed so that the operator can select whether or not to execute the tilt correction even if it takes a certain time for the tilt correction (step S8) It is determined whether the OK button has been selected (step S9).

【0032】その結果、OKボタンが選択された場合に
は、ステップS5にて読込まれた画像データに対して、
第1の傾き補正プログラム23により文字の傾きを検出
して画像の傾きを補正し(ステップS10)、その傾き
補正がなされた画像データを表示する(ステップS1
1)。一方、図9のダイアログ・ボックス上でキャンセ
ルボタンが選択された場合は、傾き補正を行うことな
く、ステップS5にて読込まれた画像データを表示する
(ステップS11)。また、ステップS7にて、画像サ
イズが規定サイズ以下であると判別されたときは、図9
のダイアログ・ボックスを表示することなく、ステップ
S5にて読込まれた画像データに対して、第1の傾き補
正プログラム23により傾きを補正して(ステップS1
2)、表示する(ステップS11)。
As a result, when the OK button is selected, the image data read in step S5 is
The inclination of the character is detected by the first inclination correction program 23 to correct the inclination of the image (step S10), and the image data subjected to the inclination correction is displayed (step S1).
1). On the other hand, if the cancel button is selected on the dialog box of FIG. 9, the image data read in step S5 is displayed without performing tilt correction (step S11). If it is determined in step S7 that the image size is equal to or smaller than the specified size,
Without displaying the dialog box of step S5, the image data read in step S5 is corrected for inclination by the first inclination correction program 23 (step S1).
2) Display (step S11).

【0033】ステップS6にて、テキスト以外の画像の
種類であると判別された場合は、ステップS3にて設定
された原稿サイズとステップS4にて設定された読取範
囲(読取画像サイズ)とが一致するか否かを判別する
(ステップS13)。その結果、一致しない場合は、傾
き補正を行うことなく、ステップS5にて読込まれた画
像データを表示する(ステップS18)。
If it is determined in step S6 that the image is of a type other than text, the original size set in step S3 and the reading range (read image size) set in step S4 match. It is determined whether or not to perform (step S13). As a result, if they do not match, the image data read in step S5 is displayed without performing tilt correction (step S18).

【0034】一方、原稿サイズと読取画像サイズが一致
する場合は、読取画像サイズが所定サイズより大きいか
否かを判別する(ステップS14)。その結果、所定サ
イズより大きい場合には、傾き補正にある程度の時間を
要しても傾き補正を実行するか否かを操作者に問い合わ
せるための図9に示すダイアログ・ボックスを表示し
(ステップS15)、OKボタンが選択されたか否かを
判別する(ステップS16)。
On the other hand, if the document size matches the read image size, it is determined whether the read image size is larger than a predetermined size (step S14). As a result, if the size is larger than the predetermined size, a dialog box shown in FIG. 9 is displayed for asking the operator whether or not to execute the inclination correction even if the inclination correction requires a certain amount of time (step S15). ), It is determined whether or not the OK button has been selected (step S16).

【0035】その結果、OKボタンが選択された場合に
は、ステップS5にて読込まれた画像データに対して、
第2の傾き補正プログラム24により原稿のエッジライ
ンの傾きを検出して画像の傾きを補正し(ステップS1
7)、その傾き補正がなされた画像データを表示する
(ステップS18)。一方、図9のダイアログ・ボック
ス上でキャンセルボタンが選択された場合は、傾き補正
を行うことなく、ステップS5にて読込まれた画像デー
タを表示する(ステップS18)。また、ステップS1
4にて、読取画像サイズが所定サイズ以下であると判別
されたときは、図9のダイアログ・ボックスを表示する
ことなく、ステップS5にて読込まれた画像データに対
して、第2の傾き補正プログラム24により傾きを補正
して(ステップS19)、表示する(ステップS1
8)。
As a result, when the OK button is selected, the image data read in step S5 is
The inclination of the edge line of the document is detected by the second inclination correction program 24 to correct the inclination of the image (step S1).
7) Display the image data whose inclination has been corrected (step S18). On the other hand, if the cancel button is selected on the dialog box of FIG. 9, the image data read in step S5 is displayed without performing tilt correction (step S18). Step S1
If it is determined in step S4 that the read image size is smaller than the predetermined size, the image data read in step S5 is subjected to the second tilt correction without displaying the dialog box in FIG. The inclination is corrected by the program 24 (step S19) and displayed (step S1).
8).

【0036】このように、画像の種類に応じて適切な第
1,または第2の傾き補正プログラムを自動的に選択
し、選択した傾き補正プログラムにより画像の傾き補正
を行うようにしている。従って、画像の種類を問わずに
正しく、かつ可及的迅速に傾き補正を行えるようにな
る。また、図9のダイアログ・ボックスにより、任意に
傾き補正処理を中止できるようにしている。
As described above, an appropriate first or second skew correction program is automatically selected according to the type of image, and skew correction of the image is performed by the selected skew correction program. Therefore, the tilt correction can be performed correctly and as quickly as possible regardless of the type of the image. Further, the inclination correction processing can be arbitrarily stopped using the dialog box shown in FIG.

【0037】[第2の実施形態]第1の実施形態では、
操作者により設定された画像の種類に基づいて、第1,
または第2の傾き補正プログラムを選択していたが、第
2の実施形態では、画像のヒストグラムを作成し、ヒス
トグラム上で原稿のエッジラインを検出し、原稿のエッ
ジラインの有無によって第1,または第2の傾き補正プ
ログラムを選択するようにしている。
[Second Embodiment] In the first embodiment,
Based on the type of image set by the operator,
Alternatively, the second inclination correction program is selected. However, in the second embodiment, a histogram of an image is created, an edge line of the document is detected on the histogram, and the first or the first is determined based on the presence or absence of the edge line of the document. The second inclination correction program is selected.

【0038】次に、第2の実施形態における画像傾き補
正処理を図10、図11のフローチャートに従って説明
する。
Next, the image inclination correction processing according to the second embodiment will be described with reference to the flowcharts of FIGS.

【0039】操作者は、まず、スキャニングドライバ2
1を起動する(ステップS21)。すると、スキャニン
グドライバ21により、画像の種類を設定するための図
6に示したようなダイアログ・ボックスが表示されるの
で、操作者は、カラー、グレー、テキスト、白黒の画像
の種類の中から1つを選択して設定する(ステップS2
2)。画像の種類が設定されると、図7に示したような
原稿の大きさを設定するためのダイアログ・ボックスが
表示されるので、そのダイアログ・ボックス上で原稿の
大きさを設定する(ステップS23)。原稿の大きさが
設定されると、図8に示したダイアログ・ボックスが表
示されるので、そのダイアログ・ボックス上で実際に読
取る画像の範囲を設定する(ステップS24)。
The operator first selects the scanning driver 2
1 is started (step S21). Then, a dialog box as shown in FIG. 6 for setting the image type is displayed by the scanning driver 21, and the operator can select one of the color, gray, text, and black and white image types. And set it (Step S2
2). When the type of the image is set, a dialog box for setting the size of the document as shown in FIG. 7 is displayed, and the size of the document is set on the dialog box (step S23). ). When the size of the document is set, the dialog box shown in FIG. 8 is displayed, and the range of the image to be actually read on the dialog box is set (step S24).

【0040】次に、シートフィードスキャナ1のスター
トボタン12を押下して原稿読取りを開始させる(ステ
ップS25)。この際、読取られた画像データは、ロー
レベルドライバ22により、コンピュータ装置2に読込
まれる。そして、スキャニングドライバ21は、読込ま
れた画像データのヒストグラムを作成し(ステップS2
6)、原稿のエッジラインの検出処理を行い(ステップ
S27)、原稿のエッジラインが検出されたか否かを判
別する(ステップS28)。
Next, the user presses the start button 12 of the sheet feed scanner 1 to start reading the original (step S25). At this time, the read image data is read into the computer device 2 by the low-level driver 22. Then, the scanning driver 21 creates a histogram of the read image data (step S2).
6) The document edge line is detected (step S27), and it is determined whether an edge line of the document is detected (step S28).

【0041】その結果、エッジラインが検出されなかっ
た場合は、ステップS24にて設定された読取範囲(読
取画像サイズ)が規定サイズより大きいか否かを判別す
る(ステップS29)。その結果、規定サイズより大き
い場合には、傾き補正にある程度の時間を要しても傾き
補正を実行するか否かを操作者に問い合わせるための図
9に示すダイアログ・ボックスを表示し(ステップS3
0)、OKボタンが選択されたか否かを判別する(ステ
ップS31)。
As a result, if no edge line is detected, it is determined whether or not the read range (read image size) set in step S24 is larger than a specified size (step S29). As a result, if the size is larger than the specified size, a dialog box shown in FIG. 9 is displayed for asking the operator whether or not to execute the tilt correction even if a certain amount of time is required for the tilt correction (step S3).
0), it is determined whether the OK button is selected (step S31).

【0042】その結果、OKボタンが操作された場合に
は、ステップS25にて読込まれた画像データに対し
て、第1の傾き補正プログラム23により文字の傾きを
検出して画像の傾きを補正し(ステップS32)、その
傾き補正がなされた画像データを表示する(ステップS
33)。一方、図9のダイアログ・ボックス上でキャン
セルボタンが選択された場合は、傾き補正を行うことな
く、ステップS25にて読込まれた画像データを表示す
る(ステップS33)。また、ステップS29にて、読
取画像サイズが規定サイズ以下であると判別されたとき
は、図9のダイアログ・ボックスを表示することなく、
ステップS25にて読込まれた画像データに対して、第
1の傾き補正プログラム23により傾きを補正して(ス
テップS34)、表示する(ステップS33)。
As a result, when the OK button is operated, the inclination of the character is detected by the first inclination correction program 23 to correct the image inclination of the image data read in step S25. (Step S32), the image data subjected to the inclination correction is displayed (Step S32).
33). On the other hand, if the cancel button is selected on the dialog box of FIG. 9, the image data read in step S25 is displayed without performing the inclination correction (step S33). If it is determined in step S29 that the read image size is equal to or smaller than the specified size, the dialog box shown in FIG.
The image data read in step S25 is corrected for inclination by the first inclination correction program 23 (step S34) and displayed (step S33).

【0043】ステップS28にて、原稿のエッジライン
が検出されなかったと判別された場合は、ステップS2
2にて設定された原稿サイズとステップS23にて設定
された読取範囲(読取画像サイズ)とが一致するか否か
を判別する(ステップS35)。その結果、一致しない
場合は、傾き補正を行うことなく、ステップS25にて
読込まれた画像データを表示する(ステップS40)。
If it is determined in step S28 that the edge line of the document has not been detected, the process proceeds to step S2.
It is determined whether or not the document size set in Step 2 matches the reading range (read image size) set in Step S23 (Step S35). As a result, if they do not match, the image data read in step S25 is displayed without performing tilt correction (step S40).

【0044】一方、原稿サイズと読取画像サイズが一致
する場合は、読取画像サイズが所定サイズより大きいか
否かを判別する(ステップS36)。その結果、所定サ
イズより大きい場合には、傾き補正にある程度の時間を
要しても傾き補正を実行するか否かを操作者に選択させ
るべく、図9に示すダイアログ・ボックスを表示し(ス
テップS37)、OKボタンが選択されたか否かを判別
する(ステップS38)。
On the other hand, if the document size matches the read image size, it is determined whether the read image size is larger than a predetermined size (step S36). As a result, if the size is larger than the predetermined size, a dialog box shown in FIG. 9 is displayed so that the operator can select whether or not to execute the inclination correction even if it takes a certain time for the inclination correction (step S37), it is determined whether the OK button is selected (step S38).

【0045】その結果、OKボタンが選択された場合に
は、ステップS25にて読込まれた画像データに対し
て、第2の傾き補正プログラム24により原稿のエッジ
ラインの傾きを検出して画像の傾きを補正し(ステップ
S39)、その傾き補正がなされた画像データを表示す
る(ステップS40)。一方、図9のダイアログ・ボッ
クス上でキャンセルボタンが選択された場合は、傾き補
正を行うことなく、ステップS25にて読込まれた画像
データを表示する(ステップS40)。また、ステップ
S36にて、読取画像サイズが所定サイズ以下であると
判別されたときは、図9のダイアログ・ボックスを表示
することなく、ステップS25にて読込まれた画像デー
タに対して、第2の傾き補正プログラム24により傾き
を補正して(ステップS41)、表示する(ステップS
40)。
As a result, when the OK button is selected, the inclination of the edge line of the original is detected by the second inclination correction program 24 for the image data read in step S25, and the inclination of the image is detected. Is corrected (step S39), and the image data subjected to the inclination correction is displayed (step S40). On the other hand, when the cancel button is selected on the dialog box of FIG. 9, the image data read in step S25 is displayed without performing the inclination correction (step S40). If it is determined in step S36 that the read image size is smaller than the predetermined size, the image data read in step S25 is added to the second image data without displaying the dialog box shown in FIG. Is corrected by the tilt correction program 24 (step S41) and displayed (step S41).
40).

【0046】このように、第2の実施形態では、画像の
ヒストグラムにより原稿のエッジラインを検出している
ので、ファクシミリ通信により受信した原稿を読取った
場合に、その読取画像にノイズとして混在している線を
原稿のエッジラインとして誤検出し、間違って傾き補正
をしてしまうという不具合を確実に解消することができ
る(なお、この不具合は、第1、および後述の第3の実
施形態でも解消することができるが、第2の実施形態の
方が信頼性が高い)。なお、第2の実施形態では、文字
認識処理が不要な場合等においては、画像の種類の設定
処理を省くことも可能である(第3の実施形態も同
様)。
As described above, in the second embodiment, since the edge line of the document is detected based on the histogram of the image, when the document received by facsimile communication is read, it is mixed as noise in the read image. This can reliably eliminate the problem of erroneously detecting a line that is present as an edge line of a document and erroneously correcting the inclination (this problem is also solved in the first and third embodiments described later). However, the second embodiment is more reliable). In the second embodiment, when the character recognition processing is unnecessary, the setting processing of the image type can be omitted (the same applies to the third embodiment).

【0047】[第3の実施形態]第3の実施形態では、
読込まれた画像データの中から文字を抽出する処理を行
い、文字が抽出された場合には、第1の傾き補正プログ
ラム23を選択し、文字が抽出されなかった場合には、
第2の傾き補正プログラム24を選択するようにしてい
る。
[Third Embodiment] In the third embodiment,
A process of extracting a character from the read image data is performed. If the character is extracted, the first inclination correction program 23 is selected. If the character is not extracted, the first inclination correction program 23 is selected.
The second inclination correction program 24 is selected.

【0048】次に、第3の実施形態における画像傾き補
正処理を図12、図13のフローチャートに従って説明
する。
Next, the image inclination correction processing according to the third embodiment will be described with reference to the flowcharts of FIGS.

【0049】操作者は、まず、スキャニングドライバ2
1を起動する(ステップS51)。すると、スキャニン
グドライバ21により、画像の種類を設定するための図
6に示したようなダイアログ・ボックスが表示されるの
で、操作者は、カラー、グレー、テキスト、白黒の画像
の種類の中から1つを選択して設定する(ステップS5
2)。画像の種類が設定されると、すると、図7に示し
たような原稿の大きさを設定するためのダイアログ・ボ
ックスが表示されるので、そのダイアログ・ボックス上
で原稿の大きさを設定する(ステップS53)。原稿の
大きさが設定されると、図8に示したダイアログ・ボッ
クスが表示されるので、そのダイアログ・ボックス上で
実際に読取る画像の範囲を設定する(ステップS5
4)。
The operator first selects the scanning driver 2
1 is started (step S51). Then, a dialog box as shown in FIG. 6 for setting the image type is displayed by the scanning driver 21, and the operator can select one of the color, gray, text, and black and white image types. And set it (step S5).
2). When the type of the image is set, a dialog box for setting the size of the document as shown in FIG. 7 is displayed, and the size of the document is set on the dialog box ( Step S53). When the size of the document is set, the dialog box shown in FIG. 8 is displayed, and the range of the image to be actually read on the dialog box is set (step S5).
4).

【0050】次に、シートフィードスキャナ1のスター
トボタン12を押下して原稿読取りを開始させる(ステ
ップS55)。この際、読取られた画像データは、ロー
レベルドライバ22により、コンピュータ装置2に読込
まれる。そして、スキャニングドライバ21は、読込ま
れた画像データに対して文字の抽出処理を行い(ステッ
プS56)、文字が抽出されたか否かを判別する(ステ
ップS57)。
Next, the user presses the start button 12 of the sheet feed scanner 1 to start reading the original (step S55). At this time, the read image data is read into the computer device 2 by the low-level driver 22. Then, the scanning driver 21 performs a character extraction process on the read image data (step S56), and determines whether a character has been extracted (step S57).

【0051】その結果、文字が抽出された場合は、ステ
ップS54にて設定された読取範囲(読取画像サイズ)
が規定サイズより大きいか否かを判別する(ステップS
58)。その結果、規定サイズより大きい場合には、傾
き補正にある程度の時間を要しても傾き補正を実行する
か否かを操作者に選択させるべく、図9に示すダイアロ
グ・ボックスを表示し(ステップS59)、OKボタン
が選択されたか否かを判別する(ステップS60)。
As a result, if a character is extracted, the reading range (read image size) set in step S54
Is larger than the specified size (step S
58). As a result, if the size is larger than the specified size, a dialog box shown in FIG. 9 is displayed so that the operator can select whether or not to execute the tilt correction even if it takes a certain time for the tilt correction (step S59), it is determined whether the OK button is selected (step S60).

【0052】その結果、OKボタンが選択された場合に
は、ステップS55にて読込まれた画像データに対し
て、第1の傾き補正プログラム23により文字の傾きを
検出して画像の傾きを補正し(ステップS61)、その
傾き補正がなされた画像データを表示する(ステップS
62)。一方、図9のダイアログ・ボックス上でキャン
セルボタンが選択された場合は、傾き補正を行うことな
く、ステップS55にて読込まれた画像データを表示す
る(ステップS62)。また、ステップS58にて、読
取画像サイズが規定サイズ以下であると判別されたとき
は、図9のダイアログ・ボックスを表示することなく、
ステップS55にて読込まれた画像データに対して、第
1の傾き補正プログラム23により傾きを補正して(ス
テップS63)、表示する(ステップS62)。
As a result, when the OK button is selected, the image data read in step S55 is detected by the first tilt correction program 23 to detect the character tilt and correct the image tilt. (Step S61), the image data whose inclination has been corrected is displayed (Step S61).
62). On the other hand, if the cancel button is selected on the dialog box of FIG. 9, the image data read in step S55 is displayed without performing the inclination correction (step S62). If it is determined in step S58 that the read image size is equal to or smaller than the specified size, the dialog box shown in FIG.
The image data read in step S55 is corrected for inclination by the first inclination correction program 23 (step S63), and is displayed (step S62).

【0053】ステップS57にて、文字が抽出されなか
ったと判別された場合は、ステップS53にて設定され
た原稿サイズとステップS53にて設定された読取範囲
(読取画像サイズ)とが一致するか否かを判別する(ス
テップS64)。その結果、一致しない場合は、傾き補
正を行うことなく、ステップS55にて読込まれた画像
データを表示する(ステップS69)。
If it is determined in step S57 that no character has been extracted, it is determined whether the document size set in step S53 matches the reading range (read image size) set in step S53. Is determined (step S64). As a result, if they do not match, the image data read in step S55 is displayed without performing tilt correction (step S69).

【0054】一方、原稿サイズと読取画像サイズが一致
する場合は、読取画像サイズが所定サイズより大きいか
否かを判別する(ステップS65)。その結果、所定サ
イズより大きい場合には、傾き補正にある程度の時間を
要しても傾き補正を実行するか否かを操作者に選択させ
るべく、図9に示すダイアログ・ボックスを表示し(ス
テップS66)、OKボタンが選択されたか否かを判別
する(ステップS67)。
On the other hand, if the document size matches the read image size, it is determined whether the read image size is larger than a predetermined size (step S65). As a result, if the size is larger than the predetermined size, a dialog box shown in FIG. 9 is displayed so that the operator can select whether or not to execute the inclination correction even if it takes a certain time for the inclination correction (step S66), it is determined whether or not the OK button has been selected (step S67).

【0055】その結果、OKボタンが選択された場合に
は、ステップS55にて読込まれた画像データに対し
て、第2の傾き補正プログラム24により原稿のエッジ
ラインの傾きを検出して画像の傾きを補正し(ステップ
S68)、その傾き補正がなされた画像データを表示す
る(ステップS69)。一方、図9のダイアログ・ボッ
クス上でキャンセルボタンが選択された場合は、傾き補
正を行うことなく、ステップS54にて読込まれた画像
データを表示する(ステップS69)。また、ステップ
S64にて、読取画像サイズが所定サイズ以下であると
判別されたときは、図9のダイアログ・ボックスを表示
することなく、ステップS54にて読込まれた画像デー
タに対して、第2の傾き補正プログラム24により傾き
を補正して(ステップS70)、表示する(ステップS
69)。
As a result, when the OK button is selected, the inclination of the edge line of the original is detected by the second inclination correction program 24 for the image data read in step S55, and the inclination of the image is determined. Is corrected (step S68), and the image data subjected to the inclination correction is displayed (step S69). On the other hand, if the cancel button is selected on the dialog box of FIG. 9, the image data read in step S54 is displayed without performing tilt correction (step S69). If it is determined in step S64 that the read image size is equal to or smaller than the predetermined size, the image data read in step S54 is added to the second image data without displaying the dialog box shown in FIG. Is corrected by the tilt correction program 24 (step S70) and displayed (step S70).
69).

【0056】なお、本発明は、上記の実施形態に限定さ
れることなく、例えば、原稿搬送機能を持たないイメー
ジスキャナを用いたシステムに適用することも可能であ
る。また、イメージキャナに補正方式の異なる複数種の
傾き補正機能を搭載することも可能である。
The present invention is not limited to the above embodiment, but can be applied to, for example, a system using an image scanner without a document conveying function. It is also possible to mount a plurality of types of tilt correction functions having different correction methods on the image canner.

【0057】さらに、傾き補正を中止する手段として
は、図9のダイアログ・ボックスにより受動的に中止を
指示させることなく、機械的なボタンスイッチ等により
最初から能動的に中止を指示させるようにしてもよい。
また、例えば画像サイズを大、中、小に分類し、それら
大、中、小の画像サイズに応じたおおよその傾き補正処
理時間をガイダンス表示して、傾き補正を中止するか否
かを指示させることも可能である。
Further, as means for canceling the inclination correction, the cancel is instructed from the beginning by a mechanical button switch or the like without being passively instructed by the dialog box shown in FIG. Is also good.
In addition, for example, the image sizes are classified into large, medium, and small, guidance is displayed for an approximate inclination correction processing time corresponding to the large, medium, and small image sizes, and an instruction is given as to whether or not to cancel the inclination correction. It is also possible.

【0058】[0058]

【発明の効果】以上に説明したように、本発明によれ
ば、原稿から光学的に読取られた画像情報を光電変換、
及びデジタル変換して得られた画像信号の前記原稿に対
する傾きを補正する傾斜画像補正装置において、補正方
式の異なる複数の傾斜画像補正手段と、前記複数の傾斜
画像補正手段の中から画像の内容(画像の種類等)に応
じて適切な傾斜画像補正手段を選択する選択手段とを備
えたので、画像の種類を問わずに正しく、かつ可及的迅
速に傾き補正を行うことが可能となる。また、本発明に
よれば、画像の傾きを補正する前に画像の大きさに応じ
て傾き補正を中止するか否かを指示する指示手段を備え
たので、任意に傾き補正処理を中止することが可能とな
る。
As described above, according to the present invention, image information optically read from a document is subjected to photoelectric conversion,
And a tilt image correcting device for correcting the tilt of the image signal obtained by the digital conversion with respect to the original, wherein a plurality of tilt image correcting means having different correction methods and an image content ( Selection means for selecting an appropriate tilt image correction means according to the type of image, etc.), so that tilt correction can be performed correctly and as quickly as possible regardless of the type of image. In addition, according to the present invention, the inclination correction process is arbitrarily stopped before the inclination of the image is corrected, because the instructing means for instructing whether to stop the inclination correction according to the size of the image is provided. Becomes possible.

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

【図1】本発明(および従来)の傾斜画像補正装置を適
用したデータ処理システムのシステム構成図である。
FIG. 1 is a system configuration diagram of a data processing system to which a tilt image correction device according to the present invention (and the related art) is applied.

【図2】シートフィードスキャナの外観図である。FIG. 2 is an external view of a sheet feed scanner.

【図3】本発明に係る傾き補正用のソフトウエアの概略
構成を示す機能ブロック図である。
FIG. 3 is a functional block diagram showing a schematic configuration of tilt correction software according to the present invention.

【図4】本発明の第1の実施形態に係る傾き補正処理を
示すフローチャートである。
FIG. 4 is a flowchart illustrating a tilt correction process according to the first embodiment of the present invention.

【図5】図4の続きのフローチャートである。FIG. 5 is a flowchart continued from FIG. 4;

【図6】画像の種類を設定するためのダイアログ・ボッ
クスを示す図である。
FIG. 6 is a diagram showing a dialog box for setting an image type.

【図7】原稿サイズを設定するためのダイアログ・ボッ
クスを示す図である。
FIG. 7 is a diagram illustrating a dialog box for setting a document size.

【図8】画像の読取範囲を設定するためのダイアログ・
ボックスを示す図である。
FIG. 8 shows a dialog for setting an image reading range.
It is a figure showing a box.

【図9】傾き補正を中止するか否かを指示させるための
ダイアログ・ボックスを示す図である。
FIG. 9 is a diagram showing a dialog box for instructing whether to cancel inclination correction.

【図10】本発明の第2の実施形態に係る傾き補正処理
を示すフローチャートである。
FIG. 10 is a flowchart illustrating a tilt correction process according to a second embodiment of the present invention.

【図11】図10の続きのフローチャートである。FIG. 11 is a flowchart continued from FIG. 10;

【図12】本発明の第3の実施形態に係る傾き補正処理
を示すフローチャートである。
FIG. 12 is a flowchart illustrating a tilt correction process according to a third embodiment of the present invention.

【図13】図12の続きのフローチャートである。FIG. 13 is a flowchart continued from FIG. 12;

【図14】従来の傾き補正用のソフトウエアの概略構成
を示す機能ブロック図である。
FIG. 14 is a functional block diagram showing a schematic configuration of conventional software for correcting inclination.

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

1 シートフィードスキャナ 2コンピュータ装置 3 表示装置 5 ポインティングデバイス 21 スキャニングドライバ 22 ローレベルドライバ 23 第1の傾き補正プログラム 24 第2の傾き補正プログラム REFERENCE SIGNS LIST 1 sheet feed scanner 2 computer device 3 display device 5 pointing device 21 scanning driver 22 low level driver 23 first tilt correction program 24 second tilt correction program

Claims (30)

【特許請求の範囲】[Claims] 【請求項1】 原稿から光学的に読取られた画像情報を
光電変換、及びデジタル変換して得られた画像信号の前
記原稿に対する傾きを補正する傾斜画像補正装置におい
て、 補正方式の異なる複数の傾斜画像補正手段と、 前記複数の傾斜画像補正手段の中から画像の内容に応じ
て適切な傾斜画像補正手段を選択する選択手段と、 を備えたことを特徴とする傾斜画像補正装置。
1. A tilt image correcting apparatus for correcting a tilt of an image signal obtained by photoelectrically converting and digitally converting image information optically read from a document with respect to the document, wherein a plurality of tilts having different correction methods are provided. A tilt image correction apparatus comprising: an image correction unit; and a selection unit that selects an appropriate tilt image correction unit from the plurality of tilt image correction units according to the content of an image.
【請求項2】 前記複数の傾斜画像補正手段は、文字の
傾きを検出して画像の傾きを補正する第1の傾斜画像補
正手段と、前記原稿のエッジラインの傾きを検出して画
像の傾きを補正する第2の傾斜画像補正手段とを含むこ
とを特徴とする請求項1記載の傾斜画像補正装置。
2. The image processing apparatus according to claim 1, wherein the plurality of skewed image correction units detect a skew of a character to correct the skew of the image, and a skew of the image by detecting a skew of an edge line of the document. 2. The tilt image correcting apparatus according to claim 1, further comprising a second tilt image correcting unit that corrects the tilt angle.
【請求項3】 前記選択手段は、設定された画像の内容
に基づいて傾斜画像補正手段を選択することを特徴とす
る請求項1記載の傾斜画像補正装置。
3. The tilt image correction device according to claim 1, wherein the selection unit selects the tilt image correction unit based on the content of the set image.
【請求項4】 前記選択手段は、画像の内容としてテキ
ストが設定されている場合には前記第1の傾斜画像補正
手段を選択し、テキスト以外の画像の内容が設定されて
いる場合には、前記第2の傾斜画像補正手段を選択する
ことを特徴とする請求項1記載の傾斜画像補正装置。
4. The selecting means selects the first tilt image correcting means when text is set as the content of the image, and selects the first tilted image correcting means when the content of the image other than the text is set. 2. The tilt image correction device according to claim 1, wherein the second tilt image correction unit is selected.
【請求項5】 前記選択手段は、画像のヒストグラムを
作成して前記原稿のエッジラインを検出する検出手段を
含み、該検出手段により該エッジラインが検出された場
合には前記第2の傾斜画像補正手段を選択し、該エッジ
ラインが検出されなかった場合には前記第1の傾斜画像
補正手段を選択することを特徴とする請求項1記載の傾
斜画像補正装置。
5. The image processing apparatus according to claim 1, wherein the selection unit includes a detection unit configured to generate a histogram of an image to detect an edge line of the document, and to detect the edge line by the detection unit when the detection unit detects the edge line. 2. The tilt image correction device according to claim 1, wherein a correction unit is selected, and when the edge line is not detected, the first tilt image correction unit is selected.
【請求項6】 前記選択手段は、画像の中から文字を抽
出する抽出手段を含み、該抽出手段により文字が抽出さ
れた場合には前記第1の傾斜画像補正手段を選択し、文
字が検出されなかった場合には前記第2の傾斜画像補正
手段を選択することを特徴とする請求項1記載の傾斜画
像補正装置。
6. The selecting means includes an extracting means for extracting a character from an image, and when a character is extracted by the extracting means, selects the first tilt image correcting means and detects a character. 2. The tilt image correction device according to claim 1, wherein the second tilt image correction unit is selected when the tilt image correction is not performed.
【請求項7】 画像の傾きを補正する前に画像の大きさ
に応じて傾き補正を中止するか否かを指示する指示手段
を含むことを特徴とする請求項1記載の傾斜画像補正装
置。
7. The tilt image correcting apparatus according to claim 1, further comprising an instruction unit for instructing whether to stop the tilt correction according to the size of the image before correcting the tilt of the image.
【請求項8】 前記指示手段は、画像の大きさが所定以
上の場合に、傾き補正に長時間を要する旨のメッセージ
を表示する表示手段を含むことを特徴とする請求項1記
載の傾斜画像補正装置。
8. The tilt image according to claim 1, wherein the instruction unit includes a display unit that displays a message indicating that it takes a long time to correct the tilt when the size of the image is equal to or larger than a predetermined value. Correction device.
【請求項9】 前記傾斜画像補正装置は、原稿から光学
的に読取られた画像情報を光電変換、及びデジタル変換
して画像信号として出力する画像読取装置に接続された
コンピュータ装置に搭載されていることを特徴とする請
求項1記載の傾斜画像補正装置。
9. The computer according to claim 1, wherein the tilt image correction device is mounted on a computer connected to an image reading device that performs photoelectric conversion and digital conversion of image information optically read from a document and outputs the image information as an image signal. The tilt image correction device according to claim 1, wherein:
【請求項10】 前記傾斜画像補正装置は、原稿から光
学的に読取られた画像情報を光電変換、及びデジタル変
換して画像信号として出力する画像読取装置に搭載され
ていることを特徴とする請求項1記載の傾斜画像補正装
置。
10. The image reading apparatus according to claim 1, wherein the tilt image correction device is mounted on an image reading device that performs photoelectric conversion and digital conversion of image information optically read from a document and outputs the image information as an image signal. Item 3. The tilt image correction device according to Item 1.
【請求項11】 原稿から光学的に読取られた画像情報
を光電変換、及びデジタル変換して得られた画像信号の
前記原稿に対する傾きを補正する傾斜画像補正方法にお
いて、 補正方式の異なる複数の傾斜画像補正工程と、 前記複数の傾斜画像補正工程の中から画像の内容に応じ
て適切な傾斜画像補正工程を選択する選択工程と、 を備えたことを特徴とする傾斜画像補正方法。
11. A tilt image correction method for correcting a tilt of an image signal obtained by photoelectrically converting and digitally converting image information optically read from a document with respect to the document, wherein a plurality of tilts having different correction methods are provided. A tilt image correcting method, comprising: an image correcting step; and a selecting step of selecting an appropriate tilt image correcting step from the plurality of tilt image correcting steps according to the content of an image.
【請求項12】 前記複数の傾斜画像補正工程は、文字
の傾きを検出して画像の傾きを補正する第1の傾斜画像
補正工程と、前記原稿のエッジラインの傾きを検出して
画像の傾きを補正する第2の傾斜画像補正工程とを含む
ことを特徴とする請求項11記載の傾斜画像補正方法。
12. The method according to claim 12, wherein the plurality of skewed image correction steps include: a first skewed image correction step of detecting a skew of a character to correct the skew of the image; 12. The tilt image correction method according to claim 11, further comprising a second tilt image correction step of correcting the tilt image.
【請求項13】 前記選択工程は、設定された画像の内
容に基づいて傾斜画像補正工程を選択することを特徴と
する請求項11記載の傾斜画像補正方法。
13. The tilt image correction method according to claim 11, wherein the selection step selects a tilt image correction step based on the content of the set image.
【請求項14】 前記選択工程は、画像の内容としてテ
キストが設定されている場合には前記第1の傾斜画像補
正工程を選択し、テキスト以外の画像の内容が設定され
ている場合には、前記第2の傾斜画像補正工程を選択す
ることを特徴とする請求項11記載の傾斜画像補正方
法。
14. The selecting step selects the first tilted image correction step when text is set as the content of the image, and selects the first tilted image correction step when the content of the image other than the text is set. The tilt image correction method according to claim 11, wherein the second tilt image correction step is selected.
【請求項15】 前記選択工程は、画像のヒストグラム
を作成して前記原稿のエッジラインを検出する検出工程
を含み、該検出工程により該エッジラインが検出された
場合には前記第2の傾斜画像補正工程を選択し、該エッ
ジラインが検出されなかった場合には前記第1の傾斜画
像補正工程を選択することを特徴とする請求項11記載
の傾斜画像補正方法。
15. The method according to claim 1, wherein the selecting step includes a detecting step of creating an image histogram and detecting an edge line of the document, and when the edge line is detected by the detecting step, the second tilted image is detected. 12. The tilt image correction method according to claim 11, wherein a correction step is selected, and when the edge line is not detected, the first tilt image correction step is selected.
【請求項16】 前記選択工程は、画像の中から文字を
抽出する抽出工程を含み、該抽出工程により文字が抽出
された場合には前記第1の傾斜画像補正工程を選択し、
文字が検出されなかった場合には前記第2の傾斜画像補
正工程を選択することを特徴とする請求項11記載の傾
斜画像補正方法。
16. The method according to claim 1, wherein the selecting step includes an extracting step of extracting a character from an image, and when the extracting step extracts a character, selecting the first inclined image correcting step;
12. The tilt image correction method according to claim 11, wherein if no character is detected, the second tilt image correction step is selected.
【請求項17】 画像の傾きを補正する前に画像の大き
さに応じて傾き補正を中止するか否かを指示する指示工
程を含むことを特徴とする請求項11記載の傾斜画像補
正方法。
17. The tilt image correction method according to claim 11, further comprising an instruction step of instructing whether to stop the tilt correction according to the size of the image before correcting the tilt of the image.
【請求項18】 前記指示工程は、画像の大きさが所定
以上の場合に、傾き補正に長時間を要する旨のメッセー
ジを表示する表示工程を含むことを特徴とする請求項1
1記載の傾斜画像補正方法。
18. The method according to claim 1, wherein the instructing step includes a displaying step of, when the size of the image is equal to or larger than a predetermined value, displaying a message that it takes a long time to correct the tilt.
1. The tilt image correction method according to 1.
【請求項19】 前記傾斜画像補正工程、選択工程は、
原稿から光学的に読取られた画像情報を光電変換、及び
デジタル変換して画像信号として出力する画像読取装置
に接続されたコンピュータ装置に搭載されていることを
特徴とする請求項11記載の傾斜画像補正方法。
19. The tilt image correcting step and the selecting step,
12. The tilted image according to claim 11, wherein the tilted image is mounted on a computer connected to an image reading device that photoelectrically and digitally converts image information optically read from a document and outputs the converted image signal. Correction method.
【請求項20】 前記傾斜画像補正工程、選択工程は、
原稿から光学的に読取られた画像情報を光電変換、及び
デジタル変換して画像信号として出力する画像読取装置
に搭載されていることを特徴とする請求項11記載の傾
斜画像補正方法。
20. The tilt image correcting step and the selecting step,
12. The tilt image correction method according to claim 11, wherein the tilt information correction method is mounted on an image reading device that photoelectrically converts and digitally converts image information optically read from a document and outputs the image information as an image signal.
【請求項21】 原稿から光学的に読取られた画像情報
を光電変換、及びデジタル変換して得られた画像信号の
前記原稿に対する傾きを補正するためのプログラムを記
憶する記憶媒体であって、前記プログラムは、 補正方式の異なる複数の傾斜画像補正ルーチンと、 前記複数の傾斜画像補正ルーチンの中から画像の内容に
応じて適切な傾斜画像補正ルーチンを選択する選択ルー
チンと、 を含むことを特徴とする記憶媒体。
21. A storage medium for storing a program for correcting a tilt of an image signal obtained by photoelectrically converting and digitally converting image information optically read from a document with respect to the document, wherein: The program includes: a plurality of tilt image correction routines having different correction methods; and a selection routine for selecting an appropriate tilt image correction routine from the plurality of tilt image correction routines according to the content of an image. Storage media.
【請求項22】 前記複数の傾斜画像補正ルーチンは、
文字の傾きを検出して画像の傾きを補正する第1の傾斜
画像補正ルーチンと、前記原稿のエッジラインの傾きを
検出して画像の傾きを補正する第2の傾斜画像補正ルー
チンとを含むことを特徴とする請求項21記載の記憶媒
体。
22. The plurality of tilt image correction routines,
A first skewed image correction routine for detecting the skew of characters and correcting the skew of the image, and a second skewed image correction routine for detecting the skew of the edge line of the document and correcting the skew of the image 22. The storage medium according to claim 21, wherein:
【請求項23】 前記選択ルーチンは、設定された画像
の内容に基づいて傾斜画像補正ルーチンを選択すること
を特徴とする請求項21記載の記憶媒体。
23. The storage medium according to claim 21, wherein said selection routine selects an inclined image correction routine based on the contents of a set image.
【請求項24】 前記選択ルーチンは、画像の内容とし
てテキストが設定されている場合には前記第1の傾斜画
像補正ルーチンを選択し、テキスト以外の画像の内容が
設定されている場合には、前記第2の傾斜画像補正ルー
チンを選択することを特徴とする請求項21記載の記憶
媒体。
24. The selection routine selects the first tilted image correction routine when text is set as the content of an image, and selects the first tilted image correction routine when the content of an image other than text is set. 22. The storage medium according to claim 21, wherein the second tilt image correction routine is selected.
【請求項25】 前記選択ルーチンは、画像のヒストグ
ラムを作成して前記原稿のエッジラインを検出する検出
ルーチンを含み、該検出ルーチンにより該エッジライン
が検出された場合には前記第2の傾斜画像補正ルーチン
を選択し、該エッジラインが検出されなかった場合には
前記第1の傾斜画像補正ルーチンを選択することを特徴
とする請求項21記載の記憶媒体。
25. The selection routine includes a detection routine for creating an image histogram and detecting an edge line of the original, and when the edge line is detected by the detection routine, the second inclined image 22. The storage medium according to claim 21, wherein a correction routine is selected, and when the edge line is not detected, the first tilt image correction routine is selected.
【請求項26】 前記選択ルーチンは、画像の中から文
字を抽出する抽出ルーチンを含み、該抽出ルーチンによ
り文字が抽出された場合には前記第1の傾斜画像補正ル
ーチンを選択し、文字が検出されなかった場合には前記
第2の傾斜画像補正ルーチンを選択することを特徴とす
る請求項21記載の記憶媒体。
26. The selection routine includes an extraction routine for extracting a character from an image. When a character is extracted by the extraction routine, the first inclination image correction routine is selected, and a character is detected. 22. The storage medium according to claim 21, wherein the second tilt image correction routine is selected when the second tilt image correction routine is not performed.
【請求項27】 画像の傾きを補正する前に画像の大き
さに応じて傾き補正を中止するか否かを指示する指示ル
ーチンを含むことを特徴とする請求項21記載の記憶媒
体。
27. The storage medium according to claim 21, further comprising an instruction routine for instructing whether to stop the inclination correction according to the size of the image before correcting the inclination of the image.
【請求項28】 前記指示ルーチンは、画像の大きさが
所定以上の場合に、傾き補正に長時間を要する旨のメッ
セージを表示する表示ルーチンを含むことを特徴とする
請求項21記載の記憶媒体。
28. The storage medium according to claim 21, wherein said instruction routine includes a display routine for displaying a message that it takes a long time to correct the tilt when the size of the image is equal to or larger than a predetermined value. .
【請求項29】 前記傾斜画像補正ルーチン、選択ルー
チンは、原稿から光学的に読取られた画像情報を光電変
換、及びデジタル変換して画像信号として出力する画像
読取装置に接続されたコンピュータ装置により実行され
ることを特徴とする請求項21記載の記憶媒体。
29. The tilt image correction routine and the selection routine are executed by a computer connected to an image reading device that performs photoelectric conversion and digital conversion of image information optically read from a document and outputs the image information as an image signal. The storage medium according to claim 21, wherein the storage medium is used.
【請求項30】 前記傾斜画像補正ルーチン、選択ルー
チンは、原稿から光学的に読取られた画像情報を光電変
換、及びデジタル変換して画像信号として出力する画像
読取装置により実行されることを特徴とする請求項21
記載の記憶媒体。
30. The tilt image correction routine and the selection routine are executed by an image reading device that performs photoelectric conversion and digital conversion of image information optically read from a document and outputs the image information as an image signal. Claim 21
The storage medium according to the above.
JP10124320A 1998-04-17 1998-04-17 Inclined image corrector, inclined image correction method and storage medium Pending JPH11308437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10124320A JPH11308437A (en) 1998-04-17 1998-04-17 Inclined image corrector, inclined image correction method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10124320A JPH11308437A (en) 1998-04-17 1998-04-17 Inclined image corrector, inclined image correction method and storage medium

Publications (1)

Publication Number Publication Date
JPH11308437A true JPH11308437A (en) 1999-11-05

Family

ID=14882426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10124320A Pending JPH11308437A (en) 1998-04-17 1998-04-17 Inclined image corrector, inclined image correction method and storage medium

Country Status (1)

Country Link
JP (1) JPH11308437A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009077054A (en) * 2007-09-19 2009-04-09 Ricoh Co Ltd Image processor and image-forming device
US7929176B2 (en) 2007-02-27 2011-04-19 Sharp Kabushiki Kaisha Image processing apparatus
JP5698396B1 (en) * 2014-03-05 2015-04-08 株式会社Pfu Image reading apparatus, image reading method, and program
CN104811571A (en) * 2014-01-29 2015-07-29 京瓷办公信息***株式会社 Image processing apparatus, image forming apparatus, mobile terminal apparatus, and image processing system
US11295415B2 (en) 2016-08-17 2022-04-05 Hewlett-Packard Development Company, L.P. Image forming apparatus, scanned image correction method thereof, and non-transitory computer-readable recording medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7929176B2 (en) 2007-02-27 2011-04-19 Sharp Kabushiki Kaisha Image processing apparatus
JP2009077054A (en) * 2007-09-19 2009-04-09 Ricoh Co Ltd Image processor and image-forming device
CN104811571A (en) * 2014-01-29 2015-07-29 京瓷办公信息***株式会社 Image processing apparatus, image forming apparatus, mobile terminal apparatus, and image processing system
JP5698396B1 (en) * 2014-03-05 2015-04-08 株式会社Pfu Image reading apparatus, image reading method, and program
CN104902120A (en) * 2014-03-05 2015-09-09 株式会社Pfu IMAGE-READING APPARATUS and IMAGE-READING METHOD
US9544457B2 (en) 2014-03-05 2017-01-10 Pfu Limited Image-reading apparatus, image-reading method, program, and recording medium
CN104902120B (en) * 2014-03-05 2018-02-16 株式会社Pfu Image read-out and image reading method
US11295415B2 (en) 2016-08-17 2022-04-05 Hewlett-Packard Development Company, L.P. Image forming apparatus, scanned image correction method thereof, and non-transitory computer-readable recording medium
EP3487159B1 (en) * 2016-08-17 2023-08-16 Hewlett-Packard Development Company, L.P. Image forming apparatus, scanned image correction method thereof, and non-transitory computer-readable recording medium

Similar Documents

Publication Publication Date Title
US6449397B1 (en) Image processing system for scanning a rectangular document
US20050251016A1 (en) Image acquiring device and method or rotating images
US6628416B1 (en) Method and user interface for performing a scan operation for a scanner coupled to a computer system
US8285078B2 (en) Image processing system
JP2008113075A (en) Image processor and control method thereof
JP2007336143A (en) Image processing apparatus
JP2006261993A (en) Scanner system and method for detecting corrected part of scan object
EP3358816B1 (en) Image-reading device and image-forming device
JP2009303184A (en) Image forming apparatus, control method thereof, and computer program
JPH11308437A (en) Inclined image corrector, inclined image correction method and storage medium
US20070057152A1 (en) Image forming apparatus, image processing apparatus, image output apparatus, portable terminal, image processing system, image forming method, image processing method, image output method, image forming program, image processing program, and image output program
US20180091671A1 (en) Image Reading Apparatus and Image Reading Method That Simply Detect Document Direction in Reading of Book Document, and Recording Medium Therefor
US20050219576A1 (en) Image scanning method and apparatus
CN102542266B (en) Image processing equipment and control method thereof
JP4185625B2 (en) Image processing method, apparatus, and storage medium
JP2004104226A (en) Image processing method and apparatus therefor
US7457010B2 (en) System and method for fast scanning
KR100581519B1 (en) System for scanning image to set scanned image as wallpaper and method thereof
JP2002190940A (en) Image-processor
JPH09238251A (en) Image processing unit and its method
KR100484176B1 (en) Method and apparatus for controlling an image display
CN100418342C (en) Image pickup device having file image rotating function and pickup method thereof
JPH08202887A (en) Device and method for processing picture
KR20220028334A (en) Scanned image rotation method using deep learning
JP2963042B2 (en) Character recognition result display method and character recognition device