JPH0145669B2 - - Google Patents

Info

Publication number
JPH0145669B2
JPH0145669B2 JP58014084A JP1408483A JPH0145669B2 JP H0145669 B2 JPH0145669 B2 JP H0145669B2 JP 58014084 A JP58014084 A JP 58014084A JP 1408483 A JP1408483 A JP 1408483A JP H0145669 B2 JPH0145669 B2 JP H0145669B2
Authority
JP
Japan
Prior art keywords
slope
edge
unit
connecting line
detection unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP58014084A
Other languages
Japanese (ja)
Other versions
JPS59140589A (en
Inventor
Takashi Torio
Toshuki Goto
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 JP58014084A priority Critical patent/JPS59140589A/en
Publication of JPS59140589A publication Critical patent/JPS59140589A/en
Publication of JPH0145669B2 publication Critical patent/JPH0145669B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Description

【発明の詳細な説明】 (A) 発明の技術分野 本発明は、一次元処理によつて処理速度の高速
化を図つた矩形対象の輪郭抽出装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (A) Technical Field of the Invention The present invention relates to a contour extraction device for a rectangular object that achieves high processing speed through one-dimensional processing.

(B) 技術の背景 パターン認識技術の一応用分野として、文書あ
るいは書籍等の自動仕分けシステムがあるが、こ
のようなシステムにおいては、通常、仕分け対象
物品をコンベア等によつて移送しながら、表面に
記載されている記号・文字あるいは模様等の認識
結果に基いて仕分けをおこなうのであるが、該認
識の速度および精度等の向上を図るため、該認識
プロセスの一環として予め認識対象の輪郭を認識
し認識対象を抽出する作業、いわゆる「切出し」
をおこなうことが多い。
(B) Background of the technology One application field of pattern recognition technology is automatic sorting systems for documents, books, etc. In such systems, the surface of the articles is usually Sorting is done based on the recognition results of symbols, characters, patterns, etc. described in the text, but in order to improve the speed and accuracy of the recognition, the outline of the recognition target is recognized in advance as part of the recognition process. The work of extracting the recognition target, so-called "cutting out"
I often do this.

(C) 従来技術と問題点 従来の矩形対象の輪郭抽出装置においては、二
次元演算フイルタを用いて矩形対象をラスタ走査
し各画素点での濃度変化率の大きさあるいは濃度
変化率が最大となる方向あるいは濃度変化率と濃
度変化率が最大となる方向の両方を二次元配列と
して求めたのちに輪郭抽出処理をおこなつてい
た。
(C) Conventional technology and problems In conventional contour extraction devices for rectangular objects, a two-dimensional calculation filter is used to raster scan a rectangular object and find the maximum density change rate or density change rate at each pixel point. The contour extraction process is performed after determining both the direction in which the density change rate is maximum or the direction in which the density change rate is maximum and the direction in which the density change rate is maximum as a two-dimensional array.

したがつて輪郭抽出処理に長時間を要し、また
大容量のレジスタを必要とするなど、実用化が困
難であつた。
Therefore, the contour extraction process takes a long time and requires a large-capacity register, making it difficult to put it into practical use.

(D) 発明の目的 本発明は、一次元演算フイルタを用い、輪郭抽
出処理の初期段階で二次元構造の画像情報を一次
元構造に変換することによつて、輪郭抽出装置の
処理速度を向上することを目的とする。
(D) Purpose of the Invention The present invention improves the processing speed of a contour extraction device by converting image information with a two-dimensional structure into a one-dimensional structure at the initial stage of contour extraction processing using a one-dimensional calculation filter. The purpose is to

(E) 発明の構成 本発明になる輪郭抽出装置は、一次元演算フイ
ルタを用いて矩形対象のデジタル画像をラスタ走
査し該走査線毎に濃度変化率が極大となる点を1
点ずつ抽出して得られる点群および該濃度変化率
が極小となる点を1点ずつ抽出して得られる点群
をそれぞれ一次元配列のデータとして得るエツジ
検出部と、前記エツジ検出部によつて得られるそ
れぞれの点群のうち隣接距離が所定値以下の点を
走査線の順に連結することによつて連結線を得る
連結線生成部と、前記連結線生成部によつて得ら
れる連結線の中から最長連結線を抽出し、該最長
連結線を直線近似することによつて前記矩形対象
の辺の候補を得る辺候補生成部と、前記連結線生
成部によつて得られる連結線のうち前記辺候補生
成部によつて得られる直線との距離が所定の値よ
り小さい連結線を抽出する辺要素抽出部と、前記
辺要素抽出部によつて得られるすべての連結線を
直線近似し該直線の傾斜を検出する辺傾斜候補検
出部と、前記辺傾斜候補検出部によつて得られる
前記矩形対象の辺毎の傾斜候補から該矩形対象の
傾斜を求める傾斜検出部と、前記傾斜検出部によ
つて得られる前記矩形対象の傾斜と前記辺要素抽
出部によつて得られるすべての連結線から該矩形
対象の辺を検出する辺検出部とを備え、矩形対象
の辺毎の傾斜候補を求めたのちに得られる該矩形
対象の傾斜を基準として該矩形対象の輪郭を抽出
するようにしたものである。
(E) Structure of the Invention The contour extraction device of the present invention raster scans a digital image of a rectangular object using a one-dimensional calculation filter, and selects a point at which the density change rate is maximum for each scanning line.
an edge detection unit that obtains a point group obtained by extracting points point by point and a point group obtained by extracting points at which the density change rate is minimum one by one as one-dimensional array data; a connecting line generation unit that generates a connecting line by connecting points whose adjacent distances are equal to or less than a predetermined value in the order of scanning lines, and a connecting line obtained by the connecting line generating unit; an edge candidate generation unit that extracts the longest connection line from among the longest connection lines and obtains edge candidates of the rectangular object by linearly approximating the longest connection line; and Among them, an edge element extraction unit extracts connecting lines whose distance from the straight line obtained by the edge candidate generation unit is smaller than a predetermined value, and a linear approximation is performed for all the connecting lines obtained by the edge element extraction unit. a side slope candidate detection unit that detects the slope of the straight line; a slope detection unit that calculates the slope of the rectangular object from the slope candidates for each side of the rectangular object obtained by the side slope candidate detection unit; and the slope detection unit. an edge detection section that detects the sides of the rectangular object from the slope of the rectangular object obtained by the section and all the connecting lines obtained by the side element extraction section; The outline of the rectangular object is extracted based on the slope of the rectangular object obtained after determining the .

すなわち、抽出の対象とする輪郭が互に直交す
る2本ずつ計4本の線分によつて構成されている
ことに着目し、一次元演算フイルタすなわち一次
元ウインド演算を互に直交する2方向に施して濃
度変化率が極大あるいは極小となる所すなわちエ
ツジを検出することによつて処理を簡単化すると
ともに、このようにして得られる4組のエツジ
を、抽出の対象とする4組の輪郭すなわち辺に対
応させ、各辺の要素となる部分を抽出して各辺の
傾斜を検出する。この処理過程は取扱情報量が少
なく、したがつて処理も簡単であり高速におこな
うことができる。最後に各辺の傾斜に重みを付し
て平均を求めることによつて対象の傾斜を求め、
先に得られた各辺の要素に関する情報と合わせて
4辺の検出すなわち輪郭の抽出を極めて短時間に
おこなうものである。
In other words, focusing on the fact that the contour to be extracted is made up of a total of four line segments, two of which are orthogonal to each other, a one-dimensional operation filter, or one-dimensional window operation, is performed in two orthogonal directions. The processing is simplified by detecting the edges where the density change rate is maximum or minimum, and the four sets of edges obtained in this way are used as the four sets of contours to be extracted. That is, the inclination of each side is detected by making it correspond to the sides, extracting the parts that become the elements of each side. This processing process requires only a small amount of information to be handled, so the processing is simple and can be performed at high speed. Finally, the slope of the object is determined by weighting the slope of each side and calculating the average.
Together with the previously obtained information regarding the elements of each side, the detection of four sides, that is, the extraction of the contour, can be performed in an extremely short time.

(F) 発明の実施例 以下、本発明の要旨を実施例によつて見体的に
おこなう。
(F) Examples of the invention Hereinafter, the gist of the present invention will be illustrated by way of examples.

図は本発明一実施例のシステムブロツク図を示
し、1は矩形対象を観測して得られる入力デジタ
ル画像中の雑音成分をメデイアンフイルタを用い
て除去するノイズ除去部、21はノイズ除去部1
の出力を3×1の微分フイルタによつて横方向に
ラスタ走査し該走査線毎に濃度変化率が極大とな
る最初の点を1点ずつ抽出して得られる点群およ
び該濃度変化率が極小となる最後の点を1点ずつ
抽出して得られる点群をそれぞれ一次元配列のデ
ータとして得るエツジ検出部、22はノイズ除去
部1の出力を1×3の微分フイルタによつて縦方
向にラスタ走査し該走査線毎に濃度変化率が極大
となる最初の点を1点ずつ抽出して得られる点群
および該濃度変化率が極小となる最後の点を1点
ずつ抽出して得られる点群をそれぞれ一次元配列
のデータとして得るエツジ検出部、31と32は
それぞれエツジ検出部21によつて得られる2組
の点群のうち隣接距離が走査線ピツチの√2以下
であり且つ構成点数が5個以上の点群の点を走査
線の順に連結することによつて左側の連結線を得
る第一の連結線生成部と右側の連結線を得る第二
の連結線生成部、33と34はそれぞれエツジ検
出部22によつて得られる2組の点群から前記と
同様にしてそれぞれ上側の連結線を得る第三の連
結線生成部と下側の連結線を得る第四の連結線生
成部、41と42と43と44はそれぞれ第一の
連結線生成部31と第二の連結線生成部32と第
三の連結線生成部33と第四の連結線生成部34
によつて得られる連結線の中から最長連結線を抽
出し該最長連結線をそれぞれ直線近似することに
よつて前記矩形対象の辺の候補を得る第一の辺候
補生成部と第二の辺候補生成部と第三の辺候補生
成部と第四の辺候補生成部、51と52と53と
54はそれぞれ第一の連結線生成部31と第二の
連結線生成部32と第三の連結線生成部33と第
四の連結線生成部34によつて得られる連結線の
うちそれぞれ第一の辺候補生成部41と第二の辺
候補生成部42と第三の辺候補生成部43と第四
の辺候補生成部44によつて得られる直線との距
離が予め定めた値より小さい連結線を抽出する第
一の辺要素抽出部と第二の辺要素抽出部と第三の
辺要素抽出部と第四の辺要素抽出部、61と62
と63と64はそれぞれ第一の辺要素抽出部51
と第二の辺要素抽出部52と第三の辺要素抽出部
53と第四の辺要素抽出部54によつて得られる
それぞれのすべての連結線を直線近似し該直線の
傾斜を検出する第一の辺傾斜候補検出部と第二の
辺傾斜候補検出部と第三の辺傾斜候補検出部と第
四の辺傾斜候補検出部、7は第一の辺傾斜候補検
出部61と第二の辺傾斜候補検出部62と第三の
辺傾斜候補検出部63と第四の辺傾斜候補検出部
64によつて得られる各直線に対し前記各近似に
おける適合度に応じた重みを付し且つ前二者は直
角に回転させて平均値を求めることによつて前記
矩形対象の辺毎の傾斜候補から該矩形対象の傾斜
を求める傾斜検出部、81と82と83と84は
それぞれ第一の辺要素抽出部51と第二の辺要素
抽出部52と第三の辺要素抽出部53と第四の辺
要素抽出部54によつて得られるそれぞれの連結
線を構成する点群を前二者に対しては傾斜検出部
7によつて得られる傾斜と直交する直線また後二
者に対しては傾斜検出部7によつて得られる傾斜
と平行する直線によつて走査し該直線との距離が
所定値より小となる点の数が最大となるときの該
直線の位置を探索することによつてそれぞれ前記
矩形対象の左側と右側と上側と下側の輪郭すなわ
ち辺を検出する第一の辺検出部と第二の辺検出部
と第三の辺検出部と第四の辺検出部である。
The figure shows a system block diagram of an embodiment of the present invention, in which 1 is a noise removal unit that uses a median filter to remove noise components in an input digital image obtained by observing a rectangular object, and 21 is a noise removal unit 1.
The output is raster-scanned in the horizontal direction by a 3×1 differential filter, and the first point at which the density change rate is maximum is extracted one by one for each scanning line.The resulting point group and the density change rate are An edge detection unit extracts the last point that becomes the minimum point one by one and obtains each obtained point group as one-dimensional array data. 22 is an edge detection unit that extracts the last point that becomes the minimum point one by one and obtains each obtained point group as one-dimensional array data. A group of points is obtained by raster scanning and extracting the first point at which the rate of density change is the maximum for each scanning line one by one, and the last point at which the rate of density change is the minimum is extracted one by one. The edge detection units 31 and 32 each obtain the point groups obtained by the edge detection unit 21 as one-dimensional array data, and the adjacent distance is less than or equal to √2 of the scanning line pitch, and a first connecting line generating unit that generates a left side connecting line by connecting points of a point group having five or more constituent points in the order of scanning lines; a second connecting line generating unit that generates a right side connecting line; 33 and 34 are a third connecting line generating unit that generates the upper connecting line from the two sets of points obtained by the edge detecting unit 22 in the same manner as described above, and a fourth connecting line generating unit that generates the lower connecting line. Connecting line generating units 41, 42, 43, and 44 are a first connecting line generating unit 31, a second connecting line generating unit 32, a third connecting line generating unit 33, and a fourth connecting line generating unit 34, respectively.
a first edge candidate generation unit that obtains side candidates of the rectangular object by extracting the longest connecting line from among the connecting lines obtained by and linearly approximating each of the longest connecting lines; The candidate generating section, the third side candidate generating section, and the fourth side candidate generating section, 51, 52, 53, and 54, are the first connecting line generating section 31, the second connecting line generating section 32, and the third connecting line generating section, respectively. Among the connecting lines obtained by the connecting line generating unit 33 and the fourth connecting line generating unit 34, the first side candidate generating unit 41, the second side candidate generating unit 42, and the third side candidate generating unit 43, respectively and a straight line obtained by the fourth edge candidate generation unit 44, a first edge element extraction unit that extracts a connecting line whose distance is smaller than a predetermined value, a second edge element extraction unit, and a third edge. Element extractor and fourth edge element extractor, 61 and 62
, 63 and 64 are the first side element extraction unit 51, respectively.
A third step that linearly approximates all the connecting lines obtained by the second side element extraction section 52, the third side element extraction section 53, and the fourth side element extraction section 54, and detects the slope of the straight line. a first side slope candidate detection unit, a second side slope candidate detection unit, a third side slope candidate detection unit, and a fourth side slope candidate detection unit; 7, a first side slope candidate detection unit 61 and a second side slope candidate detection unit; Each straight line obtained by the side slope candidate detection unit 62, the third side slope candidate detection unit 63, and the fourth side slope candidate detection unit 64 is weighted according to the degree of fitness in each approximation, and The two are tilt detection units that calculate the tilt of the rectangular object from the tilt candidates for each side of the rectangular object by rotating at right angles and calculating the average value; 81, 82, 83, and 84 are respectively the first sides; The point groups constituting the respective connecting lines obtained by the element extraction unit 51, the second edge element extraction unit 52, the third edge element extraction unit 53, and the fourth edge element extraction unit 54 are combined into the former two. For the latter two, scanning is performed using a straight line perpendicular to the slope obtained by the slope detecting section 7, and for the latter two, scanning is performed using a straight line parallel to the slope obtained by the slope detecting section 7, and the distance from the straight line is a first edge for detecting the left, right, upper, and lower contours or edges of the rectangular object, respectively, by searching for the position of the straight line when the number of points smaller than a predetermined value is maximum; They are a detection section, a second side detection section, a third side detection section, and a fourth side detection section.

このようにして、エツジ検出部21とエツジ検
出部22とにおいて二次元構造の画像情報を一次
元構造に変換し、したがつて、このあとの処理を
すべて一次元処理で高速におこなうことができ
る。
In this way, the edge detection unit 21 and the edge detection unit 22 convert image information with a two-dimensional structure into a one-dimensional structure, and therefore, all subsequent processing can be performed at high speed by one-dimensional processing. .

(G) 発明の効果 以上説明したように、本発明によれば処理速度
を向上した矩形対象の輪郭抽出装置を得ることが
できる。
(G) Effects of the Invention As explained above, according to the present invention, it is possible to obtain a contour extraction device for a rectangular object with improved processing speed.

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

図は本発明一実施例のシステムブロツク図を示
し、21,22はエツジ検出部、31,32,3
3,34はそれぞれ第一・第二・第三・第四の連
結線生成部、41,42,43,44はそれぞれ
第一・第二・第三・第四の辺候補生成部、51,
52,53,54はそれぞれ第一・第二・第三・
第四の辺要素抽出部、61,62,63,64は
それぞれ第一・第二・第三・第四の辺傾斜候補検
出部、7は傾斜検出部、81,82,83,84
はそれぞれ第一・第二・第三・第四の辺検出部で
ある。
The figure shows a system block diagram of an embodiment of the present invention, in which 21 and 22 are edge detection units;
3 and 34 are first, second, third, and fourth connecting line generation units, respectively; 41, 42, 43, and 44 are first, second, third, and fourth edge candidate generation units, respectively; 51,
52, 53, 54 are the first, second, third, and
Fourth side element extraction unit, 61, 62, 63, 64 are first, second, third, and fourth side slope candidate detection units, respectively; 7 is a slope detection unit, 81, 82, 83, 84
are the first, second, third, and fourth edge detection units, respectively.

Claims (1)

【特許請求の範囲】[Claims] 1 一次元演算フイルタを用いて矩形対象のデジ
タル画像をラスタ走査し該走査線毎に濃度変化率
が極大となる点を1点ずつ抽出して得られる点群
および該濃度変化率が極小となる点を1点ずつ抽
出して得られる点群をそれぞれ一次元配列のデー
タとして得るエツジ検出部と、前記エツジ検出部
によつて得られるそれぞれの点群のうち隣接距離
が所定値以下の点を走査線の順に連結することに
よつて連結線を得る連結線生成部と、前記連結線
生成部によつて得られる連結線の中から最長連結
線を抽出し該最長連結線を直線近似することによ
つて前記矩形対象の辺の候補を得る辺候補生成部
と、前記連結線生成部によつて得られる連結線の
うち前記辺候補生成部によつて得られる直線との
距離が所定の値より小さい連結線を抽出する辺要
素抽出部と、前記辺要素抽出部によつて得られる
すべての連結線を直線近似し該直線の傾斜を検出
する辺傾斜候補検出部と、前記辺傾斜候補検出部
によつて得られる前記矩形対象の辺毎の傾斜候補
から該矩形対象の傾斜を求める傾斜検出部と、前
記傾斜検出部によつて得られる前記矩形対象の傾
斜と前記辺要素抽出部によつて得られるすべての
連結線から該矩形対象の辺を検出する辺検出部と
を備え、矩形対象の辺毎の傾斜候補を求めたのち
に得られる該矩形対象の傾斜を基準として該矩形
対象の輪郭を抽出することを特徴とする輪郭抽出
装置。
1 Raster scan a digital image of a rectangular object using a one-dimensional calculation filter, and extract one point at a time for each scanning line where the density change rate is the maximum and the point group where the density change rate is the minimum an edge detection unit that extracts points one by one and obtains each point group as one-dimensional array data; and an edge detection unit that extracts points one by one and obtains each point group as one-dimensional array data; a connecting line generation unit that obtains a connecting line by connecting scanning lines in order; and extracting the longest connecting line from among the connecting lines obtained by the connecting line generating unit and linearly approximating the longest connecting line. A distance between an edge candidate generation unit that obtains side candidates of the rectangular object and a straight line obtained by the edge candidate generation unit among the connecting lines obtained by the connection line generation unit is a predetermined value. an edge element extraction unit that extracts a smaller connecting line; an edge slope candidate detection unit that linearly approximates all the connection lines obtained by the edge element extraction unit and detects the slope of the straight line; and the side slope candidate detection unit. a slope detection section that calculates the slope of the rectangular object from the slope candidates for each side of the rectangular object obtained by the section; and a side detection unit that detects the sides of the rectangular object from all the connecting lines obtained by A contour extraction device characterized by extracting contours.
JP58014084A 1983-01-31 1983-01-31 Outline extracting device Granted JPS59140589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58014084A JPS59140589A (en) 1983-01-31 1983-01-31 Outline extracting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58014084A JPS59140589A (en) 1983-01-31 1983-01-31 Outline extracting device

Publications (2)

Publication Number Publication Date
JPS59140589A JPS59140589A (en) 1984-08-11
JPH0145669B2 true JPH0145669B2 (en) 1989-10-04

Family

ID=11851236

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58014084A Granted JPS59140589A (en) 1983-01-31 1983-01-31 Outline extracting device

Country Status (1)

Country Link
JP (1) JPS59140589A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61290583A (en) * 1985-06-19 1986-12-20 Yokogawa Electric Corp Image processor
JPH0661105B2 (en) * 1986-03-03 1994-08-10 株式会社日立製作所 Straight line calculation method
JP2010134958A (en) * 2010-02-08 2010-06-17 Fujitsu Ltd Boundary detection method, program and device using the same

Also Published As

Publication number Publication date
JPS59140589A (en) 1984-08-11

Similar Documents

Publication Publication Date Title
Duda et al. Use of range and reflectance data to find planar surface regions
US4905296A (en) System for shape recognition
US4208651A (en) Fingerprint identification by ridge angle and minutiae recognition
JPH05242292A (en) Separating method
JPH06348896A (en) Segmenting method for character and device therefor
CN108009538A (en) A kind of automobile engine cylinder-body sequence number intelligent identification Method
US4817169A (en) Page segmentor
JP2001043313A (en) Character segmenting method
JPH0145669B2 (en)
CN1035844C (en) Method of sorting out candidate characters in character recognition system
Jayarathna et al. A junction based segmentation algorithm for offline handwritten connected character segmentation
Ramdan et al. Comparative study of algorithms for voronoi diagram construction on segmentation of Arabic hand writing
Elrajubi et al. Angle features extraction of handwritten signatures
JP3009237B2 (en) Feature extraction method
JP2576491B2 (en) Feature extraction method
JP2674286B2 (en) Feature extraction method
JPS63298494A (en) Pattern recognizing device
JPS603078A (en) Character recognition system
JPH0545991B2 (en)
JPS6343788B2 (en)
JP2576494B2 (en) Feature extraction method
JPH0245229B2 (en)
JPS6019287A (en) Character recognizing method
JPH103517A (en) Device for detecting tilt angle of document picture
JPH0557633B2 (en)