JP2003187249A - Method for detecting and correcting inclination of image - Google Patents

Method for detecting and correcting inclination of image

Info

Publication number
JP2003187249A
JP2003187249A JP2001384713A JP2001384713A JP2003187249A JP 2003187249 A JP2003187249 A JP 2003187249A JP 2001384713 A JP2001384713 A JP 2001384713A JP 2001384713 A JP2001384713 A JP 2001384713A JP 2003187249 A JP2003187249 A JP 2003187249A
Authority
JP
Japan
Prior art keywords
image
inclination
images
detecting
character
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
JP2001384713A
Other languages
Japanese (ja)
Inventor
Katsushi Morimoto
勝士 森本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2001384713A priority Critical patent/JP2003187249A/en
Publication of JP2003187249A publication Critical patent/JP2003187249A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To exactly detect inclination of an image by enhancing accuracy of feature extraction useful for calculation of an inclination angle of the image. <P>SOLUTION: A plurality of reduced images with different reduction ratio are prepared and the inclination of the images is detected by using information obtained from the reduced images. Characters on documents can be exactly recognized by correcting the inclination of the images based on a detection result by a method for detecting the inclination of the images. The method for detecting the inclination of the images or a method for correcting the inclination of the images are executed conveniently and with satisfactory reproducibility by manufacturing a recording medium in which the method for detecting the inclination of the images or the method for correcting the inclination of the images are recorded, setting the recording medium in a computer system and reading a program recorded in the recording medium. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は文書処理、文字認
識、ファイリング及び文書配信の技術分野に係るもの
で、具体的には、画像の傾き検出方法及び装置、画像の
傾き補正方法及び装置並びに、これら検出方法を記録し
た記録媒体及びこれら補正方法を記録した記録媒体に関
するものである。本発明の応用分野としては文字認識の
前処理、電子ファイリング、ネットワーク配送等が挙げ
られる。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the technical field of document processing, character recognition, filing, and document distribution, and more specifically, it relates to an image skew detection method and apparatus, an image skew correction method and apparatus, and The present invention relates to a recording medium recording these detection methods and a recording medium recording these correction methods. Application fields of the present invention include preprocessing of character recognition, electronic filing, network delivery and the like.

【0002】[0002]

【従来の技術】文字認識装置において文書類の画像処理
する場合、入力された画像が傾いていると認識率等に悪
い影響がある。複写機やファクシミリ装置、スキャナ等
の画像入力装置においても、入力画像の傾きは好ましく
ない。
2. Description of the Related Art When an image of a document is processed by a character recognition device, the recognition rate is adversely affected if the input image is tilted. Even in an image input device such as a copying machine, a facsimile device, or a scanner, the inclination of the input image is not preferable.

【0003】従来、文字認識技術として、特開平7−1
41465号公報(発明の名称:文書画像の傾き検出方
法)や、特開平7−105310号公報(発明の名称:
画像傾き検出方法及び表処理方法)に開示されたものが
ある。
Conventionally, as a character recognition technique, Japanese Patent Laid-Open No. 7-1
Japanese Patent No. 41465 (Title of Invention: Document Image Tilt Detection Method) and Japanese Patent Laid-Open No. 7-105310 (Title of Invention:
Image tilt detection method and table processing method).

【0004】そして、特開平7−141465号公報に
開示された文書画像の傾き検出方法は、その特許請求の
範囲にあるように、圧縮された文書画像から黒画素連結
成分の外接矩形を求め、該外接矩形から文字列に相当す
る矩形を判別し、該判別された各矩形において一乃至複
数の基準点を設定し、近接矩形の基準点間を結ぶ直線の
傾きのヒストグラムに基づいて画像の傾きを検出する方
法において、横方向の近接画矩形のヒストグラムと縦方
向の近接矩形のヒストグラムを作成し、該作成された各
ヒストグラムから傾きと確信度を算出し、該算出された
確信度とヒストグラムから得られる情報に基づいて何れ
か一方の傾きを用いることを特徴とする。このように上
記公報の技術では原稿画像を圧縮し、この圧縮画像から
黒画素連結成分を抽出し、文字列成分を検出することに
より傾き角度を算出している。
The document image inclination detecting method disclosed in Japanese Patent Application Laid-Open No. 7-141465 obtains a circumscribed rectangle of a black pixel connected component from a compressed document image, as claimed in the claims. A rectangle corresponding to a character string is discriminated from the circumscribed rectangle, one or a plurality of reference points are set in each of the discriminated rectangles, and the inclination of the image is determined based on the histogram of the inclination of the straight line connecting the reference points of the adjacent rectangles. In the method for detecting, a histogram of a horizontal proximity rectangle and a histogram of a vertical proximity rectangle are created, a slope and a certainty factor are calculated from each of the created histograms, and the calculated certainty factor and the histogram are used. It is characterized in that either one of the slopes is used based on the obtained information. As described above, in the technique of the above publication, the original image is compressed, the black pixel connected component is extracted from the compressed image, and the character string component is detected to calculate the tilt angle.

【0005】一方、特開平7−105310号公報に記
載された画像傾き検出方法は、その特許請求の範囲にあ
るように、入力画像上の一定値以上の長さの黒ランを抽
出し、抽出した黒ランで予め定められた距離内にある黒
ランを、それら全てを包含する矩形に統合し、この黒ラ
ンの統合の際に統合される黒ランの相互の位置関係によ
って入力画像の傾きの方向を判定することを特徴とす
る。このように上記公報の技術では、ある一定長さ以上
の黒ランを抽出し、近傍の黒ランを統合することで罫線
を抽出している。そして、この罫線の傾きを求めること
でスキュー補正(傾きの補正)を行っている。
On the other hand, the image inclination detecting method described in Japanese Patent Laid-Open No. 7-105310 extracts and extracts a black run having a length equal to or more than a certain value on the input image, as claimed in the claims. The black runs within a predetermined distance of the black runs are integrated into a rectangle that includes all of them, and the inclination of the input image is determined by the mutual positional relationship of the black runs that are integrated when this black run is integrated. It is characterized by determining the direction. As described above, in the technique of the above publication, a black run having a certain length or more is extracted, and neighboring black runs are integrated to extract the ruled line. Then, skew correction (correction of inclination) is performed by obtaining the inclination of the ruled line.

【0006】また、上記特開平7−105310号公報
の図11には、画像の傾きの方向及び傾きの角度を検出
するようにしたシステムに、画像補正部(1002)、
補正2値イメージメモリ(1003)、枠認識部(10
04)、枠座標メモリ(1005)、枠内文字抽出部
(1006)及び文字認識部(1007)を付加したシ
ステム構成からなる画像傾き補正装置が記載されてい
る。そして、この報画像傾き補正装置では、傾き検出部
(911)から出力された傾きの方向及び角度の情報に
応じて、画像の傾きと逆方向へ、傾きの角度と同じ角度
だけ、2値イメージメモリ(902)内の2値イメージ
データを回転させることによって、傾きを補正した2値
イメージを作成し、これを補正2値イメージメモリ(1
003)に格納するようにしている。このようにして、
補正2値イメージメモリ(1003)内の文字画像を文
字認識部(1007)に認識させることにより、文書類
上の文字を正確に認識することができる。なお、( )
内の数字は、上記公報の図11に記載された符号であ
る。
Further, in FIG. 11 of Japanese Patent Laid-Open No. 7-105310, an image correction unit (1002) is provided in a system that detects the direction and angle of inclination of an image.
Corrected binary image memory (1003), frame recognition unit (10
04), the frame coordinate memory (1005), the in-frame character extraction unit (1006), and the character recognition unit (1007) are added to the image tilt correction device. Then, according to the information image inclination correction device, in accordance with the information of the direction and the angle of the inclination output from the inclination detection unit (911), the binary image is formed in the direction opposite to the inclination of the image by the same angle as the inclination angle. By rotating the binary image data in the memory (902), a binary image in which the inclination is corrected is created, and the corrected binary image memory (1
003). In this way
By causing the character recognition unit (1007) to recognize the character image in the corrected binary image memory (1003), the character on the document can be accurately recognized. Note that ()
The numerals inside are the reference numerals described in FIG. 11 of the above publication.

【0007】また、上記特開平7−141465号公
報、特開平7−105310号公報にそれぞれ開示され
た技術では、予め縮小画像を作成し、この縮小画像に所
定の処理を施すことで、処理量を削減することが可能に
なる。
Further, in the techniques disclosed in Japanese Patent Laid-Open No. 7-141465 and Japanese Patent Laid-Open No. 7-105310, a reduced image is created in advance and a predetermined process is performed on the reduced image, thereby reducing the processing amount. Can be reduced.

【0008】[0008]

【発明が解決しようとする課題】ところが、これら特許
公報の技術にあっては、作成した縮小画像の縮小率が適
切でなかった場合、傾き角度算出に有用な特徴抽出の精
度が低下し、傾き角度の算出を誤ってしまうという不具
合がある。
However, in the techniques disclosed in these patent publications, if the reduction ratio of the created reduced image is not appropriate, the accuracy of feature extraction useful for calculating the tilt angle decreases, and There is a problem that the angle is erroneously calculated.

【0009】本発明は、従来技術の上記問題点に鑑みな
されたもので、その目的は、縮小率の異なる複数の縮小
画像を生成することで、傾き角度算出に有用な特徴抽出
の精度を向上させ、正確な画像の傾き検出を実現させる
ことにある。
The present invention has been made in view of the above problems of the prior art, and an object thereof is to generate a plurality of reduced images having different reduction ratios to improve the accuracy of feature extraction useful for calculating the tilt angle. This is to realize accurate image tilt detection.

【0010】[0010]

【課題を解決するための手段】請求項1記載の発明は、
縮小画像を作成し、この縮小画像から得られた情報を利
用して画像の傾きを検出する方法において、縮小率の異
なる複数の縮小画像を用いることを特徴とする画像の傾
き検出方法である。
The invention according to claim 1 is
A method of detecting a tilt of an image using a reduced image created by using information obtained from the reduced image, wherein a plurality of reduced images having different reduction ratios are used.

【0011】請求項2記載の発明は、文書原稿画像を傾
き検出の対象とすることを特徴とする請求項1記載の画
像の傾き検出方法である。請求項3記載の発明は、図面
原稿画像を傾き検出の対象とすることを特徴とする請求
項1記載の画像の傾き検出方法である。請求項4記載の
発明は、前記縮小画像から得られた情報が、文字又は文
字列に関する情報であることを特徴とする請求項1,2
又は3記載の画像の傾き検出方法である。請求項5記載
の発明は、前記文字又は文字列に関する情報が、該文字
又は文字列の位置・大きさ・並びの少なくとも一つを含
むことを特徴とする請求項4記載の画像の傾き検出方法
である。請求項6記載の発明は、前記縮小画像から得ら
れた情報が、直線成分に関する情報であることを特徴と
する請求項1,2又は3記載の画像の傾き検出方法であ
る。
According to a second aspect of the invention, there is provided the image inclination detecting method according to the first aspect, wherein the document original image is the object of inclination detection. The invention according to claim 3 is the method for detecting an inclination of an image according to claim 1, wherein the drawing original image is an object of inclination detection. The invention according to claim 4 is characterized in that the information obtained from the reduced image is information regarding a character or a character string.
Alternatively, the image inclination detection method described in 3 is provided. The invention according to claim 5 is characterized in that the information regarding the character or character string includes at least one of the position, size, and arrangement of the character or character string. Is. The invention according to claim 6 is the image inclination detecting method according to claim 1, wherein the information obtained from the reduced image is information regarding a linear component.

【0012】請求項7記載の発明は、請求項1〜6のい
ずれか記載の画像の傾き検出方法による検出結果によ
り、画像の傾きを補正することを特徴とする画像の傾き
補正方法である。
According to a seventh aspect of the present invention, there is provided an image inclination correction method characterized in that the image inclination is corrected based on the detection result obtained by the image inclination detection method according to any one of the first to sixth aspects.

【0013】請求項8記載の発明は、同一の読み取り対
象に対し、読み取り解像度の異なる複数の画像を用いて
傾きを検出することを特徴とする画像の傾き検出方法で
ある。
An eighth aspect of the present invention is an image inclination detection method, wherein the inclination is detected for the same reading target by using a plurality of images having different reading resolutions.

【0014】請求項9記載の発明は、文書原稿画像を傾
き検出の対象とすることを特徴とする請求項8記載の画
像の傾き検出方法である。請求項10記載の発明は、図
面原稿画像を傾き検出の対象とすることを特徴とする請
求項8記載の画像の傾き検出方法である。請求項11記
載の発明は、前記読み取り解像度の異なる複数の画像か
ら、文字又は文字列に関する情報を得ることを特徴とす
る請求項8,9又は10記載の画像の傾き検出方法であ
る。請求項12記載の発明は、前記文字又は文字列に関
する情報が、文字又は文字列の位置・大きさ・並びの少
なくとも一つを含むことを特徴とする請求項11記載の
画像の傾き検出方法である。請求項13記載の発明は、
前記読み取り解像度の異なる複数の画像から直線成分に
関する情報を得ることを特徴とする請求項8,9又は1
0記載の画像の傾き検出方法である。
According to a ninth aspect of the invention, there is provided the image inclination detecting method according to the eighth aspect, wherein the document original image is the object of inclination detection. According to a tenth aspect of the present invention, there is provided the image inclination detection method according to the eighth aspect, wherein the drawing original image is a target of inclination detection. The invention according to claim 11 is the method for detecting an inclination of an image according to claim 8, 9 or 10, characterized in that information about a character or a character string is obtained from a plurality of images having different reading resolutions. The invention according to claim 12 is characterized in that the information regarding the character or character string includes at least one of the position, size, and arrangement of the character or character string. is there. The invention according to claim 13 is
10. Information regarding a linear component is obtained from the plurality of images having different reading resolutions.
0 is a method for detecting the inclination of an image.

【0015】請求項14記載の発明は、請求項8〜13
のいずれか記載の画像の傾き検出方法による検出結果に
より、傾きを補正することを特徴とする画像の傾き補正
方法である。
The invention according to claim 14 is the invention according to claims 8 to 13.
The image inclination correction method is characterized in that the inclination is corrected based on the detection result of the image inclination detection method described above.

【0016】請求項15記載の発明は、請求項1〜6,
8〜13のいずれか記載の画像の傾き検出方法を実現す
るようにしたことを特徴とする画像の傾き検出装置であ
る。
The invention according to claim 15 is the invention as defined in claims 1-6.
An image inclination detecting device, characterized in that the image inclination detecting method according to any one of 8 to 13 is realized.

【0017】請求項16記載の発明は、請求項7又は1
4記載の画像の傾き補正方法を実現するようにしたこと
を特徴とする画像の傾き補正装置である。
The invention according to claim 16 is the invention according to claim 7 or 1.
An image tilt correction device is characterized in that the image tilt correction method described in 4 is realized.

【0018】請求項17記載の発明は、請求項1〜6,
8〜13のいずれか記載の画像の傾き検出方法を記録し
たことを特徴とする記録媒体である。
The invention described in claim 17 is,
It is a recording medium characterized by recording the image inclination detecting method described in any one of 8 to 13.

【0019】請求項18記載の発明は、請求項7又は1
4記載の画像の傾き補正方法を記録したことを特徴とす
る記録媒体である。
The invention according to claim 18 is claim 7 or 1.
4 is a recording medium on which the image inclination correction method described in 4 is recorded.

【0020】[0020]

【発明の実施の形態】以下、本発明の実施の形態を、図
面を参照しながら説明する。 第1の実施の形態 本実施の形態は、請求項1,8,15に係るものであ
り、その全体構成は図1のブロック図に示すとおりであ
る。この図に記載した符号について説明すると101は
画像入力手段、102は撮像解像度決定手段、103は
画像縮小率決定手段、104は画像縮小手段、105は
特徴抽出手段、106は画像傾き算出手段、107はデ
ータ記憶部、108は各処理の制御部、109はデータ
転送路および制御通信路である。また、全体の処理の流
れを図2に示す。以下、図2に沿って説明を進める。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. First Embodiment The present embodiment relates to claims 1, 8 and 15, and the overall configuration is as shown in the block diagram of FIG. Numerals shown in this figure will be described. 101 is an image input means, 102 is an imaging resolution determination means, 103 is an image reduction rate determination means, 104 is an image reduction means, 105 is a feature extraction means, 106 is an image inclination calculation means, 107. Is a data storage unit, 108 is a control unit for each processing, and 109 is a data transfer path and a control communication path. Further, the flow of the entire processing is shown in FIG. Hereinafter, the description will proceed with reference to FIG.

【0021】まず、画像入力手段101によって原稿画
像を得る(ステップS201)。この画像入力手段はス
キャナなどでもよく、また既に電子ファイリングされて
いるものを利用してもよい。撮像は2値で行ってもよい
が、カラー、グレー多値でも差し支えない。2値以外の
場合は2値画像に変換を行えばよい。カラー、グレー多
値から2値への変換は公知の手法を用いればよい。
First, a document image is obtained by the image input means 101 (step S201). The image input means may be a scanner or the like, or may be one that has already been electronically filed. Imaging may be performed in binary, but multi-value in color and gray is also acceptable. If it is not binary, it may be converted into a binary image. A well-known method may be used for conversion from color / gray multi-value to binary.

【0022】次に、画像縮小率決定手段103で入力画
像の縮小率を決定する(ステップS203)。この縮小
率に従って画像縮小手段104で入力画像の縮小を行う
(ステップS204)。これらステップS203,S2
04の一連の処理を、各縮小率ごとに行う。ステップS
203の縮小率の決定は、例えば「1/4および1/8
とする」のように、前もって決めてもよいし、入力画像
から所定の計算による判定を行い、「1/4,1/8,
1/16の3種類」のように、縮小率及び縮小率の数を
決めてもよい。
Next, the image reduction rate determining means 103 determines the reduction rate of the input image (step S203). The image reducing means 104 reduces the input image according to the reduction ratio (step S204). These steps S203, S2
The series of processes of 04 are performed for each reduction rate. Step S
The reduction ratio of 203 is determined by, for example, "1/4 and 1/8".
It may be determined in advance, such as ",", or "1/4, 1/8,
The reduction ratio and the number of reduction ratios may be determined as in “1/16 three types”.

【0023】また、画像入力手段101が解像度を変更
し、再入力が可能(スキャナからの入力など)である場
合には、ステップS201,S203,S204の一連
の処理の代わりに以下のステップS201及びS202
からなる一連の処理を行ってもよい。すなわち、撮像解
像度決定手段102で入力画像の撮像解像度を決定し
(ステップS202)、次にこの解像度に従って撮像
し、画像の入力を行う(ステップS201)。これらス
テップS202,S201の一連の処理を各解像度ごと
に行う。ステップS202の解像度の決定は、例えば
「50dpiおよび100dpiとする」のように前も
って決めておいてもよいし、最初の1画像のみを指定解
像度で読み込んだ後、その入力画像から所定の計算によ
る判定を行い「25dpi,50dpi,100dpi
の3種類」のように解像度及び解像度の数を決めてもよ
い。
Further, when the image input means 101 can change the resolution and can re-input (input from the scanner, etc.), the following steps S201 and S203 instead of the series of steps S201, S203 and S204. S202
You may perform the series of processes which consist of. That is, the image-capturing resolution determining unit 102 determines the image-capturing resolution of the input image (step S202), then captures an image according to this resolution and inputs the image (step S201). The series of processes in steps S202 and S201 are performed for each resolution. The resolution in step S202 may be determined in advance, for example, "50 dpi and 100 dpi", or only the first one image is read at the designated resolution, and then the predetermined determination is made from the input image. "25 dpi, 50 dpi, 100 dpi
And the number of resolutions may be determined.

【0024】以下、説明の整合を取るため、特に断りが
ない限り、指定解像度で入力された最初の1画像を入力
画像と呼び、ステップS202により決定された解像度
で読み込まれた画像を、(入力画像を含めて)縮小画像
と呼ぶ(図2では左側の、矢印付き実線で示すパス)。
In order to make the description consistent, the first one image input at the designated resolution will be referred to as the input image unless otherwise specified, and the image read at the resolution determined in step S202 will be referred to as (input It is called a reduced image (including an image) (a path indicated by a solid line with an arrow on the left side in FIG. 2).

【0025】次に(図2では左右両側の、矢印付き実線
で示すパス)、特徴抽出手段105により縮小画像から
傾きを検出するための特徴抽出を行う(ステップS20
5)。特徴としては文字(列)や罫線などの直線成分の
ように、傾き検出処理で一般によく用いられているもの
でもよい。次に、画像傾き算出手段106で画像の傾き
を算出する(ステップS206)。これらステップS2
05,S206は特開平7−105310号公報や、特
開平7−141465号公報に記載された公知の方法を
用いてもよい。
Next (in FIG. 2, the paths shown by the solid lines with arrows on both the left and right sides), the feature extraction means 105 performs feature extraction for detecting the inclination from the reduced image (step S20).
5). The characteristic may be a straight line component such as a character (row) or a ruled line, which is commonly used in the inclination detection processing. Next, the image inclination calculating unit 106 calculates the image inclination (step S206). These steps S2
For 05 and S206, a known method described in JP-A No. 7-105310 or JP-A No. 7-141465 may be used.

【0026】特徴抽出手段105および画像傾き算出手
段106では、必要に応じて、同一の原稿画像に対する
複数の縮小画像からそれぞれ特徴を抽出し、それらを利
用して傾きを算出する。
The feature extracting means 105 and the image inclination calculating means 106 respectively extract features from a plurality of reduced images of the same original image, and use them to calculate the inclination.

【0027】なお、画像縮小率/撮像解像度の決定及び
縮小画像の再作成については、図2の破線矢印に示すタ
イミングで行うよう、処理を追加してもよい。すなわ
ち、特徴抽出や傾き検出の結果を受け、さらに別解像度
の特徴が必要と判断された場合は、新たに縮小画像を作
成してもよい。
The image reduction ratio / imaging resolution may be determined and the reduced image may be recreated at the timing shown by the broken line arrow in FIG. That is, if it is determined that a feature of another resolution is required after receiving the result of feature extraction or tilt detection, a reduced image may be newly created.

【0028】図3に示す原稿画像を1/4,1/16に
縮小した縮小画像をそれぞれ図4、図5に示す。ただ
し、縮小された画像は実際は小さくて見にくいので、そ
れぞれ同じ大きさになるよう、1画素の大きさを拡大し
て示している。ここで縮小画像の作成法は、特開平7−
141465号公報に従っているが(縮小率1/8を変
更)にしているが、他の方法でも差し支えない。
The reduced images obtained by reducing the original image shown in FIG. 3 to 1/4 and 1/16 are shown in FIGS. 4 and 5, respectively. However, since the reduced image is actually small and difficult to see, the size of one pixel is shown enlarged so that each image has the same size. Here, the method of creating the reduced image is described in Japanese Patent Laid-Open No. 7-
According to Japanese Patent No. 141465, the reduction ratio ⅛ is changed, but other methods may be used.

【0029】図3は原稿の直線部分を示しているが、こ
れは、かすれていて破線状態になっている。特開平7−
105310号公報の技術による直線検出を行った場
合、図4では直線が短い破線となっているため検出でき
ないが、図5では図4と異なる縮小率としているため抽
出が可能となる。
FIG. 3 shows a straight line portion of the document, which is faint and in a broken line state. JP-A-7-
When the straight line is detected by the technique of 105310, it cannot be detected because the straight line is a short broken line in FIG. 4, but it can be extracted in FIG. 5 because the reduction ratio is different from that in FIG.

【0030】このように、本発明では複数の縮小画像を
用いることで、従来技術において取り漏らしていた特長
を抽出することができる。なお、直線検出を行うために
は黒ランの長さ、近傍黒ランとの統合距離などのパラメ
ータを、一般の直線を検出する場合とは大きく異なる設
定にしなければならず、汎用性に欠けるものになる。な
お、撮像解像度を変えて撮像された画像を用いることに
より、縮小率の異なる縮小画像を用いる場合と同様の効
果を得ることができる。
As described above, according to the present invention, by using a plurality of reduced images, it is possible to extract the features which have been omitted in the prior art. Note that in order to detect a straight line, parameters such as the length of the black run and the integrated distance with the neighboring black run must be set to be significantly different from the case of detecting a general straight line, which lacks versatility. become. It should be noted that by using images captured with different imaging resolutions, it is possible to obtain the same effect as that when using reduced images with different reduction rates.

【0031】次に、図6に示す原稿画像(これは原稿の
文字部分)を1/4,1/16に縮小した縮小画像をそ
れぞれ図7、図8に示す。ただし、縮小された画像は実
際は小さくて見にくいので、それぞれ同じ大きさになる
よう、1画素の大きさを拡大して示している。ここで縮
小画像の作成法は、特開平7−141465号公報に記
載の公知技術に従ったもの(縮小率1/8を変更)にし
ているが、他の方法でも差し支えない。
Next, reduced images obtained by reducing the original image shown in FIG. 6 (this is the character portion of the original) to 1/4 and 1/16 are shown in FIGS. 7 and 8, respectively. However, since the reduced image is actually small and difficult to see, the size of one pixel is shown enlarged so that each image has the same size. Here, the method of creating the reduced image is according to the known technique described in Japanese Patent Laid-Open No. 7-141465 (change the reduction rate ⅛), but other methods may also be used.

【0032】特開平7−141465号公報による文字
検出を行った場合、図8では横に長い成分となり、文字
であるどうかが判定ができないが、図7では文字らしい
大きさの塊を捕らえることができ、文字検出が可能とな
る。直線成分の場合と同様、異なる縮小率、撮像解像度
の画像を用いる効果が得られる。
When character detection is performed according to Japanese Patent Laid-Open No. 7-141465, a horizontally long component is obtained in FIG. 8 and it cannot be determined whether or not it is a character, but in FIG. It is possible to detect characters. Similar to the case of the straight line component, it is possible to obtain the effect of using an image with a different reduction ratio and imaging resolution.

【0033】このように、従来技術によった場合、一つ
の縮小画像からでは十分に特徴量が抽出できず、傾き角
度算出ができない場合であっても、本発明のように複数
の縮小画像から得られた特徴量を利用することで、必要
な特徴を抽出・確保することができるため、傾き角度の
算出を容易に行うことが可能となる。
As described above, according to the conventional technique, even if the feature amount cannot be sufficiently extracted from one reduced image and the tilt angle cannot be calculated, a plurality of reduced images are used as in the present invention. By using the obtained feature amount, it is possible to extract and secure the required feature, so that the tilt angle can be easily calculated.

【0034】第2の実施の形態 本実施の形態(図略)は、請求項16に記載された画像
の傾き補正装置に係るものであり、その全体構成は、図
1に示したシステムに、画像補正部、補正2値イメージ
メモリ、枠認識部、枠座標メモリ、枠内文字抽出部、文
字認識部などを付加したシステム構成となっている。
Second Embodiment The present embodiment (not shown) relates to an image inclination correcting device described in claim 16, and its overall configuration is the same as that of the system shown in FIG. The system configuration has an image correction unit, a corrected binary image memory, a frame recognition unit, a frame coordinate memory, a character extraction unit in a frame, a character recognition unit, and the like.

【0035】この画像傾き補正装置では、図1に示すシ
ステム(画像の傾き検出部)から出力された検出結果に
応じて、画像の傾きと逆方向へ、傾きの角度と同じ角度
だけ、2値イメージメモリ内の2値イメージデータを回
転させることによって、傾きを補正した2値イメージを
作成し、これを補正2値イメージメモリに格納する。こ
のようにして、補正2値イメージメモリ内の文字画像を
文字認識部に認識させることにより、文書類上の文字を
正確に認識することができる。
According to the detection result output from the system (image inclination detection unit) shown in FIG. 1, this image inclination correction device is binary in the direction opposite to the image inclination and at the same angle as the inclination angle. By rotating the binary image data in the image memory, a binary image in which the inclination is corrected is created, and this is stored in the corrected binary image memory. In this way, by causing the character recognition unit to recognize the character image in the corrected binary image memory, it is possible to accurately recognize the character on the document.

【0036】第3の実施の形態 本実施の形態(図略)は、請求項17,18に記載され
た記録媒体に係るものであり、本発明では、請求項1〜
6,8〜13のいずれか記載の画像の傾き検出方法を記
録した記録媒体、あるいは請求項7又は14記載の画像
の傾き補正方法を記録した記録媒体を構成することがで
きる。
Third Embodiment The present embodiment (not shown) relates to the recording medium described in claims 17 and 18, and in the present invention, claims 1 to
It is possible to configure a recording medium on which the image inclination detecting method according to any one of 6, 8 to 13 is recorded, or a recording medium on which the image inclination correcting method according to claim 7 or 14 is recorded.

【0037】その一例としては、上記第1の実施の形態
に係る画像の傾き検出方法の処理機能を実現させるプロ
グラムを記録したCD−ROMが挙げられる。本発明を
このCD−ROMによって実現させる場合には、CP
U,ROM,RAM,ハードディスク、キーボード、C
D−ROMドライブなどからなる汎用の処理装置(コン
ピュータシステム)を用意する。そして、上記CD−R
OMをCD−ROMドライブにセットし、ユーザが所定
の操作を行うことで、所望の画像の傾き検出を行わせる
ことができる。なおこの場合、処理対象となるデータ
は、スキャナなどの画像入力装置から入力された文書画
像データである。
As an example thereof, there is a CD-ROM in which a program for realizing the processing function of the image inclination detecting method according to the first embodiment is recorded. When the present invention is realized by this CD-ROM, CP
U, ROM, RAM, hard disk, keyboard, C
A general-purpose processing device (computer system) including a D-ROM drive is prepared. And the above CD-R
A desired image inclination can be detected by setting the OM in the CD-ROM drive and performing a predetermined operation by the user. In this case, the data to be processed is document image data input from an image input device such as a scanner.

【0038】[0038]

【発明の効果】以上の説明で明らかなように、本発明の
画像の傾き検出方法・装置によれば、従来技術では検出
できなかった、画像の傾き検出のための特徴を抽出する
ことができるため、画像の傾き検出の精度が大幅に向上
する。
As is apparent from the above description, according to the image inclination detecting method and apparatus of the present invention, it is possible to extract the features for image inclination detection, which cannot be detected by the prior art. Therefore, the accuracy of image tilt detection is significantly improved.

【0039】また、本発明に係る画像の傾き補正方法・
装置によれば、例えば、補正2値イメージメモリ内の文
字画像を文字認識部に認識させることにより、文書類上
の文字を正確に認識することができる。
Further, the image tilt correction method according to the present invention
According to the apparatus, for example, by causing the character recognition unit to recognize the character image in the corrected binary image memory, the character on the document can be accurately recognized.

【0040】さらに本発明では、上記画像傾き検出方法
または画像傾き補正方法を記録した記録媒体を作製し、
これをコンピュータシステムにセットして、この記録媒
体に記録されたプログラムを読み出すことにより、上記
画像の傾き検出方法または画像傾き補正方法を、簡便か
つ再現性良く実施することが可能となる。
Further, in the present invention, a recording medium on which the above-described image tilt detection method or image tilt correction method is recorded is manufactured,
By setting this in a computer system and reading out the program recorded in this recording medium, it becomes possible to easily and reproducibly carry out the above-described image inclination detection method or image inclination correction method.

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

【図1】本発明の第1の実施の形態の全体構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing an overall configuration of a first exemplary embodiment of the present invention.

【図2】同実施の形態における処理手順を示すフローチ
ャートである。
FIG. 2 is a flowchart showing a processing procedure in the same embodiment.

【図3】同実施の形態における原稿画像の一例(原稿の
直線部分)を示す図である。
FIG. 3 is a diagram showing an example of a document image (straight part of document) in the same embodiment.

【図4】図3の原稿画像を1/4に縮小した後、直線検
出を行って得た画像を示す図である。
FIG. 4 is a diagram showing an image obtained by performing straight line detection after reducing the original image of FIG. 3 to 1/4.

【図5】図3の原稿画像を1/16に縮小した後、直線
検出を行って得た画像を示す図である。
FIG. 5 is a diagram showing an image obtained by performing straight line detection after reducing the original image of FIG. 3 to 1/16.

【図6】同実施の形態における原稿画像の別例(原稿の
文字列)を示す図である。
FIG. 6 is a diagram showing another example of a document image (character string of a document) in the same embodiment.

【図7】図6の原稿画像を1/4に縮小して得た縮小画
像を示す図である。
7 is a diagram showing a reduced image obtained by reducing the original image of FIG. 6 to 1/4.

【図8】図6の原稿画像を1/16に縮小して得た縮小
画像を示す図である。
FIG. 8 is a diagram showing a reduced image obtained by reducing the original image of FIG. 6 to 1/16.

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

101 画像入力手段 102 撮像解像度決定手段 103 画像縮小率決定手段 104 画像縮小手段 105 特徴抽出手段 106 画像傾き算出手段 107 データ記憶部 108 制御部 109 データ転送路および制御通信路 101 image input means 102 imaging resolution determining means 103 image reduction rate determining means 104 image reduction means 105 Feature Extraction Means 106 image inclination calculating means 107 data storage unit 108 control unit 109 data transfer path and control communication path

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 縮小画像を作成し、この縮小画像から得
られた情報を利用して画像の傾きを検出する方法におい
て、縮小率の異なる複数の縮小画像を用いることを特徴
とする画像の傾き検出方法。
1. A method of detecting a tilt of an image using a reduced image created by using information obtained from the reduced image, wherein a plurality of reduced images having different reduction ratios are used. Detection method.
【請求項2】 文書原稿画像を傾き検出の対象とするこ
とを特徴とする請求項1記載の画像の傾き検出方法。
2. The image inclination detecting method according to claim 1, wherein the document original image is an object of inclination detection.
【請求項3】 図面原稿画像を傾き検出の対象とするこ
とを特徴とする請求項1記載の画像の傾き検出方法。
3. The image inclination detecting method according to claim 1, wherein the drawing original image is an object of inclination detection.
【請求項4】 前記縮小画像から得られた情報は、文字
又は文字列に関する情報であることを特徴とする請求項
1,2又は3記載の画像の傾き検出方法。
4. The image inclination detecting method according to claim 1, wherein the information obtained from the reduced image is information regarding a character or a character string.
【請求項5】 前記文字又は文字列に関する情報は、該
文字又は文字列の位置・大きさ・並びの少なくとも一つ
を含むことを特徴とする請求項4記載の画像の傾き検出
方法。
5. The method according to claim 4, wherein the information about the character or the character string includes at least one of the position, size, and arrangement of the character or the character string.
【請求項6】 前記縮小画像から得られた情報は、直線
成分に関する情報であることを特徴とする請求項1,2
又は3記載の画像の傾き検出方法。
6. The information obtained from the reduced image is information about a linear component.
Alternatively, the image inclination detection method described in 3 above.
【請求項7】 請求項1〜6のいずれか記載の画像の傾
き検出方法による検出結果により、画像の傾きを補正す
ることを特徴とする画像の傾き補正方法。
7. An image tilt correction method, wherein the image tilt is corrected based on a detection result obtained by the image tilt detection method according to claim 1.
【請求項8】 同一の読み取り対象に対し、読み取り解
像度の異なる複数の画像を用いて傾きを検出することを
特徴とする画像の傾き検出方法。
8. A method for detecting an inclination of an image, wherein inclination is detected for the same reading target by using a plurality of images having different reading resolutions.
【請求項9】 文書原稿画像を傾き検出の対象とするこ
とを特徴とする請求項8記載の画像の傾き検出方法。
9. The image inclination detecting method according to claim 8, wherein the document original image is an object of inclination detection.
【請求項10】 図面原稿画像を傾き検出の対象とする
ことを特徴とする請求項8記載の画像の傾き検出方法。
10. The image inclination detection method according to claim 8, wherein the drawing original image is a target of inclination detection.
【請求項11】 前記読み取り解像度の異なる複数の画
像から、文字又は文字列に関する情報を得ることを特徴
とする請求項8,9又は10記載の画像の傾き検出方
法。
11. The image inclination detection method according to claim 8, 9 or 10, wherein information regarding a character or a character string is obtained from a plurality of images having different reading resolutions.
【請求項12】 前記文字又は文字列に関する情報は、
文字又は文字列の位置・大きさ・並びの少なくとも一つ
を含むことを特徴とする請求項11記載の画像の傾き検
出方法。
12. The information on the character or character string is
The image inclination detecting method according to claim 11, comprising at least one of the position, size, and arrangement of characters or character strings.
【請求項13】 前記読み取り解像度の異なる複数の画
像から直線成分に関する情報を得ることを特徴とする請
求項8,9又は10記載の画像の傾き検出方法。
13. The image inclination detecting method according to claim 8, wherein information on a straight line component is obtained from a plurality of images having different reading resolutions.
【請求項14】 請求項8〜13のいずれか記載の画像
の傾き検出方法による検出結果により、傾きを補正する
ことを特徴とする画像の傾き補正方法。
14. A method for correcting an inclination of an image, which comprises correcting the inclination based on a detection result obtained by the method for detecting the inclination of an image according to claim 8.
【請求項15】 請求項1〜6,8〜13のいずれか記
載の画像の傾き検出方法を実現するようにしたことを特
徴とする画像の傾き検出装置。
15. An image inclination detecting device, characterized in that the image inclination detecting method according to any one of claims 1 to 6 and 8 to 13 is realized.
【請求項16】 請求項7又は14記載の画像の傾き補
正方法を実現するようにしたことを特徴とする画像の傾
き補正装置。
16. An image tilt correction apparatus, characterized in that the image tilt correction method according to claim 7 or 14 is realized.
【請求項17】 請求項1〜6,8〜13のいずれか記
載の画像の傾き検出方法を記録したことを特徴とする記
録媒体。
17. A recording medium on which the image inclination detecting method according to any one of claims 1 to 6 and 8 to 13 is recorded.
【請求項18】 請求項7又は14記載の画像の傾き補
正方法を記録したことを特徴とする記録媒体。
18. A recording medium on which the image tilt correction method according to claim 7 or 14 is recorded.
JP2001384713A 2001-12-18 2001-12-18 Method for detecting and correcting inclination of image Pending JP2003187249A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001384713A JP2003187249A (en) 2001-12-18 2001-12-18 Method for detecting and correcting inclination of image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001384713A JP2003187249A (en) 2001-12-18 2001-12-18 Method for detecting and correcting inclination of image

Publications (1)

Publication Number Publication Date
JP2003187249A true JP2003187249A (en) 2003-07-04

Family

ID=27594374

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001384713A Pending JP2003187249A (en) 2001-12-18 2001-12-18 Method for detecting and correcting inclination of image

Country Status (1)

Country Link
JP (1) JP2003187249A (en)

Similar Documents

Publication Publication Date Title
US6798906B1 (en) Image processing apparatus and method including line segment data extraction
US20080226171A1 (en) Correcting device and method for perspective transformed document images
US8538191B2 (en) Image correction apparatus and method for eliminating lighting component
US6813367B1 (en) Method and apparatus for site selection for data embedding
JP2000251082A (en) Document image inclination detecting device
JP4565396B2 (en) Image processing apparatus and image processing program
JP3006466B2 (en) Character input device
JP3303246B2 (en) Image processing device
JP2003115031A (en) Image processor and its method
JP3698867B2 (en) Circular pattern determination method, apparatus and recording medium
JP2003187249A (en) Method for detecting and correcting inclination of image
JP4281236B2 (en) Image recognition apparatus, image recognition method, and computer-readable recording medium storing image recognition program
JP2005051383A (en) Image distortion corrector, image reader, image forming apparatus, and program
JP3712825B2 (en) Image processing method, apparatus, and recording medium
JP4383797B2 (en) Inclination detection method, inclination detection apparatus, and program
JP3618926B2 (en) Document image tilt detection method
JP3966448B2 (en) Image processing apparatus, image processing method, program for executing the method, and recording medium storing the program
JPH11288453A (en) Method and system for detecting skew angle and black boundary line of original image in scan environment for reproduction
JP3381803B2 (en) Tilt angle detector
JPH10336428A (en) Image processing unit
JP2007328652A (en) Image processing device and image processing program
JPH04276888A (en) Character reader
JP2008258980A (en) Image information processor, and image inclination angle calculation method
JP2003271897A (en) Character recognizer, image processor, image processing method, and program used for executing the method
JP2000165670A (en) Image processor, image processing method and recording medium recording image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041104

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20041117

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070514

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070605

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070803

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070828