TWI519802B - A method of taking circuit information, a method of taking non-circuit area information and a method of detecting a circuit defect utilizing the aforementioned method - Google Patents

A method of taking circuit information, a method of taking non-circuit area information and a method of detecting a circuit defect utilizing the aforementioned method Download PDF

Info

Publication number
TWI519802B
TWI519802B TW103117225A TW103117225A TWI519802B TW I519802 B TWI519802 B TW I519802B TW 103117225 A TW103117225 A TW 103117225A TW 103117225 A TW103117225 A TW 103117225A TW I519802 B TWI519802 B TW I519802B
Authority
TW
Taiwan
Prior art keywords
line
skeleton
picture
circuit image
circuit
Prior art date
Application number
TW103117225A
Other languages
Chinese (zh)
Other versions
TW201543053A (en
Inventor
鄭雅芸
廖佐華
陸家樑
Original Assignee
由田新技股份有限公司
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 由田新技股份有限公司 filed Critical 由田新技股份有限公司
Priority to TW103117225A priority Critical patent/TWI519802B/en
Priority to CN201410265588.3A priority patent/CN105092604B/en
Publication of TW201543053A publication Critical patent/TW201543053A/en
Application granted granted Critical
Publication of TWI519802B publication Critical patent/TWI519802B/en

Links

Description

一種線路資訊擷取方法、非線路區資訊擷取方法及運用前述方法的線路缺 陷檢測方法 Line information acquisition method, non-line area information acquisition method and line missing using the foregoing method Trap detection method

本發明與用於檢測或量測印刷電路板、TFT面板等基板上之線路的方法有關,尤指一種利用一骨架從拍攝自該基板的電路影像中擷取能應用於線路缺陷檢測或其它應用的方法。 The invention relates to a method for detecting or measuring a circuit on a substrate such as a printed circuit board or a TFT panel, and more particularly to using a skeleton to extract from a circuit image taken from the substrate for line defect detection or other applications. Methods.

按,在習知印刷電路板的積體電路製造方法為將一導體圖樣沉積於印刷電路板上形成,而近年來印刷電路板技術發展使得有效電路佈局空間已達到極限,例如其設限於電路板的最佳密度規劃(每平方公分的裝置數量逐漸增加)、電路板上佈局的細線及空間規劃、增加間距密度格柵陣列裝置等,因此印刷電路板上形成導體圖樣必須相對微小化及規劃最佳佈局密度,故容易使得印刷電路板上的線路產生製程上缺陷狀態,因此常需要進一步進行線路檢測及測試,但隨著生產技術的不斷改進,印刷電路板的密度和多樣性正迅速地提高,單憑肉眼檢測己不能準確地找出HDI板和IC基板上的缺陷,故藉由自動化機器視覺檢測方式,例如自動光學檢查技術(Automated Optical Inspection,簡稱AOI)或自動圖像檢測技術(AVI),檢測出印刷電路板上的線路缺陷,已相當普遍。 According to the conventional printed circuit board, the integrated circuit manufacturing method is formed by depositing a conductor pattern on a printed circuit board. In recent years, the development of the printed circuit board technology has made the effective circuit layout space reach the limit, for example, the circuit board is limited to the circuit board. The optimal density planning (increasing number of devices per square centimeter), the thin line and space planning on the board layout, and the increase of the pitch-density grid array device, etc., therefore, the conductor pattern formed on the printed circuit board must be relatively miniaturized and the most planned. The layout density is good, so it is easy to make the circuit on the printed circuit board produce defect status in the process. Therefore, it is often necessary to further perform line detection and testing. However, with the continuous improvement of production technology, the density and diversity of printed circuit boards are rapidly increasing. It is impossible to accurately find the defects on the HDI board and the IC substrate by the naked eye inspection, so the automatic machine vision inspection method, such as Automated Optical Inspection (AOI) or automatic image detection technology (AVI) It is quite common to detect line defects on printed circuit boards.

這類以影像辨識為基礎的線路缺陷檢測方法,目前已有多種技術問市,例如台灣I401430、550391、519571、201339594、I264793、I244359、200540411、I240223、200949241、I412739、I435052、I292031、201326739。 儘管如此,仍有需要針對這類檢測方法提出更新的技術案供業界利用。 Such image recognition-based line defect detection methods have been available in various technologies, such as Taiwan I401430, 550391, 519571, 201339594, I264793, I244359, 200540411, I240223, 200949241, I412739, I435052, I292031, 201326739. Despite this, there are still technical cases that need to be updated for this type of testing method for the industry to use.

本發明提供一種以影像辨識技術為基礎的線路資訊擷取方法、非線路區資訊擷取方法及運用前述方法的線路缺陷檢測之方法,用以從拍攝自一基板的電路影像中擷取線路資訊(例如線寬或線路本身的色階)及/或非線路區資訊,並使用所擷取到的資訊對該基板進行各種缺陷檢測程序,或者,也可以利用所擷取到的資訊來建立前述缺陷檢測程序中之分析判斷步驟所需要用到的門檻值。 The invention provides a line information acquisition method based on image recognition technology, a non-line area information acquisition method and a line defect detection method using the foregoing method, which are used for extracting line information from circuit images captured from a substrate. (such as the line width or the color gradation of the line itself) and / or non-line area information, and use the information obtained to perform various defect detection procedures on the substrate, or you can use the information obtained to establish the foregoing The threshold value required for the analysis and judgment step in the defect detection program.

更詳而言之,本發明之線路資訊擷取方法,包括將一電腦輔助設計圖片處理成一骨架圖片,該骨架圖片上具有由多條細線所構成的一骨架,每一條細線係為該電腦輔助設計圖片上相對應的每一條線路的細線化結果;取得一電路影像,該電路影像係拍攝自依據該電腦輔助設計圖片所製作的一基板;對該骨架圖片與該電路影像進行對位,以使該骨架圖片中的該骨架的每一條細線都分別對到該電路影像中相對應的每一條線路的內部;及根據該骨架的每一條細線的像素點的座標位置擷取該電路影像上相對應的每一條線路在相同座標位置上的線路資訊。 More specifically, the method for capturing information of the line of the present invention comprises processing a computer-aided design picture into a skeleton picture having a skeleton composed of a plurality of thin lines, each of which is a computer aid. Designing a thinning result of each line corresponding to the picture; obtaining a circuit image, the circuit image is taken from a substrate made according to the computer aided design picture; and the skeleton picture is aligned with the circuit image to Having each of the thin lines of the skeleton in the skeleton picture respectively correspond to the inside of each corresponding line in the circuit image; and extracting the phase of the circuit image according to the coordinate position of the pixel point of each thin line of the skeleton Corresponding line information of each line at the same coordinate position.

在一較佳例子中,上述骨架圖片係為將該電腦輔助設計圖片沿水平方向處理得到的一水平骨架圖片,該水平骨架圖片上具有由多條沿水平方向延伸的細線所構成的一水平骨架。 In a preferred example, the skeleton picture is a horizontal skeleton picture obtained by processing the computer aided design picture in a horizontal direction, and the horizontal skeleton picture has a horizontal skeleton formed by a plurality of thin lines extending in the horizontal direction. .

在另一較佳例子中,上述骨架圖片係為將該電腦輔助設計圖片沿垂直方向處理得到的一垂直骨架圖片,該垂直骨架圖片上具有由多條沿垂直方向延伸的細線所構成的一垂直骨架。 In another preferred example, the skeleton picture is a vertical skeleton picture obtained by processing the computer aided design picture in a vertical direction, and the vertical skeleton picture has a vertical line formed by a plurality of thin lines extending in a vertical direction. skeleton.

較佳地,該電路影像中的每一條線路係為一亮區,且上述骨架圖片與該電路影像進行對位之步驟包括進行一水平部校正程序,該水平部校正程序包括:從該電路影像中找到最靠近其中一條沿水平方向延伸之細線的該亮區;及往該亮區之方向垂直移動該骨架圖片,以使該其中一細線對到該亮區的中間位置。 Preferably, each of the circuit images is a bright area, and the step of aligning the skeleton picture with the circuit image comprises performing a horizontal portion correction program, the horizontal portion correction program comprising: from the circuit image Finding the bright area closest to one of the thin lines extending in the horizontal direction; and moving the skeleton picture vertically in the direction of the bright area such that one of the thin lines is in the middle of the bright area.

較佳地,該骨架圖片與該電路影像進行對位之步驟包括進 行一垂直部校正程序,該垂直部校正程序包括:從該電路影像中找到最靠近其中一條沿垂直方向延伸之細線的該亮區;及往該亮區之方向水平移動該骨架圖片,以使該其中一細線對到該亮區的中間位置。 Preferably, the step of aligning the skeleton picture with the circuit image includes Performing a vertical portion correction program, the vertical portion correcting program includes: finding the bright region closest to one of the thin lines extending in the vertical direction from the circuit image; and horizontally moving the skeleton image in the direction of the bright region, so that One of the thin lines is in the middle of the bright area.

再者,本發明之線路缺陷檢測方法包括:拍攝一待測基板,以取得一電路影像;對所取得的該待測基板執行上所述本發明之線路資訊擷取方法,藉以取得該待測基板的該電路影像上的每一條線路的線路資訊;及根據所取得的線路資訊,分析判斷該待測基板的該電路影像上的每一條線路上是否存在缺陷。較佳地,也可使用所取得的線路資訊來預先建立進行前述分析判斷時所需要用到的門檻值。 Furthermore, the method for detecting a line defect of the present invention includes: capturing a substrate to be tested to obtain a circuit image; performing the circuit information acquisition method of the present invention on the obtained substrate to be tested, thereby obtaining the to-be-tested Circuit information of each line on the circuit image of the substrate; and analyzing and judging whether there is a defect on each line on the circuit image of the substrate to be tested according to the obtained line information. Preferably, the acquired line information can also be used to pre-establish the threshold value required for performing the aforementioned analysis and determination.

本發明之非線路區資訊擷取方法,包括:將一電腦輔助設計圖片處理成一骨架圖片,該骨架圖片上具有由多條細線所構成的一骨架,每一條細線係為該電腦輔助設計圖片上相對應的每一道非線路區的細線化結果;取得一電路影像,該電路影像係拍攝自依據該電腦輔助設計圖片所製作的一基板,該電路影像上具有多條線路及多道非線路區,每一條線路與非線路區係依據該電腦輔助設計圖片上相對應的線路與非線路區而製作的;對該骨架圖片與該電路影像進行對位,以使該骨架圖片中的該骨架的每一條細線都分別對到該電路影像中相對應的每一道非線路區的內部;及根據該骨架的每一條細線的像素點的座標位置擷取該電路影像上相對應的每一道非線路區在相同座標位置上的資訊。 The non-line area information acquisition method of the invention comprises: processing a computer-aided design picture into a skeleton picture, the skeleton picture having a skeleton composed of a plurality of thin lines, each thin line being on the computer-aided design picture Corresponding thinning result of each non-line area; obtaining a circuit image, the circuit image is taken from a substrate made according to the computer aided design picture, the circuit image has multiple lines and multiple non-line areas Each line and non-line area is made according to the corresponding line and non-line area on the computer-aided design picture; the skeleton picture is aligned with the circuit image to make the skeleton in the skeleton picture Each thin line is respectively corresponding to the interior of each non-line area corresponding to the circuit image; and each non-line area corresponding to the circuit image is captured according to the coordinate position of the pixel of each thin line of the skeleton Information at the same coordinate location.

在上述非線路區資訊擷取方法的一個較佳例子中的該骨架圖片係為將該電腦輔助設計圖片沿水平方向處理得到的一水平骨架圖片,該水平骨架圖片上具有由多條沿水平方向延伸的細線所構成的一水平骨架。 In a preferred example of the non-line area information acquisition method, the skeleton picture is a horizontal skeleton picture obtained by processing the computer-aided design picture in a horizontal direction, and the horizontal skeleton picture has a plurality of horizontal directions. A horizontal skeleton formed by extended thin lines.

較佳地,該非線路區資訊擷取方法所提到的該電路影像中的每一道非線路區係為該亮區,該骨架圖片與該電路影像進行對位之步驟包括進行一水平部校正程序,該水平部校正程序包括從該電路影像中找到最靠近其中一條沿水平方向延伸之細線的該亮區;以及往該亮區之方向垂直移動該骨架圖片,以使該其中一細線對到該亮區的中間位置。 Preferably, each non-line area in the circuit image mentioned in the non-line area information acquisition method is the bright area, and the step of aligning the skeleton picture with the circuit image includes performing a horizontal part correction procedure The horizontal portion correction program includes finding the bright region closest to one of the thin lines extending in the horizontal direction from the circuit image; and vertically moving the skeleton image in the direction of the bright region, so that one of the thin lines is aligned to the The middle position of the bright area.

在上述非線路區資訊擷取方法的另一較佳例子中的該骨架圖片係為將該電腦輔助設計圖片沿垂直方向處理得到的一垂直骨架圖片, 該垂直骨架圖片上具有由多條沿垂直方向延伸的細線所構成的一垂直骨架。 In another preferred example of the non-line area information capturing method, the skeleton picture is a vertical skeleton picture obtained by processing the computer aided design picture in a vertical direction. The vertical skeleton picture has a vertical skeleton composed of a plurality of thin lines extending in the vertical direction.

較佳地,該非線路區資訊擷取方法所提到的該電路影像中的每一道非線路區係為一亮區,該骨架圖片與該電路影像上進行對位之步驟包括進行一垂直部校正程序,該垂直部校正程序包括從該電路影像中找到最靠近其中一條沿垂直方向延伸之細線的該亮區;以及往該亮區之方向水平移動該骨架圖片,以使該其中一細線對到該亮區的中間位置。 Preferably, each non-line area in the circuit image mentioned in the non-line area information acquisition method is a bright area, and the step of aligning the skeleton picture with the circuit image includes performing a vertical part correction a program, the vertical portion correction program includes: finding the bright region closest to one of the thin lines extending in the vertical direction from the circuit image; and horizontally moving the skeleton image in a direction of the bright region to make the thin line pair The middle position of the bright area.

本發明之另一線路缺陷檢測方法包括拍攝一待測基板,以取得一電路影像,對所取得的該待測基板的該電路影像執行上述的非線路區資訊擷取方法,藉以取得該待測基板的該電路影像上的每一道非線路區的資訊;以及根據所取得的線路資訊,分析判斷該待測基板的該電路影像上是否存在缺陷。較佳地,也可使用所取得的非線區資訊來預先建立進行前述分析判斷時所需要用到的門檻值。 Another circuit defect detecting method of the present invention comprises: capturing a substrate to be tested to obtain a circuit image, and performing the non-line area information capturing method on the obtained circuit image of the substrate to be tested, thereby obtaining the to-be-tested Information about each non-line area on the circuit image of the substrate; and analyzing and judging whether there is a defect on the circuit image of the substrate to be tested according to the obtained line information. Preferably, the obtained non-line area information may also be used to pre-establish the threshold value required for performing the foregoing analysis and determination.

相對於先前技術,本發明首創利用一骨架擷取一電路影像上的線路資訊及/或非線路區資訊,並使用所擷取到的資訊達成線路缺陷檢測之目的。 Compared with the prior art, the present invention first utilizes a skeleton to capture line information and/or non-line area information on a circuit image, and uses the captured information to achieve line defect detection.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 The above described features and advantages of the invention will be apparent from the following description.

1‧‧‧基板的電路影像 1‧‧‧ Circuit image of the substrate

10‧‧‧電路圖案 10‧‧‧ circuit pattern

11‧‧‧非電路圖案 11‧‧‧Non circuit pattern

101‧‧‧線路 101‧‧‧ lines

2‧‧‧基板的CAM圖片 2‧‧‧ CAM picture of the substrate

20‧‧‧電路圖案 20‧‧‧ circuit pattern

21‧‧‧非電路圖案 21‧‧‧Non circuit pattern

201‧‧‧線路 201‧‧‧ lines

201a‧‧‧中間線 201a‧‧‧ middle line

3‧‧‧骨架圖片 3‧‧‧ skeleton picture

30‧‧‧骨架 30‧‧‧ skeleton

301‧‧‧細線 301‧‧‧ Thin line

p1、p2‧‧‧像素 P1, p2‧‧ ‧ pixels

w1、w2‧‧‧線寬 W1, w2‧‧‧ line width

e1、e2‧‧‧邊緣點 E1, e2‧‧‧ edge points

3a‧‧‧水平骨架圖片 3a‧‧‧ horizontal skeleton picture

30a‧‧‧骨架 30a‧‧‧ skeleton

301a‧‧‧細線 301a‧‧‧ Thin line

3b‧‧‧垂直骨架圖片 3b‧‧‧ vertical skeleton picture

30b‧‧‧骨架 30b‧‧‧ skeleton

301b‧‧‧細線 301b‧‧‧ Thin line

4‧‧‧CAM圖片 4‧‧‧CAM pictures

40‧‧‧非線路區 40‧‧‧Non-line area

5‧‧‧骨架圖片 5‧‧‧ skeleton picture

50‧‧‧骨架 50‧‧‧ skeleton

501‧‧‧細線 501‧‧‧ Thin line

5a‧‧‧垂直骨架圖片 5a‧‧‧Vertical skeleton picture

5b‧‧‧水平骨架圖片 5b‧‧‧ horizontal skeleton picture

a~b步驟及b1~b3步驟‧‧‧為本發明線路資訊擷取方法的第一較佳實施例的執行步驟 Steps a~b and steps b1~b3 ‧‧‧ are the execution steps of the first preferred embodiment of the method for capturing information of the line of the present invention

a'~c’步驟‧‧‧為本發明線路資訊擷取方法的第二較佳實施例的執行步驟 a'~c' step ‧‧‧ is the execution step of the second preferred embodiment of the line information acquisition method of the present invention

第一圖顯示為本發明之線路資訊擷取方法的第一較佳實施的流程圖。 The first figure shows a flow chart of a first preferred embodiment of the method for capturing information of the line of the present invention.

第二圖顯示本發明所例示的一CAM圖片2(僅顯示部分區域放大圖)。 The second figure shows a CAM picture 2 exemplified by the present invention (only a partial area enlarged view is displayed).

第三圖顯示根據CAM圖片2所處理得到的骨架圖片3。 The third figure shows the skeleton picture 3 processed according to CAM picture 2.

第四圖顯示CAM圖片2上每一條線路201上的中心線201a。 The fourth figure shows the centerline 201a on each line 201 on the CAM picture 2.

第五圖顯示一電路影像1(僅顯示部分區域放大圖),其拍攝自依據CAM圖片2所製作的一基板。 The fifth figure shows a circuit image 1 (only a partial area enlarged view is displayed) taken from a substrate made in accordance with CAM picture 2.

第六圖顯示骨架圖片3與電路影像1完成對位的示意圖。 The sixth figure shows a schematic diagram of the alignment of the skeleton picture 3 and the circuit image 1.

第七圖顯示一段放大的線路101,其取自電路影像1。 The seventh figure shows an enlarged line 101 taken from circuit image 1.

第八圖顯示本發明之線路資訊擷取方法的第二較佳實施的流程圖。 Figure 8 is a flow chart showing a second preferred embodiment of the method for capturing information of the line of the present invention.

第九圖顯示根據CAM圖片2所處理得到水平骨架圖片3a。 The ninth figure shows that the horizontal skeleton picture 3a is processed according to the CAM picture 2.

第十圖顯示根據CAM圖片2所處理得到垂直骨架圖片3b。 The tenth figure shows that the vertical skeleton picture 3b is processed according to the CAM picture 2.

第十一圖顯示與CAM圖片2反相的CAM圖片4。 The eleventh figure shows the CAM picture 4 inverted from the CAM picture 2.

第十二圖顯示根據CAM圖片4所處理得到的骨架圖片5。 The twelfth image shows the skeleton picture 5 processed according to the CAM picture 4.

第十三圖顯示根據CAM圖片4所處理得到垂直骨架圖片5a。 The thirteenth image shows that the vertical skeleton picture 5a is obtained according to the CAM picture 4.

第十四圖顯示根據CAM圖片4所處理得到水平骨架圖片5b。 The fourteenth figure shows that the horizontal skeleton picture 5b is processed according to the CAM picture 4.

第一圖(A)顯示本發明之一種線路資訊擷取方法的第一較佳實施例的流程圖,其包括以下a~b步驟: The first figure (A) shows a flow chart of a first preferred embodiment of a method for extracting line information according to the present invention, which includes the following steps a~b:

a)將一電腦輔助設計圖片(以下稱CAM圖片2)處理成一骨架圖片3。 a) A computer-aided design picture (hereinafter referred to as CAM picture 2) is processed into a skeleton picture 3.

b)利用骨架圖片3擷取依據CAM圖片2所製作出來的一基板(例如一印刷電路板)上的每一條線路或指定的線路的線路資訊,例如每一條線路或指定線路的色階或線寬等資訊。在此所稱的線路是泛指形成在該基板上的導體,不以導線形式為限,例如形式為金屬焊墊(pad)、錫球、金屬環、金屬接腳…等導體均屬之。 b) using the skeleton picture 3 to extract line information of each line or designated line on a substrate (for example, a printed circuit board) produced according to the CAM picture 2, for example, the gradation or line of each line or designated line Wide information. The term "circuit" as used herein generally refers to a conductor formed on the substrate, and is not limited to the form of a wire. For example, a conductor such as a metal pad, a solder ball, a metal ring, a metal pin, or the like is included.

於a步驟中所例示的CAM圖片2係如第二圖所示,包含一電路圖案20(圖中白色部份)與非電路圖案21(圖中黑色部份),而根據CAM圖片2所處理得到骨架圖片3則對應如第三圖所示,包含由多條細線301所構成的骨架30(skeleton,圖中所有白色細線部份)。在此可選擇利用形態學(morphology)上的演算法,例如細線化(thinning)或骨架化(skeletonization),將CAM圖片2之電路圖案20中的每一條線路201對應處理成骨架圖片3中的骨架30的每一條細線301,或者也可利用其它用於擷取物件骨架的處理技術來進行前述處理。無論如何,所處理得到的骨架30中的每一條細線301都只有一個像素點的寬度,並且對應代表相對應的每一條線路201。由於每一條細線301實質上是由多個像素點連接構成,在細線化或骨架化的處理過程中,也記錄了骨架30中的每一條細線301中的 每一個像素點(或稱為骨幹點)的座標位置。理想上,如第四圖所示,每一條細線301是對應代表電路圖案20中相對應的每一條線路201的中間線201a,而連接構成每一條細線301的每一個像素點大致上是對應代表相對應的每一條線路201在寬度方向上的中間點。 The CAM picture 2 illustrated in step a is as shown in the second figure, and includes a circuit pattern 20 (white portion in the figure) and a non-circuit pattern 21 (black portion in the figure), and is processed according to CAM picture 2. The skeleton picture 3 is obtained as shown in the third figure, and includes a skeleton 30 (skeleton, all white thin line portions in the figure) composed of a plurality of thin lines 301. Here, each of the lines 201 in the circuit pattern 20 of the CAM picture 2 can be correspondingly processed into the skeleton picture 3 by using an algorithm on the morphology, such as thinning or skeletonization. Each of the thin lines 301 of the skeleton 30, or other processing techniques for picking up the skeleton of the object, may also be used to perform the foregoing processing. In any event, each of the thin lines 301 in the resulting skeleton 30 has a width of only one pixel and corresponds to each of the corresponding lines 201. Since each of the thin lines 301 is substantially composed of a plurality of pixel point connections, in the thinning or skeletonizing process, each of the thin lines 301 in the skeleton 30 is also recorded. The coordinate position of each pixel (or called the backbone point). Ideally, as shown in the fourth figure, each of the thin lines 301 corresponds to the intermediate line 201a of each of the corresponding lines 201 in the representative circuit pattern 20, and each of the pixels which are connected to form each of the thin lines 301 is substantially a corresponding representative. The corresponding line 201 is at an intermediate point in the width direction.

較佳地,如第一圖(B)所示,上述b步驟包括以下次步驟b1~b3: Preferably, as shown in the first figure (B), the above step b includes the following steps b1 to b3:

b1)取得一電路影像1。在此所例示的電路影像1係拍攝自該基板,其如第五圖所示,為一灰階影像(亦可為彩色影像),且包含一電路圖案10(圖中亮區部份)及一非電路圖案11(圖中暗區部份)。電路圖案10中的每一條線路101對應源自該CAM圖片2中的每一條線路201,故骨架圖片3中的每一條細線301也對應代表電路圖案10中相對應的每一條線路101。 B1) Obtain a circuit image 1. The circuit image 1 illustrated here is taken from the substrate, which is a gray scale image (which may also be a color image) as shown in FIG. 5, and includes a circuit pattern 10 (light portion in the figure) and A non-circuit pattern 11 (dark portion of the figure). Each of the lines 101 in the circuit pattern 10 corresponds to each of the lines 201 in the CAM picture 2, so each of the thin lines 301 in the skeleton picture 3 also corresponds to each of the corresponding lines 101 in the representative circuit pattern 10.

b2)對骨架圖片3與電路影像1進行對位,以使骨架圖片3中的骨架30的每一條線301都分別對到電路影像1的電路圖案10中相對應的每一條線路101的內部,較佳是對到線路101在寬度方向的中間位置,一如第六圖所示。完成對位之後,電路影像1中的每一條線路101會分別對正於骨架圖片3中相對應的每一條線301,這表示每一條細線301中的每一個像素點在電路影像1中都有一個像素點與之相對應,且每一條細線301中的每一個像素點的座標位置都可作為電路影像1中與其相對應的像素點的座標位置。 B2) aligning the skeleton picture 3 with the circuit image 1 such that each line 301 of the skeleton 30 in the skeleton picture 3 is respectively directed to the inside of each of the corresponding lines 101 in the circuit pattern 10 of the circuit image 1. Preferably, it is to the intermediate position of the line 101 in the width direction as shown in the sixth figure. After the alignment is completed, each line 101 in the circuit image 1 is respectively aligned with each of the corresponding lines 301 in the skeleton picture 3, which means that each of the pixels in each of the thin lines 301 has a circuit image 1 A pixel point corresponds thereto, and the coordinate position of each pixel point of each of the thin lines 301 can be used as a coordinate position of the pixel point corresponding to the circuit image 1.

b3)根據第六圖中的每一條細線301的像素點的座標位置擷取相對應的每一條線路101在相同座標位置上的線路資訊。例如,在第七圖所示的一小段放大後的線路101中,若骨架圖片3中的細線301的像素點p1、像素點p2的座標位置分別為(100,100)、(100,300),由於先前已完成骨架圖片3與電路影像1的對位,因此,在電路影像1中座標為(100,100)、(100,300)的兩個像素點上的線路資訊就是此步驟中所要擷取的線路資訊。在此步驟中,可擷取每一條線路101對應每一條細線301中的每一個或某幾個像素點所在位置的線寬,例如根據細線101上的像素點p1的座標位置從電路影像1中找出對應像素點p1的像素點(圖中未標號,實際上是位在圖中像素點p1的正下方),再以所找出的像素點為中心點,沿寬度方向(或法線方 向)分別往上及往下找出的兩個邊緣點e1、e2的座標位置,然後根據所找出的兩個邊緣點的座標位置計算出對應該所找出的像素點的線寬w1。第七圖中的線寬w2是根據細線101上的像素點p2的座標位置而擷取得到的,其過程如前,不再贅述。其中關於前述邊緣點的取得方式,可以利用習知邊緣偵測(edge detection)的相關技術來取得,例如梯度運算子搜尋法(常用的梯度運算子例如一階微分運算子中的Sobel、Prewitt與Robert、二階微分運算子中的Laplacian、以及LoG)。 B3) According to the coordinate position of the pixel of each thin line 301 in the sixth figure, the corresponding line information of each line 101 at the same coordinate position is extracted. For example, in a small enlarged line 101 shown in the seventh figure, if the coordinate positions of the pixel point p1 and the pixel point p2 of the thin line 301 in the skeleton picture 3 are (100, 100), (100, 300), respectively, since The alignment of the skeleton picture 3 and the circuit image 1 is completed. Therefore, the line information at two pixel points of coordinates (100, 100) and (100, 300) in the circuit image 1 is the line information to be captured in this step. In this step, the line width of each line 101 corresponding to each of the thin lines 301 or a plurality of pixel points may be captured, for example, according to the coordinate position of the pixel point p1 on the thin line 101 from the circuit image 1. Find the pixel point corresponding to the pixel point p1 (unlabeled in the figure, actually located directly below the pixel point p1 in the figure), and then centered on the found pixel point, along the width direction (or normal side) The coordinate positions of the two edge points e1, e2 are respectively found up and down, and then the line width w1 corresponding to the found pixel point is calculated according to the coordinate positions of the two edge points found. The line width w2 in the seventh figure is obtained based on the coordinate position of the pixel point p2 on the thin line 101, and the process is not described here as before. The manner in which the edge points are obtained can be obtained by using a related technique of edge detection, such as a gradient operator search method (a commonly used gradient operator such as Sobel, Prewitt, and the first-order differential operator). Robert, Laplacian in the second-order differential operator, and LoG).

在上述b3步驟中也可擷取每一條線路101對應每一條細線301中的每一個或某幾個像素點所在位置在寬度方向(即法線方向)上所有像素的色階,例如根據細線301上的像素p1的座標位置從電路影像1中找出對應像素點p1的像素點,再以所找出的該像素點為中心點沿垂直方向分別向上及向下擷取線路101內部的每一個像素點的色階,也就是說,在線路101中與所找出的該像素點沿垂直方向排在同一排的所有像素點的色階都會被擷取出來。 In the above step b3, the color gradation of all the pixels in the width direction (ie, the normal direction) of each line or each of the plurality of pixel points corresponding to each of the thin lines 301 may be extracted, for example, according to the thin line 301. The coordinate position of the pixel p1 is found from the circuit image 1 to find the pixel point corresponding to the pixel point p1, and then each of the internal lines 101 is drawn up and down in the vertical direction with the found pixel point as the center point. The gradation of the pixel, that is, the gradation of all the pixels in the line 101 that are in the same row in the vertical direction as the found pixel is extracted.

在b2步驟中,關於骨架圖片3與該電路影像1的對位,可先選擇利用現有的影像對位方法(或稱影像對準方法),例如Template matching或image registration等方法,將電路影像1調整到使其正對於CAM圖片2,此時電路影像1上的線路101相當於是重疊在CAM圖片2的線路201上,藉以拉近骨架圖片3上的細線301與電路影像1上相對應的線路101之間的位置差距,如此,在骨架圖片3與該電路影像1進行對位時,僅需進行微調位置之校正程序,此一校正程序可用電路影像1上的像素點的亮暗比較予以達成。例如,若骨架30中大致沿水平方向延伸的細線301沒有對到相對應的線路101內部,就需要再進行一水平部校正程序,此程序包括先從電路影像1中找到最靠近其中一條沿水平方向延伸的細線301的亮區(因為線路101所佔據的區域比其它非線路區域亮),然後,往該亮區之方向垂直移動骨架圖片3,以使該其中一細線301對到該亮區的中間位置,如此,就完成骨架圖片3在水平方向上的位置校正,使得大致沿水平方向延伸的細線301都對到相對應的線路101內部中間位置。 In step b2, regarding the alignment of the skeleton picture 3 and the circuit image 1, the existing image alignment method (or image alignment method), such as Template matching or image registration, may be selected first, and the circuit image 1 is selected. Adjusted so that it is facing CAM picture 2, at this time, the line 101 on the circuit image 1 is equivalent to being superimposed on the line 201 of the CAM picture 2, thereby narrowing the line corresponding to the circuit image 1 on the thin line 301 on the skeleton picture 3. The position difference between the 101, so, when the skeleton picture 3 is aligned with the circuit image 1, only the calibration procedure of the fine adjustment position is needed, and the calibration procedure can be achieved by comparing the brightness and darkness of the pixel points on the circuit image 1. . For example, if the thin line 301 extending substantially in the horizontal direction of the skeleton 30 is not aligned to the corresponding line 101, a horizontal portion correction procedure is required. This procedure includes first finding the closest one from the circuit image 1 along the horizontal level. The bright area of the thin line 301 extending in direction (because the area occupied by the line 101 is brighter than the other non-line areas), then moving the skeleton picture 3 vertically in the direction of the bright area, so that one of the thin lines 301 is aligned to the bright area In the intermediate position, the positional correction of the skeleton picture 3 in the horizontal direction is completed such that the thin lines 301 extending substantially in the horizontal direction are aligned to the inner position of the corresponding line 101.

在b2步驟中,若骨架30中大致沿垂直方向延伸的細線301沒有對到相對應的線路101內部,則需要再進行一垂直部校正程序,此程 序包括先找到最靠近其中一條沿垂直方向延伸的細線301的亮區,然後,往該亮區之方向水平移動骨架圖片3,以使該其中一細線301對到該亮區的中間位置,如此,就完成骨架圖片3在垂直方向上的位置校正,使得大致沿垂直方向延伸的細線301都位於相對應的線路101內部中間位置。 In the step b2, if the thin line 301 extending substantially in the vertical direction in the skeleton 30 is not aligned to the corresponding line 101, a vertical portion correction procedure is required. The sequence includes first finding a bright area closest to one of the thin lines 301 extending in the vertical direction, and then moving the skeleton picture 3 horizontally in the direction of the bright area such that one of the thin lines 301 is aligned to the middle of the bright area, The positional correction of the skeleton picture 3 in the vertical direction is completed such that the thin lines 301 extending substantially in the vertical direction are located at intermediate positions inside the corresponding line 101.

在上述例子中,所處理得到的骨架圖片3中的骨架30實質上是CAM圖片2的電路圖案20的完整骨架,為了簡化骨架處理過程及提高所處理得到之骨架的品質,也可以選擇執行本發明之以下步驟a’~c’來取代上述的a~b步驟。更詳而言之,第八圖顯示本發明之線路資訊擷取方法的第二較佳實施例的流程圖,其包括以下a’~c’步驟:a’)將CAM圖片2分別沿水平方向與垂直方向對應處理成一水平骨架圖片3a與一垂直骨架圖片3b。如第九圖所示,水平骨架圖片3a中的骨架30a是由多條大致沿水平方延伸的細線301a所構成,如第十圖所示,垂直骨架圖片3b中的骨架30b是由多條大致沿水平方延伸的細線301b所構成。 In the above example, the skeleton 30 in the processed skeleton picture 3 is substantially the complete skeleton of the circuit pattern 20 of the CAM picture 2. In order to simplify the skeleton processing process and improve the quality of the processed skeleton, the present invention may also be selected. The following steps a'~c' of the invention replace the a~b steps described above. More specifically, the eighth figure shows a flow chart of a second preferred embodiment of the line information capturing method of the present invention, which includes the following steps a'~c': a') CAM picture 2 is horizontally Corresponding to the vertical direction is processed into a horizontal skeleton picture 3a and a vertical skeleton picture 3b. As shown in the ninth figure, the skeleton 30a in the horizontal skeleton picture 3a is composed of a plurality of thin lines 301a extending substantially horizontally. As shown in the tenth figure, the skeleton 30b in the vertical skeleton picture 3b is composed of a plurality of outlines. It is composed of a thin line 301b extending horizontally.

b’)利用水平骨架圖片3a擷取依據CAM圖片2所製作出來的一基板(例如一印刷電路板)上的每一條水平方向線路或指定的水平方向線路的線路資訊,例如每一條水平線路或指定的水平線路的色階或線寬等資訊;及c’)利用垂直骨架圖片3b擷取該基板上的每一條垂直方向線路或指定的垂直方向線路的線路資訊,例如每一條垂直線路或指定的垂直線路的色階或線寬等資訊。 b') using the horizontal skeleton picture 3a to extract line information of each horizontal line or a specified horizontal line on a substrate (for example, a printed circuit board) produced according to the CAM picture 2, for example, each horizontal line or Information such as the gradation or line width of the specified horizontal line; and c') using the vertical skeleton picture 3b to extract line information of each vertical line or the specified vertical line on the substrate, such as each vertical line or designation Information such as the color gradation or line width of the vertical line.

上述的b’及c’步驟沒有特定的執行順序,且b’及c’步驟都可以利用上述b1~b3所示的次步驟來完成擷取線路資訊之目的,簡言之,只要將b1~b3中的骨架圖片3改為水平骨架圖片3a或垂直骨架圖片3b,就可以藉由執行b1~b3步驟(包括上述的水平部校正程序與垂直部校正程序)來達成前述目的。 The above b' and c' steps have no specific execution order, and the b' and c' steps can use the sub-steps shown in the above b1~b3 to complete the purpose of extracting the line information. In short, as long as b1~ The skeleton picture 3 in b3 is changed to the horizontal skeleton picture 3a or the vertical skeleton picture 3b, and the above object can be achieved by performing the steps b1 to b3 (including the above-described horizontal portion correction program and vertical portion correction program).

從上述說明可知,利用本發明之線路資訊擷取方法可以擷取到依據CAM圖片2所製作的基板上的線路資訊,這些線路資訊可以運用於線路缺陷的檢測。例如,為了檢測依據CAM圖片2所製作的一待測基板上的每一條線路的線寬是否符合標準,首先應利用上述線路資訊擷取方法 從依據CAM圖片2所製作出來的一標準基板上擷取線路資訊。由於該標準基板上的每一條線路都被確認過是符合一標準線寬的標準線路,因此,利用上述線路資訊擷取方法而從拍攝自該標準基板的電路影像1中擷取到其中的每一條線路101的每一個像素點或多像素點所在位置的線寬(此時是將第五圖所示的基板當作該標準基板),接著,從每一條線路101擷取到的線寬可以進行平均運算,藉以得到每一線路的平均線寬分別當作每一條線路101自己的標準線寬。或者,也可以對所擷取到的每一條線路101的線寬進行統計分析,藉以建立相對應的一組最小線寬門檻值與最大線寬門檻值,並將每一組前述門檻值分別當作各條線路自己的線路缺陷判斷標準。接著,利用上述線路資訊擷取方法從拍攝自該待測基板的電路影像1中擷取其中的每一條線路101的每一個像素點或多像素點所在位置的線寬(此時是將第五圖所示的基板當作該待測基板),然後,比對並判斷所擷取到的線寬是否大於上述相對應的最大線寬門檻值,若判斷結果為「是」,表示所擷取到的線寬所對應的位置點上出現線路突出的缺陷,若判斷結果為「否」,則繼續比對並判斷所擷取到的線寬是否小於上述相對應的最小線寬門檻值,若判斷結果為「是」,表示所擷取到的線寬所對應的位置點上出現線路凹陷的缺陷,而若判斷結果為「否」,則表示所擷取到的線寬是符合標準的。 It can be seen from the above description that the line information acquisition method according to the present invention can capture the line information on the substrate prepared according to the CAM picture 2, and the line information can be applied to the detection of line defects. For example, in order to detect whether the line width of each line on a substrate to be tested prepared according to the CAM picture 2 conforms to the standard, the above-mentioned line information extraction method should be used first. The line information is taken from a standard substrate fabricated according to CAM picture 2. Since each line on the standard substrate is confirmed to be a standard line conforming to a standard line width, each of the circuit images 1 taken from the standard substrate is extracted by the above-described line information acquisition method. The line width of each pixel or multi-pixel point of one line 101 (in this case, the substrate shown in FIG. 5 is regarded as the standard substrate), and then the line width drawn from each line 101 can be The averaging operation is performed to obtain the average line width of each line as the standard line width of each line 101 itself. Alternatively, a statistical analysis may be performed on the line width of each of the extracted lines 101, thereby establishing a corresponding set of minimum line width thresholds and maximum line width thresholds, and each set of the aforementioned threshold values is respectively Make judgments on the line defects of each line. Then, using the above-mentioned line information capturing method, the line width of each pixel point or the position of the multi-pixel point of each of the lines 101 is captured from the circuit image 1 taken from the substrate to be tested (this is the fifth The substrate shown in the figure is used as the substrate to be tested, and then it is compared and judged whether the captured line width is greater than the corresponding maximum line width threshold. If the judgment result is "Yes", it means that the image is captured. If the result of the determination is "No", the comparison is continued and it is determined whether the captured line width is smaller than the corresponding minimum line width threshold value, if If the result of the determination is "Yes", it indicates that the line defect is present at the position corresponding to the line width captured, and if the result of the determination is "No", it means that the line width captured is in accordance with the standard.

此外,也可以利用本發明上述線路資訊擷取方法檢測依據CAM圖片2所製作的一待測基板上是否存在斷路缺陷,具體而言,首先利用線路資訊擷取方法而從拍攝自該待測基板的電路影像1擷取到其中的每一條線路101的每一個像素點(或多個像素點)所在位置在寬度方向上所有線路內部像素點的色階並取其平均值,藉以得到每一條線路101的每一個像素點(或多個像素點)所在位置上的平均色階;對所取得的色階進行統計分析,藉以為相對應的每一條線路101分別建立一最小色階門檻值;接著,比對並判斷所擷取每一個像素點所在位置上的平均色階是否小於相對應的最小色階門檻值;若判斷結果為「是」,即表示目前進行比對的像素點所在位置上存在線路斷開之缺陷;而若判斷結果為「否」即表示目前進行比對的像素點所在位置沒有出現線路斷開之缺陷。 In addition, the line information capturing method of the present invention may also be used to detect whether there is a disconnection defect on a substrate to be tested formed according to the CAM picture 2, specifically, firstly, the line information is captured from the substrate to be tested. The circuit image 1 captures the color gradation of each pixel point of each line in the width direction of each pixel point (or a plurality of pixel points) of each line 101, and takes an average value thereof to obtain each line. An average color gradation at a position of each pixel (or a plurality of pixel points) of 101; statistically analyzing the obtained color gradation, thereby establishing a minimum color gradation threshold for each corresponding line 101; Aligning and judging whether the average color gradation at the position where each pixel is captured is smaller than the corresponding minimum color gradation threshold; if the judgment result is "Yes", it indicates that the pixel point currently being aligned is located. There is a defect that the line is broken; and if the result of the determination is "NO", it means that there is no defect that the line is disconnected at the position where the pixel is currently aligned.

在上述例子中的骨架圖片3是為了擷取電路影像1中的電路圖案10的線路101上的線路資訊而製作的,如果要想要擷取的資訊是位 在非電路圖案11中的資訊,例如為了檢測電路影像1中是否存在短路缺陷,就必需檢查非線路區中是否出現橋接現象,此時,就有需要去擷取非電路圖案11中的資訊。本發明上述線路資訊擷取方法,僅需略作修改,就可變成一種非線路區資訊擷取方法,用以擷取非電路圖案11中的資訊,更詳而言之,只需將上述CAM圖片2改為第十一圖所示的CAM圖片4即可。CAM圖片4是CAM圖片2的反相結果,即將CAM圖片2中的白色區域反相變成CAM圖片4中的黑色區域,CAM圖片2中的黑色區域反相變成CAM圖片4中的白色區域。接著,如同上述a步驟針對CAM圖片4中的每一道非線路區40(即每一道白色區域之部份)進行細線化或骨架化,藉以得到如第十二圖所示的一骨架圖片5,此骨架圖片5中的骨架50同樣是由多條細線501所構成,且每一條細線501也都只有一個像素的寬度。然後,如同上述b步驟,利用骨架圖片5擷取依據CAM圖片2所製作出來的上述基板上的每一道非線路區的資訊,其細部過程可參見上述b1~b3步驟,僅需將上述骨架圖片3替換為骨架圖片5即可,且於進行對位時是讓骨架50的每一條細線501分別對到電路影像1中相對應的每一道非線路區的內部,容不贅述。 The skeleton picture 3 in the above example is created for capturing the line information on the line 101 of the circuit pattern 10 in the circuit image 1, if the information to be captured is bit In the information in the non-circuit pattern 11, for example, in order to detect whether there is a short-circuit defect in the circuit image 1, it is necessary to check whether or not a bridge phenomenon occurs in the non-line area. At this time, it is necessary to extract the information in the non-circuit pattern 11. The above-mentioned line information acquisition method of the present invention can be changed into a non-line area information acquisition method for extracting information in the non-circuit pattern 11 by using a slight modification, and more specifically, only the above CAM is needed. Picture 2 can be changed to CAM picture 4 shown in Fig. 11. The CAM picture 4 is an inverted result of the CAM picture 2, that is, the white area in the CAM picture 2 is inverted into the black area in the CAM picture 4, and the black area in the CAM picture 2 is inverted to become the white area in the CAM picture 4. Then, as in the above step a, thinning or skeletonizing each non-line area 40 (that is, a part of each white area) in the CAM picture 4 is obtained, thereby obtaining a skeleton picture 5 as shown in the twelfth figure. The skeleton 50 in the skeleton picture 5 is also composed of a plurality of thin lines 501, and each of the thin lines 501 has a width of only one pixel. Then, as in step b above, the information of each non-line area on the substrate prepared according to the CAM picture 2 is extracted by using the skeleton picture 5, and the detailed process can be referred to the steps b1 to b3 above, and only the skeleton picture is needed. 3 is replaced with the skeleton picture 5, and when the alignment is performed, each thin line 501 of the skeleton 50 is respectively directed to the inside of each non-line area corresponding to the circuit image 1, and is not described herein.

在一例子中,可援用上述a’至c’步驟,將CAM圖片5分別沿水平方向與垂直方向對應處理成如第十三圖所示的一垂直骨架圖片5a與第十四圖所示的一水平骨架圖片5b,接著,利用垂直骨架圖片5a擷取依據CAM圖片2所製作出來的該基板上的每一道垂直方向的非線路區40或指定的垂直方向的非線路區40中的資訊,以及利用水平骨架圖片5b擷取依據CAM圖片2所製作出來的該基板上的每一道水平方向的非線路區40或指定的水平方向的非線路區40中的資訊。 In an example, the above steps a' to c' can be used to process the CAM picture 5 in the horizontal direction and the vertical direction, respectively, into a vertical skeleton picture 5a and a fourteenth picture as shown in the thirteenth figure. a horizontal skeleton picture 5b, and then, using the vertical skeleton picture 5a, the information in each of the vertical non-line areas 40 or the specified vertical non-line areas 40 on the substrate produced according to the CAM picture 2 is extracted, And using the horizontal skeleton picture 5b to extract information in each of the horizontal non-line areas 40 or the specified horizontal non-line areas 40 on the substrate produced according to the CAM picture 2.

從上述說明可知,利用本發明上述非線路區資訊擷取方法可以擷取到依據CAM圖片2所製作的基板上的非線路區中的資訊,這些資訊可以運用於線路缺陷的檢測,例如上述的短路缺陷檢側,其檢測過程與上述斷路缺陷之檢測大致相同,不同之處在於,在短路缺陷檢側過程中是利用上述非線路區資訊擷取方法而從拍攝自該待測基板的電路影像1擷取到其中的每一道非線路區的每一個像素點(或多個像素點)所在位置在寬度方向上所有像素點的色階並取其平均值,藉以得到每一道非線路區的每一個像素點(或多個像素點)所在位置上的平均色階,此外,也對所取得 的色階進行統計分析,藉以為相對應的每一道非線路區分別建立一最小色階門檻值,而在進行平均色階與最小色階門檻值的比對及判斷程序時,若判斷結果為「否」,即表示目前進行比對的像素點所在位置上存在短路之缺陷;而若判斷結果為「是」即表示目前進行比對的像素點所在位置沒有出現短路之缺陷。 It can be seen from the above description that the information in the non-line area on the substrate prepared according to the CAM picture 2 can be obtained by using the non-line area information acquisition method of the present invention, and the information can be applied to the detection of line defects, such as the above. The detection process of the short-circuit defect detection side is substantially the same as the detection of the above-mentioned open circuit defect, and the difference is that in the process of detecting the short-circuit defect, the circuit image captured from the substrate to be tested is taken by using the non-line area information acquisition method. 1 extracting the color gradation of all the pixels in the width direction of each pixel (or pixels) of each non-line region of each non-line region and taking an average value thereof, thereby obtaining each non-line region The average color gradation at the location of a pixel (or multiple pixels), in addition, The color gradation is statistically analyzed, so that a minimum gradation threshold value is established for each corresponding non-line area, and when the comparison between the average gradation level and the minimum gradation threshold value and the judgment procedure is performed, if the judgment result is "No" means that there is a short circuit defect at the position of the pixel currently being compared; and if the result of the determination is "Yes", it means that there is no short circuit defect at the position of the currently aligned pixel.

從上述說明可知,本發明首創利用一骨架擷取一電路影像上的線路資訊或非線路區資訊,並使用所擷取到的資訊進行線路缺陷檢測。 As can be seen from the above description, the present invention first utilizes a skeleton to capture line information or non-line area information on a circuit image, and uses the captured information to perform line defect detection.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.

Claims (14)

一種線路資訊擷取方法,包括:將一電腦輔助設計圖片處理成一骨架圖片,該骨架圖片上具有由多條細線所構成的一骨架,每一條細線係為該電腦輔助設計圖片上相對應的每一條線路的細線化結果;取得一電路影像,該電路影像係拍攝自依據該電腦輔助設計圖片所製作的一基板,該電路影像上具有多條線路,每一條線路係依據該電腦輔助設計圖片上相對應的線路而製作的;對該骨架圖片與該電路影像進行對位,以使該骨架圖片中的該骨架的每一條細線都分別對到該電路影像中相對應的每一條線路的內部;及根據該骨架的每一條細線的像素點的座標位置擷取該電路影像上相對應的每一條線路在相同座標位置上的線路資訊。 A method for extracting line information comprises: processing a computer-aided design picture into a skeleton picture, the skeleton picture having a skeleton composed of a plurality of thin lines, each thin line being corresponding to each of the computer-aided design pictures a thinning result of a line; obtaining a circuit image, the circuit image is taken from a substrate made according to the computer aided design picture, the circuit image has a plurality of lines, each line is based on the computer aided design picture Corresponding to the corresponding line; aligning the skeleton picture with the circuit image, so that each thin line of the skeleton in the skeleton picture is respectively corresponding to the inside of each corresponding line in the circuit image; And extracting line information of each line corresponding to each line of the circuit image at the same coordinate position according to a coordinate position of a pixel point of each thin line of the skeleton. 如申請專利範圍第1項所述的線路資訊擷取方法,其中該骨架圖片係為將該電腦輔助設計圖片沿水平方向處理得到的一水平骨架圖片,該水平骨架圖片上具有由多條沿水平方向延伸的細線所構成的一水平骨架。 The method for extracting line information according to claim 1, wherein the skeleton picture is a horizontal skeleton picture obtained by processing the computer auxiliary design picture in a horizontal direction, and the horizontal skeleton picture has multiple horizontal levels. A horizontal skeleton formed by thin lines extending in the direction. 如申請專利範圍第1項所述的線路資訊擷取方法,其中該骨架圖片係為將該電腦輔助設計圖片沿垂直方向處理得到的一垂直骨架圖片,該垂直骨架圖片上具有由多條沿垂直方向延伸的細線所構成的一垂直骨架。 The method for extracting line information according to claim 1, wherein the skeleton picture is a vertical skeleton picture obtained by processing the computer auxiliary design picture in a vertical direction, and the vertical skeleton picture has a plurality of vertical lines A vertical skeleton formed by thin lines extending in the direction. 如申請專利範圍第1或2項所述的線路資訊擷取方法,其中該電路影像中的每一條線路係為一亮區,該骨架圖片與該電路影像進行對位之步驟包括進行一水平部校正程序,該水平部校正程序包括:從該電路影像中找到最靠近其中一條沿水平方向延伸之細線的該亮區;及往該亮區之方向垂直移動該骨架圖片,以使該其中一細線對到該亮區的中間位置。 The method for extracting line information according to claim 1 or 2, wherein each circuit in the circuit image is a bright area, and the step of aligning the skeleton picture with the circuit image comprises performing a horizontal part. a calibration program, the horizontal portion correction program includes: finding the bright region closest to one of the thin lines extending in the horizontal direction from the circuit image; and vertically moving the skeleton image toward the bright region to make the thin line The middle position to the bright area. 如申請專利範圍第1或3項所述的線路資訊擷取方法,其中該電路影像中的每一條線路係為一亮區,該骨架圖片與該電路影像上進行對位之步驟包括進行一垂直部校正程序,該垂直部校正程序包括:從該電路影像中找到最靠近其中一條沿垂直方向延伸之細線的該亮區;及往該亮區之方向水平移動該骨架圖片,以使該其中一細線對到該亮區的中間位置。 The method for extracting line information according to claim 1 or 3, wherein each circuit of the circuit image is a bright area, and the step of aligning the skeleton picture with the circuit image comprises performing a vertical a portion correcting program, the vertical portion correcting program includes: finding the bright region closest to one of the thin lines extending in the vertical direction from the circuit image; and horizontally moving the skeleton image in the direction of the bright region to make the one of the The thin line is in the middle of the bright area. 一種線路缺陷檢測方法,包括:拍攝一待測基板,以取得一電路影像;對所取得的該待測基板的該電路影像執行如申請專利範圍1~5任一項所述的線路資訊擷取方法,藉以取得該待測基板的該電路影像上的每一條線路的線路資訊;及根據所取得的線路資訊,分析判斷該待測基板的該電路影像上的每一條線路上是否存在缺陷。 A method for detecting a line defect includes: capturing a substrate to be tested to obtain a circuit image; and performing the circuit information acquisition as described in any one of claims 1 to 5 on the obtained circuit image of the substrate to be tested. The method is used to obtain line information of each line on the circuit image of the substrate to be tested; and, according to the obtained line information, analyze and determine whether there is a defect on each line on the circuit image of the substrate to be tested. 如申請專利範圍第6項所述的線路缺陷檢測方法,包括使用所取得的線路資訊來預先建立進行該分析判斷時所需要用到的門檻值。 The method for detecting a line defect as described in claim 6 includes the use of the obtained line information to pre-establish a threshold value required for performing the analysis and determination. 一種非線路區資訊擷取方法,包括:將一電腦輔助設計圖片處理成一骨架圖片,該骨架圖片上具有由多條細線所構成的一骨架,每一條細線係為該電腦輔助設計圖片上相對應的每一道非線路區的細線化結果;取得一電路影像,該電路影像係拍攝自依據該電腦輔助設計圖片所製作的一基板,該電路影像上具有多條線路及多道非線路區,每一條線路與非線路區係依據該電腦輔助設計圖片上相對應的線路與非線路區而製作的;對該骨架圖片與該電路影像進行對位,以使該骨架圖片中的該骨架的每一條細線都分別對到該電路影像中相對應的每一道非線路區的內部;及根據該骨架的每一條細線的像素點的座標位置擷取該電路影像上相對應的每一道非線路區在相同座標位置上的資訊。 A non-line area information acquisition method includes: processing a computer-aided design picture into a skeleton picture, the skeleton picture having a skeleton composed of a plurality of thin lines, each thin line corresponding to the computer-aided design picture a thinning result of each non-line area; obtaining a circuit image, the circuit image is taken from a substrate made according to the computer aided design picture, the circuit image has a plurality of lines and a plurality of non-line areas, each A line and non-line area are made according to the corresponding line and non-line area on the computer-aided design picture; the skeleton picture is aligned with the circuit image so that each of the skeletons in the skeleton picture The thin lines are respectively corresponding to the interior of each non-line area corresponding to the circuit image; and each of the non-line areas corresponding to the circuit image is the same according to the coordinate position of the pixel of each thin line of the skeleton Information on the coordinates of the coordinates. 如申請專利範圍第8項所述的非線路區資訊擷取方法,其中該骨架圖片係為將該電腦輔助設計圖片沿水平方向處理得到的一水平骨架圖片,該水平骨架圖片上具有由多條沿水平方向延伸的細線所構成的一水平骨架。 The non-line area information acquisition method according to claim 8, wherein the skeleton picture is a horizontal skeleton picture obtained by processing the computer auxiliary design picture in a horizontal direction, and the horizontal skeleton picture has a plurality of A horizontal skeleton formed by thin lines extending in the horizontal direction. 如申請專利範圍第8項所述的非線路區資訊擷取方法,其中該骨架圖片係為將該電腦輔助設計圖片沿垂直方向處理 得到的一垂直骨架圖片,該垂直骨架圖片上具有由多條沿垂直方向延伸的細線所構成的一垂直骨架。 The method for extracting non-line area information according to item 8 of the patent application scope, wherein the skeleton picture is to process the computer auxiliary design picture in a vertical direction A vertical skeleton picture is obtained, the vertical skeleton picture having a vertical skeleton formed by a plurality of thin lines extending in the vertical direction. 如申請專利範圍第8或9項所述的非線路區資訊擷取方法,其中該電路影像中的每一道非線路區係為一亮區,該骨架圖片與該電路影像進行對位之步驟包括進行一水平部校正程序,該水平部校正程序包括:從該電路影像中找到最靠近其中一條沿水平方向延伸之細線的該亮區;及往該亮區之方向垂直移動該骨架圖片,以使該其中一細線對到該亮區的中間位置。 The method for extracting non-line area information according to claim 8 or 9, wherein each non-line area in the circuit image is a bright area, and the step of aligning the skeleton picture with the circuit image includes Performing a horizontal portion correction program, the horizontal portion correcting program includes: finding the bright region closest to one of the thin lines extending in the horizontal direction from the circuit image; and vertically moving the skeleton image in the direction of the bright region, so that One of the thin lines is in the middle of the bright area. 如申請專利範圍第8或10項所述的非線路區資訊擷取方法,其中該電路影像中的每一道非線路區係為一亮區,該骨架圖片與該電路影像上進行對位之步驟包括進行一垂直部校正程序,該垂直部校正程序包括:從該電路影像中找到最靠近其中一條沿垂直方向延伸之細線的該亮區;及往該亮區之方向水平移動該骨架圖片,以使該其中一細線對到該亮區的中間位置。 The method for extracting non-line area information according to claim 8 or 10, wherein each non-line area in the circuit image is a bright area, and the step of aligning the skeleton picture with the circuit image Including performing a vertical portion correction program, the vertical portion correction program includes: finding the bright region closest to one of the thin lines extending in the vertical direction from the circuit image; and horizontally moving the skeleton image in the direction of the bright region, One of the thin lines is aligned to the middle of the bright area. 一種線路缺陷檢測方法,包括:拍攝一待測基板,以取得一電路影像;對所取得的該待測基板的該電路影像執行如申請專利範圍8~11任一項所述的非線路區資訊擷取方法,藉以取得該待測基板的該電路影像上的每一道非線路區中的資訊;及 根據所取得的資訊,分析判斷該待測基板的該電路影像上是否存在缺陷。 A method for detecting a line defect includes: capturing a substrate to be tested to obtain a circuit image; and performing non-line area information according to any one of claims 8 to 11 on the obtained circuit image of the substrate to be tested. a method for obtaining information in each non-line area on the circuit image of the substrate to be tested; and Based on the obtained information, the analysis determines whether there is a defect on the circuit image of the substrate to be tested. 如申請專利範圍第13項所述的線路缺陷檢測方法,包括使用所取得的非線區資訊來預先建立進行該分析判斷時所需要用到的門檻值。 The method for detecting a line defect according to claim 13 of the patent application, comprising using the obtained non-line area information to pre-establish a threshold value required for performing the analysis and determination.
TW103117225A 2014-05-15 2014-05-15 A method of taking circuit information, a method of taking non-circuit area information and a method of detecting a circuit defect utilizing the aforementioned method TWI519802B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW103117225A TWI519802B (en) 2014-05-15 2014-05-15 A method of taking circuit information, a method of taking non-circuit area information and a method of detecting a circuit defect utilizing the aforementioned method
CN201410265588.3A CN105092604B (en) 2014-05-15 2014-06-13 Line information and non-line area information acquisition method and line defect detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103117225A TWI519802B (en) 2014-05-15 2014-05-15 A method of taking circuit information, a method of taking non-circuit area information and a method of detecting a circuit defect utilizing the aforementioned method

Publications (2)

Publication Number Publication Date
TW201543053A TW201543053A (en) 2015-11-16
TWI519802B true TWI519802B (en) 2016-02-01

Family

ID=54573519

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103117225A TWI519802B (en) 2014-05-15 2014-05-15 A method of taking circuit information, a method of taking non-circuit area information and a method of detecting a circuit defect utilizing the aforementioned method

Country Status (2)

Country Link
CN (1) CN105092604B (en)
TW (1) TWI519802B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112763511B (en) * 2020-12-24 2022-07-29 深圳市华星光电半导体显示技术有限公司 Method for detecting line defect of display panel
CN114152615A (en) * 2021-10-12 2022-03-08 宏华胜精密电子(烟台)有限公司 Detection method, device and equipment of circuit board detection equipment and storage medium
CN116091503B (en) * 2023-04-10 2023-06-13 成都数之联科技股份有限公司 Method, device, equipment and medium for discriminating panel foreign matter defects

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5495535A (en) * 1992-01-31 1996-02-27 Orbotech Ltd Method of inspecting articles
JP3944024B2 (en) * 2002-08-20 2007-07-11 株式会社東芝 Image processing method, semiconductor device manufacturing method, pattern inspection apparatus, and program
CN1869667B (en) * 2006-06-08 2010-07-28 浙江欧威科技有限公司 Profile analyzing method for investigating defect of printed circuit board
CN101216522A (en) * 2008-01-16 2008-07-09 中国电子科技集团公司第四十五研究所 FPGA based printed circuit board rapid image feature value extraction detection method
US8269836B2 (en) * 2008-07-24 2012-09-18 Seiko Epson Corporation Image capture, alignment, and registration
CN102721695B (en) * 2012-05-18 2015-01-07 深圳大学 Method for detecting printed circuit board defect

Also Published As

Publication number Publication date
CN105092604B (en) 2017-11-21
TW201543053A (en) 2015-11-16
CN105092604A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
JP5821708B2 (en) Defect inspection apparatus and defect inspection method
WO2016039041A1 (en) Overlay measurement method, device and display device
CN106501272B (en) Machine vision soldering tin positioning detection system
CN109472271B (en) Printed circuit board image contour extraction method and device
JP5861462B2 (en) Inspection standard registration method for solder inspection and board inspection apparatus using the method
JP5795046B2 (en) Solder joint inspection method
WO2017071406A1 (en) Method and system for detecting pin of gold needle element
JP5364528B2 (en) Pattern matching method, pattern matching program, electronic computer, electronic device inspection device
TWI519802B (en) A method of taking circuit information, a method of taking non-circuit area information and a method of detecting a circuit defect utilizing the aforementioned method
JP6211798B2 (en) Foreign matter inspection method and foreign matter inspection apparatus on substrate
JP2012112669A (en) Method and device for inspecting foreign matter on substrate
CN116168218A (en) Circuit board fault diagnosis method based on image recognition technology
CN105136818B (en) The image detection method of printed base plate
JP2009036582A (en) Inspection method, inspection device and inspection program of plane display panel
CN114529500A (en) Defect inspection method for display substrate
KR20140073259A (en) Apparatus and Method for Detection MURA in Display Device
TWI496111B (en) Bent pin inspection method
JP5960433B2 (en) Image processing apparatus and image processing method
JP2017142219A (en) Image inspection device, image inspection program, recording medium readable by computer and recording apparatus
JP4453503B2 (en) Substrate inspection device, substrate inspection method, inspection logic generation device and inspection logic generation method for substrate inspection device
JP5239275B2 (en) Defect detection method and defect detection apparatus
CN113933309A (en) Method for retesting defects in blind hole by AOI machine
JP4507785B2 (en) Substrate inspection device, parameter setting method and parameter setting device
JP5307617B2 (en) Board mounting state inspection method and board mounting state inspection apparatus
CN103904002A (en) Method for verifying sensitivity of defect detection program