CN116091404A - Welding line defect detection and pattern recognition method based on image-point cloud information fusion - Google Patents

Welding line defect detection and pattern recognition method based on image-point cloud information fusion Download PDF

Info

Publication number
CN116091404A
CN116091404A CN202211522237.7A CN202211522237A CN116091404A CN 116091404 A CN116091404 A CN 116091404A CN 202211522237 A CN202211522237 A CN 202211522237A CN 116091404 A CN116091404 A CN 116091404A
Authority
CN
China
Prior art keywords
welding line
point cloud
data
image
axis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211522237.7A
Other languages
Chinese (zh)
Inventor
于乃功
李洪政
徐乔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Technology
Original Assignee
Beijing University of Technology
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 Beijing University of Technology filed Critical Beijing University of Technology
Priority to CN202211522237.7A priority Critical patent/CN116091404A/en
Publication of CN116091404A publication Critical patent/CN116091404A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/764Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/77Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
    • G06V10/7715Feature extraction, e.g. by transforming the feature space, e.g. multi-dimensional scaling [MDS]; Mappings, e.g. subspace methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10028Range image; Depth image; 3D point clouds
    • 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)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a bonding wire defect detection and pattern recognition method based on image-point cloud information fusion, which can detect a defective bonding wire in a PCB and judge the defect pattern of the defective bonding wire. The method belongs to the defect detection field in the wire bonding manufacturing process, and aims to solve the problems of high labor intensity, low detection efficiency and the like in the existing defect detection method. The specific detection flow comprises the following steps: acquiring a depth image of a PCB, judging a welding line contour in the depth image through an OBB bounding box and an MAD algorithm, extracting depth data in the contour, and converting the depth data into point cloud to obtain point cloud data of the welding line; performing point cloud pretreatment and surface segmentation to finish accurate extraction of the welding line surface; constructing a defect classification model to finish detection of bonding wire defects and defect mode identification; and finally, calculating the curvature of the normal defect welding line to finish curvature evaluation of the normal welding line.

Description

Welding line defect detection and pattern recognition method based on image-point cloud information fusion
Technical field:
the invention belongs to the field of defect detection in the wire bonding production and manufacturing process. In particular to a method for detecting and judging the type of a defect mode by adopting an image-point cloud information fusion method for the defects of a bonding wire structure in lead welding.
Background
In the key production link of the semiconductor, the problem of detecting the quality of wire bonding still has some problems to be solved in a urgent way. The wire bonding technique is a process of connecting a first solder joint and a corresponding second solder joint using a metal wire. The defect of the bonding wire structure is a main factor influencing the function of the product and the yield of the product. By detecting whether the bonding wires have structural defects, the quality problem of the product bonding wires can be found, defect mode identification can be carried out according to the defective bonding wires, faults existing in the process flow can be qualitatively assessed, and engineers can conveniently carry out process improvement. Currently, wire bond defect detection is mainly divided into two categories: and detecting the structural defect of the welding wire by manual visual inspection and detecting the broken wire defect of the welding wire by image processing. The manual visual inspection mode has low efficiency, low speed and high labor intensity, and the defect mode which can be detected by image processing is single, so that a method capable of automatically detecting the defects of the bonding wire structure and identifying the defect mode is needed.
For the defect detection of bonding wires, at present, methods based on image processing, such as threshold segmentation, region growth, connected domain detection and the like, are adopted. The method relies on a traditional camera to collect a plane image, and can only detect the broken line defects of the welding line, and can not finish the detection of other types of defects of the welding line and the identification of defect modes, such as bending, line collapse, abnormal radian and the like.
Disclosure of Invention
The invention mainly aims to provide a bonding wire defect detection and pattern recognition method based on image-point cloud information fusion, which can be applied to the manufacturing process of wire bonding, replaces the existing manual visual inspection mode, realizes automatic detection of the quality problem of wire bonding in products by a machine, performs pattern recognition according to defective bonding wires, and completes classification of defective bonding wires. The present invention aims to solve the following problems:
1. the defect detection of the welding wire mainly adopts manual visual inspection, and has low efficiency, low speed and high labor intensity;
2. the existing bonding wire defect detection technology can only detect broken wires and cannot detect multiple types of defects such as bending and collapsing of the bonding wires;
3. the existing bonding wire defect detection method cannot complete the identification of multiple types of defect modes, and cannot give quantitative evaluation indexes aiming at normal bonding wires, so that the calculation of the radian of the bonding wires cannot be completed.
In order to solve the problems, the invention provides a bonding wire defect detection and pattern recognition method based on image-point cloud information fusion. And detecting defects such as broken lines, collapsed lines and bending on the divided welding line planes respectively, and calculating the space curvature and the curvature of the fitting mathematical model on the normal welding line.
The specific working flow of the invention is as follows:
step 1, scanning the whole PCB by using a 3D laser contour sensor to obtain a depth image;
step 2, dividing the PCB image and the background image by adopting methods of image enhancement, threshold segmentation and contour detection to obtain a depth image of the PCB;
step 3, carrying out image enhancement and threshold segmentation on the depth map of the PCB, carrying out contour detection on the image subjected to threshold segmentation, traversing and calculating an OBB bounding box of each contour, obtaining the length-width ratio of the bounding box, and distinguishing the welding line contour and other contours by adopting an absolute medium bit difference (MAD) algorithm;
step 4, extracting depth data in the outline of the welding line, performing matrix operation, obtaining point cloud data of the welding line, and preprocessing the point cloud data by adopting statistical filtering and PCA affine transformation;
step 5, carrying out curved surface segmentation on the preprocessed welding line data to complete segmentation of welding line curved surface data and redundant data and obtain complete welding line point cloud data;
step 6, projecting the welding line point cloud data constructed in the step 5 to an X-Z axis, calculating the size of the interval between adjacent points after projection, and adopting a 3-sigma algorithm to finish screening of in-line broken lines so as to obtain a non-broken line welding line point cloud data set;
step 7, performing FPS downsampling on the welding line point cloud data constructed in the step 6, completing estimation of normal vectors of each point in the downsampled data, constructing a defect classification model, and completing identification of a specific welding line defect mode;
and 8, calculating the space curvature of the normal welding line in the step 7, projecting the welding line data to the X-Z axis, fitting the mathematical model of the welding line by adopting a least square method, calculating the curvature of the fitting mathematical model, and finishing the evaluation of the curvature of the normal welding line.
In step 3, the OBB bounding box aspect ratio calculation and the wire bonding contour screening process are as follows, the contrast enhancement and sharpening process is performed on the PCB depth image, and the enhanced image threshold is segmented. And carrying out contour detection on the binarized image subjected to threshold segmentation, analyzing and calculating the characteristic value and the characteristic vector of each group of contour data by adopting PCA principal component, determining the characteristic vector corresponding to the calculated maximum characteristic value as an X axis, and carrying out affine transformation on the contour data to a new principal axis. Calculating maximum and minimum values of X axis and Y axis in affine transformation data, fitting an outline circumscribed rectangular frame, calculating length-width ratio of the rectangular frame, and marking as D i . The aspect ratio of all contours is calculated by traversing, and an aspect ratio data set D is generated.
Calculating the median of the data set D, denoted as D median Subtracting the median from the data set D to obtain a new set D ', calculating the median of D ', and marking the median as D ' median . D satisfying the formula (1) i Is the aspect ratio of the profile of the wire bond.
D i -D median >8*D' median (1)
In step 5, slicing the point cloud data preprocessed in step 4 along the X axis, wherein the slice thickness is the minimum interval between adjacent points of the X axis. Extracting all space points belonging to the same X scale, wherein the space points are distributed in the same Y-Z axis plane, drawing histograms of the extracted points at different heights of the Z axis, and marking the points with the largest distribution quantity at the same height as central points.
Traversing to calculate the distance l between the center point Pn and the rest of the points Pi i Angle alpha of Y-axis i And the normal vector included angle theta i Generates a descriptor set (l iii ). If three descriptors in Pi satisfy any two conditions in equation (2), equation (3) and equation (4), then the point is added to the set of center points. And traversing and calculating a center point set under each X-axis scale, and combining all the center point sets to obtain a final segmented weld line Qu Miandian cloud.
Figure SMS_1
α<5° (3)
θ<5° (4)
Middle l μ 、l σ The mean and variance of the distance descriptors, respectively.
In step 6, performing FPS downsampling on the wire bonding point cloud, where each group of downsampled wire bonding data has M points. And establishing a KD-Tree Tree structure for the down-sampling point cloud, randomly selecting a seed point from the first 5 points along the X-axis direction, selecting a seed point every K points, and selecting N seed points in total, wherein N is a positive integer. And inquiring K adjacent points near the seed point by utilizing the KD-Tree to form N local planes, calculating the normal vector of each point in the local planes, and marking the normal vector average value of the fitting planes as the normal vector of the planes. And calculating the included angle between the normal vector of the plane and the X axis. The included angle is larger than 90 degrees, the local plane descriptor is recorded as 1, and conversely, the local plane descriptor is recorded as-1. And completing the calculation of N local plane descriptors to generate a descriptor set Q.
Figure SMS_2
And (3) expressing part of the description subsets in the description subset generated in the step (1) as a formula (6). After the generation of the descriptor set, the defect mode is identified by looking up table 1.
Figure SMS_3
Figure SMS_4
The invention has the following advantages:
the method adopts the image-point cloud information fusion mode to detect the structural defects of the welding wires, thereby greatly reducing the labor cost and improving the welding wire detection efficiency. The method can also perform pattern recognition on the defect of the bonding wire, and is convenient for subsequent process evaluation and improvement. And (3) finishing coarse positioning of the welding line by adopting an OBB bounding box and an MAD algorithm, and performing matrix operation on the positioning information to obtain the point cloud information of the welding line. Aiming at obtaining point cloud information, a surface feature descriptor of a point with the maximum space density under a point cloud slice is provided, the point cloud can be subjected to space plane segmentation, redundant information is deleted, an accurate welding line plane is obtained, and detection of various defects of a welding line is more conveniently completed. The invention provides a normal vector direction differential descriptor based on multi-local plane fitting on the basis of wire bonding point cloud data segmentation, which is used for wire bonding defect detection and pattern recognition.
Drawings
FIG. 1 is a flow chart of wire bond defect detection;
fig. 2 (a) is a depth image acquired by a camera, (b) is a depth image of a PCB board, (c) is an image after threshold segmentation, and (d) is an image after contour detection and drawing of an OBB bounding box;
fig. 3 (a) is a point cloud before affine transformation, and (b) is a point cloud after affine transformation;
fig. 4 (a) shows a point cloud before surface segmentation and (b) shows a point cloud after surface segmentation;
fig. 5 (a) shows a normal wire, (b) shows a bending defect, (c) shows a collapse defect, (d) shows a single-ended wire break, (e) shows an in-line wire break, and (f) shows an arc anomaly.
Detailed Description
The following describes the method in detail with reference to the drawings and examples.
Fig. 1 is a flowchart of a method for detecting and identifying a bonding wire defect, firstly, a depth image of a PCB board is obtained, and positioning of a bonding wire contour is completed in the depth image. And converting the welding line depth map into point cloud data, and carrying out plane segmentation on the welding line point cloud to obtain a complete welding line plane. And detecting defects such as broken lines, collapsed lines and bending on the divided welding line planes respectively, and calculating the space curvature and the curvature of the fitting mathematical model on the normal welding line.
The method comprises the following specific steps:
1. collecting depth map of PCB
The image acquisition equipment adopts a 3D laser contour sensor of the sea-health robot, the resolution of an X axis is 30 micrometers, the field of view of a far vision is 90 millimeters, and the acquired depth image can be transmitted to a computer for processing in real time.
2. Welding wire contour positioning
The acquisition of the depth map of the PCB is shown in fig. 2 (a), the segmentation of the image of the PCB and the image background is carried out firstly to obtain the complete depth map of the PCB, the image enhancement and the threshold segmentation are carried out on the segmented image of the PCB, and the segmentation effect is shown in fig. 2 (c).
And (3) carrying out contour detection on the figure 2 (c), extracting each contour data, adopting PCA principal component analysis to calculate the characteristic value and the characteristic vector of each group of contour data, determining the characteristic vector corresponding to the calculated maximum characteristic value as an X axis, and carrying out affine transformation on the contour data to a new principal axis. Calculating maximum and minimum values of X axis and Y axis in affine transformed data, fitting an outline circumscribed rectangular frame, calculating aspect ratio of rectangular frame as shown in FIG. 2 (D), and recording as D i . The aspect ratio of all contours is calculated by traversing, and an aspect ratio data set D is generated.
Calculating the median of the data set D, denoted as D median Subtracting the median from the data set D to obtain a new set D ', calculating the median of D ', and marking the median as D ' median . D satisfying the formula (7) i Is the aspect ratio of the profile of the wire bond.
D i -D median >8*D' median (7)
And (3) extracting data in the outline of the welding line, and converting the depth data into point cloud through a formula (8).
Figure SMS_5
Wherein X, Y, Z is the coordinate of the point cloud in space, X and y are the coordinates of the pixel points in the depth map, z is the height information in the depth map, and X scale 、Y scale 、Z scale 、X offset 、Y offset 、Z offset Is a parameter inside the camera.
3. Curved surface segmentation
And firstly carrying out statistical filtering on the extracted welding line point cloud, wherein the number of neighborhood points used for designating calculation average distance in filtering parameters is 200, and the standard deviation of the average distance of the point cloud is 2.0. And (3) carrying out principal component analysis on the filtered point clouds, calculating characteristic values and characteristic vectors of each group of point clouds, determining the characteristic vector corresponding to the calculated maximum characteristic value as an X axis, and carrying out affine transformation on the point cloud space coordinates (X, Y, Z) by adopting a formula (9), wherein θ is an included angle between a new X axis and an original X axis, so as to obtain point clouds (X ', Y ', Z ') after affine transformation. The point cloud space pose before and after affine transformation is shown in fig. 3.
Figure SMS_6
And slicing the point cloud data after affine transformation along the X axis, wherein the slice thickness is the minimum interval between adjacent points of the X axis. Extracting all space points belonging to the same X scale, wherein the space points are distributed in the same Y-Z axis plane, drawing histograms of the extracted points at different heights of the Z axis, and marking the points with the largest distribution quantity at the same height as central points. Traversing to calculate the distance l between the center point Pn and the rest of the points Pi i Angle alpha of Y-axis i And the normal vector included angle theta i Generates a descriptor set (l iii ). If three descriptors in Pi are arbitrarily fullGiven the two conditions in equation (10), equation (11) and equation (12), this point is added to the set of center points.
Figure SMS_7
α i <5° (11)
θ i <5° (12)
Middle l μ 、l σ The mean and variance of the distance descriptors, respectively.
And traversing and calculating a center point set under each X-axis scale, and combining all the center point sets to obtain a final segmented weld line Qu Miandian cloud. The front and back effects of point cloud surface segmentation are shown in fig. 4.
4. Wire bond defect detection
Projecting the segmented Qu Miandian cloud to an X-Z axis, and calculating the X-axis distance between adjacent points by using a formula (13):
E i =x i -x i-1 (13)
calculating the average value of the spacing:
Figure SMS_8
calculating the variance of the spacing:
Figure SMS_9
if the distance E between adjacent points i Satisfying equation (14) indicates that the bonding wire is an in-line break.
E i >u+3σ (16)
In the formula (13), x i 、x i-1 X-axis coordinates of the point cloud, E i Is the distance between the X axes of adjacent point clouds; μ in formula (14) is an average value of the pitches; in the formula (15), σ is the variance of the pitch.
If the bonding wire is not broken in-line, performing FPS downsampling on the bonding wire point cloud, wherein each group of downsampled bonding wire data has M points. And establishing a KD-Tree Tree structure for the down-sampling point cloud, randomly selecting a seed point from the first 5 points along the X-axis direction, selecting a seed point every K points, and selecting N seed points in total, wherein N is a positive integer. And inquiring K adjacent points near the seed point by utilizing the KD-Tree to form N local planes, calculating the normal vector of each point in the local planes, and marking the normal vector average value of the fitting planes as the normal vector of the planes. And calculating the included angle between the normal vector of the plane and the X axis. The included angle is larger than 90 degrees, the local plane descriptor is recorded as 1, and conversely, the local plane descriptor is recorded as-1. And completing the calculation of N local plane descriptors to generate a descriptor set Q.
Figure SMS_10
Writing a part of the subset of descriptions in the subset of descriptions generated in (1) as formula (18). After the generation of the descriptor set, the defect mode is identified by looking up table 1.
Figure SMS_11
Wherein N is the number of descriptors, i and j are the number of descriptors 1 or-1, and N and m are the number of i and j respectively.
Table 1 depicts a sub-defect pattern comparison table
Figure SMS_12
6. Welding line curvature calculation
And after the defect detection of the bonding wire is finished, obtaining the normal bonding wire. For normal welding line point cloud data, firstly establishing a KD-Tree Tree structure, inquiring n adjacent points Pk of points Pi in the point cloud, establishing a adjacent point set X, decentering the set X, and constructing a covariance matrix. SVD (singular value decomposition) is carried out on the covariance matrix to obtain a characteristic value set lambda= { lambda 123 Calculating curvature by using a formula (19), and traversing to calculate the curvature of all space points to obtain a curvature set.
Figure SMS_13
{ lambda } in formula (19) 123 The characteristic values after covariance matrix decomposition are sequentially arranged from small to large. Delta is the calculated spatial curvature.
And projecting the data to the X-Z axis for the normal welding line point cloud data, performing data fitting on the projected welding line by adopting a least square method to obtain a corresponding mathematical model, and calculating the curvature of the mathematical model. Fitting model f (x) =w 0 +w 1 x+w 2 x 2 +w 3 x 3 The fitting condition is formula (20), and the curvature calculation method is formula (21).
Figure SMS_14
Figure SMS_15
/>
F (x) in formula (20) is a fitting model, z i Z-axis data, w, of point cloud i For the coefficients to be determined; in equation (21), K is the calculated curvature, and f', f″ are the first and second derivatives of the model f (x).

Claims (4)

1. A bonding wire defect detection and pattern recognition method based on image-point cloud information fusion is characterized by comprising the following steps:
step 1, scanning the whole PCB by using a 3D laser contour sensor to obtain a depth image;
step 2, dividing the PCB image and the background image by adopting methods of image enhancement, threshold segmentation and contour detection to obtain a depth image of the PCB;
step 3, carrying out image enhancement and threshold segmentation on the depth map of the PCB, carrying out contour detection on the image subjected to threshold segmentation, traversing and calculating an OBB bounding box of each contour, obtaining the length-width ratio of the bounding box, and distinguishing the welding line contour and other contours by adopting an absolute medium bit difference (MAD) algorithm;
step 4, extracting depth data in the outline of the welding line, performing matrix operation, obtaining point cloud data of the welding line, and preprocessing the point cloud data by adopting statistical filtering and PCA affine transformation;
step 5, carrying out curved surface segmentation on the preprocessed welding line data to complete segmentation of welding line curved surface data and redundant data and obtain complete welding line point cloud data;
step 6, projecting the welding line point cloud data constructed in the step 5 to an X-Z axis, calculating the size of the interval between adjacent points after projection, and adopting a 3-sigma algorithm to finish screening of in-line broken lines so as to obtain a non-broken line welding line point cloud data set;
step 7, performing FPS downsampling on the welding line point cloud data constructed in the step 6, completing estimation of normal vectors of each point in the downsampled data, constructing a defect classification model, and completing identification of a specific welding line defect mode;
and 8, calculating the space curvature of the normal welding line in the step 7, projecting the welding line data to the X-Z axis, fitting the mathematical model of the welding line by adopting a least square method, calculating the curvature of the fitting mathematical model, and finishing the evaluation of the curvature of the normal welding line.
2. The method for detecting and identifying the defects of the bonding wires based on the fusion of image-point cloud information as set forth in claim 1, wherein the step 3 is specifically as follows:
(1) Contour circumscribed rectangular frame length-width ratio calculation
Performing image enhancement and threshold segmentation on the PCB depth image, and performing contour detection on the binarized image after threshold segmentation; adopting PCA principal component analysis to calculate the characteristic value and characteristic vector of each group of contour data, determining the characteristic vector corresponding to the calculated maximum characteristic value as an X axis, and affine transforming the contour data to a new principal axis; calculating maximum and minimum values of X axis and Y axis in affine transformation data, fitting an outline circumscribed rectangular frame, calculating length-width ratio of the rectangular frame, and marking as D i The method comprises the steps of carrying out a first treatment on the surface of the Traversing and calculating the length-width ratio of all the contours to generate a length-width ratio data set D;
(2) Welding wire contour positioning
Calculating the median of the data set D, denoted as D median Subtracting the median from the data set D to obtain a new set D ', calculating the median of D ', and marking the median as D ' median The method comprises the steps of carrying out a first treatment on the surface of the D satisfying the formula (1) i Aspect ratio of the profile of the wire;
D i -D median >8*D' median (1)。
3. the method for detecting and identifying the defects of the bonding wires based on the fusion of the image-point cloud information as set forth in claim 1, wherein the step 5 is specifically as follows:
(1) Center point calculation
Slicing the point cloud data preprocessed in the step 4 along the X axis, wherein the slice thickness is the minimum interval between adjacent points of the X axis; extracting all space points belonging to the same X scale, wherein the space points are distributed in the same Y-Z axis plane, drawing histograms of the extracted points at different heights of the Z axis, and marking the points with the largest distribution quantity at the same height as central points;
(2) Point cloud descriptor computation
Traversing to calculate the distance l between the center point Pn and the rest of the points Pi i Angle alpha of Y-axis i And the normal vector included angle theta i Generates a descriptor set (l iii ) The method comprises the steps of carrying out a first treatment on the surface of the If three descriptors in Pi meet two conditions in the formula (2), the formula (3) and the formula (4) at random, adding the point into a center point set;
Figure FDA0003974243340000021
α i <5° (3)
θ i <5° (4)
middle l μ 、l σ Respectively mean and variance of the distance descriptors;
(3) Bonding wire curved surface extraction
And (3) traversing and calculating the center point set under each X-axis scale by adopting the methods in (1) and (2), and combining all the center point sets to obtain the final segmented weld line Qu Miandian cloud.
4. The method for detecting and identifying the defects of the bonding wires based on the fusion of the image-point cloud information as set forth in claim 1, wherein the step 7 is specifically as follows:
(1) Wire bonding defect descriptor calculation
Performing FPS downsampling on the welding line point cloud, wherein each group of downsampled welding line data has M points; establishing a KD-Tree Tree structure for the down-sampling point cloud, randomly selecting a seed point from the first 5 points along the X-axis direction, selecting a seed point every K points, and selecting N seed points in total, wherein N is a positive integer; inquiring K adjacent points near the seed point by utilizing the KD-Tree to form N local planes, calculating the normal vector of each point in the local planes, fitting the normal vector mean value of the planes, and recording as the plane normal vector; calculating an included angle between the normal vector of the plane and the X axis; the included angle is larger than 90 degrees, the local plane descriptor is recorded as 1, and conversely, the local plane descriptor is recorded as-1; completing the calculation of N local plane descriptors to generate a descriptor set Q;
Figure FDA0003974243340000031
(2) Defect pattern recognition
Writing a part of the description subset in the description subset generated in the step (1) as a formula (6); after the generation of the description subset, completing the identification of the defect mode by looking up the table 1;
Figure FDA0003974243340000032
wherein N is the number of descriptors, i and j are the number of descriptors 1 or-1, and N and m are the number of i and j respectively;
table 1 depicts a sub-defect pattern comparison table
Figure FDA0003974243340000033
/>
CN202211522237.7A 2022-12-01 2022-12-01 Welding line defect detection and pattern recognition method based on image-point cloud information fusion Pending CN116091404A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211522237.7A CN116091404A (en) 2022-12-01 2022-12-01 Welding line defect detection and pattern recognition method based on image-point cloud information fusion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211522237.7A CN116091404A (en) 2022-12-01 2022-12-01 Welding line defect detection and pattern recognition method based on image-point cloud information fusion

Publications (1)

Publication Number Publication Date
CN116091404A true CN116091404A (en) 2023-05-09

Family

ID=86205357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211522237.7A Pending CN116091404A (en) 2022-12-01 2022-12-01 Welding line defect detection and pattern recognition method based on image-point cloud information fusion

Country Status (1)

Country Link
CN (1) CN116091404A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117670823A (en) * 2023-12-05 2024-03-08 湖北东禾电子科技有限公司 PCBA circuit board element detection and evaluation method based on image recognition
CN117670887A (en) * 2024-02-01 2024-03-08 湘潭大学 Tin soldering height and defect detection method based on machine vision

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117670823A (en) * 2023-12-05 2024-03-08 湖北东禾电子科技有限公司 PCBA circuit board element detection and evaluation method based on image recognition
CN117670887A (en) * 2024-02-01 2024-03-08 湘潭大学 Tin soldering height and defect detection method based on machine vision
CN117670887B (en) * 2024-02-01 2024-04-09 湘潭大学 Tin soldering height and defect detection method based on machine vision

Similar Documents

Publication Publication Date Title
CN110992317B (en) PCB defect detection method based on semantic segmentation
CN116091404A (en) Welding line defect detection and pattern recognition method based on image-point cloud information fusion
CN111223088B (en) Casting surface defect identification method based on deep convolutional neural network
CN109191459B (en) Automatic identification and rating method for continuous casting billet macrostructure center segregation defect
CN111062915A (en) Real-time steel pipe defect detection method based on improved YOLOv3 model
CN109615654B (en) Method for measuring corrosion depth and area of inner surface of drainage pipeline based on binocular vision
CN111582294A (en) Method for constructing convolutional neural network model for surface defect detection and application thereof
CN109470149B (en) Method and device for measuring position and posture of pipeline
CN112037219A (en) Metal surface defect detection method based on two-stage convolution neural network
CN111860501B (en) High-speed rail height adjusting rod falling-out fault image identification method based on shape matching
CN113538503B (en) Solar panel defect detection method based on infrared image
CN113393426A (en) Method for detecting surface defects of rolled steel plate
CN114140439A (en) Laser welding seam feature point identification method and device based on deep learning
CN115272204A (en) Bearing surface scratch detection method based on machine vision
CN116228652A (en) Pipeline weld joint surface defect detection method based on three-dimensional point cloud curvature
CN112101138A (en) Bridge inhaul cable surface defect real-time identification system and method based on deep learning
CN115170484A (en) Characterization and classification method for surface defects of laser additive manufacturing workpiece
CN112241964A (en) Light strip center extraction method for line structured light non-contact measurement
CN113240668B (en) Image digital feature distribution-based generated molten pool image quality evaluation method
CN117115390A (en) Three-dimensional model layout method of power transformation equipment in transformer substation
CN116993804A (en) Stirrup size detection method and system based on LSM algorithm
CN113705564A (en) Pointer type instrument identification reading method
CN116432052B (en) Quality detection method for clamp for new energy automobile die
CN117324221A (en) Putty spraying method for curved surface component
CN116596987A (en) Workpiece three-dimensional size high-precision measurement method based on binocular vision

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination