JPH04102051A - Apparatus for inspecting appearance - Google Patents

Apparatus for inspecting appearance

Info

Publication number
JPH04102051A
JPH04102051A JP2218025A JP21802590A JPH04102051A JP H04102051 A JPH04102051 A JP H04102051A JP 2218025 A JP2218025 A JP 2218025A JP 21802590 A JP21802590 A JP 21802590A JP H04102051 A JPH04102051 A JP H04102051A
Authority
JP
Japan
Prior art keywords
area
inspection
image
characteristic
end position
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
JP2218025A
Other languages
Japanese (ja)
Other versions
JP2762724B2 (en
Inventor
Tatsuo Yamamura
山村 辰男
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2218025A priority Critical patent/JP2762724B2/en
Publication of JPH04102051A publication Critical patent/JPH04102051A/en
Application granted granted Critical
Publication of JP2762724B2 publication Critical patent/JP2762724B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

PURPOSE:To perform stable inspection even if there is a fluctuation in position of an object and a fluctuation in position of a characteristic image within the object by inspecting by means of creating inspection areas corresponding to an outer position and an inner characteristic position of the object. CONSTITUTION:A TV camera 1 converts an image of an object to an electric signal, while an A/D-converter 2 converts its concentration signal into a binary digital signal. An X, Y detecting unit 3 detects the upper end position U1 and the left end position L1 of the object from the binary image, and a microprocessor 8 sets an inspection area of a shape in an area creating unit 5. The creating unit 5 creates an inspection area A1 for the binary image, while an X, Y detecting unit 4 detects the upper end position U2 and the left end position L2 of a characteristic image PT of the object and the processor 8 sets an inspection area of the shape in an area creating unit 6. The first area A1 and a second area A2 are created from the creating units 5, 6, while a characteristics extracting unit 9 extracts an appropriate characteristic amount, which is to be compared with a predetermined reference value so that inspection is made as to whether the object is good or defective. Thus stable inspection is possible.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、テレビカメラを含む撮像装置を用いて対象
物像を電気信号に変換し、これを画像処理して対象物の
外形、内部特徴形状に応じた検査を可能にするための外
観検査装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] This invention converts an object image into an electrical signal using an imaging device including a television camera, and processes this to determine the external shape and internal characteristics of the object. The present invention relates to an appearance inspection device that enables inspection according to shape.

〔従来の技術〕[Conventional technology]

従来、この種の外観検査装置として、対象物の外形位置
を検出し、その位置に対応した検査領域(エリア)を発
生することにより、対象物の位置変動によらず検査を可
能にするものが知られている。
Conventionally, this type of visual inspection equipment detects the external position of the target object and generates an inspection area corresponding to that position, thereby enabling inspection regardless of changes in the position of the target object. Are known.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、このような装置では対象物の位置変動に
は対処できるが、対象物内の特徴画像に位置変動がある
場合には対処できない、という問題がある。
However, although such a device can deal with changes in the position of the object, there is a problem in that it cannot deal with changes in the position of characteristic images within the object.

したがって、この発明の課題は対象物の位置変動だけで
なく、対象物内の特徴画像に位置変動がある場合にも対
処し得る外観検査装置を提供することにある。
Therefore, an object of the present invention is to provide an appearance inspection apparatus that can handle not only the positional change of an object but also the case where there is a positional change of a characteristic image within the object.

〔課題を解決するための手段〕[Means to solve the problem]

対象物を撮像して得られる画像を少なくとも2値化し、
2値化された画像にもとづき所定の演算処理をして対象
物を検査する外観検査装置において、対象物の上端、左
端をそれぞれ検出する第1の検出手段と、この検出され
た位置にもとづき対象物の外形形状に従う予め設定され
た第1の検査領域を発生する第1の領域発生手段と、発
生されたこの第1検査領域内で対象物の特徴的な像の上
端、左端を検出する第2の検出手段と、この検出された
位置にもとづき対象物の特徴画像に従う予め設定された
第2の検査領域を発生する第2の領域発生手段と、を設
け、前記第2の検査領域および前記第1の検査領域のう
ちこの第2の検査領域を除いた第3領域の画像をそれぞ
れ処理して対象物の検査を可能にする。
At least binarize the image obtained by imaging the object,
In a visual inspection device that performs predetermined arithmetic processing based on a binarized image to inspect an object, it includes a first detection means that detects the upper edge and left edge of the object, and a first detection means that detects the upper edge and the left edge of the object based on the detected positions. a first area generating means for generating a first inspection area set in advance according to the external shape of the object; and a first area generating means for detecting the upper and left edges of a characteristic image of the object within the generated first inspection area. 2 detection means, and a second area generation means for generating a preset second inspection area according to a characteristic image of the object based on the detected position, and Images of a third area of the first inspection area excluding the second inspection area are processed to enable inspection of the object.

〔作用〕 対象物の外形位置を検出するだけでなく、対象物内にお
ける特徴画像の位置も検出し、この外形位置、内部特徴
画像位置に対応する検査エリアをそれぞれ発生して検査
することにより、対象物の位置変動だけでなく、対象物
内の特徴画像に位置変動がある場合にも安定な検査がで
きるようにする。
[Operation] In addition to detecting the external position of the object, it also detects the position of the characteristic image within the object, and generates and inspects inspection areas corresponding to the external position and internal characteristic image position, respectively. To perform stable inspection not only when there is a positional change of an object but also when there is a positional change in a characteristic image within the object.

〔実施例〕〔Example〕

第1図はこの発明の実施例を示すブロック図である。同
図において、lは撮像装置としてのテレビカメラ、2は
アナログ/ディジタル(A/D)変換器、3,4はx、
 y座標位置検出のためのX。
FIG. 1 is a block diagram showing an embodiment of the invention. In the figure, l is a television camera as an imaging device, 2 is an analog/digital (A/D) converter, 3 and 4 are x,
X for y-coordinate position detection.

Y検出部、5.6は予め定められた検査領域を発生する
ためのエリア発生部、7は画像メモリ、8は画像処理装
置としてのマイクロプロセッサ、9は特徴抽出部、10
はバスである。
Y detection unit, 5.6 is an area generation unit for generating a predetermined inspection area, 7 is an image memory, 8 is a microprocessor as an image processing device, 9 is a feature extraction unit, 10
is a bus.

第2図はこの発明を具体的に説明するための説明図で、
以下筒1.第2図を参照してその動作を説明する。
FIG. 2 is an explanatory diagram for specifically explaining this invention.
Below cylinder 1. Its operation will be explained with reference to FIG.

すなわち、テレビカメラ1は対象物像を電気信号に変換
し、A/D変換器2はその濃淡信号を2値のディジタル
信号(2値化信号)に変換する。
That is, the television camera 1 converts an object image into an electrical signal, and the A/D converter 2 converts the gray level signal into a binary digital signal (binarized signal).

2値化画像の例を、第2図に符号POにて示す。An example of a binarized image is shown in FIG. 2 with the symbol PO.

X、Y検出部3は変換された2値化画像から、その上方
(Y軸方向)より見て最初に画像が現れる位置として対
象物の上端位置(第2図の符号Ul)、および最初に画
像が現れる位置として対象物の左端位置(第2図の符号
Ll)を検出する。検出された位置はマイクロプロセッ
サ8にて読み取り、これに応じて予め定められた形状の
検査エリアをエリア発生部5に設定する。
The X, Y detection unit 3 detects from the converted binarized image the upper end position of the object (symbol Ul in FIG. 2) as the position where the image first appears when viewed from above (in the Y-axis direction), and The left end position of the object (labeled Ll in FIG. 2) is detected as the position where the image appears. The detected position is read by the microprocessor 8, and an inspection area of a predetermined shape is set in the area generation section 5 accordingly.

一方、A/D変換された2値化画像は位置検出と同時に
、画像メモリ7に格納される。エリア発生部5はこの記
憶された2値化画像に対し、第2図に点線A1で示す如
き予め定められた検査エリアを発生しく検出された位置
U1.Llに対し若干の余裕を持つようその内側に発生
される)、X。
On the other hand, the A/D converted binary image is stored in the image memory 7 at the same time as the position is detected. The area generation unit 5 generates a predetermined inspection area as shown by the dotted line A1 in FIG. 2 from the stored binarized image at the detected position U1. (generated inside it to have some margin for Ll), X.

Y検出部4はこのエリア内で対象物の特徴的な画像PT
の上端位置U2および左端位置L2をX。
The Y detection unit 4 detects a characteristic image PT of the object within this area.
The upper end position U2 and the left end position L2 are X.

Y検出部3と同様に検出する。検出された位置はマイク
ロプロセッサ8にて読み取り、これに応じて予め定めら
れた形状の検査エリアをエリア発生部6に設定する。
Detection is performed in the same manner as the Y detection section 3. The detected position is read by the microprocessor 8, and an inspection area of a predetermined shape is set in the area generation section 6 accordingly.

その後、画像メモリ7から2値化画像を取り出すととも
に、エリア発生部5,6から予め定められた第1のエリ
アAt、第2のエリアA2をそれぞれ発生しく第2のエ
リアは検出された位置U2゜L2に対し若干の余裕を持
つようその外側に発生される)、特徴抽出部9により第
2のエリアおよび第1のエリアからこの第2のエリアを
除いた第3のエリアからそれぞれ面積を含む適切な特徴
量を抽出し、これをそれぞれ所定の基準値と比較するな
どしてその良否を検査する。
Thereafter, the binarized image is taken out from the image memory 7, and the area generation units 5 and 6 generate predetermined first areas At and second areas A2, respectively.The second area is located at the detected position U2.゜Generated outside of L2 to have some margin), the feature extraction unit 9 includes the area from the second area and the third area obtained by removing this second area from the first area. Appropriate feature quantities are extracted, and their quality is inspected by comparing them with predetermined reference values.

このように、対象物の特徴的な画像の位置も検出し、こ
れに合わせて一定の検査エリアを発生するようにしたの
で、対象物内の特徴画像に位置変動がある場合でも、安
定な検査を行なうことができる。
In this way, the position of the characteristic image of the object is also detected and a fixed inspection area is generated accordingly, allowing for stable inspection even when the position of the characteristic image within the object varies. can be done.

〔発明の効果〕〔Effect of the invention〕

この発明によれば、対象物の外形位置を検出するだけで
なく、対象物内における特徴画像の位置も検出し、この
外形位置、内部特徴画像位置に対応する検査エリアをそ
れぞれ発生して検査するようにしたので、対象物の位置
変動だけでなく、対象物内の特徴画像に位置変動がある
場合でも安定な検査が可能となる。
According to this invention, not only the external position of the object is detected, but also the position of the characteristic image within the object is detected, and inspection areas corresponding to the external position and internal characteristic image position are respectively generated and inspected. This makes it possible to perform stable inspection not only when there is a change in the position of the object, but also when there is a change in the position of the characteristic image within the object.

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

第1図はこの発明の実施例を示すブロック図、第2図は
この発明を具体的に説明するための説明図である。 1・・・テレビカメラ、2・・・A/D変換器、3.4
・・・X、 Y検出部、5.6・・・エリア発生部、7
・・・画像メモリ、8・・・マイクロプロセッサ、9・
・・特徴抽出部、10・・・バス、PO・・・対象物画
像、PT・・・対象物内特徴画像、Ul・・・対象物の
上端位置、Ll・・・対象物の左端位置、U2・・・対
象物内特徴画像の上端位置、L2・・・対象物内特徴画
像の左端位置、AI・・・第1検査エリア、A2・・・
第2検査エリア。
FIG. 1 is a block diagram showing an embodiment of the invention, and FIG. 2 is an explanatory diagram for specifically explaining the invention. 1...TV camera, 2...A/D converter, 3.4
...X, Y detection section, 5.6... Area generation section, 7
...Image memory, 8...Microprocessor, 9.
...Feature extraction unit, 10...Bath, PO...Object image, PT...Intra-object feature image, Ul...Top position of object, Ll...Left end position of object, U2... upper end position of the feature image within the object, L2... left end position of the feature image within the object, AI... first inspection area, A2...
Second inspection area.

Claims (1)

【特許請求の範囲】 1)対象物を撮像して得られる画像を少なくとも2値化
し、2値化された画像にもとづき所定の演算処理をして
対象物を検査する外観検査装置において、 対象物の上端、左端をそれぞれ検出する第1の検出手段
と、 この検出された位置にもとづき対象物の外形形状に従う
予め設定された第1の検査領域を発生する第1の領域発
生手段と、 発生されたこの第1検査領域内で対象物の特徴的な像の
上端、左端を検出する第2の検出手段と、この検出され
た位置にもとづき対象物の特徴画像に従う予め設定され
た第2の検査領域を発生する第2の領域発生手段と、 を設け、前記第2の検査領域および前記第1の検査領域
のうちこの第2の検査領域を除いた第3領域の画像をそ
れぞれ処理して対象物の検査を可能にしてなる外観検査
装置。
[Scope of Claims] 1) An appearance inspection device that at least binarizes an image obtained by capturing an image of an object, and performs predetermined arithmetic processing based on the binarized image to inspect the object, comprising: a first detection means for detecting the upper end and the left end of the object; a first area generation means for generating a preset first inspection area according to the external shape of the object based on the detected position; a second detection means for detecting the upper end and left end of the characteristic image of the object within the first inspection area of the octopus; and a second inspection set in advance according to the characteristic image of the object based on the detected position. a second area generating means for generating an area, and processes an image of a third area excluding the second inspection area among the second inspection area and the first inspection area to generate a target area. Appearance inspection equipment that enables inspection of objects.
JP2218025A 1990-08-21 1990-08-21 Appearance inspection device Expired - Lifetime JP2762724B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2218025A JP2762724B2 (en) 1990-08-21 1990-08-21 Appearance inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2218025A JP2762724B2 (en) 1990-08-21 1990-08-21 Appearance inspection device

Publications (2)

Publication Number Publication Date
JPH04102051A true JPH04102051A (en) 1992-04-03
JP2762724B2 JP2762724B2 (en) 1998-06-04

Family

ID=16713458

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2218025A Expired - Lifetime JP2762724B2 (en) 1990-08-21 1990-08-21 Appearance inspection device

Country Status (1)

Country Link
JP (1) JP2762724B2 (en)

Also Published As

Publication number Publication date
JP2762724B2 (en) 1998-06-04

Similar Documents

Publication Publication Date Title
KR950006428A (en) Pattern defect inspection method and apparatus
JPH04102051A (en) Apparatus for inspecting appearance
JPH0735699A (en) Method and apparatus for detecting surface defect
JP2596158B2 (en) Component recognition device
JPH1114317A (en) Appearance inspection method and device
JPS61194305A (en) Shape inspecting apparatus
JPH11271232A (en) Method and device for detecting defect in wiring on printed board
JPH08304302A (en) Method for detecting surface flaws of object to be inspected
JP2765339B2 (en) Through hole inspection equipment
JPH0760459B2 (en) Corner detector
JPH0512441A (en) Edge image generator
JPH04142676A (en) Binary image conversion method
JP2986902B2 (en) Image processing device
JPS60200375A (en) Template matching system
JPH06161378A (en) Inspecting device for liquid crystal display device
JPH07107711A (en) Detection of displacement of core coil
JPH11328409A (en) Device for inspecting sheet material defect
JPH0718810B2 (en) Pattern inspection method
JPH05126756A (en) Printed-board-pattern inspecting apparatus
JPS63277959A (en) Inspecting method for threaded neck of container
JPH10143673A (en) Picture processor
JPH03103754A (en) Image flaw inspecting device
JPH01161137A (en) Recognizing device
JPH0418769B2 (en)
JPS61194306A (en) Shape inspecting apparatus