JPH08263654A - Picture connection component extraction device - Google Patents

Picture connection component extraction device

Info

Publication number
JPH08263654A
JPH08263654A JP7065961A JP6596195A JPH08263654A JP H08263654 A JPH08263654 A JP H08263654A JP 7065961 A JP7065961 A JP 7065961A JP 6596195 A JP6596195 A JP 6596195A JP H08263654 A JPH08263654 A JP H08263654A
Authority
JP
Japan
Prior art keywords
rectangular area
connected component
circumscribing
image
label
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.)
Granted
Application number
JP7065961A
Other languages
Japanese (ja)
Other versions
JP3335032B2 (en
Inventor
Satoshi Naoi
聡 直井
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP06596195A priority Critical patent/JP3335032B2/en
Priority to KR1019950013888A priority patent/KR100228618B1/en
Publication of JPH08263654A publication Critical patent/JPH08263654A/en
Priority to US08/959,712 priority patent/US6081618A/en
Application granted granted Critical
Publication of JP3335032B2 publication Critical patent/JP3335032B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE: To reduce a work area (memory capacity) which is required in an overlap means by obtaining a judgement result on a circumscribed rectangular area selected through the use of a processing result against the other circumscribed rectangular area which is previously processed. CONSTITUTION: A connection component circumscribed rectangle extraction part 101, an overlap connection component extraction part 102, an overlap connection component ordering part 103, a connection component division part 104 and a judgement part 105 are provided. Furthermore, the device is provided with a minute division area size judgement part 106, a label picture generation part 107, an outline tracking part 108, a minute division area judgement part 109 and a minute division area storage part 110. When the other circumscribed rectangular area which is overlapped with the selected circumscribed rectangular area and which is previously processed is present, a result diversion means obtains the judged result on the circumscribed rectangular area selected by using the judged result obtained in the processing against the other external rectangular area. Furthermore, a connection component corresponding to the selected circumscribed rectangular area is specified on the judged result.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像処理の過程で画像
情報から一かたまりとなった画像を抽出する、所謂、画
像切り出しのために使用される画像連結成分抽出装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image connected component extraction apparatus used for so-called image cutting, which extracts a group of images from image information during image processing.

【0002】[0002]

【従来の技術】画像連結領域を抽出する、所謂、ラベリ
ングの手法は、画像を解析してその画像中からかたまっ
た部分を抽出する手段として重要である。例えば、手書
き文字認識OCRでは、複数の文字画像から1個1個の
文字画像を切り出す手段の前処理部にラベリングの手法
が使用されている。更に、このラベリングの手法は、検
査や監視を目的とした画像処理の応用システムにも幅広
く適用されている。
2. Description of the Related Art A so-called labeling method for extracting an image connected region is important as a means for analyzing an image and extracting a solid portion from the image. For example, in the handwritten character recognition OCR, a labeling method is used in a preprocessing unit of a unit that cuts out a character image from a plurality of character images. Furthermore, this labeling method is widely applied to image processing application systems for inspection and monitoring.

【0003】従来、本願出願人は、次のような画像連結
成分抽出装置を提案している。この画像連結領域抽出装
置では、例えば、15図(a)に示すような二値画像か
ら図15(b)に示すように連結した画素1、2(黒ド
ット)にて構成された連結成分A1、A2に外接する矩
形がそれぞれ図15(c)に示すように抽出される。こ
の矩形は、例えば、図15(d)に示すように、右上頂
点の座標(x1,y1)及び左下頂点の座標(x2,y
2)によって特定される。そして、抽出された画素1の
連結成分A1に対応した外接矩形と画素2の連結成分A
2に対応した外接矩形が重なっているか否かが判定され
る。重なっていない矩形に対応した連結成分について
は、その右上頂点及び左下頂点の座標が記憶される。一
方、重なっている各連結成分A1及びA2は、他の連結
成分と重ならないような矩形領域に更に細分化される。
そして、細分化された矩形領域がどの連結成分(画像1
または2)に属するものかが判定される。そして、各連
結成分A1及びA2は細分化された矩形領域の和、差等
の演算で表現される。
Conventionally, the applicant of the present application has proposed the following image connected component extracting device. In this image connected region extracting apparatus, for example, a connected component A1 composed of pixels 1 and 2 (black dots) connected as shown in FIG. 15B from a binary image as shown in FIG. , A2 circumscribed rectangles are extracted as shown in FIG. This rectangle is, for example, as shown in FIG. 15D, the coordinates of the upper right vertex (x1, y1) and the coordinates of the lower left vertex (x2, y).
2). Then, the circumscribed rectangle corresponding to the extracted connected component A1 of the pixel 1 and the connected component A of the pixel 2
It is determined whether the circumscribed rectangles corresponding to 2 overlap. For connected components corresponding to non-overlapping rectangles, the coordinates of the upper right vertex and the lower left vertex are stored. On the other hand, the overlapping connected components A1 and A2 are further subdivided into rectangular regions that do not overlap with other connected components.
Then, the connected component (image 1
Or it is determined whether or not it belongs to 2). Then, the respective connected components A1 and A2 are expressed by calculation of sum, difference, etc. of the subdivided rectangular areas.

【0004】例えば、図15(c)において、画素1の
連結成分A1は最大の矩形領域1−1及びそれに含まれ
る矩形領域1−2を用いて、 (1−1)−(1−2) のように各矩形領域の差にて表現され、また、画素2の
連結成分A2は最大の矩形領域2−1及びそれに含まれ
る矩形領域2−2及び2−3を用いて、 (2−1)−(2−2)+(2−3) のように、各矩形領域の和及び差にて表現される。
For example, in FIG. 15 (c), the connected component A1 of the pixel 1 uses the maximum rectangular area 1-1 and the rectangular area 1-2 contained therein, and (1-1)-(1-2) , The connected component A2 of the pixel 2 is obtained by using the largest rectangular area 2-1 and the rectangular areas 2-2 and 2-3 included therein. )-(2-2) + (2-3), which is expressed by the sum and difference of each rectangular area.

【0005】基本的なラベリングの手法では、画素1の
連結成分及び画素2の連結成分を夫々別々のラベル(1
または2)で表さなければならず(ラベル画像;図15
(b)参照)、例えば、各ページにおいて認識すべき文
字数が多くなるとラベルの数も多くなって、各連結成分
を表現する情報量が多くなる(256文字の場合各ドッ
トを8ビットの情報で表すことになる)。
In the basic labeling method, the connected component of pixel 1 and the connected component of pixel 2 are labeled with different labels (1
Or 2) (label image; FIG. 15).
(See (b)) For example, if the number of characters to be recognized in each page increases, the number of labels also increases, and the amount of information expressing each connected component increases (in the case of 256 characters, each dot is represented by 8-bit information). Will be represented).

【0006】これに対し、上記のように、連結成分を連
結するドット(画素)の外接矩形で表現するようにすれ
ば、各連結成分を表す情報量が少なくて済む。
On the other hand, if the connected components are represented by the circumscribing rectangles of the dots (pixels) connecting the connected components, the amount of information representing each connected component can be reduced.

【0007】[0007]

【発明が解決しようとする課題】上述した処理におい
て、連結成分A1及びA2に対応した外接矩形領域が重
なった部分を細分化して得られた矩形領域が元の連結成
分A1またはA2のいずれに含まれるかは、上記ラベル
画像を生成し、その結果に基づいて判定している。例え
ば、図15に示す例の場合、矩形領域2−3が連結成分
A2に属するか否かは、連結成分A2のラベル画像を作
成して、矩形領域2−3のラベル画像が連結成分A2の
ラベル画像と一致するか否かに基づいて判定している。
In the above processing, a rectangular area obtained by subdividing a portion where the circumscribed rectangular areas corresponding to the connected components A1 and A2 are subdivided is included in either of the original connected components A1 or A2. Whether or not the label image is generated is determined based on the result of generating the label image. For example, in the case of the example shown in FIG. 15, whether or not the rectangular area 2-3 belongs to the connected component A2 is determined by creating a label image of the connected component A2 and determining that the label image of the rectangular area 2-3 is the connected component A2. It is determined based on whether or not it matches the label image.

【0008】このように、連結領域が重なった部分を細
分化してその各細分化された矩形領域がどの連結成分に
属するかを判定するために、その連結成分のラベル画像
を作成する従来の手法では、その連結領域が大きくその
中に含まれる他の連結領域が多い場合には、ラベル画像
の種類が多くなる。その結果、判定処理において扱われ
る情報量が多くなり、この判定を行うために大きなワー
ク領域(メモリ領域)が必要となってしまう。
As described above, in order to subdivide the portion where the connected regions overlap and determine which connected component each of the subdivided rectangular regions belongs to, a conventional method of creating a label image of the connected component Then, when the connected region is large and other connected regions are included in the connected region, the number of label images increases. As a result, the amount of information handled in the determination processing increases, and a large work area (memory area) is required to make this determination.

【0009】そこで、本発明の目的は、画像から連結成
分を抽出する際に、できるだけワーク領域が削減できる
ような画像連結成分抽出装置を提供することである。
Therefore, an object of the present invention is to provide an image connected component extracting apparatus which can reduce a work area as much as possible when extracting connected components from an image.

【0010】[0010]

【課題を解決するための手段】上記課題を解決するた
め、本発明は、請求項1に記載されるように、対象とな
る画像を連結した画素により構成される連結成分に分け
てその外接矩形領域を抽出する外接矩形抽出手段と、外
接矩形抽出手段にて抽出された外接矩形領域のうち重な
りあうものを抽出する重なり外接矩形抽出手段と、重な
り外接矩形抽出手段にて抽出された外接矩形領域から所
定の順番にて処理すべき外接矩形領域を選択し、その選
択された外接矩形領域を矩形領域切りわけて、その切り
分けられた矩形領域が重なった外接矩形領域に対応した
いずれの連結成分に属すべきかを判定する重なり部処理
手段とを有し、その判定結果に基づいて、当該選択され
た外接矩形領域に対応する連結成分を特定するようにし
た画像連結成分抽出装置において、該重なり部処理手段
は、当該選択された外接矩形領域に重なる既に処理され
た他の外接矩形領域に対する処理にて得られた判定結果
を用いて当該選択された外接矩形領域についての判定結
果を得る結果流用手段を有するようにした。
In order to solve the above-mentioned problems, according to the present invention, as described in claim 1, a target image is divided into connected components composed of connected pixels, and a circumscribed rectangle thereof is divided. A circumscribing rectangle extracting means for extracting a region, an overlapping circumscribing rectangle extracting means for extracting overlapping ones of the circumscribing rectangular areas extracted by the circumscribing rectangle extracting means, and a circumscribing rectangular area extracted by the overlapping circumscribing rectangle extracting means Select a circumscribed rectangular area to be processed in a predetermined order from, and divide the selected circumscribed rectangular area into rectangular areas, and select which connected component corresponds to the circumscribed rectangular area where the separated rectangular areas overlap. An image connected component extraction that has an overlapping portion processing unit that determines whether it should belong and that specifies a connected component corresponding to the selected circumscribed rectangular area based on the determination result. In this case, the overlapping portion processing means determines the selected circumscribed rectangular area using the determination result obtained by the processing for the already processed other circumscribed rectangular area overlapping the selected circumscribed rectangular area. A result diversion means for obtaining results was provided.

【0011】また、上記画像連結成分抽出装置におい
て、各外接矩形領域を選択した際に、できるたけ多くの
既に処理された他の外接矩形領域が存在させるようにす
る観点から、請求項5に記載されるように、該重なり部
処理手段は、重なる外接矩形領域から処理すべき外接矩
形領域をその面積の小さい順に選択する領域選択手段を
有した。
Further, in the image connected component extracting apparatus, when each circumscribing rectangular area is selected, as many other circumscribing rectangular areas that have already been processed exist as much as possible. As described above, the overlapping portion processing means has the area selecting means for selecting the circumscribed rectangular areas to be processed from the overlapping circumscribed rectangular areas in the ascending order of area.

【0012】更に、大きな面積の外接矩形領域を処理の
対象とする際に、その中にできるだけ多くの外接矩形領
域が含まれるようにするという観点から、請求項6に記
載されるように、該重なり部処理手段は、他の外接矩形
領域に包含されている外接矩形領域を優先的に選択する
手段を有するようにした。
Further, when a circumscribing rectangular area having a large area is to be processed, the circumscribing rectangular area is contained as much as possible in order to include the circumscribing rectangular area. The overlapping portion processing means has a means for preferentially selecting a circumscribed rectangular area included in another circumscribed rectangular area.

【0013】また、上記課題を解決するため、本発明
は、請求項7に記載されるように、対象となる画像を連
結した画素により構成される連結成分に分けてその外接
矩形領域を抽出する外接矩形抽出手段と、外接矩形抽出
手段にて抽出された外接矩形領域のうち重なりあうもの
を抽出する重なり外接矩形抽出手段と、重なり外接矩形
抽出手段にて抽出された外接矩形領域から所定の順番に
て処理すべき外接矩形領域を選択し、その選択された外
接矩形領域を矩形領域切りわけて、その切り分けられた
矩形領域が重なった外接矩形領域に対応したいずれの連
結成分に属すべきかを判定する重なり部処理手段とを有
し、その判定結果に基づいて、当該選択された外接矩形
領域に対応する連結成分を特定するようにした画像連結
成分抽出装置において、該重なり部処理手段は、切りわ
けられた矩形領域内の所定の画素から出発する輪郭追跡
を行う輪郭追跡手段と、その輪郭追跡の結果に基づい
て、該矩形領域が該選択された外接矩形領域に対応する
連結成分に属するか否かの判定結果を得る判定手段とを
有するようにした。
In order to solve the above problems, according to the present invention, as described in claim 7, the circumscribed rectangular area is extracted by dividing the target image into connected components composed of connected pixels. A circumscribing rectangle extraction means, an overlapping circumscribing rectangle extracting means for extracting overlapping ones of the circumscribing rectangle areas extracted by the circumscribing rectangle extracting means, and a predetermined order from the circumscribing rectangle area extracted by the overlapping circumscribing rectangle extracting means Select the circumscribed rectangular area to be processed in step 1, divide the selected circumscribed rectangular area into rectangular areas, and determine which connected component corresponding to the circumscribed rectangular area where the separated rectangular areas overlap. In the image connected component extraction device, which has an overlapping portion processing means for making a judgment, and which specifies a connected component corresponding to the selected circumscribing rectangular area based on the judgment result. The overlapping portion processing means performs contour tracing means for performing contour tracing starting from a predetermined pixel in the cut rectangular area, and based on the result of the contour tracing, the rectangular area is the selected circumscribed rectangle. And a determination unit that obtains a determination result as to whether or not it belongs to the connected component corresponding to the region.

【0014】また、請求項7に記載される画像連結成分
抽出装置において、該矩形領域がいずれの連結成分に属
するかを容易に判定できるという観点から、請求項8に
記載されるように、該判定手段は、輪郭追跡した座標の
最大値と最小値にて特定される矩形が連結成分の外接矩
形と一致するか否かを判定する手段を有し、一致の判定
がなされたときに、該輪郭追跡の出発画素を含む矩形領
域が該連結成分に含まれると判定するようにした。
Further, in the image connected component extracting apparatus described in claim 7, from the viewpoint that it is possible to easily determine which connected component the rectangular area belongs to, The determining means has means for determining whether or not the rectangle specified by the maximum value and the minimum value of the coordinates traced by the contour coincides with the circumscribed rectangle of the connected component. A rectangular area including the starting pixel for contour tracing is determined to be included in the connected component.

【0015】更に、上記課題を解決するため、本発明
は、請求項11に記載されるように、対象となる画像を
連結した画素により構成される連結成分に分けてその外
接矩形領域を抽出する外接矩形抽出手段と、外接矩形抽
出手段にて抽出された外接矩形領域のうち重なりあうも
のを抽出する重なり外接矩形抽出手段と、重なり外接矩
形抽出手段にて抽出された外接矩形領域から所定の順番
にて処理すべき外接矩形領域を選択し、その選択された
外接矩形領域を矩形領域切りわけて、その切り分けられ
た矩形領域が重なった外接矩形領域に対応したいずれの
連結成分に属すべきかを判定する重なり部処理手段とを
有し、その判定結果に基づいて、当該選択された外接矩
形領域に対応する連結成分を特定するようにした画像連
結成分抽出装置において、該重なり部処理手段は、選択
された外接矩形領域の大きさが所定値より大きいか否か
を判定するサイズ判定手段と、該サイズ判定手段が選択
された外接矩形領域の大きさが所定値より大きいと判定
したときに、切りわけられた矩形領域内の所定の画素か
ら出発する輪郭追跡を行う輪郭追跡手段と、その輪郭追
跡の結果に基づいて、該矩形領域が該選択された外接矩
形領域に対応する連結成分に属するか否かの判定結果を
得る判定手段と、該サイズ判定手段が選択された外接矩
形領域の大きさが所定値より大きくないと判定したとき
に、該選択された外接矩形領域内に含まれる連結成分に
対応したラベル画像を作成するラベル画像作成手段と、
その作成されたラベル画像に基づいて、切りわけられた
矩形領域がいずれの連結成分に属するかを判定する手段
を有するようにした。
Further, in order to solve the above-mentioned problems, according to the present invention, as described in claim 11, the circumscribed rectangular area is extracted by dividing the target image into connected components composed of connected pixels. A circumscribing rectangle extraction means, an overlapping circumscribing rectangle extracting means for extracting overlapping ones of the circumscribing rectangle areas extracted by the circumscribing rectangle extracting means, and a predetermined order from the circumscribing rectangle area extracted by the overlapping circumscribing rectangle extracting means Select the circumscribed rectangular area to be processed in step 1, divide the selected circumscribed rectangular area into rectangular areas, and determine which connected component corresponding to the circumscribed rectangular area where the separated rectangular areas overlap. An image connected component extracting apparatus having an overlapping portion processing unit for making a determination, and for specifying a connected component corresponding to the selected circumscribed rectangular area based on the determination result. The overlapping portion processing means determines whether the size of the selected circumscribed rectangular area is larger than a predetermined value, and the size determination means determines the size of the selected circumscribed rectangular area to be predetermined. When it is determined that the rectangular area is larger than the value, a contour tracking unit that performs contour tracking starting from a predetermined pixel in the cut rectangular area, and the rectangular area is selected based on the result of the contour tracking. A determination unit that obtains a determination result as to whether or not it belongs to a connected component corresponding to a rectangular region, and the size determination unit determines that the size of the selected circumscribed rectangular region is not larger than a predetermined value. A label image creating means for creating a label image corresponding to a connected component included in the circumscribed rectangular area,
Based on the created label image, it has a means for determining which connected component the cut rectangular area belongs to.

【0016】[0016]

【作用】請求項1記載の画像連結成分抽出装置では、選
択された外接矩形領域に重なる既に処理された他の外接
矩形領域が有る場合、該結果流用手段が該他の外接矩形
領域に対する処理にて得られた判定結果を用いて当該選
択された外接矩形領域についての判定結果を得る。そし
て、その判定結果に基づいて、当該選択された外接矩形
領域に対応する連結成分が特定される。
In the image connected component extracting apparatus according to claim 1, when there is another processed circumscribed rectangular area which overlaps the selected circumscribed rectangular area, the result diversion means performs processing for the other circumscribed rectangular area. A determination result for the selected circumscribed rectangular area is obtained using the determination result obtained as described above. Then, based on the determination result, the connected component corresponding to the selected circumscribed rectangular area is specified.

【0017】請求項7記載の画像連結成分抽出装置で
は、輪郭追跡手段が、切りわけられた矩形領域の所定の
画素から出発する輪郭追跡を行い、その結果に基づいて
判定手段が、該矩形領域が該選択された外接矩形領域に
対応した連結成分に属するか否かの判定を行う。そし
て、その判定結果に基づいて、当該選択された外接矩形
領域に対応した連結成分が特定される。
In the image connected component extraction device according to the present invention, the contour tracing means performs contour tracing starting from a predetermined pixel of the cut rectangular area, and based on the result, the judging means makes the rectangular area. Determines whether or not belongs to the connected component corresponding to the selected circumscribing rectangular area. Then, based on the determination result, the connected component corresponding to the selected circumscribed rectangular area is specified.

【0018】請求項11記載の画像連結成分抽出装置で
は、サイズ判定手段が、選択された外接矩形領域の面積
が所定値より大きいと判定したときに、上述した輪郭追
跡を行って、領域の判定が行われる。また、サイズ判定
手段が、選択された外接矩形領域の面積が所定値より大
きくないと判定したときに、選択された外接矩形領域に
含まれる連結成分に対応したラベル画像を作成し、その
レベル画像に基づいて領域の判定が行われる。
In the image connected component extraction device according to the eleventh aspect, when the size determination means determines that the area of the selected circumscribing rectangular area is larger than a predetermined value, the above-described contour tracing is performed to determine the area. Is done. In addition, when the size determining means determines that the area of the selected circumscribed rectangular area is not larger than the predetermined value, a label image corresponding to the connected component included in the selected circumscribed rectangular area is created, and its level image is generated. The area is determined based on the.

【0019】[0019]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。本発明の画像連結成分抽出装置は、例えば、文字
等の画像を認識するシステムに適用することができる。
図1は、画像連結成分抽出装置が適用される文字認識シ
ステムの基本的な構成を示す。
Embodiments of the present invention will be described below with reference to the drawings. The image connected component extraction device of the present invention can be applied to, for example, a system for recognizing images such as characters.
FIG. 1 shows a basic configuration of a character recognition system to which an image connected component extraction device is applied.

【0020】図1において、この文字認識システムは、
種々の処理を行うCPU(中央演算処理ユニット)1
0、CPU10にて実行されるプログラムを格納したプ
ログラムメモリ11、画像データをビットマップ形式で
格納する画像メモリ12及び画像データの処理のために
利用されるワークメモリ13を有している。文字認識シ
ステムは、更に、画像を光学的に読み取るスキャナ1
4、スキャナ14にて読み取られた情報を一時的に格納
するメモリ15、各文字画像の特徴を格納した辞書ファ
イル16、出力装置としてのディスプレイユニット17
及びプリンタ18及びこれらの出力装置のインタフェー
ス回路19を有している。上述したCPU10、プログ
ラムメモリ11、画像メモリ12、ワークメモリ13、
メモリ15、辞書ファイル16及びインターフェース回
路19は夫々バス20にて接続されている。
In FIG. 1, this character recognition system is
CPU (central processing unit) 1 that performs various processes
0, a program memory 11 storing a program executed by the CPU 10, an image memory 12 storing image data in a bitmap format, and a work memory 13 used for processing the image data. The character recognition system further includes a scanner 1 that optically reads an image.
4, a memory 15 for temporarily storing information read by the scanner 14, a dictionary file 16 for storing characteristics of each character image, and a display unit 17 as an output device.
And a printer 18 and an interface circuit 19 for these output devices. The above-mentioned CPU 10, program memory 11, image memory 12, work memory 13,
The memory 15, the dictionary file 16 and the interface circuit 19 are connected to each other via a bus 20.

【0021】上記のような文字認識システムでは、スキ
ャナ14にて読み取られた画像データがメモリ15に一
時的に格納され、その画像データがビットマップ形式に
て画像メモリ12に展開される。そして、画像メモリ1
2からワークメモリ13にコピーされた二値画像データ
に対して画像連結成分の抽出処理が行われる。その結果
に基づいて読み取った画像からの文字画像の切り出しが
行われ、切り出された文字画像の特徴と辞書ファイル1
6に格納された特徴データとが比較される。そして、そ
の比較結果に基づいて文字を認識する。その認識結果が
ディスプレイユニット17あるいはプリンタ18に出力
される。
In the character recognition system as described above, the image data read by the scanner 14 is temporarily stored in the memory 15, and the image data is expanded in the image memory 12 in the bitmap format. And the image memory 1
Image connected components are extracted from the binary image data copied from 2 to the work memory 13. A character image is cut out from the read image based on the result, and the characteristics of the cut out character image and the dictionary file 1
The characteristic data stored in 6 is compared. Then, the character is recognized based on the comparison result. The recognition result is output to the display unit 17 or the printer 18.

【0022】上記のシステムにおいて、本願発明に係る
画像連結成分抽出装置は、プログラムメモリ11に格納
されたプログラムに従って処理を行うCPU10の機能
として実現され、その基本的な構成は、例えば、図2に
示すようになっている。図2において、この画像連結成
分抽出装置は、連結成分外接矩形抽出部101、重なり
連結成分抽出部102、重なり連結成分順序付け部10
3、連結成分細分割部104及び判定部105を有して
いる。画像連結成分抽出装置は、更に、細分割領域サイ
ズ判定部106、ラベル画像生成部107、輪郭追跡部
108、細分割領域判定部109及び細分割領域記憶部
110を有している。
In the above system, the image connected component extracting apparatus according to the present invention is realized as a function of the CPU 10 which performs processing in accordance with a program stored in the program memory 11, and its basic configuration is, for example, as shown in FIG. As shown. In FIG. 2, the image connected component extracting apparatus includes a connected component circumscribing rectangle extracting unit 101, an overlapping connected component extracting unit 102, and an overlapping connected component ordering unit 10.
3, a connected component subdivision unit 104 and a determination unit 105. The image connected component extraction apparatus further includes a subdivision area size determination unit 106, a label image generation unit 107, a contour tracking unit 108, a subdivision area determination unit 109, and a subdivision area storage unit 110.

【0023】連結成分外接矩形抽出部101は、ワーク
メモリ13上に展開されている二値画像から連結成分の
外接矩形を算出する。具体的には、図15(d)に示す
ように、外接矩形の左上頂点及び右下頂点の各座標デー
タが算出される。重なり連結抽出部102は、連結成分
外接矩形抽出部101にて抽出された連結成分の外接矩
形のうち、互いに重なっているものを抽出する。重なっ
ていない外接矩形は、その矩形を特定するための左上頂
点及び右下頂点の座標データが記憶される。重なり連結
成分順序付け部103は、各連結成分の外接矩形の面積
を演算し、連結成分を面積の小さい順にソーティングす
る。連結成分細分割部104は、面積の小さい連結成分
から重なりのある連結成分を検索し、その重なった連結
成分について重なった領域を他の領域と重ならないよう
に矩形領域に細分割する。判定部105は、各細分割領
域が既に処理されているかを判定する。判定部105が
既に処理が完了していることを判定した細分割領域にに
ついては、細分割領域記憶部110内に記憶された処理
結果が新たな処理結果として細分割記憶部110に記憶
される()。一方、判定部105がまだ処理が完了し
ていないと判定した細分割領域については、その領域に
関するデータが細分割領域サイズ判定部106に提供さ
れる()。
The connected component circumscribed rectangle extraction unit 101 calculates the circumscribed rectangle of the connected component from the binary image developed on the work memory 13. Specifically, as shown in FIG. 15D, coordinate data of the upper left corner and lower right corner of the circumscribed rectangle are calculated. The overlap connection extraction unit 102 extracts, of the connection component circumscribed rectangles extracted by the connection component circumscribed rectangle extraction unit 101, ones that overlap each other. The circumscribing rectangles that do not overlap store the coordinate data of the upper left vertex and the lower right vertex for specifying the rectangles. The overlapping connected component ordering unit 103 calculates the area of the circumscribed rectangle of each connected component, and sorts the connected components in ascending order of area. The connected component subdivision unit 104 searches for an overlapping connected component from a connected component having a small area, and subdivides the overlapped connected component into rectangular regions so as not to overlap other regions. The determination unit 105 determines whether each subdivision area has already been processed. For the subdivision area for which the determination unit 105 has determined that the processing has already been completed, the processing result stored in the subdivision area storage unit 110 is stored in the subdivision storage unit 110 as a new processing result. (). On the other hand, for the subdivision area that the determination unit 105 has determined that the processing has not been completed, data regarding the area is provided to the subdivision area size determination unit 106 ().

【0024】細分割領域サイズ判定部106は、提供さ
れた細分割領域のサイズを算出する。そして、そのサイ
ズに基づいて、細分割領域のラベル画像を生成してもワ
ークメモリ12の容量が足りると判定されると、ラベル
画像生成部107がその細分割領域のラベル画像を生成
する。そして、細分割領域判定部109が、その細分割
領域のラベル画像(子ラベル)と処理の対象となる連結
成分のラベル画像(親ラベル)が一致するか否かを判定
する。その結果に基づいて、親ラベルの連結成分が細分
割領域の和及び、または差で表現される。
The subdivision area size determination unit 106 calculates the size of the provided subdivision area. If it is determined that the work memory 12 has sufficient capacity even if the label image of the subdivided area is generated based on the size, the label image generation unit 107 generates the label image of the subdivided area. Then, the subdivision area determination unit 109 determines whether the label image (child label) of the subdivision area and the label image (parent label) of the connected component to be processed match. Based on the result, the connected component of the parent label is expressed by the sum and / or difference of the subdivided areas.

【0025】一方、細分割領域サイズ判定部106が細
分割領域のラベル画像を作成するにワークメモリ12の
容量が足りないと判定すると、細分割領域の最外郭部の
画素を出発して輪郭追跡が行われる。輪郭追跡における
追跡座標の最大値と最小値を算出することにより細分割
領域内に相当するラベル画像の外接矩形を求める。そし
て、細分割領域判定部109が対象となる親ラベルと細
分割領域の子ラベルの一致、不一致を調べる。その結果
に基づいて、対象となる連結成分が細分割領域の和及
び、または差で表現される。
On the other hand, when the subdivision area size judgment unit 106 judges that the capacity of the work memory 12 is insufficient to create the label image of the subdivision area, the contour tracing is started from the pixel at the outermost portion of the subdivision area. Is done. The circumscribed rectangle of the label image corresponding to the subdivision area is obtained by calculating the maximum value and the minimum value of the tracking coordinates in contour tracking. Then, the subdivision area determination unit 109 checks whether or not the target parent label and the child label of the subdivision area match. Based on the result, the target connected component is represented by the sum and / or difference of the subdivided regions.

【0026】上記得られた細分割領域の和及び、または
差にて表現された連結成分のデータが細分割領域記憶部
110に記憶される。この細分割領域記憶部110は、
例えば、ワークメモリ13上に設定される。上記のよう
な画像連結成分抽出装置では、図15(a)に示す画像
を処理する場合、図15(c)に示す画素2の連結成分
A2に対応した外接矩形よりも面積の小さい画像1の連
結成分A1に対応した外接矩形が先に処理される。従っ
て、連結成分A1及びA2の重なり領域2−2は、連結
成分A1を対象としたときに処理される。その結果、連
結成分A2を対象としたときには、細分割領域2−2は
前の処理結果(連結領域A1に属す)をそのまま使用
し、特に、この細分割領域2−2が連結成分A2に属す
るかいなかを判定するために、ラベル画像を作成する必
要はない。処理時間を更に短縮するために、連結成分A
2を処理の対象とした場合に、連結成分A1及びA2の
重なり領域を、連結成分A1を表す細分割領域1−1及
び1−2を用いて次のように表現することも可能であ
る。
The data of the connected component expressed by the sum and / or the difference of the obtained subdivided areas is stored in the subdivided area storage unit 110. The subdivision area storage unit 110
For example, it is set on the work memory 13. In the image connected component extraction apparatus as described above, when processing the image shown in FIG. 15A, the image 1 having an area smaller than the circumscribed rectangle corresponding to the connected component A2 of the pixel 2 shown in FIG. The circumscribed rectangle corresponding to the connected component A1 is processed first. Therefore, the overlapping region 2-2 of the connected components A1 and A2 is processed when the connected component A1 is targeted. As a result, when the connected component A2 is targeted, the subdivided area 2-2 uses the previous processing result (belongs to the connected area A1) as it is, and in particular, this subdivided area 2-2 belongs to the connected component A2. It is not necessary to create a label image to determine the size. In order to further reduce the processing time, the connected component A
When 2 is the processing target, the overlapping area of the connected components A1 and A2 can be expressed as follows using the subdivided areas 1-1 and 1-2 representing the connected component A1.

【0027】 A2=+(2−1)−(1−1)+(1−2) 上記図15に示す画像の処理例において、連結成分A1
を表現する場合、最大の外接矩形1−1内では領域1−
2だけが細分割され、かつ、領域1−2が単一のラベル
のため、ラベル画像を生成しなくても画像の外接矩形を
算出するだけでよい。
A2 = + (2-1)-(1-1) + (1-2) In the processing example of the image shown in FIG. 15, the connected component A1
, The region 1-in the largest circumscribing rectangle 1-1.
Since only 2 is subdivided and the area 1-2 has a single label, it is only necessary to calculate the circumscribed rectangle of the image without generating a label image.

【0028】また、図3(a)に示すような複雑な画像
を処理する場合、図3(b)に示すように、画素1及び
画素2の各連結成分A1及びA2が得られる。この場合
も、両方の連結成分A1及びA2が重なった部分が何方
の連結成分に属するかの判定するためには、小さい方の
連結成分A1についてのラベル画像を作成するだけでよ
い。細分割領域1−3が連結成分A1に属するかどうか
を判定する場合に、連結成分A1のラベル画像を生成す
る。更に、連結成分A1の面積が大きく、連結成分A1
のラベル画像を作成するにはワークメモリ13の容量が
足りない場合はに、輪郭追跡が行われる。輪郭追跡の処
理においては、例えば、細分割領域1−3の矩形境界の
画素から出発して輪郭を追跡する。その結果、細分化領
域1−3が連結成分A1に属することが確認される。
When processing a complicated image as shown in FIG. 3A, the connected components A1 and A2 of the pixel 1 and the pixel 2 are obtained as shown in FIG. 3B. Also in this case, in order to determine which connected component the overlapping portion of both connected components A1 and A2 belongs to, it is only necessary to create a label image for the smaller connected component A1. When determining whether the subdivided regions 1-3 belong to the connected component A1, the label image of the connected component A1 is generated. Furthermore, the area of the connected component A1 is large, and the connected component A1
When the capacity of the work memory 13 is insufficient to create the label image of, the contour tracking is performed. In the contour tracking processing, for example, the contour is traced starting from the pixels on the rectangular boundary of the subdivided areas 1-3. As a result, it is confirmed that the subdivided regions 1-3 belong to the connected component A1.

【0029】更に、本発明の実施例に係る画像連結成分
抽出装置を具体的に説明する。この画像連結成分抽出装
置は、図4、図5、図6及び図7に示す手順に従って処
理を実行する。この処理フローは、2つのサブルーチン
SUBJECT1とSUBJECT2の再帰的演算から
なる。
Further, the image connected component extracting apparatus according to the embodiment of the present invention will be specifically described. This image connected component extraction apparatus executes processing according to the procedures shown in FIGS. 4, 5, 6, and 7. This processing flow consists of recursive operations of two subroutines SUBJECT1 and SUBJECT2.

【0030】図4において、画像メモリ12に展開され
た二値画像データがワークメモリ13にコピーされ、図
8に示すよに、ワークメモリ13上の二値画像全体のラ
ベリングが行われる(ブロック501)。このラベリン
グの処理では、連結する画素(連結成分)の外接矩形が
演算される。図8に示す例では、m個の領域(外接矩
形)のラベリングが行われ、各外接矩形がその左上頂点
の座標(x1i,y1i)及び右下頂点の座標(x2
i,y2i)(i=1,2,・・・,m)にて特定され
る。この処理の具体的な手法は、例えば、特願平5−2
3755にて本願出願人にて提案されている。このラベ
リングの結果得られたラベル数(MAXLABEL=m外接矩形
数)がワークメモリ13の所定の領域に格納されると共
に、各ラベル1乃至m(外接矩形1乃至m)を特定する
ための座標データが図9に示すように、ワークメモリ1
3の外接矩形格納領域に格納される。
In FIG. 4, the binary image data expanded in the image memory 12 is copied to the work memory 13, and as shown in FIG. 8, labeling of the entire binary image in the work memory 13 is performed (block 501). ). In this labeling process, the circumscribed rectangle of the connected pixels (connected components) is calculated. In the example shown in FIG. 8, m areas (circumscribing rectangles) are labeled, and each circumscribing rectangle has coordinates (x1i, y1i) of its upper left vertex and coordinates (x2) of its lower right vertex.
i, y2i) (i = 1, 2, ..., M). A concrete method of this processing is, for example, Japanese Patent Application No. 5-2.
3755 proposed by the applicant. The number of labels (MAXLABEL = m number of circumscribed rectangles) obtained as a result of this labeling is stored in a predetermined area of the work memory 13, and coordinate data for specifying each label 1 to m (circumscribed rectangles 1 to m) As shown in FIG.
3 is stored in the circumscribed rectangle storage area.

【0031】各ラベルの抽出が終了すると、上記外接矩
形格納領域に格納された座標データに基づいて、各ラベ
ル間の重なりの有無がチェックされる(ブロック50
2)。その結果が、図10に示すような、外接矩形重な
りテーブルに記憶される。この例では、ラベル3及び4
が重なり、またラベル5及び6が重なっている。
When the extraction of each label is completed, it is checked whether or not there is an overlap between the labels based on the coordinate data stored in the circumscribed rectangle storage area (block 50).
2). The result is stored in the circumscribed rectangle overlapping table as shown in FIG. In this example, labels 3 and 4
Overlap and labels 5 and 6 overlap.

【0032】その後、上記重なったラベル以外の各ラベ
ルを特定する座標データが、図11に示すように、ワー
クメモリ13に設定された非重なり部外接矩形格納領域
に記憶される(ブロック503)。この例では、ラベル
1、2、7、・・・、mが重なりの無いラベル(外接矩
形)として記憶される。
Thereafter, coordinate data specifying each label other than the above-mentioned overlapping label is stored in the non-overlapping part circumscribed rectangle storage area set in the work memory 13 as shown in FIG. 11 (block 503). In this example, labels 1, 2, 7, ..., M are stored as non-overlapping labels (circumscribing rectangles).

【0033】図10に示す外接矩形重なりテーブルを参
照して、重なりのあるラベルが抽出され、この重なりの
あるラベルを特定する座標データ(図9の外接矩形格納
領域)に基づいて重なりのある各ラベルの面積を算出す
る。そして、その重なりのあるラベル(a)を面積の小
さい順にソートして、図12に示すようなテーブルに記
憶する(ブロック504)。
Referring to the circumscribing rectangle overlapping table shown in FIG. 10, overlapping labels are extracted, and each overlapping label is identified based on the coordinate data (the circumscribing rectangle storage area in FIG. 9) that identifies the overlapping label. Calculate the area of the label. Then, the overlapping labels (a) are sorted in ascending order of area and stored in a table as shown in FIG. 12 (block 504).

【0034】図12に示すテーブルを参照して、重なり
のあるラベルのうち最も面積の小さいラベル(b)が選
択される(ブロック505)。この例の場合、まず最も
面積の小さいラベル3が選択される。その後、ブロック
504にてソートされたラベル(a)全ての処理が終了
したか否か(ブロック506)、ブロック505にて選
択されたラベル(b)に重なっているラベル全ての処理
が終了しているか否か(ブロック507)が判定され
る。そして、それらの処理が終了していない場合、SU
BJECT1の処理が実行される。
With reference to the table shown in FIG. 12, the label (b) having the smallest area among the overlapping labels is selected (block 505). In the case of this example, first, the label 3 having the smallest area is selected. Then, it is determined whether or not all the labels (a) sorted in the block 504 have been processed (block 506), and all the labels overlapping the label (b) selected in the block 505 have been processed. It is determined whether or not (block 507). And if those processes are not completed, the SU
The processing of BJECT1 is executed.

【0035】SUBJECT1の処理が、図5に示す手
順に従って実行される。図5において、ブロック505
にて選択されたラベル(外接矩形領域)(b)のラベリ
ングが行われる(ブロック510)。このラベリング
は、ブロック501の処理と同様に、選択されたラベル
内の画像を連結する画素の外接矩形が演算される。例え
ば、図3(a)に示す画像の場合、ラベル(外接矩形領
域)1及び2のうち面積の小さいラベル1が選択され、
その選択されたラベル1が、ブロック510にて1−1
及び1−2にラベリングされる。なお、ラベル1−1は
親ラベル1と同じである。
The processing of SUBJECT1 is executed according to the procedure shown in FIG. In FIG. 5, block 505
Labeling of the label (circumscribing rectangular area) (b) selected in (1) is performed (block 510). In this labeling, the circumscribed rectangle of the pixels connecting the images in the selected label is calculated in the same manner as the processing of block 501. For example, in the case of the image shown in FIG. 3A, the label 1 having the smaller area is selected from the labels (circumscribing rectangular areas) 1 and 2,
The selected label 1 is 1-1 in block 510.
And labeled 1-2. The label 1-1 is the same as the parent label 1.

【0036】上記のように得られたラベル(c)から処
理すべきラベル(d)が1つ選択される(ブロック51
1)。例えば、図3に示す例の場合、ラベリングされた
領域1−1及び1−2から、ラベル1−2が選択され
る。ここで、ブロック510で得られたラベル(c)
(例えば、1−1、1−2)についての処理が全て終了
したか否か(ブロック512)、ブロック511にて選
択されたラベル(d)(例えば、1−2)の処理が既に
終了しているか否か(ブロック513)が判定される。
そして、それらの処理が終了していない場合、更に、処
理の対象となるブロック505にて得られたラベル
(b)(例えば、A1(1−1))のラベル画像がすで
にあるか否かが判定される(ブロック515)。ここ
で、まだラベル画像が生成されていなければ、ブロック
511で選択されたラベル(d)が更にラベリングされ
る(ブロック516)。例えば、図3に示す例の場合、
選択されたラベル1−2が1−2及び1−3にラベリン
グされる。
One label (d) to be processed is selected from the labels (c) obtained as described above (block 51).
1). For example, in the case of the example shown in FIG. 3, the label 1-2 is selected from the labeled regions 1-1 and 1-2. Here, the label (c) obtained in block 510
(For example, 1-1, 1-2) whether or not all the processing has been completed (block 512), the processing of the label (d) (for example, 1-2) selected in block 511 has already been completed. It is determined whether or not (block 513).
Then, when those processes are not completed, whether or not there is already a label image of the label (b) (for example, A1 (1-1)) obtained in the block 505 to be processed is determined. A determination is made (block 515). Here, if the label image has not been generated yet, the label (d) selected in block 511 is further labeled (block 516). For example, in the case of the example shown in FIG.
The selected label 1-2 is labeled 1-2 and 1-3.

【0037】このブロック516にて得られたラベル
(e)が単一ではなく、かつ、そのなかに処理が終わっ
ていないラベルが存在するという条件が満足されるか否
かが判定され(ブロック517)、そのような条件を満
足する場合は、更に、ブロック505で選択されたラベ
ル(b)の面積が指定される面積より大きいか否かが判
定される(ブロック519)。これは、例えば、そのラ
ベルのラベル画像を作成する場合に必要なメモリ量が所
定の量(例えば、64kバイト)以下か否かにて行われ
る。ここで、その面積が指定面積より小さいと判定され
ると、ブロック505にて選択されたラベル(b)のラ
ベル画像が作成される(ブロック521)。このラベル
(b)の面積は、指定面積より小さいので、ラベル画像
のワークメモリ13上への展開は可能である。
It is judged whether or not the condition that the label (e) obtained in this block 516 is not single and there is an unprocessed label in it (block 517). ), If such a condition is satisfied, it is further determined whether the area of the label (b) selected in block 505 is larger than the specified area (block 519). This is performed, for example, depending on whether or not the memory amount required for creating the label image of the label is a predetermined amount (for example, 64 kbytes) or less. If it is determined that the area is smaller than the designated area, the label image of the label (b) selected in block 505 is created (block 521). Since the area of the label (b) is smaller than the designated area, the label image can be expanded on the work memory 13.

【0038】このように、ブロック505にて選択され
たラベル(b)のラベル画像が作成されると、以後、図
6に示す手順に従って処理が実行される。図6におい
て、ブロック511にて抽出されたラベル(d)の矩形
領域を特定する座標データ、図13に示すようなテーブ
ルにおけるラベル(b)の重なり部外接矩形格納領域に
記述される(ブロック522)。そして、そのラベル
(d)に−(マイナス)の演算子が付与される。例え
ば、図3に示す例の場合、ブロック511にて抽出され
たラベル1−2の矩形領域を特定する座標データが、ラ
ベル1−1の重なり部外接矩形格納領域に記述される。
そして、このラベル1−2に演算子−が付与される。
When the label image of the label (b) selected in the block 505 is created in this way, thereafter, the processing is executed according to the procedure shown in FIG. In FIG. 6, coordinate data identifying the rectangular area of the label (d) extracted in the block 511 is described in the overlapping portion circumscribed rectangular storage area of the label (b) in the table as shown in FIG. 13 (block 522). ). Then, a-(minus) operator is given to the label (d). For example, in the case of the example shown in FIG. 3, the coordinate data identifying the rectangular area of label 1-2 extracted in block 511 is described in the overlapping portion circumscribed rectangular storage area of label 1-1.
Then, an operator-is given to this label 1-2.

【0039】その後、上記のように処理されたラベル
(d)の矩形領域にブロック505にて選択されたラベ
ル(b)が含まれるか否かが判定される(ブロック52
3)。この例の場合、ラベル(d)はラベル(b)に完
全に含まれているので、ラベル(d)の矩形領域にラベ
ル(b)の矩形領域の部分が含まれていると判定され
る。そして、ブロック511にて選択されたラベル
(d)のラベリングが更に行われる(ブロック52
4)。例えば、図3の画像の例の場合、ブロック511
にて選択されたラベル1−2が更に1−2及び1−3に
ラベリングされる。
Thereafter, it is determined whether or not the rectangular area of the label (d) processed as described above includes the label (b) selected in the block 505 (block 52).
3). In the case of this example, since the label (d) is completely included in the label (b), it is determined that the rectangular area of the label (b) is included in the rectangular area of the label (d). Then, the label (d) selected in block 511 is further labeled (block 52).
4). For example, for the example image of FIG. 3, block 511
The label 1-2 selected in 1 is further labeled to 1-2 and 1-3.

【0040】このように得られたラベル(f)から1つ
のラベル(g)が選択される(ブロック525).例え
ば、図3に示す画像の例の場合、ブロック514にて得
られたラベル1−2及び1−3からラベル1−3が選択
される。その後、ブロック524にて得られたラベルの
処理が全て終了したか否か(ブロック526)、ブロッ
ク525にて選択されたラベル(g)はブロック505
にて選択されたラベル(b)のラベル画像を含むか否か
が判定される。このブロック525にて選択されたラベ
ル(g)がブロック505にて選択されたラベル(b)
のラベル画像を含む場合、ラベル(g)の矩形領域を特
定する座標データが図13に示すようなテーブルのラベ
ル(b)の重なり部外接矩形格納領域に記述される(ブ
ロック528)。そして、そのラベル(g)に+(プラ
ス)の演算子が付与される。例えば、図3に示す画像の
例の場合、ブロック525にて抽出されたラベル1−3
の矩形領域を特定する座標データがラベル1−1の重な
り部外接矩形格納領域に記述される。そして、このラベ
ル1−3に演算子+が付与される。
From the labels (f) thus obtained, one label (g) is selected (block 525). For example, for the example image shown in FIG. 3, labels 1-3 are selected from labels 1-2 and 1-3 obtained at block 514. After that, it is determined whether or not all the labels obtained in block 524 have been processed (block 526), and the label (g) selected in block 525 is determined in block 505.
It is determined whether or not it includes the label image of the label (b) selected in. The label (g) selected in this block 525 is the label (b) selected in block 505.
, The coordinate data specifying the rectangular area of the label (g) is described in the overlapping portion circumscribed rectangular storage area of the label (b) of the table as shown in FIG. 13 (block 528). Then, a + (plus) operator is added to the label (g). For example, in the case of the example of the image shown in FIG. 3, the labels 1-3 extracted in block 525 are displayed.
The coordinate data for specifying the rectangular area is described in the overlapping part circumscribed rectangular storage area of the label 1-1. Then, the operator + is added to the labels 1-3.

【0041】ラベル(g)の中にラベル(b)に含まれ
ないラベルも存在する場合があるので、以後、(g)を
(b)に相当させてSUBJECT1の処理を再帰的に
実行する。上記の処理の結果、重なりのあるラベルとし
て特定されたラベルは、図13のテーブルにおける、そ
のラベルの重なり部外接矩形格納領域に記述されたラベ
ル(座標データ)及びその演算子を用いて表現される。
例えば、図3に示すが画像の例の場合、画素1の連結成
分A1は、全体の外接矩形を示すラベル1−1及びそれ
に含まれるラベル1−2及び1−3により、 A1=(1−1)−(1−2)+(1−3) …(1) のように表現される。
Since some labels (g) are not included in the label (b), there are cases where (g) corresponds to (b) and the process of SUBJECT1 is recursively executed. As a result of the above processing, the label specified as the overlapping label is expressed using the label (coordinate data) described in the overlapping portion circumscribed rectangle storage area of the label in the table of FIG. 13 and its operator. It
For example, in the case of the example of the image shown in FIG. 3, the connected component A1 of the pixel 1 is represented by the label 1-1 indicating the entire circumscribing rectangle and the labels 1-2 and 1-3 included therein. 1)-(1-2) + (1-3) is expressed as (1).

【0042】上記処理におけるブロック527におい
て、ラベル(g)がラベル(b)のラベル画像の一部で
ない場合、更に、ブロック524にて得られたラベル
(f)から次のラベル(g)が選択され(ブロック52
5)、その選択されたラベルについて上記と同様の処理
が行われる。また、ブロック524にて得られたラベル
についての処理が全て終了した場合、あるいは、ブロッ
ク511にて選択されたラベル(d)の矩形領域にブロ
ック505にて選択されたラベル(b)の矩形領域の一
部が含まれないと判定された場合は、処理がSUBJE
CT1のブロック511に戻る。そして、ブロック51
0にて得られたラベルから次のラベルが選択され、以
後、上述と同様の処理が実行される。なお、図3に示す
画像の例の場合、上記ラベル1−2の処理が終了した後
には、ブロック510にて得られたラベルで更に処理す
べきラベルはないので(ブロック512)、SUBUJ
ECT1の処理が終了する。
If the label (g) is not a part of the label image of the label (b) in the block 527 in the above processing, the next label (g) is selected from the labels (f) obtained in the block 524. (Block 52
5) Then, the same processing as described above is performed on the selected label. Further, when all the processing for the label obtained in block 524 is completed, or the rectangular area of the label (b) selected in block 505 is added to the rectangular area of the label (d) selected in block 511. If it is determined that a part of is not included, the process is SUBJE
Return to block 511 of CT1. And block 51
The next label is selected from the labels obtained at 0, and the same processing as described above is executed thereafter. In the case of the example of the image shown in FIG. 3, after the processing of the label 1-2 is finished, there is no label to be further processed in the label obtained in block 510 (block 512), so SUBUJ
The processing of ECT1 ends.

【0043】上記のようにして、SUBJECT1の処
理が終了すると、図4に示す手順におけるブロック50
5に戻る。ここで、図12に示すテーブルを参照してブ
ロック505にて得られたラベル(a)から次に面積の
小さいラベル(b)が選択される。この例の場合、ラベ
ル4が選択される。また、図3に示す画像の例の場合、
ラベル2−1が選択される。そして、ブロック504に
て得られたラベル(a)についての処理がまだ全て終了
しておらず、また、ブロック505にて選択されたラベ
ル(b)に重なっている全てのラベルについての処理が
終わっていなければ、上述したように、SUBJECT
1の処理が実行される(ブロック509)。例えば、図
3に示す画像の例の場合、ブロック504にて得られる
ラベルは、2つのラベル1及び2であるので、ブロック
505において、ラベル2が選択されると、その時点
で、そのラベルに重なっている全てのラベル(連結画像
領域A1)についての処理が終了していることとなる。
従って、この場合、このラベル2に重なっているラベル
番号全てが、図13に示すようなテーブルにおけるラベ
ル2の重なり部外接矩形格納領域に記述される(ブロッ
ク508)。そして、このラベル2に重なるラベル1は
それぞれ異なるラベル画像となることから、ラベル2の
重なり部外接矩形格納領域に記述されたラベル1には演
算子−(マイナス)が付与される。その結果、ラベル2
に対応した連結成分A2は、 A2=(2−1)−A1 =(2−1)−{(1−1)−(1−2)+(1−3)}…(2) のように表現される。この場合、特に、SUBJECT
1の処理を実行しなくても、既に処理されたラベルの結
果を用いて、重なりラベルが記述できる。
When the processing of SUBJECT1 is completed as described above, block 50 in the procedure shown in FIG.
Return to 5. Here, referring to the table shown in FIG. 12, the label (b) having the next smallest area is selected from the label (a) obtained in block 505. In the case of this example, label 4 is selected. Moreover, in the case of the example of the image shown in FIG.
Label 2-1 is selected. Then, all the processing for the label (a) obtained in the block 504 has not been completed yet, and the processing for all the labels overlapping the label (b) selected in the block 505 has ended. If not, as described above, SUBJECT
The process 1 is executed (block 509). For example, in the case of the example image shown in FIG. 3, since the labels obtained in block 504 are two labels 1 and 2, when label 2 is selected in block 505, the label is selected at that point. This means that the processing for all the overlapping labels (connected image area A1) has been completed.
Therefore, in this case, all the label numbers that overlap this label 2 are described in the overlapping part circumscribed rectangle storage area of the label 2 in the table as shown in FIG. 13 (block 508). Since the label 1 overlapping the label 2 has different label images, the operator- (minus) is given to the label 1 described in the storage area of the circumscribed rectangle of the overlapping portion of the label 2. As a result, label 2
The connected component A2 corresponding to is as follows: A2 = (2-1) -A1 = (2-1)-{(1-1)-(1-2) + (1-3)} (2) Expressed. In this case, in particular, SUBJECT
Even if the process 1 is not executed, the overlapping label can be described by using the result of the already processed label.

【0044】上記ブロック507の処理において全ての
ラベルについての処理は終了していないと判定された場
合であっても、一部のラベルについての処理が終了して
いる場合には、SUMBJECT1の処理においてその
処理が終了しているラベルに含まれるラベルがブロック
511にてラベル(d)として選択されると、処理はブ
ロック513からブロック514に移行する。この場合
も、既に処理されたラベル(d)を特定するラベル番号
がそのまま、いま処理の対象となるラベル(b)の重な
り部外接矩形格納領域に記述される。
Even if it is determined in the processing of block 507 that the processing for all the labels is not completed, if the processing for some of the labels is completed, the processing of SUMJECT1 is performed. When the label included in the label for which the processing has been completed is selected as the label (d) in block 511, the processing shifts from block 513 to block 514. In this case as well, the label number identifying the already processed label (d) is directly written in the overlapping part circumscribed rectangle storage area of the label (b) to be processed.

【0045】また、更に、SUBJECT1の処理にお
けるブロック517にて、ブロック516にて得られた
ラベル(e)が単一のラベルでなく、処理が終わってい
ないラベルを含むという条件を満足しない場合、ブロッ
ク511にて得られたラベル(d)の矩形領域を特定す
る座標データがラベル(b)の重なり部外接矩形格納領
域に記述される(ブロック518)。そして、この場
合、ラベル(d)はラベル(b)とは異なるラベル画像
となることから、そのラベル(d)に演算子−(マイナ
ス)が付与される。
Further, in the block 517 in the processing of SUBJECT1, if the condition that the label (e) obtained in the block 516 is not a single label and includes a label that has not been processed yet, Coordinate data for specifying the rectangular area of the label (d) obtained in the block 511 is described in the overlapping portion circumscribed rectangular storage area of the label (b) (block 518). In this case, since the label (d) is a label image different from the label (b), the operator- (minus) is given to the label (d).

【0046】上記SUBJECT1の処理におけるブロ
ック519にて処理の対象となるラベル(b)が所定の
面積より大きいと判定された場合は、SUBJECT2
の処理を実行する。SUBJECT2の処理は、図7に
示す手順に従って実行される。
If the label (b) to be processed is determined to be larger than the predetermined area in block 519 of the above-mentioned SUBJECT 1, the SUBJECT 2
The process of is executed. The process of SUBJECT2 is executed according to the procedure shown in FIG.

【0047】図7において、ブロック511にて選択さ
れたラベル(d)について、ブロック518と同様な処
理が行われる(ブロック529)。即ち、ラベル(d)
の矩形領域を特定する座標データがラベル(b)の重な
り部外接矩形格納領域に記述される。そして、ラベル
(d)が、ブロック516での処理と同様に、ラベリン
グされる(ブロック530)。これにより得られたラベ
ル(h)から1つのラベル(i)が選択れる(ブロック
531)。ここで、ブロック530にて得られた全ての
ラベルについての処理が終了したか否かが判定され(ブ
ロック532)、終了していれば、SUBJECT2の
処理が終了する。
In FIG. 7, the label (d) selected in block 511 is processed in the same manner as block 518 (block 529). That is, the label (d)
The coordinate data for specifying the rectangular area is described in the overlapping area circumscribed rectangular storage area of the label (b). Label (d) is then labeled (block 530), similar to the processing in block 516. One label (i) is selected from the labels (h) thus obtained (block 531). Here, it is determined whether or not the processing has been completed for all the labels obtained in the block 530 (block 532). If the processing has been completed, the processing of SUBJECT2 ends.

【0048】一方、その全てのラベルについての処理が
まだ終了していない場合には、ブロック531にて選択
されたラベル(i)のラベル画像の輪郭追跡を行う(ブ
ロック533)。この輪郭追跡は、例えば、鳥脇純一郎
著「画像理解のためのディジタル画像処理II」(株)昭
晃堂のPP.66-79に記載される境界線追跡( 輪郭追跡)等
の公知の手法にて行われる。ラベル(i)のラベル画像
の輪郭追跡が終了すると、ラベル(i)がいま処理の対
象となているラベル(b)の一部であるか否かが、輪郭
追跡により得られた結果に基づいて、判定され(ブロッ
ク534)、その一部である場合には、ラベル(i)の
矩形領域を特定する座標データがラベル(b)の重なり
部外接矩形格納領域に記述される(ブロック535)。
そして、そのラベル(i)に演算子+(プラス)が付与
される。一方、ラベル(i)がラベル(b)の一部でな
い場合、ブロック530にて得られたラベル(h)から
次のラベル(i)が選択され、上記と同様の処理が行わ
れる。
On the other hand, if the processing has not been completed for all the labels, contour tracing of the label image of the label (i) selected in block 531 is performed (block 533). This contour tracking is based on known methods such as boundary line tracking (contour tracking) described in “Digital Image Processing II for Image Understanding II” by Shoichiro Torikiwa, PP.66-79 of Shokoido Co., Ltd. Is done. When the contour tracking of the label image of the label (i) is completed, whether or not the label (i) is a part of the label (b) that is the target of the processing is determined based on the result obtained by the contour tracking. Is determined (block 534), and if it is a part thereof, the coordinate data specifying the rectangular area of the label (i) is described in the overlapping part circumscribed rectangular storage area of the label (b) (block 535). .
Then, the operator + (plus) is given to the label (i). On the other hand, when the label (i) is not a part of the label (b), the next label (i) is selected from the labels (h) obtained in the block 530, and the same processing as above is performed.

【0049】ブロック534では、輪郭追跡の結果に基
づいてラベル(i)が親のラベル(b)に含まれるか否
かが判定されるが、その具体例を、図14を参照して説
明する。なお、図14では、便宜的に画像7と画像8を
区別しているが、実際の処理は二値画像に対して実行さ
れる。
In block 534, it is judged whether or not the label (i) is included in the parent label (b) based on the result of the contour tracing. A specific example will be described with reference to FIG. . In FIG. 14, the image 7 and the image 8 are distinguished for convenience, but the actual processing is performed on the binary image.

【0050】図14(a)において、親ラベル(矩形領
域)8が分割矩形領域8−1,8−2,8−3,8−4
にて構成される。この場合、分割矩形領域8−3がラベ
ル(i)として選択されると(ブロック531)、その
外接する矩形の黒画素から出発して輪郭を、例えば、図
14(b)に示すように、からの順番で追跡する。
その追跡後、追跡した座標値の最大値(XMAX,YM
AX)と最小値(XMIN,YMIN)を求める。この
最大値(XMAX,YMAX)と最小値(XMIN,Y
MIN)が親ラベル8を特定する座標データ(x18,
y18)、(x28,y28)と一致するか否かが判定
される。これらが一致する場合には、ラベル8−3が親
ラベル8に含まれると判定される。上記輪郭追跡の出発
画素として、注目する分割領域8−3の境界に位置する
画素で、他の分割領域に属さない画素が選ばれる。
In FIG. 14A, the parent label (rectangular area) 8 is divided into rectangular areas 8-1, 8-2, 8-3, 8-4.
Composed of. In this case, when the divided rectangular area 8-3 is selected as the label (i) (block 531), the contour is started from the black pixel of the circumscribing rectangle, for example, as shown in FIG. Track in order from.
After the tracking, the maximum value of the tracked coordinate values (XMAX, YM
AX) and the minimum value (XMIN, YMIN). The maximum value (XMAX, YMAX) and the minimum value (XMIN, Y
Coordinate data (x18, MIN) specifying the parent label 8
y18) and (x28, y28) are determined. When these match, it is determined that the label 8-3 is included in the parent label 8. Pixels located at the boundary of the divided area 8-3 of interest and not belonging to other divided areas are selected as the starting pixels for the contour tracking.

【0051】また、上記の輪郭追跡において、追跡の途
中で対象となる親ラベル8(外接矩形領域)を超えた場
合は、該輪郭追跡の画素を含む分割領域が親ラベル8に
含まれないと判定される。上記の処理が終了すると、ラ
ベル(i)が更にラベリングされる(ブロック53
6)。そして、そのラベリングにより得られたラベル
(j)から1つのラベル(k)が選択される(ブロック
537)。その選択されたラベル(k)の輪郭追跡がブ
ロック536にて得られた全てのラベル(j)について
行われる(ブロック538)。選択された各ラベル
(k)について、その輪郭追跡の結果に基づいて、その
ラベル(k)が親ラベル(b)の一部ではないかが判定
される(ブロック540)。そしえ、親ラベル(b)の
一部でんないラベル(k)について、SUBJECT2
の処理が再帰的に行われる。これにより、ラベル(k)
内のラベルがさらに処理される。
Further, in the above contour tracing, when the target parent label 8 (circumscribing rectangular area) is exceeded in the course of the tracing, it is determined that the parent label 8 does not include the divided area including the pixels of the contour tracing. To be judged. When the above process is completed, label (i) is further labeled (block 53).
6). Then, one label (k) is selected from the labels (j) obtained by the labeling (block 537). Contour tracking of the selected label (k) is performed for all labels (j) obtained at block 536 (block 538). For each selected label (k), it is determined whether the label (k) is not part of the parent label (b) based on the results of its contour tracking (block 540). For the label (k) that is not a part of the parent label (b), SUBJECT2
Is processed recursively. This gives the label (k)
The labels within are processed further.

【0052】上述したように、本実施例によれば、画像
が複数のラベル(矩形領域)に区別され、得られたラベ
ルのうち重なりのないものは、その矩形領域を特定する
座標データが記憶される。そして、重なりのあるラベル
については、面積の小さい順に処理が行われ、特に、所
定の面積より小さいものだけについてラベル画像が作成
され、その結果に基づいて、重なったラベルの構造が決
定される。従って、ワークエリアを低減させることが可
能となる。また、重なったラベルを処理するに際して、
前の処理にて得られた結果を利用するようにしているの
で(ブロック508、514、518参照)、更に、ワ
ークエリアそ節約した状態で高速の処理が実現できる。
As described above, according to the present embodiment, an image is distinguished into a plurality of labels (rectangular areas), and if the obtained labels have no overlap, coordinate data for specifying the rectangular area is stored. To be done. Then, the overlapping labels are processed in ascending order of area, and in particular, label images are created only for those having a smaller area, and the structure of the overlapping labels is determined based on the result. Therefore, the work area can be reduced. Also, when processing overlapping labels,
Since the result obtained in the previous processing is used (see blocks 508, 514, and 518), high-speed processing can be realized while saving the work area.

【0053】そして、所定の面積より大きいラベルにつ
いては、輪郭追跡の結果に基づいて、その重なったラベ
ルの構造を決定しており、この場合も、ワークエリアの
節約が図れる。なお、上記のように各ラベルの外接矩形
領域を特定するために該矩形の左上頂点及び右下頂点の
座標を用いたが、これに限定されることなく、種々の特
定の手法が可能である。
For a label larger than a predetermined area, the structure of the overlapping label is determined based on the result of contour tracing, and in this case also, the work area can be saved. Although the coordinates of the upper left corner and the lower right corner of the rectangle are used to specify the circumscribed rectangular area of each label as described above, the present invention is not limited to this, and various specific methods are possible. .

【0054】また、上記実施例において、重なるラベル
(b)から処理の対象となるラベル(d)は小さい順に
選択されているが、更に、他のラベルの中に包含される
ラベルを優先的に選択するようにしてもよい。この場
合、他のラベルを包含する比較的大きなラベルを処理す
る際には、必ず、包含されるラベルについての処理は終
了しており、その比較的大きなラベルの処理において、
包含されたラベルの処理結果を利用することができる。
In the above embodiment, the label (d) to be processed is selected in the ascending order from the overlapping label (b), but the labels included in other labels are preferentially selected. You may make it select. In this case, when processing a relatively large label including another label, the processing for the included label is always completed, and in processing the relatively large label,
The processing result of the included label can be used.

【0055】また、上記実施例は、文字認識システムに
適用したものであるが、本発明に係る画像連結領域抽出
装置は、たの画像処理システムにも適用できる。
Although the above embodiment is applied to the character recognition system, the image connected area extracting apparatus according to the present invention can also be applied to other image processing systems.

【0056】[0056]

【発明の効果】以上説明してきたように、請求項1記載
の発明によれば、既に処理された他の外接矩形領域に対
する処理結果を用いて当該選択された外接矩形領域につ
いての判定結果を得るようにしたので、重なり部処理手
段にて必要となるワークエリア(メモリ容量)を低減さ
せることが可能となる。また、その処理時間も短縮され
る。
As described above, according to the invention of claim 1, the determination result for the selected circumscribed rectangular area is obtained by using the processing result for the other circumscribed rectangular area that has already been processed. Since this is done, it is possible to reduce the work area (memory capacity) required by the overlapping portion processing means. Moreover, the processing time is also shortened.

【0057】請求項7記載の発明によれば、輪郭追跡手
段での処理結果に基づいて判定結果を得るようにしてい
るので、ラベル画像を生成する場合に比して、必要とな
るワークエリアを低減させることが可能となる。更に、
請求項11記載の発明によれば、特に、大きな外接矩形
領域についての処理を行う場合のみ、輪郭追跡が行わ
れ、小さい外接矩形領域についての処理では、ラベル画
像が生成さえる。従って、必要以上のワークエリアを必
要とせずに領域の判定が可能となる。
According to the seventh aspect of the invention, since the determination result is obtained based on the processing result by the contour tracing means, the required work area is reduced as compared with the case where the label image is generated. It becomes possible to reduce. Furthermore,
According to the eleventh aspect of the invention, in particular, the contour tracking is performed only when the processing is performed on the large circumscribed rectangular area, and the label image is generated in the processing on the small circumscribed rectangular area. Therefore, it is possible to determine the area without requiring an unnecessary work area.

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

【図1】文字認識システムの基本構成を示すブロック図
である。
FIG. 1 is a block diagram showing a basic configuration of a character recognition system.

【図2】本発明の実施例に係る画像連結成分抽出装置の
基本構成を示すブロック図である。
FIG. 2 is a block diagram showing a basic configuration of an image connected component extracting apparatus according to an embodiment of the present invention.

【図3】画像と連結成分の関係を示す図である。FIG. 3 is a diagram showing a relationship between an image and a connected component.

【図4】連結領域を抽出するための処理フローを示すフ
ローチャート(その1)である。
FIG. 4 is a flowchart (part 1) showing a processing flow for extracting a connected region.

【図5】連結領域を抽出するための処理フローを示すフ
ローチャート(その2)である。
FIG. 5 is a flowchart (part 2) showing a processing flow for extracting a connected region.

【図6】連結領域を抽出するための処理フローを示すフ
ローチャート(その3)である。
FIG. 6 is a flowchart (part 3) showing a processing flow for extracting a connected region.

【図7】連結領域を抽出するための処理フローを示すフ
ローチャート(その4)である。
FIG. 7 is a flowchart (No. 4) showing a processing flow for extracting a connected region.

【図8】ラベリングされた画像の例を示す図である。FIG. 8 is a diagram showing an example of a labeled image.

【図9】各ラベルの外接矩形領域を特定する座標データ
の格納領域を示す図である。
FIG. 9 is a diagram showing a storage area of coordinate data that specifies a circumscribed rectangular area of each label.

【図10】外接矩形領域の重なりを示すテーブルであ
る。
FIG. 10 is a table showing overlapping of circumscribed rectangular areas.

【図11】重なりのない外接矩形領域を示すテーブルで
ある。
FIG. 11 is a table showing circumscribing rectangular areas that do not overlap.

【図12】順序付けされた各ラベル(外接矩形領域)を
示すテーブルである。
FIG. 12 is a table showing each ordered label (circumscribing rectangular area).

【図13】ラベルの重なり状態及び重なり部に付与され
る演算子を示すテーブルである。
FIG. 13 is a table showing an overlapping state of labels and an operator assigned to an overlapping portion.

【図14】細分割された画像と輪郭追跡によるラベル一
致の判定の原理を示す図である。
FIG. 14 is a diagram showing the principle of determination of label matching by subdivided images and contour tracking.

【図15】画像と連結成分と外接矩形領域の関係を示す
図である。
FIG. 15 is a diagram showing a relationship among an image, a connected component, and a circumscribed rectangular area.

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

10 CPU 11 プログラムメモリ 12 画像メモリ 13 ワークメモリ 14 スキャナ 15 メモリ 16 辞書ファイル 17 ディスプレイユニット 18 プリンタ 19 インタフェース回路 101 連結成分外接矩形抽出部 102 重なり連結成分抽出部 103 重なり連結成分順序付け部 104 連結成分細分割部 105 判定部 106 細分割領域サイズ判定部 107 ラベル画像生成部 108 輪郭追跡部 109 細分割領域判定部 110 細分割領域記憶部 10 CPU 11 program memory 12 image memory 13 work memory 14 scanner 15 memory 16 dictionary file 17 display unit 18 printer 19 interface circuit 101 connected component circumscribed rectangle extraction unit 102 overlapping connected component extraction unit 103 overlapping connected component ordering unit 104 connected component subdivision Unit 105 determination unit 106 subdivision region size determination unit 107 label image generation unit 108 contour tracking unit 109 subdivision region determination unit 110 subdivision region storage unit

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 対象となる画像を連結した画素により構
成される連結成分に分けてその外接矩形領域を抽出する
外接矩形抽出手段と、 外接矩形抽出手段にて抽出された外接矩形領域のうち重
なりあうものを抽出する重なり外接矩形抽出手段と、 重なり外接矩形抽出手段にて抽出された外接矩形領域か
ら所定の順番にて処理すべき外接矩形領域を選択し、そ
の選択された外接矩形領域を矩形領域切りわけて、その
切り分けられた矩形領域が重なった外接矩形領域に対応
したいずれの連結成分に属すべきかを判定する重なり部
処理手段とを有し、その判定結果に基づいて、当該選択
された外接矩形領域に対応する連結成分を特定するよう
にした画像連結成分抽出装置において、 該重なり部処理手段は、 当該選択された外接矩形領域に重なる既に処理された他
の外接矩形領域に対する処理にて得られた判定結果を用
いて当該選択された外接矩形領域についての判定結果を
得る結果流用手段を有する画像連結成分抽出装置。
1. A circumscribing rectangular area extracting unit that extracts a circumscribing rectangular area by dividing a target image into connected components composed of connected pixels and an circumscribing rectangular area extracted by the circumscribing rectangular area extracting unit overlaps each other. The circumscribing circumscribed rectangular area to be processed is selected in a predetermined order from the circumscribing circumscribing rectangle extracting means for extracting a matching object and the circumscribing rectangular area extracted by the circumscribing circumscribing rectangle extracting means. The region is divided, and an overlapping portion processing unit that determines which connected component corresponding to the circumscribed rectangular region in which the divided rectangular region overlaps is included, and based on the determination result, the selected In the image connected component extracting apparatus configured to identify the connected component corresponding to the circumscribed rectangular area, the overlapping portion processing means is configured to detect the connected component that has already overlapped with the selected circumscribed rectangular area. Image connected component extracting apparatus having the results diversion means for obtaining a judgment result for the selected circumscribed rectangular area using the determination result obtained by the processing for the physical and other circumscribed rectangular area.
【請求項2】 請求項1記載の画像連結成分抽出装置に
おいて、 該結果流用手段は、切りわけにより得られた矩形領域の
うちに既に処理された連結成分の外接矩形領域が存在す
る場合に、処理された連結成分を特定するために用いら
れた判定結果を用いる手段を有する画像連結成分抽出装
置。
2. The image connected component extracting apparatus according to claim 1, wherein the result diversion means includes a case where a circumscribed rectangular area of the processed connected component is present in the rectangular area obtained by the division. An image connected component extraction apparatus having means for using the determination result used to identify the processed connected component.
【請求項3】 請求項1記載の画像連結成分抽出装置に
おいて、 該結果流用手段は、切りわけにより得られた矩形領域を
包含し、かつ、既に処理した連結成分の外接矩形領域が
存在する場合に、処理した包含する外接矩形についての
判定結果をすべて用いる手段を有する画像連結成分抽出
装置。
3. The image connected component extraction apparatus according to claim 1, wherein the result diversion means includes a rectangular area obtained by cutting and there is a circumscribed rectangular area of the already processed connected component. An image connected component extracting apparatus having means for using all the determination results for the processed circumscribing rectangle.
【請求項4】 請求項1記載の画像連結成分抽出装置に
おいて、 該結果流用手段は、切りわけにより得られた矩形領域を
包含し、かつ、既に処理した連結成分の外接矩形領域が
存在する場合に、処理した包含する外接矩形についての
判定結果のうち重なた部分の領域の結果を用いる手段を
有する画像連結成分抽出装置。
4. The image connected component extraction apparatus according to claim 1, wherein the result diversion means includes a rectangular area obtained by cutting, and there is a circumscribed rectangular area of the already processed connected component. An image connected component extraction device having means for using the result of the region of the overlapped portion among the processed determination results for the included circumscribed rectangle.
【請求項5】 請求項1乃至4いずれか記載の画像連結
成分抽出装置において、 該重なり部処理手段は、重なる外接矩形領域から処理す
べき外接矩形領域をその面積の小さい順に選択する領域
選択手段を有する画像連結成分抽出装置。
5. The image connected component extracting apparatus according to claim 1, wherein the overlapping portion processing means selects a circumscribing rectangular area to be processed from overlapping circumscribing rectangular areas in ascending order of area. An image connected component extracting apparatus having:
【請求項6】 請求項1乃至5いずいれか記載の画像連
結成分抽出装置において、 該重なり部処理手段は、他の外接矩形領域に包含されて
いる外接矩形領域を優先的に選択する手段を有する画像
連結成分抽出装置。
6. The image connected component extracting apparatus according to claim 1, wherein the overlapping portion processing means preferentially selects a circumscribed rectangular area included in another circumscribed rectangular area. An image connected component extracting apparatus having:
【請求項7】 対象となる画像を連結した画素により構
成される連結成分に分けてその外接矩形領域を抽出する
外接矩形抽出手段と、 外接矩形抽出手段にて抽出された外接矩形領域のうち重
なりあうものを抽出する重なり外接矩形抽出手段と、 重なり外接矩形抽出手段にて抽出された外接矩形領域か
ら所定の順番にて処理すべき外接矩形領域を選択し、そ
の選択された外接矩形領域を矩形領域切りわけて、その
切り分けられた矩形領域が重なった外接矩形領域に対応
したいずれの連結成分に属すべきかを判定する重なり部
処理手段とを有し、その判定結果に基づいて、当該選択
された外接矩形領域に対応する連結成分を特定するよう
にした画像連結成分抽出装置において、 該重なり部処理手段は、 切りわけられた矩形領域内の所定の画素から出発する輪
郭追跡を行う輪郭追跡手段と、その輪郭追跡の結果に基
づいて、該矩形領域が該選択された外接矩形領域に対応
した連結成分に属するか否かの判定結果を得る判定手段
とを有する画像連結成分抽出装置。
7. A circumscribing rectangle extracting means for dividing a circumscribing rectangular region by dividing a target image into connected components formed by concatenated pixels and an circumscribing rectangular region extracted by the circumscribing rectangle extracting means are overlapped. The circumscribing circumscribed rectangular area to be processed is selected in a predetermined order from the circumscribing circumscribing rectangle extracting means for extracting a matching object and the circumscribing rectangular area extracted by the circumscribing circumscribing rectangle extracting means. The region is divided, and an overlapping portion processing unit that determines which connected component corresponding to the circumscribed rectangular region in which the divided rectangular region overlaps is included, and based on the determination result, the selected In the image connected component extracting apparatus for identifying the connected component corresponding to the circumscribed rectangular area, the overlapping portion processing means is a predetermined pixel in the cut rectangular area. A contour tracing means for performing the starting contour tracing, and a judging means for obtaining a judgment result as to whether or not the rectangular area belongs to a connected component corresponding to the selected circumscribing rectangular area based on the result of the contour tracing. An image connected component extraction device having.
【請求項8】 請求項7記載の画像連結成分抽出装置に
おいて、 該判定手段は、輪郭追跡した座標の最大値と最小値にて
特定される矩形が連結成分の外接矩形と一致するか否か
を判定する手段を有し、一致の判定がなされたときに、
該輪郭追跡の出発画素を含む矩形領域が該連結成分に含
まれると判定するようにした画像連結成分抽出装置。
8. The image connected component extraction apparatus according to claim 7, wherein the determination means determines whether the rectangle specified by the maximum value and the minimum value of the coordinates of contour tracing matches the circumscribed rectangle of the connected component. When there is a match,
An image connected component extraction device configured to determine that a rectangular region including a starting pixel for contour tracing is included in the connected component.
【請求項9】 請求項7または8記載の画像連結成分抽
出装置において、 該輪郭抽出手段は、出発の画素として、該注目する矩形
領域の境界に位置する画像で、かつ、他の矩形領域に属
さない画像を選択するようにした画像連結成分抽出装
置。
9. The image connected component extracting apparatus according to claim 7, wherein the contour extracting means is an image located at a boundary of the rectangular region of interest as a starting pixel and is in another rectangular region. An image connected component extraction device adapted to select images that do not belong.
【請求項10】 請求項7乃至9いずれか記載の画像連
結成分抽出装置において、 該判定手段は、輪郭追跡の途中で選択された外接矩形領
域を超えた場合に、該輪郭追跡の出発画素を含む矩形領
域が含該外接矩形領域に対応する連結成分に含まれない
と判定する手段を有する画像連結成分抽出装置。
10. The image connected component extraction apparatus according to claim 7, wherein the determination unit determines a starting pixel for contour tracing when a circumscribed rectangular area selected during contour tracing is exceeded. An image connected component extraction apparatus having means for determining that the included rectangular area is not included in the connected components corresponding to the included circumscribed rectangular area.
【請求項11】 対象となる画像を連結した画素により
構成される連結成分に分けてその外接矩形領域を抽出す
る外接矩形抽出手段と、 外接矩形抽出手段にて抽出された外接矩形領域のうち重
なりあうものを抽出する重なり外接矩形抽出手段と、 重なり外接矩形抽出手段にて抽出された外接矩形領域か
ら所定の順番にて処理すべき外接矩形領域を選択し、そ
の選択された外接矩形領域を矩形領域切りわけて、その
切り分けられた矩形領域が重なった外接矩形領域に対応
したいずれの連結成分に属すべきかを判定する重なり部
処理手段とを有し、その判定結果に基づいて、当該選択
された外接矩形領域に対応する連結成分を特定するよう
にした画像連結成分抽出装置において、 該重なり部処理手段は、 選択された外接矩形領域の大きさが所定値より大きいか
否かを判定するサイズ判定手段と、 該サイズ判定手段が選択された外接矩形領域の大きさが
所定値より大きいと判定したときに、切りわけられた矩
形領域内の所定の画素から出発する輪郭追跡を行う輪郭
追跡手段と、その輪郭追跡の結果に基づいて、該矩形領
域が該選択された外接矩形領域に対応した連結成分に属
するか否かの判定結果を得る判定手段と、 該サイズ判定手段が選択された外接矩形領域の大きさが
所定値より大きくないと判定したときに、該選択された
外接矩形領域内に含まれる連結成分に対応したラベル画
像を作成するラベル画像作成手段と、 その作成されたラベル画像に基づいて、切りわけられた
矩形領域がいずれの連結成分に属するかを判定する手段
を有する画像連結成分抽出装置。
11. A circumscribing rectangle extracting means for dividing a circumscribed rectangular area by dividing a target image into connected components composed of connected pixels and an circumscribing rectangular area extracted by the circumscribing rectangle extracting means overlap each other. The circumscribing circumscribed rectangular area to be processed is selected in a predetermined order from the circumscribing circumscribing rectangle extracting means for extracting a matching object and the circumscribing rectangular area extracted by the circumscribing circumscribing rectangle extracting means. The region is divided, and an overlapping portion processing unit that determines which connected component corresponding to the circumscribed rectangular region in which the divided rectangular region overlaps is included, and based on the determination result, the selected In the image connected component extraction apparatus configured to identify the connected component corresponding to the circumscribed rectangular area, the overlapping portion processing unit determines that the size of the selected circumscribed rectangular area is predetermined. Size determining means for determining whether or not the size is larger, and when the size determining means determines that the size of the selected circumscribed rectangular area is larger than a predetermined value, a predetermined pixel in the cut rectangular area Contour tracing means for starting contour tracing, and determination means for obtaining a determination result as to whether or not the rectangular area belongs to a connected component corresponding to the selected circumscribing rectangular area, based on the result of the contour tracking, Label image creation for creating a label image corresponding to a connected component included in the selected circumscribed rectangular area when the size determination unit determines that the size of the selected circumscribed rectangular area is not larger than a predetermined value An image connected component extracting apparatus having means and means for determining to which connected component the rectangular region cut out belongs based on the created label image.
【請求項12】 請求項11記載の画像連結成分抽出装
置において、 該重なり部処理手段は、更に、当該選択された外接矩形
領域に重なる既に処理された他の外接矩形領域が有る場
合、その他の外接矩形領域に対する処理にて得られた判
定結果を用いて当該選択された外接矩形領域についての
判定結果を得る結果流用手段を有する画像連結成分抽出
装置。
12. The image connected component extraction apparatus according to claim 11, wherein the overlapping portion processing means further includes another processed circumscribed rectangular area that overlaps the selected circumscribed rectangular area. An image connected component extraction apparatus having result diversion means for obtaining a determination result for a selected circumscribed rectangular area by using a determination result obtained by processing for a circumscribed rectangular area.
【請求項13】 請求項11または12記載の画像連結
成分抽出装置において、 該重なり部処理部は、更に、重なる外接矩形領域から処
理すべき外接矩形領域をその面積の小さい順に選択する
領域選択手段を有する画像連結領域抽出装置。
13. The image connected component extracting apparatus according to claim 11, wherein the overlapping portion processing unit further selects a circumscribing rectangular area to be processed from the overlapping circumscribing rectangular areas in ascending order of area. An image connected region extracting apparatus having:
JP06596195A 1994-05-31 1995-03-24 Image connected component extraction device Expired - Fee Related JP3335032B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP06596195A JP3335032B2 (en) 1995-03-24 1995-03-24 Image connected component extraction device
KR1019950013888A KR100228618B1 (en) 1994-05-31 1995-05-30 Method and apparatus for assigning temporary and true labels to digital image
US08/959,712 US6081618A (en) 1994-05-31 1997-10-28 Method and an apparatus for extracting a connected element from a binary image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06596195A JP3335032B2 (en) 1995-03-24 1995-03-24 Image connected component extraction device

Publications (2)

Publication Number Publication Date
JPH08263654A true JPH08263654A (en) 1996-10-11
JP3335032B2 JP3335032B2 (en) 2002-10-15

Family

ID=13302102

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06596195A Expired - Fee Related JP3335032B2 (en) 1994-05-31 1995-03-24 Image connected component extraction device

Country Status (1)

Country Link
JP (1) JP3335032B2 (en)

Also Published As

Publication number Publication date
JP3335032B2 (en) 2002-10-15

Similar Documents

Publication Publication Date Title
US6711292B2 (en) Block selection of table features
JP3830998B2 (en) Ruled line removal method and character recognition apparatus using the same
CN110889374A (en) Seal image processing method and device, computer and storage medium
JP2007148677A (en) Image processor and image processing method
KR100396357B1 (en) Method for automatically determining trackers along contour and storage medium storing program for implementing the same
EP0521507A2 (en) Fingerprint data processing method
CN112801923A (en) Word processing method, system, readable storage medium and computer equipment
CN117541546A (en) Method and device for determining image cropping effect, storage medium and electronic equipment
JP3335032B2 (en) Image connected component extraction device
JPH0981740A (en) Diagram input device
JP3846752B2 (en) Ruled line removal method
JPH09185726A (en) Ruled line removing method
JPH04255080A (en) Image input device
JP2803735B2 (en) Character recognition device including ruled lines
JP3566738B2 (en) Shaded area processing method and shaded area processing apparatus
JP2803736B2 (en) Character recognition method
CN113033338A (en) Method and device for identifying head news position of electronic newspaper
JP2001109888A (en) Ruled-line extraction system
JPH0773327A (en) Broken line/chain line recognizing method for automatic drawing recognizing device
JPH05242297A (en) Character segmenting method
JPH0830723A (en) Half-tone dot meshing area processing method
JPS63131287A (en) Character recognition system
JPH03219384A (en) Character recognizing device
JP2004240500A (en) Device and program for processing image, and storing medium
JPH0535856A (en) Fingerprint feature extraction device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020716

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

Free format text: PAYMENT UNTIL: 20080802

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090802

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090802

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100802

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110802

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120802

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120802

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130802

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees