JP2001320572A - Method and device for correcting image and recording medium - Google Patents

Method and device for correcting image and recording medium

Info

Publication number
JP2001320572A
JP2001320572A JP2000136670A JP2000136670A JP2001320572A JP 2001320572 A JP2001320572 A JP 2001320572A JP 2000136670 A JP2000136670 A JP 2000136670A JP 2000136670 A JP2000136670 A JP 2000136670A JP 2001320572 A JP2001320572 A JP 2001320572A
Authority
JP
Japan
Prior art keywords
image
information area
tilt
image data
area
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
JP2000136670A
Other languages
Japanese (ja)
Inventor
Nobuyuki Okubo
伸幸 大窪
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP2000136670A priority Critical patent/JP2001320572A/en
Publication of JP2001320572A publication Critical patent/JP2001320572A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To solve the problems that only a partial area is often inclined in one sheet of image even though a certain area is straight when an image scanner, a copying machine, etc., read the two facing pages of a bound document, a book, etc., and that much labor is needed, such as to visually confirm the image to be read, to reread the image, to separate a document, to cut off a page from a book or the like in order to acquire an image without any inclinations at the time of reading the part of two facing pages of the bound document, the book, etc., and collectively reading a plurality of sheets of cards or the like. SOLUTION: In an image correcting method, an image correcting device and a recording medium, one piece of image data is divided into margins and an information area other than the margins such as a character area and a table area, the inclination of each information area with respect to the whole image is detected and corrected to acquire an image without any inclinations.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、イメージスキャナ
などの画像読取り装置、デジタルカメラなどの画像取込
み装置およびパーソナルコンピュータのアプリケーショ
ンソフトウェアによる画像補正処理に使用される画像補
正方法、画像補正装置および記録媒体に関するものであ
り、特に、1つの画像データの中を余白とそれ以外の文
字領域、表領域などの情報領域に区分し、画像全体に対
して各情報領域の傾きを検出し、補正することにより傾
きのない画像を取得する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image reading apparatus such as an image scanner, an image capturing apparatus such as a digital camera, and an image correcting method, an image correcting apparatus, and a recording medium used for image correcting processing by application software of a personal computer. In particular, by dividing one image data into a margin and other information regions such as a character region and a table region, and detecting and correcting the inclination of each information region with respect to the entire image, Get an image without tilt.

【0002】[0002]

【従来の技術】イメージスキャナ、コピー機などで綴じ
られた書類または本などの見開き部分の読取りを行う
と、一枚の画像内である領域はまっすぐにもかかわら
ず、一部の領域だけが傾いている場合がよくある。
2. Description of the Related Art When a double-page spread of a bound document or book is read by an image scanner, a copier, or the like, only a part of the image is tilted even though an area in the image is straight. Often have.

【0003】図6に、本の見開き部分の読取りの説明図
を示す。図中、61はイメージスキャナ、62は画像入
力の対象となる本、63はイメージスキャナ61の読取
り部、64は読取り部63で読取った画像データであ
る。
FIG. 6 is an explanatory diagram of reading of a spread portion of a book. In the figure, 61 is an image scanner, 62 is a book to be subjected to image input, 63 is a reading unit of the image scanner 61, and 64 is image data read by the reading unit 63.

【0004】この図では、本の見開き部分の画像を読み
取るために、本を均等に抑え付けて読取りを行ったが、
読取られた画像データ64のA面部分は画像全体に対し
て真直ぐに読み取られたが、B面部分は傾いて読み取ら
れている。
[0004] In this figure, in order to read the image of the spread portion of the book, the reading was performed with the book held down evenly.
The A-side portion of the read image data 64 is read straight for the entire image, while the B-side portion is read with an inclination.

【0005】また、図7に複数枚のカードの読取りの説
明図を示す。図中、61はイメージスキャナ、71〜7
6は文字が書かれたカード、63はイメージスキャナ6
1の読取り部、65は原稿抑え、77は読取り部63で
読取った画像データである。
FIG. 7 is a diagram for explaining reading of a plurality of cards. In the figure, 61 is an image scanner, 71 to 7
6 is a card on which characters are written, 63 is an image scanner 6
Reference numeral 1 denotes a reading unit, reference numeral 65 denotes an original document, and reference numeral 77 denotes image data read by the reading unit 63.

【0006】この図では、カード71〜76の画像を一
括して読み取るために、原稿抑え65によりカードを抑
えて読取りを行ったが、原稿を抑えた時にカード72、
73、74が微妙に傾いてしまったために、読み取った
画像データ77のカード72、73、74の部分が画像
全体に対して傾いて読み取られている。
In this figure, in order to read the images of the cards 71 to 76 all at once, reading was performed with the card held down by the document holder 65.
Because the parts 73 and 74 are slightly tilted, the parts of the cards 72, 73 and 74 of the read image data 77 are read while being tilted with respect to the entire image.

【0007】図6および図7のような場合、傾きのない
画像を入手するには、読み取り後に読み取った画像を目
視で確認を行い、傾きがあれば再度読取りを行う。ま
た、それでも傾きが生じる場合には綴じられた書類は一
枚ずつばらす、本などは切り取って再度読取りを行う必
要があった。
In the case of FIGS. 6 and 7, in order to obtain an image having no tilt, the read image is visually checked after reading, and if there is a tilt, reading is performed again. Further, if the inclination still occurs, the bound documents must be separated one by one, and the book or the like needs to be cut out and read again.

