JP3024033B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP3024033B2
JP3024033B2 JP5129085A JP12908593A JP3024033B2 JP 3024033 B2 JP3024033 B2 JP 3024033B2 JP 5129085 A JP5129085 A JP 5129085A JP 12908593 A JP12908593 A JP 12908593A JP 3024033 B2 JP3024033 B2 JP 3024033B2
Authority
JP
Japan
Prior art keywords
frame line
specific pattern
line
frame
extracted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP5129085A
Other languages
Japanese (ja)
Other versions
JPH06337937A (en
Inventor
幸司 粂谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP5129085A priority Critical patent/JP3024033B2/en
Publication of JPH06337937A publication Critical patent/JPH06337937A/en
Application granted granted Critical
Publication of JP3024033B2 publication Critical patent/JP3024033B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、枠線を含む画像データ
を処理する画像処理装置に関し、特に、枠線抽出処理、
抽出された枠線の登録処理、抽出された枠線の劣化補正
の処理、および、枠線によって指定された原稿領域のう
ち、原稿の任意の指定領域を抽出する処理を行う画像処
理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for processing image data including a frame line, and more particularly to a frame line extraction process.
The present invention relates to an image processing apparatus that performs a registration process of an extracted frame line, a process of correcting deterioration of the extracted frame line, and a process of extracting an arbitrary designated region of a document from a document region designated by the frame line.

【0002】[0002]

【従来の技術】パソコン・ワープロなどの帳票処理、表
計算処理の入力・出力位置の検出や、コピー機などで枠
線によって指定された原稿画像の原稿部分又は枠線のみ
の抽出等の機能を実現するには、(1)枠線抽出技術、
(2)抽出された枠線の登録技術、(3)抽出された枠
線の劣化補正の技術、及び、(4)枠線によって指定さ
れた原稿領域のうち原稿の任意の指定領域を抽出する技
術が必要となる。
2. Description of the Related Art Functions such as form processing of personal computers and word processors, detection of input / output positions of spreadsheet processing, and extraction of only a document portion or only a frame line of a document image specified by a frame line by a copying machine or the like are provided. To achieve this, (1) border line extraction technology,
(2) a technique for registering the extracted frame line; (3) a technique for correcting the deterioration of the extracted frame line; and (4) extracting an arbitrary designated area of the document from the document area designated by the frame line. Technology is required.

【0003】(1)従来の枠線抽出技術は、枠線全体の
線分を抽出するものであった。
(1) The conventional frame line extraction technique extracts a line segment of the entire frame line.

【0004】(2)従来の抽出された枠線の登録技術と
しては、画像データをそのままの形で登録する技術が広
く使われており、その場合記憶する為の容量は多くなっ
てしまう。またそれを解決すべき方法として、登録画像
の開始点・終了点を登録する方法が創出されている。
(2) As a conventional technique for registering extracted frame lines, a technique for registering image data as it is is widely used, in which case the storage capacity is increased. As a method to solve this, a method of registering a start point and an end point of a registered image has been created.

【0005】(3)従来の抽出された枠線の線部分の劣
化補正技術としては、線分劣化に対してチェーンコード
を利用する技術が創出されている。
(3) As a conventional technique for correcting the deterioration of the line portion of the extracted frame line, a technique using a chain code for line segment deterioration has been created.

【0006】(4)従来の枠線によって指定された原稿
領域のうち原稿の任意の指定領域を抽出する技術では、
原稿と枠線を含む画像データから原稿の任意の指定領域
を抽出する場合、原稿と枠線を含む画像データとは別に
枠線のみのデータが必要であった。
(4) In the conventional technology for extracting an arbitrary designated area of a document from a document area designated by a frame line,
When an arbitrary designated area of a document is extracted from the image data including the document and the frame line, data of only the frame line is required separately from the image data including the document and the frame line.

【0007】(5)従来の線分ずれ補正技術では、処理
対象になる図などを、光学的に変換して画像処理装置に
入力する。入力された画像の線特徴量により、ノイズ除
去、切れた線の埋め込み等を行い線特徴量画像を得る。
線特徴量画像より線位置テーブルを得る。
(5) In the conventional line segment shift correction technique, a figure to be processed is optically converted and input to an image processing apparatus. According to the line feature amount of the input image, noise removal, embedding of a broken line, and the like are performed to obtain a line feature amount image.
A line position table is obtained from the line feature amount image.

【0008】[0008]

【発明が解決しようとする課題】[Problems to be solved by the invention]

(1)従来の枠線抽出技術では、線分に少しでも劣化が
あると、抽出出来ない可能性があり、またはその線分を
その都度補正するために処理時間がかかってしまう問題
点があった。
(1) In the conventional frame line extraction technology, if there is any deterioration in a line segment, it may not be possible to extract the line segment, or there is a problem that processing time is required to correct the line segment each time. Was.

【0009】(2)従来の抽出された枠線の登録技術と
して、登録画像の開始点・終了点を登録する技術は枠線
データを登録するのには不向きであり、開始点・終了点
が多く現れてしまい効率的でない。
(2) As a conventional technique for registering extracted frame lines, a technique for registering a start point and an end point of a registered image is not suitable for registering frame line data. Many appear and are not efficient.

【0010】(3)従来の抽出された枠線の劣化補正技
術として、線分劣化に対してチェーンコードを利用する
技術は、線分抽出のためにまず線分の劣化を補正し線分
の抽出をしなければならず時間がかかってしまう可能性
がある。
(3) As a conventional technique for correcting the deterioration of the extracted frame line, a technique using a chain code for the line segment deterioration is first corrected for the line segment deterioration by extracting the line segment. The extraction has to be done, which can be time consuming.

【0011】(4)従来の枠線によって指定された原稿
領域のうち原稿の任意の指定領域を抽出する技術では、
原稿と枠線を含む画像データとは別に枠線のみのデータ
が必要であり、利用上の利便性を考えると実際的でな
い。
(4) In the conventional technique for extracting an arbitrary designated area of a document from a document area designated by a frame line,
Data of only the frame line is necessary separately from the image data including the original and the frame line, which is not practical in view of convenience in use.

【0012】(5)従来の線分ずれ補正技術では、補正
を行ってから枠線の抽出を行うため、線分の品位により
処理時間がかかってしまう。
(5) In the conventional line segment shift correction technique, since the frame line is extracted after the correction, processing time is required depending on the quality of the line segment.

【0013】本発明はこのような問題点を克服し、枠線
を含む画像データより枠線を効率良く抽出し、少ないデ
ータ量で枠線を登録し、枠線を再生する画像処理装置を
提供することを目的とする。
The present invention overcomes such a problem and provides an image processing apparatus for efficiently extracting a frame line from image data including the frame line, registering the frame line with a small amount of data, and reproducing the frame line. The purpose is to do.

【0014】[0014]

【課題を解決するための手段】本発明の画像処理装置
は、枠線を含む画像データより枠線を抽出し、枠線デー
タを再生する画像処理装置であって、枠線の特定パター
ンを画像データより抽出する枠線抽出手段と、前記枠線
抽出手段により抽出された枠線の特定パターンを登録デ
ータとして枠線画像を登録する枠線登録手段と、枠線画
像を再生する枠線再生手段と、枠線抽出手段により抽出
された枠線の特定パターンで囲まれた領域の濃度ヒスト
グラムを計算する濃度ヒストグラム計算手段と、濃度ヒ
ストグラム計算手段により計算された濃度ヒストグラム
が所定の値以上の領域を原稿領域として登録し抽出する
原稿指定領域抽出手段とを具備することを特徴とする。
SUMMARY OF THE INVENTION An image processing apparatus according to the present invention is an image processing apparatus for extracting a frame line from image data including the frame line and reproducing the frame line data. Frame line extracting means for extracting frame data from data, frame line registering means for registering a frame image using the specific pattern of the frame line extracted by the frame line extracting means as registration data, and frame line reproducing means for reproducing the frame image And extracted by frame line extraction means
Density histogram of the area surrounded by the specific pattern of the drawn border
Density histogram calculation means for calculating the
Density histogram calculated by stogram calculation means
And a document designation area extracting means for registering and extracting an area having a predetermined value or more as a document area.

【0015】[0015]

【0016】[0016]

【0017】[0017]

【0018】[0018]

【作用】枠線抽出手段は、枠線を含む画像データから枠
線の特定パターンを検索し、枠線を抽出する。枠線登録
手段は、枠線抽出手段により抽出された枠線の特定パタ
ーンを登録する。枠線再生手段は、登録された枠線の特
定パターンを読みだして、枠線を再生する。濃度ヒスト
グラム計算手段は、枠線抽出手段により抽出された枠線
の特定パターンで囲まれた領域の濃度ヒストグラムを計
算する。原稿指定領域抽出手段は、濃度ヒストグラム計
算手段により計算された濃度ヒストグラムが所定の値以
上の領域を原稿領域として登録し抽出する。
The frame line extracting means searches a specific pattern of the frame line from the image data including the frame line, and extracts the frame line. The frame line registration unit registers a specific pattern of the frame line extracted by the frame line extraction unit. The frame reproduction unit reads out a specific pattern of the registered frame and reproduces the frame. Concentration histo
The gram calculating means includes a frame line extracted by the frame line extracting means.
The density histogram of the area surrounded by the specific pattern
Calculate. The manuscript designated area extracting means is a density histogram meter.
The density histogram calculated by the
The upper area is registered and extracted as a document area .

【0019】[0019]

【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0020】図13は本発明の一実施例による画像処理
装置の構成図である。枠線を含む画像データは、画像メ
モリ136に記憶されている。また入力装置134より
画像データを読み込む場合は、CPU131の読みだし
命令により、システムバス137を通じて、入力装置1
34より読み込まれた画像データが画像メモリ132に
一旦入り、画像メモリ136に記憶される。
FIG. 13 is a block diagram of an image processing apparatus according to an embodiment of the present invention. The image data including the frame line is stored in the image memory 136. When image data is read from the input device 134, the input device 1 is read via the system bus 137 by a read command from the CPU 131.
The image data read from the memory 34 enters the image memory 132 once and is stored in the image memory 136.

【0021】本実施例の各処理は、CPU131より、
システムバス137を通じて、画像メモリ136の内容
が読み出され処理されるものである。画像データが処理
結果となるものは、CPU131からシステムバス13
7を通じて再び画像メモリ136に記憶される。画像メ
モリ136は複数枚の画像データを記憶できる十分な容
量をもっている。
Each process of this embodiment is executed by the CPU 131.
Through the system bus 137, the contents of the image memory 136 are read and processed. The image data as a processing result is transmitted from the CPU 131 to the system bus 13.
7 and is stored in the image memory 136 again. The image memory 136 has a sufficient capacity to store a plurality of image data.

【0022】出力装置135は表示を行うためのもので
ある。CPU131より表示の命令があたえられると、
システムバス137を通じて画像メモリ133に出力さ
れ表示装置135で表示される。表示装置135と画像
メモリ133は本発明においてなくても実現出来るもの
である。パターンマッチング装置138は枠線の特定パ
ターンを抽出する際に特にパターンマッチング用として
使用する。この装置を付加することにより高速な処理を
行える。この装置がなくてもCPU131で計算するこ
とが出来る。図13は本発明実現のための一例を示した
もので、これ以外のシステム構成でも実現が可能であ
る。CPUは枠線抽出処理、枠線登録処理、枠線再生処
理、線分劣化補正処理、原稿指定領域抽出処理、及び、
線分ずれ補正処理を実行する。
The output device 135 is for displaying. When a display instruction is given from the CPU 131,
The data is output to the image memory 133 through the system bus 137 and displayed on the display device 135. The display device 135 and the image memory 133 can be realized without the present invention. The pattern matching device 138 is used particularly for pattern matching when extracting a specific pattern of a frame line. High-speed processing can be performed by adding this device. The calculation can be performed by the CPU 131 without this device. FIG. 13 shows an example for realizing the present invention, and realization is possible with other system configurations. The CPU performs frame line extraction processing, frame line registration processing, frame line reproduction processing, line segment deterioration correction processing, original designated area extraction processing,
A line shift correction process is executed.

【0023】本実施例では、枠線の線分すべてに着目す
るのではなく枠線の特定パターンを抽出することにより
枠線の抽出をする。そのため従来の問題点であった線分
の劣化のたびに補正処理を行わなくても枠線の抽出を行
うことが出来、処理時間が短縮される。枠線登録処理
は、枠線抽出処理で抽出された特定パターンを枠線の登
録データとすることで、枠線の画像データを少ない容量
で登録することを実現するものである。
In this embodiment, a frame line is extracted by not extracting all line segments of the frame line but extracting a specific pattern of the frame line. Therefore, the frame line can be extracted without performing the correction process each time the line segment is deteriorated, which is a conventional problem, and the processing time is reduced. The frame line registration process realizes registering the image data of the frame line with a small capacity by using the specific pattern extracted in the frame line extraction process as the frame registration data.

【0024】画像データ中の枠線には、必ず図2で表さ
れる特定パターンが含まれている。図2の特定パターン
の内斜線で表されているところが、枠線の画像データ1
0である。白抜きであらわされているところが背景の画
像データ11。また特定パターンはその形状により開始
点、途中点(分岐点)、終点を判定することが可能であ
る。抽出された特定パターンの中心点を特定パターンの
座標値とする。
The frame line in the image data always includes the specific pattern shown in FIG. The hatched portion of the specific pattern shown in FIG.
0. The image data 11 of the background is shown in white. The start point, the middle point (branch point), and the end point of the specific pattern can be determined based on the shape. The center point of the extracted specific pattern is set as the coordinate value of the specific pattern.

【0025】特定パターン1、2、及び3が枠線の開始
点を表し、特定パターン4、5、及び6は終点を表し、
また、特定パターン7、8、及び9が途中点(分岐点)
を表している。ラスタスキャン方向にデータを読み出し
て行った場合、抽出される順はそれぞれ、特定パターン
1→7→4、特定パターン2→8→5、特定パターン3
→9→6である。
The specific patterns 1, 2, and 3 represent the starting points of the frame lines, the specific patterns 4, 5, and 6 represent the ending points,
The specific patterns 7, 8, and 9 are intermediate points (branch points).
Is represented. When data is read out in the raster scan direction, the extraction order is specific pattern 1 → 7 → 4, specific pattern 2 → 8 → 5, specific pattern 3
→ 9 → 6.

【0026】枠線の特定パターンは線の太さを指定する
ことによりブロックの大きさを任意に設定するものであ
る。
The specific pattern of the frame line is to arbitrarily set the size of the block by designating the line thickness.

【0027】図1は本実施例の枠線抽出処理を示すフロ
ーチャートである。
FIG. 1 is a flowchart showing the frame line extraction processing of this embodiment.

【0028】まず、ステップS1では、枠線を含む画像
データよりラスタスキャン順にデータを読み出す。
First, in step S1, data is read out from image data including a frame line in raster scan order.

【0029】次に、ステップS2において、読みだした
データが枠線の特定パターンかどうかを判定する。読み
出したデータが特定パターンでなければステップS1へ
戻り、特定パターンであればステップS3へ進むステッ
プS3では、読みだしデータが開始点であるかどうかを
判定する。開始点であればステップS4へ進み、開始点
でなければステップS5へ進む。
Next, in step S2, it is determined whether the read data is a specific pattern of a frame line. If the read data is not the specific pattern, the process returns to step S1. If the read data is the specific pattern, the process proceeds to step S3. In step S3, it is determined whether the read data is the start point. If it is the start point, the process proceeds to step S4, and if it is not the start point, the process proceeds to step S5.

【0030】ステップS4では、枠線の開始点を登録す
る。
In step S4, the start point of the frame line is registered.

【0031】ステップS5では、途中点(分岐点)かど
うかを判定する。途中点(分岐点)であればステップS
6へ進み。途中点(分岐点)でなければステップS7へ
進む。
In step S5, it is determined whether or not the point is an intermediate point (branch point). If it is an intermediate point (branch point), step S
Proceed to 6. If it is not an intermediate point (branch point), the process proceeds to step S7.

【0032】ステップS6では、枠線の途中点(分岐
点)を登録する。
In step S6, an intermediate point (branch point) of the frame line is registered.

【0033】ステップS7では、枠線の終点を登録す
る。
In step S7, the end point of the frame line is registered.

【0034】上記のフローチャートは枠線を含む画像デ
ータの1ライン中の枠線1要素について示すもので、枠
線要素が複数ある時には、この画像データの1ラインの
最後まで検索する必要がある。上記の作業を繰り返し、
枠線を含む画像データの最終ラインまで行うことによっ
て画像データ中の特定パターンが抽出できる。
The above flowchart shows one frame line element in one line of image data including a frame line. When there are a plurality of frame line elements, it is necessary to search until the end of one line of this image data. Repeat the above work,
By performing the processing up to the last line of the image data including the frame line, a specific pattern in the image data can be extracted.

【0035】抽出する際に、特定パターン以外の枠線画
像自体に劣化があっても関係なく枠線を抽出することが
できる。
At the time of extraction, a frame line can be extracted irrespective of deterioration of the frame image other than the specific pattern itself.

【0036】上記の説明では最初に開始点を示す特定パ
ターンを抽出していることを例としているが、特定パタ
ーンであれば途中点(分岐点)からの抽出も可能であ
る。
In the above description, an example is described in which a specific pattern indicating a start point is first extracted. However, a specific pattern may be extracted from an intermediate point (branch point).

【0037】図3は枠線画像データの例である。このデ
ータは枠線の画像データ31、及び、背景の画像データ
32から成る。
FIG. 3 shows an example of frame image data. This data is composed of frame line image data 31 and background image data 32.

【0038】図4は枠線画像データ例の図3の中で抽出
すべき枠線の特定パターンを明示的に示したものであ
る。パターン41が図2の特定パターン1、パターン4
2が図2の特定パターン7、パターン43が図2の特定
パターン7、パターン44が図2の特定パターン4に対
応している。
FIG. 4 explicitly shows a specific pattern of a frame line to be extracted in FIG. 3 of the frame image data example. The pattern 41 is the specific pattern 1 and the pattern 4 in FIG.
2 corresponds to the specific pattern 7 in FIG. 2, pattern 43 corresponds to the specific pattern 7 in FIG. 2, and pattern 44 corresponds to the specific pattern 4 in FIG.

【0039】図4より、枠線を含む画像データをラスタ
スキャン順に読み出して行き特定パターンを検索する。
まず枠線の開始点を表す特定パターン41が抽出され
る。抽出された開始点の座標を登録しておく。順に枠線
を含む画像データを読み出して行き、途中点(分岐点)
または、終点パターンを抽出する。図の例では途中点
(分岐点)42が抽出される。抽出された途中点(分岐
点)を登録する。同様にして他の途中点(分岐点)43
と終点44を抽出して登録する。終点44が抽出された
場合、枠線の線分1本についての抽出は終了である。こ
のようにして図3の枠線の特定パターンが図4の様に抽
出される。
Referring to FIG. 4, image data including a frame line is read out in a raster scan order to search for a specific pattern.
First, the specific pattern 41 representing the start point of the frame line is extracted. The coordinates of the extracted start point are registered. The image data including the frame line is read out in order, and the intermediate point (branch point)
Alternatively, an end point pattern is extracted. In the example shown in the figure, an intermediate point (branch point) 42 is extracted. Register the extracted midpoint (branch point). Similarly, another intermediate point (branch point) 43
And the end point 44 are extracted and registered. When the end point 44 has been extracted, the extraction of one frame segment has been completed. Thus, the specific pattern of the frame line in FIG. 3 is extracted as shown in FIG.

【0040】図5は枠線の直線そのものを表すパターン
である。枠線の特定パターンを抽出する為に枠線を含む
画像データより読み出された際に現れるものである。本
実施例の場合には、図5の要素とは関係なく枠線の抽出
を行うことが出来るが、画像データを読みだして特定パ
ターンを検索する際に枠線の線分であることの確認のた
め読み出しても良い。但し枠線の要素の抽出とは無関係
であるためこのデータは劣化していてもよく本抽出方法
が有効であることが分かる。
FIG. 5 is a pattern showing the frame line itself. This appears when data is read from image data including a frame line in order to extract a specific pattern of the frame line. In the case of the present embodiment, the frame line can be extracted regardless of the elements in FIG. 5, but when the image data is read and a specific pattern is searched, it is confirmed that the frame line is a line segment of the frame line. May be read. However, since this data is irrelevant to the extraction of the elements of the frame line, this data may be degraded, and it can be seen that this extraction method is effective.

【0041】上記の方法でもって枠線を含む画像データ
より、枠線の開始点、途中点(分岐点)、終点を求める
ことが出来る。求めた枠線の各点を接続することにより
枠線画像を作成することも容易である。
With the above method, the start point, the middle point (branch point), and the end point of the frame line can be obtained from the image data including the frame line. It is also easy to create a frame image by connecting the obtained points of the frame.

【0042】図6は本実施例の枠線画像を登録する枠線
登録処理を示すフローチャートである。
FIG. 6 is a flowchart showing a frame line registration process for registering a frame image according to the present embodiment.

【0043】ステップS61において前述の枠線抽出処
理により枠線を含む画像データから枠線の特定パターン
を抽出する。
In step S61, a specific pattern of the frame line is extracted from the image data including the frame line by the above-described frame line extraction process.

【0044】ステップS62において抽出された特定パ
ターンの中心点を座標として登録する。
The center point of the specific pattern extracted in step S62 is registered as coordinates.

【0045】抽出されたパターンは図2の特定パターン
1〜9に対応する。上記のように抽出された特定パター
ンを抽出した座標のデータと共に登録することによっ
て、単に枠線の画像データとして登録するよりも遥かに
少ない容量で登録することが出来る。
The extracted patterns correspond to the specific patterns 1 to 9 in FIG. By registering the specific pattern extracted as described above together with the extracted coordinate data, it is possible to register with a much smaller capacity than simply registering as frame image data.

【0046】登録した枠線データを再生するには、図2
の特定パターンをそれぞれ以下の様に接続する。各特定
パターンの中心点座標に特定パターンを描き、各特定パ
ターンの中心点から水平方向にそれぞれ、特定パターン
1→7→4、特定パターン3→9→6、特定パターン2
→8→5のパターン中心点間を直線で接続する。同様
に、各特定パターンから垂直方向にそれぞれ、特定パタ
ーン1→3→2、特定パターン4→6→5、特定パター
ン7→9→8のパターン中心点間を直線で接続する。こ
の処理により、枠線抽出処理とは逆に図4より図3が作
成できる。
To reproduce the registered frame data, FIG.
Are connected as follows. The specific pattern is drawn at the center point coordinates of each specific pattern, and the specific pattern 1 → 7 → 4, the specific pattern 3 → 9 → 6, the specific pattern 2 in the horizontal direction from the central point of each specific pattern.
Connect straight lines between → 8 → 5 pattern center points. Similarly, a straight line is connected between the pattern center points of the specific patterns 1 → 3 → 2, the specific patterns 4 → 6 → 5, and the specific patterns 7 → 9 → 8 in the vertical direction from the specific patterns. By this processing, FIG. 3 can be created from FIG. 4 in reverse to the frame line extraction processing.

【0047】上記の処理により効率よく画像の登録が出
来る。
By the above processing, an image can be registered efficiently.

【0048】本実施例では、枠線を含む画像データより
枠線の特定パターンを検索、抽出することにより枠線を
抽出することに特徴がある。本方法により枠線データの
特定パターン以外の線分自体に画像の劣化があっても特
定パターンを検出すれば線分を抽出することが可能であ
る。特定パターンのみを抽出するため画像の劣化などの
理由により線分かノイズかの判定処理を別途行う必要が
なくなる為高速処理が可能である。枠線抽出処理により
抽出された枠線の特定パターンを枠線登録のデータとし
て使用することにより、枠線の画像データ全体を登録す
るより、少ないデータ量で枠線画像を再生することが可
能である。また、特定パターンの座標が抽出されること
から枠線画像そのままより帳票などのデータ処理用とし
て使用が行い易い特徴がある。
This embodiment is characterized in that a frame line is extracted by searching and extracting a specific pattern of the frame line from image data including the frame line. According to this method, even if a line segment other than the specific pattern of the frame data has image deterioration, the line segment can be extracted by detecting the specific pattern. Since only a specific pattern is extracted, it is not necessary to perform a separate process of determining whether the image is a line segment or noise due to deterioration of an image or the like, so that high-speed processing is possible. By using the specific pattern of the frame line extracted by the frame line extraction process as data for frame line registration, it is possible to reproduce the frame line image with a smaller data amount than registering the entire frame line image data. is there. Further, since the coordinates of the specific pattern are extracted, there is a feature that the frame line image can be easily used for data processing of a form or the like as it is.

【0049】線部分劣化補正処理は、枠線抽出処理で抽
出された特定パターンより枠線の線分データを補正す
る。そのため、チェーンコードによる劣化補正をするこ
となしに線分抽出を行い、枠線データの劣化を補正する
ことが出来るため高速処理が出来る。
In the line part deterioration correction processing, the line segment data of the frame line is corrected from the specific pattern extracted in the frame line extraction processing. Therefore, line segments can be extracted without performing deterioration correction by the chain code, and the deterioration of the frame data can be corrected, so that high-speed processing can be performed.

【0050】図7は劣化のある枠線の補正を行う線部分
劣化補正処理を示すフローチャートである。
FIG. 7 is a flowchart showing a line portion deterioration correction process for correcting a degraded frame line.

【0051】ステップS71において、枠線抽出により
画像データから枠線の特定パターンを抽出する。
In step S71, a specific pattern of a frame line is extracted from image data by frame line extraction.

【0052】ステップS72において、抽出された特定
パターンの形状を判定し、中心点間を垂直方向、水平方
向に直線で接続する。
In step S72, the shape of the extracted specific pattern is determined, and the center points are connected by straight lines in the vertical and horizontal directions.

【0053】特定パターンを接続する処理は前述の登録
した枠線データを再生する処理の通りである。直線で接
続することにより劣化のあった枠線の線分の補正が実現
できる。
The processing for connecting the specific pattern is the same as the processing for reproducing the registered frame data. By connecting the straight lines, it is possible to realize the correction of the line segment of the degraded frame line.

【0054】図8は劣化のある枠線および特定パターン
を明示的に示したものである。枠線抽出処理により、パ
ターン81、82、83、86、87、88が抽出され
る。図8の劣化した画像を補正する為には各特定パター
ンの中心点間を直線で接続する。接続する処理は、前述
の登録した枠線データを再生する処理の通りである。こ
の処理を行うことにより図8では劣化部分84、85の
補正が出来る。特定パターンの中心を直線で結ぶか、あ
るいは、特定パターンの間には図5のパターンがあるこ
とから、枠線の特定パターンを検索する際にこのパター
ンに置き換えるかにより補正処理を行うことができる。
FIG. 8 explicitly shows a degraded frame line and a specific pattern. Patterns 81, 82, 83, 86, 87, and 88 are extracted by the frame line extraction processing. In order to correct the deteriorated image shown in FIG. 8, a straight line is connected between the center points of the specific patterns. The connecting process is the same as the process of reproducing the registered frame line data. By performing this process, the degraded portions 84 and 85 can be corrected in FIG. The correction process can be performed by connecting the center of the specific pattern with a straight line or by replacing the specific pattern with this pattern when searching for the specific pattern of the frame line since there is the pattern of FIG. .

【0055】上記の処理により枠線データの補正を行う
ことが出来る。
With the above processing, the frame line data can be corrected.

【0056】枠線抽出処理により抽出された枠線の特定
パターンにより、枠線データの接続が確定出来るため、
特定パターン以外の枠線自体に画像の劣化があっても特
定パターンの座標より枠線データの補正をすることが出
来る。また補正は、抽出された特定パターンを使用し行
われるために、チェーンコード等を用いた補正を行うよ
り高速に実現出来る。
The connection of the frame data can be determined by the specific pattern of the frame extracted by the frame extraction processing.
Even when the image of the frame line other than the specific pattern itself is deteriorated, the frame line data can be corrected from the coordinates of the specific pattern. Further, since the correction is performed using the extracted specific pattern, the correction can be realized at a higher speed than the correction using a chain code or the like.

【0057】原稿指定領域抽出処理では、原稿と枠線を
含む画像データより、まず枠線のみを抽出しそのデータ
と、元データである、原稿と枠線を含む画像データとを
演算処理することによって、原稿の任意の指定領域を抽
出することが可能である。
In the original designated area extracting process, first, only the frame line is extracted from the image data including the original and the frame line, and the data is subjected to arithmetic processing on the original data, that is, the image data including the original and the frame line. Thus, it is possible to extract an arbitrary designated area of the document.

【0058】図9は原稿と枠線を含む画像データより枠
線によって指定された原稿領域のうち、原稿の任意の指
定領域を抽出するための原稿指定領域抽出処理のフロー
チャートである。
FIG. 9 is a flowchart of an original designated area extracting process for extracting an arbitrary designated area of the original from the original area designated by the frame line from the image data including the original and the frame line.

【0059】ステップS91において、枠線抽出処理に
より枠線の特定パターンを抽出する。
In step S91, a specific pattern of a frame line is extracted by a frame line extraction process.

【0060】ステップS92において、抽出された特定
パターンから前述の枠線再生処理により枠線画像を作成
する。
In step S92, a frame image is created from the extracted specific pattern by the frame reproduction process described above.

【0061】ステップS93において、作成された枠線
画像と元の画像データである原稿と枠線を含む画像デー
タにおいて論理演算をする。
In step S93, a logical operation is performed on the created frame line image and the original image data, ie, the original and the image data including the frame line.

【0062】ステップS94において、枠線で囲まれて
いない領域の画像を消去し、原稿のみの画像データを得
る。
In step S94, the image in the area not surrounded by the frame is erased to obtain image data of only the original.

【0063】ステップS95において、抽出された原稿
のみのデータに対して、ステップS91において抽出さ
れた特定パターンで囲まれた領域ごとに濃度ヒストグラ
ムを計算する。
In step S95, a density histogram is calculated for the data of only the extracted original document for each area surrounded by the specific pattern extracted in step S91.

【0064】ステップS96において、ステップS95
において得られた濃度ヒストグラムが任意に指定する値
以上になった場合、そこに原稿が書かれてある領域とし
て登録する。登録するデータは特定パターンとその座標
を登録する。
In step S96, step S95
If the density histogram obtained in step 2 becomes equal to or larger than the value specified arbitrarily, the area is registered as an area where the document is written. As the data to be registered, a specific pattern and its coordinates are registered.

【0065】図10は原稿と枠線を含む画像データの例
である。枠線データ102の中に原稿データ101が入
っている。
FIG. 10 shows an example of image data including a document and a frame line. Document data 101 is included in frame line data 102.

【0066】図11は図10に示した画像データから上
記の処理により得られた枠線の画像データである。
FIG. 11 shows frame line image data obtained by the above processing from the image data shown in FIG.

【0067】図12は図10に示した画像データと図1
1に示した画像データより得られる枠線によって指定さ
れた原稿領域のうち、原稿の任意の指定領域が抽出され
た領域121を明示的に示すものである。
FIG. 12 shows the image data shown in FIG.
In the document area specified by the frame line obtained from the image data shown in FIG. 1, the area 121 where an arbitrary specified area of the document is extracted is explicitly shown.

【0068】上記の処理により、原稿と枠線を含む画像
データより枠線によって指定された原稿の任意の指定領
域の抽出が出来る。
By the above processing, it is possible to extract an arbitrary designated area of the original specified by the frame line from the image data including the original and the frame line.

【0069】線部分劣化補正処理により枠線データの補
正を行うことが出来る。ここでは、劣化に対する補正の
方法について示したが、線分にずれがある場合には抽出
された特定パターンに対してずれの補正を行う。ずれの
補正を含む枠線の特定パターンを利用して補正した枠線
データを作成する線分ずれ補正処理を次に説明する。
The frame line data can be corrected by the line partial deterioration correction processing. Here, the method of correcting the deterioration has been described, but when there is a deviation in the line segment, the deviation is corrected for the extracted specific pattern. Next, a description will be given of a line segment shift correction process for creating frame line data corrected using a specific pattern of the frame line including the shift correction.

【0070】図14は枠線データのずれ・劣化の補正を
行い、枠線データの特定パターンにより枠線データを作
成する線分ずれ補正処理を表すフローチャートである。
枠線抽出処理により枠線を含む画像データから枠線の特
定パターンを抽出する。
FIG. 14 is a flowchart showing a line segment shift correction process for correcting the shift and deterioration of the frame line data and creating the frame line data according to a specific pattern of the frame line data.
A specific pattern of the frame line is extracted from the image data including the frame line by the frame line extraction process.

【0071】ステップS141において、抽出した特定
パターンの中心座標にずれがある場合補正する。
In step S141, if there is a deviation in the center coordinates of the extracted specific pattern, it is corrected.

【0072】ステップS142において、ステップS1
41で抽出した特定パターン間を直線で接続する。
In step S142, step S1
The specific patterns extracted in 41 are connected by straight lines.

【0073】図15は枠線の特定パターンを抽出した例
である。パターン151〜154は抽出された特定パタ
ーンであり、パターン152がパターン151、15
3、154に比べて位置がずれて抽出された例である。
FIG. 15 shows an example in which a specific pattern of a frame line is extracted. Patterns 151 to 154 are extracted specific patterns, and pattern 152 is a pattern 151, 15
This is an example in which the position is shifted as compared with 3, 154.

【0074】図16は図15の特定パターンに補正を加
えて枠線画像を作成したことを明示的に示した例であ
る。パターン151〜154が枠線の特定パターンであ
る。パターン155〜157が特定パターンを結ぶ直線
である。パターン152の特定パターンがパターン15
1、153、154の直線で結ばれる座標に補正された
ことが分かる。このようにしてずれて抽出された枠線の
特定パターンに対して位置的な補正を加えることによっ
てずれに対する補正が出来る。
FIG. 16 is an example explicitly showing that a frame image is created by correcting the specific pattern of FIG. Patterns 151 to 154 are specific patterns of the frame lines. Patterns 155 to 157 are straight lines connecting the specific patterns. The specific pattern of the pattern 152 is the pattern 15
It can be seen that the coordinates have been corrected to the coordinates connected by the straight lines 1, 153 and 154. By performing positional correction on the specific pattern of the frame line extracted and shifted in this way, the shift can be corrected.

【0075】各特定パターンの水平方向・垂直方向の位
置の補正は、各特定パターンの平均位置をとってもよい
し、一番出現頻度の高い位置としてもよい。
The horizontal and vertical positions of each specific pattern may be corrected by taking the average position of each specific pattern or the position where the most frequently appearing.

【0076】各特定パターンが水平、垂直に接続される
ように並ばないにもかかわらず、各特定パターン間が直
線で接続される場合には全体的にずれている可能性があ
るので、求められる枠線データに対して回転等の座標変
換を行う方法もとれる。また一つの特定パターンのみ回
転して抽出された場合他の特定パターンの位置を参照し
て特定パターンを回転の座標変換を行うこともできる。
Even though the specific patterns are not arranged so as to be connected horizontally and vertically, if the specific patterns are connected by a straight line, there is a possibility that the patterns are totally displaced. A method of performing coordinate conversion such as rotation on the frame line data is available. When only one specific pattern is rotated and extracted, the specific pattern can be subjected to rotation coordinate transformation with reference to the position of another specific pattern.

【0077】抽出した特定パターンより枠線データを作
成する為には、図2の特定パターンをそれぞれ以下の様
にして接続する。各特定パターンの中心点座標に特定パ
ターンを描き、各特定パターンの中心点から水平方向に
それぞれ、特定パターン1→7→4、特定パターン3→
9→6、特定パターン2→8→5のパターン中心点間を
直線で接続する。同様に、各特定パターンから垂直方向
にそれぞれ、特定パターン1→3→2、特定パターン4
→6→5、特定パターン7→9→8のパターン中心点間
を直線で接続する。上記は位置ずれに対しての説明であ
る。線切れなどの劣化を補正する場合には、単に上記の
方法で枠線データを作成すればよい。線部分劣化補正処
理により、図8の図形に対して補正が出来る。
In order to create frame data from the extracted specific patterns, the specific patterns in FIG. 2 are connected as follows. A specific pattern is drawn at the center point coordinates of each specific pattern, and the specific pattern 1 → 7 → 4 and the specific pattern 3 → in the horizontal direction from the center point of each specific pattern, respectively.
A straight line connects the pattern center points of 9 → 6 and specific pattern 2 → 8 → 5. Similarly, the specific pattern 1 → 3 → 2 and the specific pattern 4
A straight line connects the pattern center points of → 6 → 5 and specific pattern 7 → 9 → 8. The above is a description of the displacement. To correct deterioration such as line breakage, frame line data may be simply created by the above method. The line portion deterioration correction processing can correct the graphic in FIG.

【0078】[0078]

【発明の効果】本発明の画像処理装置は、枠線の特定パ
ターンを画像データより抽出する枠線抽出手段と、前記
枠線抽出手段により抽出された枠線の特定パターンを登
録データとして枠線画像を登録する枠線登録手段と、枠
線画像を再生する枠線再生手段と、前記枠線抽出手段に
より抽出された枠線の特定パターンで囲まれた領域の濃
度ヒストグラムを計算する濃度ヒストグラム計算手段
と、前記濃度ヒストグラム計算手段により計算された濃
度ヒストグラムが所定の値以上の領域を原稿領域として
登録し抽出する原稿指定領域抽出手段とを具備するの
で、枠線抽出においては、画像の劣化などの理由により
線分かノイズかの判定を別途行う必要がなくなり、高速
処理が可能である。枠線登録においては、枠線の画像デ
ータを少ないデータ量で登録することが可能となる。ま
た、枠線によって指定された原稿領域のうち、原稿の任
意の指定領域を抽出する処理を高速に行うことができ
る。
According to the image processing apparatus of the present invention, there is provided a frame line extracting means for extracting a specific pattern of a frame line from image data, and a frame pattern extracted by the frame line extracting means as registration data. A frame line registration unit that registers an image, a frame line reproduction unit that reproduces a frame image, and the frame line extraction unit.
The density of the area surrounded by the specific pattern
Density histogram calculation means for calculating the degree histogram
And the density calculated by the density histogram calculation means.
Area where the degree histogram is equal to or greater than a predetermined value
Since there is provided a document designated region extracting means for registering and extracting, it is not necessary to separately determine whether the image is a line segment or noise due to deterioration of an image, and high-speed processing is possible. In frame line registration, image data of a frame line can be registered with a small data amount. Further, the process of extracting an arbitrary designated area of the document from the document area designated by the frame line can be performed at high speed.

【0079】[0079]

【0080】[0080]

【0081】[0081]

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

【図1】枠線を含む画像データより枠線を抽出する為の
方法を示すフローチャートである。
FIG. 1 is a flowchart illustrating a method for extracting a frame line from image data including the frame line.

【図2】枠線を含む画像データより抽出すべき特定パタ
ーンである。
FIG. 2 is a specific pattern to be extracted from image data including a frame line.

【図3】枠線の画像データ例である。FIG. 3 is an example of image data of a frame line.

【図4】枠線の画像データ例のうち抽出すべき枠線の特
定パターンを明示的に示したものである。
FIG. 4 explicitly shows a specific pattern of a frame line to be extracted from the image data of the frame line.

【図5】枠線の直線そのものを表すパターンである。FIG. 5 is a pattern showing a frame line itself.

【図6】枠線画像を登録する為のフローチャートであ
る。
FIG. 6 is a flowchart for registering a frame image.

【図7】枠線の劣化を補正するための方法を示すフロー
チャートである。
FIG. 7 is a flowchart illustrating a method for correcting deterioration of a frame line.

【図8】劣化のある枠線と枠線の特定パターンを明示的
に示したものである。
FIG. 8 explicitly shows a degraded frame line and a specific pattern of the frame line.

【図9】原稿と枠線を含む画像データより枠線によって
指定された原稿領域のうち、原稿の任意の指定領域を抽
出するための方法を示すフローチャートである。
FIG. 9 is a flowchart illustrating a method for extracting an arbitrary designated area of a document from a document area specified by a frame line from image data including the document and the frame line.

【図10】原稿と枠線を含む画像データの例である。FIG. 10 is an example of image data including a document and a frame line.

【図11】枠線の画像データである。FIG. 11 shows image data of a frame line.

【図12】枠線によって指定された原稿領域のうち、原
稿の任意の指定領域を明示的に示すものである。
FIG. 12 explicitly shows an arbitrary designated area of a document among document areas designated by frame lines.

【図13】本発明の実施例を示すシステムブロック図で
ある。
FIG. 13 is a system block diagram showing an embodiment of the present invention.

【図14】枠線の劣化・ずれ等の補正を行い画像データ
を作成する方法を示すフローチャートである。
FIG. 14 is a flowchart illustrating a method of creating image data by correcting a frame line for deterioration and deviation.

【図15】ずれのある、枠線の特定パターン例である。FIG. 15 is an example of a specific pattern of a frame line having a displacement.

【図16】ずれのある枠線の特定パターンに対して補正
を行い枠線データを作成した例である。
FIG. 16 is an example in which a specific pattern of a displaced frame line is corrected to generate frame line data.

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

1〜9 特定パターン 131 CPU 132、133、136 画像メモリ 134 入力装置 135 出力装置 137 システムバス 138 パターンマッチング装置 1-9 Specific pattern 131 CPU 132, 133, 136 Image memory 134 Input device 135 Output device 137 System bus 138 Pattern matching device

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 枠線を含む画像データより枠線を抽出
し、枠線データを再生する画像処理装置であって、枠線
の特定パターンを画像データより抽出する枠線抽出手段
と、前記枠線抽出手段により抽出された枠線の特定パタ
ーンを登録データとして枠線画像を登録する枠線登録手
段と、枠線画像を再生する枠線再生手段と、前記枠線抽
出手段により抽出された枠線の特定パターンで囲まれた
領域の濃度ヒストグラムを計算する濃度ヒストグラム計
算手段と、前記濃度ヒストグラム計算手段により計算さ
れた濃度ヒストグラムが所定の値の領域を原稿領域とし
て登録し抽出する原稿指定領域抽出手段とを具備するこ
とを特徴とする画像処理装置。
1. An image processing apparatus for extracting a frame line from image data including the frame line and reproducing the frame line data, comprising: a frame line extracting means for extracting a specific pattern of the frame line from the image data; and borders registration means for registering the border image specific pattern of the extracted frame line by line extracting means as registration data, and borders reproducing means for reproducing the border image, the border extract
Enclosed by a specific pattern of the frame line extracted by the output means
Density histogram meter that calculates the density histogram of the area
Calculating means and the density histogram calculating means.
The area where the density histogram has a predetermined value is the original area.
An image processing apparatus, comprising: a document designation area extracting unit for registering and extracting a document.
JP5129085A 1993-05-31 1993-05-31 Image processing device Expired - Fee Related JP3024033B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5129085A JP3024033B2 (en) 1993-05-31 1993-05-31 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5129085A JP3024033B2 (en) 1993-05-31 1993-05-31 Image processing device

Publications (2)

Publication Number Publication Date
JPH06337937A JPH06337937A (en) 1994-12-06
JP3024033B2 true JP3024033B2 (en) 2000-03-21

Family

ID=15000712

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5129085A Expired - Fee Related JP3024033B2 (en) 1993-05-31 1993-05-31 Image processing device

Country Status (1)

Country Link
JP (1) JP3024033B2 (en)

Also Published As

Publication number Publication date
JPH06337937A (en) 1994-12-06

Similar Documents

Publication Publication Date Title
JPH0434345B2 (en)
JP3024033B2 (en) Image processing device
US5446803A (en) Image signal processing apparatus
JP2735197B2 (en) Graphic input device
JPH1049688A (en) Method for partial erasing method and partial detection method for picture data
JP2803736B2 (en) Character recognition method
JPH11187231A (en) Image retrieving device and image retrieval method
JPS61221968A (en) Drawing reader
JP3657725B2 (en) Line figure image processing method
JPH0830725A (en) Device and method for processing image
JP3337592B2 (en) Mark position detecting device and mark position detecting method
JP2838556B2 (en) Image processing device
JPH0535872A (en) Contour tracing system for binary image
JPH0378775A (en) Digital copying machine
JP2536183B2 (en) Image processing method and apparatus
JPH08153178A (en) Method and device for divisional input of document image
JPH052640A (en) Picture rotation device
JPH0416827B2 (en)
JPH11308438A (en) Image processor
JPH01320578A (en) Automatic logic circuit drawing input device
JPS63168785A (en) Picture processor
JPS6331830B2 (en)
JPS60257655A (en) Picture processor
JPH01267784A (en) Noise removing device
JPS63172380A (en) Image processing system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080121

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090121

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees