A chip pin defect detection method based on point cloud registration
Through the method based on point cloud registration, the problem of slow manual detection and grayscale image being easily affected by light in chip pin defect detection is solved, and high-precision chip pin detection is achieved to meet the requirements of industrialization.
Patent Information
- Application Number
- CN202311446772.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-02
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology relies on manual detection in chip pin defect detection, which is slow and the grayscale detection results are easily affected by light, making it difficult to meet industrial requirements.
Using a method based on point cloud registration, the point cloud data of the chip pins is obtained through a laser camera, voxel grid mean downsampling and preprocessing are performed, projected into a grayscale image, and the collected point cloud is compared with the point cloud in the standard space For registration, the ICP algorithm is used for precise registration, and the Canny algorithm and ejugy operator are combined for edge extraction and detection.
It achieves high-precision chip pin defect detection, improves detection speed and accuracy, and meets industrial needs.
Smart Images

Figure CN117723563B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of chip pin defect detection, and in particular relates to a chip pin defect detection method based on point cloud registration. Background Art
[0002] In the field of printed circuit board integration and assembly, chip pin defect detection is the first step in the chip mounting process, and the chip pin qualification rate directly affects the qualification rate of the mounting process. Currently, due to factors such as the rich variety of chips, inconsistent sizes, and detection accuracy, it still relies on manual detection. Traditional manual detection accounts for a large proportion and the detection speed is slow.
[0003] Chip pin defect detection is a target detection problem in the field of computer vision. It is necessary to detect defects on each pin and give a qualified or unqualified judgment. The existing machine vision detection technology is based on grayscale images for defect detection. The grayscale value of the grayscale image is easily affected by light, making it difficult for the detection results to meet industrial requirements. Summary of the invention
[0004] The purpose of the present invention is to provide a chip pin defect detection method based on point cloud registration. The method is based on the mean downsampling of voxel grids, and then the collected point cloud and the point cloud of the standard space are registered into one space. The voxel grid is used to achieve high-precision point cloud registration, thereby realizing industrialized machine vision chip pin defect detection.
[0005] To achieve the above object, the present invention adopts the following technical solution:
[0006] A chip pin defect detection method based on point cloud registration comprises the following steps:
[0007] (1) Using a laser camera to obtain the point cloud at the chip pins and preprocessing the point cloud;
[0008] The preprocessing refers to downsampling based on the mean value of the voxel grid, which is used to project the point cloud into a grayscale image and correspond the grayscale pixels to the positions of the point cloud one by one, and specifically includes the following steps:
[0009] First, the number of voxels is solved; the number of all point clouds on the X-axis and Y-axis of the point cloud 3D data is obtained. Among them, max(x) and min(x) are the maximum and minimum values of the X-axis point cloud data, max(y) and min(y) are the maximum and minimum values of the Y-axis point cloud data, and a x 、a y is the division interval of the voxel grid on the X-axis and Y-axis, and <> is the rounding operation;
[0010] Secondly, the voxel grid is divided; according to the X-axis and Y-axis coordinates of the point cloud data, the point cloud data is divided into corresponding voxel grids, and the i-th voxel grid is Among them, m i 、n i For point cloud (x i ,y i ) is in the mth row and nth column of the voxel grid;
[0011] Then, the mean is downsampled; it is determined whether there is at least one point in each voxel whose Z-axis coordinate is outside the error range. If so, all the point coordinates in the voxel are set to 0; if not, the Z-axis coordinate values of the points in each voxel are averaged. Among them, k is the number of point clouds in the individual grid of the mth row and nth column, z i is the Z-axis coordinate of the point in the voxel grid;
[0012] Finally, the point cloud is projected into a grayscale image; according to the position of the voxel grid and the mean value in the voxel grid, the point cloud is projected into a grayscale image;
[0013] (2) Point cloud registration: finding the corresponding point set between the collected point cloud and the point cloud in the standard space, and registering the collected point cloud and the point cloud in the standard space into one space;
[0014] The point cloud of the standard space is obtained by drawing the standard space of the chip through three-dimensional software, and finding the point cloud of each edge of the chip package through the standard size parameter value of the chip;
[0015] The specific steps of registering the collected point cloud and the point cloud of the standard space into one space include the following:
[0016] First, edge extraction is performed on the grayscale image obtained by projecting the downsampled point cloud;
[0017] Secondly, the edge-extracted image is judged by the following model to find the image corresponding to the package; the model is rectan = max{rectan i |i=1,2,...,n};rectan i represents the edge-extracted image, and n is the number of edge-extracted images;
[0018] Then, the grayscale image of the package corresponding to the image is binarized and the corresponding edge is solved;
[0019] Finally, the collected point cloud is registered into the standard space using the ICP algorithm;
[0020] (3) Qualified pin judgment: According to the positioning parameters and size parameter requirements of the chip patch or welding area, find the patch or welding area corresponding to each pin, use the standard operator box to traverse the area to determine whether the corresponding pin has defects.
[0021] Furthermore, the error range is set according to a standard value of the height of the chip pins.
[0022] Furthermore, the edge extraction of the grayscale image is implemented using the Canny algorithm.
[0023] Furthermore, the threshold value of the binarization process is: thre = {pixel i |pixel i ≠0}, pixel i is a non-zero pixel value.
[0024] Furthermore, the ejugy operator is used to solve the edge of the output package; the specific solution process is to use the ejugy operator to traverse the edge of the grayscale image corresponding to the package; the ejugy operator is a 2×2 matrix, and the grayscale value of the edge of the corresponding pixel in the traversal process is input in the upper left corner, and the remaining positions are the grayscale images of the pixels adjacent to the pixel corresponding to each other.
[0025] The present invention uses a voxel-based method to perform mean downsampling on point cloud data, so that the data is convenient for subsequent registration and detection; the point cloud data obtained by data preprocessing is registered in the standard space; the standard space is a point cloud set obtained according to the standard parameters of the chip; in this process, the downsampled data is first projected into a grayscale image, and then a maximum edge extraction method and an ejugy operator are used to extract an edge of the chip package, and finally the point cloud data of the extracted edge and the edge data in the standard space are used as the point cloud set to be spliced, and the ICP algorithm is used for solution. Pin defect detection is performed in the registered space. In this step, a standard operator frame is used to search at the end of the pin to determine whether the pin is defective; machine vision chip pin defect detection is realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a schematic diagram of the process of the present invention.
[0027] Figure 2 Schematic diagram of the relationship between the output of the ejugy operator of the present invention and the corresponding edge.
[0028] Figure 3 This is a schematic diagram of the chip packaging test results of the present invention.
[0029] Figure 4 It is a schematic diagram of the detection result of the chip pins according to the present invention. DETAILED DESCRIPTION
[0030] like Figure 1 As shown, a chip pin defect detection method based on point cloud registration provided in this embodiment includes the following steps:
[0031] (1) Using a laser camera to obtain point cloud 3D data at the chip pins and preprocessing the point cloud 3D data;
[0032] The preprocessing refers to downsampling based on the mean value of the voxel grid, which is used to project the point cloud into a grayscale image and correspond the grayscale pixels to the positions of the point cloud one by one, and specifically includes the following steps:
[0033] First, the number of voxels is solved; the number of all point clouds on the X-axis and Y-axis of the point cloud 3D data is obtained. Among them, max(x) and min(x) are the maximum and minimum values of the X-axis point cloud data, max(y) and min(y) are the maximum and minimum values of the Y-axis point cloud data, and a x 、a y is the interval of the voxel grid of the X-axis and Y-axis. The value is greater than the acquisition accuracy of the laser camera and less than the detection accuracy. The detection accuracy is set according to the chip welding requirements. <> is the rounding up operation;
[0034] Secondly, the voxel grid is divided; according to the X-axis and Y-axis coordinates of the point cloud data, the point cloud data is divided into corresponding voxel grids, and the i-th voxel grid is Among them, m i 、n i For point cloud (x i ,y i ) is in the mth row and nth column of the voxel grid;
[0035] Then, the mean is downsampled; it is determined whether there is at least one point in each voxel whose Z-axis coordinate is outside the error range. If so, it means that it is not within the error range, and the coordinates of all points in the voxel are set to 0; if not, the Z-axis coordinate values of the points in each voxel are averaged. Among them, k is the number of point clouds in the individual grid of the mth row and nth column, z i is the Z-axis coordinate of the point in the voxel grid;
[0036] The error range is set according to the standard value of the height of the chip pins. The standard value of this embodiment is 0.235 mm, and the error range is 0.225-0.245 mm.
[0037] Finally, the point cloud is projected into a grayscale image; the point cloud is projected into a grayscale image according to the position of the voxel grid and the mean value in the voxel grid.
[0038] (2) Point cloud registration: finding the corresponding point set between the collected point cloud and the point cloud in the standard space, and registering the collected point cloud and the point cloud in the standard space into one space;
[0039] The point cloud of the standard space is obtained by drawing the standard space of the chip through three-dimensional software, and finding the point cloud set of each edge of the chip package through the standard size parameter value of the chip.
[0040] The specific steps of registering the collected point cloud and the point cloud of the standard space into one space include the following:
[0041] First, edge extraction is performed on the grayscale image obtained by downsampling point cloud projection. In this embodiment, image processing is performed on the grayscale image using Canny or other edge extraction algorithms, and then the corresponding graphics are output;
[0042] Secondly, the edge-extracted image is judged by the following model to find the image corresponding to the package; the model is rectan = max{rectan i |i=1,2,...,n};rectan i represents the edge-extracted image, and n is the number of edge-extracted images;
[0043] Then, the grayscale image of the package corresponding to the image is binarized and the corresponding edge is solved;
[0044] The threshold value of the binary processing is: thre = {pixel i |pixel i ≠0}, pixel i is a non-zero pixel value.
[0045] This embodiment uses the ejugy operator to solve the edges of the output package, such as Figure 2 As shown; the specific solution process is to use the ejugy operator to traverse the edge of the grayscale image corresponding to the package; the ejugy operator is a 2×2 matrix, the upper left corner inputs the grayscale value of the edge of the corresponding pixel during the traversal process, and the remaining positions are the grayscale images of the pixels adjacent to the pixel corresponding to each other.
[0046] Finally, the correspondence between the collected point cloud and the voxel grid is used to obtain the edge set corresponding to the point cloud in the standard space. Finally, based on the corresponding edge set, the collected point cloud is aligned to the standard space using the ICP algorithm, as shown in Figure 3 As shown, Figure 3 The corresponding images are edge set detection, encapsulation edge detection, and encapsulation detection.
[0047] (3) Qualified pin judgment: According to the positioning parameters and size parameter requirements of the chip patch or welding area, find the patch or welding area corresponding to each pin, use the standard operator box to traverse the area to determine whether the corresponding pin has defects, such as Figure 4 As shown, Figure 4 The corresponding images are the original grayscale image, the grayscale image after point cloud registration, and the detection results. The ones with white frames in the detection results are qualified pin welding, and the rest are unqualified pin welding.
[0048] The above description is only a preferred implementation manner of the present invention, but the protection scope of the present invention is not limited thereto, and any modification and replacement based on the technical solution and inventive concept provided by the present invention should be included in the protection scope of the present invention.
Claims
1. A chip pin defect detection method based on point cloud registration, characterized in that: The steps include: (1) Using a laser camera to obtain the point cloud at the chip pins and preprocessing the point cloud; The preprocessing refers to downsampling based on the mean value of the voxel grid, which is used to project the point cloud into a grayscale image and correspond the grayscale pixels to the positions of the point cloud one by one, and specifically includes the following steps: First, the number of voxels is solved; the number of all point clouds on the X-axis and Y-axis of the point cloud 3D data is obtained. Among them, max(x) and min(x) are the maximum and minimum values of the X-axis point cloud data, max(y) and min(y) are the maximum and minimum values of the Y-axis point cloud data, and a x 、a y is the division interval of the voxel grid on the X-axis and Y-axis, and <> is the rounding operation; Secondly, the voxel grid is divided; according to the X-axis and Y-axis coordinates of the point cloud data, the point cloud data is divided into corresponding voxel grids, and the i-th voxel grid is Among them, m i 、n i For point cloud (x i ,y i ) is in the mth row and nth column of the voxel grid; Then, the mean is downsampled; it is determined whether there is at least one point in each voxel whose Z-axis coordinate is outside the error range. If so, all the point coordinates in the voxel are set to 0; if not, the Z-axis coordinate values of the points in each voxel are averaged. Among them, k is the number of point clouds in the individual grid of the mth row and nth column, z i is the Z-axis coordinate of the point in the voxel grid; Finally, the point cloud is projected into a grayscale image; according to the position of the voxel grid and the mean value in the voxel grid, the point cloud is projected into a grayscale image; (2) Point cloud registration: finding the corresponding point set between the collected point cloud and the point cloud in the standard space, and registering the collected point cloud and the point cloud in the standard space into one space; The point cloud of the standard space is obtained by drawing the standard space of the chip through three-dimensional software, and finding the point cloud of each edge of the chip package through the standard size parameter value of the chip; The specific steps of registering the collected point cloud and the point cloud of the standard space into one space include the following: First, edge extraction is performed on the grayscale image obtained by projecting the downsampled point cloud; Secondly, the edge extracted image is judged by the following model to find the image corresponding to the package; the model is rectan = max{rectan i |i=1,2,...,n};rectan i represents the edge-extracted image, and n is the number of edge-extracted images; Then, the grayscale image of the packaged image is binarized and the corresponding edge is solved. The ejugy operator is used to solve the corresponding edge. The specific solution process is to use the ejugy operator to traverse the edge of the grayscale image corresponding to the package. The ejugy operator is a 2×2 matrix. The grayscale value of the edge of the corresponding pixel in the traversal process is input in the upper left corner, and the remaining positions are the grayscale images of the pixels adjacent to the pixel. Finally, the collected point cloud is registered into the standard space using the ICP algorithm; (3) Qualified pin judgment: According to the positioning parameters and size parameter requirements of the chip patch or welding area, find the patch or welding area corresponding to each pin, use the standard operator box to traverse the area to determine whether the corresponding pin has defects.
2. The chip pin defect detection method based on point cloud registration according to claim 1 is characterized in that: The error range is set according to the standard value of the height of the chip pins.
3. The chip pin defect detection method based on point cloud registration according to claim 1 is characterized in that: The edge extraction of grayscale images is implemented using the Canny algorithm.
4. The chip pin defect detection method based on point cloud registration according to claim 1 is characterized in that: The threshold value of the binary processing is: thre = {pixel i |pixel i ≠0}, pixel i is a non-zero pixel value.