【0008】また、分解できない原稿の場合は、読取り
を断念することがあった。また、読取り元原稿がコピー
された原稿である場合は、原稿そのものに傾きが発生し
ている場合があり、傾きのない画像データを取得するこ
とができなかった。
In the case of a document that cannot be disassembled, reading may be abandoned. Further, when the original to be read is a copied original, the original itself may be skewed, and image data without skew could not be obtained.

【0009】[0009]

【発明が解決しようとする課題】このように、従来綴じ
られた書類または本などの見開き部分の読取り、および
複数枚のカードの一括読取りなどの時、傾きのない画像
を入手するには、読取り画像の目視確認や画像の再読取
り、および書類の切離し、本の切り取りなどの多くの手
間が掛かるという問題点があった。また、分解できない
原稿や読取り元原稿がコピーされた傾きのある原稿の場
合は、読取りを断念しなければならないという問題点が
あった。
As described above, in order to obtain an image without tilting when reading a spread portion of a conventionally bound document or book, or when reading a plurality of cards at a time, the reading must be performed. There is a problem that much trouble is required for visual confirmation of an image, rereading of an image, separation of a document, and cutting of a book. In addition, in the case of an original that cannot be disassembled or a skewed original that is a copy of the original to be read, there is a problem that reading must be abandoned.

【0010】[0010]

【課題を解決するための手段】この発明は上記のような
問題点を考慮してなされたもので、イメージスキャナな
どの画像読取り装置、デジタルカメラなどの画像取込み
装置およびパーソナルコンピュータのアプリケーション
ソフトウェアによる画像補正処理に使用される画像補正
方法、画像補正装置および記録媒体において、1つの画
像データの中を余白とそれ以外の文字領域、表領域など
の情報領域に区分し、画像全体に対して各情報領域の傾
きを検出し、補正することにより、傾きのない画像を取
得する。
SUMMARY OF THE INVENTION The present invention has been made in consideration of the above problems, and has been made in consideration of an image reading apparatus such as an image scanner, an image capturing apparatus such as a digital camera, and an image processing apparatus using an application software of a personal computer. In an image correction method, an image correction apparatus, and a recording medium used for the correction processing, one image data is divided into a margin and other information areas such as a character area and a table area, and each information is stored in the entire image. By detecting and correcting the inclination of the area, an image without inclination is obtained.

【0011】[0011]

【発明の実施の形態】(1)製本原稿または複数枚の紙
を束ねた原稿の見開き部分または複数並べた原稿を、画
像入力装置で読み取った画像データの画像補正方法にお
いて、画像補正の対象とする画像データを読み取る画像
読取り工程と、読み取った画像データを画像補正処理に
適したデータ形式に変換するフォーマット変換工程と、
フォーマット変換工程でデータ形式を変換した画像デー
タを余白とそれ以外の文字領域および表領域を含む情報
領域に区分する情報領域区分工程と、情報領域区分工程
で区分した情報領域が画像データ内で傾きが有るかを判
定する傾き判定工程と、傾き判定工程で傾きが有ると判
定された情報領域を傾きがないように補正する画像補正
工程とで構成し、1つの画像データを余白とそれ以外の
複数の情報領域に区分し、各情報領域の傾きを検出し、
傾きがある情報領域の傾きを補正することにより、傾き
のない画像データを取得することができる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS (1) In a method for correcting image data of an image data read by an image input device, a bookbinding document or a spread portion of a document in which a plurality of sheets are bundled or a plurality of documents are arranged. An image reading step of reading image data to be read, a format conversion step of converting the read image data into a data format suitable for image correction processing,
An information area dividing step in which the image data whose data format has been converted in the format converting step is divided into an information area including a margin and other character areas and a table area, and an information area divided in the information area dividing step is inclined in the image data. And an image correction step of correcting an information area determined to have a tilt in the tilt determination step so that the information area does not have a tilt. Dividing into multiple information areas, detecting the inclination of each information area,
By correcting the tilt of the tilted information area, image data without tilt can be obtained.

【0012】(2)(1)記載の画像補正方法におい
て、画像データにおける情報領域の区分に使用する方法
をヒストグラムまたはラベリングまたはヒストグラムと
ラベリングの両方のいずれかから選択することにより、
情報領域の区分を画像データに適した方法で行うことが
できる。
(2) In the image correction method described in (1), the method used for dividing the information area in the image data is selected from either histogram, labeling, or both histogram and labeling.
The division of the information area can be performed by a method suitable for the image data.

【0013】(3)(1)記載の画像補正方法におい
て、所定の傾き角度の範囲において、所定の角度毎傾け
た情報領域の画像に対してヒストグラムを取り、ヒスト
グラム分布が1番大きな傾け角度を補正角度とし、補正
角度が0度でないとき、傾きが有ると判定することによ
り、情報領域の傾き検出と補正角度を迅速に求めること
ができる。
(3) In the image correction method described in (1), a histogram is obtained for an image of the information area tilted by a predetermined angle within a predetermined range of the tilt angle, and the histogram distribution has the largest tilt angle. If the correction angle is set to a correction angle and the correction angle is not 0 degree, it is determined that there is a tilt, whereby the tilt of the information area can be detected and the correction angle can be quickly obtained.

【0014】(4)(1)記載の画像補正方法におい
て、情報領域の傾きの検出に使用する方法をヒストグラ
ムまたはラベリングから選択することにより、情報領域
の傾き検出を画像データに適した方法で行うことができ
る。
(4) In the image correction method described in (1), the method for detecting the inclination of the information area is selected from histogram or labeling, thereby detecting the inclination of the information area by a method suitable for the image data. be able to.

【0015】(5)(1)記載の画像補正方法におい
て、傾き補正を行う情報領域の中心点を求め、中心点を
中心に回転させて情報領域の傾きを補正することによ
り、傾き補正を行う情報領域以外の情報領域を壊すこと
なく傾き補正を行うことができる。
(5) In the image correction method described in (1), the tilt correction is performed by obtaining the center point of the information area for which tilt correction is to be performed, and correcting the tilt of the information area by rotating about the center point. The tilt correction can be performed without destroying the information area other than the information area.

【0016】(6)(5)記載の画像補正方法におい
て、情報領域の傾きを補正したとき、補正により生じる
すきま部分を余白領域の色で埋めることにより、傾き補
正を画像全体に対して違和感なく行うことができる。
(6) In the image correction method described in (5), when the inclination of the information area is corrected, the gap generated by the correction is filled with the color of the blank area, so that the inclination correction can be performed without discomfort to the entire image. It can be carried out.

【0017】(7)製本原稿または複数枚の紙を束ねた
原稿の見開き部分または複数並べた原稿を、画像入力装
置で読み取った画像データの画像補正方法において、画
像補正の対象とする画像データを読み取る画像読取り手
段と、読み取った画像データを画像補正処理に適したデ
ータ形式に変換するフォーマット変換手段と、フォーマ
ット変換手段でデータ形式を変換した画像データを余白
とそれ以外の文字領域および表領域を含む情報領域に区
分する情報領域区分手段と、情報領域区分手段で区分し
た情報領域が画像データ内で傾きが有るかを判定する傾
き判定手段と、情報領域を傾きがないように補正する画
像補正手段とを設けるこより、読取った画像データ内に
おける情報領域の傾きを補正し、傾きのない画像を取得
することができる。
(7) The image data to be subjected to the image correction in the image correction method of the image data read by the image input device for the spread portion of the bookbinding document or the document in which a plurality of sheets are bundled, or the document in which a plurality of documents are arranged. Image reading means to be read, format conversion means for converting the read image data into a data format suitable for image correction processing, and image data whose data format has been converted by the format conversion means into margins and other character areas and table areas. Information area dividing means for dividing the information area into information areas, inclination determining means for determining whether the information area divided by the information area dividing means has an inclination in image data, and image correction for correcting the information area so as not to be inclined Means, the inclination of the information area in the read image data can be corrected, and an image without inclination can be obtained.

【0018】(8)(7)記載の画像補正装置におい
て、画像データにおける情報領域の区分に使用する方法
をヒストグラムまたはラベリングまたはヒストグラムと
ラベリングの両方のいずれかから選択する手段を設ける
ことにより、情報領域の区分を画像データに適した方法
で行うことができる。
(8) In the image correction device described in (7), information is provided by selecting a method used for dividing an information area in the image data from either histogram, labeling, or both histogram and labeling. The division of the area can be performed by a method suitable for the image data.

【0019】(9)(7)記載の画像補正装置におい
て、所定の傾き角度の範囲において、所定の角度毎傾け
た情報領域の画像に対してヒストグラムを取り、ヒスト
グラム分布が1番大きな傾け角度を補正角度とし、補正
角度が0度でないとき、傾きが有ると判定する手段を設
けることにより、情報領域の傾き検出と補正角度を迅速
に求めることができる。
(9) In the image correction device described in (7), a histogram is obtained for an image of the information area tilted by a predetermined angle within a predetermined range of the tilt angle, and the histogram distribution has the largest tilt angle. By providing a correction angle and a means for determining that there is a tilt when the correction angle is not 0 degree, the tilt detection of the information area and the correction angle can be quickly obtained.

【0020】(10)(7)記載の画像補正装置におい
て、情報領域の傾きの検出に使用する方法をヒストグラ
ムまたはラベリングから選択する手段を設けることによ
り、情報領域の傾き検出を画像データに適した方法で行
うことができる。
(10) In the image correction apparatus described in (7), by providing means for selecting the method used for detecting the inclination of the information area from histogram or labeling, the inclination detection of the information area is suitable for the image data. Can be done in a way.

【0021】(11)(7)記載の画像補正装置におい
て、傾き補正を行う情報領域の中心点を求め、中心点を
中心に回転させて情報領域の傾きを補正する手段を設け
ることにより、傾き補正を行う情報領域以外の情報領域
を壊すことなく傾き補正を行うことができる。
(11) In the image correction apparatus described in (7), the means for determining the center point of the information area for which the inclination is to be corrected and rotating the center of the information area to correct the inclination of the information area is provided. Tilt correction can be performed without destroying information areas other than the information area to be corrected.

【0022】(12)(11)記載の画像補正装置にお
いて、情報領域の傾きを補正したとき、補正により生じ
るすきま部分を余白領域の色で埋める手段を設けること
により、傾き補正を画像全体に対して違和感なく行うこ
とができる。
(12) In the image correction apparatus described in (11), when the inclination of the information area is corrected, a means for filling the gap generated by the correction with the color of the blank area is provided, thereby performing the inclination correction on the entire image. Can be performed without discomfort.

【0023】(13)製本原稿または複数枚の紙を束ね
た原稿の見開き部分または複数並べた原稿を、画像入力
装置で読み取った画像データを補正するプログラムを記
録した記録媒体において、画像補正の対象とする画像デ
ータを読み取る画像読取り工程と、読み取った画像デー
タを画像補正処理に適したデータ形式に変換するフォー
マット変換工程と、フォーマット変換工程でデータ形式
を変換した画像データを余白とそれ以外の文字領域およ
び表領域を含む情報領域に区分する情報領域区分工程
と、情報領域区分工程で区分した情報領域が画像データ
内で傾きが有るかを判定する傾き判定工程と、傾き判定
工程で傾きが有ると判定された情報領域を傾きがないよ
うに補正する画像補正工程とを実行させるためのプログ
ラムを記録した記録媒体をコンピュータで実行すること
により、読取った画像データ内における情報領域の傾き
を補正し、傾きのない画像を取得することができる。
(13) The target of image correction on a recording medium in which a program for correcting image data read by an image input device is recorded on a spread portion of a bookbinding document or a document in which a plurality of sheets of paper are bundled or a plurality of documents are arranged. An image reading step for reading image data to be read, a format conversion step for converting the read image data into a data format suitable for image correction processing, and a margin and other characters for the image data whose data format has been converted in the format conversion step. An information area dividing step of dividing into information areas including an area and a table area; a slope determining step of determining whether the information area divided in the information area dividing step has a slope in the image data; and a slope determining step of the information area. And a program for executing an image correction step of correcting the information area determined to have no tilt. By executing the body with computer to correct the inclination of the information area in the read image data, it is possible to obtain the tilt-free image.

【0024】[0024]

【実施例】図1に、本発明の画像補正装置の構成ブロッ
ク図を示す。図中、10は製本原稿または複数枚の紙を
束ねた原稿の見開き部分または複数並べた原稿を、画像
入力装置など読み取った画像データを補正する画像補正
装置である。
FIG. 1 is a block diagram showing the configuration of an image correction apparatus according to the present invention. In the figure, reference numeral 10 denotes an image correction device for correcting image data obtained by reading a spread portion of a bookbinding document or a document in which a plurality of sheets of paper are bundled or a plurality of documents arranged, such as an image input device.

【0025】画像補正装置10は、画像補正の対象とす
る画像データを読み取る画像読取り手段1と、画像読取
り手段1で読み取った画像データを画像補正処理に適し
たデータ形式に変換するフォーマット変換手段2と、フ
ォーマット変換手段2でデータ形式変換した画像データ
を余白とそれ以外の文字領域および表領域を含む情報領
域に区分する情報領域区分手段3と、情報領域区分手段
3で区分した情報領域が画像データ内で傾きが有るかを
判定する傾き判定手段4と、傾き判定手段4で傾きがあ
ると判定された情報領域を傾きがないように補正する画
像補正手段5とで構成されている。
The image correction device 10 includes an image reading means 1 for reading image data to be subjected to image correction, and a format conversion means 2 for converting the image data read by the image reading means 1 into a data format suitable for image correction processing. An information area dividing means 3 for dividing the image data which has been subjected to the data format conversion by the format converting means 2 into information areas including margins and other character areas and table areas; It is composed of a tilt determining means 4 for determining whether there is a tilt in the data, and an image correcting means 5 for correcting the information area determined to have a tilt by the tilt determining means 4 so as not to have a tilt.

【0026】図2から図5を参照して、画像補正方法に
ついて説明する。図2は本発明の画像補正方法の一実施
例の処理フローチャート、図3は画像補正の説明図
(1)、図4は画像補正の説明図(2)、図5は画像補
正の説明図(3)である。
The image correction method will be described with reference to FIGS. FIG. 2 is a processing flowchart of an embodiment of the image correction method of the present invention, FIG. 3 is an explanatory diagram (1) of the image correction, FIG. 4 is an explanatory diagram (2) of the image correction, and FIG. 3).

【0027】以下、図2のフローにしたがって処理を説
明する。この例では、白色のカードに横書きで黒文字が
記述されたものを読取った画像データを補正の対象とし
ている。
Hereinafter, the processing will be described according to the flow of FIG. In this example, image data obtained by reading a white card in which black characters are written horizontally is set as a correction target.

【0028】ステップS201:イメージスキャナなど
で読取った画像データを読み込む。この例では、横書き
で文字が書かれているカード1〜6を一括して読み取っ
た図4(a)のような画像データを読み込んでいる。ま
た読み込んだ画像データではカード2、3、4が画像全
体に対して傾きが生じている。
Step S201: Image data read by an image scanner or the like is read. In this example, image data as shown in FIG. 4A is read by collectively reading cards 1 to 6 on which characters are written horizontally. In the read image data, the cards 2, 3, and 4 are inclined with respect to the entire image.

【0029】ステップS202:画像データをディスプ
レイに表示し、かつオペレータから情報領域の区分に使
用する方法、傾き検出に使用する方法などの情報を取得
する。この例では、図3のように画像補正画面をディス
プレイに表示し、読取り画像の表示と、情報領域の区分
方法の選択、傾き検出方法の選択、ヒストグラムで傾き
検出を行う時に使用する情報領域の傾け角度の範囲およ
び傾き精度が設定できるように構成されている。
Step S202: The image data is displayed on the display, and information such as a method used for dividing the information area and a method used for detecting the inclination is obtained from the operator. In this example, an image correction screen is displayed on the display as shown in FIG. 3 to display a read image, select a method of dividing the information area, select a method of detecting inclination, and determine an information area used when detecting inclination using a histogram. The tilt angle range and the tilt accuracy can be set.

【0030】ステップS203:ステップ202で指示
された情報領域の区分に使用する方法により、画像デー
タを余白と文字領域および表領域などの情報領域に区分
し、区分した情報領域に番号を付ける。図4(a)の画
像データを余白と情報領域に区分したものが図4(b)
である。傾きが生じているカード2、3、4に対応した
情報領域2、3、4はカード1、5、6に対応した情報
領域1、5、6より傾いている分、大きな情報領域とな
っている。
Step S203: The image data is divided into information areas such as a margin, a character area, and a table area by the method used for dividing the information area designated in step 202, and the divided information areas are numbered. FIG. 4B shows the image data of FIG. 4A divided into a margin and an information area.
It is. The information areas 2, 3, and 4 corresponding to the cards 2, 3, and 4 in which the inclination occurs are larger than the information areas 1, 5, and 6 corresponding to the cards 1, 5, and 6, respectively. I have.

【0031】ステップS204:画像データを補正処理
しやすい2値データに変換する。
Step S204: The image data is converted into binary data which can be easily corrected.

【0032】ステップS205:カウンタCに0を設定
する。
Step S205: The counter C is set to 0.

【0033】ステップS206:カウンタCが情報領域
数と同じかを判定する。同じならば処理を終了し、同じ
でないならばステップS207に進む。
Step S206: It is determined whether the counter C is equal to the number of information areas. If they are the same, the process ends; otherwise, the process proceeds to step S207.

【0034】ステップS207:カウンタCの番号の情
報領域をステップS202で指示された傾け角度の範囲
で、かつ傾け精度毎に傾けてヒストグラムを取り、ヒス
トグラム分布が1番大きな傾け角度を、補正角度として
算出する。なお、この例では水平方向を0度とする傾け
角度は、図4(b)で示すようにと情報領域2は−θ、
情報領域3は+θ、情報領域4は+θの傾きが生じてい
ることが検出されるので、補正角度とし情報領域2は+
θ、情報領域3は−θ、情報領域4は−θが算出される
ことになる。
Step S207: A histogram is obtained by tilting the information area of the number of the counter C within the range of the tilt angle specified in step S202 and for each tilt accuracy, and the tilt angle having the largest histogram distribution is set as the correction angle. calculate. In this example, as shown in FIG. 4B, the tilt angle of the information area 2 is −θ, and the horizontal direction is 0 degree.
Since it is detected that the information area 3 has an inclination of + θ and the information area 4 has an inclination of + θ, the information area 2 is set to a correction angle of + θ.
θ, the information area 3 is −θ, and the information area 4 is −θ.

【0035】ステップS208:ステップS207で検
出された補正角度が0度かを判定する。0度ならばステ
ップS211に進み、0度でないならばステップS20
9に進む。
Step S208: It is determined whether the correction angle detected in step S207 is 0 degree. If it is 0 degree, the process proceeds to step S211. If it is not 0 degree, step S20.
Go to 9.

【0036】ステップS209:情報領域の中心点を求
め、中心点を軸にして補正角度分の傾き補正を行う。図
4(b)において、傾きが生じている情報領域2、3、
4の傾きを補正した画像データを図4(c)に示す。
Step S209: The center point of the information area is obtained, and the inclination correction for the correction angle is performed with the center point as an axis. In FIG. 4 (b), the information areas 2, 3, which have a tilt,
FIG. 4C shows the image data in which the inclination of FIG. 4 has been corrected.

【0037】ステップS210:余白の色を求め、傾き
補正したときに生じるすきま部分を余白の色で埋める。
なお、図5(d)の網掛け部分が、情報領域4の中心点
aを軸にして補正角度:−θの傾き補正したときに生じ
るすきま部分である。
Step S210: The color of the margin is obtained, and the gap generated when the inclination is corrected is filled with the color of the margin.
The shaded portion in FIG. 5D is a gap portion generated when the inclination correction of the correction angle: −θ is performed with the center point a of the information area 4 as an axis.

【0038】ステップS211:カウンタCを1つ更新
する。そして、ステップS206に戻る。
Step S211: One counter C is updated. Then, the process returns to step S206.

【0039】なお、この例では、白黒画像データを画像
データの補正対象としたので、ステップS204では画
像データのデータ形式を2値データに変換したが、ステ
ップS202の処理で、オペレータから変換するデータ
形式(2値データ、グレースケールデータ、16ビット
カラーデータ、24ビットカラーデータなど)を取得す
るようにしてもよい。
In this example, since the image data was corrected for black and white image data, the data format of the image data was converted to binary data in step S204. The format (binary data, grayscale data, 16-bit color data, 24-bit color data, etc.) may be obtained.

【0040】[0040]

【発明の効果】この発明は、上記に説明したような形態
で実施され、以下の効果がある。
The present invention is embodied in the form described above, and has the following effects.

【0041】1つの画像データを余白とそれ以外の複数
の情報領域に区分し、各情報領域の傾きを検出し、傾き
が検出された情報領域だけを傾きがないように補正す
る。これにより、1つの画像として傾きのない画像を取
得することが可能となる。
One image data is divided into a margin and a plurality of other information areas, the inclination of each information area is detected, and only the information area where the inclination is detected is corrected so as not to have an inclination. This makes it possible to acquire an image without inclination as one image.

【0042】また、これにより、画像の読み取りを再度
行う必要がなくなり、読み取りにかかる時間を短縮する
ことが可能となる。また、読み取り元原稿が既に傾いて
いる場合でも傾きのない画像を取り込むことができる。
したがって、読み取り元原稿の対象範囲を広げることが
できる。
This eliminates the need to read the image again, thereby reducing the time required for reading. Further, even when the original to be read is already inclined, an image without inclination can be captured.
Therefore, the target range of the original to be read can be expanded.

【0043】また、情報領域の傾き補正を行うことによ
り、その後文字認識を行う場合は認識率を向上させるこ
とが可能となる。また、自動的に画像の傾きを補正する
ことができるので、読み取り後の処理に関して自動化を
計ることが可能となる。
Further, by correcting the inclination of the information area, the recognition rate can be improved when character recognition is performed thereafter. Further, since the inclination of the image can be automatically corrected, it is possible to automate processing after reading.

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

【図1】 本発明の画像補正装置の構成ブロック図であ
る。
FIG. 1 is a configuration block diagram of an image correction device according to the present invention.

【図2】 本発明の画像補正方法の一実施例の処理フロ
ーチャートである。
FIG. 2 is a processing flowchart of an embodiment of an image correction method according to the present invention.

【図3】 画像補正の説明図(1)である。FIG. 3 is an explanatory diagram (1) of image correction.

【図4】 画像補正の説明図(2)である。FIG. 4 is an explanatory diagram (2) of image correction.

【図5】 画像補正の説明図(3)である。FIG. 5 is an explanatory diagram (3) of image correction.

【図6】 本の見開き部分の読取りの説明図である。FIG. 6 is an explanatory diagram of reading a double-page spread of a book.

【図7】 複数枚のカードの読取りの説明図である。FIG. 7 is an explanatory diagram of reading a plurality of cards.

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

1 画像読取り手段 2 ファーマット変換手段 3 情報領域区分手段 4 傾き判定手段 5 画像補正手段 10 画像補正装置 DESCRIPTION OF SYMBOLS 1 Image reading means 2 Format conversion means 3 Information area division means 4 Inclination determination means 5 Image correction means 10 Image correction device

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G06T 7/00 200 G06T 7/00 200B 7/60 150 7/60 150C 150P Fターム(参考) 5B057 AA11 CA02 CA08 CA12 CA16 CB02 CB08 CB12 CB16 CC01 CD03 CE09 CE12 DB02 DB05 DB09 DC02 DC08 DC23 5C076 AA24 AA37 AA40 BA06 5L096 AA03 AA06 BA07 DA01 EA35 EA43 FA37 FA42 FA62 FA67 GA34 MA03 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) G06T 7/00 200 G06T 7/00 200B 7/60 150 7/60 150C 150P F-term (Reference) 5B057 AA11 CA02 CA08 CA12 CA16 CB02 CB08 CB12 CB16 CC01 CD03 CE09 CE12 DB02 DB05 DB09 DC02 DC08 DC23 5C076 AA24 AA37 AA40 BA06 5L096 AA03 AA06 BA07 DA01 EA35 EA43 FA37 FA42 FA62 FA67 GA34 MA03

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 製本原稿または複数枚の紙を束ねた原稿
の見開き部分または複数並べた原稿を、画像入力装置で
読み取った画像データの画像補正方法において、画像補
正の対象とする画像データを読み取る画像読取り工程
と、読み取った画像データを画像補正処理に適したデー
タ形式に変換するフォーマット変換工程と、フォーマッ
ト変換工程でデータ形式を変換した画像データを余白と
それ以外の文字領域および表領域を含む情報領域に区分
する情報領域区分工程と、情報領域区分工程で区分した
情報領域が画像データ内で傾きが有るかを判定する傾き
判定工程と、傾き判定工程で傾きが有ると判定された情
報領域を傾きがないように補正する画像補正工程とで構
成し、1つの画像データを余白とそれ以外の複数の情報
領域に区分し、各情報領域の傾きを検出し、傾きがある
情報領域の傾きを補正することを特徴とする画像補正方
法。
1. A method for correcting image data read by an image input device for a bookbinding document or a spread portion of a document in which a plurality of sheets of paper are bundled or a plurality of arranged documents is read. An image reading step, a format conversion step of converting the read image data into a data format suitable for image correction processing, and the image data whose data format has been converted in the format conversion step includes a margin and other character areas and table areas An information area dividing step for dividing into information areas, a tilt determining step for determining whether the information area partitioned in the information area separating step has a tilt in the image data, and an information area determined to have a tilt in the tilt determining step And an image correcting step of correcting the image data so that there is no inclination. One image data is divided into a margin and a plurality of other information areas. An image correction method, comprising detecting a tilt of an area and correcting a tilt of an information area having a tilt.
【請求項2】 請求項1記載の画像補正方法において、
画像データにおける情報領域の区分に使用する方法をヒ
ストグラムまたはラベリングまたはヒストグラムとラベ
リングの両方のいずれかから選択することを特徴とする
画像補正方法。
2. The image correction method according to claim 1, wherein
An image correction method characterized in that a method used for dividing an information area in image data is selected from either histogram, labeling, or both histogram and labeling.
【請求項3】 請求項1記載の画像補正方法において、
所定の傾き角度の範囲において、所定の角度毎傾けた情
報領域の画像に対してヒストグラムを取り、ヒストグラ
ム分布が1番大きな傾け角度を補正角度とし、補正角度
が0度でないとき、傾きが有ると判定することを特徴と
する画像補正方法。
3. The image correction method according to claim 1, wherein
In the range of the predetermined tilt angle, a histogram is taken for the image of the information area tilted by a predetermined angle, the tilt angle having the largest histogram distribution is set as the correction angle, and when the correction angle is not 0 degree, there is a tilt. An image correction method characterized by determining.
【請求項4】 請求項1記載の画像補正方法において、
情報領域の傾きの検出に使用する方法をヒストグラムま
たはラベリングから選択することを特徴とする画像補正
方法。
4. The image correction method according to claim 1, wherein
An image correction method, wherein a method used for detecting a tilt of an information area is selected from histogram or labeling.
【請求項5】 請求項1記載の画像補正方法において、
傾き補正を行う情報領域の中心点を求め、中心点を中心
に回転させて情報領域の傾きを補正することを特徴とす
る画像補正方法。
5. The image correction method according to claim 1, wherein
An image correction method comprising: obtaining a center point of an information area for which tilt correction is to be performed; and rotating the information area around the center point to correct the tilt of the information area.
【請求項6】 請求項5記載の画像補正方法において、
情報領域の傾きを補正したとき、補正により生じるすき
ま部分を余白領域の色で埋めることを特徴とする画像補
正方法。
6. The image correction method according to claim 5, wherein
An image correction method characterized in that when a tilt of an information area is corrected, a gap generated by the correction is filled with a color of a blank area.
【請求項7】 製本原稿または複数枚の紙を束ねた原稿
の見開き部分または複数並べた原稿を、画像入力装置で
読み取った画像データの画像補正装置において、画像補
正の対象とする画像データを読み取る画像読取り手段
(1)と、画像読取り手段で読み取った画像データを画
像補正処理に適したデータ形式に変換するフォーマット
変換手段(2)と、フォーマット変換手段でデータ形式
を変換した画像データを余白とそれ以外の文字領域およ
び表領域を含む情報領域に区分する情報領域区分手段
(3)と、情報領域区分手段で区分した情報領域が画像
データ内で傾きが有るかを判定する傾き判定手段(4)
と、情報領域を傾きがないように補正する画像補正手段
(5)とを備えることを特徴とする画像補正装置。
7. An image correction apparatus for reading image data of a bookbinding original or a spread of originals in which a plurality of sheets of paper are bundled, or an original in which a plurality of originals are arranged, is read by an image input device. Image reading means (1), format conversion means (2) for converting image data read by the image reading means into a data format suitable for image correction processing, and converting the image data converted by the format conversion means into margins. An information area dividing means (3) for dividing into other information areas including a character area and a table area; and an inclination determining means (4) for judging whether or not the information area divided by the information area dividing means has an inclination in the image data. )
And an image correcting means (5) for correcting the information area so as not to be tilted.
【請求項8】 請求項7記載の画像補正装置において、
画像データにおける情報領域の区分に使用する方法をヒ
ストグラムまたはラベリングまたはヒストグラムとラベ
リングの両方のいずれかから選択する手段を備えること
を特徴とする画像補正装置。
8. The image correction apparatus according to claim 7, wherein
An image correction apparatus, comprising: means for selecting a method used for dividing an information region in image data from either histogram, labeling, or both histogram and labeling.
【請求項9】 請求項7記載の画像補正装置において、
所定の傾き角度の範囲において、所定の角度毎傾けた情
報領域の画像に対してヒストグラムを取り、ヒストグラ
ム分布が1番大きな傾け角度を補正角度とし、補正角度
が0度でないとき、傾きが有ると判定する手段を備える
ことを特徴とする画像補正装置。
9. The image correction apparatus according to claim 7, wherein
In the range of the predetermined tilt angle, a histogram is taken for the image of the information area tilted by a predetermined angle, the tilt angle having the largest histogram distribution is set as the correction angle, and when the correction angle is not 0 degree, there is a tilt. An image correction apparatus, comprising: a determination unit.
【請求項10】 請求項7記載の画像補正装置におい
て、情報領域の傾きの検出に使用する方法をヒストグラ
ムまたはラベリングから選択する手段を備えることを特
徴とする画像補正装置。
10. The image correction apparatus according to claim 7, further comprising means for selecting a method used for detecting the inclination of the information area from histogram or labeling.
【請求項11】 請求項7記載の画像補正装置におい
て、傾き補正を行う情報領域の中心点を求め、中心点を
中心に回転させて情報領域の傾きを補正する手段を備え
ることを特徴とする画像補正装置。
11. The image correction apparatus according to claim 7, further comprising: means for obtaining a center point of the information area for which inclination correction is to be performed, and rotating about the center point to correct the inclination of the information area. Image correction device.
【請求項12】 請求項11記載の画像補正装置におい
て、情報領域の傾きを補正したとき、補正により生じる
すきま部分を余白領域の色で埋める手段を備えることを
特徴とする画像補正装置。
12. The image correction apparatus according to claim 11, further comprising means for, when the inclination of the information area is corrected, filling a gap generated by the correction with a color of a blank area.
【請求項13】 製本原稿または複数枚の紙を束ねた原
稿の見開き部分または複数並べた原稿を、画像入力装置
で読み取った画像データを補正するプログラムを記録し
た記録媒体において、画像補正の対象とする画像データ
を読み取る画像読取り工程と、読み取った画像データを
画像補正処理に適したデータ形式に変換するフォーマッ
ト変換工程と、フォーマット変換工程でデータ形式を変
換した画像データを余白とそれ以外の文字領域および表
領域を含む情報領域に区分する情報領域区分工程と、情
報領域区分工程で区分した情報領域が画像データ内で傾
きが有るかを判定する傾き判定工程と、傾き判定工程で
傾きが有ると判定された情報領域を傾きがないように補
正する画像補正工程とを実行させるためのプログラムを
記録したコンピュータ読み取り可能な記録媒体。
13. A recording medium storing a program for correcting image data read by an image input device on a spread portion of a bound document or a document in which a plurality of sheets of paper are bundled, or a plurality of arranged documents. An image reading step for reading image data to be read, a format conversion step for converting the read image data into a data format suitable for image correction processing, and a margin and other character areas for converting the image data converted in the format conversion step into a margin. An information area dividing step of dividing the image area into information areas including a table area and a table area; an inclination determining step of determining whether the information area divided in the information area dividing step has an inclination in the image data; An image correction step of correcting the determined information area so as to have no inclination. Data readable recording medium.
JP2000136670A 2000-05-10 2000-05-10 Method and device for correcting image and recording medium Pending JP2001320572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000136670A JP2001320572A (en) 2000-05-10 2000-05-10 Method and device for correcting image and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000136670A JP2001320572A (en) 2000-05-10 2000-05-10 Method and device for correcting image and recording medium

Publications (1)

Publication Number Publication Date
JP2001320572A true JP2001320572A (en) 2001-11-16

Family

ID=18644573

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000136670A Pending JP2001320572A (en) 2000-05-10 2000-05-10 Method and device for correcting image and recording medium

Country Status (1)

Country Link
JP (1) JP2001320572A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7327900B2 (en) 2003-03-06 2008-02-05 Seiko Epson Corporation Image reading apparatus and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7327900B2 (en) 2003-03-06 2008-02-05 Seiko Epson Corporation Image reading apparatus and recording medium

Similar Documents

Publication Publication Date Title
US7483564B2 (en) Method and apparatus for three-dimensional shadow lightening
JP3880723B2 (en) Page image processing method and system, and multi-page document copying method
JP3594228B2 (en) Frame erasing device, frame erasing method, and authoring device
JP5366699B2 (en) Image processing apparatus, image processing method, and image processing program
US7020352B2 (en) Photo extraction techniques
US9749487B2 (en) Document reading device that detects orientation of image read from spread document
US7317552B2 (en) Print data forming apparatus, print data forming method, and computer-readable program
JP2001320572A (en) Method and device for correcting image and recording medium
US8531482B2 (en) Use of handwritten notations from photographs
US20060204141A1 (en) Method and system of converting film images to digital format for viewing
JP4168957B2 (en) Image processing program and apparatus
JP2003058877A (en) Method, device and program for correcting distortion
JP3997696B2 (en) Apparatus, method and recording medium for image processing
JP3171626B2 (en) Character recognition processing area / processing condition specification method
JP2017208655A (en) Information processing system, information processing method and program
JP3604909B2 (en) Image registration method
EP0883287A1 (en) Image processing system with automatic image separation and alignment functions
JPH0287139A (en) Layout scanner system
JP2000022946A (en) Image correcting device, image correcting method and medium recorded with image correcting method
JP2008244612A (en) Image processing apparatus and method
JPH10191026A (en) Image processing device and method
JPH10229487A (en) Image-forming device
JP2007280344A (en) Image processing apparatus, image direction identification method and image direction identification program
JP2023136551A (en) Image processing device, image processing method and image processing program
JPH04311157A (en) Image processor