JP5234639B2 - Through-hole inspection equipment - Google Patents

Through-hole inspection equipment Download PDF

Info

Publication number
JP5234639B2
JP5234639B2 JP2009021023A JP2009021023A JP5234639B2 JP 5234639 B2 JP5234639 B2 JP 5234639B2 JP 2009021023 A JP2009021023 A JP 2009021023A JP 2009021023 A JP2009021023 A JP 2009021023A JP 5234639 B2 JP5234639 B2 JP 5234639B2
Authority
JP
Japan
Prior art keywords
pad
area
labeling
hole
image
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
JP2009021023A
Other languages
Japanese (ja)
Other versions
JP2010175483A (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.)
Mega Trade Corp
Original Assignee
Mega Trade 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 Mega Trade Corp filed Critical Mega Trade Corp
Priority to JP2009021023A priority Critical patent/JP5234639B2/en
Priority to PCT/JP2010/051217 priority patent/WO2010087433A1/en
Priority to CN2010800062506A priority patent/CN102301225A/en
Publication of JP2010175483A publication Critical patent/JP2010175483A/en
Application granted granted Critical
Publication of JP5234639B2 publication Critical patent/JP5234639B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/0006Industrial image inspection using a design-rule based approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30141Printed circuit board [PCB]

Description

本発明は、プリント基板のパッドに形成されたスルーホールの位置を検査できるようにしたスルーホールの検査装置に関するものである。   The present invention relates to a through-hole inspection apparatus capable of inspecting the position of a through-hole formed in a pad of a printed circuit board.

一般に、プリント基板のパッドには、電子部品を装着するためのスルーホールが形成されている。ところで、このスルーホールは、パッドの形成とは異なる処理工程で形成されるため、スルーホールの位置がパッドの中心からずれてしまうことがある。そこで、スルーホールの形成状態を正確に検査できるようにした検査装置が各種提案されてきている(特許文献1〜特許文献4)。   Generally, a through hole for mounting an electronic component is formed in a pad of a printed circuit board. By the way, since this through hole is formed in a processing step different from the formation of the pad, the position of the through hole may be shifted from the center of the pad. Accordingly, various inspection apparatuses that can accurately inspect the formation state of the through holes have been proposed (Patent Documents 1 to 4).

例えば、下記の特許文献1(実開平2−105156号)には、スルーホールの穴の数をカウントし、基準の数と一致するかどうかを検査する方法が開示されている。このような方法によれば、スルーホールが塞がっているような場合は、これを不良と検出することができる。また、特許文献2(特開平5−60537号)にも、スルーホールの穴詰まりを検出する他、スルーホールの穴径までも検査できるようにした検査装置が開示されている。   For example, the following Patent Document 1 (Japanese Utility Model Laid-Open No. 2-105156) discloses a method of counting the number of through holes and inspecting whether or not the number matches the reference number. According to such a method, when the through hole is blocked, it can be detected as defective. Also, Patent Document 2 (Japanese Patent Laid-Open No. 5-60537) discloses an inspection device that can detect the clogging of a through hole as well as the diameter of the through hole.

さらに、下記の特許文献3(特公平7−86468号)には、図10に示すように、パッドやスルーホールの画像を細線化処理し、その端点を見つけてスルーホールの位置ずれを検出できるようにした方法が開示されている。このような方法によれば、例えば、スルーホールがパッドからはみ出ているような場合には、パッドのエッジがスルーホールによって切れてしまうため、細線化処理された線に複数の端点を生じ(図10下図のバツ印)、これによってスルーホールの位置ずれを検出することができる。   Further, in Patent Document 3 (Japanese Patent Publication No. 7-86468) below, as shown in FIG. 10, the image of the pad or the through hole can be thinned, and the end point can be found to detect the position shift of the through hole. Such a method is disclosed. According to such a method, for example, when the through hole protrudes from the pad, the edge of the pad is cut by the through hole, so that a plurality of end points are generated in the thinned line (see FIG. 10 is a cross mark in the lower figure), and thereby, the displacement of the through hole can be detected.

また、下記の特許文献4(特開平9−203620号)には、パッドやスルーホールの画像を二値化処理し、図11に示すように、画像を8方向にわたって分割してエッジを抽出してスルーホールの形成状態を判断できるようにした検査装置が開示されている。このような方法によれば、特許文献3の細線化処理の際に誤差を生じた場合であっても、そのノイズを生ずることなく、確実にスルーホールの位置ずれを検出することができるようになる。   Further, in the following Patent Document 4 (Japanese Patent Laid-Open No. 9-203620), an image of a pad or a through hole is binarized, and an edge is extracted by dividing the image in eight directions as shown in FIG. Thus, an inspection apparatus that can determine the formation state of a through hole is disclosed. According to such a method, even if an error occurs during the thinning process of Patent Document 3, it is possible to reliably detect the displacement of the through hole without generating the noise. Become.

実開平2−105156号公報Japanese Utility Model Publication No. 2-105156 特開平5−060537号公報JP-A-5-060537 特公平7−086468号公報Japanese Patent Publication No. 7-086468 特開平9−203620号公報JP-A-9-203620

しかしながら、上記特許文献に記載される方法では、次のような問題を生ずる。   However, the method described in the above patent document causes the following problems.

すなわち、特許文献1や特許文献2に示す方法は、スルーホールの穴数や穴径の大きさを判断するものであるため、スルーホールの形成位置がパッドからはみ出している場合であっても、穴数や穴径が合っていれば、これを不良と判断することができない。   That is, since the method shown in Patent Document 1 and Patent Document 2 is for determining the number of through holes and the size of the hole diameter, even if the formation position of the through hole protrudes from the pad, If the number of holes and the hole diameter match, this cannot be judged as defective.

また、特許文献3や特許文献4のようにエッジを抽出して検査する方法では、画像の取得状態によっては、パッドやスルーホールの輪郭が曖昧なものとなり、正確なエッジを抽出することができなくなる。特に、パッドのエッジの内側までレジストが塗布されているような場合は、パッドの中心側から順に「銅色(露出金属色)」「銅上に塗布されたレジスト色」「基板上のレジスト色」と輝度値が滑らかに変化するため、グレースケールによって画像を取得するとエッジの正確な抽出が難しくなる。しかも、光の照射方向によってはエッジが強く反射したり、陰ができたりすると、更にエッジの抽出が困難になる。このため、特許文献3のような細線化処理する方法や、特許文献4に示すように8方向にわたってエッジを抽出する方法では、その処理を行う前のパッドやスルーホールの検査領域の画像が曖昧では、エッジを正確に抽出することができなくなる。   Further, in the method of extracting and inspecting the edge as in Patent Document 3 and Patent Document 4, depending on the image acquisition state, the outline of the pad or the through hole becomes ambiguous, and an accurate edge can be extracted. Disappear. Especially when the resist is applied to the inside of the pad edge, "copper color (exposed metal color)" "resist color applied on copper" "resist color on the substrate" ”And the luminance value smoothly change, it is difficult to accurately extract an edge when an image is acquired using a gray scale. In addition, if the edge is strongly reflected or shaded depending on the light irradiation direction, it becomes more difficult to extract the edge. For this reason, in the method of thinning as in Patent Document 3 and the method of extracting edges in eight directions as shown in Patent Document 4, the image of the inspection area of the pad or through hole before the processing is ambiguous. Then, it becomes impossible to extract edges accurately.

そこで、本発明は、上記課題に着目してなされたもので、エッジを抽出することなくスルーホールの位置ずれを正確に検査することのできるようにしたスルーホールの検査装置を提供することを目的とする。   Accordingly, the present invention has been made paying attention to the above-described problem, and an object thereof is to provide a through-hole inspection apparatus capable of accurately inspecting through-hole misalignment without extracting an edge. And

すなわち、本発明は上記課題を解決するために、プリント基板のパッドに設けられたスルーホールの形成状態を検査するスルーホールの検査装置において、プリント基板の表面画像を取得する画像取得手段と、当該表面画像からパッドを含む検査領域の画像を抽出する領域抽出手段と、当該抽出された画像から二値化マップを生成する二値化処理手段と、当該二値化マップに基づいてラベリング処理を実行するラベリング手段と、当該ラベリング処理された情報に基づいてパッド以外のラベリング領域の個数をカウントし、当該ラベリング領域の個数が所定の個数以下である場合は位置ずれであると判定する判定手段とを設けるようにしたものである。   That is, in order to solve the above problems, the present invention provides an image acquisition means for acquiring a surface image of a printed circuit board in a through hole inspection apparatus for inspecting a formation state of a through hole provided in a pad of the printed circuit board, A region extraction unit that extracts an image of an inspection region including a pad from a surface image, a binarization processing unit that generates a binarization map from the extracted image, and a labeling process based on the binarization map And labeling means for counting the number of labeling areas other than the pads based on the information subjected to the labeling process, and determining means for determining that the position is shifted when the number of the labeling areas is equal to or less than a predetermined number. It is intended to be provided.

このようにすれば、パッドのエッジを超えてスルーホールが形成されている場合には、スルーホールの領域とパッド以外のラベリング領域が連結して1個となり、これによってスルーホールが位置ずれしていることを検出することができる。一方、スルーホールがパッド内に収まっている場合は、パッド内のスルーホールのラベリング領域とパッド外側のラベリング領域が2個存在することになるため、スルーホールがパッド内に収まっていることを判断することができるようになる。   In this way, when the through hole is formed beyond the edge of the pad, the through hole region and the labeling region other than the pad are connected to form one, thereby shifting the through hole. Can be detected. On the other hand, if the through hole is within the pad, there are two labeling areas for the through hole in the pad and two labeling areas outside the pad, so it is determined that the through hole is within the pad. Will be able to.

また、このような発明において、あらかじめパッド領域に対応したパッドRGB情報およびパッド以外の領域に対応した除外RGB情報を設定しておき、当該パッドRGB情報と除外RGB情報の領域を膨らまし処理して表面画像から検査領域の画像を抽出する。   Further, in such an invention, the pad RGB information corresponding to the pad area and the exclusion RGB information corresponding to the area other than the pad are set in advance, and the pad RGB information and the exclusion RGB information area are inflated and processed. An image of the inspection area is extracted from the image.

このようにすれば、カラー画像でパッド領域やそれ以外の領域を抽出する場合、パッドのRGBやパッド以外のRGBの輝度値をすべて指定しなくても、数個の画素や一定領域のRGBを設定するだけで、その指定されたRGBに近い画素を抽出し、また、除外することができるようになる。   In this way, when extracting a pad area and other areas from a color image, several pixels or RGB in a certain area can be selected without specifying all of the RGB values of the pad RGB and non-pad RGB. Only by setting, pixels close to the designated RGB can be extracted and excluded.

さらに、このような発明において、ラベリングされた画像からスルーホールの形成状態を判定する場合、検査領域の外側境界に接するパッド以外のラベリング領域を除去し、その後、パッド以外のラベリング領域の数をカウントしてその個数が既定値以下である場合は位置ずれであると判定する。   Furthermore, in such an invention, when determining the formation state of the through hole from the labeled image, the labeling area other than the pad in contact with the outer boundary of the inspection area is removed, and then the number of labeling areas other than the pad is counted. If the number is equal to or less than the predetermined value, it is determined that the position is shifted.

このようにすれば、検査領域内に傷や他の配線パターンなどが存在するような場合であっても、その傷によって分割されたラベリング領域を除去して正確にスルーホールの位置ずれを検査することができるようになる。   In this way, even when there are scratches or other wiring patterns in the inspection region, the labeling region divided by the scratches is removed to accurately inspect the positional deviation of the through holes. Will be able to.

本発明の検査装置によれば、プリント基板の表面画像を取得する画像取得手段と、当該表面画像からパッドを含む検査領域の画像を抽出する領域抽出手段と、当該抽出された画像から二値化マップを生成する二値化処理手段と、当該二値化マップに基づいてラベリング処理を実行するラベリング手段と、当該ラベリング処理された情報に基づいてパッド以外のラベリング領域の個数をカウントし、当該ラベリング領域の個数が所定の個数以下である場合は位置ずれであると判定する判定手段とを設けるようにしたので、パッドのエッジを超えてスルーホールが形成されている場合、スルーホールの領域とパッド以外のラベリング領域の個数が連結して1個となり、これによってスルーホールの位置ずれを検出することができる。一方、スルーホールがパッド内に収まっている場合は、パッド内のスルーホールのラベリング領域とパッド外側のラベリング領域が2個存在することになるため、スルーホールがパッド内に収まっていることを判断することができるようになる。   According to the inspection apparatus of the present invention, the image acquisition means for acquiring the surface image of the printed circuit board, the area extraction means for extracting the image of the inspection area including the pad from the surface image, and binarization from the extracted image A binarization processing unit that generates a map, a labeling unit that executes a labeling process based on the binarized map, and counts the number of labeling regions other than the pads based on the information that has been labeled, When the number of areas is equal to or less than the predetermined number, the determination means for determining that the position is shifted is provided. Therefore, when the through hole is formed beyond the edge of the pad, the through hole area and the pad The number of labeling regions other than is connected to be one, thereby detecting the displacement of the through hole. On the other hand, if the through hole is within the pad, there are two labeling areas for the through hole in the pad and two labeling areas outside the pad, so it is determined that the through hole is within the pad. Will be able to.

本発明の一実施の形態における検査装置の機能ブロック図を示すものである。1 is a functional block diagram of an inspection apparatus according to an embodiment of the present invention. 同形態におけるプリント基板の表面画像から取得されるパッドRGBの領域と除外される除外RGBの情報を示すものである。The pad RGB area | region acquired from the surface image of the printed circuit board in the same form, and the information of exclusion RGB excluded are shown. 同形態におけるパッドとスルーホールの位置関係を示すものである。The positional relationship of the pad and through hole in the same form is shown. 同形態におけるパッド近傍に傷などが存在する状態を示す図である。It is a figure which shows the state in which a crack etc. exist in the pad vicinity in the same form. 同形態における二値化処理された二値化マップを示すものである。2 shows a binarized map subjected to binarization processing in the same form. 同形態においてラベリング処理の概要を示す図The figure which shows the outline of a labeling process in the same form 同形態においてラベリング処理された画像と判定処理を示すものである。In the same embodiment, a labeled image and a determination process are shown. 同形態における設定処理を示すフローチャートを示すものである。The flowchart which shows the setting process in the form is shown. 同形態における検査処理を示すフローチャートを示すものである。The flowchart which shows the inspection process in the form is shown. 従来例のスルーホールの検査方法を示すものである。The through-hole inspection method of a prior art example is shown. 従来例のスルーホールの検査方法を示すものである。The through-hole inspection method of a prior art example is shown.

以下、本発明の一実施の形態について図面を参照して説明する。本実施の形態における検査装置1は、図3に示すように、プリント基板上に形成されたパッド81内にスルーホール84が正確に収まっているかどうかを検査できるようにしたものであって、プリント基板8からその表面画像を取得し、パッド81が存在する位置の検査領域9の画像を抽出する。そして、図4や図5に示すように、その検査領域9でパッド81の領域とそれ以外の領域に二値化処理(パッド81の領域を「0」、それ以外の領域を「1」とした二値化処理)し、パッド以外のラベリング領域の個数に基づいてスルーホール84がパッド81からはみ出ていないかどうかを検査できるようにしたものである。以下、図1における機能ブロック図に基づいて検査装置1の構成について詳細に説明する。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings. As shown in FIG. 3, the inspection apparatus 1 according to the present embodiment can inspect whether or not a through hole 84 is accurately contained in a pad 81 formed on a printed circuit board. The surface image is acquired from the substrate 8, and an image of the inspection region 9 at the position where the pad 81 is present is extracted. Then, as shown in FIGS. 4 and 5, binarization processing is performed on the area of the pad 81 and other areas in the inspection area 9 (the area of the pad 81 is “0” and the other area is “1”). Binarization processing), and it is possible to inspect whether or not the through hole 84 protrudes from the pad 81 based on the number of labeling regions other than the pad. Hereinafter, the configuration of the inspection apparatus 1 will be described in detail based on the functional block diagram in FIG.

まず、画像取得手段2は、検査対象であるプリント基板8からその表面画像を取得する。プリント基板8から表面画像を取得する場合、グレースケールによって表面画像を取得してもよいが、グレースケールであると、図3に示すような金属が露出したパッド81の領域と(破線の内側領域)、そのパッド81上にレジスト83が塗布されている領域81R(破線と実線の間の領域)と、基板82上に直接レジスト83が塗布されている領域82R(実線の外側領域)との輝度値の差が明確にならず、256階調の輝度値だけではパッド81の画像を正確に抽出できない。このため、好ましくは、カラー画像によってプリント基板8の表面画像を取得する。この画像取得手段2でプリント基板8の表面画像を取得する場合は、プリント基板8の斜め上方に配列された照明装置から光を照射し、その反射光をプリント基板8の真上のラインセンサやエリアセンサで取得する。この取得された表面画像は、(RGB)=(0,0,0)〜(255,255,255)からなる輝度の画素によって構成される。そして、その表面画像を画像メモリに格納し、その表面画像から検査領域9であるパッド81やスルーホール84の画像を抽出する。   First, the image acquisition means 2 acquires the surface image from the printed circuit board 8 to be inspected. When acquiring a surface image from the printed circuit board 8, the surface image may be acquired by a gray scale. However, in the case of the gray scale, the area of the pad 81 where the metal is exposed as shown in FIG. ) The brightness of the region 81R (region between the broken line and solid line) where the resist 83 is applied on the pad 81 and the region 82R (region outside the solid line) where the resist 83 is applied directly on the substrate 82 The difference between the values is not clear, and the image of the pad 81 cannot be accurately extracted only with the luminance values of 256 gradations. For this reason, the surface image of the printed circuit board 8 is preferably acquired by a color image. When the surface image of the printed circuit board 8 is acquired by the image acquisition means 2, light is emitted from an illumination device arranged obliquely above the printed circuit board 8, and the reflected light is reflected on the line sensor or the Obtained by area sensor. The acquired surface image is composed of pixels having luminances of (RGB) = (0, 0, 0) to (255, 255, 255). Then, the surface image is stored in the image memory, and the image of the pad 81 and the through hole 84 that are the inspection area 9 is extracted from the surface image.

領域抽出手段3は、この取得されたプリント基板8の表面画像から検査領域9であるパッド81の検査領域9の画像を抽出する。このとき、あらかじめ設定手段4によってパッド81の存在する座標位置を設定しておく。また、その画像から抽出されるべきパッドRGB画素情報と、そこから積極的に除外されるべき除外RGB画素情報を設定する。ここで、パッド81の座標位置を設定する場合は、プリント基板8の設計時に使用されたCADデータをもとにパッド81の座標位置を設定し、その座標位置を中心としてパッド81をすべて含むような検査領域9を設定する。この検査領域9の形状としては、正方形や長方形などの矩形状であってもよく、あるいは、円形形状であってもよい。好ましくは、検査対象となるパッド81やスルーホール84をすべて含むようにしておく。   The area extraction unit 3 extracts an image of the inspection area 9 of the pad 81 that is the inspection area 9 from the acquired surface image of the printed circuit board 8. At this time, the coordinate position where the pad 81 exists is set in advance by the setting means 4. Also, pad RGB pixel information to be extracted from the image and excluded RGB pixel information to be positively excluded therefrom are set. Here, when setting the coordinate position of the pad 81, the coordinate position of the pad 81 is set based on the CAD data used at the time of designing the printed circuit board 8, and all the pads 81 are included around the coordinate position. A proper inspection area 9 is set. The shape of the inspection area 9 may be a rectangular shape such as a square or a rectangle, or may be a circular shape. Preferably, all pads 81 and through holes 84 to be inspected are included.

一方、パッドRGB情報は、表面画像からパッド81を抽出するためのRGB輝度情報を示すものであって、基準となるプリント基板8のパッド81から取得された画像に基づいて設定される。このとき、例えば、パッド81の金属露出部分だけを抽出する場合は、(R,G,B)=(200,60,60)付近の輝度値を設定し、また、パッド81の外周部分のレジスト83のオーバーラップ部分81Rをパッド領域として抽出する場合は、(R,G,B)=(120,150,80)付近の輝度値を設定する。これらの輝度値はレジスト83の塗布厚や金属表面の研磨傷などによって変化するため、輝度値を設定した後、これらの輝度値を含むようにRGB輝度値を一定幅だけ膨らまし処理する。具体的には、基準となるプリント基板8の表面画像からマウスでパッド81の一画素や矩形領域を設定し、その後、その指定された画素の輝度値(矩形領域を設定した場合は、その矩形領域内のすべての画素の輝度値)を含むように、例えば、120−α1<R<200+α2、60−β1<G<150+β2、60−γ1<B<80+γ2、などと膨らます(図2参照)。なお、ここでα1〜γ2の各値はそれぞれ個別に設定され、それぞれ異なる値でもよく、あるいは、α1=α2、β1=β2、γ1=γ2と同一になるように設定してもよい。   On the other hand, the pad RGB information indicates RGB luminance information for extracting the pad 81 from the surface image, and is set based on the image acquired from the pad 81 of the reference printed circuit board 8. At this time, for example, when only the exposed metal portion of the pad 81 is extracted, a luminance value in the vicinity of (R, G, B) = (200, 60, 60) is set, and the outer peripheral portion of the pad 81 is registered. In the case where 83 overlap portions 81R are extracted as pad areas, luminance values in the vicinity of (R, G, B) = (120, 150, 80) are set. Since these luminance values change depending on the coating thickness of the resist 83 or polishing scratches on the metal surface, after setting the luminance values, the RGB luminance values are expanded by a certain width so as to include these luminance values. Specifically, one pixel or a rectangular area of the pad 81 is set with the mouse from the surface image of the reference printed circuit board 8, and then the luminance value of the designated pixel (if the rectangular area is set, the rectangle is set. For example, 120-α1 <R <200 + α2, 60-β1 <G <150 + β2, 60-γ1 <B <80 + γ2, etc. (see FIG. 2). Here, the values of α1 to γ2 are individually set and may be different from each other, or may be set to be the same as α1 = α2, β1 = β2, and γ1 = γ2.

除外RGB情報は、表面画像から積極的に除外したいRGBの輝度値を設定したもので、この実施の形態では、パッド色に近い基材色や、基板82上のレジスト色などに設定される。この除外RGB情報も、基準となるプリント基板8から取得された画像に基づいて設定され、例えば、基材82そのものの色だけを除外する場合は、(R,G,B)=(60,30,30)付近の輝度値を設定し、また、その基材82上にレジスト83が塗布されている領域82Rを除外する場合は、(R,G,B)=(80,120,50)付近の輝度値に設定する。これらの輝度値もレジスト83の塗布厚によって変化するため、輝度値を指定した後は、これらの輝度値を含むようにRGB輝度値を一定幅だけ膨らす(図2参照)。すなわち、マウスによって基準となるプリント基板8の表面画像から一画素や矩形領域を設定した後、その指定された画素の輝度値(矩形領域を設定した場合は、その矩形領域内のすべての画素の輝度値)を含むように膨らます。   The excluded RGB information is a set of RGB luminance values that are to be positively excluded from the surface image. In this embodiment, the excluded RGB information is set to a base color close to the pad color, a resist color on the substrate 82, or the like. This excluded RGB information is also set based on the image acquired from the reference printed circuit board 8. For example, when only the color of the base material 82 itself is excluded, (R, G, B) = (60, 30 , 30) If a luminance value in the vicinity is set and the region 82R where the resist 83 is applied on the base material 82 is excluded, the vicinity of (R, G, B) = (80, 120, 50) Set to the brightness value of. Since these luminance values also change depending on the coating thickness of the resist 83, after the luminance values are designated, the RGB luminance values are expanded by a certain width so as to include these luminance values (see FIG. 2). That is, after setting one pixel or a rectangular area from the surface image of the printed circuit board 8 serving as a reference with the mouse, the luminance value of the designated pixel (if a rectangular area is set, all the pixels in the rectangular area are set). (Brightness value).

このようにパッドRGB情報と除外RGB情報を膨らまし処理すると、図2に示すように、パッドRGB情報を示す領域31と除外RGB情報を示す領域32とがオーバーラップしてしまう可能性がある。このような場合、検査領域9から除外RGB情報の領域32に含まれる画素を先に除去し、その後、パッドRGB情報の領域31に含まれる画素を抽出する。また、これとは逆に、パッドRGB情報に属する画素を抽出してから除外RGB情報に含まれる画素を除外しても、結果としては抽出される画像は同じになる。   When the pad RGB information and the excluded RGB information are inflated as described above, there is a possibility that the area 31 indicating the pad RGB information and the area 32 indicating the excluded RGB information overlap as shown in FIG. In such a case, the pixels included in the excluded RGB information area 32 are first removed from the inspection area 9, and then the pixels included in the pad RGB information area 31 are extracted. On the other hand, if the pixels included in the excluded RGB information are excluded after the pixels belonging to the pad RGB information are extracted, the extracted images are the same as a result.

二値化処理手段5は、このように抽出された検査領域9の画像に基づいて二値化処理を行って図4や図5に示すような二値化マップを生成する。二値化処理では、検査領域9内でパッドRGB色として抽出された画素については「0」とし、パッド以外の除去RGB色などとして除外された画素については「1」を設定する。このとき、例えば、パッド81からスルーホール84がはみ出している場合は、パッド81内にスルーホール84が収まっている場合は、図5(a)に示すように、ビット値「1」の領域の塊が、パッドの内側と外側に合計2個存在することになり、一方、図5(b)に示すように、パッド以外(すなわちビット値「1」)の領域の塊が1個のみとなる。   The binarization processing means 5 performs binarization processing based on the image of the inspection area 9 extracted in this way, and generates a binarization map as shown in FIG. 4 or FIG. In the binarization process, “0” is set for pixels extracted as pad RGB colors in the inspection area 9, and “1” is set for pixels excluded as removed RGB colors other than pads. At this time, for example, when the through hole 84 protrudes from the pad 81, and the through hole 84 is accommodated in the pad 81, as shown in FIG. There will be a total of two chunks inside and outside the pad, while there is only one chunk in the area other than the pad (ie, bit value “1”), as shown in FIG. 5B. .

ラベリング手段6は、このように二値化処理された二値化マップに基づいてビット値「0」や「1」の塊ごとにラベリング処理を実行する。ここで「ラベリング」とは、二値化処理されたビット値の塊ごとに符号を割り当てることをいい、この実施の形態では、パッド81以外の領域(すなわち、「1」が割り当てられた領域)の塊ごとにラベルを付与することとしている。   The labeling means 6 executes a labeling process for each block of bit values “0” and “1” based on the binarization map that has been binarized in this way. Here, “labeling” means that a code is assigned to each block of binarized bit values. In this embodiment, an area other than the pad 81 (that is, an area to which “1” is assigned). A label is assigned to each lump.

図6に、このラベリング処理の一例を示す。図6において、符号93は注目画素であり、符号94は、その周囲の参照画素である。まず、注目画素93についてラベルを割り当てる場合、その注目画素93のビット値が「1」であり、かつ、その周囲の参照画素94にまだ何もラベルが割り当てられていない場合は、新しいラベルを付けてその注目画素93に割り当てる。一方、参照画素94について既にラベルが割り当てられている場合は、そのラベルと同じラベルを注目画素93に割り当てる。図6においては、注目画素93のビット値が「1」であり、その左側周囲の参照画素94に既にラベル「1」が割り当てられているため、その注目画素93に対してラベル「1」が割り当てられる。以下、同様の処理を検査領域9の左上から右下にの各画素に向けてラベリングされたマップを生成していく。なお、このラベリング処理の方法については他の方法を採用してもよいが、ラベリングの規則によっては、その規則によって生ずる癖が存在し、ラベリングされる領域が分割されたり統合されたりする可能性がある。特に、検査領域9の境界部分91については、中心部分と比べて相対的にノイズを生じさせやすく、例えば、図4に示すように、検査領域9の近傍に傷や配線パターンなどが存在する場合は、図4(b)に示すように、その傷などによってビット値「1」の領域が内側と外側に分割される可能性がある。   FIG. 6 shows an example of this labeling process. In FIG. 6, reference numeral 93 denotes a target pixel, and reference numeral 94 denotes a surrounding reference pixel. First, when assigning a label to the pixel of interest 93, if the bit value of the pixel of interest 93 is “1” and no reference has been assigned to the surrounding reference pixel 94, a new label is assigned. Assigned to the target pixel 93. On the other hand, if a label is already assigned to the reference pixel 94, the same label as that label is assigned to the target pixel 93. In FIG. 6, since the bit value of the target pixel 93 is “1” and the label “1” has already been assigned to the reference pixels 94 around the left side thereof, the label “1” is assigned to the target pixel 93. Assigned. Thereafter, a map labeled in the same manner from the upper left to the lower right of the inspection area 9 is generated. Although other methods may be adopted for this labeling processing method, depending on the labeling rules, there may be wrinkles caused by the rules, and the labeling area may be divided or integrated. is there. In particular, the boundary portion 91 of the inspection area 9 is relatively easy to generate noise as compared with the central portion. For example, as shown in FIG. 4, there is a scratch or a wiring pattern near the inspection area 9. As shown in FIG. 4B, there is a possibility that the region of the bit value “1” may be divided into the inner side and the outer side due to the scratch or the like.

そこで、判定手段7では、このようにラベリングされた画像のうち、検査領域9の境界部分91に接するラベリング領域92を除去し、その除去後のラベリング領域の個数をカウントする。すなわち、図5(a)に示すように、検査領域9内に他の配線パターンや傷のない状態でスルーホール84がパッド81の内側に形成されている場合は、パッド81の外側のラベリング領域92とパッド81の内側のラベリング領域92が存在し、合計2個のラベリング領域が存在することとなる(図7(a))。このとき、検査領域9の境界部分91に接するラベリング領域92を除去すれば、パッド81の領域内のラベリング領域92が1個だけ残ることになる。すなわち、正常な状態でスルーホール84が形成されている場合は、境界部分除去後のラベリング領域の個数が「1個」だけとなる。また、図4(a)に示すように、検査領域9の他の配線パターンや傷などによって基材82上のレジスト領域82Rが分断されている場合は、ラベリング領域の個数は「3個」となるが、パッド外側のラベリング領域はいずれも検査領域9の境界部分91に接しているのでラベリング領域の個数が「1個」となる。   Therefore, the determination means 7 removes the labeling area 92 in contact with the boundary portion 91 of the inspection area 9 from the images thus labeled, and counts the number of labeling areas after the removal. That is, as shown in FIG. 5A, when the through hole 84 is formed inside the pad 81 without any other wiring pattern or scratch in the inspection area 9, the labeling area outside the pad 81 is formed. 92 and a labeling region 92 inside the pad 81 exist, and there are a total of two labeling regions (FIG. 7A). At this time, if the labeling region 92 in contact with the boundary portion 91 of the inspection region 9 is removed, only one labeling region 92 in the region of the pad 81 remains. That is, when the through hole 84 is formed in a normal state, the number of labeling regions after the boundary portion removal is only “1”. Further, as shown in FIG. 4A, when the resist region 82R on the base material 82 is divided by other wiring patterns or scratches of the inspection region 9, the number of labeling regions is “3”. However, since the labeling area outside the pad is in contact with the boundary portion 91 of the inspection area 9, the number of labeling areas is “1”.

一方、図5(b)に示すように、スルーホール84がパッド81からはみ出している場合、外側境界91に接するラベリング領域92を除去すると、検査領域9のラベリング領域の個数が「0個」となる(図7(b))。そこで、判定手段7では、この検査領域9の境界部分91に接するラベリング領域92を取り除き、その後のラベリング領域の個数をカウントしてその個数が「0個」であれば「位置ずれである」と判定する。   On the other hand, as shown in FIG. 5B, when the through hole 84 protrudes from the pad 81, the number of labeling regions 92 in the inspection region 9 becomes “0” when the labeling region 92 in contact with the outer boundary 91 is removed. (FIG. 7B). Therefore, the determination means 7 removes the labeling area 92 in contact with the boundary portion 91 of the inspection area 9 and counts the number of labeling areas thereafter, and if the number is “0”, it is “positional deviation”. judge.

次に、このように構成された検査装置1の検査フローについて、図8のフローチャートを用いて説明する。   Next, the inspection flow of the inspection apparatus 1 configured as described above will be described with reference to the flowchart of FIG.

<検査領域9の画像抽出のための設定>
まず、パッド81やスルーホール84を含む検査領域9を表面画像から抽出するため事前作業について説明する。
<Setting for image extraction of inspection area 9>
First, a preliminary operation for extracting the inspection region 9 including the pad 81 and the through hole 84 from the surface image will be described.

まず、検査対象物であるプリント基板8からパッド81の検査領域9を抽出する場合、事前に基準となるプリント基板8を用意して、その表面画像を取得する(ステップS1)。このとき、基準となるプリント基板8としては、他の検査装置1や目視検査で良品と判断されたものを用い、その取得された表面画像をディスプレイに表示させる(ステップS2)。そして、オペレーターから、CADデータやマウスによる画面操作によってパッド81の座標位置の設定受付を行い(ステップS3)、その座標位置やパッド81を含む矩形領域の大きさを記憶させる(ステップS4)。   First, when the inspection area 9 of the pad 81 is extracted from the printed circuit board 8 which is the inspection object, the reference printed circuit board 8 is prepared in advance and the surface image is acquired (step S1). At this time, as the printed circuit board 8 serving as a reference, another inspection device 1 or one determined to be non-defective by visual inspection is used, and the acquired surface image is displayed on the display (step S2). Then, setting of the coordinate position of the pad 81 is received from the operator by CAD data or a screen operation with the mouse (step S3), and the coordinate position and the size of the rectangular area including the pad 81 are stored (step S4).

このように座標位置や検査領域9の大きさを設定した後、今度は、ディスプレイに表示された検査領域9の画像に基づいて、パッド81の金属露出部分やパッド81上のレジスト83塗布領域の画素の選択を受け付け、その画素のRGB情報をパッドRGB情報として記憶させる(ステップS5)。また、これと同様に、パッド81以外の部分で積極的に除外したい色の画素について選択を受け付け、その画素のRGB情報を除外RGB情報として記憶させる(ステップS6)。このとき、除外色としては、パッド色と間違われやすい色を設定する。そして、このようにパッドRGB情報や除外RGB情報を設定した後、それぞれの情報を膨らまし処理してパッドRGB情報や除外RGB情報として記憶させる(ステップS7)。   After setting the coordinate position and the size of the inspection area 9 in this way, this time, based on the image of the inspection area 9 displayed on the display, the metal exposed part of the pad 81 and the resist 83 application area on the pad 81 are displayed. The selection of a pixel is accepted, and the RGB information of the pixel is stored as pad RGB information (step S5). Similarly, selection is accepted for a pixel of a color to be positively excluded in a portion other than the pad 81, and the RGB information of the pixel is stored as excluded RGB information (step S6). At this time, a color that is easily mistaken for the pad color is set as the exclusion color. And after setting pad RGB information and exclusion RGB information in this way, each information is inflated and memorize | stored as pad RGB information and exclusion RGB information (step S7).

<検査対象物の検査処理>
次に、このように検査領域9の座標やパッドRGB情報、除外RGB情報を設定した後、検査対象物であるプリント基板8を検査する処理について図9のフローチャートを用いて説明する。
<Inspection processing of inspection object>
Next, a process for inspecting the printed circuit board 8 that is an inspection object after setting the coordinates of the inspection area 9, the pad RGB information, and the excluded RGB information will be described with reference to the flowchart of FIG.

検査対象物であるプリント基板8の形成状態を検査する場合、同様に、検査対象物のプリント基板8から表面画像を取得し(ステップT1)、その画像を画像メモリに格納する。そして、その表面画像から、あらかじめ記憶されているパッド81の座標位置に基づいて検査領域9を抽出し(ステップT2)、その検査領域9の画像から前記膨らまし処理された除外RGB情報に含まれる画素を除去する(ステップT3)。このとき、基材82そのものの色に対応する画素や、基材82上に塗布されたレジスト83の色に対応する画素などは除去される。このように除外RGB情報に含まれる画素を取り除いた後は、前記膨らまし処理された後のパッドRGB情報に属する画素を抽出し(ステップT4)、例えば、パッド81の金属色やパッド81上のレジスト色などに含まれる画素だけを抽出する。このような処理を行うことにより、検査領域9の画像としては、パッド81の領域に対応する画像だけが残ることになり、それ以外の画像は除去されることになる。   When inspecting the formation state of the printed circuit board 8 that is the inspection object, similarly, a surface image is acquired from the printed circuit board 8 that is the inspection object (step T1), and the image is stored in the image memory. Then, the inspection area 9 is extracted from the surface image based on the coordinate position of the pad 81 stored in advance (step T2), and the pixels included in the excluded RGB information subjected to the inflating process from the image of the inspection area 9 Is removed (step T3). At this time, pixels corresponding to the color of the substrate 82 itself, pixels corresponding to the color of the resist 83 applied on the substrate 82, and the like are removed. After removing the pixels included in the excluded RGB information in this way, the pixels belonging to the pad RGB information after the inflating process are extracted (step T4). For example, the metal color of the pad 81 or the resist on the pad 81 is extracted. Extract only the pixels included in the color. By performing such processing, only the image corresponding to the area of the pad 81 remains as the image of the inspection area 9, and the other images are removed.

次に、このように抽出されたパッド81の領域の画像を二値化処理して二値化マップを生成する(ステップT5)。この二値化処理では、パッド81以外の領域を「1」とし、パッド81の領域を「0」とする。これにより、図4や図5に示すように、基材82のレジスト83領域やスルーホール84の部分は「1」となり、パッド81の金属露出部分やパッド81のレジスト塗布領域81Rは「0」となる。   Next, the extracted image of the area of the pad 81 is binarized to generate a binarization map (step T5). In this binarization processing, the area other than the pad 81 is set to “1”, and the area of the pad 81 is set to “0”. As a result, as shown in FIGS. 4 and 5, the resist 83 region of the base material 82 and the through hole 84 portion are “1”, and the exposed metal portion of the pad 81 and the resist coating region 81R of the pad 81 are “0”. It becomes.

ステップT6では、このように生成された二値化マップからラベリング処理を行う。このラベリング処理では、パッド81以外の領域についてのラベリング処理を実行し、二値化マップで「1」の付されている画素の塊ごとにラベルを付けていく。この処理によって、例えば、パッド81内にスルーホール84が形成されている場合は、図7に示すように、スルーホール84の部分のラベル「1」の部分と、パッド81その外側領域のラベル「2」の部分とで2個のラベリング領域92が存在することになる。一方、パッド81の境界部分からスルーホール84がはみ出している場合は、ラベリング領域92は1個だけとなる。   In step T6, a labeling process is performed from the binarized map generated in this way. In this labeling process, a labeling process is executed for the area other than the pad 81, and a label is attached to each pixel cluster to which “1” is added in the binarization map. For example, when the through hole 84 is formed in the pad 81 by this process, as shown in FIG. 7, the label “1” portion of the through hole 84 portion and the label “ Two labeling regions 92 exist in the portion “2”. On the other hand, when the through hole 84 protrudes from the boundary portion of the pad 81, there is only one labeling region 92.

判定処理では、このラベリング処理された後のマップに基づいてスルーホール84の位置ずれを判定する。この判定処理では、検査領域9の境界部分91に接するラベリング領域92を除去し(ステップT7)、そこで残ったラベリング領域92の個数をカウントする。このとき、パッド81内にスルーホール84が形成されている場合は、検査領域9の境界部分91に接するラベリング領域92を除去した後のラベリング領域の個数が「1個」(パッド81内のスルーホール部分の1個)だけとなり、一方、パッド81からスルーホール84がはみ出している場合は、スルーホール84と外側領域が一体化されて、ラベリング領域の個数が「0個」となる。そこで、判定手段7によってラベリング領域の個数が「0個」の場合は「位置ずれ」であると判定し(ステップT9)、一方、ラベリング領域の個数が「1個」である場合は「位置ずれなし」と判定し(ステップT10)てその結果を出力する。   In the determination process, the positional deviation of the through hole 84 is determined based on the map after the labeling process. In this determination processing, the labeling region 92 that is in contact with the boundary portion 91 of the inspection region 9 is removed (step T7), and the number of labeling regions 92 remaining there is counted. At this time, when the through hole 84 is formed in the pad 81, the number of the labeling areas after removing the labeling area 92 in contact with the boundary portion 91 of the inspection area 9 is “1” (through holes in the pad 81. On the other hand, when the through hole 84 protrudes from the pad 81, the through hole 84 and the outer region are integrated, and the number of labeling regions becomes “0”. Therefore, when the number of labeling areas is “0”, the determination means 7 determines that the position is misaligned (step T9). On the other hand, when the number of labeling areas is “1”, "None" is determined (step T10), and the result is output.

このように上記実施の形態によれば、プリント基板8の表面画像を取得する画像取得手段2と、パッド81の座標位置やパッドRGB情報、除外RGB情報などに基づいてパッド81を含む検査領域9の画像を抽出する領域抽出手段3と、この検査領域9の画像から二値化マップを生成する二値化処理手段5と、この二値化マップに基づいてパッド81以外の領域についてラベリング処理を実行するラベリング手段6とを備え、パッド81以外のラベリング領域92の個数をカウントしてその個数が既定値よりも少ない場合は「位置ずれである」と判定するようにしたので、パッド81のエッジ81aを超えてスルーホール84が形成されているかどうかを判定することができる。   As described above, according to the above embodiment, the image acquisition unit 2 that acquires the surface image of the printed circuit board 8 and the inspection region 9 including the pad 81 based on the coordinate position of the pad 81, the pad RGB information, the excluded RGB information, and the like. Area extraction means 3 for extracting the image of the image, binarization processing means 5 for generating a binarization map from the image of the inspection area 9, and labeling processing for areas other than the pad 81 based on the binarization map. Since the labeling means 6 to be executed is included and the number of labeling regions 92 other than the pad 81 is counted and the number is smaller than a predetermined value, it is determined that the position is misaligned. It can be determined whether or not the through hole 84 is formed beyond 81a.

また、このように検査領域9を抽出する場合、パッドRGB情報と除外RGB情報の領域を膨らまし処理して検査領域9の画像を抽出するようにしたので、カラー画像でパッド81の検査領域9を抽出する場合、パッド81のRGBやパッド81以外のRGBの輝度値をすべて指定しなくても、数画素のRGBや一定範囲内のRGBを設定するだけで、その指定されたRGB近傍の画素を抽出し、また、除外することができるようになる。   Further, when the inspection area 9 is extracted in this way, the image of the inspection area 9 is extracted by expanding the areas of the pad RGB information and the excluded RGB information, so that the inspection area 9 of the pad 81 is extracted with a color image. When extracting, it is not necessary to specify all the RGB brightness values of the pad 81 and RGB except for the pad 81, and by setting only a few pixels of RGB or RGB within a certain range, pixels in the vicinity of the specified RGB can be selected. It will be possible to extract and also exclude.

さらには、ラベリングされた画像からスルーホール84の形成状態を判定する場合、検査領域9の境界部分91に接するラベリング領域92を除去し、その後、パッド81以外の領域のラベリング領域の個数が「0」であれば「位置ずれである」と判定するようにしたので、図4に示すように、検査領域9に傷や他の配線パターンなどが存在する場合であっても、その傷などによって分割されたラベリング領域92を除去して正確に位置ずれを検査することができるようになる。   Further, when the formation state of the through hole 84 is determined from the labeled image, the labeling region 92 in contact with the boundary portion 91 of the inspection region 9 is removed, and then the number of labeling regions other than the pad 81 is “0”. ”Is determined to be“ positional misalignment ”. Therefore, as shown in FIG. 4, even if there are scratches or other wiring patterns in the inspection area 9, it is divided by the scratches. It is possible to accurately inspect the displacement by removing the labeled region 92.

なお、本発明は上記実施の形態に限定されることなく、種々の態様で実施することができる。   In addition, this invention is not limited to the said embodiment, It can implement in a various aspect.

例えば、上記実施の形態では、ラベリング領域の個数が「0」である場合は「位置ずれである」と判定し、ラベリング領域の個数が「1」である場合は「位置ずれでない」と判断したが、傷などの影響を無視することができる場合は、スルーホール84がはみ出している場合の方がラベリング領域の個数が1個少なくなるため、既定値よりもラベリング領域の個数が少ない場合は「位置ずれ」であると判断するようにしてもよい。   For example, in the above-described embodiment, when the number of labeling areas is “0”, it is determined as “misalignment”, and when the number of labeling areas is “1”, it is determined as “not misalignment”. However, when the influence of scratches or the like can be ignored, the number of labeling regions is reduced by one when the through-hole 84 protrudes, and therefore when the number of labeling regions is smaller than the default value, “ You may make it judge that it is "position shift".

また、上記実施の形態では、ラベリング領域の個数によってスルーホール84の位置ずれを検出するようにしているが、パッド81の内側にスルーホール84が形成されている場合、内側のラベリング領域92の面積に基づいてスルーホール84の穴径も同時に検査するようにしてもよい。   Further, in the above embodiment, the positional deviation of the through hole 84 is detected by the number of labeling regions. However, when the through hole 84 is formed inside the pad 81, the area of the inner labeling region 92 is detected. Based on the above, the diameter of the through hole 84 may be inspected at the same time.

さらに、上記実施の形態では、除外RGB情報に基づいて除外画素を先に除外し、その後、パッドRGB情報に基づいてパッド81に対応する画素を抽出するようにしたが、パッドRGB情報のみに基づいてパッド81に対応する画素を抽出するようにしてもよい。   Further, in the above embodiment, the excluded pixels are excluded first based on the excluded RGB information, and then the pixels corresponding to the pad 81 are extracted based on the pad RGB information. However, based on only the pad RGB information. Thus, pixels corresponding to the pad 81 may be extracted.

本発明は、電子部品を実装していないプリント基板のパッドに形成されたスルーホールの位置ずれを検査することができる。   The present invention can inspect misalignment of a through hole formed in a pad of a printed circuit board on which no electronic component is mounted.

1・・・検査装置
2・・・画像取得手段
3・・・領域抽出手段
4・・・設定手段
5・・・二値化処理手段
6・・・ラベリング手段
7・・・判定手段
31・・・パッドRGB領域
32・・・除外RGB領域
8・・・プリント基板
81・・・パッド
81a・・・エッジ
82・・・基材
83・・・レジスト
82R・・・基材レジスト
81R・・・パッド上レジスト
84・・・スルーホール
9・・・検査領域
91・・・境界部分
92・・・ラベリング領域
DESCRIPTION OF SYMBOLS 1 ... Inspection apparatus 2 ... Image acquisition means 3 ... Area extraction means 4 ... Setting means 5 ... Binarization processing means 6 ... Labeling means 7 ... Determination means 31 ... -Pad RGB area 32 ... Excluded RGB area 8 ... Printed circuit board 81 ... Pad 81a ... Edge 82 ... Base material 83 ... Resist 82R ... Base material resist 81R ... Pad Upper resist 84 ... through hole 9 ... inspection area 91 ... boundary portion 92 ... labeling area

Claims (3)

プリント基板のパッドに設けられたスルーホールの形成状態を検査するスルーホールの検査装置において、
プリント基板の表面画像を取得する画像取得手段と、
当該表面画像からパッドを含む検査領域の画像を抽出する領域抽出手段と、
当該抽出された画像から二値化マップを生成する二値化処理手段と、
当該二値化マップに基づいてラベリング処理を実行するラベリング手段と、
当該ラベリング処理された情報に基づいてパッド以外のラベリング領域の個数をカウントし、当該ラベリング領域の個数が所定の個数以下である場合は位置ずれであると判定する判定手段と、
を設けたことを特徴とするスルーホールの検査装置。
In a through hole inspection device that inspects the formation state of a through hole provided in a pad of a printed circuit board,
Image acquisition means for acquiring a surface image of the printed circuit board;
Area extraction means for extracting an image of an inspection area including a pad from the surface image;
Binarization processing means for generating a binarization map from the extracted image;
Labeling means for executing a labeling process based on the binarized map;
A determination unit that counts the number of labeling areas other than the pads based on the information subjected to the labeling process, and determines that the position is shifted when the number of the labeling areas is equal to or less than a predetermined number;
A through-hole inspection device characterized by comprising:
前記領域抽出手段が、あらかじめパッド領域に対応したパッドRGB情報およびパッド以外の領域に対応した除外RGB情報を設定しておき、当該パッドRGB情報と除外RGB情報の領域を膨らまし処理して検査領域の画像を抽出するものである請求項1に記載のスルーホールの検査装置。 The area extracting means sets pad RGB information corresponding to the pad area and exclusion RGB information corresponding to the area other than the pad in advance, and inflates the areas of the pad RGB information and the exclusion RGB information to perform the inspection of the inspection area. The through-hole inspection apparatus according to claim 1, which extracts an image. 前記判定手段が、ラベリングされた画像からスルーホールの形成状態を判定する場合、検査領域の外側境界に接するパッド以外のラベリング領域を除去し、その後、パッド以外のラベリング領域の数をカウントしてその個数が既定値以下である場合は位置ずれであると判定するようにしたものである請求項1に記載のスルーホールの検査装置。 When the determination means determines the formation state of the through hole from the labeled image, the labeling area other than the pad in contact with the outer boundary of the inspection area is removed, and then the number of labeling areas other than the pad is counted and 2. The through-hole inspection device according to claim 1, wherein when the number is equal to or less than a predetermined value, it is determined that the position is misaligned.
JP2009021023A 2009-01-31 2009-01-31 Through-hole inspection equipment Active JP5234639B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2009021023A JP5234639B2 (en) 2009-01-31 2009-01-31 Through-hole inspection equipment
PCT/JP2010/051217 WO2010087433A1 (en) 2009-01-31 2010-01-29 Apparatus for inspecting through hole
CN2010800062506A CN102301225A (en) 2009-01-31 2010-01-29 Apparatus for inspecting through hole

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009021023A JP5234639B2 (en) 2009-01-31 2009-01-31 Through-hole inspection equipment

Publications (2)

Publication Number Publication Date
JP2010175483A JP2010175483A (en) 2010-08-12
JP5234639B2 true JP5234639B2 (en) 2013-07-10

Family

ID=42395687

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009021023A Active JP5234639B2 (en) 2009-01-31 2009-01-31 Through-hole inspection equipment

Country Status (3)

Country Link
JP (1) JP5234639B2 (en)
CN (1) CN102301225A (en)
WO (1) WO2010087433A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10699056B1 (en) 2019-01-21 2020-06-30 Samsung Electronics Co., Ltd. Computer-implemented method, processor-implemented system, and non-transitory computer-readable storage medium storing instructions for simulation of printed circuit board

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279757B (en) * 2015-10-19 2018-10-16 广州视源电子科技股份有限公司 A kind of pad localization method and device
CN105957065A (en) * 2016-04-21 2016-09-21 广州视源电子科技股份有限公司 Method and system for detecting omitted elements
CN110567369B (en) * 2019-08-30 2021-01-08 苏州康代智能科技股份有限公司 Hole site detection method and detection equipment based on up-down drilling circuit board
US20220392190A1 (en) 2019-11-06 2022-12-08 Fuji Corporation Image processing device, component mounting system, and image processing method
KR102170352B1 (en) * 2020-05-07 2020-10-27 이태희 Device and method for detecting holes of printed circuit board
CN111795954B (en) * 2020-09-09 2020-11-24 苏州鼎纳自动化技术有限公司 Transmittance precision detection mechanism
CN116416183A (en) * 2021-12-29 2023-07-11 广东利元亨智能装备股份有限公司 Weld quality detection area determination method, device, computer and storage medium
CN114250438B (en) * 2022-01-26 2023-07-14 福建华佳彩有限公司 Mask plate and circular opening deviation measuring method thereof
CN117571721B (en) * 2024-01-15 2024-04-05 北京兆维智能装备有限公司 Method and device for detecting surface defects of circuit board bonding pad and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0786468B2 (en) * 1990-11-19 1995-09-20 大日本スクリーン製造株式会社 Printed circuit board pattern inspection method
JPH0560537A (en) * 1991-09-05 1993-03-09 Matsushita Electric Ind Co Ltd Through-hole inspection device
JPH0786468A (en) * 1993-09-10 1995-03-31 Toshiba Corp Semiconductor device
JP2001267722A (en) * 2000-03-23 2001-09-28 Ngk Spark Plug Co Ltd Method for inspecting printed wiring board
JP2006038582A (en) * 2004-07-26 2006-02-09 Dainippon Screen Mfg Co Ltd Detection of flaw due to regional division of image
JP4518494B2 (en) * 2005-03-28 2010-08-04 大日本スクリーン製造株式会社 Land pattern inspection method and inspection apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10699056B1 (en) 2019-01-21 2020-06-30 Samsung Electronics Co., Ltd. Computer-implemented method, processor-implemented system, and non-transitory computer-readable storage medium storing instructions for simulation of printed circuit board

Also Published As

Publication number Publication date
WO2010087433A1 (en) 2010-08-05
CN102301225A (en) 2011-12-28
JP2010175483A (en) 2010-08-12

Similar Documents

Publication Publication Date Title
JP5234639B2 (en) Through-hole inspection equipment
JP4518835B2 (en) Defect detection device, wiring region extraction device, defect detection method, and wiring region extraction method
US20060018534A1 (en) Technique for detecting a defect of an object by area segmentation of a color image of the object
KR100689793B1 (en) Apparatus, method, and program for assisting in selection of pattern element for pattern matching
JP5660861B2 (en) Foreign matter inspection method and foreign matter inspection apparatus on substrate
JP5045591B2 (en) Method for creating area setting data for inspection area and board appearance inspection apparatus
JP6496159B2 (en) Pattern inspection apparatus and pattern inspection method
JP3589424B1 (en) Board inspection equipment
JP2006234667A (en) Device and method of bump inspection
JP2006078300A (en) Flaw detection method of object by color image of the object
JP4506395B2 (en) Substrate inspection device, parameter setting method and parameter setting device
JP2000046745A (en) Wiring pattern inspection apparatus
JP2010091360A (en) Method and device for inspecting image
JP2017133868A (en) Pattern inspection device and pattern inspection method
JP2008298680A (en) Substrate appearance inspecting apparatus, substrate appearance inspecting method, and program of the same
JP4205137B2 (en) Appearance inspection apparatus and inspection region extraction method for inspection object
JP2000200355A (en) Production of check program for cream solder print checking machine
JP2006049348A (en) Method, program, and apparatus for appearance inspection of printed circuit board
JP2000028334A (en) Method and apparatus for inspecting pattern fault
JPH04184244A (en) Method for inspecting pattern of printed circuit board
JP4419778B2 (en) Substrate inspection device, parameter setting method and parameter setting device
WO2012164655A1 (en) Automatic inspection device and automatic inspection method
JP5096940B2 (en) Inspection method and apparatus for printed wiring board
JP4812482B2 (en) Printing state inspection apparatus and printing state inspection method
JP6280760B2 (en) Inspection apparatus and inspection method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120104

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120105

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130319

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5234639

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20160405

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250