JP2005172584A - Inspection method of printed matter, and its inspection apparatus - Google Patents

Inspection method of printed matter, and its inspection apparatus Download PDF

Info

Publication number
JP2005172584A
JP2005172584A JP2003412055A JP2003412055A JP2005172584A JP 2005172584 A JP2005172584 A JP 2005172584A JP 2003412055 A JP2003412055 A JP 2003412055A JP 2003412055 A JP2003412055 A JP 2003412055A JP 2005172584 A JP2005172584 A JP 2005172584A
Authority
JP
Japan
Prior art keywords
image
pattern
printed matter
inspection
divided
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
JP2003412055A
Other languages
Japanese (ja)
Other versions
JP3691503B2 (en
Inventor
Masahiko Otsuka
昌彦 大塚
Shinya Suzuki
真也 鈴木
Atsushi Sakamoto
敦 坂本
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.)
SHIRAI DENSHI KOGYO KK
Original Assignee
SHIRAI DENSHI KOGYO KK
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 SHIRAI DENSHI KOGYO KK filed Critical SHIRAI DENSHI KOGYO KK
Priority to JP2003412055A priority Critical patent/JP3691503B2/en
Publication of JP2005172584A publication Critical patent/JP2005172584A/en
Application granted granted Critical
Publication of JP3691503B2 publication Critical patent/JP3691503B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Inking, Control Or Cleaning Of Printing Machines (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To greatly shorten the producing time of an inspection standard prepared prior to inspection start of a printed matter such as a printed board, and to greatly improve its inspection accuracy. <P>SOLUTION: A color image of a nondefective printed board is acquired, and the acquired color image is divided into each pattern region by color difference and registered (S4). A monochromatic image of the nondefective printed board is acquired, and the acquired monochromatic image is divided into each pattern region on reference to each registered pattern region, and the inspection standard used at the inspection time of the printed board is produced relative to each divided pattern region and registered (S5). The monochromatic image of the printed board to be inspected is acquired, and the acquired monochromatic image is divided into each pattern region on reference to each registered pattern region (S6). Inspection of existence of a defect in each divided pattern region is performed by using the inspection standard of each registered pattern region (S7). <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、プリント基板やICカードのような印刷物における表面の欠陥の有無の検査を行う印刷物の検査方法およびその検査装置に関するものである。   The present invention relates to a printed matter inspection method and an inspection apparatus for inspecting the presence or absence of surface defects in a printed matter such as a printed circuit board or an IC card.

従来、印刷物としてのプリント基板(プリント配線板)の外観検査は、一般に、以下の手順により行われる。まず、検査対象であるプリント基板の表面の画像をCCDカメラなどで撮像し、この撮像により検査画像データを得る。次に、その検査画像データの各画素値と、予め用意してある基準画像データの各画素値との差を求め、その差が許容範囲内にあるか否かの判定を行う。さらに、その判定結果に基づき、検査対象であるプリント基板の良否を判別する。   Conventionally, an appearance inspection of a printed circuit board (printed wiring board) as a printed material is generally performed according to the following procedure. First, an image of the surface of the printed circuit board to be inspected is captured by a CCD camera or the like, and inspection image data is obtained by this imaging. Next, a difference between each pixel value of the inspection image data and each pixel value of reference image data prepared in advance is obtained, and it is determined whether or not the difference is within an allowable range. Furthermore, the quality of the printed circuit board to be inspected is determined based on the determination result.

このようなプリント基板の検査方法において、その検査精度を向上させるようにしたものとして、この発明の出願人による特許発明が知られている(特許文献1参照)。
この検査方法は、良品の複数のプリント基板のモノクロ画像を用いて、基準画像データと許容範囲とを所定の手順で更新させ、最終的な基準画像データと許容範囲とを決定して登録しておく。そして、印刷物の検査時には、検査対象のプリント基板のモノクロ画像を取得し、登録してある基準画像データと許容範囲とを用いて、プリント基板の欠陥の有無の検査を行う。
In such a printed circuit board inspection method, a patented invention by the applicant of the present invention is known as one that improves the inspection accuracy (see Patent Document 1).
This inspection method uses monochrome images of a plurality of non-defective printed circuit boards, updates the reference image data and the allowable range in a predetermined procedure, and determines and registers the final reference image data and the allowable range. deep. When inspecting the printed matter, a monochrome image of the printed circuit board to be inspected is acquired, and the printed circuit board is inspected for defects using the registered reference image data and the allowable range.

一方、複数のパターン領域を有するプリント基板についてそのカラー画像を取得し、この取得したカラー画像の画像データを用いて各パターン領域に分割する方法が知られている(例えば、特許文献2参照)。
特許第3447280号公報(特開2003−156448号公報) 特開平11−304720号公報
On the other hand, a method is known in which a color image of a printed circuit board having a plurality of pattern areas is acquired and divided into pattern areas using image data of the acquired color images (see, for example, Patent Document 2).
Japanese Patent No. 3447280 (Japanese Patent Laid-Open No. 2003-156448) JP-A-11-304720

特許文献1に記載の発明によれば、プリント基板の検査に先立って用意する基準画像データと許容範囲の作成時間を短縮できる上に、プリント基板の製造工程で多少のばらつきがあっても、その検査の精度を向上させることができる。
しかし、プリント基板の検査に先立って用意すべき基準画像データと許容範囲の作成時間については、さらに短縮できることが望まれ、かつ、そのプリント基板の検査精度についてもさらに向上できることが望まれる。
According to the invention described in Patent Document 1, it is possible to shorten the reference image data prepared before the printed circuit board inspection and the creation time of the allowable range, and even if there is some variation in the printed circuit board manufacturing process, Inspection accuracy can be improved.
However, it is desirable that the reference image data to be prepared prior to the inspection of the printed circuit board and the creation time of the allowable range can be further shortened and the inspection accuracy of the printed circuit board can be further improved.

その一方、プリント基板の外観の検査対象は、配線パターン領域、レジスト領域、シルク領域などの異なる複数のパターン領域からなり、これらの各パターン領域は、製造工程で要求される品質が異なる。このため、プリント基板の各パターン領域では、出来上がりの品質の程度が様々であり、出来上がりの品質の要求の甘いシルク領域と、その要求の厳しい配線パターン領域およびレジスト領域とを比べると、シルク領域が出来上がりの品質に大きなばらつきがある。   On the other hand, the inspection target of the appearance of the printed circuit board is composed of a plurality of different pattern areas such as a wiring pattern area, a resist area, and a silk area, and these pattern areas have different qualities required in the manufacturing process. For this reason, each pattern area of a printed circuit board has various levels of finished quality. When the silk area where the quality of the finished quality is required is compared with the wiring pattern area and resist area where the requirements are severe, the silk area is There is great variation in the quality of the finished product.

そこで、シルク領域が不良と判定されないように検査の際の許容範囲を大きくすると、配線パターン領域およびレジスト領域についてもその大きな許容範囲が適用され、その結果、配線パターン領域およびレジスト領域については、不良であると判定すべきところを不良でないと判定するおそれがある。逆に、配線パターン領域とレジスト領域の検出精度を保つために検査の際の許容範囲を小さくすると、シルク領域についてもその小さな許容範囲が適用され、この結果、シルク領域については、不良でないにもかかわらず不良と判定されるおそれがある。このため、プリント基板の検査では、パターン領域の差異(特性)に応じた適切な検査が望まれる。   Therefore, if the allowable range at the time of inspection is increased so that the silk region is not determined to be defective, the large allowable range is also applied to the wiring pattern region and the resist region. As a result, the wiring pattern region and the resist region are defective. There is a risk of determining that it is not defective where it should be determined. Conversely, if the inspection tolerance is reduced in order to maintain the detection accuracy of the wiring pattern area and the resist area, the smaller tolerance is applied to the silk area. As a result, the silk area is not defective. Regardless, there is a risk of being judged as defective. For this reason, in the inspection of the printed circuit board, an appropriate inspection according to the difference (characteristic) of the pattern area is desired.

一方、特許文献2に記載の発明では、プリント基板について各パターン領域に分割することができるが、検査が必要な検査領域と検査が不要な非検査領域とを分割するには必ずしも容易ではない。このため、プリント基板の検査領域と非検査領域とを容易に認識できることが望まれる。
そこで、本発明の第1の目的は、上記の点に鑑み、プリント基板のような印刷物の検査の開始に先立って用意すべき検査基準の作成時間を大幅に短縮が可能である上に、その検査の精度を大幅に向上できるようにした印刷物の検査方法およびその検査装置を提供することにある。
また、本発明の第2の目的は、プリント基板のような印刷物のカラー画像を用いてその検査領域と非検査領域を認識する際に、その非検査領域を容易に認識できるようにした印刷物の検査装置を提供することにある。
On the other hand, in the invention described in Patent Document 2, the printed circuit board can be divided into pattern areas. However, it is not always easy to divide an inspection area that requires inspection and a non-inspection area that does not require inspection. For this reason, it is desired that the inspection area and the non-inspection area of the printed circuit board can be easily recognized.
Therefore, in view of the above points, the first object of the present invention is to greatly reduce the time required to prepare an inspection standard to be prepared prior to the start of inspection of printed matter such as a printed circuit board. It is an object of the present invention to provide a printed matter inspection method and an inspection apparatus capable of greatly improving the inspection accuracy.
A second object of the present invention is to provide a printed material that can easily recognize a non-inspection area when the inspection area and the non-inspection area are recognized using a color image of a printed material such as a printed circuit board. It is to provide an inspection device.

上記課題を解決し、本発明の第1の目的を達成するために、請求項1〜請求項14に記載の各発明は、以下のように構成した。
すなわち、請求項1に記載の発明は、印刷物に形成された互いに色の異なる複数のパターン領域の欠陥の有無を検査する印刷物の検査方法であって、良品の印刷物のカラー画像を取得し、この取得したカラー画像を色の差異により各パターン領域に分割する領域分割ステップと、その分割させたカラー画像の各パターン領域をあらかじめ登録しておく第1登録ステップと、良品の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させた各パターン領域ごとに、印刷物の検査時に使用する検査基準を作成する検査基準作成ステップと、その作成した各パターン領域ごとの各検査基準をあらかじめ登録しておく第2登録ステップと、検査対象の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割された各パターン領域の欠陥の有無の検査を、前記第2登録ステップで登録された各パターン領域ごとの検査基準を用いて行う検査ステップとからなる。
In order to solve the above-described problems and achieve the first object of the present invention, each invention according to claims 1 to 14 is configured as follows.
That is, the invention described in claim 1 is a printed material inspection method for inspecting the presence or absence of defects in a plurality of pattern regions having different colors formed on a printed material, and obtains a color image of a non-defective printed material. An area dividing step for dividing the acquired color image into each pattern area by color difference, a first registration step for previously registering each pattern area of the divided color image, and obtaining a monochrome image of a non-defective printed matter The obtained monochrome image is divided into each pattern area with reference to each pattern area registered in the first registration step, and an inspection standard used when inspecting the printed matter is divided for each divided pattern area. An inspection standard creation step to be created, a second registration step for registering in advance each inspection standard for each of the created pattern areas, A monochrome image of the target printed matter is acquired, and the acquired monochrome image is divided into each pattern region with reference to each pattern region registered in the first registration step, and whether or not there is a defect in each of the divided pattern regions The inspection step is performed using the inspection standard for each pattern region registered in the second registration step.

請求項2に記載の発明は、印刷物に形成された互いに色の異なる複数のパターン領域の欠陥の有無を検査する印刷物の検査方法であって、良品の印刷物のカラー画像を取得し、この取得したカラー画像を色の差異により各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域に対してその形状を変形処理する分割・変形処理ステップと、その分割、変形処理させたカラー画像の各パターン領域を、あらかじめ登録しておく第1登録ステップと、良品の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域に対してその形状を変形処理し、この分割、変形処理させた各パターン領域ごとに、印刷物の検査時に使用する検査基準を作成する検査基準作成ステップと、その作成させた各パターン領域の各検査基準をあらかじめ登録しておく第2登録ステップと、検査対象の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像の各パターン領域を分割し、この分割させたパターン領域のうち所定のパターン領域に対してその形状を変形処理し、この分割、変形処理させた各パターン領域の欠陥の有無の検査を、前記第2登録ステップで登録された各パターン領域ごとの検査基準を用いて行う検査ステップと、からなる。   The invention according to claim 2 is a printed material inspection method for inspecting the presence or absence of defects in a plurality of pattern regions having different colors formed on a printed material, and obtains a color image of a non-defective printed material. A color image is divided into pattern areas according to color differences, and a division / deformation processing step for deforming the shape of a predetermined pattern area among the divided pattern areas, and the color subjected to the division and deformation process A first registration step in which each pattern area of the image is registered in advance, a monochrome image of a non-defective printed matter is acquired, and the acquired monochrome image is obtained by referring to each pattern area registered in the first registration step. Each pattern area is divided, and the shape of the divided pattern area is modified for a predetermined pattern area. For each pattern area, an inspection standard creation step for creating an inspection standard to be used when inspecting the printed material, a second registration step for registering in advance each inspection standard for each of the created pattern areas, and a printed material to be inspected The monochrome image is acquired, and each pattern region of the acquired monochrome image is divided with reference to each pattern region registered in the first registration step, and a predetermined pattern region is divided among the divided pattern regions. The inspection step of deforming the shape and inspecting the presence / absence of a defect in each of the divided and deformed pattern areas using the inspection standard for each pattern area registered in the second registration step; Consists of.

請求項3に記載の発明は、請求項1または請求項2に記載の印刷物の検査方法において、前記印刷物は、プリント基板またはICカードである。
請求項4に記載の発明は、印刷物に形成された互いに色の異なる複数のパターン領域の欠陥の有無を検査する印刷物の検査方法であって、良品の印刷物のカラー画像を取得し、この取得したカラー画像を色の差異により各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させる分割・膨張ステップと、その分割、膨張させたカラー画像の各パターン領域を、あらかじめ登録しておく第1登録ステップと、良品の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させ、この分割、膨張させた各パターン領域ごとに、印刷物の検査時に使用する検査基準を作成する検査基準作成ステップと、その作成させた各パターン領域の各検査基準をあらかじめ登録しておく第2登録ステップと、検査対象の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像の各パターン領域を分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させ、この分割、膨張させた各パターン領域の欠陥の有無の検査を、前記第2登録ステップで登録された各パターン領域ごとの検査基準を用いて行う検査ステップと、からなる。
According to a third aspect of the present invention, in the printed matter inspection method according to the first or second aspect, the printed matter is a printed circuit board or an IC card.
The invention according to claim 4 is a printed material inspection method for inspecting the presence or absence of defects in a plurality of pattern regions having different colors formed on a printed material, and obtains a color image of a non-defective printed material. A color image is divided into pattern areas according to color differences, a division / expansion step for expanding the shape of a predetermined pattern area among the divided pattern areas, and each pattern area of the divided and expanded color image The first registration step registered in advance and the monochrome image of the non-defective printed matter are obtained, and the obtained monochrome image is divided into each pattern region by referring to each pattern region registered in the first registration step. The shape of a predetermined pattern area is expanded among the divided pattern areas, and the printed matter is inspected for each of the divided and expanded pattern areas. An inspection standard creating step for creating an inspection standard to be used for the inspection, a second registration step for registering in advance each inspection standard for each of the created pattern areas, a monochrome image of a printed matter to be inspected is obtained, Referring to each pattern area registered in one registration step, each pattern area of the acquired monochrome image is divided, the shape of a predetermined pattern area is expanded among the divided pattern areas, and this division and expansion are performed. And an inspection step for inspecting whether there is a defect in each pattern area using the inspection standard for each pattern area registered in the second registration step.

請求項5に記載の発明は、請求項4に記載の印刷物の検査方法において、前記検査基準作成ステップは、基準となる良品の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させ、この分割、膨張させた各パターン領域ごとの基準画像データと、この基準画像データの許容範囲を決めるべき許容差データの初期値とをそれぞれ取得する第1ステップと、前記基準画像データを更新するために新たな良品の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張して各パターン領域ごとの更新用画像データを取得する第2ステップと、その取得した更新用画像データが、前記基準画像データ、前記許容差データ、および任意に設定可能な第1の許容差パラメータで決まる許容範囲内に属するか否か検出し、その許容範囲内に属さない更新用画像データを抽出する第3ステップと、その抽出した更新用画像データに対応する前記基準画像データおよび前記許容差データの更新指示があったときに、前記抽出された更新用画像データが許容範囲内に収まるように、前記基準画像データおよび前記許容差データを、前記更新用画像データ、前記基準画像データ、および前記許容差データに基づいて決まる各所定値にそれぞれ更新する第4のステップと、からなり、前記第2のステップおよび前記第3のステップの各処理を任意の回数繰り返えして前記基準画像データおよび前記許容差データの更新を予め行っておき、前記検査基準は、更新後の前記基準画像データと、更新後の前記許容差データおよび任意に設定可能な第2の許容差パラメータで決まる許容範囲とする。   According to a fifth aspect of the present invention, in the printed matter inspection method according to the fourth aspect, the inspection reference creation step acquires a monochrome image of a non-defective printed matter as a reference and is registered in the first registration step. Referring to each pattern area, the acquired monochrome image is divided into each pattern area, the shape of a predetermined pattern area is expanded among the divided pattern areas, and the reference for each divided and expanded pattern area A first step of acquiring image data and an initial value of tolerance data for determining an allowable range of the reference image data, and acquiring a new non-defective printed monochrome image for updating the reference image data; The obtained monochrome image is divided into each pattern area by referring to each pattern area registered in the first registration step, and the divided pattern area is divided. A second step of acquiring the update image data for each pattern area by expanding the shape of a predetermined pattern area in the pattern area, and the acquired update image data includes the reference image data and the tolerance data And a third step of detecting whether or not the image data belongs to an allowable range determined by a first allowable parameter that can be arbitrarily set, and extracting update image data that does not belong to the allowable range, and the extracted update data When there is an instruction to update the reference image data and the tolerance data corresponding to the image data, the reference image data and the tolerance data are set so that the extracted update image data is within an allowable range. A fourth step of updating each predetermined value determined based on the update image data, the reference image data, and the tolerance data; The reference image data and the tolerance data are updated in advance by repeating the processes of the second step and the third step an arbitrary number of times, and the inspection reference is updated after the update. The tolerance is determined by the reference image data, the updated tolerance data, and a second tolerance parameter that can be arbitrarily set.

請求項6に記載の発明は、請求項4または請求項5に記載の印刷物の検査方法において、前記印刷物は、プリント基板またはICカードであり、膨張させる前記所定のパターン領域は、前記印刷物がプリント基板のときにはシルク領域であり、前記印刷物がICカードのときには印刷領域である。
請求項7に記載の発明は、印刷物に形成された互いに色の異なる複数のパターン領域の欠陥の有無を検査する印刷物の検査装置であって、複数のパターン領域が形成された印刷物を撮像してそのカラー画像またはそのモノクロ画像を取得する画像取得手段と、前記画像取得手段で良品の印刷物を撮像してカラー画像を取得し、この取得したカラー画像を色の差異により各パターン領域に分割する領域分割手段と、その分割されたカラー画像の各パターン領域を登録する第1登録手段と、前記画像取得手段で良品の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段に登録された各パターン領域を参照して、その取得したモノクロ画像を各パターン領域に分割し、この分割させた各パターン領域ごとに、印刷物の検査時に使用する検査基準を作成する検査基準作成手段と、その作成した各パターン領域の各検査基準を登録する第2登録手段と、前記画像取得手段で検査対象の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段に登録された各パターン領域を参照してその取得したモノクロ画像の各パターン領域を分割し、この分割された各パターン領域の欠陥の有無の検査を、前記第2登録手段に登録された各パターン領域ごとの検査基準を用いて行う検査手段と、を備えている。
According to a sixth aspect of the present invention, in the printed matter inspection method according to the fourth or fifth aspect, the printed matter is a printed circuit board or an IC card, and the predetermined printed region to be expanded is printed by the printed matter. It is a silk area when it is a substrate, and a printing area when the printed matter is an IC card.
The invention according to claim 7 is an inspection apparatus for a printed matter that inspects for the presence or absence of defects in a plurality of pattern areas of different colors formed on the printed matter, and images the printed matter on which the plurality of pattern areas are formed. An image acquisition unit that acquires the color image or the monochrome image, an area that captures a non-defective print by the image acquisition unit, acquires a color image, and divides the acquired color image into pattern areas based on color differences A dividing unit, a first registering unit that registers each pattern area of the divided color image, a non-defective printed matter is captured by the image acquiring unit, a monochrome image is acquired, and registered in the first registering unit Referring to each pattern area, the acquired monochrome image is divided into pattern areas, and each divided pattern area is used for inspection of printed matter. An inspection standard creating means for creating a standard, a second registration means for registering each inspection standard for each of the created pattern areas, and a monochrome image obtained by imaging a printed matter to be inspected by the image obtaining means, Each pattern area of the obtained monochrome image is divided with reference to each pattern area registered in one registration means, and an inspection for the presence or absence of defects in each divided pattern area is registered in the second registration means. And an inspection means that uses an inspection standard for each pattern region.

請求項8に記載の発明は、印刷物に形成された互いに色の異なる複数のパターン領域の欠陥の有無を検査する印刷物の検査装置であって、複数のパターン領域が形成された印刷物を撮像してそのカラー画像またはそのモノクロ画像を取得する画像取得手段と、前記画像取得手段で良品の印刷物を撮像してカラー画像を取得し、この取得したカラー画像を色の差異により各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域の形状を変形処理させる領域分割・変形処理手段と、その分割、変形処理させた印刷物の各パターン領域を登録する第1登録手段と、前記画像取得手段で良品の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段で登録された各パターン領域を参照してその取得したモノクロ画像の各パターン領域を分割し、この分割させたパターン領域のうち所定のパターン領域の形状を変形処理させ、この分割、変形処理させた各パターン領域ごとに、印刷物の検査時に使用する検査基準をそれぞれ作成する検査基準作成手段と、その作成させた各パターン領域の各検査基準を登録する第2登録手段と、前記画像取得手段で検査対象の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段に登録された各パターン領域を参照してその取得したモノクロ画像の各パターン領域を分割し、この分割させたパターン領域のうち所定のパターン領域の形状を変形処理させ、この分割、変形処理させた各パターン領域の欠陥の有無の検査を、前記第2登録手段に登録された各パターン領域ごとの検査基準を用いて行う検査手段と、を備えている。   The invention according to claim 8 is an inspection apparatus for a printed matter that inspects for the presence or absence of defects in a plurality of pattern regions having different colors formed on the printed matter, and images the printed matter on which the plurality of pattern regions are formed. An image acquisition unit that acquires the color image or the monochrome image, and obtains a color image by imaging a non-defective printed matter with the image acquisition unit, and divides the acquired color image into each pattern region by a color difference, An area division / deformation processing unit that deforms the shape of a predetermined pattern area among the divided pattern areas, a first registration unit that registers each pattern area of the divided and deformed printed matter, and the image acquisition The non-defective printed matter is imaged by the means to obtain a monochrome image, and each of the obtained monochrome images is referenced with reference to each pattern area registered by the first registration means. The turn area is divided, the shape of a predetermined pattern area is deformed among the divided pattern areas, and an inspection standard to be used at the time of inspecting the printed matter is created for each of the divided and deformed pattern areas. Inspection standard creation means, second registration means for registering each inspection standard for each of the created pattern areas, and a monochrome image obtained by capturing a printed matter to be inspected by the image acquisition means, and the first registration means Each pattern area of the obtained monochrome image is divided with reference to each pattern area registered in the pattern area, and the shape of a predetermined pattern area of the divided pattern areas is deformed, and the divided and deformed processes are performed. Inspection means for inspecting each pattern area for the presence or absence of defects using an inspection standard for each pattern area registered in the second registration means. .

請求項9に記載の発明は、印刷物に形成された互いに色の異なる複数のパターン領域の欠陥の有無を検査する印刷物の検査装置であって、複数のパターン領域が形成された印刷物を撮像してそのカラー画像またはそのモノクロ画像を取得する画像取得手段と、前記画像取得手段で良品の印刷物を撮像してカラー画像を取得し、この取得したカラー画像を色の差異により各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させる領域分割・膨張手段と、その分割、膨張させた印刷物の各パターン領域を登録する第1登録手段と、前記画像取得手段で良品の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段で登録された各パターン領域を参照してその取得したモノクロ画像の各パターン領域を分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させ、この分割、膨張させた各パターン領域ごとに、印刷物の検査時に使用する検査基準をそれぞれ作成する検査基準作成手段と、その作成させた各パターン領域の各検査基準を登録する第2登録手段と、前記画像取得手段で検査対象の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段に登録された各パターン領域を参照してその取得したモノクロ画像の各パターン領域を分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させ、この分割、膨張させた各パターン領域の欠陥の有無の検査を、前記第2登録手段に登録された各パターン領域ごとの検査基準を用いて行う検査手段と、を備えている。   The invention according to claim 9 is an inspection apparatus for a printed matter that inspects the presence or absence of defects in a plurality of pattern areas having different colors formed on the printed matter, and images the printed matter on which the plurality of pattern areas are formed. An image acquisition unit that acquires the color image or the monochrome image, and obtains a color image by imaging a non-defective printed matter with the image acquisition unit, and divides the acquired color image into each pattern region by a color difference, A region dividing / expanding unit that expands the shape of a predetermined pattern region among the divided pattern regions, a first registration unit that registers each pattern region of the divided and expanded printed matter, and a non-defective product by the image acquiring unit A monochrome image is obtained by imaging the printed material, and each pattern region of the obtained monochrome image is obtained by referring to each pattern region registered by the first registration unit. An inspection standard creating means for dividing and expanding the shape of a predetermined pattern area among the divided pattern areas, and creating an inspection standard for use in inspecting the printed matter for each of the divided and expanded pattern areas; Second registration means for registering each inspection standard for each of the created pattern areas; and a monochrome image obtained by imaging a printed matter to be inspected by the image acquisition means, and registered in the first registration means. Dividing each pattern area of the acquired monochrome image with reference to the pattern area, expanding the shape of a predetermined pattern area among the divided pattern areas, and whether there is a defect in each divided and expanded pattern area Inspection means for performing the inspection using the inspection standard for each pattern region registered in the second registration means.

請求項10に記載の発明は、請求項9に記載の印刷物の検査装置において、前記検査基準作成手段は、前記画像取得手段で基準となる良品の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段で登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させ、この分割、膨張させた各パターン領域ごとの基準画像データを取得する基準画像データ取得手段と、その取得した基準画像データと、この基準画像データの許容範囲を決めるべき許容差データの初期値とをそれぞれ記憶する記憶手段と、第1の許容差パラメータと第2の許容差パラメータを任意にそれぞれ設定する設定手段と、前記基準画像データを更新するために前記画像取得手段で新たな良品の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段で登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割させ、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させて各パターン領域ごとの更新用画像データを取得する更新用画像データ取得手段と、その取得した更新用画像データが、前記基準画像データ、前記許容差データ、および任意に設定可能な第1の許容差パラメータで決まる許容範囲内に属するか否か検出し、その許容範囲内に属さない更新用画像データを抽出する抽出手段と、その抽出した更新用画像データに対応する前記基準画像データおよび前記許容差データの更新指示があったときに、前記抽出された更新用画像データが許容範囲内に収まるように、前記記憶手段に記憶される前記基準画像データおよび前記許容差データを、前記更新用画像データ、前記基準画像データ、および前記許容差データに基づいて決まる各所定値にそれぞれ更新する更新手段とを備え、前記検査手段が使用する検査基準は、前記記憶手段に記憶される前記更新後の前記基準画像データと、前記記憶手段に記憶される更新後の前記許容差データおよび前記設定手段で設定される第2の許容差パラメータで決まる許容範囲とする。   According to a tenth aspect of the present invention, in the printed matter inspection apparatus according to the ninth aspect, the inspection reference creating means captures a non-defective printed matter as a reference by the image obtaining means to obtain a monochrome image, and The acquired monochrome image is divided into each pattern area with reference to each pattern area registered by the first registration means, and the shape of a predetermined pattern area is expanded among the divided pattern areas. Reference image data acquisition means for acquiring reference image data for each of the pattern areas, a storage for storing the acquired reference image data, and an initial value of tolerance data for determining an allowable range of the reference image data Means, setting means for arbitrarily setting the first tolerance parameter and the second tolerance parameter, respectively, and the update for updating the reference image data The image acquisition means captures a new non-defective printed matter to acquire a monochrome image, refers to each pattern area registered by the first registration means, divides the acquired monochrome image into each pattern area, and this division Update image data acquisition means for acquiring the image data for update for each pattern area by expanding the shape of the predetermined pattern area among the pattern areas, and the acquired image data for update is the reference image data, Extraction means for detecting whether or not the data falls within a tolerance range determined by the tolerance data and a first tolerance parameter that can be arbitrarily set, and extracting update image data that does not belong to the tolerance range, and the extraction When the reference image data and the tolerance data corresponding to the updated image data are instructed to be updated, the extracted update image data is permitted. The reference image data and the tolerance data stored in the storage means are updated to respective predetermined values determined on the basis of the update image data, the reference image data, and the tolerance data so as to be within a range. And the update reference means used by the inspection means includes the updated reference image data stored in the storage means, the updated tolerance data stored in the storage means, and The tolerance is determined by the second tolerance parameter set by the setting means.

請求項11に記載の発明は、請求項7乃至請求項10のうちのいずれかに記載の印刷物の検査装置において、前記画像取得手段は、前記印刷物を撮像するモノクロカメラと、前記印刷物とモノクロカメラとの間に配置され、前記モノクロカメラで印刷物を撮像してR画像を取得する第1フィルタ、B画像を取得する第2フィルタ、G画像を取得する第3フィルタ、およびモノクロ画像を取得する第4フィルタと、前記モノクロカメラで前記印刷物を撮像の際に、前記4つのフィルタのうちの1つを選択するフィルタ選択手段と、を含み、前記フィルタ選択手段は、前記印刷物のカラー画像を取得する場合には前記第1、第2および第3のフィルタをそれぞれ選択し、前記印刷物のモノクロ画像を取得する場合には前記第4フィルタを選択するようになっている。   According to an eleventh aspect of the present invention, in the printed matter inspection apparatus according to any one of the seventh aspect to the tenth aspect, the image acquisition unit includes a monochrome camera that captures the printed matter, the printed matter, and the monochrome camera. A first filter that captures a printed matter by the monochrome camera and acquires an R image, a second filter that acquires a B image, a third filter that acquires a G image, and a first filter that acquires a monochrome image 4 filters and filter selection means for selecting one of the four filters when the printed matter is imaged by the monochrome camera, and the filter selection means obtains a color image of the printed matter. In this case, the first, second, and third filters are selected, respectively, and when the monochrome image of the printed matter is acquired, the fourth filter is selected. It has become the jar.

請求項12に記載の発明は、請求項7乃至請求項11のうちのいずれかに記載の印刷物の検査装置において、前記画像取得手段で前記印刷物を撮像してカラー画像を取得する際に、その印刷物の背景色は、印刷物に含まれる色以外の色であって、RGB色立体で表現した場合に印刷物に含まれる色からできるだけ離れている領域に属する色にするようにした。
請求項13に記載の発明は、請求項7、請求項8、請求項11、または請求項12のうちのいずれかに記載の印刷物の検査装置において、前記印刷物は、プリント基板またはICカードである。
According to a twelfth aspect of the present invention, in the printed matter inspection apparatus according to any one of the seventh to eleventh aspects, when the printed matter is imaged by the image obtaining unit and a color image is obtained, The background color of the printed material is a color other than the color included in the printed material and belongs to an area as far as possible from the color included in the printed material when expressed in the RGB color solid.
A thirteenth aspect of the present invention is the printed material inspection apparatus according to any one of the seventh, eighth, eleventh and twelfth aspects, wherein the printed material is a printed circuit board or an IC card. .

請求項14に記載の発明は、請求項9、請求項10、請求項11、または請求項12のうちのいずれかに記載の印刷物の検査装置において、前記印刷物はプリント基板またはIC基板であり、膨張させる前記所定のパターン領域は、前記印刷物がプリント基板のときにはシルク領域であり、前記印刷物がICカードのときには印刷領域である。
さらに、本発明の第2の目的を達成するために、請求項15および請求項16に記載の各発明は、以下のように構成した。
The invention described in claim 14 is the printed product inspection apparatus according to any one of claims 9, 10, 11, or 12, wherein the printed product is a printed circuit board or an IC substrate, The predetermined pattern area to be expanded is a silk area when the printed material is a printed circuit board, and is a printed area when the printed material is an IC card.
Furthermore, in order to achieve the second object of the present invention, each invention described in claim 15 and claim 16 is configured as follows.

すなわち、請求項15に記載の発明は、印刷物をカメラで撮像してカラー画像を取得し、この取得したカラー画像に基づいて印刷物の欠陥の有無を検査する印刷物の検査装置であって、前記カメラで前記印刷物を撮像してカラー画像を取得する際に、その印刷物の背景色を、印刷物に含まれる色以外の色であって、RGB色立体で表現した場合に印刷物に含まれる色からできるだけ離れている領域に属する色にするようにした。
請求項16に記載の発明は、請求項15に記載の印刷物の検査装置において、前記印刷物はプリント基板であり、この場合には、そのプリント基板の背景色は、プリント基板のレジストの色と補色の関係にある色またはその補色の関係にある色に類似する色にするようにした。
That is, the invention described in claim 15 is an apparatus for inspecting a printed matter, in which the printed matter is imaged with a camera to obtain a color image, and the printed matter is inspected for defects based on the obtained color image. When acquiring a color image by imaging the printed matter in step 1, when the background color of the printed matter is a color other than the color contained in the printed matter and is expressed as an RGB color solid, it is as far as possible from the color contained in the printed matter. The color that belongs to the area is changed.
According to a sixteenth aspect of the present invention, in the printed matter inspection apparatus according to the fifteenth aspect, the printed matter is a printed circuit board. In this case, the background color of the printed circuit board is complementary to the resist color of the printed circuit board. The color is similar to the color in the relationship of or the color in the complementary relationship.

このように、本発明では、良品の印刷物のカラー画像を取得し、この取得したカラー画像を色の差異を利用して各パターン領域に分割し、これを登録するようにした。次に、良品の印刷物のモノクロ画像を取得し、その登録済みの各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させた各パターン領域ごとに、印刷物の検査時に使用する検査基準を作成し、これを登録するようにした。このため、本発明によれば、プリント基板のような印刷物の検査の開始に先立って用意すべき検査基準の作成時間を大幅に短縮が可能である。   As described above, in the present invention, a color image of a non-defective printed matter is acquired, and the acquired color image is divided into each pattern region using a color difference, and is registered. Next, a monochrome image of a non-defective printed material is acquired, the acquired monochrome image is divided into each pattern region with reference to each registered pattern region, and the printed material is inspected for each divided pattern region. An inspection standard to be used at times is created and registered. For this reason, according to the present invention, it is possible to greatly reduce the time for creating an inspection standard to be prepared prior to the start of inspection of a printed matter such as a printed circuit board.

また、本発明では、印刷物の検査時には、検査対象のプリント基板のモノクロ画像を取得し、その登録済みの各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割された各パターン領域の欠陥の有無の検査を、その登録済みの各パターン領域ごとの検査基準を用いて行うようにした。このため、本発明によれば、プリント基板のような印刷物の検査精度を大幅に向上できる。
また、本発明では、カメラで印刷物を撮像してカラー画像を取得する際に、その印刷物の背景色を、印刷物に含まれる色以外の色であって、RGB色立体で表現した場合に印刷物に含まれる色からできるだけ離れている領域に属する色にするようにした。このため、本発明によれば、プリント基板のような印刷物のカラー画像を用いてその検査領域と非検査領域を認識する際に、その非検査領域を容易に認識できる。
Further, according to the present invention, when inspecting a printed matter, a monochrome image of a printed circuit board to be inspected is acquired, the acquired monochrome image is divided into each pattern region with reference to each registered pattern region, and the divided image is divided. Each pattern area is inspected for defects using the registered inspection standard for each pattern area. For this reason, according to this invention, the test | inspection precision of printed matter like a printed circuit board can be improved significantly.
Further, in the present invention, when a printed image is captured by a camera to obtain a color image, the background color of the printed material is a color other than the color included in the printed material and is expressed in an RGB color solid. Changed colors to belong to an area as far as possible from the included colors. Therefore, according to the present invention, when the inspection area and the non-inspection area are recognized using a color image of a printed matter such as a printed board, the non-inspection area can be easily recognized.

以下、本発明の実施の形態を図面を参照して説明する。
本発明の印刷物の検査装置は、プリント基板、ICカードなどに形成された互いに色の異なる複数のパターン領域の欠陥の有無を検査するものである。
ここで、検査対象となるプリント基板は、絶縁基板上に、配線パターン領域、パッド領域、レジスト領域、シルク領域などの色の異なる複数のパターン領域が形成され、これらは検査領域となる。
また、検査対象となるICカードは、基材の表面や裏面に露出し金メッキなどが施された端子領域、基材上に印刷された文字などからなる印刷領域などを含み、これらが検査対象となる。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
The printed matter inspection apparatus of the present invention inspects the presence or absence of defects in a plurality of pattern regions having different colors formed on a printed circuit board, an IC card, or the like.
Here, the printed circuit board to be inspected is formed with a plurality of pattern regions having different colors such as a wiring pattern region, a pad region, a resist region, and a silk region on an insulating substrate, and these become inspection regions.
In addition, the IC card to be inspected includes a terminal area exposed on the front and back surfaces of the base material and plated with gold, a printed area made of characters printed on the base material, and the like. Become.

この印刷物の検査装置に係る実施形態は、図1および図2に示すように、検査対象であるプリント基板などの印刷物(図示せず)を載せるテーブル1と、このテーブル1上に置かれた印刷物を上方から撮像する撮像装置2とを備えている。
テーブル1は、その表面の色が印刷物に含まれる色以外の色であって、RGB色立体で表現した場合に印刷物に含まれる色からできるだけ離れている領域に属する色にするようにした。このように、プリント基板などの印刷物の背景色を、上記にようにするのは、プリント基板などを撮像したカラー画像から検査領域と非検査領域とを認識する際に、その非検査領域を容易に認識できるようにするためである。
As shown in FIGS. 1 and 2, an embodiment of the printed matter inspection apparatus includes a table 1 on which a printed matter (not shown) such as a printed circuit board to be inspected is placed, and a printed matter placed on the table 1. And an image pickup apparatus 2 for picking up images from above.
In Table 1, the color of the surface is a color other than the color included in the printed material, and when it is expressed in the RGB color solid, the color belongs to an area as far as possible from the color included in the printed material. As described above, the background color of a printed matter such as a printed circuit board is set as described above when the inspection area and the non-inspection area are recognized from the color image obtained by imaging the printed circuit board or the like. This is so that it can be recognized.

ここで、印刷物がプリント基板の場合には、テーブル1の表面色を以下のように決めるようにしても良い。すなわち、プリント基板の場合には、レジスト領域が占める割合が多いので、このレジストの色と補色の関係にある色またはその色と近似する色にすることができる。従って、レジストの色が緑色の場合には、テーブル1の表面の色は、赤色およびその赤色に近似する色にすれば良い。   Here, when the printed matter is a printed board, the surface color of the table 1 may be determined as follows. That is, in the case of a printed circuit board, since the resist region occupies a large proportion, it can be a color that is complementary to the color of the resist or a color that approximates that color. Therefore, when the color of the resist is green, the color of the surface of the table 1 may be red and a color approximate to the red color.

また、テーブル1の構成素材が厚手のアルミニウム板の場合には、その表面をアルマイト処理することにより上記の色にすることができる。さらに、テーブル1は、その表面側を上向きにしてテーブル移動機構11上に設置され、テーブル移動機構11の駆動により図示の方向に往復移動できるようになっている。
なお、テーブル1は、テーブル移動機構に対して着脱自在に構成するようにしてもよい。この場合には、テーブル1は、例えばその表面側を赤色、その裏面側を黒色のように異なる色にすると、プリント基板を検査する際にレジストの色に合わせてテーブル1の表裏を選択的に使用することができ便宜である。
Moreover, when the constituent material of the table 1 is a thick aluminum plate, the above-mentioned color can be obtained by anodizing the surface. Further, the table 1 is installed on the table moving mechanism 11 with its front side facing upward, and can be reciprocated in the direction shown in the figure by driving the table moving mechanism 11.
The table 1 may be configured to be detachable from the table moving mechanism. In this case, if the table 1 has a different color such as red on the front side and black on the back side, the front and back of the table 1 can be selectively selected according to the color of the resist when inspecting the printed circuit board. It can be used for convenience.

撮像装置2は、図1および図2に示すように、テーブル1の上方に配置されるモノクロカメラ21と、このモノクロカメラ21の前方に配置されるフィルタプレート22とを備えている。フィルタプレート22は、図2に示すように4つの孔を備え、この各孔に、R(赤)画像を得るための赤色レンズフィルタ221、G(緑)画像を得るための緑色レンズフィルタ222、B(青)画像を得るための青色レンズフィルタ223、およびモノクロ画像を得るための透明なレンズフィルタ224がそれぞれ嵌まっている。   As shown in FIGS. 1 and 2, the imaging device 2 includes a monochrome camera 21 disposed above the table 1 and a filter plate 22 disposed in front of the monochrome camera 21. As shown in FIG. 2, the filter plate 22 includes four holes. In each hole, a red lens filter 221 for obtaining an R (red) image, a green lens filter 222 for obtaining a G (green) image, A blue lens filter 223 for obtaining a B (blue) image and a transparent lens filter 224 for obtaining a monochrome image are fitted.

このフィルタプレート22は、図2の矢印方向に移動させて、その4つのレンズフィルタのうちの1つを選択的に設定して使用できるようになっている。
すなわち、フィルタプレート22は、図18に示す一軸の位置決め装置23に取り付けられ、位置決め装置23の駆動により図2の矢印方向に往復動でき、4つの各レンズフィルタを所定の撮像位置に置決めができるようになっている。
この位置決め装置23は、図18に示すように、両端が回転自在に軸受けされるネジ棒231と、このネジ棒231の正転または逆転に伴ってネジ棒231の軸方向に移動できるようになっている移動部材232と、ネジ棒231を正転または逆転させるモータ233とを備えている。そして、その位置決め装置23の移動部材232に対して、フィルタプレート22がネジなどで接続されている。
The filter plate 22 is moved in the direction of the arrow in FIG. 2 so that one of the four lens filters can be selectively set and used.
That is, the filter plate 22 is attached to the uniaxial positioning device 23 shown in FIG. 18, and can be reciprocated in the direction of the arrow in FIG. 2 by driving the positioning device 23, so that each of the four lens filters is placed at a predetermined imaging position. It can be done.
As shown in FIG. 18, the positioning device 23 can be moved in the axial direction of the screw rod 231 as the screw rod 231 is rotatably supported at both ends, and the screw rod 231 is rotated forward or backward. The moving member 232 and the motor 233 for rotating the screw rod 231 in the normal direction or the reverse direction are provided. The filter plate 22 is connected to the moving member 232 of the positioning device 23 with screws or the like.

このような構成からなる撮像装置2では、プリント基板などの印刷物のカラー画像が必要の場合にはフィルタプレート22の3つのレンズフィルタ221、222、223を使用してモノクロカメラ21で撮像し、モノクロ画像が必要な場合にはフィルタプレート22のレンズフィルタ224を使用してモノクロカメラ21で撮像することになる。
次に、この実施形態が撮像装置2で撮像した印刷物の画像の処理を行うための構成について、図3を参照して説明する。
この実施形態は、図3に示すように、撮像装置2と、画像処理装置3と、パターン領域データメモリ4と、基準画像データメモリ5と、許容差データメモリ6と、外部記憶装置7と、ROM(リード・オンリ・メモリ)8と、入力装置9と、表示装置10とを少なくとも備えている。
In the imaging apparatus 2 having such a configuration, when a color image of a printed matter such as a printed circuit board is necessary, the monochrome camera 21 is used for imaging with the three lens filters 221, 222, and 223 of the filter plate 22. When an image is necessary, the image is captured by the monochrome camera 21 using the lens filter 224 of the filter plate 22.
Next, a configuration for processing an image of a printed matter captured by the imaging apparatus 2 according to this embodiment will be described with reference to FIG.
As shown in FIG. 3, this embodiment includes an imaging device 2, an image processing device 3, a pattern area data memory 4, a reference image data memory 5, a tolerance data memory 6, an external storage device 7, At least a ROM (Read Only Memory) 8, an input device 9, and a display device 10 are provided.

撮像装置2は、上記のように、モノクロカメラ21とフィルタプレート22とを含んでいる。モノクロカメラ21は、CCDカメラなどからなる。このCCDカメラは、テーブル1上のプリント基板などの印刷物を撮像して画像信号を取得し、その画像信号をA/D変換器(図示せず)でA/D変換してデジタル形態の画像データを生成して出力するものである。その画像データは、例えば8ビット(0〜255)の濃淡値からなる。また、このように取得する画像の1画素のサイズ(分解能)は、例えば0.05mm×0.05mmである。   The imaging device 2 includes the monochrome camera 21 and the filter plate 22 as described above. The monochrome camera 21 is a CCD camera or the like. The CCD camera captures a printed matter such as a printed circuit board on the table 1 to acquire an image signal, and A / D converts the image signal by an A / D converter (not shown) to obtain digital image data. Is generated and output. The image data is composed of, for example, a shade value of 8 bits (0 to 255). In addition, the size (resolution) of one pixel of the image acquired in this way is, for example, 0.05 mm × 0.05 mm.

画像処理装置3は、ROM8に格納される後述のような画像処理やプリント基板などの印刷物の検査の手順(プログラム)に基づき、後述のような各種の比較や演算などの処理を行うものである。このために、この画像処理装置3は、CPU(中央処理装置)、画像メモリ、ワークメモリなどから構成されている。
パターン領域データメモリ4は、良品のプリント基板などの印刷物の表面を撮像装置2で撮像してカラー画像を取得し、この取得したカラー画像を色の違いを利用して各パターン領域に分割し、さらに後述のように変形処理させた各パターン領域を示すデータを記憶するメモリである。
The image processing apparatus 3 performs various processing such as comparison and calculation as described later, based on image processing as described later stored in the ROM 8 and a procedure (program) for inspecting printed matter such as a printed circuit board. . For this purpose, the image processing apparatus 3 includes a CPU (central processing unit), an image memory, a work memory, and the like.
The pattern area data memory 4 captures the surface of a printed matter such as a non-defective printed circuit board with the imaging device 2 to acquire a color image, and divides the acquired color image into each pattern area using a difference in color. Further, it is a memory for storing data indicating each pattern area subjected to deformation processing as will be described later.

基準画像データメモリ5は、基準画像となる良品のプリント基板などの印刷物の表面を撮像装置2で撮像し、この撮像により得られるモノクロ画像からなる基準画像の各画素の濃度値(基準画像データ)を各画素毎に記憶するメモリである。
許容差データメモリ6は、その基準画像の各画素の濃度値ごとの許容差データを格納するメモリである。
ここで、許容差データとは、基準画像データの許容範囲を決めるべきものである(以下、本明細書においては同様である)。
外部記憶装置7は、ハードディスク、フレキシブルディスク、または光ディスクからなり、後述のように画像データなどを大量に記憶するものである。
The reference image data memory 5 takes an image of the surface of a printed matter such as a non-defective printed circuit board, which becomes a reference image, with the imaging device 2, and the density value (reference image data) of each pixel of the reference image made up of a monochrome image obtained by this imaging. Is stored for each pixel.
The tolerance data memory 6 is a memory for storing tolerance data for each density value of each pixel of the reference image.
Here, the tolerance data should determine the tolerance range of the reference image data (hereinafter, the same applies in this specification).
The external storage device 7 includes a hard disk, a flexible disk, or an optical disk, and stores a large amount of image data and the like as will be described later.

ROM8は、画像処理装置3が後述のような比較や演算などの画像処理や、プリント基板や多色刷りの印刷物の検査処理を行うための手順(プログラム)を予め記憶しておく読み出し専用のメモリである。
入力装置9は、画像処理装置3からの要求などに応じて画像処理装置3に対して後述のような指示や設定などを行うものであり、例えばキーボードなどから構成される。
表示装置10は、画像処理装置3がその画像処理中やプリント基板などの検査中に所定の表示を行うものであり、CRTディスプレイや液晶ディスプレイなどにより構成される。
The ROM 8 is a read-only memory in which the image processing apparatus 3 stores in advance procedures (programs) for performing image processing such as comparison and calculation as will be described later, and inspection processing for printed circuit boards and multicolored printed materials. is there.
The input device 9 is for instructing the image processing device 3 in accordance with a request from the image processing device 3 and the like, and is configured by, for example, a keyboard.
The display device 10 performs predetermined display during the image processing by the image processing device 3 or during inspection of a printed circuit board, and is configured by a CRT display, a liquid crystal display, or the like.

次に、このような構成からなる実施形態において、検査対象である印刷物をプリント基板とし、このプリント基板の検査を行う場合の画像処理装置3の動作の概要について、図4を参照して説明する。
まず、図4のステップS1では、プリント基板の検査が、パターン領域の分割によるものか否かが判定される。従って、使用者が、パターン領域の分割によるプリント基板の検査をしない旨の指示をする場合には、ステップS2〜S3の処理に移行する。他方、使用者が、パターン領域の分割によるプリント基板の検査をする旨の指示をする場合には、ステップS4〜S7の処理に移行する。
Next, in the embodiment having such a configuration, an outline of the operation of the image processing apparatus 3 when a printed matter to be inspected is a printed board and the printed board is inspected will be described with reference to FIG. .
First, in step S1 of FIG. 4, it is determined whether or not the inspection of the printed circuit board is due to the division of the pattern area. Therefore, when the user gives an instruction not to inspect the printed circuit board by dividing the pattern area, the process proceeds to steps S2 to S3. On the other hand, when the user gives an instruction to inspect the printed circuit board by dividing the pattern area, the process proceeds to steps S4 to S7.

ステップS2では、良品のプリント基板を撮像装置2で撮像してモノクロ画像を取得し、この取得したモノクロ画像を用いて検査基準を作成し、登録する。ステップS3では、検査対象のプリント基板を撮像装置2で撮像してモノクロ画像を取得し、この取得したモノクロ画像と登録済みの検査基準を用いて、プリント基板の欠陥の有無を検査する。ここで、ステップS2およびステップS3による検査方法は、上記の特許文献1に記載の検査方法が適用できるので、その詳細な説明は省略する。   In step S2, a non-defective printed board is imaged by the imaging device 2 to acquire a monochrome image, and an inspection standard is created and registered using the acquired monochrome image. In step S <b> 3, the printed circuit board to be inspected is imaged by the imaging device 2 to obtain a monochrome image, and the presence or absence of a defect on the printed circuit board is inspected using the acquired monochrome image and the registered inspection standard. Here, since the inspection method described in Patent Document 1 can be applied to the inspection method in step S2 and step S3, detailed description thereof is omitted.

次に、ステップS4〜ステップS7によるプリント基板の検査方法について、以下に順に説明する。
まず、ステップS4では、撮像装置2で良品のプリント基板を撮像してそのカラー画像を取得し、この取得したカラー画像の色の差異により各パターン領域に分割し、この分割させたカラー画像の各パターン領域をあらかじめ登録する。
次に、ステップS5では、撮像装置2で良品のプリント基板を撮像してそのモノクロ画像を取得する。そして、ステップS4で登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させた各パターン領域ごとに、プリント基板の検査時に使用する検査基準を作成する。さらに、この作成した各パターン領域ごとの各検査基準をあらかじめ登録する。
Next, the printed circuit board inspection method according to steps S4 to S7 will be described in order.
First, in step S4, a non-defective printed circuit board is imaged by the imaging device 2 to obtain a color image, and is divided into pattern areas based on the color difference of the obtained color image, and each of the divided color images is obtained. Register the pattern area in advance.
Next, in step S5, a non-defective printed board is imaged by the imaging device 2 and a monochrome image is acquired. Then, referring to each pattern area registered in step S4, the acquired monochrome image is divided into each pattern area, and an inspection standard used for inspecting the printed circuit board is created for each divided pattern area. . Further, each inspection standard for each created pattern area is registered in advance.

また、ステップS6では、撮像装置2で検査対象のプリント基板を撮像してそのモノクロ画像を取得し、ステップS4で登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割する。さらに、ステップS7では、その分割された各パターン領域の欠陥の有無の検査を、ステップS5で登録された各パターン領域ごとの検査基準を用いて行う。
この実施形態では、図4に示すように、プリント基板の検査に先立ってステップS4およびステップS5の処理を行うので、その各処理の具体例について図5を参照して説明する。ここで、図4のステップS4は、図5のステップS11〜ステップS14に対応し、図4のステップS5は、図5のステップS15〜ステップS17に対応する。
図5のステップS11〜ステップS14の各処理について説明する。
In step S6, the imaging device 2 captures the printed circuit board to be inspected to acquire the monochrome image, and the acquired monochrome image is divided into pattern areas by referring to the pattern areas registered in step S4. To do. Further, in step S7, the inspection of the presence / absence of a defect in each divided pattern area is performed using the inspection standard for each pattern area registered in step S5.
In this embodiment, as shown in FIG. 4, the processes in steps S4 and S5 are performed prior to the inspection of the printed circuit board, and a specific example of each process will be described with reference to FIG. Here, step S4 in FIG. 4 corresponds to step S11 to step S14 in FIG. 5, and step S5 in FIG. 4 corresponds to step S15 to step S17 in FIG.
Each process of step S11-step S14 of FIG. 5 is demonstrated.

まず、ステップS11では、目視検査により良品と判断したプリント基板を用意し、そのプリント基板の撮像範囲を、入力装置9の操作により設定する。次のステップS12では、その良品のプリント基板の表面を後述のように撮像装置2で3回撮像してR,G,Bの各画像を取得し、この取得した各画像の合成によりカラー画像を作成する。次のステップS13では、その作成したカラー画像をその色の差異を利用して各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域に対してその形状の変形処理を行う。さらに、ステップS14では、その分割、変形処理させたカラー画像の各パターン領域を、パターン領域データメモリ4に記憶(登録)させる。   First, in step S <b> 11, a printed circuit board that is determined to be non-defective by visual inspection is prepared, and the imaging range of the printed circuit board is set by operating the input device 9. In the next step S12, the surface of the non-defective printed circuit board is imaged three times by the imaging device 2 as will be described later to acquire R, G, and B images, and a color image is obtained by combining the acquired images. create. In the next step S13, the created color image is divided into pattern areas using the difference in color, and the shape of the divided pattern areas is subjected to deformation processing on a predetermined pattern area. Further, in step S14, each pattern area of the color image subjected to the division and deformation process is stored (registered) in the pattern area data memory 4.

次に、図5のステップS15〜ステップS17の各処理について説明する。
まず、ステップS15では、良品のプリント基板の表面を撮像装置2で1回撮像し、その撮像によりそのモノクロ画像を取得する。次のステップS16では、ステップS14でで登録済みのカラー画像の各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割する。そして、この分割させたパターン領域のうち所定のパターン領域に対してその形状の変形処理を行い、この分割、変形処理させた各パターン領域ごとに、プリント基板の検査時に使用する検査基準を作成する。
Next, each process of step S15 to step S17 in FIG. 5 will be described.
First, in step S15, the surface of a non-defective printed board is imaged once by the imaging device 2, and a monochrome image is acquired by the imaging. In the next step S16, the acquired monochrome image is divided into pattern areas by referring to the pattern areas of the color image registered in step S14. Then, a deformation process of the shape is performed on a predetermined pattern area among the divided pattern areas, and an inspection standard used when inspecting the printed circuit board is created for each of the divided and deformed pattern areas. .

その作成される検査基準は、後述のように基準画像データと許容範囲データである。ステップS17では、その作成された基準画像データと許容範囲データが、基準画像データメモリ5と許容範囲データメモリ6とにそれぞれ記憶される。
次に、図5に示すステップS12の処理の詳細は、図6のフローチャートに示す通りであるので、図6について説明する。
まず、テーブル1上に良品のプリント基板をセットしたのち、位置決め装置23の駆動によりフィルタプレート22を移動させて赤色レンズフィルタ221を使用するように設定する(ステップS21)。その後、モノクロカメラ21のオフセット・ゲインを設定したのち(ステップS22)、テーブル1を移動させてモノクロカメラ21でR画像を撮像する(ステップS23)。
The inspection standard created is standard image data and allowable range data as will be described later. In step S17, the created reference image data and allowable range data are stored in the reference image data memory 5 and the allowable range data memory 6, respectively.
Next, details of the processing in step S12 shown in FIG. 5 are as shown in the flowchart of FIG. 6, and FIG. 6 will be described.
First, after setting a non-defective printed circuit board on the table 1, the filter plate 22 is moved by driving the positioning device 23 so that the red lens filter 221 is used (step S21). Thereafter, after setting the offset / gain of the monochrome camera 21 (step S22), the table 1 is moved and an R image is captured by the monochrome camera 21 (step S23).

次に、緑色レンズフィルタ222を用いてモノクロカメラ21でG画像を撮像する。さらに、青色レンズフィルタ223を用いてモノクロカメラ21でB画像を撮像する。これにより、良品のプリント基板について、R画像、G画像、およびB画像の各データを取得する。
次のステップS24では、その取得したR画像、G画像、およびB画像の各データによりカラー画像を合成する際のR画像、G画像、およびB画像の各データの配合比を設定する。ステップS25では、その設定された配合比でカラー画像を合成する。さらに、ステップS26では、その合成させたカラー画像を表示装置10に表示させる。
Next, a G image is captured by the monochrome camera 21 using the green lens filter 222. Further, the B image is captured by the monochrome camera 21 using the blue lens filter 223. Thereby, each data of R image, G image, and B image is acquired about a good printed circuit board.
In the next step S24, a blending ratio of each data of the R image, the G image, and the B image when the color image is synthesized by the acquired data of the R image, the G image, and the B image is set. In step S25, a color image is synthesized with the set blending ratio. In step S26, the combined color image is displayed on the display device 10.

ステップS27では、その表示されたカラー画像が妥当であるいう指示があるか否かの判断を行う。そこで、操作者が、その表示装置10に表示されたカラー画像を見て、そのカラー画像が妥当と判断し、妥当である旨の指示を行うと、その処理が終了する。一方、妥当である旨の指示がない場合には、ステップS21に戻る。
次に、図5に示すステップS13の処理の詳細は、図7のフローチャートに示す通りであるので、図7について説明する。
In step S27, it is determined whether or not there is an instruction that the displayed color image is valid. Therefore, when the operator views the color image displayed on the display device 10 and determines that the color image is valid, and gives an instruction that the color image is valid, the processing ends. On the other hand, when there is no instruction to the effect, the process returns to step S21.
Next, details of the process of step S13 shown in FIG. 5 are as shown in the flowchart of FIG. 7, and therefore FIG. 7 will be described.

まず、ステップS31では、図6のような手順で作成された良品のプリント基板のカラー画像から、配線パターン領域(パッド領域を含む)、レジスト領域、シルク領域、および非検査領域の色情報をサンプリングする。次のステップS32では、そのサンプリングした色を基準色として、カラー画像を4つの基準色で構成される画像に変換する(減色処理)。この減色処理により、配線パターン領域(パッド領域を含む)、レジスト領域、シルク領域、および非検査領域は、その各基準色に応じた色となる。次のステップS33では、その減色された画像からノイズの画素を除去し、各パターン領域に分割された基本画像が完成する。   First, in step S31, the color information of the wiring pattern area (including the pad area), the resist area, the silk area, and the non-inspection area is sampled from the color image of the non-defective printed board created by the procedure shown in FIG. To do. In the next step S32, the color image is converted into an image composed of four reference colors using the sampled color as a reference color (color reduction process). By this color reduction processing, the wiring pattern region (including the pad region), the resist region, the silk region, and the non-inspection region become colors corresponding to the respective reference colors. In the next step S33, noise pixels are removed from the reduced color image, and a basic image divided into pattern areas is completed.

次のステップS34では、その基本画像を元に、各パターン領域に適した検査を行うために、その分割させた各パターン領域の形状を以下のように変形処理させる。
まず、シルク領域は、個々のプリント基板においてその位置のばらつきが大きいので、そのばらつきがあってもシルク領域内に入るように、その形状を実際の形状よりも膨張させる。
また、非検査領域は、プリント基板の端部などを検査領域から外すために、その形状を実際の形状よりも膨張させる。
さらに、配線パターン領域(パッド領域)は、厳しい検査が要求されるのが一般的であるので、レジストとの境界の微妙なばらつきにより検査の際に間違ったデータとなってしまうおそれがある。これを避けるために、配線パターン領域(パッド領域)の形状は実際の形状よりも縮小させる。
In the next step S34, in order to perform inspection suitable for each pattern area based on the basic image, the shape of each divided pattern area is subjected to deformation processing as follows.
First, since the position of the silk region varies greatly among individual printed circuit boards, the shape of the silk region is expanded more than the actual shape so as to enter the silk region even if the variation exists.
In addition, the non-inspection area is expanded more than the actual shape in order to remove the end of the printed circuit board from the inspection area.
Furthermore, since the wiring pattern region (pad region) is generally required to be subjected to strict inspection, there is a possibility that incorrect data may be generated during inspection due to a slight variation in the boundary with the resist. In order to avoid this, the shape of the wiring pattern region (pad region) is made smaller than the actual shape.

また、レジスト領域は、上記のような不都合が生じにくいので、他の領域のように形状の膨張や縮小は行わない。
ステップS35では、フィルタプレート22を移動させて透明のレンズフィルタ224を使用するように設定する。
次に、図5に示すステップS15およびステップS16の処理の詳細は、図8および図9のフローチャートに示す通りであるので、図8および図9について説明する。
In addition, the resist region is unlikely to cause the above-described inconveniences, and thus the shape is not expanded or reduced unlike other regions.
In step S35, the filter plate 22 is moved so that the transparent lens filter 224 is used.
Next, details of the processing of step S15 and step S16 shown in FIG. 5 are as shown in the flowcharts of FIGS. 8 and 9, and therefore FIG. 8 and FIG. 9 will be described.

まず、目視検査により良品と判断したプリント基板を用意し、そのプリント基板の表面の画像を基準画像として撮像装置2で撮像し、モノクロからなる基準画像を取得する(ステップS41)。
次に、後述のように得られる基準画像の各画素の濃度値の許容範囲を決めるべき許容差データの初期値を入力装置9で設定し、または予め設定されているその許容差データの初期値をを取得する(ステップS42)。この結果、その許容差データの初期値が、基準画像データと同サイズで許容差データメモリ6の各アドレスに記憶される。例えば、その許容差データとして、例えば「10」という値が設定されると、その同じ値が各許容差データメモリ6の各アドレスに一律に記憶される。
First, a printed circuit board that is determined to be non-defective by visual inspection is prepared, and an image of the surface of the printed circuit board is captured by the imaging device 2 as a reference image to obtain a monochrome reference image (step S41).
Next, an initial value of tolerance data for determining an allowable range of the density value of each pixel of the reference image obtained as described later is set by the input device 9, or an initial value of the preset tolerance data is set. Is acquired (step S42). As a result, the initial value of the tolerance data is stored in each address of the tolerance data memory 6 with the same size as the reference image data. For example, when a value of “10” is set as the tolerance data, for example, the same value is uniformly stored in each address of each tolerance data memory 6.

次に、表示装置10に表示されているモノクロの基準画像に対して、検査対象領域を、入力装置9を用いて操作者が設定する(ステップS43)。さらに、操作者はその基準画像を見ながら、入力装置9を用いて後述の更新用画像と基準画像との位置合わせのための位置合わせ基準マークを、基準画像内の任意の位置に設定する(ステップS44)。
次のステップS45では、操作者からモノクロの基準画像の作成の指示の有無が判定され、その指示があると次のステップS46に移行する。
Next, the operator sets an inspection target region for the monochrome reference image displayed on the display device 10 using the input device 9 (step S43). Furthermore, the operator sets an alignment reference mark for alignment between an update image and a reference image, which will be described later, at an arbitrary position in the reference image using the input device 9 while viewing the reference image ( Step S44).
In the next step S45, it is determined whether or not there is an instruction to create a monochrome reference image from the operator, and if there is an instruction, the process proceeds to the next step S46.

ステップS46では、パターン領域データメモリ4に登録されている各パターン領域のデータを参照し、ステップS41で取得したモノクロ基準画像を各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域に対して形状を変形させる。
この例では、その変形処理は、その分割させたパターン領域のうちシルク領域を膨張させる場合について説明する。このため、ステップS47では、その分割、膨張処理されたモノクロの基準画像の各画素の濃度値(基準画像データ)を、各画素ごとに基準画像データメモリ5のアドレスに順次記憶する。この基準画像とその各画素の濃度値の一例を示すと、図11(A)に示すようになる。なお、図中の各画素中の数値は、各画素の濃度値を示す。
In step S46, the data of each pattern area registered in the pattern area data memory 4 is referred to divide the monochrome reference image acquired in step S41 into each pattern area, and a predetermined pattern among the divided pattern areas. The shape is changed with respect to the region.
In this example, the deformation process will be described in the case where the silk area is expanded among the divided pattern areas. Therefore, in step S47, the density value (reference image data) of each pixel of the monochrome reference image subjected to the division and expansion processing is sequentially stored at the address of the reference image data memory 5 for each pixel. An example of the reference image and the density value of each pixel is as shown in FIG. In addition, the numerical value in each pixel in a figure shows the density value of each pixel.

引き続き、基準画像データメモリ5に記憶される基準画像の各画素の濃度値を書き換えるために、2枚目の良品のプリント基板を撮像装置2で撮像し、その撮像して得たモノクロの更新用画像の各画素の濃度値(更新用画像データ)を、画像処理装置3が有する画像メモリに記憶する(ステップS48)。
次のステップS49では、ステップS48で取得した更新用画像と基準画像データメモリ5に登録される基準画像の位置ずれの補正を、上記で設定した位置合わせ基準マークを基準に補正する。
Subsequently, in order to rewrite the density value of each pixel of the reference image stored in the reference image data memory 5, the second non-defective printed board is imaged by the imaging device 2, and the monochrome update obtained by the imaging is performed. The density value (update image data) of each pixel of the image is stored in the image memory included in the image processing device 3 (step S48).
In the next step S49, the positional deviation between the update image acquired in step S48 and the reference image registered in the reference image data memory 5 is corrected based on the alignment reference mark set above.

次のステップS50では、パターン領域データメモリ4に登録されている各パターン領域のデータを参照して、ステップS48で取得したモノクロの更新用画像を各パターン領域に分割し、この分割させたパターン領域のうちシルク領域についてはその形状を膨張させる。
次のステップS51では、ステップS50で得られた更新用画像の各画素の濃度値が、許容範囲内に属するか否かを判定する。この判定結果に基づき、更新用画像中から濃度値が許容範囲外の画素を抽出する。
In the next step S50, with reference to the data of each pattern area registered in the pattern area data memory 4, the monochrome update image acquired in step S48 is divided into each pattern area, and this divided pattern area is divided. Among them, the shape of the silk region is expanded.
In the next step S51, it is determined whether or not the density value of each pixel of the update image obtained in step S50 is within the allowable range. Based on this determination result, pixels whose density value is outside the allowable range are extracted from the update image.

上記の判定は、図10に示すように、基準画像の各画素の濃度値を中央値とし、この中央値の上下に設定される許容範囲内に属するか否かを判定することにより行う。
ここで、許容範囲に係る許容差範囲は、次の(1)式で求めるものとする。
許容差範囲=許容差データ+(a〔%〕×許容差データ+b)・・・・(1)
(1)式において、許容差データは許容差データメモリ6に記憶される値である。また、(1)式中の( )内は許容差パラメータを示し、aは許容差データを補正するための補正係数、bは許容差データを補正するための補正値(絶対値)であり、a、bは入力装置9から任意の値として予め設定されている。
As shown in FIG. 10, the above determination is performed by determining whether the density value of each pixel of the reference image is a median value and whether the pixel falls within an allowable range set above and below the median value.
Here, the tolerance range related to the tolerance range is obtained by the following equation (1).
Tolerance range = Tolerance data + (a [%] × Tolerance data + b) (1)
In equation (1), the tolerance data is a value stored in the tolerance data memory 6. In (1), () indicates a tolerance parameter, a is a correction coefficient for correcting the tolerance data, b is a correction value (absolute value) for correcting the tolerance data, a and b are preset from the input device 9 as arbitrary values.

例えば、基準画像の画素の濃度値が「100」、許容差データの値を「10」、aを「10%」、bを「10」とすると、許容差範囲は「21」となり、その許容範囲は「±21」となる(図10参照)。
次に、更新用画像の各画素のうち、その濃度値が許容範囲外の画素を判定して抽出する具体的な手順の一例について、図11および図12を参照して説明する。
まず、図11に示すように、同図(A)に示す基準画像の各画素の濃度値と、同図(B)に示す今回の更新用画像の各画素の濃度値との間で減算を行い、同図(C)に示すような各画素ごとの差分データを求める。
次に、図12に示すように、(1)式により算出した許容差範囲のデータ(同図の(A)と(B))と、同図(C)に示すように上記で求めた差分データとの間で減算を行い、各画素ごとの差分データ(図示せず)を求める。
For example, if the pixel density value of the reference image is “100”, the tolerance data value is “10”, a is “10%”, and b is “10”, the tolerance range is “21” and the tolerance The range is “± 21” (see FIG. 10).
Next, an example of a specific procedure for determining and extracting a pixel whose density value is outside the allowable range among the pixels of the update image will be described with reference to FIGS. 11 and 12.
First, as shown in FIG. 11, subtraction is performed between the density value of each pixel of the reference image shown in FIG. 11A and the density value of each pixel of the current update image shown in FIG. Then, the difference data for each pixel as shown in FIG.
Next, as shown in FIG. 12, the tolerance range data calculated by equation (1) ((A) and (B) in FIG. 12) and the difference obtained above as shown in FIG. 12 (C). Subtraction is performed with the data to obtain difference data (not shown) for each pixel.

図12では、説明をわかりやすくするために、その許容差範囲のデータを、同図(A)に示すような許容差データメモリ6に記憶される許容差データと、同図(B)に示すような(1)式中の括弧内に対応する許容差パラメータ値とに分割して表示している。ここで、図12(B)の許容差パラメータは、a=10%、b=10として求めた値である。
さらに、その求めた各画素ごとの差分データの値について、正負の判定を行う。この判定結果は、例えば図12(D)に示すようになる。
In FIG. 12, for the sake of easy understanding, the data of the tolerance range is shown in FIG. 12B and tolerance data stored in the tolerance data memory 6 as shown in FIG. Such a tolerance parameter value is divided and displayed in parentheses in the equation (1). Here, the tolerance parameter in FIG. 12B is a value obtained with a = 10% and b = 10.
Further, positive / negative determination is performed on the obtained difference data value for each pixel. This determination result is, for example, as shown in FIG.

ここで、図12(D)において、判定結果が「正」の場合には、更新用画像の画素の濃度値が許容範囲内に属することを意味し、「負」の場合には、それが許容範囲内に属さないことを意味する。
ところで、上述のステップS51の判定処理の結果、更新用画像の各画素の濃度値が、全て許容範囲内に属する場合には、次のステップS53に進み、表示装置10に正常である旨の表示を行う。
Here, in FIG. 12D, when the determination result is “positive”, it means that the density value of the pixel of the update image belongs within the allowable range, and when it is “negative”, It means not belonging to the allowable range.
By the way, as a result of the determination process in step S51 described above, if all the density values of the pixels of the update image are within the allowable range, the process proceeds to the next step S53, and a display indicating that the display device 10 is normal. I do.

一方、更新用画像の各画素の濃度値に、許容範囲内に属さないものがある場合、すなわち、図12(D)に示すように「負」を示す画素がある場合には、次のステップS52に進む。ステップS52では、その「負」を示す画素の8近傍の連結個数が所定値(例えば8個)以上か否かを判定する。
この判定の結果、その画素の8近傍の連結個数が所定値以上の場合には、表示装置10に表示されている更新用画像において、その画素の連結個数が所定個以上の部分に異常である旨を示すマーキング表示を行う(ステップS54)。このときには、表示装置10に、更新用画像が異常である旨の表示を併せて行う。一方、その画素の8近傍の連結個数が所定値以下の場合には、ステップS53に進む。
On the other hand, when there is a density value of each pixel of the update image that does not belong within the allowable range, that is, when there is a pixel indicating “negative” as shown in FIG. Proceed to S52. In step S52, it is determined whether or not the number of connected pixels in the vicinity of the “negative” pixel is equal to or greater than a predetermined value (for example, 8).
As a result of the determination, if the number of connected pixels in the vicinity of 8 is equal to or greater than a predetermined value, the number of pixels connected in the update image displayed on the display device 10 is abnormal in a portion of the predetermined number or more. Marking display indicating that is performed (step S54). At this time, the display device 10 also displays that the update image is abnormal. On the other hand, if the number of connections in the vicinity of the pixel is equal to or smaller than the predetermined value, the process proceeds to step S53.

次のステップS55では、更新用画像のデータを外部記憶装置7に登録する旨の指示が入力装置9からあるか否かを判定し、登録する旨の指示があるとステップS56に進み、登録する旨の指示がないとステップS61に進む。
次のステップS56では、基準画像データメモリ5に記憶される基準画像の濃度値と、許容差データメモリ6に記憶される許容差データとのうち、上述のように抽出された画素に対応する濃度値と許容差データとを、以下のような手順によりそれぞれ更新する。
これは、上記のように登録された更新用画像には、上述のように抽出された濃度値が異常な画素が含まれるので、その画素の濃度値も許容範囲内となるようにする必要があるためである。
In the next step S55, it is determined whether or not there is an instruction from the input device 9 to register the image data for update in the external storage device 7. If there is an instruction to register, the process proceeds to step S56 and is registered. If there is no instruction to that effect, the process proceeds to step S61.
In the next step S56, among the density value of the reference image stored in the reference image data memory 5 and the tolerance data stored in the tolerance data memory 6, the density corresponding to the pixel extracted as described above. The value and tolerance data are updated according to the following procedure.
This is because the update image registered as described above includes a pixel having an abnormal density value extracted as described above, and it is therefore necessary that the density value of the pixel be within an allowable range. Because there is.

次に、そのような画素の基準画像の濃度値と、許容差データとの更新処理について詳述する。
いま、更新用画像の画素のうち、その濃度値が許容範囲外の画素の濃度値をzとし、それに対応する更新前の基準画像の画素の濃度値をx、許容差データの値をyとする。
そして、図13に示すように、更新用画像の画素の濃度値zが、上限値(x+y)を上回る場合には、更新後の基準画像の濃度値x’と許容差データの値y’を次の(2)式および(3)式により求めるものとする。
x’=〔z+(x−y〕/2・・・・(2)
y’=z−x’ ・・・・(3)
ここで、いま、図7に示すように、例えばx=100、y=10、z=150とすると、x’=120、y’=30となる。
Next, update processing of the density value of the reference image of such pixels and the tolerance data will be described in detail.
Now, among the pixels of the image for update, the density value of the pixel whose density value is outside the allowable range is z, the density value of the corresponding pixel of the reference image before the update is x, and the value of the tolerance data is y. To do.
As shown in FIG. 13, when the density value z of the pixel of the update image exceeds the upper limit value (x + y), the updated reference image density value x ′ and the tolerance data value y ′ are set. It is determined by the following formulas (2) and (3).
x ′ = [z + (xy) / 2 (2)
y ′ = z−x ′ (3)
Here, as shown in FIG. 7, if x = 100, y = 10, and z = 150, for example, x ′ = 120 and y ′ = 30.

一方、図14に示すように、更新用画像の濃度値zが、下限値(x−y)を下回る場合には、更新後の基準画像の濃度値x’と許容差データの値y’を次の(4)式および(5)式により求めるものとする。
x’=〔z+(x+y〕/2・・・・(4)
y’=x’−z ・・・・(5)
ここで、いま、図14に示すように、例えばx=100、y=10、z=20とすると、x’=65、y’=45となる。
このようにして基準画像データメモリ5の内容は、図11(A)に示す内容から図15(A)に示す内容に更新され、同様に、許容差データメモリ6の内容は、図11(A)に示す内容から図15(B)に示す内容に更新される。
On the other hand, as shown in FIG. 14, when the density value z of the update image is lower than the lower limit (xy), the updated density value x ′ of the reference image and the tolerance data value y ′ are set. It is determined by the following formulas (4) and (5).
x ′ = [z + (x + y] / 2 (4)
y ′ = x′−z (5)
Here, as shown in FIG. 14, if x = 100, y = 10, and z = 20, for example, x ′ = 65 and y ′ = 45.
In this way, the contents of the reference image data memory 5 are updated from the contents shown in FIG. 11A to the contents shown in FIG. 15A. Similarly, the contents of the tolerance data memory 6 are changed to those shown in FIG. ) To the contents shown in FIG. 15B.

ところで、プリント基板の表面パターンは、プリント基板ごとに差異(ずれ)があるので、プリント基板の良否の検査の精度を上げるためには、良品のプリント基板を撮像した画像データを多数登録して使用する必要がある。
その一方、画像データの登録を少なくして精度の良いプリント基板の検査ができるようにするためには、登録した画像データについて、許容範囲(許容差データ)を疑似的に広げるようにすれば良い。
By the way, the surface pattern of the printed circuit board has a difference (shift) for each printed circuit board. Therefore, in order to increase the accuracy of the inspection of the printed circuit board, a large number of image data obtained by imaging a non-defective printed circuit board is registered and used. There is a need to.
On the other hand, in order to reduce the registration of the image data and enable the inspection of the printed circuit board with high accuracy, the allowable range (tolerance data) may be broadened in a pseudo manner for the registered image data. .

そこで、この実施形態では、画像の1画素の大きさが0.05mm×0.05mmであることを利用し、更新用画像を基準画像に対して、所定方向に所定量ずらし、これに基づいて許容差データメモリ6に記憶される許容差データのみを更新するようにしたので、以下この手順について詳細に説明する。
まず、ステップS57では、図11(B)に示す更新用画像を、図11(A)に示す基準画像に対して所定方向(例えば右方向)に所定量(例えば1画素分)ずらすと、図16(A)に示すようなずらし画像が得られる。
Therefore, in this embodiment, using the fact that the size of one pixel of the image is 0.05 mm × 0.05 mm, the update image is shifted by a predetermined amount in a predetermined direction with respect to the reference image, and based on this. Since only the tolerance data stored in the tolerance data memory 6 is updated, this procedure will be described in detail below.
First, in step S57, when the update image shown in FIG. 11B is shifted by a predetermined amount (for example, one pixel) in a predetermined direction (for example, rightward) with respect to the reference image shown in FIG. A shifted image as shown in 16 (A) is obtained.

次のステップS58では、そのずらした更新用画像の各画素の濃度値が、許容範囲内に属するか否かの判定を行い、その許容範囲内に属しない画素を抽出する。すなわち、図15(A)に示す更新後の基準画像の濃度値と、図16(A)のずらした画像の濃度値との間で差分演算を行い、図16(B)に示すような差分データを得る。次に、その求めた差分データに基づき、上記と同様に、許容範囲外の画素を抽出すると、その画素ごとの抽出結果(判定結果)は図16(C)に示すようになる。
ところで、そのずらした更新用画像には、上記のように濃度値が異常な画素が含まれるので、その異常な部分の濃度値も許容範囲内となるようにする必要がある。そのため、ステップS59では、許容差データメモリ6に記憶される許容差データのみを、以下のような手順により更新する。
In the next step S58, it is determined whether or not the density value of each pixel of the shifted update image belongs to the allowable range, and pixels that do not belong to the allowable range are extracted. That is, a difference calculation is performed between the density value of the updated reference image shown in FIG. 15A and the density value of the shifted image in FIG. 16A, and the difference as shown in FIG. Get the data. Next, when pixels outside the allowable range are extracted based on the obtained difference data, the extraction result (determination result) for each pixel is as shown in FIG.
By the way, since the shifted update image includes pixels having an abnormal density value as described above, it is necessary to set the density value of the abnormal portion within the allowable range. Therefore, in step S59, only the tolerance data stored in the tolerance data memory 6 is updated by the following procedure.

すなわち、そのずらした更新用画像の画素のうち、その濃度値が許容範囲外の画素の濃度値をz、それに対応する更新後の基準画像の画素の濃度値をx’とする。そして、更新用画像の画素の濃度値zが、x’を上回る場合には、更新後の許容差データの値y’を次の(6)式により求めるものとする。
y’=z−x’・・・・(6)
ここで、例えば、z=101、x’=20とすると、y’=81となる。
一方、更新用画像の濃度値zが、x’を下回る場合には、更新後の許容差データの値y’を次の(7)式により求めるものとする。
y’=x’−z・・・・(7)
このようにして再更新された許容差データの一例を示すと、図16(D)に示すようになる。
That is, among the shifted pixels of the update image, the density value of a pixel whose density value is outside the allowable range is z, and the corresponding density value of the pixel of the updated reference image is x ′. When the density value z of the pixel of the update image exceeds x ′, the updated tolerance data value y ′ is obtained by the following equation (6).
y ′ = z−x ′ (6)
Here, for example, if z = 101 and x ′ = 20, y ′ = 81.
On the other hand, when the density value z of the update image is lower than x ′, the updated tolerance data value y ′ is obtained by the following equation (7).
y ′ = x′−z (7)
An example of the tolerance data re-updated in this way is as shown in FIG.

次のステップS60では、設定された所定方向の全てに対して更新用画像のずらしに基づく許容差データの更新が終了したか否かが判定される。この判定の結果、許容差データの更新が終了していない場合には、ステップS57に戻る。そして、図11(B)に示す更新用画像を、図11(A)に示す基準画像に対して例えば左方向にずらし、上記と同様の手順により許容差データを更新する(ステップS57〜S59)。   In the next step S60, it is determined whether or not the update of the tolerance data based on the shift of the update image has been completed for all of the set predetermined directions. If the result of this determination is that update of tolerance data has not been completed, processing returns to step S57. Then, the update image shown in FIG. 11B is shifted, for example, to the left with respect to the reference image shown in FIG. 11A, and the tolerance data is updated by the same procedure as above (steps S57 to S59). .

このようにして、例えば、更新用画像の基準画像に対して所定量ずらす方向を、左方向、右方向、前方向、後方向、右斜め上方向、右斜め下方向、左斜め上方向、および左斜め下方向の8方向について行い、その各方向における許容差データの更新を終了すると(ステップS60)、次のステップS61に進む。
次のステップS61では、上記の一連の処理の終了指示があるか否かが判定される。この判定の結果、その指示がない場合には、ステップS48に戻り、上記の一連の処理を行う。一方、その指示がある場合には、上記の一連の処理を終了する。
In this way, for example, the direction shifted by a predetermined amount with respect to the reference image of the update image is the left direction, the right direction, the front direction, the rear direction, the upper right diagonal direction, the lower right diagonal direction, the upper left diagonal direction, and This is performed in the eight diagonally downward directions, and when updating of tolerance data in each direction is completed (step S60), the process proceeds to the next step S61.
In the next step S61, it is determined whether or not there is an instruction to end the series of processes. If the result of this determination is that there is no instruction, processing returns to step S48 and the above-described series of processing is performed. On the other hand, if there is an instruction, the above series of processing is terminated.

この実施形態では、このようにして更新された基準画像データと許容差データを使用し、検査対象であるプリント基板の良否の検査を行う。そこで、次にそのプリント基板の検査の処理手順を、図17に示すフローチャートを参照して説明する。
まず、上記のようにして取得した、パターン領域の分割のために使用するパターン領域用データ、更新済みの基準画像データ、および許容差データを、パターン領域データメモリ4、基準画像データメモリ5、および許容差データメモリ6にそれぞれ格納する(ステップS71)。
In this embodiment, the quality of the printed circuit board to be inspected is inspected using the reference image data and tolerance data updated in this way. Then, the processing procedure of the printed circuit board inspection will be described with reference to the flowchart shown in FIG.
First, pattern area data, updated reference image data, and tolerance data used for dividing a pattern area, acquired as described above, are stored in a pattern area data memory 4, a reference image data memory 5, and Each is stored in the tolerance data memory 6 (step S71).

次に、ステップS72では、検査対象のプリント基板の表面の画像を撮像装置2で撮像し、その撮像して得たモノクロの検査画像を、画像処理装置3内の画像メモリ内に取得する。次のステップS73では、このように取得した検査画像を表示装置8に表示し、基準画像の位置合わせマークを基準に位置補正する(ステップS73)。
ステップS74では、パターン領域データメモリ4に登録されている各パターン領域のデータを参照し、ステップS72で取得したモノクロの検査画像を各パターン領域に分割する。そして、ステップS75では、その分割させたパターン領域のうちシルク領域の形状を膨張させ、この分割、膨張処理をさせた検査画像の各画素の濃度値を、検査画像データとして画像処理装置3の画像メモリ内に記憶する。
Next, in step S <b> 72, an image of the surface of the printed circuit board to be inspected is picked up by the image pickup device 2, and a monochrome inspection image obtained by the image pickup is acquired in the image memory in the image processing device 3. In the next step S73, the inspection image acquired in this way is displayed on the display device 8, and the position is corrected based on the alignment mark of the reference image (step S73).
In step S74, the data of each pattern area registered in the pattern area data memory 4 is referred to divide the monochrome inspection image acquired in step S72 into each pattern area. In step S75, the shape of the silk region of the divided pattern region is expanded, and the density value of each pixel of the inspection image subjected to the division and expansion processing is used as the inspection image data. Store in memory.

次いで、検査画像の各画素の濃度値と、対応する基準画像の各画素の濃度値との間で差分演算を行い、差分データを求める(ステップS76)。さらに、その各差分データを比較するために、許容差範囲を次の(8)式のより算出する(ステップS25)。
許容差範囲=許容差データ+(c〔%〕×許容差データ+d)・・・・(8)
(8)式において、許容差データは許容差データメモリ6に記憶される値である。また、(8)式中の( )内は許容差パラメータであり、cは許容差データを補正するための補正係数、dは許容差データを補正するための補正値(絶対値)であり、c、dは入力装置9から任意の値として予め設定されている。
Next, a difference calculation is performed between the density value of each pixel of the inspection image and the density value of each pixel of the corresponding reference image to obtain difference data (step S76). Further, in order to compare the difference data, a tolerance range is calculated from the following equation (8) (step S25).
Tolerance range = Tolerance data + (c [%] × Tolerance data + d) (8)
In equation (8), the tolerance data is a value stored in the tolerance data memory 6. In (8), the parentheses are the tolerance parameters, c is a correction coefficient for correcting the tolerance data, d is a correction value (absolute value) for correcting the tolerance data, c and d are preset as arbitrary values from the input device 9.

次に、その求めた許容差範囲と差分データの比較を行う(ステップS78)。この比較の結果、差分データが許容差範囲よりも大きな場合には、その差分データにかかる画素を不一致画素(異常画素)として記憶する(ステップS79)。一方、差分データが許容差範囲よりも小さい場合には、次のステップS80に進む。
以上のステップS76〜ステップS79の各処理を、検査画像の画素の最終アドレスまで継続し、最終アドレスであると判断されると(ステップS80)、次のステップS81に移行する。
Next, the obtained tolerance range is compared with the difference data (step S78). As a result of the comparison, if the difference data is larger than the allowable difference range, the pixel related to the difference data is stored as a mismatched pixel (abnormal pixel) (step S79). On the other hand, if the difference data is smaller than the tolerance range, the process proceeds to the next step S80.
The processes in steps S76 to S79 are continued until the final address of the pixel of the inspection image. If it is determined that the final address is set (step S80), the process proceeds to the next step S81.

ステップS81では、その不一致画素が、設定個数以上連結するか否かを判定する。この判定の結果、不一致画素が設定個数以上連結する場合には、表示装置10においてプリント基板が不良品である旨の表示を行うとともに、その不一致画素をマーキング表示する(ステップS82)。一方、不一致画素が設定個数以上連結しない場合には、表示装置10においてプリント基板が良品である旨の表示を行う(ステップS83)。   In step S81, it is determined whether or not the disagreement pixels are connected by a set number or more. As a result of this determination, if the number of mismatched pixels is more than the set number, the display device 10 displays that the printed circuit board is defective and displays the mismatched pixels by marking (step S82). On the other hand, when the mismatched pixels are not connected more than the set number, the display device 10 displays that the printed circuit board is non-defective (step S83).

次のステップS84では、プリント基板の検査の終了の指示があったか否かが判定される。その指示があるまでステップS72からステップS83までの各処理を繰り返し、その指示があったことが判定されると、プリント基板の検査を終了する。
なお、以上の動作説明では、検査対象をプリント基板とした場合について説明してきたが、検査対象をIC基板として場合も、上記の手順で検査することができる。ただし、プリント基板の場合には、シルク領域の形状を膨張させたが、IC基板の場合には、膨張させるのは文字などの印刷領域である。
In the next step S84, it is determined whether or not there is an instruction to end the inspection of the printed circuit board. Each process from step S72 to step S83 is repeated until the instruction is given. When it is determined that the instruction is given, the inspection of the printed circuit board is finished.
In the above description of the operation, the case where the inspection target is a printed board has been described. However, even when the inspection target is an IC substrate, the inspection can be performed according to the above procedure. However, in the case of a printed circuit board, the shape of the silk area is expanded, but in the case of an IC board, the expanded area is a printing area for characters and the like.

以上説明したように、この実施形態によれば、良品のプリント基板のカラー画像を取得し、この取得したカラー画像を色の差異を利用して各パターン領域に分割するとともに、この分割させたパターン領域に対してその特性に応じてその形状を変形処理し、これを登録するようにした。次に、良品のプリント基板のモノクロ画像を取得し、その登録済みの各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させたパターン領域に対してその形状を変形処理し、この分割、変形処理させた各パターン領域ごとに、プリント基板の検査時に使用する検査基準を作成し、これを登録するようにした。このため、この実施形態によれば、プリント基板の検査の開始に先立って用意すべき検査基準の作成時間を大幅に短縮が可能である。   As described above, according to this embodiment, a color image of a non-defective printed circuit board is acquired, and the acquired color image is divided into each pattern area using a color difference, and the divided pattern is obtained. The shape of the region is deformed according to its characteristics, and this is registered. Next, a monochrome image of a non-defective printed circuit board is obtained, the obtained monochrome image is divided into each pattern area with reference to each registered pattern area, and the shape of the divided pattern area is defined. For each pattern area subjected to the deformation process, the inspection standard used for the inspection of the printed circuit board is created and registered. For this reason, according to this embodiment, it is possible to greatly shorten the time for creating the inspection standard to be prepared prior to the start of the inspection of the printed circuit board.

また、この実施形態では、プリント基板の検査時には、検査対象のプリント基板のモノクロ画像を取得し、その登録済みの各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させたパターン領域に対してその形状を変形処理し、この分割、変形処理させた各パターン領域の欠陥の有無の検査を、その登録済みの各パターン領域ごとの検査基準を用いて行うようにした。   Further, in this embodiment, when inspecting a printed circuit board, a monochrome image of the printed circuit board to be inspected is acquired, and the acquired monochrome image is divided into each pattern area by referring to each registered pattern area. The shape of the divided pattern area is subjected to deformation processing, and the inspection of the presence / absence of defects in each of the divided and deformed pattern areas is performed using the inspection standard for each registered pattern area. did.

このため、この実施形態によれば、そのプリント基板の検査精度を大幅に向上できる。具体的には、特定の領域(例えばパッド領域)の不良検出精度が向上でき、従来検出が不能であった不良を検出できる。例えば、φ0.6程度のBGA(Ball Grid Arrey)のパッド上における0.2mm角程度の不良が、従来の検査機では、許容がつきすぎて検出できない、あるいは、虚報が大量に発生してしまうという不具合があったが、この実施形態では、虚報が発生することなく検出できる。   For this reason, according to this embodiment, the inspection accuracy of the printed circuit board can be greatly improved. Specifically, the defect detection accuracy of a specific area (for example, a pad area) can be improved, and a defect that could not be detected conventionally can be detected. For example, a defect of about 0.2 mm square on a BGA (Ball Grid Array) pad of about φ0.6 cannot be detected with a conventional inspection machine, or a large amount of misinformation occurs. However, in this embodiment, it can be detected without generating false information.

さらに、この実施形態では、上記のように、プリント基板などの印刷物の検査時に必要な検査基準を作成する場合に、印刷物のカラー画像とモノクロ画像とを使用し、プリント基板の検査のときに、はモノクロ画像を使用してその良否を判定するようにした。すなわち、この実施形態では、カラー画像を使用するのは検査基準の作成時だけで、プリント基板の検査時にはモノクロ画像のみを使用するようにした。   Furthermore, in this embodiment, as described above, when creating an inspection standard necessary when inspecting a printed matter such as a printed board, a color image and a monochrome image of the printed matter are used, and when inspecting a printed board, Uses a monochrome image to determine its quality. That is, in this embodiment, the color image is used only when the inspection standard is created, and only the monochrome image is used when the printed circuit board is inspected.

このため、この実施形態によれば、検査時にカラー画像を使用する場合に比べ、その処理する情報量を1/3にすることができる上に判定処理が容易になり、検査時間を大幅に短縮できる。
また、この実施形態では、上記のように、プリント基板などの印刷物の検査時に必要な検査基準を、良品のプリント基板などのカラー画像とモノクロ画像とを使用することにより各パターン領域ごとに作成するようにした。これに対して、その検査基準をプリント基板などの設計データに基づいて作成することが可能である。
For this reason, according to this embodiment, the amount of information to be processed can be reduced to 1/3, and the determination process can be facilitated, and the inspection time can be greatly shortened, compared to the case of using a color image at the time of inspection. it can.
Further, in this embodiment, as described above, an inspection standard necessary for inspecting a printed matter such as a printed circuit board is created for each pattern region by using a color image and a monochrome image such as a non-defective printed circuit board. I did it. In contrast, the inspection standard can be created based on design data such as a printed circuit board.

しかし、プリント基板などでは、良品であってもその仕上がりにばらつきがあるので、この実施形態のように、良品のプリント基板を撮像した画像に基づいて作成した方が好ましい。また、設計データから検査基準を作成するのは、相当の技術が必要である上にその作業が複雑であるが、この実施形態によればそのような不具合がない。
さらに、この実施形態では、テーブル1の表面色、すなわち、プリント基板など印刷物のカラー画像の取得時の背景色を、印刷物に含まれる色以外の色であって、RGB色立体で表現した場合に印刷物に含まれる色からできるだけ離れている領域に属する色にするようにした。このため、この実施形態によれば、プリント基板のカラー画像を用いてその検査領域と非検査領域を認識する際に、その非検査領域を容易に認識できる。
However, since a printed board or the like has a variation in finish even if it is a non-defective product, it is preferable that the printed board is created based on an image obtained by imaging a non-defective printed circuit board. Moreover, creating an inspection standard from design data requires a considerable amount of technology and is complicated in work, but according to this embodiment, there is no such problem.
Furthermore, in this embodiment, when the surface color of the table 1, that is, the background color at the time of obtaining a color image of a printed material such as a printed board, is a color other than the color included in the printed material and is expressed in an RGB color solid. Colors that belong to areas that are as far away as possible from colors included in printed materials. For this reason, according to this embodiment, when the inspection area and the non-inspection area are recognized using the color image of the printed circuit board, the non-inspection area can be easily recognized.

次に、本発明の他の実施形態の構成について、図19、図20、および21を参照して説明する。
図1〜図3で説明した実施形態は、印刷物であるプリント基板をテーブル1上に静止させ、テーブル1を移動させるようにしてプリント基板の画像を撮像装置2で撮像するようにしたものである。
これに対して、図19〜図21に示す他の実施形態は、印刷物であるプリント基板aを、傾斜板31に沿わせて搬送装置32で搬送させ、その搬送中に傾斜板31に設けたスリット33を介して撮像装置2で撮像するようにしたものである。
Next, the configuration of another embodiment of the present invention will be described with reference to FIGS. 19, 20, and 21.
In the embodiment described with reference to FIGS. 1 to 3, a printed circuit board, which is a printed product, is stopped on the table 1, and the image of the printed circuit board is captured by the imaging device 2 as the table 1 is moved. .
On the other hand, in another embodiment shown in FIGS. 19 to 21, the printed circuit board a which is a printed matter is transported by the transport device 32 along the inclined plate 31, and provided on the inclined plate 31 during the transport. The image is picked up by the image pickup device 2 through the slit 33.

傾斜板31は、その平面が基台34の平面に対して所定の傾斜角θを有するように配置されている。ここで傾斜角θは、例えば70度〜85度の範囲である。搬送装置32は、プリント基板aを傾斜板31の表面側に沿わせた状態で搬送させるようになっている。傾斜板31の裏側であって、スリット35の長さ方向に向けて、そのスリット35を照明する蛍光灯36が配置されている。基台34上には、図1、図2および図18と同様に構成される撮像装置2が配置されている。   The inclined plate 31 is disposed so that the plane thereof has a predetermined inclination angle θ with respect to the plane of the base 34. Here, the inclination angle θ is, for example, in the range of 70 degrees to 85 degrees. The conveying device 32 is configured to convey the printed circuit board a in a state along the surface side of the inclined plate 31. A fluorescent lamp 36 that illuminates the slit 35 is disposed on the back side of the inclined plate 31 in the length direction of the slit 35. On the base 34, the imaging device 2 configured in the same manner as in FIGS. 1, 2, and 18 is arranged.

なお、撮像装置2でプリント基板aのカラー画像を取得する場合には、そのプリント基板aの背景色が以下の色になるようにした。すなわち、その背景色が、プリント基板aに含まれる色以外の色であって、RGB色立体で表現した場合にプリント基板aに含まれる色からできるだけ離れている領域に属する色にするようにした。このために、図示しないが、カラー画像を取得する場合には、プリント基板aの傾斜板31に沿わない面の側を、その背景色で照明するようになっている。
ここで、この他の実施例は、上記の構成の部分のみが図1〜図3で説明した実施形態と異なり、その他の部分の構成やその検査の動作は、図1〜図3で説明した実施形態と同じであるので、その説明は省略する。
この他の実施形態によれば、上記の実施形態と同様の効果を実現できる。
In addition, when acquiring the color image of the printed circuit board a with the imaging device 2, the background color of the printed circuit board a was set to the following colors. That is, the background color is a color other than the color included in the printed circuit board a, and when it is expressed in the RGB color solid, the color belongs to an area as far as possible from the color included in the printed circuit board a. . For this reason, although not shown, when obtaining a color image, the side of the surface of the printed circuit board a that does not follow the inclined plate 31 is illuminated with its background color.
Here, in this other example, only the part of the above configuration is different from the embodiment described in FIGS. 1 to 3, and the configuration of other parts and the operation of the inspection are described in FIGS. Since it is the same as the embodiment, the description thereof is omitted.
According to the other embodiment, the same effect as the above embodiment can be realized.

本発明の実施形態の外観構成を示す正面図である。It is a front view which shows the external appearance structure of embodiment of this invention. その外観構成を示す平面図である。It is a top view which shows the external appearance structure. 本発明の実施形態の画像処理に係る構成を示すブロック図である。It is a block diagram which shows the structure which concerns on the image processing of embodiment of this invention. この実施形態によるプリント基板の検査方法の概要を説明するフローチャートである。It is a flowchart explaining the outline | summary of the inspection method of the printed circuit board by this embodiment. 図4のステップS4,S5のそれぞれの処理を具体化したフローチャートである。It is the flowchart which actualized each process of step S4 of FIG. 4, and S5. 図5のステップS12の処理を具体化したフローチャートである。It is the flowchart which actualized the process of step S12 of FIG. 図5のステップS13の処理を具体化したフローチャートである。It is the flowchart which actualized the process of step S13 of FIG. 図5のステップS15、S16の処理を具体化したフローチャートである。It is the flowchart which actualized the process of step S15 of FIG. 5, and S16. 図8のフローチャートの続きの処理を示すフローチャートである。FIG. 9 is a flowchart showing processing subsequent to the flowchart of FIG. 8. FIG. 基準データとその許容範囲を説明する説明図である。It is explanatory drawing explaining a reference | standard data and its tolerance | permissible_range. 基準画像と更新用画像の差分演算の一例を示す図である。It is a figure which shows an example of the difference calculation of a reference | standard image and the image for an update. 更新用画像の各画素から許容差範囲外の画素を抽出することを説明する説明図である。It is explanatory drawing explaining extracting the pixel outside a tolerance range from each pixel of the image for an update. 基準画像の基準画像データと、許容差データの更新の一例を説明する説明図である。It is explanatory drawing explaining an example of the update of the reference image data of a reference image, and tolerance data. 基準画像の基準画像データと、許容差データの更新の他の例を説明する説明図である。It is explanatory drawing explaining the other example of the update of the reference image data of a reference image, and tolerance data. 更新された基準画像の基準画像データと、更新された許容差データの一例を示す図である。It is a figure which shows an example of the reference image data of the updated reference image, and the updated tolerance data. 更新用画像をずらし、これに応じて許容差データのみを再更新する場合の手順を説明する説明図である。It is explanatory drawing explaining the procedure in the case of shifting the image for an update and renewing only tolerance data according to this. この実施形態において、プリント基板の検査の処理の一例を説明するフローチャートである。In this embodiment, it is a flowchart explaining an example of the process of a test | inspection of a printed circuit board. 図1および図2に示すフィルタプレートを駆動する位置決め装置の一例を示す斜視図である。It is a perspective view which shows an example of the positioning device which drives the filter plate shown in FIG. 1 and FIG. 本発明の他の実施形態の外観構成を示す平面図である。It is a top view which shows the external appearance structure of other embodiment of this invention. その他の実施形態の外観構成を示す正面図である。It is a front view which shows the external appearance structure of other embodiment. その他の実施形態の外観構成を示す右側面図である。It is a right view which shows the external appearance structure of other embodiment.

符号の説明Explanation of symbols

1 テーブル
2 撮像装置
3 画像処理装置
4 パターン領域データメモリ
5 基準画像データメモリ
6 許容差データメモリ
7 外部記憶装置
8 ROM
9 入力装置
10 表示装置
21 モノクロカメラ
22 フィルタプレート
221〜224 フィルタ
23 位置決め装置
1 Table 2 Imaging device 3 Image processing device 4 Pattern area data memory 5 Reference image data memory 6 Tolerance data memory 7 External storage device 8 ROM
9 Input device 10 Display device 21 Monochrome camera 22 Filter plates 221 to 224 Filter 23 Positioning device

Claims (16)

印刷物に形成された互いに色の異なる複数のパターン領域の欠陥の有無を検査する印刷物の検査方法であって、
良品の印刷物のカラー画像を取得し、この取得したカラー画像を色の差異により各パターン領域に分割する領域分割ステップと、
その分割させたカラー画像の各パターン領域をあらかじめ登録しておく第1登録ステップと、
良品の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させた各パターン領域ごとに、印刷物の検査時に使用する検査基準を作成する検査基準作成ステップと、
その作成した各パターン領域ごとの各検査基準をあらかじめ登録しておく第2登録ステップと、
検査対象の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割された各パターン領域の欠陥の有無の検査を、前記第2登録ステップで登録された各パターン領域ごとの検査基準を用いて行う検査ステップと、
からなることを特徴とする印刷物の検査方法。
A printed matter inspection method for inspecting the presence or absence of defects in a plurality of pattern regions having different colors formed on a printed matter,
An area dividing step of acquiring a color image of a non-defective printed material and dividing the acquired color image into each pattern area by a color difference;
A first registration step of previously registering each pattern area of the divided color image;
A monochrome image of a non-defective printed material is acquired, the acquired monochrome image is divided into pattern regions with reference to each pattern region registered in the first registration step, and the printed material is divided for each of the divided pattern regions. An inspection standard creation step for creating an inspection standard to be used at the time of inspection;
A second registration step of registering in advance each inspection standard for each of the created pattern areas;
A monochrome image of the printed matter to be inspected is acquired, the acquired monochrome image is divided into each pattern area with reference to each pattern area registered in the first registration step, and the defect of each divided pattern area is detected. An inspection step for performing the presence / absence inspection using the inspection standard for each pattern region registered in the second registration step;
A method for inspecting printed matter, comprising:
印刷物に形成された互いに色の異なる複数のパターン領域の欠陥の有無を検査する印刷物の検査方法であって、
良品の印刷物のカラー画像を取得し、この取得したカラー画像を色の差異により各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域に対してその形状を変形処理する分割・変形処理ステップと、
その分割、変形処理させたカラー画像の各パターン領域を、あらかじめ登録しておく第1登録ステップと、
良品の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域に対してその形状を変形処理し、この分割、変形処理させた各パターン領域ごとに、印刷物の検査時に使用する検査基準を作成する検査基準作成ステップと、
その作成させた各パターン領域の各検査基準をあらかじめ登録しておく第2登録ステップと、
検査対象の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像の各パターン領域を分割し、この分割させたパターン領域のうち所定のパターン領域に対してその形状を変形処理し、この分割、変形処理させた各パターン領域の欠陥の有無の検査を、前記第2登録ステップで登録された各パターン領域ごとの検査基準を用いて行う検査ステップと、
からなることを特徴とする印刷物の検査方法。
A printed matter inspection method for inspecting the presence or absence of defects in a plurality of pattern regions having different colors formed on a printed matter,
A color image of a non-defective printed matter is obtained, and the obtained color image is divided into pattern areas based on color differences, and the shape of the divided pattern areas is transformed into a predetermined pattern area. A transformation processing step;
A first registration step of registering in advance each pattern region of the color image subjected to the division and deformation processing;
A monochrome image of a non-defective printed matter is acquired, the acquired monochrome image is divided into each pattern area with reference to each pattern area registered in the first registration step, and a predetermined pattern among the divided pattern areas An inspection standard creation step for creating an inspection standard to be used at the time of inspection of a printed matter for each pattern region subjected to deformation processing on the region and dividing and deforming the region,
A second registration step of registering in advance each inspection standard of each of the created pattern areas;
A monochrome image of a printed matter to be inspected is acquired, each pattern area of the acquired monochrome image is divided with reference to each pattern area registered in the first registration step, and a predetermined area of the divided pattern areas is determined. The shape of the pattern area is deformed, and the presence or absence of defects in each of the divided and deformed pattern areas is inspected using the inspection standard for each pattern area registered in the second registration step. An inspection step;
A method for inspecting printed matter, comprising:
前記印刷物は、プリント基板またはICカードであることを特徴とする請求項1または請求項2に記載の印刷物の検査方法。   The printed matter inspection method according to claim 1, wherein the printed matter is a printed board or an IC card. 印刷物に形成された互いに色の異なる複数のパターン領域の欠陥の有無を検査する印刷物の検査方法であって、
良品の印刷物のカラー画像を取得し、この取得したカラー画像を色の差異により各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させる分割・膨張ステップと、
その分割、膨張させたカラー画像の各パターン領域を、あらかじめ登録しておく第1登録ステップと、
良品の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させ、この分割、膨張させた各パターン領域ごとに、印刷物の検査時に使用する検査基準を作成する検査基準作成ステップと、
その作成させた各パターン領域の各検査基準をあらかじめ登録しておく第2登録ステップと、
検査対象の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像の各パターン領域を分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させ、この分割、膨張させた各パターン領域の欠陥の有無の検査を、前記第2登録ステップで登録された各パターン領域ごとの検査基準を用いて行う検査ステップと、
からなることを特徴とする印刷物の検査方法。
A printed matter inspection method for inspecting the presence or absence of defects in a plurality of pattern regions having different colors formed on a printed matter,
A division / expansion step of acquiring a color image of a non-defective printed material, dividing the acquired color image into each pattern region according to a color difference, and expanding the shape of a predetermined pattern region among the divided pattern regions;
A first registration step of registering in advance each pattern area of the divided and expanded color image;
A monochrome image of a non-defective printed matter is acquired, the acquired monochrome image is divided into each pattern area with reference to each pattern area registered in the first registration step, and a predetermined pattern among the divided pattern areas An inspection standard creation step for creating an inspection standard to be used when inspecting a printed matter for each pattern area expanded by expanding the shape of the area,
A second registration step of registering in advance each inspection standard of each of the created pattern areas;
A monochrome image of a printed matter to be inspected is acquired, each pattern area of the acquired monochrome image is divided with reference to each pattern area registered in the first registration step, and a predetermined area of the divided pattern areas is determined. An inspection step for expanding the shape of the pattern region, and performing an inspection for the presence or absence of a defect in each of the divided and expanded pattern regions using an inspection standard for each pattern region registered in the second registration step;
A method for inspecting printed matter, comprising:
前記検査基準作成ステップは、
基準となる良品の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させ、この分割、膨張させた各パターン領域ごとの基準画像データと、この基準画像データの許容範囲を決めるべき許容差データの初期値とをそれぞれ取得する第1ステップと、
前記基準画像データを更新するために新たな良品の印刷物のモノクロ画像を取得し、前記第1登録ステップで登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張して各パターン領域ごとの更新用画像データを取得する第2ステップと、
その取得した更新用画像データが、前記基準画像データ、前記許容差データ、および任意に設定可能な第1の許容差パラメータで決まる許容範囲内に属するか否か検出し、その許容範囲内に属さない更新用画像データを抽出する第3ステップと、
その抽出した更新用画像データに対応する前記基準画像データおよび前記許容差データの更新指示があったときに、前記抽出された更新用画像データが許容範囲内に収まるように、前記基準画像データおよび前記許容差データを、前記更新用画像データ、前記基準画像データ、および前記許容差データに基づいて決まる各所定値にそれぞれ更新する第4のステップと、からなり、
前記第2のステップおよび前記第3のステップの各処理を任意の回数繰り返えして前記基準画像データおよび前記許容差データの更新を予め行っておき、
前記検査基準は、更新後の前記基準画像データと、更新後の前記許容差データおよび任意に設定可能な第2の許容差パラメータで決まる許容範囲とすることを特徴とする請求項4に記載の印刷物の検査方法。
The inspection standard creation step includes:
A monochrome image of a reference non-defective printed matter is acquired, and the acquired monochrome image is divided into each pattern region with reference to each pattern region registered in the first registration step, and among the divided pattern regions, A first step of expanding the shape of a predetermined pattern area, and obtaining reference image data for each of the divided and expanded pattern areas and an initial value of tolerance data for determining an allowable range of the reference image data. When,
In order to update the reference image data, obtain a monochrome image of a new non-defective printed matter, refer to each pattern area registered in the first registration step, divide the obtained monochrome image into each pattern area, A second step of expanding the shape of a predetermined pattern area of the divided pattern areas to obtain update image data for each pattern area;
It is detected whether or not the obtained update image data belongs to an allowable range determined by the reference image data, the tolerance data, and a first tolerance parameter that can be arbitrarily set, and belongs to the allowable range. A third step of extracting non-update image data;
When there is an instruction to update the reference image data and the tolerance data corresponding to the extracted update image data, the reference image data and the extracted update image data are within an allowable range. A fourth step of updating the tolerance data to each predetermined value determined based on the update image data, the reference image data, and the tolerance data, respectively,
The processes of the second step and the third step are repeated an arbitrary number of times to update the reference image data and the tolerance data in advance,
The inspection standard is an allowable range determined by the updated reference image data, the updated tolerance data, and a second tolerance parameter that can be arbitrarily set. Inspection method for printed matter.
前記印刷物は、プリント基板またはICカードであり、
膨張させる前記所定のパターン領域は、前記印刷物がプリント基板のときにはシルク領域であり、前記印刷物がICカードのときには印刷領域であることを特徴とする請求項4または請求項5に記載の印刷物の検査方法。
The printed matter is a printed circuit board or an IC card,
6. The printed matter inspection according to claim 4, wherein the predetermined pattern region to be expanded is a silk region when the printed material is a printed board, and is a printed region when the printed material is an IC card. Method.
印刷物に形成された互いに色の異なる複数のパターン領域の欠陥の有無を検査する印刷物の検査装置であって、
複数のパターン領域が形成された印刷物を撮像してそのカラー画像またはそのモノクロ画像を取得する画像取得手段と、
前記画像取得手段で良品の印刷物を撮像してカラー画像を取得し、この取得したカラー画像を色の差異により各パターン領域に分割する領域分割手段と、
その分割されたカラー画像の各パターン領域を登録する第1登録手段と、
前記画像取得手段で良品の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段に登録された各パターン領域を参照して、その取得したモノクロ画像を各パターン領域に分割し、この分割させた各パターン領域ごとに、印刷物の検査時に使用する検査基準を作成する検査基準作成手段と、
その作成した各パターン領域の各検査基準を登録する第2登録手段と、
前記画像取得手段で検査対象の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段に登録された各パターン領域を参照してその取得したモノクロ画像の各パターン領域を分割し、この分割された各パターン領域の欠陥の有無の検査を、前記第2登録手段に登録された各パターン領域ごとの検査基準を用いて行う検査手段と、
を備えることを特徴とする印刷物の検査装置。
A printed matter inspection apparatus that inspects for the presence or absence of defects in a plurality of pattern regions having different colors formed on a printed matter,
An image acquisition means for imaging a printed matter on which a plurality of pattern areas are formed and acquiring the color image or the monochrome image thereof;
An image dividing unit that captures a non-defective printed matter to acquire a color image, and an area dividing unit that divides the acquired color image into pattern areas based on a color difference;
First registration means for registering each pattern area of the divided color image;
The image acquisition means captures a non-defective printed matter to acquire a monochrome image, refers to each pattern area registered in the first registration means, divides the acquired monochrome image into each pattern area, and this division For each pattern area that has been made, an inspection standard creation means for creating an inspection standard to be used when inspecting the printed matter,
Second registration means for registering each inspection standard of each created pattern area;
The printed image to be inspected is imaged by the image acquisition unit to acquire a monochrome image, each pattern region of the acquired monochrome image is divided with reference to each pattern region registered in the first registration unit, and this division Inspection means for inspecting the presence / absence of a defect in each pattern area using an inspection standard for each pattern area registered in the second registration means;
An inspection apparatus for printed matter, comprising:
印刷物に形成された互いに色の異なる複数のパターン領域の欠陥の有無を検査する印刷物の検査装置であって、
複数のパターン領域が形成された印刷物を撮像してそのカラー画像またはそのモノクロ画像を取得する画像取得手段と、
前記画像取得手段で良品の印刷物を撮像してカラー画像を取得し、この取得したカラー画像を色の差異により各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域の形状を変形処理させる領域分割・変形処理手段と、
その分割、変形処理させた印刷物の各パターン領域を登録する第1登録手段と、
前記画像取得手段で良品の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段で登録された各パターン領域を参照してその取得したモノクロ画像の各パターン領域を分割し、この分割させたパターン領域のうち所定のパターン領域の形状を変形処理させ、この分割、変形処理させた各パターン領域ごとに、印刷物の検査時に使用する検査基準をそれぞれ作成する検査基準作成手段と、
その作成させた各パターン領域の各検査基準を登録する第2登録手段と、
前記画像取得手段で検査対象の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段に登録された各パターン領域を参照してその取得したモノクロ画像の各パターン領域を分割し、この分割させたパターン領域のうち所定のパターン領域の形状を変形処理させ、この分割、変形処理させた各パターン領域の欠陥の有無の検査を、前記第2登録手段に登録された各パターン領域ごとの検査基準を用いて行う検査手段と、
を備えることを特徴とする印刷物の検査装置。
A printed matter inspection apparatus that inspects for the presence or absence of defects in a plurality of pattern regions having different colors formed on a printed matter,
An image acquisition means for imaging a printed matter on which a plurality of pattern areas are formed and acquiring the color image or the monochrome image thereof;
A non-defective printed matter is imaged by the image acquisition means to acquire a color image, the acquired color image is divided into pattern areas based on color differences, and a shape of a predetermined pattern area is divided among the divided pattern areas. Area division / deformation processing means for deformation processing;
First registration means for registering each pattern area of the printed material that has been subjected to the division and transformation processing;
The non-defective printed matter is imaged by the image acquisition means to acquire a monochrome image, each pattern area of the acquired monochrome image is divided with reference to each pattern area registered by the first registration means, and this is divided. An inspection standard creating means for transforming the shape of a predetermined pattern area among the pattern areas, and creating an inspection standard to be used when inspecting the printed matter for each of the divided and deformed pattern areas;
Second registration means for registering each inspection standard of each created pattern area;
The printed image to be inspected is imaged by the image acquisition unit to acquire a monochrome image, each pattern region of the acquired monochrome image is divided with reference to each pattern region registered in the first registration unit, and this division The shape of a predetermined pattern region is deformed among the pattern regions thus formed, and the inspection of each pattern region registered in the second registration unit is performed to check whether there is a defect in each of the divided and deformed pattern regions. Inspection means to be performed using the standard,
An inspection apparatus for printed matter, comprising:
印刷物に形成された互いに色の異なる複数のパターン領域の欠陥の有無を検査する印刷物の検査装置であって、
複数のパターン領域が形成された印刷物を撮像してそのカラー画像またはそのモノクロ画像を取得する画像取得手段と、
前記画像取得手段で良品の印刷物を撮像してカラー画像を取得し、この取得したカラー画像を色の差異により各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させる領域分割・膨張手段と、
その分割、膨張させた印刷物の各パターン領域を登録する第1登録手段と、
前記画像取得手段で良品の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段で登録された各パターン領域を参照してその取得したモノクロ画像の各パターン領域を分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させ、この分割、膨張させた各パターン領域ごとに、印刷物の検査時に使用する検査基準をそれぞれ作成する検査基準作成手段と、
その作成させた各パターン領域の各検査基準を登録する第2登録手段と、
前記画像取得手段で検査対象の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段に登録された各パターン領域を参照してその取得したモノクロ画像の各パターン領域を分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させ、この分割、膨張させた各パターン領域の欠陥の有無の検査を、前記第2登録手段に登録された各パターン領域ごとの検査基準を用いて行う検査手段と、
を備えることを特徴とする印刷物の検査装置。
A printed matter inspection apparatus that inspects for the presence or absence of defects in a plurality of pattern regions having different colors formed on a printed matter,
An image acquisition means for imaging a printed matter on which a plurality of pattern areas are formed and acquiring the color image or the monochrome image thereof;
A non-defective printed matter is imaged by the image acquisition means to acquire a color image, the acquired color image is divided into pattern areas based on color differences, and a shape of a predetermined pattern area is divided among the divided pattern areas. Area dividing / expanding means for expanding;
First registration means for registering each pattern area of the divided and expanded printed matter;
The non-defective printed matter is imaged by the image acquisition means to acquire a monochrome image, each pattern area of the acquired monochrome image is divided with reference to each pattern area registered by the first registration means, and this is divided. Inspection pattern creating means for expanding the shape of a predetermined pattern area among the pattern areas and creating an inspection standard to be used when inspecting the printed matter for each divided and expanded pattern area;
Second registration means for registering each inspection standard of each created pattern area;
The printed image to be inspected is imaged by the image acquisition unit to acquire a monochrome image, each pattern region of the acquired monochrome image is divided with reference to each pattern region registered in the first registration unit, and this division The shape of a predetermined pattern region is expanded among the formed pattern regions, and the inspection of each pattern region registered in the second registration unit is performed according to the inspection for the presence or absence of defects in each divided and expanded pattern region. Inspection means to be used,
An inspection apparatus for printed matter, comprising:
前記検査基準作成手段は、
前記画像取得手段で基準となる良品の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段で登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割し、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させ、この分割、膨張させた各パターン領域ごとの基準画像データを取得する基準画像データ取得手段と、
その取得した基準画像データと、この基準画像データの許容範囲を決めるべき許容差データの初期値とをそれぞれ記憶する記憶手段と、
第1の許容差パラメータと第2の許容差パラメータを任意にそれぞれ設定する設定手段と、
前記基準画像データを更新するために前記画像取得手段で新たな良品の印刷物を撮像してモノクロ画像を取得し、前記第1登録手段で登録された各パターン領域を参照してその取得したモノクロ画像を各パターン領域に分割させ、この分割させたパターン領域のうち所定のパターン領域の形状を膨張させて各パターン領域ごとの更新用画像データを取得する更新用画像データ取得手段と、
その取得した更新用画像データが、前記基準画像データ、前記許容差データ、および任意に設定可能な第1の許容差パラメータで決まる許容範囲内に属するか否か検出し、その許容範囲内に属さない更新用画像データを抽出する抽出手段と、
その抽出した更新用画像データに対応する前記基準画像データおよび前記許容差データの更新指示があったときに、前記抽出された更新用画像データが許容範囲内に収まるように、前記記憶手段に記憶される前記基準画像データおよび前記許容差データを、前記更新用画像データ、前記基準画像データ、および前記許容差データに基づいて決まる各所定値にそれぞれ更新する更新手段とを備え、
前記検査手段が使用する検査基準は、前記記憶手段に記憶される前記更新後の前記基準画像データと、前記記憶手段に記憶される更新後の前記許容差データおよび前記設定手段で設定される第2の許容差パラメータで決まる許容範囲とすることを特徴とする請求項9に記載の印刷物の検査装置。
The inspection standard creation means includes:
The image acquisition means captures a non-defective printed matter to obtain a monochrome image, refers to each pattern area registered by the first registration means, divides the obtained monochrome image into each pattern area, Reference image data acquisition means for expanding the shape of a predetermined pattern region among the divided pattern regions and acquiring reference image data for each of the divided and expanded pattern regions;
Storage means for storing the acquired reference image data and an initial value of tolerance data for determining an allowable range of the reference image data;
Setting means for arbitrarily setting each of the first tolerance parameter and the second tolerance parameter;
In order to update the reference image data, the image acquisition unit captures a new non-defective printed matter to acquire a monochrome image, and refers to each pattern area registered by the first registration unit to acquire the acquired monochrome image. Image data acquisition means for updating for acquiring update image data for each pattern area by expanding the shape of a predetermined pattern area among the divided pattern areas,
It is detected whether or not the obtained update image data belongs to an allowable range determined by the reference image data, the tolerance data, and a first tolerance parameter that can be arbitrarily set, and belongs to the allowable range. Extracting means for extracting no update image data;
When the reference image data and the tolerance data corresponding to the extracted update image data are instructed to be updated, the extracted update image data is stored in the storage means so as to be within an allowable range. Updating the reference image data and the tolerance data to be updated to respective predetermined values determined based on the update image data, the reference image data, and the tolerance data,
The inspection standard used by the inspection unit is set by the updated reference image data stored in the storage unit, the updated tolerance data stored in the storage unit, and the setting unit. The printed matter inspection apparatus according to claim 9, wherein an allowable range determined by a tolerance parameter of 2 is set.
前記画像取得手段は、
前記印刷物を撮像するモノクロカメラと、
前記印刷物とモノクロカメラとの間に配置され、前記モノクロカメラで印刷物を撮像してR画像を取得する第1フィルタ、B画像を取得する第2フィルタ、G画像を取得する第3フィルタ、およびモノクロ画像を取得する第4フィルタと、
前記モノクロカメラで前記印刷物を撮像の際に、前記4つのフィルタのうちの1つを選択するフィルタ選択手段と、を含み、
前記フィルタ選択手段は、前記印刷物のカラー画像を取得する場合には前記第1、第2および第3のフィルタをそれぞれ選択し、前記印刷物のモノクロ画像を取得する場合には前記第4フィルタを選択するようになっていることを特徴とする請求項7乃至請求項10のうちのいずれかに記載の印刷物の検査装置。
The image acquisition means includes
A monochrome camera for imaging the printed matter;
A first filter that is disposed between the printed material and the monochrome camera and captures the printed material with the monochrome camera to acquire an R image, a second filter that acquires a B image, a third filter that acquires a G image, and a monochrome image A fourth filter for acquiring an image;
Filter selection means for selecting one of the four filters when imaging the printed matter with the monochrome camera;
The filter selection unit selects the first, second, and third filters when acquiring a color image of the printed material, and selects the fourth filter when acquiring a monochrome image of the printed material. The printed matter inspection apparatus according to claim 7, wherein the printed matter inspection apparatus is configured to perform the inspection.
前記画像取得手段で前記印刷物を撮像してカラー画像を取得する際に、その印刷物の背景色は、印刷物に含まれる色以外の色であって、RGB色立体で表現した場合に印刷物に含まれる色からできるだけ離れている領域に属する色にするようにしたことを特徴とする請求項7乃至請求項11のうちのいずれかに記載の印刷物の検査装置。   When a color image is acquired by capturing the printed matter with the image acquisition unit, the background color of the printed matter is a color other than the color included in the printed matter, and is included in the printed matter when expressed in an RGB color solid. 12. The printed matter inspection apparatus according to claim 7, wherein the color belongs to an area as far as possible from the color. 前記印刷物は、プリント基板またはICカードであることを特徴とする請求項7、請求項8、請求項11、または請求項12に記載の印刷物の検査装置。   The printed matter inspection apparatus according to claim 7, wherein the printed matter is a printed circuit board or an IC card. 前記印刷物はプリント基板またはIC基板であり、
膨張させる前記所定のパターン領域は、前記印刷物がプリント基板のときにはシルク領域であり、前記印刷物がICカードのときには印刷領域であることを特徴とする請求項9、請求項10、請求項11、または請求項12に記載の印刷物の検査装置。
The printed matter is a printed board or an IC board,
The predetermined pattern area to be expanded is a silk area when the printed material is a printed circuit board, and is a printed area when the printed material is an IC card. The printed matter inspection apparatus according to claim 12.
印刷物をカメラで撮像してカラー画像を取得し、この取得したカラー画像に基づいて印刷物の欠陥の有無を検査する印刷物の検査装置であって、
前記カメラで前記印刷物を撮像してカラー画像を取得する際に、その印刷物の背景色を、印刷物に含まれる色以外の色であって、RGB色立体で表現した場合に印刷物に含まれる色からできるだけ離れている領域に属する色にするようにしたことを特徴とする印刷物の検査装置。
A printed matter inspection device that captures a printed matter with a camera to obtain a color image, and inspects the presence or absence of defects in the printed matter based on the obtained color image,
When acquiring a color image by capturing the printed material with the camera, the background color of the printed material is a color other than the color included in the printed material, and is expressed from the color included in the printed material when expressed in an RGB color solid. An apparatus for inspecting printed matter, characterized in that the color belongs to an area as far as possible.
前記印刷物はプリント基板であり、この場合には、そのプリント基板の背景色は、プリント基板のレジストの色と補色の関係にある色またはその補色の関係にある色に類似する色にするようにしたことを特徴とする請求項15に記載の印刷物の検査装置。   The printed matter is a printed circuit board. In this case, the background color of the printed circuit board is set to a color complementary to the resist color of the printed circuit board or a color similar to the complementary color. The printed matter inspection apparatus according to claim 15, wherein
JP2003412055A 2003-12-10 2003-12-10 Inspection method and inspection apparatus for printed matter Expired - Fee Related JP3691503B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003412055A JP3691503B2 (en) 2003-12-10 2003-12-10 Inspection method and inspection apparatus for printed matter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003412055A JP3691503B2 (en) 2003-12-10 2003-12-10 Inspection method and inspection apparatus for printed matter

Publications (2)

Publication Number Publication Date
JP2005172584A true JP2005172584A (en) 2005-06-30
JP3691503B2 JP3691503B2 (en) 2005-09-07

Family

ID=34732617

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003412055A Expired - Fee Related JP3691503B2 (en) 2003-12-10 2003-12-10 Inspection method and inspection apparatus for printed matter

Country Status (1)

Country Link
JP (1) JP3691503B2 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008026562A1 (en) * 2006-08-28 2008-03-06 I-Pulse Kabushiki Kaisha Board appearance inspection method and device
JP2010164333A (en) * 2009-01-13 2010-07-29 Toshiba Corp Device and method for inspecting defect
JP2011117848A (en) * 2009-12-03 2011-06-16 Samsung Led Co Ltd Led inspection device and led inspection method
CN102519967A (en) * 2011-11-15 2012-06-27 浪潮电子信息产业股份有限公司 Board card material inspection method based on image identification detection
US8331649B2 (en) 2008-06-04 2012-12-11 Samsung Electronics Co., Ltd. LED testing apparatus and testing method thereof
KR20150091216A (en) * 2014-01-31 2015-08-10 가부시키가이샤 스크린 홀딩스 Inspection apparatus and inspection method
KR20190025151A (en) * 2017-08-30 2019-03-11 한국기술교육대학교 산학협력단 An automobile junction box terminal vision inspection method using line scan camera
CN111242896A (en) * 2019-12-31 2020-06-05 电子科技大学 Color printing label defect detection and quality rating method
CN114279319A (en) * 2020-09-28 2022-04-05 深圳富桂精密工业有限公司 Apparatus for detecting mounting defect of component and method thereof
CN118169144A (en) * 2024-04-29 2024-06-11 苏州赫芯科技有限公司 Defect detection method, system and medium based on multistage matching and AI recheck

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008026562A1 (en) * 2006-08-28 2008-03-06 I-Pulse Kabushiki Kaisha Board appearance inspection method and device
US8331649B2 (en) 2008-06-04 2012-12-11 Samsung Electronics Co., Ltd. LED testing apparatus and testing method thereof
JP2010164333A (en) * 2009-01-13 2010-07-29 Toshiba Corp Device and method for inspecting defect
JP2011117848A (en) * 2009-12-03 2011-06-16 Samsung Led Co Ltd Led inspection device and led inspection method
CN102519967A (en) * 2011-11-15 2012-06-27 浪潮电子信息产业股份有限公司 Board card material inspection method based on image identification detection
KR101692115B1 (en) * 2014-01-31 2017-01-02 가부시키가이샤 스크린 홀딩스 Inspection apparatus and inspection method
KR20150091216A (en) * 2014-01-31 2015-08-10 가부시키가이샤 스크린 홀딩스 Inspection apparatus and inspection method
KR20190025151A (en) * 2017-08-30 2019-03-11 한국기술교육대학교 산학협력단 An automobile junction box terminal vision inspection method using line scan camera
KR102005345B1 (en) * 2017-08-30 2019-07-31 한국기술교육대학교 산학협력단 An automobile junction box terminal vision inspection method using line scan camera
CN111242896A (en) * 2019-12-31 2020-06-05 电子科技大学 Color printing label defect detection and quality rating method
CN114279319A (en) * 2020-09-28 2022-04-05 深圳富桂精密工业有限公司 Apparatus for detecting mounting defect of component and method thereof
CN114279319B (en) * 2020-09-28 2024-04-12 深圳富联富桂精密工业有限公司 Device for detecting mounting defect of element and method thereof
CN118169144A (en) * 2024-04-29 2024-06-11 苏州赫芯科技有限公司 Defect detection method, system and medium based on multistage matching and AI recheck

Also Published As

Publication number Publication date
JP3691503B2 (en) 2005-09-07

Similar Documents

Publication Publication Date Title
JP4166585B2 (en) Appearance inspection apparatus and appearance inspection method
CN102138068B (en) Visual examination apparatus
CN109472271B (en) Printed circuit board image contour extraction method and device
US20060018534A1 (en) Technique for detecting a defect of an object by area segmentation of a color image of the object
JP6330574B2 (en) Teaching apparatus and teaching method for substrate inspection apparatus
JP3691503B2 (en) Inspection method and inspection apparatus for printed matter
KR20060048146A (en) Segmentation technique of a color image according to colors
US11321811B2 (en) Imaging apparatus and driving method of the same
CN114529500A (en) Defect inspection method for display substrate
JP2003167530A (en) Method and device for display picture inspection
JP2009105230A (en) Device and method of inspecting disc substrate
JP4946544B2 (en) Image generation method for measurement processing and substrate visual inspection apparatus using this method
JP2007013231A (en) Device, method and program for compensating shading of image
CN103630542A (en) Defect detecting apparatus, defect correction device and defect detecting method
JP2011252770A (en) Inspection device for printed circuit board and inspection method of the same
JP2009115681A (en) Image acquisition display
CN113419909A (en) Display uniformity detection method and computer equipment
JP2002267427A (en) Method and device for measuring outer shape of honeycomb structure
WO2018146887A1 (en) External-appearance examination device
JP5130257B2 (en) Image processing device
JP2006284543A (en) Method and device for inspecting mounted circuit board
CN112530821B (en) Chip mounting apparatus and method for manufacturing semiconductor device
JPH0894534A (en) Pattern defect detecting deice
JP2000221111A (en) Method and equipment for inspecting display screen
JP2004085543A (en) System and method for visual inspection

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050420

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050524

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050615

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090624

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees