JP3099273B2 - Appearance inspection device - Google Patents

Appearance inspection device

Info

Publication number
JP3099273B2
JP3099273B2 JP02078962A JP7896290A JP3099273B2 JP 3099273 B2 JP3099273 B2 JP 3099273B2 JP 02078962 A JP02078962 A JP 02078962A JP 7896290 A JP7896290 A JP 7896290A JP 3099273 B2 JP3099273 B2 JP 3099273B2
Authority
JP
Japan
Prior art keywords
data
area
discrimination
window
discrimination data
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 - Fee Related
Application number
JP02078962A
Other languages
Japanese (ja)
Other versions
JPH03280170A (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.)
Anritsu Corp
Original Assignee
Anritsu 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 Anritsu Corp filed Critical Anritsu Corp
Priority to JP02078962A priority Critical patent/JP3099273B2/en
Publication of JPH03280170A publication Critical patent/JPH03280170A/en
Application granted granted Critical
Publication of JP3099273B2 publication Critical patent/JP3099273B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、製品ラインによって搬送されてくる製品
(被検査物品)の外観を撮影した画像信号の解析データ
に基ずいて、検査結果としての判別データを得ることが
できる外観検査装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to an inspection result based on analysis data of an image signal photographing the appearance of a product (inspection object) conveyed by a product line. The present invention relates to a visual inspection device capable of obtaining discrimination data.

[従来の技術] 例えば工場の製造ラインにおいては、搬入コンベアラ
イン(以下、ラインという)によって順次搬送されてく
る製品に対して、種別によって判別したり、又は不良品
を排除するために、例えば各製品を撮影した画像によっ
て各製品を検査することが行なわれている。
2. Description of the Related Art For example, in a manufacturing line of a factory, in order to discriminate a product sequentially transferred by a carry-in conveyor line (hereinafter referred to as a line) by a type or to eliminate defective products, for example, Inspection of each product is performed by using an image of the product.

例えば第4図に示すように、ライン1で搬送されてく
る製品Pをフォトセンサ等で構成された検出器2で検出
すると、その検出信号が外観検査装置3に供給され、外
観検査装置3は検出器2の位置から距離d1だけライン1
の下流側に配置された例えばCCDカメラによる画像セン
サ4及びストロボ照明装置5に制御信号を送り、その製
品を撮影させる。なお、この場合、制御信号の供給タイ
ミングは、距離d1とライン1の速度vに基ずいて設定さ
れ、即ち検出器2で検出された製品Pが画像センサ4で
適正に撮影できるように、検出器2の検出信号が得られ
てから(d1/v)時間の時間差をもって画像センサ4及び
ストロボ照明5が動作するように設定されている。
For example, as shown in FIG. 4, when a product P conveyed on a line 1 is detected by a detector 2 constituted by a photo sensor or the like, a detection signal is supplied to a visual inspection device 3, and the visual inspection device 3 distance d 1 from the position detector 2 line 1
A control signal is sent to an image sensor 4 and a strobe lighting device 5 by, for example, a CCD camera arranged on the downstream side of the camera, and the product is photographed. In this case, the supply timing of the control signal is set based on the distance d 1 and the speed v of the line 1, that is, so that the product P detected by the detector 2 can be properly photographed by the image sensor 4. The image sensor 4 and the strobe light 5 are set to operate with a time difference of (d 1 / v) time after the detection signal of the detector 2 is obtained.

上記撮影動作により、画像センサ4から得られた画像
データは外観検査装置3において解析される。例えば画
像データを2値化することによりその製品の全体、或は
一部分の面積が算出されたり、また重心の算出などが実
行される。
The image data obtained from the image sensor 4 is analyzed by the visual inspection device 3 by the above-described photographing operation. For example, by binarizing image data, the area of the whole or a part of the product is calculated, and the center of gravity is calculated.

そして、このように解析によって得られたデータは、
例えばあらかじめ設定されている基準値と比較されるな
どによりその被検査物品である製品の良否や種別を判定
することができる。
And the data obtained by this analysis is
For example, the quality or type of the product to be inspected can be determined by comparing it with a preset reference value.

このような判定システム#によって、製品の良否や
種別を判別することができるため、この判定システム#
によって得られたデータを制御信号としてライン1の
下流に設けられた選別装置6に供給すれば、例えば図示
するように不良製品P′をライン1から排除することが
できる。ただし、選別装置6に対する制御信号は、良否
の判別データの対象製品と、選別装置6で選別される製
品が一致するように、設置位置の離間距離d2及びライン
速度vによる時間差を含んで供給される。
Since the quality or the type of the product can be determined by such a determination system # 0 , the determination system # 0
By supplying the data obtained by 0 to the sorting device 6 provided downstream of the line 1 as a control signal, for example, a defective product P 'can be eliminated from the line 1 as shown in the figure. However, the control signals for the sorting device 6, the products of the discrimination data quality, so the product is matched to be sorted by the sorting apparatus 6, include a time difference due to the distance d 2 and the line speed v of the installation position provided Is done.

[発明が解決しようとする問題点] ところで、1つの判定システム#によって、その撮
影画像から得られる判別データが1つだけであると、或
る商品に対して各種判別を行ないたい場合には判定シス
テム#を複数単位設けなければならず、検査システム
全体が大型化して好ましくないという問題が生じる。
[Problems to be Solved by the Invention] By the way, if one determination system # 0 determines that only one piece of determination data is obtained from a captured image, it is necessary to perform various types of determination on a certain product. The determination system # 0 must be provided in a plurality of units, and there is a problem that the whole inspection system is undesirably increased in size.

さらに、1つの解析結果を得、その解析結果と基準値
を比較することだけで所定の判別を行なうようにしてし
まうため、場合によっては誤判断を生じる可能性が高く
なるという問題がある。
Further, since a predetermined determination is made only by obtaining one analysis result and comparing the analysis result with a reference value, there is a problem that the possibility of erroneous determination increases in some cases.

一例として第5図に示すような2種類の王冠P1,P2
判別したい場合をあげる。王冠P1は赤の他(斜線部)に
白抜きで『AB』の文字Rが描かれ、王冠P2は赤の地(斜
線部)に黄色のマークMが描かれているものとすると、
それぞれライン1上で搬送されてくる王冠に対し一点鎖
線で示すような画枠で撮影を行ない、その画像データか
ら赤色の部分を対象にして2値化処理を行なって赤面積
を算出すれば、王冠P1,P2の差を生じさせることができ
るため、所定の基準値を設け、例えばその面積が基準値
以下であればP1、基準値以上であればP2と判別できる。
ところが、この場合赤い部分の面積が製造誤差により各
王冠で多少増減したり、撮影時の照明光等の条件によ
り、画像データ上で赤と認定される部分が変動したりす
ることがあるため、基準値としてはその変動分を考慮に
入れて有る程度余裕を持たせたいが、基準値をラフにす
ることは、その判定結果の信用性も同時に低下すること
になるため好ましくない。このような場合は、結果的
に、製造誤差によるならばらつき等が吸収できず、誤判
別が発生することになってしまう。
As an example, a case where it is desired to discriminate between two types of crowns P 1 and P 2 as shown in FIG. Assuming that the crown P 1 has a letter R of “AB” drawn in white in addition to red (shaded area) and the crown P 2 has a yellow mark M drawn in red ground (shaded area),
If the crown conveyed on line 1 is photographed in an image frame as indicated by a dashed line, and a red area is calculated from the image data by performing binarization processing on the red portion, Since a difference between the crowns P 1 and P 2 can be generated, a predetermined reference value is provided. For example, if the area is equal to or less than the reference value, it can be determined as P 1 , and if the area is equal to or more than the reference value, it can be determined as P 2 .
However, in this case, the area of the red portion may slightly increase or decrease in each crown due to a manufacturing error, or the portion recognized as red on the image data may fluctuate depending on conditions such as illumination light at the time of shooting, Although it is desired to have a margin as a reference value in consideration of the fluctuation, a rough reference value is not preferable because the reliability of the determination result is also lowered at the same time. In such a case, as a result, variations due to manufacturing errors cannot be absorbed, and erroneous determination occurs.

[問題点を解決するための手段] 本発明はこのような問題点にかんがみてなされたもの
で、外観検査装置において、撮影した1画面のカラー画
像信号内で、カラー情報が異なることによって独立した
処理単位として認識される複数の異なる文字、または図
形の領域単位で各種解析動作が行なわれるように制御す
る領域制御手段と、この領域制御手段の制御によって得
られた領域毎の解析データに対して、あらかじめ設定さ
れた基準条件に適合しているか否かを判別することによ
り判別データを生成する複数の単位判別データ生成手段
と、各単位判別データ生成手段から供給される複数の判
別データに基ずいて、総合判定を行なう総合判別データ
生成手段とを備えるように構成するものである。
[Means for Solving the Problems] The present invention has been made in view of such problems, and in a visual inspection device, the color information is independent due to the difference in color information within a color image signal of one screen shot. Area control means for controlling various analysis operations in units of a plurality of different characters or figures recognized as processing units, and analysis data for each area obtained by the control of the area control means. A plurality of unit discrimination data generating means for generating discrimination data by discriminating whether or not a predetermined reference condition is satisfied; and a plurality of discrimination data supplied from each unit discrimination data generating means. And a comprehensive discrimination data generating means for performing a comprehensive decision.

[作用] 各種域単位の解析データに基ずいて、当該被検査物体
に係る総合的な判別データを生成することができるよう
に構成することにより、1つの判定システムで一度に複
数の要素の判定が可能となるとともに、各判定を総合的
に判断することにより判別結果の信用性を著しく高める
ことになる。
[Operation] Based on the analysis data in various area units, it is possible to generate comprehensive discrimination data relating to the object to be inspected, so that one judgment system can judge a plurality of elements at once. Is possible, and the reliability of the determination result is significantly increased by comprehensively determining each determination.

[実施例] まず本発明の外観検査装置の一実施例について、その
全体の構成を説明する。
Embodiment First, an overall configuration of an embodiment of the appearance inspection apparatus of the present invention will be described.

第1図はその回路ブロックを示したものであり、一点
鎖線で囲った10が外観検査装置を示すものである。な
お、この外観検査装置10と、画像センサ(CCDカメラ)
4、照明装置5、及び検出器2によって、前記した第4
図の如き判定システム#が構成されている。また、照
明装置5は本実施例ではストロボ照明として、画像セン
サ4のシャッタタイミングと同期して照明動作を行なう
ものとするが、例えば蛍光灯のように連続光を照射する
ものであってもよい。
FIG. 1 shows the circuit block, and reference numeral 10 surrounded by a dashed line indicates an appearance inspection apparatus. The appearance inspection device 10 and an image sensor (CCD camera)
4, the illumination device 5, and the detector 2
A judgment system # 0 as shown in the figure is configured. In the present embodiment, the illumination device 5 performs the illumination operation as strobe illumination in synchronization with the shutter timing of the image sensor 4, but may irradiate continuous light such as a fluorescent lamp. .

このような判定システム#における本実施例の外観
検査装置10は、前記第4図で説明した製品検査動作によ
って、ライン上で搬送されてきた製品を画像センサ4で
撮影して得たR,G,Bの画像信号が製品判定用のデータと
して入力される。
The visual inspection device 10 of the present embodiment in such a determination system # 0 obtains R, R, obtained by photographing the product conveyed on the line with the image sensor 4 by the product inspection operation described in FIG. The G and B image signals are input as data for product determination.

11R,11G,11BはA/D変換器であり、供給されたR,G,B画
像信号をそれぞれデジタル信号に変換する。12R,12G,12
Bはデジタル信号に変換されたR,G,B信号をそれぞれ記憶
するフレームメモリである。
A / D converters 11R, 11G, and 11B convert the supplied R, G, and B image signals into digital signals, respectively. 12R, 12G, 12
B is a frame memory that stores R, G, and B signals converted into digital signals.

フレームメモリ12R,12G,12Bに記憶された画像データ
は画像バス13aを介して点線で囲った画像処理部14に供
給され、各種演算処理が行なわれる。
The image data stored in the frame memories 12R, 12G, and 12B is supplied to an image processing unit 14 surrounded by a dotted line via an image bus 13a, and various arithmetic processes are performed.

この画像処理部14には例えばハードロジック回路によ
って、2値化処理部14a、重心・傾き演算部14b、周囲長
演算部14c、濃度分散演算部14dなどが設けられており、
製品を撮影した画像データを解析し、その製品に関する
所定の内容のデータを算出することができるようになさ
れている。
The image processing unit 14 includes, for example, a binarization processing unit 14a, a center of gravity / inclination calculation unit 14b, a perimeter calculation unit 14c, a density dispersion calculation unit 14d, and the like by a hard logic circuit.
It is designed to analyze image data obtained by photographing a product and calculate data having predetermined contents related to the product.

2値化処理部14aでは画像データから特定の色を抽出
することにより、例えばその製品(或はその製品の特定
部分)の面積を算出することができる。また、この2値
化データに基ずいて重心・傾き演算部14b、周囲長演算
部14cにおいて各演算が実行され、その製品の重心、傾
き、周囲長等が算出され、また、その周囲長の2乗から
面積を除することにより、その製品の外形の複雑度等を
得ることができる。
By extracting a specific color from the image data, the binarization processing unit 14a can calculate, for example, the area of the product (or a specific part of the product). Further, based on the binarized data, each calculation is executed in the center of gravity / inclination calculation unit 14b and the perimeter calculation unit 14c, and the center of gravity, the inclination, the perimeter, and the like of the product are calculated. By dividing the area from the square, the complexity of the outer shape of the product can be obtained.

また、濃度分散演算部14dでは、フレームメモリ12に
記憶されたR,G,Bの輝度データから、その濃度分布を算
出できるように為されている。
The density variance calculation unit 14d is configured to calculate the density distribution from the R, G, and B luminance data stored in the frame memory 12.

これらの解析動作の他にも、画像処理部14内において
各種画像処理演算を行なうこともでき、それぞれ、実行
される検査判別に必要なデータが画像データに基ずいて
算出される。
In addition to these analysis operations, various image processing operations can be performed in the image processing unit 14, and data necessary for the inspection determination to be performed is calculated based on the image data.

15はシステムコントローラ(CPU)であり、画像処理
部14において得られた各種算出結果は制御バス13bを介
してCPU15に供給され、CPU15においては、この算出結果
に対して、予め設定された基準値と比較することによっ
て、当該製品がその設定条件に合致するか否かの判断等
を行なう。
Reference numeral 15 denotes a system controller (CPU), and various calculation results obtained in the image processing unit 14 are supplied to the CPU 15 via the control bus 13b, and the CPU 15 sets a predetermined reference value for the calculation results. Then, it is determined whether or not the product satisfies the set conditions.

例えば、ライン上で順次搬送されてくる製品の中か
ら、所定の大きさの製品のみを判別したい場合は、その
商品の全体を撮影した画像信号をフレームメモリ12に取
り込み、このデータに対して2値化処理部14aで面積を
算出させる。そして、その算出データを制御バス13bを
介して取り込み、その値を、予め設定されている基準値
K(例えば上下基準値(KH,KL))と比較し、その範囲
内であれば、その製品は該当製品である判別するもので
ある。この判別結果は判別データとして、前記第4図に
示した選別装置6等に出力することができるように為さ
れている。
For example, when it is desired to discriminate only a product of a predetermined size from products sequentially conveyed on a line, an image signal obtained by photographing the entire product is taken into the frame memory 12, and the data is stored in the frame memory 12. The area is calculated by the valuation processing unit 14a. Then, the calculated data is fetched via the control bus 13b, and the value is compared with a preset reference value K (for example, upper and lower reference values (K H , K L )). The product is to be identified as a corresponding product. The discrimination result is output as discrimination data to the sorting device 6 shown in FIG. 4 or the like.

またCPU15では、さらにその制御機能によって、検出
器2からの検出信号に基ずいてタイミングを設定し、画
像センサ4及び照明装置5に対して動作制御信号を出力
するものである。
The CPU 15 further uses the control function to set the timing based on the detection signal from the detector 2 and output an operation control signal to the image sensor 4 and the illumination device 5.

15a,15bはCPU15内のメモリ部(ROM,RAM)を示し、各
種制御用データとともに上記した判定用の基準値が対象
品目、判定内容毎に分けられて、予め記憶されている。
なお、CPU15における情報の入出力はCPU内部のインター
フェース部を介在して行なわれているが、説明上インタ
ーフェース部については省略する。
Reference numerals 15a and 15b denote memory units (ROM and RAM) in the CPU 15, and the above-described reference values for determination are stored in advance along with various control data for each target item and determination content.
Note that input and output of information in the CPU 15 are performed via an interface unit inside the CPU, but the interface unit is omitted from the description.

16はCPU15に対して使用者が各種操作を行なうための
操作パネル(キーボード)であり、例えばメモリ部に記
憶されている基準値や制御内容を選択するなどの操作が
行なわれる。
Reference numeral 16 denotes an operation panel (keyboard) for the user to perform various operations on the CPU 15, and performs operations such as selecting reference values and control contents stored in a memory unit.

17はフレームメモリ12に保持されている画像及びCPU1
5から供給される制御用画像(操作メニュー、画像ウイ
ンド枠等)を表示するディスプレイを示す。なお、画像
等の表示は外部CRT等により行なうようにしてもよい。
Reference numeral 17 denotes an image stored in the frame memory 12 and the CPU 1
5 shows a display for displaying control images (operation menu, image window frame, etc.) supplied from 5. The display of an image or the like may be performed by an external CRT or the like.

