JP5045591B2 - Method for creating area setting data for inspection area and board appearance inspection apparatus - Google Patents

Method for creating area setting data for inspection area and board appearance inspection apparatus Download PDF

Info

Publication number
JP5045591B2
JP5045591B2 JP2008189740A JP2008189740A JP5045591B2 JP 5045591 B2 JP5045591 B2 JP 5045591B2 JP 2008189740 A JP2008189740 A JP 2008189740A JP 2008189740 A JP2008189740 A JP 2008189740A JP 5045591 B2 JP5045591 B2 JP 5045591B2
Authority
JP
Japan
Prior art keywords
land
component
inspection
area
group
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.)
Active
Application number
JP2008189740A
Other languages
Japanese (ja)
Other versions
JP2010027964A (en
Inventor
幸弘 辻村
愛美 河内
清 村上
心平 藤井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp filed Critical Omron Corp
Priority to JP2008189740A priority Critical patent/JP5045591B2/en
Publication of JP2010027964A publication Critical patent/JP2010027964A/en
Application granted granted Critical
Publication of JP5045591B2 publication Critical patent/JP5045591B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

この発明は、部品実装基板を撮像手段により撮像することにより生成された画像を用いて、基板上の各部品の実装状態を自動検査する技術分野に属する。特にこの発明は、この種の自動検査に用いられる検査データを、コンピュータを用いて作成する方法およびこの方法が適用された基板外観検査に関する。   The present invention belongs to the technical field of automatically inspecting the mounting state of each component on a board using an image generated by imaging the component mounting board by an imaging means. In particular, the present invention relates to a method of creating inspection data used for this type of automatic inspection using a computer and a substrate appearance inspection to which this method is applied.

基板外観検査では、検査対象の基板の各部品について、部品の有無、位置および姿勢の適否、はんだ付け状態の適否など、種々の検査を実施する。この種の検査を自動で行うには、あらかじめ各部品の位置、検査領域の設定データ、被検査部位の検出に用いるパラメータ(たとえば2値化しきい値)、判定用のしきい値などの検査データを登録する必要がある。   In the substrate appearance inspection, various inspections such as presence / absence of components, appropriateness of position and orientation, and appropriateness of soldering state are performed on each component of the substrate to be inspected. In order to automatically perform this type of inspection, inspection data such as the position of each part, inspection area setting data, parameters (for example, binarization threshold) used for detection of the part to be inspected, thresholds for determination, etc. Must be registered.

上記の検査データを自動的に作成する従来の方法として、CADデータや製造工程で使用されるデータ(マウントデータやガーバデータなど)を用いたものが知られている。たとえば、下記の特許文献1には、基板にチップを搭載するのに使用されるマウントデータと、各チップの外観形状を表すチップデータとを用いて、カメラの視野の位置およびその視野におけるチェックエリア(検査領域)の位置を求めることが記載されている。   As a conventional method for automatically creating the inspection data, a method using CAD data or data used in a manufacturing process (mount data, Gerber data, etc.) is known. For example, the following Patent Document 1 describes the position of a camera field of view and a check area in the field of view using mount data used to mount a chip on a substrate and chip data representing the external shape of each chip. It describes that the position of (inspection area) is obtained.

また特許文献2には、マスク開口データ(ガーバデータ)から印刷により形成される要素半田印刷部(クリームはんだの印刷部位)の形状および位置を表す情報を取得するとともに、この情報が表す幾何学的範囲を、部品の実装データや各種部品の部品データライブラリと対応づけることが記載されている。   Patent Document 2 obtains information representing the shape and position of an element solder printing portion (printed portion of cream solder) formed by printing from mask opening data (gerber data), and represents the geometrical information represented by this information. It describes that ranges are associated with component mounting data and component data libraries of various components.

特許第2940213号公報Japanese Patent No. 2940213 特開2007−218925号公報JP 2007-218925 A

近年の生産現場では、EMS(Electronics Manufacture Services)業者に基板の実装を外注するケースが増えているが、このような外注先の業者は、CADデータのような機密性の高い情報の提供を受けられないケースが多く、検査データを作成するのが困難な状況になっている。   In recent years, there have been an increasing number of cases where PCB mounting is outsourced to EMS (Electronics Manufacture Services) contractors. Such subcontractors are provided with highly confidential information such as CAD data. In many cases, it is difficult to create inspection data.

この発明は上記の点に着目してなされたもので、CADデータ等の基板設計データを用いなくとも、各部品の検査領域の領域設定データを自動作成できるようにすることを、課題とする。   The present invention has been made paying attention to the above points, and it is an object of the present invention to make it possible to automatically create area setting data for an inspection area of each component without using board design data such as CAD data.

この発明による検査領域の領域設定データの作成方法は、部品実装基板を対象にした自動外観検査において画像中の各部品に対する検査領域の設定に用いられる領域設定データを、コンピュータにより作成するもので、以下の第1〜第5のステップを実行することを特徴とする。   The method of creating the area setting data of the inspection area according to the present invention is to create the area setting data used for setting the inspection area for each component in the image in the automatic appearance inspection for the component mounting board by a computer, The following first to fifth steps are performed.

第1ステップでは、複数の部品種について、それぞれ部品電極に対応するランド領域の標準配置パターンと標準の領域設定データとをコンピュータのメモリに登録する。第2ステップでは、部品実装前または部品実装後のモデル基板の画像から基板上のランド領域およびシルク印刷パターンならびに配線パターンをそれぞれ個別に検出し、各検出結果を表す3種類の2値画像を生成する。   In the first step, the standard arrangement pattern of the land area and the standard area setting data corresponding to the component electrodes are registered in the memory of the computer for a plurality of component types. In the second step, the land area on the board, the silk print pattern, and the wiring pattern are individually detected from the model board image before or after component mounting, and three types of binary images representing each detection result are generated. To do.

第3ステップでは、シルク印刷パターンまたは配線パターンが介在する関係にあるランド領域の組を同じグループに分類しないことを条件として、3種類の2値画像の対応関係に基づき各ランド領域をグループ分けする。   In the third step, the land areas are grouped on the basis of the correspondence relationship of the three types of binary images on condition that the group of land areas having a relationship involving silk print patterns or wiring patterns is not classified into the same group. .

第4ステップでは、上記のグループ分けの終了後に、ランド領域の2値画像を部品種毎のランド領域の標準配置パターンと照合する処理を、同一グループ内のランド領域を同一の部品種に対応づけることを条件として実行することにより、基板に実装される各部品の部品種、実装範囲、および部品の向きを特定する。   In the fourth step, after the above grouping is completed, the process of collating the binary image of the land area with the standard arrangement pattern of the land area for each component type is made to associate the land regions in the same group with the same component type. By executing this as a condition, the component type, the mounting range, and the component orientation of each component mounted on the board are specified.

第5ステップでは、第4ステップにより特定された部品に対し、それぞれ特定された実装範囲に特定された部品の向きに基づき特定された部品種の標準の領域設定データを適用することによって、当該部品に設定する検査領域を特定し、この検査領域の設定にかかる領域設定データをコンピュータのメモリに登録する。   In the fifth step, by applying the standard region setting data of the component type specified based on the orientation of the component specified in the specified mounting range to the component specified in the fourth step, the component The inspection area to be set is specified, and the area setting data for setting the inspection area is registered in the memory of the computer.

上記の第2ステップにおいて、部品実装前のモデル基板の画像を処理する場合には、ランドの全範囲をランド領域として検出するのが望ましい。一方、部品実装後のモデル基板の画像を処理する場合には、ランドのはんだ付けされた範囲をランド領域として検出することになる。   In the second step, when processing an image of a model board before component mounting, it is desirable to detect the entire range of lands as a land area. On the other hand, when processing an image of a model board after component mounting, a land soldered range is detected as a land area.

基板設計データを用いなくとも、モデル基板の画像から作成したランド領域の2値画像を、各種部品種にかかるランド領域の標準配置パターンと対応づけることができれば、基板上の各部品の部品種、実装範囲、部品の向きを特定し、その特定結果に部品種毎の標準の領域設定データを適用して検査領域を定めることが可能である。ただし、ランド領域の2値画像と標準配置パターンとを単純に照合したのでは、同じ部品に対応づけるべき複数のランド領域が別々の部品に対応づけられたり、それぞれ異なる部品に対応づけるべき複数のランド領域が同一の部品に対応づけられるなど、ランド領域と部品との対応づけに誤りが生じる可能性がある。   Even if the board design data is not used, if the binary image of the land area created from the image of the model board can be associated with the standard arrangement pattern of the land area for various component types, the component type of each component on the substrate, It is possible to identify the mounting range and the component orientation, and to determine the inspection region by applying standard region setting data for each component type to the identification result. However, if the binary image of the land area is simply compared with the standard arrangement pattern, a plurality of land areas that should be associated with the same part can be associated with different parts or a plurality of parts that should be associated with different parts. There is a possibility that an error occurs in the correspondence between the land area and the part, for example, the land area is associated with the same part.

そこで、この発明による方法では、シルク印刷パターンまたは配線パターンが介在する関係にあるランド領域の組を同じグループに分類しないことを条件として各ランド領域をグループ分けすることにより、同じ部品に対応するランド領域のみを集めたグループを設定することが可能になる(1つの部品について複数のグループが設定されてもよい。)。また、グループ分けの後は、同一グループ内のランド領域を同一の部品種に対応づけることを条件として、各種部品種の標準の領域設定データとの照合を行うことにより、ランド領域と部品との対応づけの誤りを防止でき、各部品の部品種、実装範囲、および部品の向きを精度良く特定することが可能になる。   Therefore, in the method according to the present invention, land groups corresponding to the same part are grouped by grouping the land areas on the condition that a set of land areas having a relationship involving silk printing patterns or wiring patterns is not classified into the same group. It becomes possible to set a group in which only areas are collected (a plurality of groups may be set for one part). In addition, after grouping, the land area and the part can be compared with each other by collating with the standard area setting data of various part types on condition that the land area in the same group is associated with the same part type. Correspondence errors can be prevented, and the component type, mounting range, and component orientation of each component can be accurately identified.

上記方法の好ましい一態様では、第3ステップにおいて、シルク印刷パターンに囲まれた状態で配置されているランド領域により1つのグループを設定する。シルク印刷パターンにより囲まれた領域は、1つの部品の実装範囲を表すから、同じ部品に対応するランド領域によるグループを容易に特定することが可能になる。   In a preferred aspect of the above method, in the third step, one group is set by land areas arranged in a state surrounded by a silk print pattern. Since the region surrounded by the silk print pattern represents the mounting range of one component, it is possible to easily specify a group of land regions corresponding to the same component.

他の好ましい態様では、第3ステップにおいて、面積および形状が整合する複数のランド領域がシルク印刷パターンおよび配線パターンのいずれも介在させずに一定の方向に沿って並んでいる複数のランド領域を、同一のグループに分類する。この方法によれば、部品パッケージの一辺に沿って配列される複数のリードに対応するランド領域の集合を、同じグループに含めることが可能になる。   In another preferred embodiment, in the third step, a plurality of land regions whose areas and shapes match with each other are arranged along a certain direction without any silk printing pattern and wiring pattern interposed therebetween. Classify into the same group. According to this method, a set of land areas corresponding to a plurality of leads arranged along one side of the component package can be included in the same group.

他の好ましい領域では、第3ステップにおいて、面積および形状が整合し、シルク印刷パターンおよび配線パターンのいずれも介在させずに配置されている複数のランド領域を、同一のグループに分類する。この方法によれば、チップ部品やトランジスタなど、電極の数が比較的少ない部品に対応するランド領域の集合を、同じグループに含めることが可能になる。   In another preferable region, in the third step, a plurality of land regions having the same area and shape and arranged without any silk printing pattern and wiring pattern are classified into the same group. According to this method, a set of land regions corresponding to components having a relatively small number of electrodes, such as chip components and transistors, can be included in the same group.

つぎに、他の好ましい態様では、第4ステップにおいて、1つの部品種の標準パターンを1または複数のグループのランド領域の分布パターンに対応づけて、ランド領域の数および配置の一致度を求める。このようにすれば、第3ステップのグループ分けの段階で、1つの部品に対応するランド領域がすべて同じグループに分類されている場合でも、複数のグループに分割されて分類されている場合でも、これらのグループが該当部品種に正しく対応づけられたときの一致度を他の場合より高くすることができ、部品の特定を精度良く行うことができる。   Next, in another preferred aspect, in the fourth step, the standard pattern of one component type is associated with the distribution pattern of one or more groups of land areas, and the number of land areas and the degree of arrangement match are obtained. In this way, even if the land areas corresponding to one part are all classified into the same group or divided into a plurality of groups at the stage of grouping in the third step, The degree of coincidence when these groups are correctly associated with the corresponding part type can be made higher than in other cases, and the parts can be identified with high accuracy.

上記の領域設定データの作成方法は、基板を撮像するための撮像手段と、この撮像手段が検査対象の基板を撮像することにより生成された検査対象画像中の各部品に設定する検査領域の領域設定データを作成する領域設定データ作成手段と、作成された領域設定データを保存するためのメモリと、メモリに登録された領域設定データに基づき検査対象画像に検査領域を設定して、各検査領域内の画像を処理することにより基板上の各部品の実装状態を判別する検査実行手段と、検査実行手段による判別結果を出力する出力手段とを具備する基板外観検査装置に適用することができる。   The area setting data creation method includes an imaging unit for imaging a substrate, and an area of an inspection region set for each component in an inspection target image generated by imaging the substrate to be inspected by the imaging unit. Area setting data creating means for creating setting data, a memory for storing the created area setting data, an inspection area is set in the inspection target image based on the area setting data registered in the memory, and each inspection area The present invention can be applied to a board appearance inspection apparatus that includes an inspection execution unit that determines the mounting state of each component on the substrate by processing an image in the image, and an output unit that outputs a determination result by the inspection execution unit.

上記の検査装置では、メモリには、複数の部品種について、それぞれ部品電極に対応するランド領域の標準配置パターンと検査領域の標準の領域設定データを含む標準検査データとが登録される。また領域設定データ作成手段には、以下の2値画像生成手段、グルーピング手段、部品特定手段、および登録手段が設けられる。   In the above-described inspection apparatus, for the plurality of component types, standard arrangement patterns of land areas corresponding to the component electrodes and standard inspection data including standard area setting data of the inspection area are registered. The area setting data creating means includes the following binary image generating means, grouping means, component specifying means, and registration means.

2値画像生成手段は、部品実装前または部品実装後のモデル基板の画像から基板上のランド領域およびシルク印刷パターンならびに配線パターンをそれぞれ個別に検出し、各検出結果を表す3種類の2値画像を生成する。グルーピング手段は、シルク印刷パターンまたは配線パターンが介在する関係にあるランド領域の組を同じグループに分類しないことを条件として、3種類の2値画像の対応関係に基づき各ランド領域をグループ分けする。部品特定手段は、グループ分けの終了後に、ランド領域の2値画像を部品種毎のランド領域の標準配置パターンと照合する処理を、同一グループ内のランド領域を同一の部品種に対応づけることを条件として実行することにより、基板に実装される各部品の部品種、実装範囲、および部品の向きを特定する。登録手段は、部品特定手段により特定された各部品に対し、それぞれ特定された実装範囲に特定された部品の方向に基づき特定された部品種の標準の領域設定データを適用することによって、当該部品に設定する検査領域を特定し、この検査領域の設定にかかる領域設定データをメモリに登録する。   The binary image generating means individually detects a land area, a silk print pattern, and a wiring pattern on the board from an image of the model board before or after component mounting, and three types of binary images representing each detection result. Is generated. The grouping means groups the land areas based on the correspondence relationship of the three types of binary images on the condition that the set of land areas having a relationship involving the silk print pattern or the wiring pattern is not classified into the same group. After the grouping is completed, the component specifying means performs a process of collating the binary image of the land region with the standard arrangement pattern of the land region for each component type, and associating the land region in the same group with the same component type. By executing as a condition, the component type, mounting range, and component orientation of each component mounted on the board are specified. The registration unit applies the standard region setting data of the component type specified based on the direction of the component specified in the specified mounting range to each component specified by the component specifying unit, thereby The inspection area to be set is specified, and the area setting data for setting the inspection area is registered in the memory.

上記の領域設定データの作成方法および基板外観検査装置によれば、モデル基板の画像から生成された3種類の2値画像の対応関係と部品種毎のランド領域の標準配置パターンとを用いて、画像中のランド領域の分布パターンから各部品の部品種、実装範囲、および部品の向きを正しく特定することが可能になる。よって、基板設計データを用いなくとも、各部品に、それぞれ該当部品種の標準の領域設定データを正しく対応づけて、検査領域を定めることが可能になる。   According to the region setting data creation method and the board appearance inspection apparatus, the correspondence between the three types of binary images generated from the model board image and the standard arrangement pattern of the land area for each component type are used. It is possible to correctly specify the component type, mounting range, and component orientation of each component from the distribution pattern of the land area in the image. Therefore, it is possible to determine the inspection region by correctly associating each region with the standard region setting data of the corresponding component type without using the board design data.

(1)装置構成
図1は、この発明が適用された基板外観検査装置の電気的構成を示す。
この基板外観検査装置(以下、単に「検査装置」という。)は、はんだ付け後のプリント基板を対象に、各部品の位置および姿勢、はんだ付け状態などの適否を検査するためのもので、カメラ1、照明装置2、Xステージ部3、Yステージ部4、およびコンピュータによる制御部5を含む制御処理装置50などにより構成される。このほか、図1には示していないが、この検査装置には、検査対象の基板を支持するための基板支持テーブルや、基板の搬出入機構などが設けられる。
(1) Apparatus Configuration FIG. 1 shows an electrical configuration of a substrate visual inspection apparatus to which the present invention is applied.
This board appearance inspection apparatus (hereinafter simply referred to as “inspection apparatus”) is for inspecting the suitability of the position and orientation of each component, soldering state, etc., on a printed circuit board after soldering. 1, an illumination device 2, an X stage unit 3, a Y stage unit 4, and a control processing device 50 including a computer control unit 5. In addition, although not shown in FIG. 1, the inspection apparatus is provided with a substrate support table for supporting a substrate to be inspected, a substrate carry-in / out mechanism, and the like.

カメラ1および照明装置2は、「カラーハイライト方式」と呼ばれる光学系を構成するものである。カメラ1は、カラー静止画像を生成するタイプのもので、基板の上方に受光面を真下に向けて配置される。照明装置2は、カメラ1の光軸を囲む各方位からそれぞれ赤、緑、青の各色彩光を異なる入射角をもって照射する。  The camera 1 and the illumination device 2 constitute an optical system called “color highlight system”. The camera 1 is of a type that generates a color still image, and is arranged above the substrate with the light receiving surface facing directly below. The illuminating device 2 irradiates red, green, and blue color lights from different directions surrounding the optical axis of the camera 1 with different incident angles.

Xステージ部3は、カメラ1および照明装置2を基板支持テーブルの上方で支持し、Yステージ部4は基板支持テーブルを支持する。いずれのステージ部3,4とも、その支持対象を、一軸に沿って移動させることが可能である。また一方のステージ部による移動の方向は、他方のステージ部による移動の方向に直交する関係にある。   The X stage unit 3 supports the camera 1 and the illumination device 2 above the substrate support table, and the Y stage unit 4 supports the substrate support table. In any of the stage portions 3 and 4, the support target can be moved along one axis. The direction of movement by one stage unit is orthogonal to the direction of movement by the other stage unit.

制御処理装置50は、各ステージ部3,4やカメラ1および照明装置2の動作を制御して検査のためのカラー画像を生成し、各種検査を実行するもので、制御部50のほか、メモリ6、画像入力部7、撮像制御部8、照明制御部9、Xステージ駆動部10,Yステージ駆動部11、入力部12、表示部13、通信用インターフェース14などが含まれる。   The control processing device 50 controls the operation of each of the stage units 3 and 4 and the camera 1 and the illumination device 2 to generate a color image for inspection, and executes various inspections. 6, an image input unit 7, an imaging control unit 8, an illumination control unit 9, an X stage drive unit 10, a Y stage drive unit 11, an input unit 12, a display unit 13, and a communication interface 14.

画像入力部7には、カメラ1から出力されたR,G,Bの各画像信号を受け付けるインターフェース回路や、これらの画像信号をディジタル変換するA/D変換回路などが含まれる。撮像制御部8は、カメラ1の撮像タイミングを制御し、照明制御部9は、照明装置2の光量、発光色、点灯タイミングなどを制御する。   The image input unit 7 includes an interface circuit that receives R, G, and B image signals output from the camera 1 and an A / D conversion circuit that digitally converts these image signals. The imaging control unit 8 controls the imaging timing of the camera 1, and the illumination control unit 9 controls the light amount, emission color, lighting timing, and the like of the lighting device 2.

入力部12は、ティーチングの際の設定操作などを行うためのもので、専用の操作ボタン、またはマウスやキーボードにより構成される。表示部13は、検査用の画像や検査結果などを表示するためのもので、液晶パネルなどにより構成される。通信用インターフェース14は、検査結果を外部の装置に送信する目的に使用される。   The input unit 12 is for performing a setting operation at the time of teaching, and is configured by a dedicated operation button, a mouse, or a keyboard. The display unit 13 is used to display an inspection image, an inspection result, and the like, and includes a liquid crystal panel or the like. The communication interface 14 is used for the purpose of transmitting the inspection result to an external device.

メモリ6は、ハードディスク等の大容量の記憶装置であって、制御および検査に関するプログラムのほか、検査データファイル61、ランドパターン登録部62、標準検査データ登録部63などが格納される。   The memory 6 is a large-capacity storage device such as a hard disk, and stores an inspection data file 61, a land pattern registration unit 62, a standard inspection data registration unit 63, and the like, in addition to programs related to control and inspection.

検査データファイル61には、画像中の各部品に検査領域を設定するための設定データ(各種領域の位置や大きさを示すデータ)のほか、被検査部位の色彩を検出するための2値化しきい値、被検査部位を計測して得た特徴量の適否を判定するための判定用のしきい値などが登録される。   In the inspection data file 61, in addition to setting data (data indicating the position and size of various areas) for setting the inspection area for each part in the image, the binarization for detecting the color of the inspected part is performed. A threshold value and a threshold value for determination for determining the suitability of the feature amount obtained by measuring the inspection site are registered.

ランドパターン登録部62には、複数の部品種のランドの標準の配置パターン(以下、「標準ランドパターン」という。)が登録されており、標準検査データ登録部63には、各部品種の標準検査データが登録されている。これらのデータベース62,63は、検査データファイル61に登録する検査データの作成に用いられるもので、いずれの登録情報も部品種の識別情報(部品種名)に対応づけられている。   In the land pattern registration unit 62, standard arrangement patterns of lands of a plurality of component types (hereinafter referred to as “standard land patterns”) are registered, and in the standard inspection data registration unit 63, standard inspection of each component type is performed. Data is registered. These databases 62 and 63 are used to create inspection data to be registered in the inspection data file 61, and any registered information is associated with component type identification information (component type name).

制御部5は、メモリ6内のプログラムや検査データファイル61に基づき、カメラ1から入力した画像を用いて、部品毎に検査のための画像処理や判定処理を実行し、最終的に各検査結果をまとめて、基板が良品基板であるか不良基板であるかを判定する。各検査の結果は基板毎にまとめられて表示部13に表示されるほか、通信用インターフェース14を介して図示しない外部機器に出力される。   Based on the program in the memory 6 and the inspection data file 61, the control unit 5 uses the image input from the camera 1 to execute image processing and determination processing for each component, and finally each inspection result. In summary, it is determined whether the substrate is a non-defective substrate or a defective substrate. The results of each inspection are collected for each substrate and displayed on the display unit 13, and are also output to an external device (not shown) via the communication interface 14.

(2)検査データの作成処理
上記検査装置では、検査に先立ち、検査対象の基板のモデル(以下、「モデル基板」という。)の画像(以下、「モデル画像」という。)と、ランドパターン登録部62および標準検査データ登録部63の登録情報とを用いて、検査対象の基板の検査データを作成して、検査データファイル61に登録するようにしている。検査データの作成および登録に関する一連の処理も、メモリ6に格納されたプログラムにより動作する制御部5が実行するものである。
(2) Processing for creating inspection data In the inspection apparatus, prior to inspection, an image (hereinafter referred to as “model image”) of a model of a substrate to be inspected (hereinafter referred to as “model substrate”) and land pattern registration. Using the registration information of the unit 62 and the standard inspection data registration unit 63, the inspection data of the substrate to be inspected is created and registered in the inspection data file 61. A series of processing relating to the creation and registration of inspection data is also executed by the control unit 5 that operates according to a program stored in the memory 6.

図2は、検査データの自動作成処理に関する概略フローチャートである。以下、この図2の各ステップ(S1〜S11)に沿って、制御部5により実行される一連の処理を説明する。   FIG. 2 is a schematic flowchart regarding the automatic creation process of inspection data. Hereinafter, a series of processes executed by the control unit 5 will be described along the steps (S1 to S11) in FIG.

(a)モデル基板の撮像(ステップS1)
この実施例では、1枚のモデル基板を、クリームはんだの塗布、部品実装、はんだ付けの各工程を実行する前および各工程を実行した後の2回にわたって、それぞれ撮像することにより、部品実装前の基板のモデル画像と、部品実装後の基板のモデル画像とを生成する。以下、前者を「実装前モデル画像」、後者を「実装後モデル画像」という。
これら2枚のモデル画像のうち、検査データの作成処理において主要な役割を果たすのは、実装前モデル画像である。
(A) Imaging of model substrate (step S1)
In this embodiment, a single model board is imaged before and after component soldering, component mounting, and soldering steps before and after each step. A model image of the board and a model image of the board after component mounting are generated. Hereinafter, the former is referred to as “pre-mounting model image”, and the latter is referred to as “post-mounting model image”.
Of these two model images, the pre-mounting model image plays a major role in the inspection data creation process.

図3は、実装前モデル画像の一例を示す。この図では、ランドの色彩を塗りパターンで表現し、シルク印刷パターンを太黒線で表し、配線パターンを塗りパターン入りの線または一本線で表している。実際のランドは黄土色に近く、シルク印刷パターンは白色に近い。また配線パターンは、基板のレジストの色彩(緑色)に近い色彩(深緑色)である。   FIG. 3 shows an example of a pre-mounting model image. In this figure, the color of the land is represented by a paint pattern, the silk print pattern is represented by a thick black line, and the wiring pattern is represented by a line with a paint pattern or a single line. The actual land is close to ocher and the silk print pattern is close to white. The wiring pattern has a color (dark green) close to the color of the resist on the substrate (green).

各ランドの形成位置は、実装される部品の位置および向きに応じて決定される。シルク印刷パターンは、1つの部品の実装範囲を取り囲む枠状のパターンと、隣接する部品間の境界線を表す線状のパターンとに大別される。塗りパターンで表した配線パターンは、主要な信号経路を形成し、一本線の配線パターンは、隣接するランド間を接続するものである。   The formation position of each land is determined according to the position and orientation of the component to be mounted. Silk printing patterns are roughly classified into a frame-like pattern surrounding a mounting range of one component and a linear pattern representing a boundary line between adjacent components. The wiring pattern represented by the paint pattern forms a main signal path, and the single-line wiring pattern connects adjacent lands.

なお、図3中の領域P,Qは、後記する図13の例示に対応する。また、領域Sは、図16および図18の例示に対応し、領域Tは、図11および図19の例示に対応する。   Note that regions P and Q in FIG. 3 correspond to the illustration of FIG. 13 described later. The region S corresponds to the illustrations of FIGS. 16 and 18, and the region T corresponds to the illustrations of FIGS. 11 and 19.

この実施例では、上記の実装前モデル画像から、ランド、シルク印刷パターン、配線パターンをそれぞれ個別に検出し、それぞれの検出結果を示す2値画像を生成する。以下、各2値画像を、「ランドパターン画像」「シルクパターン画像」「配線パターン画像」と呼ぶことにする。   In this embodiment, lands, silk printing patterns, and wiring patterns are individually detected from the pre-mounting model image, and a binary image indicating each detection result is generated. Hereinafter, each binary image is referred to as “land pattern image”, “silk pattern image”, and “wiring pattern image”.

(b)ランドパターン画像の生成・およびランドの認識(ステップS2)
ステップS2では、実装前モデル画像を、ランドの色彩を有する画素が「1」、その他の色彩の画素が「0」となるように2値化し、2値化後の画像にノイズ除去処理等を施すことによって、図4に示すようなランドパターン画像を生成する。
(B) Land pattern image generation and land recognition (step S2)
In step S2, the pre-mounting model image is binarized so that the pixels having the land color are “1” and the other color pixels are “0”, and noise removal processing is performed on the binarized image. As a result, a land pattern image as shown in FIG. 4 is generated.

さらにステップS2では、上記のランドパターン画像の値が「1」の画素を対象に、ラベリング処理を行うことによって、ランドパターン画像に含まれる各ランドを個別に認識し、それぞれに識別番号を設定する。また各ランドの代表点の座標(たとえばランドに外接矩形を設定し、その各頂点を代表点とする。)を計測し、これらの座標と識別番号とを対応づけて作業用メモリ(RAM)内に保存する。これらの保存データは、以後、処理対象のランドを特定したり、グループに入る対象のランドを検索する処理(図10,12)などにおいて使用される。   Further, in step S2, by performing a labeling process on the pixel whose value of the land pattern image is “1”, each land included in the land pattern image is individually recognized, and an identification number is set for each. . Also, the coordinates of the representative points of each land (for example, a circumscribed rectangle is set on the land and each vertex thereof is used as the representative point), and these coordinates and the identification number are associated with each other in the working memory (RAM). Save to. These stored data are used thereafter in processing for specifying a land to be processed or searching for a land to be included in a group (FIGS. 10 and 12).

なお、ラベリング処理とは、データが同一で連続する関係にある画素に同一のラベルを設定することにより、着目するデータを有する画素群を、それぞれ個別の領域として検出するものである。   Note that the labeling process is to detect pixel groups having data of interest as individual areas by setting the same label to pixels having the same and continuous data.

(c)シルクパターン画像・配線パターン画像の生成(ステップS3,S4)
つぎに、ステップS3では、実装前モデル画像を、シルク印刷パターンの色彩を有する画素が「1」になり、その他の色彩の画素が「0」になるように2値化を行い、ノイズの除去や直線パターンを補完する処理などを実行することによって、図5に示すようなシルクパターン画像を生成する。
(C) Generation of silk pattern image / wiring pattern image (steps S3 and S4)
Next, in step S3, the pre-mounting model image is binarized so that the pixels having the color of the silk print pattern become “1” and the pixels of the other colors become “0”, and noise is removed. And a process of complementing the linear pattern, etc., to generate a silk pattern image as shown in FIG.

つぎにステップS4では、実装前モデル画像を、配線パターンの色彩を有する画素が「1」になり、その他の色彩の画素が「0」になるように2値化を行い、ノイズの除去や直線パターンを補完する処理などを実行する。なお、この場合のノイズ除去処理では、配線パターンの色彩がレジストの色彩に近く、レジストの一部がノイズとして検出される可能性がある点を考慮して、2値化により検出された領域のうち直線状のパターンでないものをノイズとして除去する。   Next, in step S4, the pre-mounting model image is binarized so that the pixels having the color of the wiring pattern become “1” and the pixels of the other colors become “0”, and noise removal and straight lines are performed. Perform processing to complement the pattern. Note that in the noise removal processing in this case, in consideration of the fact that the color of the wiring pattern is close to the color of the resist and a part of the resist may be detected as noise, the region detected by binarization is used. Of these, those that are not linear patterns are removed as noise.

(d)ランドのグルーピングに関する処理(ステップS5〜S8)
これらのステップでは、ステップS2で生成されたランドパターン画像をベースに、シルクパターン画像や配線パターン画像との対応関係に基づき、各ランドをグループ分けする。この一連のグループ分けでは、シルク印刷パターンに挟まれたり、配線パターンにより接続されているランドが同じグループに含まれないようにすることを条件とする。シルク印刷パターンは、1つ1つの部品の実装範囲の境界を表すものであるから、同じ部品に対応するランド間にシルク印刷パターンが介在することはあり得ず、また同じ部品に対応するランドが配線パターンを介して短絡することもあり得ないからである。
(D) Land grouping processing (steps S5 to S8)
In these steps, the lands are grouped based on the correspondence relationship with the silk pattern image and the wiring pattern image based on the land pattern image generated in step S2. In this series of grouping, it is a condition that lands sandwiched between silk print patterns or connected by wiring patterns are not included in the same group. Since the silk print pattern represents the boundary of the mounting range of each component, the silk print pattern cannot be interposed between lands corresponding to the same component, and there is no land corresponding to the same component. This is because there is no possibility of a short circuit via the wiring pattern.

さらに、この実施例では、グルーピング処理の過程で、設定されたグループ(以下、「ランドグループ」という。)に対応する部品種を推定し、その推定結果に基づき各ランドグループを、コネクタ・トランジスタグループ、ICグループ、一般ランドグループの3種類に分類する。各ランドグループの情報は、グループの識別番号に、グループの種別を示す情報と、グループの構成要素のランドの識別番号とを対応づけたものとなる。   Furthermore, in this embodiment, in the course of the grouping process, the component type corresponding to the set group (hereinafter referred to as “land group”) is estimated, and each land group is determined as a connector / transistor group based on the estimation result. , IC group, and general land group. The information of each land group is obtained by associating the group identification number with information indicating the type of the group and the land identification number of the group component.

図6は、図4のランドパターン画像を対象にグルーピング処理を実行した結果を示す。
この図では、相互に線種の異なる矩形枠や塗りパターンを用いて、各グループとランドとの関係を表している。
FIG. 6 shows a result of performing the grouping process on the land pattern image of FIG.
In this figure, the relationship between each group and the land is represented by using rectangular frames and paint patterns having different line types.

図6の例によれば、ICグループには、幅狭形状のランドをその幅方向に沿って並べた配列が2組以上含まれている。コネクタ・トランジスタグループや一般ランドグループでは、同じ形状のランドを複数含むタイプのものが多いが、1個のランドのみで形成されたグループも存在する。   According to the example of FIG. 6, the IC group includes two or more arrays in which narrow lands are arranged along the width direction. There are many types of connectors / transistor groups and general land groups that include a plurality of lands having the same shape, but there are also groups formed of only one land.

以下、図2のステップS5〜S8について、それぞれ詳細なフローチャートや説明図を用いて説明する。   Hereinafter, steps S5 to S8 in FIG. 2 will be described using detailed flowcharts and explanatory diagrams, respectively.

(d)−1 シルク包含領域に基づくランドのグルーピング(ステップS5)
この処理は、シルクパターン画像を用いて、シルク印刷パターンにより囲まれて独立している領域(これを「シルク包含領域」という。)を検出し、シルク包含領域毎にランドグループを設定するもので、図7に詳細な手順を、図8に具体例を、それぞれ示してある。
(D) -1 Grouping of lands based on silk inclusion area (step S5)
This process uses a silk pattern image to detect an independent area surrounded by a silk print pattern (referred to as “silk inclusion area”), and sets a land group for each silk inclusion area. FIG. 7 shows a detailed procedure, and FIG. 8 shows a specific example.

図7,8を参照して説明すると、まずシルクパターン画像の背景画素(シルク印刷パターンの色彩を持たない画素、すなわち値が「0」の画素である。)を対象に、ラベリング処理を実行する(ステップ501)。これにより、シルク印刷パターンによって周囲から分断された状態にある領域(図8のR1〜R13)が検出される。また、領域R1〜R13以外の場所にある背景画素は、いずれかの位置で連続した状態になっているため、これらの背景画素の集合が1つの領域R14として検出される。   Referring to FIGS. 7 and 8, first, a labeling process is executed on a background pixel of a silk pattern image (a pixel having no color of a silk print pattern, that is, a pixel having a value of “0”). (Step 501). Thereby, the area | region (R1-R13 of FIG. 8) in the state parted from the circumference by the silk printing pattern is detected. In addition, since the background pixels at locations other than the regions R1 to R13 are continuous at any position, a set of these background pixels is detected as one region R14.

この実施例では、上記の処理結果を利用して、ラベリング処理により検出された領域のうちで最も面積が大きい領域R14を除外し、残りの領域R1〜R13をシルク包含領域として特定する(ステップ502,図8の(2))。この後は、特定されたシルク包含領域R1〜R13をランドパターン画像に対応づけて(ステップ503)、各シルク包含領域R1〜R13に順に着目し(ステップ504)、着目領域に含まれるランドを検出して1つのランドグループを設定する(ステップ505,506)。また、ランドの数が2個以下のグループを一般ランドグループとし、ランドの数が3個以上のグループをコネクタ・トランジスタグループとする(ステップ507,508,509)。   In this embodiment, using the above processing results, the region R14 having the largest area among the regions detected by the labeling processing is excluded, and the remaining regions R1 to R13 are specified as silk inclusion regions (step 502). FIG. 8 (2)). Thereafter, the identified silk inclusion areas R1 to R13 are associated with the land pattern image (step 503), and attention is paid to the silk inclusion areas R1 to R13 in order (step 504), and the lands included in the attention area are detected. One land group is set (steps 505 and 506). A group having two or less lands is defined as a general land group, and a group having three or more lands is defined as a connector / transistor group (steps 507, 508, and 509).

図8(C)の例によれば、シルク包含領域R1〜R13のうち、領域R6を除く各領域には、それぞれランドが含まれているので、これらの領域に対して、それぞれランドグループが形成される。そのうち領域R1,R3,R12がコネクタ・トランジスタグループとして設定され、残りの領域は一般ランドグループとして設定される。   According to the example of FIG. 8C, each of the silk inclusion regions R1 to R13 excluding the region R6 includes lands, and land groups are formed for these regions. Is done. Of these, regions R1, R3, and R12 are set as connector / transistor groups, and the remaining regions are set as general land groups.

(d)−2シルク包含領域外のランドの振り分け(ステップS6)
この処理では、シルク包含領域の外側に位置するランドを対象に、各ランドを、リード部品用の電極(リード)を接続するためのランド(以下、「リード用ランド」という。)と、リード部品以外の部品の電極を接続するためのランド(以下、「一般ランド」という。)とに分類する。図9は、この振り分け処理の詳細な手順を示すものである。
(D) -2 Land distribution outside the silk inclusion region (step S6)
In this process, for the lands located outside the silk inclusion region, each land is connected to a land for connecting an electrode (lead) for a lead component (hereinafter referred to as “lead land”), and the lead component. It is classified as a land for connecting electrodes of other parts (hereinafter referred to as “general land”). FIG. 9 shows the detailed procedure of this distribution process.

図9を参照して説明すると、まず未分類のランドの1つに着目し(ステップ601)、このランドの面積および外接矩形の各辺の長さを計測する(ステップ602)。つぎに、外接矩形の長辺に対する短辺の長さの比(短辺の長さ/長辺の長さ)を求め、この比の値が所定のしきい値以上であれば着目ランドを一般ランドとして特定し、上記の比の値がしきい値より小さい場合には、着目ランドをリード用ランドとして特定する(ステップ603,604,605)。さらに、ステップ602で得た各計測値を、着目ランドの識別番号に対応づけて一時保存する(ステップ606)。以下も、未分類のランドに順に着目して(ステップ607)、同様の処理を実行する。   Referring to FIG. 9, first, attention is paid to one of unclassified lands (step 601), and the area of this land and the length of each side of the circumscribed rectangle are measured (step 602). Next, the ratio of the length of the short side to the long side of the circumscribed rectangle (short side length / long side length) is obtained, and if the value of this ratio is equal to or greater than a predetermined threshold value, If the ratio is smaller than the threshold value, the target land is identified as a read land (steps 603, 604, and 605). Further, each measurement value obtained in step 602 is temporarily stored in association with the identification number of the target land (step 606). In the following, the same processing is executed by paying attention to the unclassified lands in order (step 607).

(d)−3 リード用ランドのグルーピング(ステップS7)
この処理では、上記の振り分け処理によりリード用ランドとして特定されたランドを対象に、グルーピングを行う。図10はその詳細な手順を示す。
(D) -3 Grouping of lead lands (step S7)
In this process, grouping is performed on the land specified as the lead land by the above-described distribution process. FIG. 10 shows the detailed procedure.

図10を参照して説明すると、まず未分類のリード用ランドの1つに着目して、このランドを構成要素とする新規グループを設定する(ステップ701)。   Referring to FIG. 10, first, focusing on one of unclassified lead lands, a new group having this land as a constituent element is set (step 701).

つぎに、着目ランドの幅方向(ランドに外接する矩形の短辺の方向)に沿って、当該ランドと大きさや形状が近似するランドを検索する(ステップ702)。具体的には、外接矩形の各辺や面積の計測値の着目ランドに対する差が所定の許容値以内であり、長さ方向における位置ずれが所定の許容範囲にあるランドを、検出の対象とする。ただし、検索の範囲は着目ランドから所定距離以内に限定され、シルク印刷パターンや配線パターンをまたぐ検索を実行することはできない。   Next, along the width direction of the target land (the direction of the short side of the rectangle circumscribing the land), a land whose size and shape approximate to the land is searched (step 702). Specifically, a land whose difference between the measured value of each side or area of the circumscribed rectangle and the target land is within a predetermined allowable value and whose positional deviation in the length direction is within a predetermined allowable range is set as a detection target. . However, the search range is limited to a predetermined distance from the target land, and a search across the silk print pattern and the wiring pattern cannot be executed.

上記の条件を満たすランドが見つかると、検出したランドをグループに加え(ステップ703,704)、検索を続行する。以下も、検出対象のランドが見つかれば、そのランドを処理中のグループに加える。   If a land satisfying the above conditions is found, the detected land is added to the group (steps 703 and 704), and the search is continued. In the following, if a land to be detected is found, the land is added to the group being processed.

なお、上記の検索では、第1回目は、着目ランドを挟んで反転する2方向に対して検索を行い、これらの一方で検出対象のランドが見つかれば、以後はその方向に限定して検索を実行する。ただし、最初の検索で、いずれの方向でも条件を満たすランドが見つかった場合には、以下も、各方向を検索対象にする。   In the above search, the first time, the search is performed in two directions that are reversed with the target land in between. If one of these lands is detected, the search is limited to that direction thereafter. Execute. However, if a land satisfying a condition in any direction is found in the first search, each direction is also set as a search target in the following.

ステップ701〜704のループが終了すると、この処理により設定されたグループに含まれるランドの数に応じて、グループの種別を決定する。具体的には、ランドの数が2個以上のグループをICグループとして設定し、ランドの数が1つのグループをコネクタ・トランジスタグループとして設定する(ステップ705,706,707)。   When the loop of steps 701 to 704 ends, the type of group is determined according to the number of lands included in the group set by this processing. Specifically, a group having two or more lands is set as an IC group, and a group having one land is set as a connector / transistor group (steps 705, 706, and 707).

以下も、グループが定められていないリード用ランドを対象にして、上記の処理を実行することにより、各リード用ランドを所定数のグループに分類する(701〜708)。さらにこの後は、ICグループを対象に、グループの統合処理(ステップ709)を実行することにより、1つの部品毎にICグループが形成されるようにする。   In the following, each of the read lands is classified into a predetermined number of groups by executing the above-described processing for the read lands for which no group is defined (701 to 708). Thereafter, the IC group is formed for each component by executing group integration processing (step 709) for the IC group.

ここで上記の統合処理については、図11を参照して説明する。
この図11の例は、図3の領域Tに設定された4つのICグループG1〜G4を統合するものである。ここでは、まず設定されたICグループの1つ(G1)に着目して、このグループG1と対向する関係にあり、同様のランド配列を有するグループを検索する(図11の(1)(2))。具体的には、着目グループのランドの配列の方向に直交する方向に沿って、当該グループとランドの数が同一で、各ランドの大きさおよび形状が近似するグループを探すことになる。なお、図11には示していないが、この場合の検索も、着目グループの配列を挟んで反転する2方向に対して行われ、検索の範囲も限定される。
Here, the integration processing will be described with reference to FIG.
In the example of FIG. 11, the four IC groups G1 to G4 set in the region T of FIG. 3 are integrated. Here, focusing on one of the set IC groups (G1), a group having a similar land arrangement that is opposed to this group G1 is searched ((1) (2) in FIG. 11). ). Specifically, a group in which the number of lands and the number of lands is the same and the size and shape of each land are approximated is searched for along the direction orthogonal to the direction of land arrangement of the group of interest. Although not shown in FIG. 11, the search in this case is also performed in two directions that are reversed across the array of the group of interest, and the search range is also limited.

上記の処理により条件を満たすICグループG2が見つかると、さらに、グループG1,G2に対して配列方向が90度回転しているグループを検索する(図11(3))。なお、この場合の検索では、一方のグループから他方のグループに向かう方向に、検索対象方向を限定する。   When an IC group G2 satisfying the conditions is found by the above processing, a group whose arrangement direction is rotated by 90 degrees with respect to the groups G1 and G2 is further searched (FIG. 11 (3)). In the search in this case, the search target direction is limited to the direction from one group to the other group.

このようにして、各グループG1,G2と配列方向が直交するグループG3,G4が見つかると、検出された各グループG2,G3,G4を着目グループに統合する(図12(4))。   In this way, when the groups G3 and G4 whose arrangement direction is orthogonal to the groups G1 and G2 are found, the detected groups G2, G3 and G4 are integrated into the group of interest (FIG. 12 (4)).

なお、リード部品の実装範囲では、各リードの配列の間やランドに囲まれる範囲内にシルク印刷パターンが形成される場合がある(図3の領域T内のパターン、および図8の領域R6に対応するシルク印刷パターンを参照。)ので、ICグループを統合する際には、例外的に、シルク印刷パターンをまたぐ検索を認めるようにしている。   In the lead component mounting range, a silk print pattern may be formed between the arrangement of the leads or within the range surrounded by the lands (the pattern in the region T in FIG. 3 and the region R6 in FIG. 8). (Refer to the corresponding silk print pattern.) Therefore, when integrating the IC groups, the search across the silk print patterns is allowed exceptionally.

また、図11の例では、統合された各配列に囲まれる範囲に、4つの未分類のランド101〜104が含まれている。これらのランド101〜104は、部品のパッケージの下面の電極を接続するためのもので、部品が実装されると、隠されて外観検査の対象にならない。この点に鑑み、この実施例では、統合されたグループに囲まれる範囲に未分類のランドが存在する場合には、そのランドを無効化して、以後の処理対象から外すようにしている。   In the example of FIG. 11, four unclassified lands 101 to 104 are included in a range surrounded by the integrated arrays. These lands 101 to 104 are for connecting electrodes on the lower surface of the package of the components. When the components are mounted, the lands 101 to 104 are hidden and are not subjected to appearance inspection. In view of this point, in this embodiment, when an unclassified land exists in the range surrounded by the integrated group, the land is invalidated and excluded from the processing target thereafter.

図11の例によれば、パッケージの4辺すべてにリードが配列された構成の部品(QFP)について、各辺のリードの配列に対応するランドグループを、1つのグループに統合することができる。また、図示していないが、パッケージの対向する2辺のみにリードが配備された構成の部品(SOP)についても、図12の(1)(2)と同様の方法により、各辺のリードの配列に対応するランドグループを特定し、これらを1つのグループに統合することができる。   According to the example of FIG. 11, with respect to a component (QFP) having a structure in which leads are arranged on all four sides of the package, land groups corresponding to the arrangement of leads on each side can be integrated into one group. Although not shown in the figure, the lead (SOP) having a configuration in which leads are arranged only on two opposite sides of the package is also used in the same manner as in (1) and (2) of FIG. Land groups corresponding to the array can be identified and combined into one group.

(d)−4 一般ランドのグルーピング(ステップS8)
このグルーピングは、ステップS6で一般ランドに振り分けられたランドを対象に、実行される。図12は、その詳細な手順を示す。
(D) -4 General land grouping (step S8)
This grouping is executed for the lands assigned to the general lands in step S6. FIG. 12 shows the detailed procedure.

図12を参照して説明すると、この処理でも、未分類の一般ランドの1つに着目して、着目ランドを構成要素とする新規のグループを設定する(ステップ801)。つぎに、着目ランドの周囲を検索して、着目ランドに隣接する一般ランドを検出する(ステップ802)。ここで検出された一般ランドは、着目ランドと同じグループに入る可能性のある候補のランドとして位置づけられる。   Referring to FIG. 12, in this process as well, a new group having the target land as a constituent element is set by focusing on one of the unclassified general lands (step 801). Next, the periphery of the target land is searched to detect a general land adjacent to the target land (step 802). The general land detected here is positioned as a candidate land that may be included in the same group as the target land.

この後は、大きさおよび形状が着目ランドに近似する点、および着目ランドとの間にシルク印刷パターンや配線パターンが存在しない点を、検出の条件として、候補のランドがこれらの条件を満たすかどうか確認する。そして、これらの条件を満たす候補が見つかれば、その候補のランドを処理中のグループに加える(ステップ803〜806)。   After this, whether the candidate land satisfies these conditions as a detection condition that the size and shape approximate to the target land and that there is no silk print pattern or wiring pattern between it and the target land. Please check. If a candidate satisfying these conditions is found, the candidate land is added to the group being processed (steps 803 to 806).

なお、図12では煩雑化を避けるために、検索に関する処理手順をステップ802〜806のように簡易に表したが、実際には、ステップ802で検出された候補をチェックする処理のほか、これらの候補から新たにグループに加えられたランドに対しても、上記の検索条件を満たすランドがないかどうかをチェックする。   In FIG. 12, in order to avoid complication, the processing procedure related to the search is simply expressed as in steps 802 to 806. In practice, in addition to the process of checking the candidates detected in step 802, these procedures are also performed. It is checked whether or not there is a land satisfying the above search condition even for a land newly added to the group from the candidates.

このようにして、処理中のグループに所定数のランドが加えられて1つのグループが形成されると、図7の例と同様に、ランドの数が2以下のグループを一般ランドグループに設定し、ランドの数が3個以上のグループをコネクタ・トランジスタグループに設定する(ステップ807,808,809)。   In this way, when a predetermined number of lands are added to the group being processed to form one group, a group having two or less lands is set as a general land group as in the example of FIG. A group having three or more lands is set as a connector / transistor group (steps 807, 808, and 809).

以下、グループが設定されていないランドがなくなるまで上記の処理を繰り返すことによって(ステップ801〜810)、一般ランドを、所定数の一般ランドグループおよびコネクタ・トランジスタグループに分類する。   Thereafter, the above processing is repeated until there are no lands for which no group is set (steps 801 to 810), thereby classifying the general lands into a predetermined number of general land groups and connector / transistor groups.

図13(1)(2)は、図3の領域P,Qに含まれるランドの1つに着目して、このランドと同じグループに属するランドを検出した例を示す。いずれの例も、左側に3種類のパターン画像を重ね合わせた模式図を示し、右側に、ランドパターン画像に対するグループ設定の結果を示す。   FIGS. 13A and 13B show an example in which a land belonging to the same group as this land is detected by paying attention to one of the lands included in the regions P and Q of FIG. Each example shows a schematic diagram in which three types of pattern images are superimposed on the left side, and the group setting result for the land pattern image is shown on the right side.

図13(1)は、領域P内のランド200に着目してグループの設定を行う例である。
ランド200に着目した場合には、その左隣のランド201および下方のランド202が候補として検出されるが、ランド201は、配線パターン205により着目ランド200に接続されているので、グループに入る条件を満たさない。一方、ランド202は、配線パターンやシルク印刷パターンを挟むことなく着目ランド200の隣に配置されているので、グループに入る条件を満たしている。
FIG. 13A is an example in which group setting is performed by paying attention to the land 200 in the region P.
When attention is paid to the land 200, the land 201 on the left and the land 202 on the lower left are detected as candidates, but the land 201 is connected to the target land 200 by the wiring pattern 205. Does not meet. On the other hand, since the land 202 is arranged next to the target land 200 without interposing a wiring pattern or a silk print pattern, the condition for entering the group is satisfied.

つぎに、ランド202をグループに入れることに伴い、その左隣のランド203が新たな候補となるが、このランド203は配線パターン206によりランド202に接続されているので、グループに入る条件を満たさない。よって、この場合には、ランド200およびランド203による一般ランドグループが設定される。   Next, as the land 202 is put into the group, the land 203 on the left side becomes a new candidate. Since this land 203 is connected to the land 202 by the wiring pattern 206, the condition for entering the group is satisfied. Absent. Therefore, in this case, a general land group including the land 200 and the land 203 is set.

図13(2)は、領域Q内のランド210に着目してグループの設定を行ったものである。このランド210については、左隣のランド211および上下のランド212,214が候補として検出されるが、ランド212,214は、ランド210との間に配線パターン215やシルク印刷パターン216,217が介在するため、グループに入る条件を満たさない。一方、ランド211は、配線パターンやシルク印刷パターンを挟むことなく着目ランド210の隣に配置されているので、グループに入る条件を満たしている。   FIG. 13 (2) is a group setting by paying attention to the lands 210 in the region Q. For this land 210, the adjacent land 211 on the left and the upper and lower lands 212 and 214 are detected as candidates, but the wiring patterns 215 and the silk print patterns 216 and 217 are interposed between the lands 212 and 214. Therefore, the conditions for entering the group are not met. On the other hand, the land 211 is arranged next to the land of interest 210 without interposing a wiring pattern or silk print pattern, and therefore satisfies the conditions for entering the group.

つぎに、ランド211をグループに入れることに伴い、その上にあるランド213が新たな候補となるが、このランド213とランド211との間にはシルク印刷パターン216が介在するので、グループに入る条件を満たさない。よって、この場合には、ランド210およびランド211による一般ランドグループが設定される。   Next, as the land 211 is added to the group, the land 213 on the land 211 becomes a new candidate. Since the silk printing pattern 216 is interposed between the land 213 and the land 211, the land 213 is included in the group. The condition is not met. Therefore, in this case, a general land group including the land 210 and the land 211 is set.

(e)部品特定処理(ステップS9)
この処理は、上記の各種グルーピングにより設定されたランドグループに、各部品種の標準ランドパターンを用いたマッチング処理を実行することによって、基板上の各部品の部品種、実装範囲、および部品の向きを特定し、ランドを対応づけるものである。具体的には、コネクタ・トランジスタグループを対象に図14の処理を実行した後に、ICグループおよび一般ランドグループについて、図15に示す処理をグループ毎に実行するようにしている。
(E) Component identification processing (step S9)
This process is performed by performing a matching process using the standard land pattern of each component type on the land group set by the above various groupings, thereby changing the component type, mounting range, and component direction of each component on the board. It identifies and associates lands. Specifically, after the processing of FIG. 14 is executed for the connector / transistor group, the processing shown in FIG. 15 is executed for each group for the IC group and the general land group.

(e)−1 コネクタ・トランジスタグループ用の部品特定処理
まず、図14を参照して、コネクタ・トランジスタグループ用の部品特定処理を説明する。まず、未処理のコネクタ・トランジスタグループの1つに着目し(ステップ901)、ランドパターン登録部62からコネクタまたはトランジスタの標準ランドパターンを1つ読み出す(ステップ902)。
(E) -1 Component Identification Processing for Connector / Transistor Group First, component identification processing for a connector / transistor group will be described with reference to FIG. First, paying attention to one unprocessed connector / transistor group (step 901), one standard land pattern of a connector or transistor is read from the land pattern registration unit 62 (step 902).

つぎに、読み出した標準ランドパターンと着目グループのランドパターンとの一致度を算出する(ステップ903)。この一致度が所定のしきい値以下であれば、着目グループの隣にあるグループを含む範囲を対象に、再度、一致度を算出する。この場合の隣のグループは、対応する部品が特定されていないものに限るが、コネクタ・ランドグループに限らず、一般ランドグループまたはICグループであっても良い。   Next, the degree of coincidence between the read standard land pattern and the land pattern of the group of interest is calculated (step 903). If the degree of matching is equal to or less than a predetermined threshold, the degree of matching is calculated again for the range including the group adjacent to the group of interest. The adjacent group in this case is limited to a group in which the corresponding component is not specified, but is not limited to the connector / land group, and may be a general land group or an IC group.

なお、ステップ903,905とも、最初に照合対象のグループのランドの数を標準ランドパターンのランドの数とを比較し、両者が一致しない場合には、一致度を0とする。これにより、グループに全く対応していない標準パターンによるマッチングを、実質的にスキップすることができる。   In both steps 903 and 905, the number of lands in the group to be collated is first compared with the number of lands in the standard land pattern, and the degree of coincidence is set to 0 if they do not match. Thereby, the matching by the standard pattern which does not correspond to a group at all can be substantially skipped.

ランドの数が一致した場合には、ランドパターン画像中の照合対象のグループに対応する範囲に標準ランドパターンを対応づけ、ランドパターン画像中のランド構成画素の中で標準ランドパターン側のランドに合致した画素の数を計数する。この演算は1回に限らず、標準ランドパターンの位置や向きを変更しながら、計数処理を繰り返し、その中の最大値を一致度として、しきい値と比較する。   If the number of lands matches, the standard land pattern is associated with the range corresponding to the group to be matched in the land pattern image, and the land in the land pattern image matches the land on the standard land pattern side. Count the number of pixels. This calculation is not limited to one time, and the count process is repeated while changing the position and orientation of the standard land pattern, and the maximum value among them is compared with the threshold value.

上記の処理において、着目グループのみによる一致度、または隣のグループを加えた一致度が所定のしきい値を超えた場合には、ステップ907を実行する。このステップでは、上記のしきい値を超えた一致度を標準ランドパターンの識別コードに対応づけて一時保存する。また、上記の一致度が算出されたときの標準ランドパターンの位置および回転角度を示す情報(たとえば、標準ランドパターンの各ランドの座標および基準の姿勢に対する回転角度)も一時保存する(ステップ907)。   In the above processing, when the matching degree by only the target group or the matching degree including the adjacent group exceeds a predetermined threshold value, step 907 is executed. In this step, the degree of coincidence exceeding the threshold value is temporarily stored in association with the standard land pattern identification code. In addition, information indicating the position and rotation angle of the standard land pattern when the degree of coincidence is calculated (for example, the coordinates of each land of the standard land pattern and the rotation angle with respect to the reference posture) is temporarily stored (step 907). .

以下、各種コネクタに対応する標準ランドパターンおよび各種トランジスタに対応する標準ランドパターンを順に読み出して、それぞれに対する一致度を算出する(ステップ902〜908)。一連の処理が終了すると、しきい値を超える一致度の中の最大値を抽出し、その最大の一致度を得たときの保存データに基づき、着目グループに対応する部品の部品種を特定し(ステップ909,910)、さらにこの部品に対応する領域および部品の向きを特定する(ステップ911)。   Hereinafter, the standard land patterns corresponding to the various connectors and the standard land patterns corresponding to the various transistors are read in order, and the degree of coincidence with each is calculated (steps 902 to 908). When a series of processing is completed, the maximum value of the matching levels exceeding the threshold is extracted, and the part type of the part corresponding to the target group is specified based on the stored data when the maximum matching level is obtained. (Steps 909 and 910) Further, the region corresponding to this part and the direction of the part are specified (step 911).

具体的には、ステップ910では、最大の一致度を得たときの標準パターンに対応する部品種を着目グループに対応するものとして特定する。ステップ911では、最大の一致度を得たときに標準ランドパターンに対応づけられた各ランドの分布範囲を含む矩形領域を、部品対応領域として特定するとともに、そのときの標準ランドパターンの回転角度を、部品の向きを示す情報とする。   Specifically, in step 910, the component type corresponding to the standard pattern when the maximum degree of coincidence is obtained is identified as corresponding to the group of interest. In step 911, a rectangular area including the distribution range of each land associated with the standard land pattern when the maximum coincidence is obtained is specified as a part corresponding area, and the rotation angle of the standard land pattern at that time is determined. The information indicates the orientation of the part.

以下、同様に、全てのコネクタ・ランドグループに順に着目して上記の処理を実行し、未処理のグループがなくなったところで、処理を終了する(ステップ913)。ただし、いずれの標準ランドパターンを用いても、しきい値を超える一致度を得ることができなかったグループについては、処理済みとせずに、グループ種別を一般ランドグループに変更する(ステップ909,912)。よって、このグループには、再度、一般ランドグループ用の部品特定処理が実行されることになる。   Similarly, the above-described processing is executed while paying attention to all connector / land groups in order, and the processing is terminated when there are no unprocessed groups (step 913). However, regardless of which standard land pattern is used, the group type is changed to the general land group without being processed for the group for which the matching degree exceeding the threshold value cannot be obtained (steps 909 and 912). ). Therefore, the component identification process for the general land group is executed again for this group.

(e)−2 ICグループ/一般ランドグループ用の部品特定処理
ICグループや一般ランドグループについては、それぞれ図15の手順をグループ別に実行する。
(E) -2 Part identification processing for IC group / general land group For the IC group and general land group, the procedure of FIG. 15 is executed for each group.

図15を参照して説明すると、この処理でも、未処理の1グループに着目し(ステップ920)、着目グループに対応する標準ランドパターンを読み出す(ステップ921)。たとえば、ICグループに着目している場合には、SOP,QFPなどリード部品に関する標準ランドパターンを読み出し、一般ランドグループに着目しているときには、チップ部品やダイオードなど一対の電極を具備する部品の標準ランドパターンを読み出すことになる。   Referring to FIG. 15, even in this process, attention is paid to one unprocessed group (step 920), and a standard land pattern corresponding to the target group is read (step 921). For example, when an IC group is focused on, a standard land pattern related to lead parts such as SOP and QFP is read, and when a general land group is focused on, a standard for a part having a pair of electrodes such as a chip part and a diode is used. The land pattern is read out.

つぎに、読み出した標準ランドパターンに対する着目グループのランドパターンの一致度を算出する(ステップ922)。ここでは、コネクタ・トランジスタグループに対する処理と同様に、標準ランドパターンの位置や向きを変更して、一致が認められた画素数の計数を複数回行い、そのうちの最大値を一致度として採用する。また、ランドの数が標準ランドパターンと異なる場合には一致度算出をスキップする。   Next, the degree of coincidence of the land pattern of the group of interest with respect to the read standard land pattern is calculated (step 922). Here, similarly to the processing for the connector / transistor group, the position and orientation of the standard land pattern are changed, the number of pixels that are found to be coincident is counted a plurality of times, and the maximum value among them is adopted as the degree of coincidence. If the number of lands is different from the standard land pattern, the coincidence calculation is skipped.

算出された一致度がしきい値を上回る場合には、その一致度、および一致度を得たときの標準ランドパターンの位置および回転角度を一時保存する(ステップ924)。この点も、コネクタ・トランジスタグループにおける処理と同様である。   If the calculated coincidence exceeds the threshold value, the coincidence and the position and rotation angle of the standard land pattern when the coincidence is obtained are temporarily stored (step 924). This is also the same as the processing in the connector / transistor group.

着目グループに対応するすべての標準パターンにより一致度を算出すると、しきい値を超えた一致度の中の最大値を特定し、その最大の一致度を得たときの保存データに基づき、着目グループに対応する部品種、部品対応領域、および部品の向きを特定する(ステップ925〜928)。これらの処理に関しても、コネクタ・トランジスタグループにおける処理と同様である。   When the degree of coincidence is calculated using all the standard patterns corresponding to the target group, the maximum value of the degree of coincidence exceeding the threshold is specified, and the target group is based on the stored data when the maximum degree of coincidence is obtained. The component type, the component corresponding region, and the component direction corresponding to the are identified (steps 925 to 928). These processes are the same as those in the connector / transistor group.

以下も、同様に、ICグループまたは一般ランドグループを対象に、対応する部品を特定し、未処理のグループがなくなったところで(ステップ930)、処理を終了する。   Similarly, the corresponding parts are specified for the IC group or the general land group, and when there is no unprocessed group (step 930), the process is terminated.

また、あるグループに対する処理において、対応する標準ランドパターンのいずれを用いても、しきい値を超える一致度が得られなかった場合には、そのグループに特定不能フラグを設定する(ステップ929)。このグループには、次の検査データの設定処理が不可能になるので、別途、ユーザの手動操作により検査データを設定する必要がある。ただし、ステップ929に移行するのは、着目グループに対応する部品種のデータがなかった場合と考えられるから、十分な数の部品種について標準ランドパターンや標準検査データを登録しておけば、手動設定が行われる頻度をごくわずかにできると考えられる。   Further, in the process for a certain group, if any of the corresponding standard land patterns is used and the degree of coincidence exceeding the threshold is not obtained, an unspecified flag is set for the group (step 929). Since it is impossible to set the next inspection data in this group, it is necessary to separately set inspection data by a user's manual operation. However, since it is considered that there is no part type data corresponding to the target group, the process proceeds to step 929. Therefore, if standard land patterns and standard inspection data are registered for a sufficient number of part types, manual operation is possible. It can be considered that the frequency of setting is negligible.

図16は、1つのコネクタ・トランジスタグループG11と、3つの一般ランドグループG12,G13,G14とを含む範囲(図3の領域Sに対応するもの)を例に、上記図14,15の処理を行った例を示す。   FIG. 16 shows an example of a range including one connector / transistor group G11 and three general land groups G12, G13, G14 (corresponding to the region S in FIG. 3). An example is shown.

この領域については、まずコネクタ・トランジスタグループに対する部品特定処理(図14)によって、3個のグループG11,G12,G13の組み合わせがトランジスタTの標準ランドパターンに対応するものとして特定されている。また残りの一般ランドグループG14は、一般ランドグループ用の部品特定処理(図15)によって、チップ部品Cの標準ランドパターンに対応するものとして特定されている。 This region, the component identifying process (FIG. 14) for the first connector transistor group, a combination of three groups G11, G12, G13 is identified as corresponding to the standard land patterns of the transistor T A. The remaining general land group G14 is the component identifying process for general land groups (Fig. 15), have been identified as corresponding to the standard land patterns of the chip component C P.

上記のコネクタ・トランジスタグループG11は、図9のランドの振り分け処理においてリード用ランドに分類された後に、図10のグルーピング処理によってコネクタ・トランジスタグループに分類されたものである。一方、グループG12,G13は、一般ランドに分類された後に、図12のグルーピング処理によって一般ランドグループに分類されたものである。このように、同じ部品に対応する複数のランドが異なるグループに分割され、またその中に実際の部品に対応しないランドグループが存在する場合でも、それぞれのグループに他の部品に対応するランドが含まれることがなければ、最終的に標準ランドパターンとの照合によって、各グループを対応づけて、これらのグループが示すランドパターンに適合する部品種を特定することが可能になる。   The connector / transistor group G11 is classified into the connector / transistor group by the grouping process of FIG. 10 after being classified into the read land in the land distribution process of FIG. On the other hand, the groups G12 and G13 are classified into general lands by the grouping process of FIG. 12 after being classified into general lands. In this way, even when a plurality of lands corresponding to the same part are divided into different groups, and there are land groups that do not correspond to actual parts, lands corresponding to other parts are included in each group. If not, it is finally possible to associate the groups by collating with the standard land pattern and specify the component type that matches the land pattern indicated by these groups.

なお、上記のトランジスタT用の3つのランドに関しても、中央のランドがリード用ランドではなく、一般ランドとして分類されるように、ランドの振り分けの基準を設定するなどすれば、グルーピングの段階で、3つのランドを1つのグループにまとめることができる。 Also for the three lands of transistor T A of the central land is not the lead lands, as will be classified as a general land, if such as setting the criteria for allocation of the land, at the grouping step Three lands can be combined into one group.

(f)検査データの設定処理(ステップS10)
この処理は、上記の部品特定処理の結果に基づき、実装後モデル画像に標準検査データを適用し、検査領域の設定データをはじめとする各種検査データを定めるものである。図17は、その詳細な手順を示す。
(F) Inspection data setting process (step S10)
In this process, based on the result of the component specifying process, the standard inspection data is applied to the post-mounting model image to determine various inspection data including inspection area setting data. FIG. 17 shows the detailed procedure.

図17を参照して説明すると、まず特定された部品の1つに着目し、部品特定処理において保存された情報(部品種、部品対応領域、部品の向き)を読み出す(ステップ1001)。つぎに、読み出した部品種について、標準検査データ登録部63から該当する標準検査データを読み出す(ステップ1002)。   Referring to FIG. 17, first, paying attention to one of the specified parts, information (part type, part corresponding area, part orientation) stored in the part specifying process is read (step 1001). Next, for the read component type, the corresponding standard inspection data is read from the standard inspection data registration unit 63 (step 1002).

つぎに、実装後モデル画像およびランドパターン画像について、それぞれステップ1001で読み出した部品対応領域の画像を切り出し、これらを対応づけることにより、実装後モデル画像中のはんだ付け部位を検出する(ステップ1003,1004)。さらに、実装後モデル画像について、検出されたはんだ付け部位に囲まれている範囲を対象にエッジ抽出などの処理を行うことによって、着目部品の部品本体を抽出する(ステップ1005)。   Next, with respect to the post-mounting model image and the land pattern image, the image of the component corresponding region read out in step 1001 is cut out and correlated to detect the soldered portion in the post-mounting model image (step 1003). 1004). Further, the post-mounting model image is subjected to processing such as edge extraction for the range surrounded by the detected soldering site, thereby extracting the component main body of the component of interest (step 1005).

このようにして、着目部品のはんだ付け部位や部品本体が特定されると、これらの位置および大きさ、ならびに先に読み出された部品の向きに基づき、標準検査データをあてはめて検査領域を設定し(ステップ1006)、これらの設定用データ(設定位置や領域の大きさを示すもの)を検査データファイル61に登録する(ステップ1007)。   In this way, when the soldering part and part body of the target part are specified, the inspection area is set by applying standard inspection data based on the position and size of the part and the orientation of the part read out earlier. Then, these setting data (indicating the setting position and the size of the area) are registered in the inspection data file 61 (step 1007).

さらに、各検査領域に適用される検査用のパラメータ(被検査部位を検出するための2値化しきい値や判定用しきい値など)など、検査領域以外の検査データについても、標準検査データを適用して設定し、検査データファイル61に登録する(ステップ1008)。   In addition, standard inspection data for inspection data other than the inspection area, such as inspection parameters applied to each inspection area (such as the binarization threshold value and determination threshold value for detecting the inspected part), is also used. Apply and set, and register in the inspection data file 61 (step 1008).

以下も、部品特定処理により特定された各部品に対し、上記と同様の処理を実行することにより、各部品の検査データを設定し、登録する。これをもって、図2に示した一連の処理が全て実行されたことになり、検査の実行が可能になる。   In the following, the inspection data of each part is set and registered by executing the same process as described above for each part specified by the part specifying process. With this, all the series of processes shown in FIG. 2 are executed, and the inspection can be executed.

図18は、図16に示した部品特定処理により特定された2つの部品について、検査領域を設定した例を示す。
この図において、301〜306は、はんだ検査用の検査領域である。これらの検査領域301〜306は、いずれもはんだ付け部位毎に設定されたものであるが、検査領域302と304とは、同一のランド(グループG11のランド)に対応する。また、検査領域402,404は、部品の有無を判別するための検査領域であって、部品本体の中央部に設定される。また、検査領域401,403は、部品の位置や姿勢の適否の検査に用いられるもので、部品本体全体を含むように設定される。
FIG. 18 shows an example in which inspection areas are set for two parts specified by the part specifying process shown in FIG.
In this figure, reference numerals 301 to 306 denote inspection areas for solder inspection. These inspection areas 301 to 306 are all set for each soldering site, but the inspection areas 302 and 304 correspond to the same land (land of group G11). The inspection areas 402 and 404 are inspection areas for determining the presence / absence of a component, and are set at the center of the component main body. In addition, the inspection areas 401 and 403 are used for inspecting the suitability of the position and orientation of the component, and are set to include the entire component main body.

図19は、図11で説明したグルーピングにより設定されたICランドグループに対して部品特定処理を実行した後に、その結果に基づき検査領域を設定した例を示す。この例においては、はんだ検査用の検査領域310〜319は、複数本のリードおよびこれらに対応するはんだ付け部位を含む範囲に設定される。また、部品の位置や姿勢の検査用の検査領域410は、図18の例と同様に、部品本体全体を含むように設定されるが、部品の有無検査のための検査領域411は、部品本体の中央ではなく、右上の角部近くに設定されている。   FIG. 19 shows an example in which the inspection area is set based on the result after the component identification processing is executed for the IC land group set by the grouping described in FIG. In this example, the inspection areas 310 to 319 for solder inspection are set in a range including a plurality of leads and soldering portions corresponding to them. In addition, the inspection area 410 for inspecting the position and orientation of the part is set so as to include the entire part main body, as in the example of FIG. It is set near the upper right corner, not the center of the.

図18,19の各例に示した検査領域は、いずれも該当する部品種の標準検査データ中の定義を、実装後モデル画像から抽出された部品本体やはんだ付け部位に適用することにより、設定されたものである。これらの検査領域については、いずれも図17のステップ1007で、領域の設定位置や大きさを示す情報が登録されるので、検査の際にも、同様の位置に同様の大きさの検査領域を設定することが可能になる。   The inspection areas shown in the examples of FIGS. 18 and 19 are set by applying the definitions in the standard inspection data of the corresponding component types to the component main body and the soldering part extracted from the model image after mounting. It has been done. For these inspection areas, information indicating the set position and size of the area is registered in step 1007 of FIG. 17, so that the inspection area having the same size is also placed at the same position during the inspection. It becomes possible to set.

(3)検査データの作成に関する他の実施例
上記の実施例では、コネクタ・トランジスタグループにのみ、着目グループに隣のグループを含めた範囲を対象にしたマッチング処理を行ったが、ICグループについても、各配列毎に設定されたグループを統合せずに、コネクタ・トランジスタグループと同様の処理を行ってもよい。
(3) Other embodiments relating to creation of inspection data In the above embodiment, only the connector / transistor group is subjected to the matching process for the range including the adjacent group in the target group. The processing similar to that of the connector / transistor group may be performed without integrating the groups set for each array.

また、上記の実施例では、はんだ塗布前の基板のモデル画像から生成した3種類の2値画像を用いてランドのグルーピングを行ったが、モデル画像は上記に限らず、クリームはんだ塗布後の基板の画像を用いてもよい。   In the above embodiment, land grouping is performed using three types of binary images generated from a model image of a substrate before solder application. However, the model image is not limited to the above, and the substrate after cream solder application is performed. These images may be used.

またはんだ付け後の基板の画像であっても、画像中の輝度の高い領域をはんだ付け部位として検出することができ、シルク印刷パターンや配線パターンの検出も可能である。したがって、実装前モデル画像のランドに代えて、実装後モデル画像の高輝度領域を検出し、これらを上記実施例と同様の方法で処理することによっても、部品を特定することができる。ただし、この場合には、ランドの部品で隠されていない部分のみがグルーピングの対象となるので、グループの種類の設定や部品特定処理のアルゴリズムが若干変更される可能性がある。   Further, even in an image of a substrate after soldering, a high luminance area in the image can be detected as a soldering part, and a silk print pattern and a wiring pattern can also be detected. Therefore, instead of using the land of the pre-mounting model image, the high-luminance area of the post-mounting model image is detected, and these can be processed by the same method as in the above-described embodiment to identify the component. However, in this case, since only the part not hidden by the land parts is the target of grouping, there is a possibility that the setting of the group type and the algorithm for the part specifying process are slightly changed.

基板外観検査装置のブロック図である。It is a block diagram of a board | substrate external appearance inspection apparatus. 検査データの自動作成処理に関する概略フローチャートである。It is a schematic flowchart regarding the automatic creation process of test | inspection data. 実装前モデル画像の例を示す図である。It is a figure which shows the example of the model image before mounting. ランドパターン画像の例を示す図である。It is a figure which shows the example of a land pattern image. シルクパターン画像の例を示す図である。It is a figure which shows the example of a silk pattern image. ランドのグルーピング結果を示す図である。It is a figure which shows the grouping result of a land. シルク包含領域に基づくランドのグルーピングに関するフローチャートである。It is a flowchart regarding the grouping of lands based on the silk inclusion area. 図7の処理の具体例を示す図である。It is a figure which shows the specific example of the process of FIG. ランドの振り分け処理に関するフローチャートである。It is a flowchart regarding land distribution processing. リード用ランドのグルーピングに関するフローチャートである。It is a flowchart regarding grouping of lead lands. ICグループの統合処理の具体例を示す図である。It is a figure which shows the specific example of the integration process of IC group. 一般ランドのグルーピングに関するフローチャートである。It is a flowchart regarding grouping of general lands. 図12の処理の具体例を示す図である。It is a figure which shows the specific example of the process of FIG. コネクタ・トランジスタグループ用の部品特定処理に関するフローチャートである。It is a flowchart regarding the component specific process for a connector transistor group. ICグループ、および一般ランドグループ用の部品特定処理に関するフローチャートである。It is a flowchart regarding the component specific process for IC groups and general land groups. 部品特定処理の例を示す図である。It is a figure which shows the example of a components specific process. 検査データの設定・登録処理に関するフローチャートである。It is a flowchart regarding the setting / registration processing of inspection data. 検査領域の設定例を示す図である。It is a figure which shows the example of a setting of a test | inspection area | region. 検査領域の設定例を示す図である。It is a figure which shows the example of a setting of a test | inspection area | region.

符号の説明Explanation of symbols

1 カメラ
5 制御部
6 メモリ
7 画像入力部
61 検査データファイル
62 ランドパターン登録部
63 標準検査データ登録部
1 Camera 5 Control Unit 6 Memory 7 Image Input Unit 61 Inspection Data File 62 Land Pattern Registration Unit 63 Standard Inspection Data Registration Unit

Claims (6)

部品実装基板を対象にした自動外観検査において画像中の各部品に対する検査領域の設定に用いられる領域設定データを、コンピュータにより作成する方法であって、
複数の部品種について、それぞれ部品電極に対応するランド領域の標準配置パターンと標準の領域設定データとを前記コンピュータのメモリに登録する第1ステップと、
部品実装前または部品実装後のモデル基板の画像から基板上のランド領域およびシルク印刷パターンならびに配線パターンをそれぞれ個別に検出し、各検出結果を表す3種類の2値画像を生成する第2ステップと、
シルク印刷パターンまたは配線パターンが介在する関係にあるランド領域の組を同じグループに分類しないことを条件として、前記3種類の2値画像の対応関係に基づき各ランド領域をグループ分けする第3ステップと、
前記グループ分けの終了後に、前記ランド領域の2値画像を部品種毎のランド領域の標準配置パターンと照合する処理を、同一グループ内のランド領域を同一の部品種に対応づけることを条件として実行することにより、前記基板に実装される各部品の部品種、実装範囲、および部品の向きを特定する第4ステップと、
第4ステップにより特定された各部品に対し、それぞれ特定された実装範囲に特定された部品の向きに基づき特定された部品種の標準の領域設定データを適用することによって、当該部品に設定する検査領域を特定し、この検査領域の設定にかかる領域設定データを前記コンピュータのメモリに登録する第5ステップと、
を実行することを特徴とする検査領域の領域設定データの作成方法。
A method for creating area setting data used for setting an inspection area for each component in an image in an automatic visual inspection for a component mounting board by a computer,
A first step of registering a standard arrangement pattern of land areas corresponding to a component electrode and standard area setting data in a memory of the computer for a plurality of component types;
A second step of individually detecting land areas, silk print patterns and wiring patterns on the board from the image of the model board before or after component mounting, and generating three types of binary images representing the respective detection results; ,
A third step of grouping the land areas based on the correspondence relationship of the three types of binary images, provided that a set of land areas having a relationship involving silk print patterns or wiring patterns is not classified into the same group; ,
After the grouping is completed, the process of matching the binary image of the land area with the standard arrangement pattern of the land area for each part type is executed on condition that the land area in the same group is associated with the same part type. A fourth step of identifying a component type, a mounting range, and a component orientation of each component mounted on the substrate;
For each component specified in the fourth step, an inspection to be set for the component by applying standard area setting data of the component type specified based on the orientation of the component specified in the specified mounting range. A fifth step of identifying an area and registering area setting data for setting the inspection area in the memory of the computer;
A method for creating region setting data for an inspection region, characterized in that:
前記第3ステップでは、シルク印刷パターンに囲まれた状態で配置されているランド領域により1つのグループを設定する、請求項1に記載された検査領域の領域設定データの作成方法。   The method for creating region setting data for an inspection region according to claim 1, wherein, in the third step, one group is set by land regions arranged in a state surrounded by a silk print pattern. 前記第3ステップでは、面積および形状が整合する複数のランド領域がシルク印刷パターンおよび配線パターンのいずれも介在させずに一定の方向に沿って並んでいる複数のランド領域を、同一のグループに分類する、請求項1に記載された検査領域の領域設定データの作成方法。   In the third step, a plurality of land regions whose areas and shapes are aligned are arranged in the same group and arranged along a certain direction without any silk printing pattern or wiring pattern interposed therebetween. The method for creating region setting data for an inspection region according to claim 1. 前記第3ステップでは、面積および形状が整合し、シルク印刷パターンおよび配線パターンのいずれも介在させずに配置されている複数のランド領域を、同一のグループに分類する、請求項1に記載された検査領域の領域設定データの作成方法。   2. The method according to claim 1, wherein, in the third step, a plurality of land regions whose areas and shapes are matched and arranged without any silk printing pattern and wiring pattern are classified into the same group. How to create area setting data for the inspection area. 前記第4ステップでは、1つの部品種の標準パターンを1または複数のグループのランド領域の分布パターンに対応づけて、ランド領域の数および配置の一致度を求める、請求項1に記載された検査領域の領域設定データの作成方法。   2. The inspection according to claim 1, wherein in the fourth step, a standard pattern of one component type is associated with a distribution pattern of land areas of one or a plurality of groups to obtain the number of land areas and the degree of arrangement matching. How to create area setting data for an area. 基板を撮像するための撮像手段と、この撮像手段が検査対象の基板を撮像することにより生成された検査対象画像中の各部品に設定する検査領域の領域設定データを作成する領域設定データ作成手段と、作成された領域設定データを保存するためのメモリと、前記メモリに登録された領域設定データに基づき検査対象画像に検査領域を設定し、各検査領域内の画像を処理することにより基板上の各部品の実装状態を判別する検査実行手段と、前記検査実行手段による判別結果を出力する出力手段とを具備する基板外観検査装置において、
前記メモリには、複数の部品種について、それぞれ部品電極に対応するランド領域の標準配置パターンと検査領域の標準の領域設定データを含む標準検査データとが登録されており、
前記領域設定データ作成手段は、
部品実装前または部品実装後のモデル基板の画像から基板上のランド領域およびシルク印刷パターンならびに配線パターンをそれぞれ個別に検出し、各検出結果を表す3種類の2値画像を生成する2値画像生成手段と、
シルク印刷パターンまたは配線パターンが介在する関係にあるランド領域の組を同じグループに分類しないことを条件として、前記3種類の2値画像の対応関係に基づき各ランド領域をグループ分けするグルーピング手段と、
前記グループ分けの終了後に、前記ランド領域の2値画像を部品種毎のランド領域の標準配置パターンと照合する処理を、同一グループ内のランド領域を同一の部品種に対応づけることを条件として実行することにより、前記基板に実装される各部品の部品種、実装範囲、および部品の向きを特定する部品特定手段と、
前記部品特定手段により特定された各部品に対し、それぞれ特定された実装範囲に特定された部品の方向に基づき特定された部品種の標準の領域設定データを適用することによって、当該部品に設定する検査領域を特定し、この検査領域の設定にかかる領域設定データを前記メモリに登録する登録手段とを、具備する基板外観検査装置。
Imaging means for imaging a substrate, and area setting data creating means for creating area setting data of an inspection area to be set for each component in an inspection target image generated by imaging the substrate to be inspected by the imaging means And a memory for storing the created area setting data, and setting an inspection area on the image to be inspected based on the area setting data registered in the memory, and processing an image in each inspection area on the substrate In a board appearance inspection apparatus comprising: an inspection execution unit that determines a mounting state of each component; and an output unit that outputs a determination result by the inspection execution unit.
In the memory, for a plurality of component types, standard inspection data including standard layout patterns of land regions corresponding to component electrodes and standard region setting data of inspection regions are registered,
The area setting data creation means includes
Binary image generation that individually detects land areas, silk-printed patterns, and wiring patterns on the board from the model board image before or after component mounting, and generates three types of binary images representing the detection results Means,
Grouping means for grouping each land area based on the correspondence relationship of the three types of binary images, provided that the set of land areas in a relationship involving silk print patterns or wiring patterns is not classified into the same group;
After the grouping is completed, the process of matching the binary image of the land area with the standard arrangement pattern of the land area for each part type is executed on condition that the land area in the same group is associated with the same part type. Component specifying means for specifying the component type, mounting range, and component orientation of each component mounted on the board;
For each component specified by the component specifying means, the standard area setting data of the component type specified based on the direction of the component specified in the specified mounting range is applied to the component. A substrate visual inspection apparatus comprising: a registration unit that specifies an inspection area and registers area setting data for setting the inspection area in the memory.
JP2008189740A 2008-07-23 2008-07-23 Method for creating area setting data for inspection area and board appearance inspection apparatus Active JP5045591B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008189740A JP5045591B2 (en) 2008-07-23 2008-07-23 Method for creating area setting data for inspection area and board appearance inspection apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008189740A JP5045591B2 (en) 2008-07-23 2008-07-23 Method for creating area setting data for inspection area and board appearance inspection apparatus

Publications (2)

Publication Number Publication Date
JP2010027964A JP2010027964A (en) 2010-02-04
JP5045591B2 true JP5045591B2 (en) 2012-10-10

Family

ID=41733484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008189740A Active JP5045591B2 (en) 2008-07-23 2008-07-23 Method for creating area setting data for inspection area and board appearance inspection apparatus

Country Status (1)

Country Link
JP (1) JP5045591B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5477030B2 (en) 2009-05-22 2014-04-23 日産自動車株式会社 Control device for electric vehicle
KR101570360B1 (en) 2010-11-20 2015-11-19 주식회사 고영테크놀러지 Method of setting reference region and method of eliminating noise for the same
KR101642897B1 (en) 2011-07-13 2016-07-26 주식회사 고영테크놀러지 Inspection method
JP5953842B2 (en) * 2012-03-14 2016-07-20 オムロン株式会社 Image inspection method and inspection area setting method
KR20160042881A (en) * 2013-08-09 2016-04-20 주식회사 윌러스표준기술연구소 Cloud-based data providing method and system
JP6652593B2 (en) * 2018-05-21 2020-02-26 キヤノンマシナリー株式会社 Inspection device, inspection method, and inspection program
CN112770503B (en) * 2020-11-18 2022-07-01 石家庄辐科电子科技有限公司 Circuit board component positioning method and device

Also Published As

Publication number Publication date
JP2010027964A (en) 2010-02-04

Similar Documents

Publication Publication Date Title
JP5045591B2 (en) Method for creating area setting data for inspection area and board appearance inspection apparatus
CN107945184B (en) Surface-mounted component detection method based on color image segmentation and gradient projection positioning
CN105510348A (en) Flaw detection method and device of printed circuit board and detection equipment
KR20030012901A (en) Image processing system for use with inspection systems
CN113454445A (en) Compensating for reference misalignment during part inspection
CN108648175B (en) Detection method and device
JP2004340832A (en) Method and system for visual inspection of circuit board
KR101441326B1 (en) Teaching data auto-generation apparatus of automated inspection machine and method for teaching data auto-generation the same
CN105136818B (en) The image detection method of printed base plate
US7593571B2 (en) Component edge detecting method, computer-readable recording medium and component inspection apparatus
US20090279775A1 (en) Method of inspecting mounting states of electronic components
EP1386143A1 (en) Inspection system using dynamically obtained values and related techniques
JPH08210820A (en) Method and device for recognizing part to be inspected in visual inspection device of parts-mounted board
KR101745883B1 (en) Apparatus and method for inspecting printed circuit boards
JP4506395B2 (en) Substrate inspection device, parameter setting method and parameter setting device
JP5615076B2 (en) Component presence / absence determination apparatus and component presence / absence determination method
US20060023935A1 (en) Printed circuit substrate appearance inspection method, printed circuit substrate appearance inspection program and printed circuit substrate appearance inspection apparatus
KR101126759B1 (en) Method of teaching for electronic parts information in chip mounter
JP6202739B2 (en) Method for inspecting scattered solder balls on boards
Kobayashi et al. Hybrid defect detection method based on the shape measurement and feature extraction for complex patterns
TWI549097B (en) A method of detecting images of appearance of electronic components and computer readable media thereof
JPH06201603A (en) Method for generating inspection data in missing inspection of electronic component and method for detecting missing of the component
JP2000028334A (en) Method and apparatus for inspecting pattern fault
CN114324405B (en) Data labeling system based on film detection
JP4419778B2 (en) Substrate inspection device, parameter setting method and parameter setting device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110510

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120612

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: 20120619

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120702

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

Free format text: PAYMENT UNTIL: 20150727

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5045591

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250