TW202400993A - Pcb defect detection method, metrological measurement method and manufacture method for circuit board - Google Patents

Pcb defect detection method, metrological measurement method and manufacture method for circuit board Download PDF

Info

Publication number
TW202400993A
TW202400993A TW112109856A TW112109856A TW202400993A TW 202400993 A TW202400993 A TW 202400993A TW 112109856 A TW112109856 A TW 112109856A TW 112109856 A TW112109856 A TW 112109856A TW 202400993 A TW202400993 A TW 202400993A
Authority
TW
Taiwan
Prior art keywords
pcb
target object
circuit board
size
image
Prior art date
Application number
TW112109856A
Other languages
Chinese (zh)
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 大陸商蘇州康代智能科技股份有限公司
Publication of TW202400993A publication Critical patent/TW202400993A/en

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05KPRINTED CIRCUITS; CASINGS OR CONSTRUCTIONAL DETAILS OF ELECTRIC APPARATUS; MANUFACTURE OF ASSEMBLAGES OF ELECTRICAL COMPONENTS
    • H05K3/00Apparatus or processes for manufacturing printed circuits
    • H05K3/0005Apparatus or processes for manufacturing printed circuits for designing circuits by computer
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • 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
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C3/00Registering or indicating the condition or the working of machines or other apparatus, other than vehicles
    • G07C3/14Quality control systems
    • G07C3/143Finished product quality control
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05KPRINTED CIRCUITS; CASINGS OR CONSTRUCTIONAL DETAILS OF ELECTRIC APPARATUS; MANUFACTURE OF ASSEMBLAGES OF ELECTRICAL COMPONENTS
    • H05K3/00Apparatus or processes for manufacturing printed circuits
    • H05K3/22Secondary treatment of printed circuits
    • H05K3/225Correcting or repairing of printed circuits
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8887Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges based on image processing techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/32Indexing scheme for image data processing or generation, in general involving image mosaicing
    • 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]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Manufacturing & Machinery (AREA)
  • Biochemistry (AREA)
  • Analytical Chemistry (AREA)
  • Chemical & Material Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Automation & Control Theory (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Signal Processing (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Analysis (AREA)

Abstract

The present disclosure provides a PCB defect detection method, a metrological measurement method and a manufacture method for circuit board. The detection method comprises: inputting a PCB design document of a circuit board to be detected into an AOI device, wherein the PCB design document comprises designed dimension information of each object on the circuit board; scanning the circuit board to obtain a scanned image by the AOI device, and obtaining a pixel unit dimension currently set by the AOI device; in response to a trigger signal of a detection request for at least one target object, determining a number of pixels occupied by the target object in the direction of requesting measurement in the scanned image; according to the pixel unit dimension currently set by the AOI device and the number of pixels occupied by the target object, calculating a dimension of the target object in the direction of requesting measurement; comparing the dimension of the target object in the direction of requesting measurement with the dimension information of the target object in the design document; if a dimension difference thereof exceeds a preset difference threshold, it is determined that the target object of the circuit board is defective.

Description

PCB缺陷檢測方法、電路板計量測量方法及製作方法PCB defect detection method, circuit board measurement method and production method

本發明涉及PCB檢測領域,尤其涉及一種PCB缺陷檢測方法、電路板計量測量方法及製作方法。The invention relates to the field of PCB detection, and in particular to a PCB defect detection method, a circuit board measurement method and a manufacturing method.

自動光學檢測(Automated Optical Inspection,簡稱AOI)設備現已成為電子製造業確保產品質量的重要檢測工具和過程質量控製工具,其配置有線掃相機,對電路板進行線掃,然後將線掃的子圖像拼接得到完整的PCB掃描圖像。Automated Optical Inspection (AOI) equipment has now become an important inspection tool and process quality control tool for the electronics manufacturing industry to ensure product quality. It is equipped with a wire scan camera to perform a line scan on the circuit board, and then scan the sub-sections of the line scan. Image stitching to obtain a complete PCB scanned image.

常規的PCB缺陷檢測的手段為AOI設備通過將檢測點與數據庫中的合格參數進行比較,經過圖像處理,檢查出被測產品上的缺陷。The conventional method of PCB defect detection is that AOI equipment compares the detection points with qualified parameters in the database, and through image processing, detects defects on the product being tested.

但是目前的AI檢測模型的精確度不足,導致檢測錯誤的情況時有發生,影響缺陷識別的準確率。However, the current AI detection model is not accurate enough, causing detection errors to occur from time to time, affecting the accuracy of defect identification.

以上背景技術內容的公開僅用於輔助理解本發明的發明構思及技術方案,其並不必然屬於本專利申請的現有技術,也不必然會給出技術教導;在沒有明確的證據表明上述內容在本專利申請的申請日之前已經公開的情況下,上述背景技術不應當用於評價本申請的新穎性和創造性。The disclosure of the above background technology content is only used to assist in understanding the inventive concepts and technical solutions of the present invention. It does not necessarily belong to the prior art of this patent application, nor does it necessarily provide technical guidance; in the absence of clear evidence that the above content is If the patent application has been published before the filing date, the above background technology should not be used to evaluate the novelty and inventiveness of the application.

本發明的目的是提供一種PCB缺陷檢測方法、電路板計量測量方法及製作方法,利用AOI設備的掃描圖像快速對PCB上的對象進行二維計量,利用電路板計量測量數據作為檢測電路板缺陷的依據,提高缺陷檢測識別準確率。The purpose of the invention is to provide a PCB defect detection method, circuit board metrology measurement method and production method, using the scanned image of the AOI device to quickly perform two-dimensional measurement of objects on the PCB, and using the circuit board metrology measurement data as a method to detect circuit board defects. basis to improve the accuracy of defect detection and identification.

為達到上述目的,本發明采用的技術方案如下:In order to achieve the above objects, the technical solutions adopted by the present invention are as follows:

一種PCB缺陷檢測方法,包括:A PCB defect detection method, including:

將待檢測的電路板的PCB設計文檔輸入AOI設備,所述PCB設計文檔包括電路板上各個對象的尺寸設計信息;Input the PCB design document of the circuit board to be inspected into the AOI device, where the PCB design document includes the size design information of each object on the circuit board;

利用AOI設備對待檢測的電路板進行掃描,得到PCB掃描圖像,並獲取所述AOI設備當前設定的像素單元尺寸;Use the AOI device to scan the circuit board to be inspected, obtain the PCB scan image, and obtain the pixel unit size currently set by the AOI device;

響應於對至少一個目標對象的檢測請求的觸發信號,確定所述目標對象在所述PCB掃描圖像中在請求計量方向上所占的像素數量;In response to a trigger signal of a detection request for at least one target object, determining the number of pixels occupied by the target object in the requested measurement direction in the PCB scan image;

根據所述AOI設備當前設定的像素單元尺寸和所述目標對象在請求計量方向上所占的像素數量,通過兩者相乘的方式,計算所述目標對象在請求計量方向上的尺寸;According to the currently set pixel unit size of the AOI device and the number of pixels occupied by the target object in the requested measurement direction, calculate the size of the target object in the requested measurement direction by multiplying the two;

比對所述目標對象在請求計量方向上的尺寸的計算結果與該目標對象在所述PCB設計文檔中的尺寸設計信息,若尺寸差值超出預設的差值閾值,則確定所述電路板的該目標對象存在缺陷。Compare the calculation result of the size of the target object in the requested measurement direction with the size design information of the target object in the PCB design document. If the size difference exceeds a preset difference threshold, determine the circuit board The target object is defective.

進一步地,對一目標對象的檢測請求的觸發信號包括:Further, the trigger signal for a detection request for a target object includes:

預先將所述PCB掃描圖像和PCB設計文檔中的對應的PCB設計圖像輸入二維計量軟件中進行顯示;In advance, the PCB scanned image and the corresponding PCB design image in the PCB design document are input into the two-dimensional metrology software for display;

將所述PCB掃描圖像與PCB設計圖像進行映射關聯;Mapping and correlating the PCB scanned image with the PCB design image;

在所述PCB掃描圖像的顯示界面上選擇目標對象,並確定計量方向;並確定在所述PCB設計圖像中與被選擇的目標對象相關聯的映射對象。Select a target object on the display interface of the PCB scan image, and determine the measurement direction; and determine the mapping object associated with the selected target object in the PCB design image.

進一步地,對一目標對象的檢測請求的觸發信號包括:Further, the trigger signal for a detection request for a target object includes:

預先將所述PCB掃描圖像和PCB設計文檔中的對應的PCB設計圖像輸入二維計量軟件中進行顯示;In advance, the PCB scanned image and the corresponding PCB design image in the PCB design document are input into the two-dimensional metrology software for display;

將所述PCB掃描圖像與PCB設計圖像進行映射關聯;Mapping and correlating the PCB scanned image with the PCB design image;

在所述PCB設計圖像的顯示界面上選擇與目標對象映射關聯的映射對象;並確定在所述PCB掃描圖像中與被選擇的映射對象相關聯的目標對象,並確定計量方向。Select the mapping object associated with the target object mapping on the display interface of the PCB design image; determine the target object associated with the selected mapping object in the PCB scan image, and determine the measurement direction.

進一步地,響應於對一劃定區域檢測請求的觸發信號,定位該劃定區域內的全部目標對象及確定其各自的計量方向,確定各個目標對象在所述PCB掃描圖像中在各自的計量方向上所占的像素數量;Further, in response to a trigger signal for a demarcated area detection request, all target objects in the delimited area are located and their respective measurement directions are determined, and each target object is determined in its respective measurement direction in the PCB scan image. The number of pixels occupied in the direction;

根據所述當前設定的像素單元尺寸和該劃定區域內的各個目標對象所占的像素數量,計算各個目標對象在請求計量方向上的尺寸。According to the currently set pixel unit size and the number of pixels occupied by each target object in the demarcated area, the size of each target object in the requested measurement direction is calculated.

進一步地,所述目標對象為直線線段或曲線線段,其對應的請求計量方向為線段長度延伸方向或線寬方向;或者,Further, the target object is a straight line segment or a curved line segment, and its corresponding requested measurement direction is the line segment length extension direction or line width direction; or,

所述目標對象為多邊形,其對應的請求計量方向為邊緣邊長方向;或者,The target object is a polygon, and its corresponding requested measurement direction is the edge side length direction; or,

所述目標對象為圓形,其對應的請求計量方向為徑向方向。The target object is a circle, and its corresponding requested measurement direction is a radial direction.

進一步地,若所述尺寸差值超出預設的差值閾值,則根據所述PCB設計文檔,確定所述目標對象的工藝類型;Further, if the size difference exceeds a preset difference threshold, determine the process type of the target object according to the PCB design document;

對所確定的工藝類型修正工藝參數,以使修正後的工藝製作得到的電路板的目標對象的計量尺寸與其在PCB設計文檔中的尺寸設計信息之間的尺寸差值縮小。The process parameters are corrected for the determined process type so that the size difference between the measurement size of the target object of the circuit board produced by the corrected process and its size design information in the PCB design document is reduced.

進一步地,若待檢測的電路板上焊線的線寬計量尺寸小於相應的尺寸設計信息,則減小蝕刻時間工藝參數;Further, if the line width measurement size of the bonding wire on the circuit board to be detected is smaller than the corresponding size design information, the etching time process parameters are reduced;

若待檢測的電路板上焊線的線寬計量尺寸大於相應的尺寸設計信息,則增大蝕刻時間工藝參數。If the line width measurement size of the bonding wire on the circuit board to be detected is larger than the corresponding size design information, the etching time process parameters are increased.

進一步地,所述PCB掃描圖像為灰度圖像或彩色圖像。Further, the PCB scanned image is a grayscale image or a color image.

進一步地,在AOI設備掃描的過程中,執行對電路板上各個被掃描到的對象在所述PCB掃描圖像中在請求計量方向上所占的像素數量的計數工作,直至掃描完成後,所述電路板上全部對象在所述PCB掃描圖像中在請求計量方向上所占的像素數量和/或全部對象在請求計量方向上的尺寸被獲取。Further, during the scanning process of the AOI device, counting of the number of pixels occupied by each scanned object on the circuit board in the requested measurement direction in the PCB scan image is performed until the scanning is completed. The number of pixels occupied by all objects on the circuit board in the requested measurement direction in the PCB scan image and/or the size of all objects in the requested measurement direction are obtained.

進一步地,通過以下方式對電路板上各個被掃描到的對象在所述PCB掃描圖像中在請求計量方向上所占的像素數量進行計數:Further, the number of pixels occupied by each scanned object on the circuit board in the requested measurement direction in the PCB scan image is counted in the following manner:

定位該目標對象在其計量方向上的起始端點,計數為1;Locate the starting endpoint of the target object in its measurement direction, and the count is 1;

步進至所述計量方向上的下一個像素塊,若當前像素塊與上一步所在的像素塊的灰度值差異超過預設的灰度閾值,則停止計數及停止步進,否則計數自加1;Step to the next pixel block in the measurement direction. If the difference in gray value between the current pixel block and the pixel block in the previous step exceeds the preset gray threshold, then stop counting and stepping, otherwise the count will increase automatically. 1;

重復步進至所述計量方向上的下一個像素塊的步驟,直至當前像素塊與上一步所在的像素塊的灰度值差異超過預設的灰度閾值,再將當前的計數結果作為該目標對象在所述PCB掃描圖像中在其計量方向上所占的像素數量。Repeat the step of stepping to the next pixel block in the measurement direction until the difference in gray value between the current pixel block and the pixel block in the previous step exceeds the preset gray threshold, and then use the current counting result as the target The number of pixels the object occupies in the PCB scan image in its metering direction.

根據本發明的另一方面,提供了一種印刷電路板2D計量測量方法,包括:According to another aspect of the present invention, a 2D metrology measurement method for printed circuit boards is provided, including:

獲取AOI設備對目標電路板進行掃描所得到的PCB掃描圖像,並獲取所述AOI設備當前設定的像素單元尺寸;Obtain the PCB scan image obtained by scanning the target circuit board with the AOI device, and obtain the pixel unit size currently set by the AOI device;

在所述PCB掃描圖像中選擇一個或多個目標對象,確定其計量方向;Select one or more target objects in the PCB scan image and determine their measurement direction;

確定所述目標對象在所述PCB掃描圖像中在各自對應的計量方向上所占的像素數量;Determine the number of pixels occupied by the target object in the respective corresponding measurement directions in the PCB scan image;

根據所述AOI設備當前設定的像素單元尺寸和所述目標對象在請求計量方向上所占的像素數量,通過兩者相乘的方式,計算所述目標對象在其計量方向上的尺寸。According to the currently set pixel unit size of the AOI device and the number of pixels occupied by the target object in the requested measurement direction, the size of the target object in its measurement direction is calculated by multiplying the two.

進一步地,通過以下方式確定一目標對象在所述PCB掃描圖像中在其計量方向上所占的像素數量:Further, the number of pixels occupied by a target object in the measurement direction of the PCB scan image is determined in the following manner:

定位該目標對象在其計量方向上的起始端點,計數為1;Locate the starting endpoint of the target object in its measurement direction, and the count is 1;

步進至所述計量方向上的下一個像素塊,若當前像素塊與上一步所在的像素塊的灰度值差異超過預設的灰度閾值,則停止計數及停止步進,否則計數自加1;Step to the next pixel block in the measurement direction. If the difference in gray value between the current pixel block and the pixel block in the previous step exceeds the preset gray threshold, then stop counting and stepping, otherwise the count will increase automatically. 1;

重復步進至所述計量方向上的下一個像素塊的步驟,直至當前像素塊與上一步所在的像素塊的灰度值差異超過預設的灰度閾值,再將當前的計數結果作為該目標對象在所述PCB掃描圖像中在其計量方向上所占的像素數量。Repeat the step of stepping to the next pixel block in the measurement direction until the difference in gray value between the current pixel block and the pixel block in the previous step exceeds the preset gray threshold, and then use the current counting result as the target The number of pixels the object occupies in the PCB scan image in its metering direction.

進一步地,所述印刷電路板2D計量測量方法還包括:Further, the printed circuit board 2D metrology measurement method also includes:

將所述PCB掃描圖像與所述目標電路板的設計文檔中的PCB設計圖像進行映射關聯;Mapping and associating the PCB scanned image with the PCB design image in the design document of the target circuit board;

確定被選擇的目標對象在所述PCB設計圖像中相關聯的映射對象;Determine the mapping object associated with the selected target object in the PCB design image;

確定所述映射對象在所述設計文檔中的尺寸設計信息;Determine the size design information of the mapping object in the design document;

計算所述目標對象在其計量方向上的尺寸的計算結果減去所述映射對象在所述設計文檔中的尺寸設計信息的差值,作為該目標對象的計量測量結果。The calculation result of the size of the target object in its measurement direction minus the dimensional design information of the mapping object in the design document is used as the measurement result of the target object.

根據本發明的再一方面,提供了一種印刷電路板製作方法,包括:According to yet another aspect of the present invention, a printed circuit board manufacturing method is provided, including:

按照電路板的設計文檔設置各種初始工藝參數;Set various initial process parameters according to the circuit board design document;

按照所述初始工藝參數製作得到待驗證的電路板;The circuit board to be verified is produced according to the initial process parameters;

利用如上所述的PCB缺陷檢測方法對該電路板進行檢測;Use the PCB defect detection method as mentioned above to detect the circuit board;

若確定所述電路板不存在缺陷,則按照當前工藝參數批量生產;If it is determined that the circuit board does not have defects, mass production will be carried out according to the current process parameters;

否則根據所述PCB設計文檔,確定存在缺陷的對象的工藝類型;對所確定的工藝類型修正工藝參數,以使修正後的工藝製作得到的電路板的目標對象的計量尺寸與其在設計文檔中的尺寸設計信息之間的尺寸差值縮小。Otherwise, determine the process type of the defective object according to the PCB design document; correct the process parameters for the determined process type so that the measurement size of the target object of the circuit board produced by the corrected process is the same as that in the design document The size difference between size design information is reduced.

本發明提供的技術方案帶來的有益效果如下:The beneficial effects brought by the technical solution provided by the present invention are as follows:

a. 在AOI設備對電路板的掃描圖像上進行電路板的二維計量測量,無需配置額外的比如照相機等工具;a. Perform two-dimensional metrological measurement of the circuit board on the scanned image of the circuit board by the AOI equipment, without the need to configure additional tools such as cameras;

b. 在AOI設備掃描過程中即可執行目標對象在PCB掃描圖像中在請求計量方向上所占的像素數量的計數,在AOI設備掃描完後能夠快速獲得電路板的二維計量結果數據,不會影響AOI本身的檢測進程,極大地提高了AOI循環的效率;b. During the scanning process of the AOI device, the number of pixels occupied by the target object in the PCB scan image in the requested measurement direction can be counted. After the AOI device scans, the two-dimensional measurement result data of the circuit board can be quickly obtained. It will not affect the detection process of AOI itself, greatly improving the efficiency of AOI cycle;

c. AOI設備的掃描圖像是將線掃相機的拍攝圖像拼接而成,使得相比於相機的有限像素,掃描圖像理論上具有不限數量的測量點。c. The scanned image of the AOI device is stitched together from the images captured by the line scan camera, so that compared to the limited pixels of the camera, the scanned image theoretically has an unlimited number of measurement points.

為了使本技術領域的人員更好地理解本發明方案,下面將結合本發明實施例中的附圖,對本發明實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分的實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都應當屬於本發明保護的範圍。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts should fall within the scope of protection of the present invention.

需要說明的是,本發明的說明書和發明申請專利範圍及上述附圖中的術語“第一”、“第二”等是用於區別類似的對象,而不必用於描述特定的順序或先後次序。應該理解這樣使用的數據在適當情況下可以互換,以便這裏描述的本發明的實施例能夠以除了在這裏圖示或描述的那些以外的順序實施。此外,術語“包括”和“具有”以及他們的任何變形,意圖在於覆蓋不排他的包含,例如,包含了一系列步驟或單元的過程、方法、裝置、產品或設備不必限於清楚地列出的那些步驟或單元,而是可包括沒有清楚地列出的或對於這些過程、方法、產品或設備固有的其他步驟或單元。It should be noted that the terms "first", "second", etc. in the description of the invention, the patent scope of the invention, and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. . It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the invention described herein are capable of being practiced in sequences other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, apparatus, product or equipment that includes a series of steps or units and need not be limited to those explicitly listed. Those steps or units may instead include other steps or units not expressly listed or inherent to the processes, methods, products or devices.

在本發明的一個實施例中,提供了一種PCB缺陷檢測方法,參見圖1,所述缺陷檢測方法包括:In one embodiment of the present invention, a PCB defect detection method is provided. See Figure 1. The defect detection method includes:

將待檢測的電路板的PCB設計文檔輸入AOI設備,所述PCB設計文檔包括電路板上各個對象的尺寸設計信息;Input the PCB design document of the circuit board to be inspected into the AOI device, where the PCB design document includes the size design information of each object on the circuit board;

利用AOI設備對待檢測的電路板進行掃描,得到PCB掃描圖像(可以為灰度圖像或彩色圖像),並獲取所述AOI設備當前設定的像素單元尺寸;Use the AOI device to scan the circuit board to be inspected, obtain the PCB scan image (which can be a grayscale image or a color image), and obtain the pixel unit size currently set by the AOI device;

響應於對至少一個目標對象的檢測請求的觸發信號,確定所述目標對象在所述PCB掃描圖像中在請求計量方向上所占的像素數量;In response to a trigger signal of a detection request for at least one target object, determining the number of pixels occupied by the target object in the requested measurement direction in the PCB scan image;

根據所述AOI設備當前設定的像素單元尺寸和所述目標對象在請求計量方向上所占的像素數量,通過兩者相乘的方式,計算所述目標對象在請求計量方向上的尺寸;According to the currently set pixel unit size of the AOI device and the number of pixels occupied by the target object in the requested measurement direction, calculate the size of the target object in the requested measurement direction by multiplying the two;

比對所述目標對象在請求計量方向上的尺寸的計算結果與該目標對象在所述PCB設計文檔中的尺寸設計信息,若尺寸差值超出預設的差值閾值,則確定所述電路板的該目標對象存在缺陷。Compare the calculation result of the size of the target object in the requested measurement direction with the size design information of the target object in the PCB design document. If the size difference exceeds a preset difference threshold, determine the circuit board The target object is defective.

本實施例中,預先將所述PCB掃描圖像和PCB設計文檔中的對應的PCB設計圖像輸入二維計量軟件中進行顯示,如圖3所示,圖3中上方為PCB設計圖像,下方為PCB掃描圖像;In this embodiment, the PCB scanned image and the corresponding PCB design image in the PCB design document are input into the two-dimensional metrology software for display in advance, as shown in Figure 3. The upper part of Figure 3 is the PCB design image. Below is the scanned image of PCB;

在二維計量軟件中將所述PCB掃描圖像與PCB設計圖像進行映射關聯,即在PCB掃描圖像中選中某個對象,能夠映射到PCB設計圖像中對應的對象,反之亦可,在PCB設計圖像中選中某個對象,能夠映射到PCB掃描圖像中對應的對象。In the two-dimensional metrology software, the PCB scan image and the PCB design image are mapped and associated, that is, selecting an object in the PCB scan image can be mapped to the corresponding object in the PCB design image, and vice versa. , selecting an object in the PCB design image can be mapped to the corresponding object in the PCB scan image.

在本發明的一個實施例中,對一目標對象的檢測請求的觸發信號為:在所述PCB掃描圖像的顯示界面上選擇目標對象,並確定計量方向;並確定在所述PCB設計圖像中與被選擇的目標對象相關聯的映射對象。In one embodiment of the present invention, the trigger signal for a detection request for a target object is: selecting the target object on the display interface of the PCB scan image, and determining the measurement direction; and determining the measurement direction in the PCB design image. The mapping object associated with the selected target object.

在本發明的另一個實施例中,對一目標對象的檢測請求的觸發信號為:所述PCB設計圖像的顯示界面上選擇與目標對象映射關聯的映射對象;並確定在所述PCB掃描圖像中與被選擇的映射對象相關聯的目標對象,並確定計量方向。In another embodiment of the present invention, the trigger signal for a detection request for a target object is: selecting a mapping object associated with the target object mapping on the display interface of the PCB design image; and determining the mapping object in the PCB scan image. The target object in the image associated with the selected mapping object and determines the measurement direction.

總之,目標對象可以是PCB掃描圖像中的一個線段、一個圓形區域或者一個多邊形區域等等,比如可以以單擊或多擊或右鍵的方式選中一個目標對象,或通過選中在PCB設計圖像中的映射對象來間接選中PCB掃描圖像中的目標對象。In short, the target object can be a line segment, a circular area, a polygonal area, etc. in the PCB scanned image. For example, you can select a target object by clicking, multi-clicking, or right-clicking, or by selecting the target object on the PCB. Design the mapping object in the image to indirectly select the target object in the PCB scan image.

不同目標對象可以有不同的計量方向,比如,目標對象為直線線段或曲線線段,則其對應的請求計量方向為線段長度延伸方向或線寬方向;目標對象為多邊形,則其對應的請求計量方向為邊緣邊長方向;目標對象為圓形,則其對應的請求計量方向為徑向方向。Different target objects can have different measurement directions. For example, if the target object is a straight line segment or a curve segment, its corresponding requested measurement direction is the line segment length extension direction or line width direction; if the target object is a polygon, its corresponding requested measurement direction is the edge length direction; if the target object is a circle, its corresponding requested measurement direction is the radial direction.

如圖3所示,被選中的目標對象為直線段,請求計量方向為線寬方向。在圖3中的Measurement的彈窗中可以看出,PCB掃描圖像中2D計量的線寬為3.59 um,對應PCB設計圖像中相關聯的映射對象的尺寸設計信息(Reference)為4.6 um,尺寸差值(Difference)為-1.01 um。比如預設的差值閾值為0.5um,表示在Reference尺寸的±0.5um範圍屬於容差範圍,超出容差範圍,則需要對該目標對象的工藝參數進行修正,以使修正後的工藝製作得到的電路板的目標對象的計量尺寸與其在PCB設計文檔中的尺寸設計信息之間的尺寸差值縮小,比如圖3中,該線段采用蝕刻工藝,若2D計量的線寬小於Reference尺寸,說明蝕刻過度,應當減小蝕刻時間工藝參數;反之若2D計量的線寬大於Reference尺寸,說明蝕刻不到位,應當增大蝕刻時間工藝參數。As shown in Figure 3, the selected target object is a straight line segment, and the requested measurement direction is the line width direction. As can be seen in the Measurement pop-up window in Figure 3, the line width of 2D measurement in the PCB scan image is 3.59 um, and the corresponding size design information (Reference) of the associated mapping object in the PCB design image is 4.6 um. The size difference (Difference) is -1.01 um. For example, the preset difference threshold is 0.5um, which means that the ±0.5um range of the Reference size belongs to the tolerance range. If it exceeds the tolerance range, the process parameters of the target object need to be corrected so that the corrected process can be produced. The size difference between the measurement size of the target object of the circuit board and its size design information in the PCB design document is reduced. For example, in Figure 3, this line segment uses an etching process. If the line width of the 2D measurement is smaller than the Reference size, it means that the etching process is used. If it is excessive, the etching time process parameters should be reduced; on the contrary, if the line width of 2D measurement is larger than the Reference size, it means that the etching is not in place, and the etching time process parameters should be increased.

在本發明的一個實施例中,還可以批量二維計量多個目標對象,具體步驟為利用比如鼠標的輸入裝置在PCB掃描圖像中劃定區域,同樣地關聯映射到PCB設計圖像中的映射區域,以定位該劃定區域內的全部目標對象及確定其各自的計量方向,確定各個目標對象在所述PCB掃描圖像中在各自的計量方向上所占的像素數量;根據所述當前設定的像素單元尺寸和該劃定區域內的各個目標對象所占的像素數量,計算各個目標對象在請求計量方向上的尺寸。In one embodiment of the present invention, multiple target objects can also be measured two-dimensionally in batches. The specific steps are to use an input device such as a mouse to demarcate areas in the PCB scan image, and similarly associate and map to the areas in the PCB design image. Mapping the area to locate all target objects in the demarcated area and determine their respective measurement directions, and determine the number of pixels occupied by each target object in the respective measurement directions in the PCB scan image; according to the current Based on the set pixel unit size and the number of pixels occupied by each target object in the delimited area, the size of each target object in the requested measurement direction is calculated.

也可以在PCB設計圖像中劃定區域,以定位該劃定區域內的全部設計對象,然後關聯映射到PCB掃描圖像中,得到與各個設計對象相關聯映射的目標對象,然後通過上述單一目標對象的計量方法,對多個目標對象進行一一計量,批量地比對與設計(Reference)尺寸,能夠有效提高缺陷檢測效率。You can also demarcate an area in the PCB design image to locate all the design objects in the delimited area, and then associate it with the PCB scan image to obtain the target objects associated with each design object, and then use the above single The measurement method of target objects measures multiple target objects one by one and compares and designs (reference) sizes in batches, which can effectively improve the efficiency of defect detection.

更有甚者,在一個特別的實施例中,在AOI設備掃描過程中,自動執行對PCB上各個對象在各個計量方向上的像素數量的計數步驟,這使得在AOI設備完成掃描後,立即可獲取PCB上所有對象(在各自各個計量方向上)的二維計量結果數據。What's more, in a special embodiment, during the scanning process of the AOI device, the step of counting the number of pixels of each object on the PCB in each measurement direction is automatically performed, which makes it possible to count the number of pixels in each measurement direction immediately after the AOI device completes the scan. Obtain the two-dimensional measurement result data of all objects on the PCB (in each measurement direction).

具體通過以下方式對電路板上各個被掃描到的對象在所述PCB掃描圖像中在請求計量方向上所占的像素數量進行計數:Specifically, the number of pixels occupied by each scanned object on the circuit board in the requested measurement direction in the PCB scan image is counted in the following manner:

定位該目標對象在其計量方向上的起始端點,計數為1;Locate the starting endpoint of the target object in its measurement direction, and the count is 1;

步進至所述計量方向上的下一個像素塊,若當前像素塊與上一步所在的像素塊的灰度值差異超過預設的灰度閾值,則停止計數及停止步進,否則計數自加1;Step to the next pixel block in the measurement direction. If the difference in gray value between the current pixel block and the pixel block in the previous step exceeds the preset gray threshold, then stop counting and stepping, otherwise the count will increase automatically. 1;

重復步進至所述計量方向上的下一個像素塊的步驟,直至當前像素塊與上一步所在的像素塊的灰度值差異超過預設的灰度閾值,再將當前的計數結果作為該目標對象在所述PCB掃描圖像中在其計量方向上所占的像素數量。Repeat the step of stepping to the next pixel block in the measurement direction until the difference in gray value between the current pixel block and the pixel block in the previous step exceeds the preset gray threshold, and then use the current counting result as the target The number of pixels the object occupies in the PCB scan image in its metering direction.

在本發明的一個實施例中,提供了一種印刷電路板2D計量測量方法,如圖2所示,計量測量方法包括:In one embodiment of the present invention, a 2D metrology measurement method for printed circuit boards is provided. As shown in Figure 2, the metrology measurement method includes:

獲取AOI設備對目標電路板進行掃描所得到的PCB掃描圖像,並獲取所述AOI設備當前設定的像素單元尺寸;Obtain the PCB scan image obtained by scanning the target circuit board with the AOI device, and obtain the pixel unit size currently set by the AOI device;

在所述PCB掃描圖像中選擇一個或多個目標對象,確定其計量方向;Select one or more target objects in the PCB scan image and determine their measurement direction;

確定所述目標對象在所述PCB掃描圖像中在各自對應的計量方向上所占的像素數量;Determine the number of pixels occupied by the target object in the respective corresponding measurement directions in the PCB scan image;

根據所述AOI設備當前設定的像素單元尺寸和所述目標對象在請求計量方向上所占的像素數量,通過兩者相乘的方式,計算所述目標對象在其計量方向上的尺寸。According to the currently set pixel unit size of the AOI device and the number of pixels occupied by the target object in the requested measurement direction, the size of the target object in its measurement direction is calculated by multiplying the two.

本發明的其中一個構思在於,利用AOI的線掃相機對PCB電路板掃描,然後將線掃得到的圖像拼接得到整體PCB掃描圖像,利用AOI設備給定的掃描分辨率,可以換算成單個像素尺寸,或者AOI設備直接給定單個像素尺寸,以直接在PCB掃描圖像中進行二維計量測量,即在計量方向上被目標對象“穿過”的像素的數量,乘以單個像素的邊長,即為目標對象在計量方向上的長度。本實施例中,通過以下方式確定一目標對象在所述PCB掃描圖像中在其計量方向上所占的像素數量:One of the ideas of the present invention is to use an AOI line scan camera to scan the PCB circuit board, and then splice the line scan images to obtain an overall PCB scan image. Using the scan resolution given by the AOI equipment, it can be converted into a single Pixel size, or the AOI device directly gives a single pixel size to perform two-dimensional metrology measurements directly in the PCB scan image, that is, the number of pixels "crossed" by the target object in the metrology direction, multiplied by the edge of a single pixel Length is the length of the target object in the measurement direction. In this embodiment, the number of pixels occupied by a target object in the measurement direction of the PCB scan image is determined in the following manner:

定位該目標對象在其計量方向上的起始端點,計數為1;Locate the starting endpoint of the target object in its measurement direction, and the count is 1;

步進至所述計量方向上的下一個像素塊,若當前像素塊與上一步所在的像素塊的灰度值差異超過預設的灰度閾值,則停止計數及停止步進,否則計數自加1;Step to the next pixel block in the measurement direction. If the difference in gray value between the current pixel block and the pixel block in the previous step exceeds the preset gray threshold, then stop counting and stepping, otherwise the count will increase automatically. 1;

重復步進至所述計量方向上的下一個像素塊的步驟,直至當前像素塊與上一步所在的像素塊的灰度值差異超過預設的灰度閾值,再將當前的計數結果作為該目標對象在所述PCB掃描圖像中在其計量方向上所占的像素數量。Repeat the step of stepping to the next pixel block in the measurement direction until the difference in gray value between the current pixel block and the pixel block in the previous step exceeds the preset gray threshold, and then use the current counting result as the target The number of pixels the object occupies in the PCB scan image in its metering direction.

本實施例中印刷電路板2D計量測量方法還包括:In this embodiment, the 2D metrology measurement method of the printed circuit board also includes:

將所述PCB掃描圖像與所述目標電路板的設計文檔中的PCB設計圖像進行映射關聯;Mapping and associating the PCB scanned image with the PCB design image in the design document of the target circuit board;

確定被選擇的目標對象在所述PCB設計圖像中相關聯的映射對象;Determine the mapping object associated with the selected target object in the PCB design image;

確定所述映射對象在所述設計文檔中的尺寸設計信息;Determine the size design information of the mapping object in the design document;

計算所述目標對象在其計量方向上的尺寸的計算結果減去所述映射對象在所述設計文檔中的尺寸設計信息的差值,作為該目標對象的計量測量結果。The calculation result of the size of the target object in its measurement direction minus the dimensional design information of the mapping object in the design document is used as the measurement result of the target object.

本印刷電路板2D計量測量方法實施例與上述PCB缺陷檢測方法實施例為基於相同的發明構思,在此通過結合的方式將印刷電路板2D計量測量方法實施例與PCB缺陷檢測方法實施例相互合並。This embodiment of the 2D metrology and measurement method for printed circuit boards and the above embodiment of the PCB defect detection method are based on the same inventive concept. Herein, the embodiment of the 2D metrology and measurement method of printed circuit boards and the embodiment of the PCB defect detection method are combined with each other. .

在本發明的一個實施例中,提供了一種印刷電路板製作方法,如圖4所示,製作方法包括:In one embodiment of the present invention, a printed circuit board manufacturing method is provided. As shown in Figure 4, the manufacturing method includes:

按照電路板的設計文檔設置各種初始工藝參數;Set various initial process parameters according to the circuit board design document;

按照所述初始工藝參數製作得到待驗證的電路板;The circuit board to be verified is produced according to the initial process parameters;

利用如上PCB缺陷檢測方法實施例所述的方法對該電路板進行檢測;Use the method described in the above PCB defect detection method embodiment to detect the circuit board;

若確定所述電路板不存在缺陷,則按照當前工藝參數批量生產;If it is determined that the circuit board does not have defects, mass production will be carried out according to the current process parameters;

否則根據所述PCB設計文檔,確定存在缺陷的對象的工藝類型;對所確定的工藝類型修正工藝參數,以使修正後的工藝製作得到的電路板的目標對象的計量尺寸與其在設計文檔中的尺寸設計信息之間的尺寸差值縮小。Otherwise, determine the process type of the defective object according to the PCB design document; correct the process parameters for the determined process type so that the measurement size of the target object of the circuit board produced by the corrected process is the same as that in the design document The size difference between size design information is reduced.

需要說明的是,在本文中,諸如第一和第二等之類的關系術語僅僅用來將一個實體或者操作與另一個實體或操作區分開來,而不一定要求或者暗示這些實體或操作之間存在任何這種實際的關系或者順序。而且,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、物品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、物品或者設備所固有的要素。在沒有更多限製的情況下,由語句“包括一個……”限定的要素,並不排除在包括所述要素的過程、方法、物品或者設備中還存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations are mutually exclusive. any such actual relationship or sequence exists between them. Furthermore, the terms "comprises," "comprises," or any other variations thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also those not expressly listed other elements, or elements inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or apparatus that includes the stated element.

以上所述僅是本申請的具體實施方式,應當指出,對於本技術領域的普通技術人員來說,在不脫離本申請原理的前提下,還可以做出若幹改進和潤飾,這些改進和潤飾也應視為本申請的保護範圍。The above are only specific embodiments of the present application. It should be noted that those of ordinary skill in the technical field can also make several improvements and modifications without departing from the principles of the present application. These improvements and modifications can also be made. should be regarded as the scope of protection of this application.

without

為了更清楚地說明本申請實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本申請中記載的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動的前提下,還可以根據這些附圖獲得其他的附圖。 圖1為本發明的一個示例性實施例提供的基於2D計量的PCB缺陷檢測方法流程示意圖; 圖2為本發明的一個示例性實施例提供的印刷電路板2D計量測量方法示意圖; 圖3為本發明的一個示例性實施例提供的二維計量軟件的計量界面示意圖; 圖4為本發明的一個示例性實施例提供的基於2D計量的印刷電路板製作方法流程示意圖。 In order to more clearly explain the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the purpose of describing the embodiments or the prior art. For some of the embodiments recorded in the application, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts. Figure 1 is a schematic flow chart of a PCB defect detection method based on 2D metrology according to an exemplary embodiment of the present invention; Figure 2 is a schematic diagram of a 2D metrology measurement method for a printed circuit board according to an exemplary embodiment of the present invention; Figure 3 is a schematic diagram of the measurement interface of the two-dimensional measurement software provided by an exemplary embodiment of the present invention; Figure 4 is a schematic flow chart of a printed circuit board manufacturing method based on 2D metrology according to an exemplary embodiment of the present invention.

Claims (14)

一種PCB缺陷檢測方法,其中,包括: 將待檢測的電路板的PCB設計文檔輸入AOI設備,所述PCB設計文檔包括電路板上各個對象的尺寸設計信息; 利用AOI設備對待檢測的電路板進行掃描,得到PCB掃描圖像,並獲取所述AOI設備當前設定的像素單元尺寸; 響應於對至少一個目標對象的檢測請求的觸發信號,確定所述目標對象在所述PCB掃描圖像中在請求計量方向上所占的像素數量; 根據所述AOI設備當前設定的像素單元尺寸和所述目標對象在請求計量方向上所占的像素數量,通過兩者相乘的方式,計算所述目標對象在請求計量方向上的尺寸; 比對所述目標對象在請求計量方向上的尺寸的計算結果與該目標對象在所述PCB設計文檔中的尺寸設計信息,若尺寸差值超出預設的差值閾值,則確定所述電路板的該目標對象存在缺陷。 A PCB defect detection method, which includes: Input the PCB design document of the circuit board to be inspected into the AOI device, where the PCB design document includes the size design information of each object on the circuit board; Use the AOI device to scan the circuit board to be inspected, obtain the PCB scan image, and obtain the pixel unit size currently set by the AOI device; In response to a trigger signal of a detection request for at least one target object, determining the number of pixels occupied by the target object in the requested measurement direction in the PCB scan image; According to the currently set pixel unit size of the AOI device and the number of pixels occupied by the target object in the requested measurement direction, calculate the size of the target object in the requested measurement direction by multiplying the two; Compare the calculation result of the size of the target object in the requested measurement direction with the size design information of the target object in the PCB design document. If the size difference exceeds a preset difference threshold, determine the circuit board The target object is defective. 如請求項1所述的PCB缺陷檢測方法,其中,若所述尺寸差值超出預設的差值閾值,則根據所述PCB設計文檔,確定所述目標對象的工藝類型; 對所確定的工藝類型修正工藝參數,以使修正後的工藝製作得到的電路板的目標對象的計量尺寸與其在PCB設計文檔中的尺寸設計信息之間的尺寸差值縮小。 The PCB defect detection method as described in claim 1, wherein if the size difference exceeds a preset difference threshold, the process type of the target object is determined based on the PCB design document; The process parameters are corrected for the determined process type so that the size difference between the measurement size of the target object of the circuit board produced by the corrected process and its size design information in the PCB design document is reduced. 如請求項2所述的PCB缺陷檢測方法,其中,若待檢測的電路板上焊線的線寬計量尺寸小於相應的尺寸設計信息,則減小蝕刻時間工藝參數; 若待檢測的電路板上焊線的線寬計量尺寸大於相應的尺寸設計信息,則增大蝕刻時間工藝參數。 The PCB defect detection method as described in claim 2, wherein if the line width measurement size of the bonding wire on the circuit board to be detected is smaller than the corresponding size design information, the etching time process parameters are reduced; If the line width measurement size of the bonding wire on the circuit board to be detected is larger than the corresponding size design information, the etching time process parameters are increased. 如請求項1所述的PCB缺陷檢測方法,其中,對一目標對象的檢測請求的觸發信號包括: 預先將所述PCB掃描圖像和PCB設計文檔中的對應的PCB設計圖像輸入二維計量軟件中進行顯示; 將所述PCB掃描圖像與PCB設計圖像進行映射關聯; 在所述PCB掃描圖像的顯示界面上選擇目標對象,並確定計量方向;並確定在所述PCB設計圖像中與被選擇的目標對象相關聯的映射對象。 The PCB defect detection method as described in claim 1, wherein the trigger signal for a detection request for a target object includes: In advance, the PCB scanned image and the corresponding PCB design image in the PCB design document are input into the two-dimensional metrology software for display; Mapping and correlating the PCB scanned image with the PCB design image; Select a target object on the display interface of the PCB scan image, and determine the measurement direction; and determine the mapping object associated with the selected target object in the PCB design image. 如請求項1所述的PCB缺陷檢測方法,其中,對一目標對象的檢測請求的觸發信號包括: 預先將所述PCB掃描圖像和PCB設計文檔中的對應的PCB設計圖像輸入二維計量軟件中進行顯示; 將所述PCB掃描圖像與PCB設計圖像進行映射關聯; 在所述PCB設計圖像的顯示界面上選擇與目標對象映射關聯的映射對象;並確定在所述PCB掃描圖像中與被選擇的映射對象相關聯的目標對象,並確定計量方向。 The PCB defect detection method as described in claim 1, wherein the trigger signal for a detection request for a target object includes: In advance, the PCB scanned image and the corresponding PCB design image in the PCB design document are input into the two-dimensional metrology software for display; Mapping and correlating the PCB scanned image with the PCB design image; Select the mapping object associated with the target object mapping on the display interface of the PCB design image; determine the target object associated with the selected mapping object in the PCB scan image, and determine the measurement direction. 如請求項1所述的PCB缺陷檢測方法,其中,響應於對一劃定區域檢測請求的觸發信號,定位該劃定區域內的全部目標對象及確定其各自的計量方向,確定各個目標對象在所述PCB掃描圖像中在各自的計量方向上所占的像素數量; 根據所述當前設定的像素單元尺寸和該劃定區域內的各個目標對象所占的像素數量,計算各個目標對象在請求計量方向上的尺寸。 The PCB defect detection method as described in claim 1, wherein, in response to a trigger signal for a delineated area detection request, all target objects in the delimited area are located and their respective measurement directions are determined, and each target object is determined to be in the delimited area. The number of pixels occupied in the respective measurement directions in the PCB scan image; According to the currently set pixel unit size and the number of pixels occupied by each target object in the demarcated area, the size of each target object in the requested measurement direction is calculated. 如請求項1所述的PCB缺陷檢測方法,其中,所述目標對象為直線線段或曲線線段,其對應的請求計量方向為線段長度延伸方向或線寬方向;或者, 所述目標對象為多邊形,其對應的請求計量方向為邊緣邊長方向;或者, 所述目標對象為圓形,其對應的請求計量方向為徑向方向。 The PCB defect detection method according to claim 1, wherein the target object is a straight line segment or a curved line segment, and its corresponding requested measurement direction is the line segment length extension direction or line width direction; or, The target object is a polygon, and its corresponding requested measurement direction is the edge side length direction; or, The target object is a circle, and its corresponding requested measurement direction is a radial direction. 如請求項1所述的PCB缺陷檢測方法,其中,所述PCB掃描圖像為灰度圖像或彩色圖像。The PCB defect detection method according to claim 1, wherein the PCB scanned image is a grayscale image or a color image. 如請求項1至8中任一項所述的PCB缺陷檢測方法,其中,在AOI設備掃描的過程中,執行對電路板上各個被掃描到的對象在所述PCB掃描圖像中在請求計量方向上所占的像素數量的計數工作,直至掃描完成後,所述電路板上全部對象在所述PCB掃描圖像中在請求計量方向上所占的像素數量和/或全部對象在請求計量方向上的尺寸被獲取。The PCB defect detection method according to any one of claims 1 to 8, wherein during the scanning process of the AOI device, the requested measurement of each scanned object on the circuit board in the PCB scan image is performed. Count the number of pixels occupied in the direction until after the scanning is completed, the number of pixels occupied by all objects on the circuit board in the requested measurement direction in the PCB scan image and/or the number of pixels occupied by all objects in the requested measurement direction The dimensions on are obtained. 如請求項9所述的PCB缺陷檢測方法,其中,通過以下方式對電路板上各個被掃描到的對象在所述PCB掃描圖像中在請求計量方向上所占的像素數量進行計數: 定位該目標對象在其計量方向上的起始端點,計數為1; 步進至所述計量方向上的下一個像素塊,若當前像素塊與上一步所在的像素塊的灰度值差異超過預設的灰度閾值,則停止計數及停止步進,否則計數自加1; 重復步進至所述計量方向上的下一個像素塊的步驟,直至當前像素塊與上一步所在的像素塊的灰度值差異超過預設的灰度閾值,再將當前的計數結果作為該目標對象在所述PCB掃描圖像中在其計量方向上所占的像素數量。 The PCB defect detection method according to claim 9, wherein the number of pixels occupied by each scanned object on the circuit board in the requested measurement direction in the PCB scan image is counted in the following manner: Locate the starting endpoint of the target object in its measurement direction, and the count is 1; Step to the next pixel block in the measurement direction. If the difference in gray value between the current pixel block and the pixel block in the previous step exceeds the preset gray threshold, then stop counting and stepping, otherwise the count will increase automatically. 1; Repeat the step of stepping to the next pixel block in the measurement direction until the difference in gray value between the current pixel block and the pixel block in the previous step exceeds the preset gray threshold, and then use the current counting result as the target The number of pixels the object occupies in the PCB scan image in its metering direction. 一種印刷電路板2D計量測量方法,其中,包括: 獲取AOI設備對目標電路板進行掃描所得到的PCB掃描圖像,並獲取所述AOI設備當前設定的像素單元尺寸; 在所述PCB掃描圖像中選擇一個或多個目標對象,確定其計量方向; 確定所述目標對象在所述PCB掃描圖像中在各自對應的計量方向上所占的像素數量; 根據所述AOI設備當前設定的像素單元尺寸和所述目標對象在請求計量方向上所占的像素數量,通過兩者相乘的方式,計算所述目標對象在其計量方向上的尺寸。 A 2D metrology measurement method for printed circuit boards, which includes: Obtain the PCB scan image obtained by scanning the target circuit board with the AOI device, and obtain the pixel unit size currently set by the AOI device; Select one or more target objects in the PCB scan image and determine their measurement direction; Determine the number of pixels occupied by the target object in the respective corresponding measurement directions in the PCB scan image; According to the currently set pixel unit size of the AOI device and the number of pixels occupied by the target object in the requested measurement direction, the size of the target object in its measurement direction is calculated by multiplying the two. 如請求項11所述的印刷電路板2D計量測量方法,其中,通過以下方式確定一目標對象在所述PCB掃描圖像中在其計量方向上所占的像素數量: 定位該目標對象在其計量方向上的起始端點,計數為1; 步進至所述計量方向上的下一個像素塊,若當前像素塊與上一步所在的像素塊的灰度值差異超過預設的灰度閾值,則停止計數及停止步進,否則計數自加1; 重復步進至所述計量方向上的下一個像素塊的步驟,直至當前像素塊與上一步所在的像素塊的灰度值差異超過預設的灰度閾值,再將當前的計數結果作為該目標對象在所述PCB掃描圖像中在其計量方向上所占的像素數量。 The 2D metrology measurement method for printed circuit boards as described in claim 11, wherein the number of pixels occupied by a target object in the measurement direction of the PCB scan image is determined in the following manner: Locate the starting endpoint of the target object in its measurement direction, and the count is 1; Step to the next pixel block in the measurement direction. If the difference in gray value between the current pixel block and the pixel block in the previous step exceeds the preset gray threshold, then stop counting and stepping, otherwise the count will increase automatically. 1; Repeat the step of stepping to the next pixel block in the measurement direction until the difference in gray value between the current pixel block and the pixel block in the previous step exceeds the preset gray threshold, and then use the current counting result as the target The number of pixels the object occupies in the PCB scan image in its metering direction. 如請求項11所述的印刷電路板2D計量測量方法,其中,還包括: 將所述PCB掃描圖像與所述目標電路板的設計文檔中的PCB設計圖像進行映射關聯; 確定被選擇的目標對象在所述PCB設計圖像中相關聯的映射對象; 確定所述映射對象在所述設計文檔中的尺寸設計信息; 計算所述目標對象在其計量方向上的尺寸的計算結果減去所述映射對象在所述設計文檔中的尺寸設計信息的差值,作為該目標對象的計量測量結果。 The 2D metrology measurement method for printed circuit boards as described in claim 11, which also includes: Mapping and associating the PCB scanned image with the PCB design image in the design document of the target circuit board; Determine the mapping object associated with the selected target object in the PCB design image; Determine the size design information of the mapping object in the design document; The calculation result of the size of the target object in its measurement direction minus the dimensional design information of the mapping object in the design document is used as the measurement result of the target object. 一種印刷電路板製作方法,其中,包括: 按照電路板的設計文檔設置各種初始工藝參數; 按照所述初始工藝參數製作得到待驗證的電路板; 利用如請求項1至10中任一項所述的PCB缺陷檢測方法對該電路板進行檢測; 若確定所述電路板不存在缺陷,則按照當前工藝參數批量生產; 否則根據所述電路板的設計文檔,確定存在缺陷的對象的工藝類型;對所確定的工藝類型修正工藝參數,以使修正後的工藝製作得到的電路板的目標對象的計量尺寸與其在設計文檔中的尺寸設計信息之間的尺寸差值縮小。 A printed circuit board manufacturing method, which includes: Set various initial process parameters according to the circuit board design document; The circuit board to be verified is produced according to the initial process parameters; Use the PCB defect detection method as described in any one of claims 1 to 10 to detect the circuit board; If it is determined that the circuit board does not have defects, mass production will be carried out according to the current process parameters; Otherwise, determine the process type of the defective object according to the design document of the circuit board; correct the process parameters for the determined process type so that the measurement size of the target object of the circuit board produced by the corrected process is the same as that in the design document The size difference between the size design information in the size is reduced.
TW112109856A 2022-06-20 2023-03-16 Pcb defect detection method, metrological measurement method and manufacture method for circuit board TW202400993A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210696676.3A CN114782436B (en) 2022-06-20 2022-06-20 PCB defect detection method, circuit board metering measurement method and manufacturing method
CN202210696676.3 2022-06-20

Publications (1)

Publication Number Publication Date
TW202400993A true TW202400993A (en) 2024-01-01

Family

ID=82420420

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112109856A TW202400993A (en) 2022-06-20 2023-03-16 Pcb defect detection method, metrological measurement method and manufacture method for circuit board

Country Status (2)

Country Link
CN (2) CN114782436B (en)
TW (1) TW202400993A (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5506793A (en) * 1994-01-14 1996-04-09 Gerber Systems Corporation Method and apparatus for distortion compensation in an automatic optical inspection system
CN105069770A (en) * 2015-09-09 2015-11-18 苏州威盛视信息科技有限公司 AOI image scanning detection processing method
CN106097361B (en) * 2016-06-20 2020-06-19 昆山国显光电有限公司 Defect area detection method and device
CN106327496B (en) * 2016-08-26 2019-04-23 西安电子科技大学 The detection system and method for PCB bare board blind hole defect based on AOI
CN113406093B (en) * 2021-08-19 2021-11-30 苏州维嘉科技股份有限公司 Optical detection equipment and method and device for measuring object attribute thereof
CN114581415A (en) * 2022-03-08 2022-06-03 成都数之联科技股份有限公司 Method and device for detecting defects of PCB, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114782436B (en) 2023-03-24
CN114782436A (en) 2022-07-22
CN116152210A (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN109544533B (en) Metal plate defect detection and measurement method based on deep learning
CN110136120B (en) Silk-screen printing sample plate size measuring method based on machine vision
CN106651857B (en) A kind of printed circuit board patch defect inspection method
WO2024021063A1 (en) Method and device for detecting stability of vision system
CN105335963A (en) Edge defect detection method and apparatus
CN116124006A (en) Automatic spot inspection method of battery pole piece visual inspection system
JP2006276454A (en) Image correcting method and pattern defect inspecting method using same
CN113340909A (en) Glue line defect detection method based on machine vision
CN114280075A (en) Online visual inspection system and method for surface defects of pipe parts
CN109712115B (en) Automatic PCB detection method and system
TW201326735A (en) Method and system for measuring width
CN116499362B (en) Steel plate size online measurement system
CN115375610A (en) Detection method and device, detection equipment and storage medium
CN111192246B (en) Automatic detection method for welding spots
TW202400993A (en) Pcb defect detection method, metrological measurement method and manufacture method for circuit board
CN114322780B (en) Method for monitoring mounting repeated precision on line
CN113469991B (en) Visual online detection method for laser welding spot of lithium battery tab
CN109238165B (en) 3C product profile tolerance detection method
CN115082538A (en) System and method for three-dimensional reconstruction of surface of multi-view vision balance ring part based on line structure light projection
CN113989513A (en) Method for recognizing reading of square pointer type instrument
TWI573098B (en) Wafer defect detection method
JPH076777B2 (en) Pattern contour detection method and length measuring apparatus using this method
TW202100991A (en) Appearance inspection management system, appearance inspection management device, appearance inspection management method and program which can support a user to select a feature amount used as a defect determination index in an appearance inspection device and set a threshold value for each feature amount
CN112763495A (en) Mobile phone battery size and appearance defect detection system and detection method
TWI449902B (en) Apparatus and method for detecting defective hole