18はメモリカードドライブを示し、外部メモリカード
(例えば自己電源でバックアップを行なうRAMカード、
磁気記録媒体、光記録媒体等)とで情報をやりとりする
ことができるように為され、例えばメモリカードに記憶
された制御データをCPU15に入力したり、フレームメモ
リ12に保持された画像信号をメモリカードに記憶させ、
外部での使用に供すること等が可能とされている。
Reference numeral 18 denotes a memory card drive, which is an external memory card (for example, a RAM card that performs backup with its own power
(A magnetic recording medium, an optical recording medium, etc.), so that control data stored in a memory card can be input to the CPU 15 or an image signal held in the frame memory 12 can be stored in the memory. Memorize it on the card,
It can be used for external use.

19は外部機器との間で各種信号の入出力を行なうため
の入出端子部を示す。例えば入出力端子部19を介して、
ライン上で搬送される製品を検出する検出器2からの検
出信号が入力されてCPU15に供給され、また、上記した
ようにCPU15から出力される各種外部機器の制御信号が
画像センサ4,照明装置5,及び図示しない選別装置等へ出
力されることになる。
Reference numeral 19 denotes an input / output terminal for inputting / outputting various signals to / from an external device. For example, via the input / output terminal section 19,
A detection signal from the detector 2 for detecting a product conveyed on the line is input and supplied to the CPU 15, and the control signals of various external devices output from the CPU 15 are transmitted to the image sensor 4 and the lighting device as described above. 5, and output to a sorting device (not shown).

本実施例の外観検査装置はこのように全体が構成され
ており、画像センサ4によって撮影した画像に基ずいて
各種解析を行ない、上記したように、その対象製品の各
種判別を行なうことができるように為されている。
The entire appearance inspection apparatus of the present embodiment is configured as described above, and can perform various analyzes based on the image captured by the image sensor 4 to perform various determinations of the target product as described above. It is done as follows.

そしてさらに本実施例においては、上記CPU15におい
て、撮影した1画面の画像信号内において1又は複数の
領域(以下、ウインドウという)を設定し、そのウイン
ドウ単位で演算処理部14における解析動作が行なわれる
ように制御する領域制御手段と、領域制御手段の制御に
よって得られたウインドウ毎の解析データに対して基準
値Kと比較することにより、ウインドウ単位の判別デー
タを生成する、n個の単位判別データ生成手段と、ウイ
ンドウ単位の各判別データに基ずいて総合判定を行なう
総合判別データ生成手段とが、ソフトウエア手段により
形成されている。
Further, in the present embodiment, the CPU 15 sets one or a plurality of regions (hereinafter, referred to as windows) in an image signal of one captured image, and performs an analysis operation in the arithmetic processing unit 14 for each window. Control means, and n pieces of unit discrimination data for generating discrimination data in window units by comparing the analysis data for each window obtained by the control of the area control means with a reference value K The generating means and the comprehensive discrimination data generating means for making a comprehensive judgment based on each discrimination data in window units are formed by software means.

このため、画像センサ4によって撮影され、フレーム
メモリ12に記憶された画像信号に対しては、常にその1
画像全体のデータを解析対象として演算する必要はな
く、その1画面分の画像に対して処理単位としてウイン
ドウをn個まで設定してウインドウ単位で解析及び判別
を行なうことができ、さらに、その各判別データからさ
らに総合的な判別データを得ることができる。
For this reason, the image signal photographed by the image sensor 4 and stored in the frame memory 12 is always the first signal.
It is not necessary to calculate the data of the entire image as an analysis target, and it is possible to set up to n windows as a processing unit for the image of one screen and perform analysis and discrimination in window units. More comprehensive discrimination data can be obtained from the discrimination data.

上記各手段を機能ブロックとして第2図に示し、その
複数ウインドウ処理動作を以下説明する。なおCPU15内
で構成されてるが本動作に直接関係ない機能ブロックは
省略する。
Each of the above means is shown in FIG. 2 as a functional block, and its multiple window processing operation will be described below. Note that functional blocks that are configured in the CPU 15 but are not directly related to this operation are omitted.

第2図において30(1)〜30(n)はn個の単位判別データ
生成手段、40は総合判別データ生成手段、50は領域制御
手段である。
In FIG. 2, reference numerals 30 (1) to 30 (n) denote n unit discrimination data generating means, 40 denotes comprehensive discrimination data generating means, and 50 denotes area control means.

領域制御手段50は操作パネル16からCPU15に入力され
る指令に基ずいてウインドウを設定し、さらに操作パネ
ル16からの指令に基ずいて、設定した各ウインドウに関
してそれぞれどのよう解析処理を行なうかを設定する。
そしてこれらの設定により、各ウインドウに基ずいて所
定の解析動作が行なわれるように演算処理部14を制御し
ている。
The area control means 50 sets a window based on a command input from the operation panel 16 to the CPU 15, and further determines how to perform an analysis process on each set window based on a command from the operation panel 16. Set.
By these settings, the arithmetic processing unit 14 is controlled so that a predetermined analysis operation is performed based on each window.

この制御を具体的に説明すると、例えば前記第5図と
同様の王冠を判別する場合において、ライン上で搬送さ
れてきた王冠を撮影してフレームメモリ12に一点鎖線で
示す画像を得たときに、例えば第3図に示すように、バ
ックカラーが赤色で画像信号内に、白、黄色を含むと認
識される領域をW1,白色を含むと認識をされる領域をW2,
黄色を含むと認識される領域をW3として設定すると共
に、ウインドウW1における画像信号に関しては王冠の地
の部分の赤の面積を算出させ、ウインドウW2では王冠P1
の『AB』の部分に対応して白の面積を算出させ、さらに
ウインドウW3に関しては王冠P2のマークMの部分に対応
して、黄色の面積を算出させるようにするものであ
る。。
This control will be specifically described. For example, in the case of determining a crown similar to that in FIG. 5, when the crown conveyed on the line is photographed and an image indicated by a dashed line in the frame memory 12 is obtained. For example, as shown in FIG. 3, an area recognized as containing white and yellow in the image signal with a red background color of W 1 , an area recognized as containing white as W 2 ,
Sets a region recognized as including yellow as W 3, to calculate the red area of the land portion of the crown with respect to the image signal in the window W 1, Crown the window W 2 P 1
Of by calculating the area of white in correspondence with the part of "AB", with respect to further window W 3 corresponds to the portion of the mark M crown P 2, and is to be calculated the area of the yellow. .

60は基準値設定手段であり、それぞれ設定されたウイ
ンドウの処理内容に対応した基準値K1〜KnをROM15a或は
RAM15bから読み出して、各単位判別データ生成手段30
(1)〜30(n)に供給している。
60 is a reference value setting means, a reference value K 1 ~K n corresponding to the processing content of each set window ROM15a or
Each unit discrimination data generation unit 30 reads out from the RAM 15b and
(1) to 30 (n) .

領域制御手段50の制御により複数のウインドウ及び処
理内容が設定されると、各ウインドウに対応して解析デ
ータDW1〜DWnが、それぞれ単位判別データ生成手段30
(1)〜30(n)に入力され、各単位判別データ生成手段にお
いて基準値K1〜Knと比較されることにより、各々判別さ
れる。そして、各ウインドウ単位の判別データが出力さ
れて総合判別データ生成手段40において、例えば論理
積、論理和、或は重みずけ演算等の所定の演算処理がな
され、その検査対象となった製品に対する総合的な判別
データが生成されるものである。
When a plurality of windows and processing contents are set under the control of the area control means 50, the analysis data D W1 to D Wn are respectively output to the unit discrimination data generation means 30 corresponding to each window.
(1) is input to to 30 (n), by being compared with a reference value K 1 ~K n in each unit determination data generating means, are respectively determined. Then, the discrimination data for each window is output, and predetermined calculation processing such as, for example, a logical product, a logical sum, or a weighted calculation is performed in the total discrimination data generating means 40, and the product as the inspection target is processed. Comprehensive discrimination data is generated.

このように1つの画像データに対しウインドウを多重
化して設定して各判別を行なうことにより、複数項目を
チェックするため、その判別の正確性は著しく向上する
ことになる。
As described above, by multiplexing and setting a window for one image data and performing each determination, a plurality of items are checked, so that the accuracy of the determination is significantly improved.

例えば上記第3図の王冠識別の場合において、各王冠
の地の赤の面積だけでなく、『AB』の面積(白面積)及
びマークMの面積(黄色面積)を得、[赤面積が基準値
K1以下]或は[白面積が基準値K2以上]或は[黄色面積
が基準値K3以下]のいづれかを満たすものを王冠P1と判
別するようにすれば、判別基準となるデータが増えるた
め、製造誤差、環境条件等による影響を吸収することが
できる。つまり、照明光等の影響で赤面積が正確に算出
できず、赤面積に関しては誤判断がなされた場合でも、
他の白データ或は黄色データで正確な判断をする限り総
合判別データは正確なものとなる。
For example, in the case of the crown identification in FIG. 3, not only the red area of the ground of each crown but also the area of “AB” (white area) and the area of the mark M (yellow area) are obtained. value
K 1 below], or [if the white area is the reference value K 2 or more] or [those satisfying either yellow area is the reference value K 3 below] in to determine the crown P 1, as a determination reference data Therefore, the influence of manufacturing errors, environmental conditions, and the like can be absorbed. In other words, even if the red area cannot be calculated accurately due to the influence of illumination light and the like, and the red area is incorrectly determined,
As long as accurate judgment is made with other white data or yellow data, the comprehensive discrimination data will be accurate.

また、複数のデータで判別することにより各データの
重みを分散させることができるため、各基準値K1〜Kn
或る程度余裕をもって設定することができ、さらに基準
値が余裕をもつことによって製品ロットや環境条件によ
る誤差を、それぞれ吸収することができるため、より正
確度は増すことになる。
Moreover, since it is possible to disperse the weight of each data by determining a plurality of data, each reference value K 1 ~K n can also be set with a certain degree margin, further reference value has an allowance Since errors due to product lots and environmental conditions can be absorbed respectively, the accuracy is further increased.

なお、1つの製品に対する検査項目としては、上記し
た色ごとの面積の他、製品の全体或は特定部分の外形の
複雑度、傾き、濃度分散、重心位置等、演算処理部14に
おいて算出できる全てのデータを対象とすることができ
ることはいうまでもない。さらに、1つの製品に対し複
数の検査項目があり、各検査項目から総合判断をしたい
場合にも、その判別が1つの外観検査装置で可能にな
る。
The inspection items for one product include not only the area for each color described above, but also the complexity, inclination, density variance, center of gravity position, etc. of the outer shape of the entire product or a specific part, all of which can be calculated by the arithmetic processing unit 14. It goes without saying that this data can be targeted. Further, when there are a plurality of inspection items for one product and a comprehensive judgment is desired from each inspection item, the determination can be made by one appearance inspection device.

[発明の効果] 以上説明したように、本発明の外観検査装置はCPUに
おいて、1画面のカラー画像信号から、カラー情報が相
違することによって認識される処理単位として、異なる
文字、またはパターンを含む領域を設定するような領域
制御手段、単位判別データ生成手段、及び総合判別デー
タ生成手段を備え、撮影した画像の文字、図形のすべて
の性質を1回の検査によってその良否を判断できるよう
にしているから、検査実行の際にウインドウ処理を行な
うことで複数の検査項目によって、製品判別動作の正確
性を著しく向上させることができるようになるという効
果がある。
[Effects of the Invention] As described above, the appearance inspection apparatus of the present invention includes different characters or patterns as processing units recognized by the CPU in the color image signal of one screen when the color information is different. An area control means for setting an area, a unit discrimination data generation means, and a total discrimination data generation means are provided so that all properties of characters and graphics of a photographed image can be judged by a single inspection as to whether or not they are good. Therefore, by performing the window processing at the time of performing the inspection, there is an effect that the accuracy of the product determination operation can be significantly improved by a plurality of inspection items.

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

第1図は本発明の外観検査装置の1実施例を示すブロッ
ク図、 第2図は本実施例におけるCPUにおいて形成されるソフ
トウエア手段の一例を示すブロック図 第3図は本実施例の多重ウインドウ処理の説明図、 第4図は製品検査システムの説明図、 第5図は画像処理の説明図である。 2は検出器、4は画像センサ、5は照明装置、6は選別
装置、10は外観検査装置、12R,12G,12Bはフレームメモ
リ、14は画像処理部、15はCPU、15aはROM、15bはRAM、1
9は入出力端子、30(1)〜30(n)は単位判別データ生成手
段、40は総合判別データ生成手段、50は領域制御手段、
60は基準値設定手段を示す。
FIG. 1 is a block diagram showing an embodiment of a visual inspection apparatus according to the present invention, FIG. 2 is a block diagram showing an example of software means formed in a CPU in the present embodiment, and FIG. FIG. 4 is an explanatory diagram of window processing, FIG. 4 is an explanatory diagram of a product inspection system, and FIG. 5 is an explanatory diagram of image processing. 2 is a detector, 4 is an image sensor, 5 is a lighting device, 6 is a sorting device, 10 is a visual inspection device, 12R, 12G, and 12B are frame memories, 14 is an image processing unit, 15 is a CPU, 15a is a ROM, and 15b. Is RAM, 1
9 is an input / output terminal, 30 (1) to 30 (n) are unit discrimination data generation means, 40 is comprehensive discrimination data generation means, 50 is area control means,
Reference numeral 60 denotes a reference value setting means.

フロントページの続き (56)参考文献 特開 昭62−65179(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 1/00 G06T 7/00 - 7/60 G01N 21/88 - 21/958 (56) References JP-A-62-65179 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06T 1/00 G06T 7 /00-7/60 G01N 21 / 88-21/958

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】製品ラインで搬送されてくる被検査物体を
撮影した画像信号を解析して、その解析データがあらか
じめ設定された基準条件に適合しているか否かを判別す
ることにより、当該被検査物体に係る判別データを生成
することができる外観検査装置において、 前記被検査物体を撮影した1画面のカラー画像信号内
で、特徴点を示すウインドウ(W1)、及びこのウインド
ウ内でカラー情報が異なることによって独立した処理単
位として認識される複数の異なる文字、または図形の領
域を操作部からの指令に基づいて設定すると共に、前記
ウインドウ、及び前記領域毎の解析処理内容を操作部か
らの指令に基づいて設定する領域制御手段と、 前記撮影されたカラー画像のウインドウ、及び領域毎の
カラー画像データに対して、前記領域制御手段で設定さ
れた解析処理を施し、基準条件に適合しているか否かを
判別することにより判別データを生成する複数の単位判
別データ生成手段と、 前記各単位判別データ生成手段から供給される複数の判
別データに基づいて、総合判定を行う総合判別データ生
成手段とを備え、 各領域単位のカラー画像データに基づいて、当該被検査
物体の良否に関する総合的な判別データを出力する制御
手段を備えていることを特徴とする外観検査装置。
An image signal obtained by photographing an object to be inspected conveyed in a product line is analyzed, and it is determined whether or not the analysis data conforms to a preset reference condition. A visual inspection apparatus capable of generating discrimination data relating to an inspection object, wherein a window (W1) indicating a feature point and color information in the window are displayed in a color image signal of one screen obtained by photographing the inspection object. A plurality of different character or graphic regions that are recognized as independent processing units by being different are set based on a command from the operation unit, and the window and the analysis processing content for each region are commanded from the operation unit. Area control means for setting based on the following: the area control for the window of the photographed color image and the color image data for each area A plurality of unit discrimination data generating means for performing discrimination processing set by the means and discriminating whether or not the discrimination with the reference condition is performed, thereby generating discrimination data; and a plurality of unit discrimination data supplied from each of the unit discrimination data generating means. And a control means for outputting comprehensive discrimination data relating to the quality of the object to be inspected based on color image data of each area. A visual inspection device characterized by the following.
JP02078962A 1990-03-29 1990-03-29 Appearance inspection device Expired - Fee Related JP3099273B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02078962A JP3099273B2 (en) 1990-03-29 1990-03-29 Appearance inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02078962A JP3099273B2 (en) 1990-03-29 1990-03-29 Appearance inspection device

Publications (2)

Publication Number Publication Date
JPH03280170A JPH03280170A (en) 1991-12-11
JP3099273B2 true JP3099273B2 (en) 2000-10-16

Family

ID=13676521

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02078962A Expired - Fee Related JP3099273B2 (en) 1990-03-29 1990-03-29 Appearance inspection device

Country Status (1)

Country Link
JP (1) JP3099273B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015217877A (en) * 2014-05-20 2015-12-07 住江織物株式会社 Skin material for vehicle seat

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013205182A (en) * 2012-03-28 2013-10-07 Hitachi Kokusai Electric Inc Image analysis device, image analysis method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015217877A (en) * 2014-05-20 2015-12-07 住江織物株式会社 Skin material for vehicle seat

Also Published As

Publication number Publication date
JPH03280170A (en) 1991-12-11

Similar Documents

Publication Publication Date Title
US10854062B2 (en) Fire monitoring system
US20200043157A1 (en) Inspection Apparatus, Inspection Method, And Program
JP2000513466A (en) Color pattern evaluation system for randomly directed products
JP3099273B2 (en) Appearance inspection device
JP3054165B2 (en) Appearance inspection device
WO2000010127A1 (en) Linear mark detecting method and device
JP2886251B2 (en) Product inspection equipment
JP2002188939A (en) Pointer-type meter measuring system by image recognition and pointer-type meter measuring method
KR100222985B1 (en) Method of monitor display for inspection of video board
JPH03160309A (en) Image quality testing apparatus
JPH03279849A (en) Inspection system for formed bottle
JPH0310107A (en) Inspecting method utilizing gradation pattern matching
CN113284147B (en) Foreign matter detection method and system based on yellow foreign matter defects
JP2001126183A (en) Device for detecting traffic flow
JPH03280165A (en) Appearance inspection device
JP3755319B2 (en) Main subject detection device and apparatus using the same
JPH0781962B2 (en) Foreign object detection method
JP2712887B2 (en) Work front / back identification method and apparatus
JP3120469B2 (en) Image display method and apparatus
JPH03280166A (en) Product inspection device
JP2807232B2 (en) Medical image difference recognition display method and medical image difference recognition display device
JPH04196993A (en) Image monitor device
TW202328671A (en) Automatic defect classifier
JP3797586B2 (en) Image processing device
JPS61161582A (en) Pattern recognizing device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees