JPS6084678A - image recognition device - Google Patents

image recognition device

Info

Publication number
JPS6084678A
JPS6084678A JP58193712A JP19371283A JPS6084678A JP S6084678 A JPS6084678 A JP S6084678A JP 58193712 A JP58193712 A JP 58193712A JP 19371283 A JP19371283 A JP 19371283A JP S6084678 A JPS6084678 A JP S6084678A
Authority
JP
Japan
Prior art keywords
data string
scanning line
horizontal scanning
column number
section
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP58193712A
Other languages
Japanese (ja)
Inventor
Masahiro Shimizu
正博 清水
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP58193712A priority Critical patent/JPS6084678A/en
Publication of JPS6084678A publication Critical patent/JPS6084678A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To speed up the structure analysis and feature extraction of binary image data by labeling a closed area having a polarity different from a closed area composed of a recognized body as well as the recognized body. CONSTITUTION:A data string part S overlaps with a data string part (n), but the data string part (n) already overlaps with a data part (q) to cause divergence. For the purpose, a column number 5 and edge data (s) are made to correspond to an edge number 8, and the column number 2 of the data string part (n) is stored in the part DF1 of the column number 5 correspondingly. Further, the column number 5 of the data string part (s) is made to correspond to the part DF2 of the column number 4 of a data string part (r). When the value of the CF1 or DF1 of a column (i) is (j), columns (i) and (j) belong to the same closed area and when both values of the CF2 and DF2 of the column (i) are both (k), the constituted area I is included in the closed area (k) to which the column (k) belongs.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は2値ディジタル画像の構造解析・特徴抽出を行
うだめの汎用の画像認識装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a general-purpose image recognition device for performing structural analysis and feature extraction of binary digital images.

従来例の構成とその問題点 従来は、認識対象画像を水平走査して得られた「0」と
「1」の極性を持つ2値テイジタルデ一タ列を入力とし
、認識対象画像内の各閉領域に属する各水平走査線上の
連続する同極性のデータ列であるデータ列部に同一番号
を付与するラベリングを行なう場合、認識対象画像内の
認識物体により構成される閉領域のみのラベリングを行
ない、認識対象画像内の認識物体の背景あるいは穴など
の、認識物体により構成される閉領域とは異なる極性を
持つ閉領域についてはラベリングを行っていない。また
上記具なる極性の閉領域間の包含関係を1回の水平走査
でめることができなかったため、各閉領域が包含する閉
領域または包含される閉領域の特微量を計算するのに何
回も画面を走査する必要があり、非常に時間を要してい
た。
Configuration of conventional example and its problems Conventionally, a binary digital data sequence with polarity of "0" and "1" obtained by horizontally scanning the recognition target image is input, and each closed position in the recognition target image is input. When labeling is performed by assigning the same number to the data string part, which is a continuous data string of the same polarity on each horizontal scanning line belonging to an area, only the closed area formed by the recognition object in the recognition target image is labeled, Labeling is not performed on closed regions that have a polarity different from the closed region formed by the recognition object, such as the background of the recognition object or a hole in the recognition target image. In addition, since it was not possible to determine the inclusion relationship between closed regions of the above polarities in a single horizontal scan, it was necessary to calculate the feature amount of the closed region included in each closed region or the closed region included. It was necessary to scan the screen several times, which was very time consuming.

第1図は認識対象画像(カメラ視野)を走査し、認識物
体である閉領域(斜線部)についてラベリングを行った
例を示している。第2図はこのラベリング結果を示して
いる。この従来の方式においては第2図に示すような各
走査線のデータ列部を用いても、閉領域が包含する閉領
域の数、面積、境界長等を直接得ることはできなかった
。
FIG. 1 shows an example in which a recognition target image (camera field of view) is scanned and a closed area (shaded area) that is a recognition object is labeled. FIG. 2 shows the labeling results. In this conventional method, even if the data string portion of each scanning line as shown in FIG. 2 is used, it is not possible to directly obtain the number, area, boundary length, etc. of closed regions included in the closed region.

発明の目的 本発明は前記問題点を解消し、各閉領域間の包含関係を
一回の走査でめることができる画像認識装置を提供する
ことを目的とする。
OBJECTS OF THE INVENTION It is an object of the present invention to solve the above-mentioned problems and to provide an image recognition device that can determine the inclusive relationship between closed regions in one scan.

発明の構成 画像のラベリング・構造解析および特徴抽出を効率よく
行うためには各走査線のデータ列のラベリングを行って
いる時に同時に構造解析および特徴抽出を行う必要があ
る。
In order to efficiently perform the labeling, structural analysis, and feature extraction of the constituent images of the invention, it is necessary to simultaneously perform the structural analysis and feature extraction while labeling the data string of each scanning line.

本発明の画像認識装置は認識対象画像内の、認識物体よ
シ構成される閉領域のラベリングを行うとともに、認識
物体の背景または穴などの、認識物体より構成される閉
領域とは異なる極性を持つ閉領域についても同時にラベ
リングを行い、各閉領域間の包含関係をリアルタイムで
め、さらに各閉領域毎の特微量を同時にめ、2値画像デ
ータの構造解析および特徴抽出を非常に高速で行い、そ
の情報よシ高速に画像認識を行なうものである。
The image recognition device of the present invention not only labels a closed region composed of a recognition object in a recognition target image, but also labels a closed region composed of a recognition object, such as a background or a hole of the recognition object, with a polarity different from that of the closed region composed of the recognition object. At the same time, the closed regions that the system has are labeled, the inclusion relationships between each closed region are determined in real time, and the characteristic quantities of each closed region are simultaneously determined, allowing for structural analysis and feature extraction of binary image data at extremely high speed. This information is used to perform image recognition at high speed.

実施例の説明 第3図は本発明における一実施例の画像認識装置の構成
を示すブロック図である。図において、10は信号入力
端子で、この入力端子10には画像走査装置により認識
対象画像を走査して得られる画像走査信号が入力される
。11はこの画像走査信号を2値のディジタルデータ例
(以下、単にデータ例という)に変換する2値化部であ
る。
DESCRIPTION OF EMBODIMENTS FIG. 3 is a block diagram showing the configuration of an image recognition apparatus according to an embodiment of the present invention. In the figure, 10 is a signal input terminal, and an image scanning signal obtained by scanning a recognition target image with an image scanning device is input to this input terminal 10. Reference numeral 11 denotes a binarization unit that converts this image scanning signal into binary digital data (hereinafter simply referred to as data example).

100は2値認識対象画像内の閉領域の包含関係を表わ
す画像の構造をリアルタイムで解析するラベリング構造
解析部である。12はデータ列においてデータが変化す
る点、すなわちrOJから「1」またはrIJから「0
」に変化するエツジ点を検出するエツジ検出部である。
Reference numeral 100 denotes a labeling structure analysis unit that analyzes in real time the structure of an image representing the inclusion relationship of closed regions in the binary recognition target image. 12 is the point where the data changes in the data string, i.e. "1" from rOJ or "0" from rIJ.
This is an edge detection section that detects an edge point that changes to ``.

このエツジ検出部12は、例えば第4図に示すような認
識対象画像の認識において、第i走査線のデータ列が入
力−された時、点a、b、cをエツジ点として検出し、
エツジ検出信号16を出力する。このエツジ点で水平走
査線上の連続する同極性のデータ列部を表現できる。1
3.16は走査されるデータ列を1水平走査線遅延させ
る1水平走査線遅延部であり、14は現水平走査線上の
データと1水平走査線前のデータとの極性を比較し、前
記2つのデータが共に「1」(又は「0」)となってい
る同極性の場合ならば、重なり信号17を出力する重な
シ検出部である。この重なり検出部14は、例えば第4
図において、第(i−1)走査線上の点d (=404
 )と第i走査線上の点c(−[oJ)は同極性のデー
タであるので重なりを検出し、重なシ信号17を出力す
る。
This edge detection unit 12 detects points a, b, and c as edge points when the data string of the i-th scanning line is input, for example, in recognition of a recognition target image as shown in FIG.
An edge detection signal 16 is output. These edge points can represent continuous data strings of the same polarity on the horizontal scanning line. 1
3.16 is a one horizontal scanning line delay unit that delays the scanned data string by one horizontal scanning line; 14 compares the polarity of the data on the current horizontal scanning line with the data one horizontal scanning line before; If the two data are of the same polarity and are both "1" (or "0"), the overlap detection section outputs an overlap signal 17. This overlap detection section 14 is configured to detect, for example, the fourth
In the figure, point d (=404
) and the point c(-[oJ) on the i-th scanning line are data of the same polarity, so an overlap is detected and an overlap signal 17 is output.

18は水平走査線の連続する同極性のデータ列部が閉領
域の頂上であるならば、頂上信号を出力する閉領域頂上
検出部である。
Reference numeral 18 denotes a closed area top detection unit which outputs a top signal if the continuous data string portion of the same polarity of the horizontal scanning line is the top of the closed area.

この閉領域頂上検出部18は、例えば第5図において、
第1走査線のデータ列部が閉領域1の最初の水平走査線
上のデータ列部であるので、閉領域1の頂上として検出
する。第1走査線を走査後、頂上検出信号21を出力す
る。また第1走査線上の閉領域2のデータ列部は第(1
−1)走査線上のどのデータ列部とも重ならず、閉領域
2の頂上となり、第1走査線上の閉領域2のデータ列部
走査後、頂上検出信号21を出力する。19は現水平走
査線上のデータ列部が前記1水平走査線前のデータ列部
と重なったが、前記1水乎走査線前のデータ列部が既に
現水平走査線の他のデータ列部と重なっているダイバー
ジェンスの状態を検出し、ダイバーフェンス検出信号2
2を出力するダイバージェンス検出部である。すなわち
、このダイバージェンス検出部19は、例えば第6図に
おいて、第(i−1)走査線上のデータ列部Aが第1走
査線上のデータ列部りと重なっているが、デ〜り列部人
はデータ列部りと重なる以前にデータ列部Bと重なって
いるときにダイバージェンスが生じている事を検出し、
ダイバージェンス検出信号22を出力する。
For example, in FIG. 5, this closed area top detection unit 18
Since the data string portion of the first scanning line is the data string portion on the first horizontal scanning line of closed area 1, it is detected as the top of closed area 1. After scanning the first scanning line, the top detection signal 21 is output. Furthermore, the data string portion of the closed area 2 on the first scanning line is
-1) It does not overlap with any data string portion on the scanning line and becomes the top of the closed area 2, and after scanning the data string portion of the closed area 2 on the first scanning line, outputs the top detection signal 21. 19, the data string portion on the current horizontal scanning line overlaps with the data string portion one horizontal scanning line before, but the data string portion one water scanning line before is already overlapped with another data string portion of the current horizontal scanning line. Detects the overlapping divergence state and outputs the diver fence detection signal 2.
This is a divergence detection section that outputs 2. In other words, the divergence detection unit 19 is configured such that, for example, in FIG. detects that a divergence occurs when it overlaps with data string part B before it overlaps with data string part B,
A divergence detection signal 22 is output.

20は、現水平走査線上のデータ列部が1水平走査線前
のデータ列部と重なったが現水平走査線上のデータ列部
が前記1走査線前のデータ列部と重なる以前に、前記1
走査線前の他のデータ列部と重なっているコンバージェ
ンスの状態を検出し、コンバージェンス検出(i号23
を出カスルコンハージェンス検出部である。すなわち、
このコンバージェンス検出部2oは、例えば第7図にお
いて、第i走査線上のデータ列部Hが第(i−1)走査
線上のデータ列部Gと重なっているが、第1走査線上の
データ列部Hが第(i−1)走査線上のデータ列部Gと
重なる以前に第(l−1)走査線上のデータ列部Eと重
なっているときにコンバージェンスが生じた事を検出し
、コンバージェンス検出信号23を出力する。
20, the data string part on the current horizontal scanning line overlaps with the data string part one horizontal scanning line before, but before the data string part on the current horizontal scanning line overlaps with the data string part one scanning line before,
A convergence state that overlaps with another data string section in front of the scanning line is detected, and convergence detection (i No. 23
This is the output convergence detection section. That is,
For example, in FIG. 7, the data string section H on the i-th scanning line overlaps the data string section G on the (i-1)th scanning line, but the convergence detection section 2o It is detected that convergence has occurred when H overlaps with the data string portion E on the (l-1)th scanning line before it overlaps with the data string portion G on the (i-1)th scanning line, and a convergence detection signal is generated. Outputs 23.

24はエツジ検出信号16が入力された時、何番目のエ
ツジすなわち何番目のデータ列部かをカウントし、また
そのエツジの水平方向のアドレス並びに現水平走査線の
番号をカウントしているエツジカウンタ部である。
24 is an edge counter that counts the number of the edge, that is, the number of the data string, when the edge detection signal 16 is input, and also counts the horizontal address of the edge and the number of the current horizontal scanning line. Department.

26は現水平走査線上のデータ列部において、閉領域頂
上検出信号21が入力された場合、各データ列部の集合
に付与するカラム番号を1増加させ、当該データ列部に
上記カラム番号を付与し、また現水平走査線上のデータ
列部において、ダイバージェンス検出信号22が入力さ
れた場合、カラム番号を1増加させ当該データ列部のカ
ラム番号とし、また現水平走査線のデータ列部において
閉領域頂上信号もダイバージェンス検出信号も入力され
なかった場合、当該データ列部が重なった1水平走査線
前のデータ列部のカラム番号と同じ値のカラム番号を当
該データ列部に付与し、さ“らにカラムの先頭、カラム
の終了および当該データ列部のrlJ、roJの極性を
データ列部に付すカラム番号設定部である。
26, when the closed area top detection signal 21 is input in the data string part on the current horizontal scanning line, increases the column number given to each data string part by 1, and gives the above column number to the data string part. In addition, when the divergence detection signal 22 is input in the data string section on the current horizontal scanning line, the column number is incremented by 1 and becomes the column number of the data string section, and a closed area is added to the data string section on the current horizontal scanning line. If neither the top signal nor the divergence detection signal is input, a column number with the same value as the column number of the data string part one horizontal scanning line before the data string part overlapped with the data string part is given to the data string part, and This is a column number setting unit that assigns the start of the column, the end of the column, and the polarities of rlJ and roJ of the data string to the data string.

すなわち、このカラム番号設定部25は、例えば第6図
において、第1走査線上のデータ列部Bが第(i−1)
走査線上のデータ列部Aと重っておリ、かつ閉領域頂上
検出信号21もダイバージェンス検出信号22も出力さ
れないときにデータ列部Aのカラム番号をデータ列部B
に付与する。
In other words, the column number setting section 25 sets the data string portion B on the first scanning line to the (i-1)th column in FIG. 6, for example.
When the data string section A overlaps with the data string section A on the scanning line, and neither the closed region top detection signal 21 nor the divergence detection signal 22 is output, the column number of the data string section A is changed to the data string section B.
granted to.

また第i走査線上のデータ列部Cは閉領域の頂上である
のでカラム番号を1増加し、データ列部Cに付与し、カ
ラムの先頭フラッグも付与する。また第i走査線上のデ
〜り列部りでダイバージェンスが検出され、カラム番号
を1増加してデータ列部りに付与し、カラムの先頭フラ
ッグを付与する。
Furthermore, since the data string portion C on the i-th scanning line is the top of the closed area, the column number is incremented by 1 and assigned to the data string portion C, and a column start flag is also added. Further, a divergence is detected in the data column portion on the i-th scanning line, and the column number is incremented by 1 and assigned to the data column portion, and a column head flag is assigned.

また上記データ列部A、B、Q、])に対しそれぞれ対
応する極性を付与する。
Furthermore, corresponding polarities are assigned to the data string portions A, B, Q, ]).

26は現水平走査線上のデータ列部において、ダイバー
ジェンス検出信号22が入力された場合、各データ列部
の連結状態を表わすフラッグDF、として、尚該データ
列部の1水平走査線前の重なるデータ列部のカラム番号
を当該データ列部のカラム番号に対応させて記憶し、さ
らに各データ列部の包含関係を表わすフラッグDF2と
して当該データ列部のカラム番号を前記直前のデータ列
部のカラム番号に対応させて記憶するダイバージェンス
フラッグ設定部である。すなわち、このダイノ(−ジエ
ンスフラッグ設定部26は、例えば第6図において第1
走査線のデータ列部りでダイノ(−ジエンスが生じてい
るが、データ列部りのカラム番号に対応させて上記フラ
ッグDF、にデータ列部Aのカラム番号を記憶し、さら
にデータ列部りのカラム番号をデータ列部Cのカラム番
号に対応させて上記フラッグDF2に記憶させる。
26 is a flag DF indicating the concatenation state of each data string when the divergence detection signal 22 is input in the data string portion on the current horizontal scanning line. The column number of the data string section is stored in correspondence with the column number of the data string section, and the column number of the data string section is stored as a flag DF2 indicating the inclusion relationship of each data string section. This is a divergence flag setting section that stores the divergence flag in correspondence with the following. That is, this dyno (-sience flag setting section 26 is set to
Dyno (-) is occurring in the data string portion of the scanning line, but the column number of the data string portion A is stored in the flag DF in correspondence with the column number of the data string portion, and the column number of the data string portion A is The column number of is made to correspond to the column number of the data string portion C and is stored in the flag DF2.

27は現水平走査線上のデータ列部において、コンバー
ジェンス検出信号23が入力された場合、各データ列部
の連結状態を表わすフラッグCF、として尚該データ列
部のカラム番号を当該データ列部との重なりが新たに検
出されだ1走査線前のデータ列部のカラム番号に対応さ
せて記憶し、さらに各データ列部の包含関係を表わすフ
ラッグCF2として、前記1走査線前のデータ列部のカ
ラム番号を前記1走査線前のデータ列部の直前のデータ
列部のカラム番号に対応させて記憶するコンバージェン
スフラッグ設定部である。
When the convergence detection signal 23 is input in the data string section on the current horizontal scanning line, 27 is used as a flag CF indicating the concatenation state of each data string section, and also indicates the column number of the data string section. If an overlap is newly detected, it is stored in correspondence with the column number of the data string part one scanning line before, and the column number of the data string part one scanning line before is stored as a flag CF2 indicating the inclusive relationship of each data string part. This is a convergence flag setting unit that stores a number in correspondence with a column number of a data string section immediately before the data string section one scanning line before.

コンバージェンスフラッグ設定部2γは、例えば第7図
において第i走査線のデータ列部Hでコンバージェンス
が生じているが、データ列部Gのカラム番号に対応させ
て上記フラッグOF、にデータ列部Hのカラム番号を記
憶し、さらにデータ列部Gのカラム番号をデータ列部F
のカラム番号に対応させて上記フラッグCF2に記憶さ
せる。
For example, in FIG. 7, convergence has occurred in the data string section H of the i-th scanning line. The column number is memorized, and the column number of the data string part G is stored in the data string part F.
is stored in the flag CF2 in correspondence with the column number of.

28は2値化部11の出力信号を入力とし、上記カラム
番号設定部26でめられた現水走査線上のデータ列部の
カラム番号に従って、カラム番号の面積、モーメント、
境界長をめる特徴抽出部である。
28 inputs the output signal of the binarization section 11, and according to the column number of the data string section on the current scanning line determined by the column number setting section 26, the area, moment,
This is a feature extraction unit that calculates the boundary length.

29はカラム番号設定部25、ダイバージェンスフラッ
グ設定部26、コンバージェンス7ラソグ設定部27、
特徴抽出部28、エツジカウンタ部24およびエツジ検
出部12で得られたデータを記憶するメモリ部である。
29 is a column number setting section 25, a divergence flag setting section 26, a convergence 7 rasog setting section 27,
This is a memory section that stores data obtained by the feature extraction section 28, the edge counter section 24, and the edge detection section 12.

メモリ部29は、例えば第8図に示すように、カラム番
号に対応してそれぞれの閉領域番号OF、包含関係のレ
ベルを示すレベル番号LF、包含される閉領域番号を示
すマスター番号MS、包含する閉領域番号を示すスレー
ブ番号SL、コンバージェンスフラッグOF、、OF2
、ダイバージェンスフラッグDF、、DF2および面積
、第一次よ一メ。
For example, as shown in FIG. 8, the memory unit 29 stores, in correspondence with column numbers, respective closed area numbers OF, level numbers LF indicating the level of inclusion relationship, master numbers MS indicating included closed area numbers, and inclusion numbers. Slave number SL indicating the closed area number to be used, convergence flag OF, , OF2
, divergence flag DF, , DF2 and area, first order.

ト、第二次モーメント、境界長を記憶し、また第9図に
示すように、エツジ番号に対応してカラムの先頭および
終了7ラソグ、カラム番号およびデータ列部を表わすエ
ツジデータを記憶し、さらに第10図に示すように、走
査線番号に対応してエツジ番号を記憶している。
As shown in FIG. 9, the edge data representing the beginning and end 7 rasogs of the column, the column number and the data string part are stored in correspondence with the edge numbers. As shown in FIG. 10, edge numbers are stored in correspondence with scanning line numbers.

30は全画素に対して処理した時に請求められた情報を
整理し、画像を認識するための認識部であり、マイクロ
コンピュータにより構成される。
Reference numeral 30 denotes a recognition unit that organizes information requested when processing all pixels and recognizes the image, and is constituted by a microcomputer.

認識部30は前記CF+ + D Fl 、 CF2 
、 D F2を用いる事により各カラムの閉領域番号お
よび閉領域が包含している閉領域の番号を指している前
記SLおよび閉領域が包含される閉領域の番号を指して
いる前記MSをめ、前記MS、SLを用いる事により容
易に各閉領域間の包含関係を明らかにし、第8図におけ
る各閉領域間の包含関係を表現するだめのレベルフラッ
グLFをセントする。
The recognition unit 30 recognizes the CF+ + D Fl, CF2
, D F2 is used to obtain the closed region number of each column, the SL pointing to the number of the closed region included in the closed region, and the MS pointing to the number of the closed region included in the closed region. , MS and SL, the inclusive relationship between each closed area is easily clarified, and a level flag LF representing the inclusive relationship between each closed area in FIG. 8 is set.

さらに認識部は各カラム毎に計算された特徴量を用い、
同−閉領域番号毎にカラムの特徴量の和をめ、各閉領域
毎の特徴量を計算する。
Furthermore, the recognition unit uses the features calculated for each column,
The sum of the column feature amounts is calculated for each closed region number, and the feature amount for each closed region is calculated.

以上のように構成された本実施例装置について、以下、
その動作を説明する。
Regarding the apparatus of this embodiment configured as above, the following will be explained.
Let's explain its operation.

認識画像として、第11図に示すものを例にとって説明
する。
An example of a recognized image shown in FIG. 11 will be explained.

第11図は画像信号が2値化された後の画像データを示
す図であり、斜線部が認識物体で「1」の値を持ち、空
白部は背景でrOJO値をもってお沙、認識物体は1個
の穴をもっているものとする。また空白部および斜線部
のデータ列部はそれぞれのエツジ点によジ表現するもの
とする。
Figure 11 is a diagram showing the image data after the image signal has been binarized.The shaded area is the recognized object, which has a value of "1," and the blank area is the background, which has the rOJO value. Assume that it has one hole. It is also assumed that the data string portions in blank areas and shaded areas are represented by respective edge points.

いま第11図において、第1走査線のデータ列部4は空
白部でありまた最初のデータ列部であるので、第13図
に示すように、カラム番号として1、エツジデータとし
てe、極性の7ラノグにO、カラムの先頭フラッグに1
をエツジ番号1に対応させて記憶する。また第1走査線
のエツジ番号は1であるので、第14図の走査線番号1
に1を対応させ記憶する。
Now, in FIG. 11, the data string portion 4 of the first scanning line is a blank space and is the first data string portion, so as shown in FIG. 13, the column number is 1, the edge data is e, and the polarity is 7. O for Ranog, 1 for the first flag of the column.
is stored in correspondence with edge number 1. Also, since the edge number of the first scanning line is 1, the scanning line number 1 in FIG.
is associated with 1 and stored.

第2走査線のデータ列部mはデータ列部でと重なる。そ
こでデータ列部4と同じカラム番号を第13図のエツジ
番号2に対応させ記憶する。また第2走査線のエツジ番
号は2からスタートするので第14図の走査線番号2に
2を対応源せ記憶する。次にデータ列部nは斜線部であ
シ閉領域の頂上である。そこでカラム番号を1増加しエ
ツジデータとしてn、極性のフラッグに1.カラムの先
頭フラッグに1をそれぞれ第13図のエツジ番号3に対
応させ記憶する。
The data string portion m of the second scanning line overlaps with the data string portion m. Therefore, the same column number as data string part 4 is stored in correspondence with edge number 2 in FIG. 13. Also, since the edge number of the second scanning line starts from 2, 2 is associated with the scanning line number 2 in FIG. 14 and stored. Next, the data string part n is the shaded part and is the top of the closed area. Therefore, the column number is increased by 1, n is the edge data, and 1 is the polarity flag. 1 is stored in the head flag of each column in correspondence with edge number 3 in FIG. 13.

次にデータ列部0はデータ列部eと重なるがデータ列部
lは既にデータ列部mと重なっており、ダイバージェン
スが生じている。そこでカラム番号を1増加し3とし、
第13図のように記憶させ、第12図のカラム番号3の
DF、部にはデータ列部lのカラム番号1を対応させ、
データ列部nのカラム番号2のDF2部にはデータ列部
00カラム番号3を対応させる。
Next, data string portion 0 overlaps with data string portion e, but data string portion l already overlaps with data string portion m, resulting in a divergence. Therefore, increase the column number by 1 and set it to 3.
It is stored as shown in FIG. 13, and the DF of column number 3 in FIG. 12 corresponds to column number 1 of the data string section l.
The DF2 section of column number 2 of data string section n corresponds to column number 3 of data string section 00.

次に第3走査線のデータ列部pはデータ列部mと重なシ
、第13図において、エツジ番号6にカラム番号として
1、エツジデー久としてpを対応させ、まだこれは5番
目のエツジであり、6を第14図の走査線番号に対応さ
せ記憶する。またデータ列部qはデータ列部nと重なシ
、第13図においてエツジ番号6にカラム番号として2
、エツジデータとしてqを対応させ記憶する。一方デー
タ列部rはどのデータ列とも重ならない。そこでカラム
番号を1増加し4とし、カラムの先頭フラッグをセット
し、第13図のエツジ番号7に対応させ記憶する。
Next, the data string part p of the third scanning line overlaps the data string part m. In FIG. 13, the edge number 6 corresponds to 1 as the column number and p as the edge data length. 6 is stored in correspondence with the scanning line number in FIG. Also, the data string part q overlaps with the data string part n, and in FIG.
, q are stored in correspondence as edge data. On the other hand, the data string portion r does not overlap with any data string. Therefore, the column number is increased by 1 to 4, the head flag of the column is set, and the flag is stored in correspondence with edge number 7 in FIG.

またデータ列部Sはデータ列部nと重なるが、データ列
部nは既にデータ列部qと重なっており、ダイバージェ
ンスが生じている。そこで第13図のエツジ番号8にカ
ラム番号として6、エツジデータとしてSをそれぞれ対
応させ、さらに第12図においてカラム番号5のDF、
部にはデータ列部nのカラム番号2を対応させ記憶する
。またデータ列部rのカラム番号4のDF2部にはデー
タ列部Sのカラム番号6を対応させ、データ列部tはデ
ータ列部0と重なり、第13図のエツジ番号9に対応さ
せ記憶する。
Further, the data string portion S overlaps with the data string portion n, but the data string portion n already overlaps with the data string portion q, causing a divergence. Therefore, edge number 8 in FIG. 13 is associated with column number 6 and edge data with S, and furthermore, in FIG. 12, DF of column number 5,
The column number 2 of the data string section n is stored in association with the column number 2 of the data string section n. Further, the DF2 section of column number 4 of data string section r is made to correspond to column number 6 of data string section S, and data string section t overlaps with data string section 0 and is stored in correspondence with edge number 9 in FIG. .

次に第4走査線のデータ列部Uはデータ列部pと重なり
、第13図のエツジ番号10にカラム番号として1を対
応させ、これは10番目のエツジデータであυ、第14
図の走査線番号4に10を対応させ、データ列部Vはデ
ータ列部qと重なり、エツジ番号11にカラム番号とし
て2を対応させ記憶する。更にデータ列部Vはデータ列
部Sとも重なりコンバージェンスが生じている。そこで
第12図において、データ列部Vのカラム番号2をデー
タ列部Sのカラム番号5のCF、部に対応させ、データ
列部Sのカラム番号6をデータ列部rのカラム番号4の
CF2部に対応させ記憶する。また第13図において、
データ列部r、sの属するカラムは終了し、データ列部
r、sのカラム終了フラングを付与する。またデータ列
部Wはデータ列部tと重なる。そこで第13図のエツジ
番号12にかうに番号として3を対応させ記憶する。
Next, the data string portion U of the fourth scanning line overlaps the data string portion p, and the column number 1 corresponds to the edge number 10 in FIG.
The scanning line number 4 in the figure is made to correspond to 10, the data string portion V overlaps the data string portion q, and the edge number 11 is stored in correspondence to 2 as a column number. Furthermore, the data string portion V also overlaps the data string portion S, resulting in convergence. Therefore, in FIG. 12, column number 2 of data string section V corresponds to CF of column number 5 of data string section S, and column number 6 of data string section S corresponds to CF2 of column number 4 of data string section r. It is stored in correspondence with the section. Also, in Figure 13,
The column to which the data string portions r, s belong ends, and a column end flag for the data string portions r, s is added. Furthermore, the data string portion W overlaps with the data string portion t. Therefore, the number 3 is associated with the edge number 12 in FIG. 13 and stored.

次に第5走査線のデ〜り列部Xはデータ列部Uと重なる
。そこで第13図のエツジ番号13にカラム番号として
1を対応させ記憶する。またデータ列部Xはデータ列部
wとも重なシコンバージエンスが生じている。そこで第
12図において、データ列部Xのカラム番号1をデータ
列部Wのカラム番号3のOF、に対応させ、データ列部
Wのカラム番号3をデータ列部Vのカラム番号2のCF
2に対応させそれぞれ記憶する。
Next, the data column section X of the fifth scanning line overlaps with the data column section U. Therefore, 1 is associated with the edge number 13 in FIG. 13 as a column number and stored. Furthermore, the data string section X has an overlapping convergence with the data string section w. Therefore, in FIG. 12, column number 1 of the data string section
2 and are stored in correspondence with each other.

またデータ列部v、w、xは終了するので、第13図に
おいてそれぞれのカラム終了フラッグを付与する。
Furthermore, since the data string sections v, w, and x end, respective column end flags are added in FIG. 13.

以上セントされた前記連結状態を表わすフラッグOF、
 、DF、、包含関係を表わすフラッグOF2゜DF2
を用いる事により前記OF、LF、MS。
A flag OF representing the connected state in which more than one cent has been sent;
, DF, ,Flag representing inclusion relationship OF2゜DF2
By using the OF, LF, MS.

SLの各フラッグをセットする事ができる。Each flag of SL can be set.

つまりカラムlのOF、又はDF、の値がjとするなら
ば、カラムiとカラムjは同一閉領域に属し、またカラ
ムiのOF2及びDF2の両方の値がkとするならばカ
ラムiよシ構成される閉領域工はカラムにの属する閉領
域Kに包含され、前記OF。
In other words, if the value of OF or DF of column l is j, then column i and column j belong to the same closed region, and if the value of both OF2 and DF2 of column i is k, then column i and column j belong to the same closed region. The closed area K that is constructed is included in the closed area K that belongs to the column, and is included in the closed area K that belongs to the column.

LF、MS、SLの各フラッグは第16図のように々る
。つまり第15図によりカラム1とカラム3およびカラ
ム2とカラム6はそれぞれ同一閉領域であり、閉領域2
は閉領域1に、閉領域3は閉領域2にそれぞれ包含され
ており、閉領域2、つまり認識物体は1ケの穴開領域3
をもっている事がわかり、第11図の構造は第16図の
通シである事がわかる。
The LF, MS, and SL flags are displayed as shown in Figure 16. In other words, according to FIG. 15, columns 1 and 3 and columns 2 and 6 are the same closed area, and the closed area 2
is included in closed area 1, closed area 3 is included in closed area 2, and closed area 2, that is, the recognition object is included in one hole area 3.
It can be seen that the structure of FIG. 11 is the same as that of FIG. 16.

更に以上の処理において、同時に各データ列部ノ面積、
1次モーメント、2次モーメントおよび境界長をめてお
き、エツジデータのカラム番号と同じカラムのエリアに
だし込み、全データが終了後、同一閉領域番号の特微量
を加える事により各閉領域毎の特微量を割算することが
できる。
Furthermore, in the above processing, the area of each data string part,
Prepare the first moment, second moment, and boundary length, and put them into the area of the same column as the edge data column number. After all data is completed, add the feature quantity with the same closed region number to calculate the area for each closed region. A feature quantity can be divided.

発明の効果 従来のラベリング方式では対象物の構造を解析するため
には数回画像データを走査する必要があったが本発明で
は1回画像を走査するだけで対象画像の閉領域の包含関
係をめる事ができ、また各閉領斑が包含するまたは包含
される閉領域の特微量も容易にかつ高速にめる事ができ
る。
Effects of the Invention With conventional labeling methods, it was necessary to scan image data several times in order to analyze the structure of the target object, but with the present invention, the inclusion relationship of closed regions in the target image can be determined by scanning the image once. In addition, it is possible to easily and quickly determine the characteristic amount of the closed area that each closed area includes or is included in.

またエツジデータにカラム番号を対応させ、しかもカラ
ム番号と閉領域番号を対応させておく事によシ各エツジ
データがどの閉領域に属するかがわかシ、更に詳しい特
微量を計算するのに非常に有効である。
In addition, by associating column numbers with edge data, and by associating column numbers with closed region numbers, you can see which closed region each edge data belongs to, which is very effective for calculating more detailed feature quantities. It is.

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

第1図は従来のラベリング方式の例を示す説明図、第2
図は第1図に示したラベリング方式により得られたデー
タ例を示す配列図、第3図は本発明における画像認識装
置の一実施例を示すブロック図、第4図は同実施例にお
ける重なり検出部の説明図、第5図は閉領域頂上検出部
の説明図、第6図はダイバージェンス検出部の説明図、
第7図はコンバージェンス検出部の説明図、第8図〜第
10図はメモリ部をそれぞれ説明するための模式図、第
11図は同実施例装置に入力される画像データ例を示す
配列図、第12図〜第14図はメモリ部の内容を示す模
式図、第16図は閉領域番号を付は直した後の特徴デー
タを示す配列図、第16図は画像データの階層構造を示
す図である。 10・・・・・・入力端子、11・・・・・−2値化部
、29・・・・・・メモリ部、30・・・・・・認識部
、100・・・・・・構造解析部。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
図 第4図 第6図 第8図 第9図 第10図 12図 第131メ1
Figure 1 is an explanatory diagram showing an example of a conventional labeling method;
The figure is an array diagram showing an example of data obtained by the labeling method shown in Fig. 1, Fig. 3 is a block diagram showing an embodiment of the image recognition device in the present invention, and Fig. 4 is an overlap detection in the same embodiment. FIG. 5 is an explanatory diagram of the closed region top detection section, FIG. 6 is an explanatory diagram of the divergence detection section,
FIG. 7 is an explanatory diagram of the convergence detection section, FIGS. 8 to 10 are schematic diagrams for explaining the memory section, and FIG. 11 is an array diagram showing an example of image data input to the device of the embodiment, Figures 12 to 14 are schematic diagrams showing the contents of the memory section, Figure 16 is an array diagram showing feature data after reassigning closed area numbers, and Figure 16 is a diagram showing the hierarchical structure of image data. It is. 10...Input terminal, 11...-Binarization unit, 29...Memory unit, 30...Recognition unit, 100...Structure Analysis department. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 1
Figure 4 Figure 6 Figure 8 Figure 9 Figure 10 Figure 12 Figure 131 Me1

Claims (1)

【特許請求の範囲】 少くとも1個の閉領域を含んだ認識対象画像を水平走査
して得られる2値デイジタルテ〜り列を入力とし、現水
平走査線の連続する同極性のデータ列部と1水平走査線
前のデータ列部との重なりをチェックし、重なシがない
場合、データ列部の集合を表わすカラム番号を1増加し
て当該水平走査線のデータ列部に付与する第1の手段と
、現水平走査線の連続する同極性のデータ列部が1水平
走査線前のデータ列部と少くとも一部が初めて重なった
場合、1水平走査線前のデータ列部のカラム番号と同じ
カラム番号を当該データ列部に付与する第2の手段と、
現水平走査線の連続する同極性のデータ列部が1水平走
査線前のデータ列部と重なったが、前記1水平走査線前
のデータ列部が既に現水平走査線の他のデータ列部と重
なっているダイバージェンスの場合、カラム番号を1増
加して当該データ列部のカラム番号とし、当該データ列
部と1水平走査線前のデータ列部との連結状態を表わす
フラッグDF、として前記1水平走査線前のデータ列部
のカラム番号を当該データ列部のカラム番号に対応させ
て記憶し、さらに当該データ列部と当該データ列部の直
前のデータ列部との包含関係を表わす7ラソグDF2と
して当該データ列部のカラム番号を当該データ列部の直
前のデータ列部のカラム番号に対応させて記憶する第3
の手段と、現水平走査線の連続する同極性のデータ列部
が、1水平走査線前のデータ列部と重なったが、当該デ
ータ列部が前記1水乎走査線前のデータ列部と重なるよ
りも前に既に前記1水平走査線前の他のデータ列部と重
なっているコンバージェンスの場合、現データ列部との
重なりが新たに検出された前記1水平走査線前のデータ
列部と現データ列部との連結状態を表わすフラッグCF
、として現データ列部のカラム番号を前記1水平走査線
前のカラム番号に対応させて記憶し、さらに前記1水平
走査線前のデータ列部と前記1水平走査線前のデータ列
部の直前のデータ列部との包含関係を表わすフラッグC
F2として前記1水平走査線前のデータ列部のカラム番
号を前記1水平走査線前のデータ列部の直前のデータ列
部のカラム番号に対応させて記憶する第4の手段と、現
水平走査線のデータ列部の力2ム番号に対応する特徴項
目エリアに、各データ列部の面積、境界長、第一次モー
メント、第二次モーメントを足し込む第5の手段と、全
水平走査線のデータ列を前記第1〜第4の手段により処
理した後、前記各フラッグOF、 。 DF、、CF2.DF2をもとに対象画像の閉領域の番
号、各々の閉領域の包含関係および画像の構造。 前記構造の深さをめるとともに、前記第5の手段によシ
各カラム毎に計算された特徴を同じ閉領域番号を持つカ
ラム毎に加える事により各閉領域毎の特徴をめる第6の
手段とを備える事を特徴とした画像認識装置。
[Claims] A binary digital text string obtained by horizontally scanning an image to be recognized that includes at least one closed region is input, and a continuous data string portion of the same polarity of the current horizontal scanning line is used as an input. Check for overlap with the data string part of the previous horizontal scanning line, and if there is no overlap, increase the column number representing the set of data string parts by 1 and add it to the data string part of the horizontal scanning line. and the column number of the data string part one horizontal scanning line before, when at least a part of the continuous data string part of the current horizontal scanning line of the same polarity overlaps with the data string part one horizontal scanning line before. a second means for assigning the same column number to the data string part;
The consecutive data strings of the same polarity of the current horizontal scanning line overlap with the data string of the previous horizontal scanning line, but the data string of the previous horizontal scanning line has already overlapped with the other data string of the current horizontal scanning line. In the case of a divergence that overlaps with , the column number is incremented by 1 to be the column number of the data string section, and the flag DF indicating the connection state of the data string section and the data string section one horizontal scanning line before is set as the flag DF. The column number of the data string section before the horizontal scanning line is stored in correspondence with the column number of the data string section, and furthermore, a 7 rasogogram representing the inclusive relationship between the data string section and the data string section immediately before the concerned data string section is stored. A third DF2 stores the column number of the data string section in correspondence with the column number of the data string section immediately before the data string section.
, the continuous data string portion of the current horizontal scanning line of the same polarity overlaps with the data string portion of the previous horizontal scanning line, but the data string portion overlaps with the data string portion of the previous horizontal scanning line. In the case of convergence, which has already overlapped with another data string part one horizontal scanning line before the overlap, the overlap with the current data string part is newly detected with the data string part one horizontal scanning line previous. Flag CF indicating the state of connection with the current data string section
, the column number of the current data string section is stored in correspondence with the column number of the one horizontal scanning line before, and the data string section of the one horizontal scanning line before and immediately before the data string section of the one horizontal scanning line before is stored. Flag C indicating the inclusion relationship with the data string part of
a fourth means for storing, as F2, a column number of the data string section one horizontal scanning line before in correspondence with a column number of a data string section immediately before the data string section one horizontal scanning line before; A fifth means of adding the area, boundary length, first moment, and second moment of each data string part to the feature item area corresponding to the force number of the data string part of the line, and adding all the horizontal scanning lines. After processing the data string by the first to fourth means, each of the flags OF. DF,,CF2. Based on DF2, the number of closed regions of the target image, the inclusion relationship of each closed region, and the structure of the image. A sixth method that calculates the depth of the structure and calculates the features of each closed region by adding the features calculated for each column by the fifth means to each column having the same closed region number. An image recognition device characterized by comprising: means.
JP58193712A 1983-10-17 1983-10-17 image recognition device Pending JPS6084678A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58193712A JPS6084678A (en) 1983-10-17 1983-10-17 image recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58193712A JPS6084678A (en) 1983-10-17 1983-10-17 image recognition device

Publications (1)

Publication Number Publication Date
JPS6084678A true JPS6084678A (en) 1985-05-14

Family

ID=16312533

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58193712A Pending JPS6084678A (en) 1983-10-17 1983-10-17 image recognition device

Country Status (1)

Country Link
JP (1) JPS6084678A (en)

Similar Documents

Publication Publication Date Title
JPH0196771A (en) Recognizing system for circular arc part
CN108171229B (en) Method and system for identifying hollow adhesion verification code
KR100243350B1 (en) How to extract and recognize news video subtitles
JPH0215910B2 (en)
JPS59174969A (en) Picture recognizing device
JPS6019549B2 (en) Shape matching device
JPH02173886A (en) Word recognizing system
JPH06168327A (en) Image area extraction device
CN120808372A (en) Analysis method, system and device for railway signal drawing
JPH01171072A (en) System for recognizing image shape
JPH0245229B2 (en)
JPH07129779A (en) Intruder recognition method
JPS5999570A (en) Picture processor
JPH02300876A (en) Character recognizing device
JPH0443315B2 (en)
JPS6376080A (en) Linear graphic separating device
JPH04216187A (en) Line picture processing method
JPS63307589A (en) Object recognition method
JPH0397085A (en) Segmenting system for routine format character
JPH0656617B2 (en) Labeling method for labeling processor
JPH0433079A (en) Table processing system
JPH0215104B2 (en)
JPS59149558A (en) Processing system for extraction of apex of closed region
JPS60146380A (en) character recognition device
JPS5971583A (en) Character string extracting system