JPS592069B2 - Graphical flaw detection device using contour line information - Google Patents

Graphical flaw detection device using contour line information

Info

Publication number
JPS592069B2
JPS592069B2 JP51043324A JP4332476A JPS592069B2 JP S592069 B2 JPS592069 B2 JP S592069B2 JP 51043324 A JP51043324 A JP 51043324A JP 4332476 A JP4332476 A JP 4332476A JP S592069 B2 JPS592069 B2 JP S592069B2
Authority
JP
Japan
Prior art keywords
boundary line
image memory
graphic
standard
inspected
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
JP51043324A
Other languages
Japanese (ja)
Other versions
JPS52126136A (en
Inventor
貴康 伊藤
秀一 辻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP51043324A priority Critical patent/JPS592069B2/en
Publication of JPS52126136A publication Critical patent/JPS52126136A/en
Publication of JPS592069B2 publication Critical patent/JPS592069B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は輪郭線情報を用いた図形傷検出装置に係り、そ
の輪郭線の上下左右にある幅で特別な記号を付け、この
図形に、入力された被検査図形の輪郭線を重ね合わせて
、重ならない部分を図形傷として検出するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a figure flaw detection device using contour line information, in which special symbols are attached to the contour line with a certain width on the top, bottom, left and right, and this figure is marked with the same width as that of the input figure to be inspected. The outlines are overlapped and the parts where they do not overlap are detected as graphic flaws.

マッチング法によつて図形傷検出を行なう場合、従来の
方式では、被検査図形のごくわずかの位置ずれにより傷
でない部分を傷であると判定することもあり、傷検出性
能がよくなかつた。
When detecting graphic flaws by the matching method, conventional methods have poor flaw detection performance because a part that is not a flaw may be determined to be a flaw due to a very slight positional shift of the figure to be inspected.

本発明はこのような欠点を考慮して標準図形の輪郭線の
上下左右のある区間内に被検査図形の輪郭線が入るか否
かにより、少しの位置ずれがあつても正確に図形傷を検
出するものである。
Taking these drawbacks into consideration, the present invention accurately detects graphic damage even if there is a slight positional shift, depending on whether the contour line of the figure to be inspected falls within certain sections of the standard figure's contour line, top, bottom, left and right. It is something to detect.

本発明実施例装置を図面に従つて説明する。A device according to an embodiment of the present invention will be explained according to the drawings.

第1図は実施例ブロック図で、被検査図形入力装置1、
第1の画像メモリ2、位置合わせ装置3、標準図形入力
装置4、第2画像メモリ5、境界線抽出装置6、境界線
区間設定装置7、傷検出装置8、表示装置9とから構成
されている。被検査図形入力装置1はフィルムリーダ、
フライシダスポットスキャナ、TV(テレビジョン)カ
メラ等の入力装置から構成されており、フィルムあるい
は図面を入力してディジタル画像データは変換して第1
の画像メモリ2に格納する。この際、第2画像メモリ5
内の標準図形データを用いて位置合わせ装置3により標
準図形と入力図形との位置合わせを行う。標準図形入力
装置4は、フイルムリーダ、フライングスポツトスキヤ
ナ、TVカメラ等の他に、標準図形設計の際の図形入力
装置(デイジタイサ)のいずれかの入力装置より成り、
これにより標準図形が入力されデイジタル画像データと
なり、第2の画像メモリ5に格納する。境界線抽出装置
6は、第1あるいは第2の画像メモリ2または5に格納
されている図形の境界線を抽出するものである。境界線
区間設定装置7は、境界線の上下左右それぞれのある幅
の区間内にそれぞれに対応した記号又は数値をつけ、第
2の画像メモリ5に格納するものである。傷検出装置8
は、第1の画像メモリ2のデータと、第2の画像メモリ
5のデータとを重ね合わせることにより図形傷を検出し
てCRTデイスプレイ装置等の表示装置9に出力する。
次に、第2図、第3図は本発明の実施時における処理対
象の一標準図形線図と境界線図、第4図は標準図形の境
界線の区間設定された図形線図、第5図は境界線のデイ
ジタルデータを表示した一表図、第6図は第5図の境界
線に区間設定した一表図、第7図は一被検査対象図形線
図、第8図は第7図の図形の抽出された境界線図、第9
図は第4図における境界線区間設定された領域のある特
定方向の境界線区間領域の線図、第10図は第8図にお
ける被検査図形の境界線と第9図におけるある特定方向
の境界線区間領域とを重ね合わせた線図、第11図はこ
れらの検査結果を示す線図である。
FIG. 1 is a block diagram of an embodiment, in which a figure input device to be inspected 1,
It is composed of a first image memory 2, a position alignment device 3, a standard figure input device 4, a second image memory 5, a boundary line extraction device 6, a boundary line section setting device 7, a flaw detection device 8, and a display device 9. There is. The figure input device 1 to be inspected is a film reader,
It consists of input devices such as a flyshield spot scanner and a TV (television) camera. Film or drawings are input, digital image data is converted, and the first
The image is stored in the image memory 2 of. At this time, the second image memory 5
The alignment device 3 aligns the standard figure and the input figure using the standard figure data in the input figure. The standard figure input device 4 consists of any input device such as a film reader, a flying spot scanner, a TV camera, etc., as well as a figure input device (digitizer) for standard figure design.
As a result, the standard figure is input, becomes digital image data, and is stored in the second image memory 5. The boundary line extraction device 6 extracts the boundary lines of figures stored in the first or second image memory 2 or 5. The boundary line section setting device 7 attaches corresponding symbols or numerical values to sections of a certain width on the upper, lower, left, and right sides of the boundary line, and stores them in the second image memory 5. Scratch detection device 8
detects graphic flaws by superimposing the data in the first image memory 2 and the data in the second image memory 5 and outputs it to a display device 9 such as a CRT display device.
Next, FIGS. 2 and 3 are a standard figure line diagram and a boundary line diagram of one of the objects to be processed when implementing the present invention, FIG. 4 is a figure line diagram in which the boundaries of the standard figure are set, and FIG. The figure is a table showing the digital data of the boundary line, Figure 6 is a table showing sections set on the boundary line of Figure 5, Figure 7 is a figure line diagram of the object to be inspected, and Figure 8 is the figure 7 Extracted boundary diagram of figures in Figure 9
The figure is a line diagram of the boundary line section area in a certain direction of the area where the boundary line section is set in Fig. 4, and Fig. 10 is a diagram of the boundary line of the figure to be inspected in Fig. 8 and the boundary in a certain direction in Fig. 9. FIG. 11, which is a diagram in which the line section areas are superimposed, is a diagram showing the results of these inspections.

次に、第1図のプロツク図を中心として第2図〜第11
図に従つて図形傷検出装置を説明する。
Next, centering on the block diagram in Figure 1, we will move on to Figures 2 to 11.
The graphic flaw detection device will be explained according to the figures.

まず、第2図における標準図形を標準図形入力装置4か
ら入力し、第2の画像メモリ5に格納した後、境界線抽
出装置6により第3図に示すように境界線を抽出し、境
界線区間設定装置7により第4図のように境界線Pの土
下左右それぞれのある幅の区間内に、それぞれ対応した
数値を入れていき、第2の画像メモリ5に格納する。な
お第4図でCは境界線Pの上領域、Dは下領域、Eは左
領域、Fは右領域である。この数値の入れ方の一例とし
て、上下左右とも幅「1]で領域を設定する場合を説明
する。いま境界線Pの部分を「1」、他の部分を[0」
とすると、現実の画像データの一例は第5図のようで、
座標X,yで表わすと、Xly4,X2y3,X3)Y
32X4y3ツX5yl2X5y2ツX5y3が「1」
である。
First, the standard figure shown in FIG. 2 is inputted from the standard figure input device 4 and stored in the second image memory 5, and then the boundary line is extracted by the boundary line extraction device 6 as shown in FIG. As shown in FIG. 4, the section setting device 7 enters corresponding numerical values into sections of a certain width on the left and right sides of the boundary line P, and stores them in the second image memory 5. In FIG. 4, C is the upper area of the boundary line P, D is the lower area, E is the left area, and F is the right area. As an example of how to enter this value, we will explain a case where an area is set with a width of "1" for both the top, bottom, left, and right.The border P part is now "1", and the other parts are [0].
Then, an example of real image data is as shown in Figure 5.
Expressed in coordinates X, y, Xly4, X2y3, X3)Y
32X4y3X5yl2X5y2X5y3 is "1"
It is.

次に境界線画像空間を第12図であられし横軸にIを縦
軸にJをとれば境界線画像データはF(1,J)(1≦
I≦a;≦J≦b1但しA,bは自然数)であられされ
、I−1..Jjの境界線画像データはF(1,j)と
して、部分Qであられされる。更に(1,j)画像空間
の3×3部分空間を第13図で示し横のI方向にm−1
、Mlm+1をとり、縦のJ方向にn−1、Nln+1
、をとればデータ単位F(K,l)(但しm一1≦k≦
m+1:n−1≦l≦n+1)によりF(RIl±1,
。±1)は図のように配されF(.±1,。±1)によ
つて変更する。すなわち(P,q,r,S)−F(M,
n−1)〜F(m+1,n)) F(m−1,。)とし
、F(.N,。)−0の場合、F(N.,n)は下記の
表のように変更される。ここで、−2,2は左右方向、
4,−4は上下方向、3,−3,5,−5は45,方向
の境界線区間領域を表わしている。
Next, if we take the boundary line image space as shown in Figure 12 and take I on the horizontal axis and J on the vertical axis, the boundary line image data becomes F (1, J) (1≦
I≦a;≦J≦b1 (where A and b are natural numbers), and I-1. .. The boundary line image data of Jj is divided into portions Q as F(1,j). Furthermore, the 3×3 subspace of the (1,j) image space is shown in FIG. 13, and m−1 in the horizontal I direction.
, Mlm+1, and n-1, Nln+1 in the vertical J direction.
, then data unit F(K,l) (where m-1≦k≦
m+1:n-1≦l≦n+1), F(RIl±1,
. ±1) is arranged as shown in the figure and is changed by F(.±1, .±1). That is, (P, q, r, S)-F(M,
n-1) to F(m+1,n)) If F(m-1,.) is F(.N,.)-0, F(N.,n) is changed as shown in the table below. Ru. Here, -2,2 is the left and right direction,
4 and -4 represent boundary line section areas in the vertical direction, and 3, -3, 5, and -5 represent boundary line section areas in the 45 direction.

この変更操作をm=1〜A,n−1〜bにわたつて行う
ことにより、第6図のように境界線区間設定操作を終え
る。但し、第15図の境界線画像データで示すようにF
(1,J)の端は「O」で囲まれている。尚ここで前述
の表の内容の説明を加えると表の一番目は第14図aで
、2番目は同図bで、三番目は同図cで、七番目は同図
dで、九番目は同図eで、十一番目は同図fで夫々あら
れされる。又この場合、X2y2,X3y4,X4y4
,X5y5,Xly5は−2)X2y3FX3y3′X
4y32X5yl2X5y29X5y3は1)Xly3
9X4y2は3、X6yl,X6y2ツX6y3は−4
)X4ylは4であるoこの例においては、上下左右方
向の境界線区間の幅をすべて同じ軸「1」にしたが、勿
論それぞれの方向の区間の幅を自由に設定することがで
きる。
By performing this changing operation over m=1 to A and n-1 to b, the boundary line section setting operation is completed as shown in FIG. However, as shown in the boundary line image data in Figure 15, F
The end of (1, J) is surrounded by "O". In addition, to add an explanation of the contents of the above-mentioned table, the first table in the table is Figure 14 a, the second is Figure 14 b, the third is Figure 14 c, the seventh is Figure 14 D, and the ninth is Figure 14. The first one appears in e of the same figure, and the eleventh one appears in f of the same figure. Also in this case, X2y2, X3y4, X4y4
,X5y5,Xly5 is -2)X2y3FX3y3'X
4y32X5yl2X5y29X5y3 is 1)Xly3
9X4y2 is 3, X6yl,X6y2tsuX6y3 is -4
).

つぎに、第7図に示す被検査図形を被検査図形入力装置
1から入力し、第1の画像メモリ2に格納した後、境界
線抽出装置6により第8図のように境界線を抽出し、も
との第1の画像メモリ2の画像データと、第4図で示す
第2の画像メモリ5の画像データを傷検出装置8におい
て重ね合わせて図形傷を検出するのであるが、被検査図
形が入力される時に、標準図形とのわずかな位置ずれ方
向があらかじめ分かつている場合、例えば境界線Pに対
し上領域Cと左領域Fの上左方向にずれている場合には
、第2の画像メモリ5内の境界線区間設定された第4図
の画像データから、対応する方向の境界線区間のみ(4
5ー方向の領域も含める)による第9図の境界線区間を
取り出し、この図形と第8図の被検査図形の境界線を第
10図のように重ね合わせることにより、第11図の実
線部分A,Bで示すような被検査図形の図形傷を検出し
表示装置9に出力する。被検査図形入力時の標準図形と
のわずかな位置ずれ方向がはつきりと分からない場合に
は、境界線区間設定された領域のすべての領域を持つ図
形と被検査図形の境界線との重ね合わせを行ない図形傷
を検出し、表示することになる。かくて本発明装置では
、標準図形の輪郭線の土下左右のある区間内に被検査図
形の輪郭線が入るか否かにより、少しの位置ずれがあつ
ても正確に図形傷を検出できるものである。
Next, the figure to be inspected shown in FIG. 7 is inputted from the figure to be inspected input device 1 and stored in the first image memory 2, and then the boundary line is extracted by the boundary line extraction device 6 as shown in FIG. , the original image data of the first image memory 2 and the image data of the second image memory 5 shown in FIG. When inputting, if the direction of slight positional deviation from the standard figure is known in advance, for example, if the upper area C and left area F are shifted upward and leftward with respect to the boundary line P, the second From the image data of FIG. 4 in which the boundary line section is set in the image memory 5, only the boundary line section in the corresponding direction (4
By extracting the boundary line section in Fig. 9 (including the area in the 5-direction) and overlapping the boundary line of this figure and the inspected figure in Fig. 8 as shown in Fig. 10, the solid line section in Fig. 11 is obtained. Figure flaws in the figure to be inspected as shown by A and B are detected and output to the display device 9. If the direction of slight misalignment with the standard shape when inputting the figure to be inspected is not clearly known, check the overlap between the boundary line of the figure to be inspected and the figure that has all the areas in the area where the boundary line section has been set. The alignment is performed to detect and display graphic flaws. Thus, with the device of the present invention, it is possible to accurately detect a figure flaw even if there is a slight positional deviation, depending on whether or not the outline of the figure to be inspected falls within a certain section on the left and right sides of the contour of the standard figure. It is.

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

第1図は本発明の一実施例の構成プロツク図、第2図、
第3図は本発明の実施時における処理対象の一標準図形
線図と境界線図、第4図は標準図形の境界線の区間設定
された図形線図、第5図は境界線のデイジタルデータを
表示した一表図、第6図は第5図の境界線に区間設定し
た一表図、第7図は一被検査対象図形線図、第8図は第
7図の図形の抽出された境界線図、第9図は第4図にお
ける境界線区間設定された領域のある特定方向の境界線
区間領域の線図、第10図は第8図における被検査図形
の境界線と第9図における特定方向の境界線区間領域と
を重ね合わせた線図、第11図はこれらの検査結果を示
す線図である。 又第12図第15図は境界線画像データ線図、第13図
第14図a−fは画像空間の異なる3×3部分空間線図
、を示す。1は被検査図形入力装置、2は第1の画像メ
モリ、3は位置合わせ装置 4は標準図形入力装置、5
は第2の画像メモリ、6は境界線抽出装置、7は境界線
区間設定装置、8は傷検出装置、9は表示装置である。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG.
Fig. 3 is a diagram of one standard figure and boundary line to be processed when implementing the present invention, Fig. 4 is a figure line diagram with sections set for the boundary line of the standard figure, and Fig. 5 is digital data of the boundary line. Figure 6 is a table diagram showing the boundaries of Figure 5, Figure 7 is a line diagram of the figure to be inspected, and Figure 8 is a diagram of the figure extracted from Figure 7. Boundary line diagram, Figure 9 is a line diagram of the boundary line section area in a certain direction of the area where the boundary line section is set in Figure 4, and Figure 10 is the boundary line of the figure to be inspected in Figure 8 and Figure 9. FIG. 11 is a diagram showing the results of these inspections. 12 and 15 show boundary line image data diagrams, and FIGS. 13 and 14 a to 14 show 3×3 partial space diagrams of different image spaces. 1 is a graphic input device to be inspected, 2 is a first image memory, 3 is a positioning device, 4 is a standard graphic input device, 5
1 is a second image memory, 6 is a boundary line extraction device, 7 is a boundary line section setting device, 8 is a flaw detection device, and 9 is a display device.

Claims (1)

【特許請求の範囲】 1 フィルムあるいは図面を入力してディジタル画像デ
ータに変換する被検査図形入力装置、前記入力装置より
の画像データを格納する第1のメモリ、標準図形入力装
置、標準図形入力装置よりの標準図形データをディジタ
ル画像データとして格納する第2の画像メモリ、前記第
2の画像メモリ内の標準図形データを用いて入力図形と
の位置合わせを行う位置合わせ装置、前記第1あるいは
第2の画像メモリに格納されている図形の境界線を抽出
する境界線抽出装置、前記境界線の上下左右夫々のある
幅の区間内に夫々に対応した記号又は数値を付け前記第
2の画像メモリに格納する境界線区間設定装置、前記第
1の画像メモリのデータと第2の画像メモリのデータを
重ね合わせて図形傷を検出する図形傷検出装置、前記図
形傷検出部の表示を行う表示装置、を備えることを特徴
とする輪郭線情報を用いた図形傷検出装置。 2 被検査図形が入力される時に標準図形とのわずかな
位置ずれの方向が分かつている場合には第2の画像メモ
リ内の境界線区間設定された標準の画像データから対応
する方向の境界線区間のみによる境界線区間を取り出し
、この図形と被検査図形の境界線を重ね合わせることに
より被検査図形の図形傷を検出することを特徴とする特
許請求の範囲第1項記載の輪郭線情報を用いた図形傷検
出装置。
[Scope of Claims] 1. A graphic input device to be inspected that inputs film or drawings and converts them into digital image data, a first memory that stores image data from the input device, a standard graphic input device, and a standard graphic input device. a second image memory that stores standard figure data as digital image data; a positioning device that performs alignment with an input figure using the standard figure data in the second image memory; a boundary line extracting device for extracting a boundary line of a figure stored in an image memory; a boundary line extraction device for extracting a boundary line of a figure stored in an image memory; a boundary line extraction device for extracting a boundary line of a figure stored in the second image memory; a boundary line section setting device for storing, a graphic flaw detection device for detecting graphic flaws by superimposing data in the first image memory and data in the second image memory, a display device for displaying the graphic flaw detection section; A graphic flaw detection device using contour information, comprising: 2 If the direction of slight positional deviation from the standard figure is known when the figure to be inspected is input, the boundary line in the corresponding direction is determined from the standard image data set in the boundary line section in the second image memory. The contour line information according to claim 1 is characterized in that a graphic flaw in the figure to be inspected is detected by extracting a boundary line section consisting only of sections and overlapping the boundary line of this figure and the figure to be inspected. The graphical flaw detection device used.
JP51043324A 1976-04-15 1976-04-15 Graphical flaw detection device using contour line information Expired JPS592069B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP51043324A JPS592069B2 (en) 1976-04-15 1976-04-15 Graphical flaw detection device using contour line information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP51043324A JPS592069B2 (en) 1976-04-15 1976-04-15 Graphical flaw detection device using contour line information

Publications (2)

Publication Number Publication Date
JPS52126136A JPS52126136A (en) 1977-10-22
JPS592069B2 true JPS592069B2 (en) 1984-01-17

Family

ID=12660623

Family Applications (1)

Application Number Title Priority Date Filing Date
JP51043324A Expired JPS592069B2 (en) 1976-04-15 1976-04-15 Graphical flaw detection device using contour line information

Country Status (1)

Country Link
JP (1) JPS592069B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5528112A (en) * 1978-08-16 1980-02-28 Oki Electric Ind Co Ltd Gauge for ptint quality measurement
JPS57196377A (en) * 1981-05-27 1982-12-02 Hitachi Ltd Pattern recognizing method
JPS60659U (en) * 1983-06-15 1985-01-07 日立電子株式会社 pattern recognition device
JPS6178090A (en) * 1984-09-26 1986-04-21 三菱電機株式会社 Compound type electromagnetic cooking apparatus
JPS61276540A (en) * 1985-05-31 1986-12-06 株式会社 ワコ−ル Body form comparing apparatus
JP2628042B2 (en) * 1987-05-11 1997-07-09 シグマツクス株式会社 Object recognition device
JPH01229386A (en) * 1988-03-09 1989-09-13 Brother Ind Ltd Sample pattern generating device
JPH0469777A (en) * 1990-07-10 1992-03-04 Dainippon Screen Mfg Co Ltd Pattern inspecting device for printed board
CN110136116B (en) * 2019-05-15 2024-01-23 广东工业大学 Injection pump defect detection method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5242025A (en) * 1975-09-29 1977-04-01 Fujitsu Ltd Mask matching letter recognition system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5242025A (en) * 1975-09-29 1977-04-01 Fujitsu Ltd Mask matching letter recognition system

Also Published As

Publication number Publication date
JPS52126136A (en) 1977-10-22

Similar Documents

Publication Publication Date Title
JPS59790A (en) Pattern recognition device
JPS592069B2 (en) Graphical flaw detection device using contour line information
JPH0792650A (en) Method and device for searching contour of clipped picture
JPS63109591A (en) Optical character reader
JP2018156308A (en) Information processing device, information processing system, and program
JPH0320882A (en) Method for displaying, extracting, and segmenting interested area
JP4064068B2 (en) Image processing apparatus, image processing method, and recording medium
JPH04141782A (en) Device and method for preparing road center line
CN114363521B (en) Image processing method and device and electronic equipment
JP2800192B2 (en) High-speed character / graphic separation device
JPS61221968A (en) Drawing reader
JPH1027253A (en) Image processing method
JPH0760459B2 (en) Corner detector
JPH0434654A (en) Drawing reader
JPH08115421A (en) Picture processor and picture processing method
JP2646577B2 (en) Image information creation device
JPS5846461A (en) Automatic reader for pattern drawing of printed board
JP2005173940A (en) Image processing method, image processor and computer program
JP2002262093A (en) Method, device and program for processing picture and recording medium
JPH04156694A (en) Character recognition system
JPH02263272A (en) Document picture processor
JPH05143733A (en) Contour extracting device
JPS5896365A (en) Linear graph detecting method
JPH01303132A (en) Picture processor
JPH07107266A (en) Method and device for pattern clipping