A needle mark detection machine determination method, system, storage medium and computer

By enhancing pre-processing and fractal processing technology, the needle mark position and area are extracted, which solves the problem of high misjudgment rate in needle mark detection in the existing technology, achieves higher detection accuracy and accuracy, and provides timely feedback through accuracy rate The machine was adjusted to improve the detection effect.

CN117474913BActive Publication Date: 2024-09-10ZHONGSHAN WEILAI LIGHTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311811289.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2024-09-10
Estimated Expiration
2043-12-27

AI Technical Summary

Technical Problem

Existing needle mark inspection machines mainly rely on simple image comparison to determine whether needle marks are qualified or not, and lack feedback, resulting in non-unique judgment standards and a high misjudgment rate, which affects detection accuracy and machine adjustment.

Method used

Enhanced preprocessing and fractal processing technology are used to obtain the original image after the probe contacts the solder joint, extract the position and area of ​​the needle mark, and determine whether the needle mark meets the preset conditions through the differential box dimension algorithm and singular value analysis, and calculate Accuracy, adjust the machine regularly to improve detection accuracy.

Benefits of technology

It improves the accuracy and accuracy of needle mark detection, reduces the misjudgment rate, and provides a machine detection feedback mechanism to ensure detection results and is suitable for large-scale promotion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117474913B
    Figure CN117474913B
Patent Text Reader

Abstract

The present invention provides a method, system, storage medium and computer for determining a needle mark detection machine. The method includes: obtaining an original image after the probe contacts the solder joint, and performing enhanced preprocessing on the original image; determining the border and contact area of ​​the solder joint based on the preprocessed image; performing fractal processing on the image to extract the needle mark position and needle mark area in the image; judging whether the needle mark position and needle mark area meet preset conditions at the same time based on the contact area, if the preset conditions are met at the same time, the needle mark is qualified, if the preset conditions are not met at the same time, the needle mark is unqualified; calculating the accuracy of the needle mark qualified image and the needle mark unqualified, and adjusting the machine according to whether the accuracy meets the requirements. The needle mark detection machine determination method provided by the present invention improves the qualified detection efficiency of needle marks, provides feedback for machine adjustment, and improves the accuracy of machine detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of needle mark detection machine determination, and in particular to a needle mark detection machine determination method, system, storage medium and computer. Background Art

[0002] Wafer testing is a crucial link in the semiconductor production process. Wafer testing can select chips with functional defects in the wafer in advance, preventing these chips with functional defects from entering the later chip packaging process.

[0003] During the wafer inspection process, probe cards are mainly used. Electrical testing is performed by connecting multiple probes on the probe card to the chip on the wafer. The chip is provided with solder joints corresponding to the probes. After the probe contacts the solder joints, a certain pressure is applied, which will leave needle marks on the solder joints. By detecting the needle marks, it can be determined whether the contact between the probe and the solder joint is qualified.

[0004] At present, the pass or fail of needle marks is mainly determined manually. The manual judgment of chips is highly subjective, the judgment standard is not unique, and it is easy to make misjudgments. Although there are some needle mark judgment machines on the market, which have improved the objectivity of needle mark judgment to a certain extent, the current judgment standard of needle marks by machines is mainly simple image comparison, which is relatively simple in form, lacks feedback, and lacks reference for machine adjustment, which affects the further use of the detection machine. Summary of the invention

[0005] Based on this, the purpose of the present invention is to provide a needle mark detection machine determination method, system, storage medium and computer to solve the technical problems existing in the prior art.

[0006] The present invention provides a needle mark detection machine determination method, comprising:

[0007] Acquire an original image after the probe contacts the solder joint, and perform enhancement preprocessing on the original image to obtain an image to be extracted;

[0008] Based on the image to be extracted, determining a border of the welding point, wherein a contact area is preset in the border;

[0009] Performing fractal processing on the image to be extracted to extract the needle mark position and needle mark area in the image to be extracted;

[0010] Based on the contact area, judging whether the needle mark position and the needle mark area simultaneously meet preset conditions, if both meet the preset conditions, judging the needle mark is qualified, if not, judging the needle mark is unqualified;

[0011] Acquire a number of images for which needle marks are judged to be qualified and images for which needle marks are judged to be unqualified, calculate a first accuracy rate based on the number of images for which needle marks are qualified, and calculate a second accuracy rate based on the number of images for which needle marks are unqualified;

[0012] Regularly checking whether the first accuracy rate and the second accuracy rate both meet preset requirements. If both meet the preset requirements, it is determined that the needle mark detection accuracy rate of the machine is qualified and the machine does not need to be adjusted. Otherwise, it is determined that the needle mark detection accuracy rate of the machine is unqualified and the machine is adjusted.

[0013] The step of performing fractal processing on the image to be extracted to extract the needle mark position and the needle mark area in the image to be extracted comprises:

[0014] Obtaining the box dimension of each pixel in the image to be extracted according to a differential box dimension algorithm;

[0015] Obtaining a box dimension matrix of the image to be extracted according to the box dimension corresponding to each pixel point;

[0016] Extracting singular values ​​from the box dimension matrix, and finding the linear fractal dimension relationship between the background image and the needle mark image in the image to be extracted according to the singular values, so as to obtain the characteristic dimension values ​​of the background image and the needle mark image;

[0017] Comparing the characteristic dimension values ​​of the background image and the needle mark image with preset dimension values ​​to separate the needle mark shape and needle mark position in the image to be extracted;

[0018] The needle mark area is calculated according to the needle mark shape.

[0019] Preferably, the step of performing enhancement preprocessing on the original image comprises:

[0020] Normalizing the pixels of the original image and drawing a grayscale histogram of the original image;

[0021] Calculating a first grayscale range of pixels in the original image and a second grayscale range of pixels of a needle mark contour in the original image according to a grayscale histogram of the original image;

[0022] Performing segmented combined stretching transformation on the pixel grayscale of the needle mark contour to obtain a transformed image, and calculating a third grayscale range of the pixel points in the transformed image and a fourth grayscale range of the pixel points of the needle mark contour in the transformed image;

[0023] The grayscale values ​​of pixels in the transformed image are calculated according to the first grayscale range, the second grayscale range, the third grayscale range, and the fourth grayscale range.

[0024] Preferably, the grayscale value of each pixel in the transformed image is expressed as:

[0025]

[0026] In the formula, Represents the gray value of pixel (i, j) in the transformed image, Represents the gray value of pixel (i, j) in the original image, Read directly from the grayscale histogram in the original image, ( ) represents the first grayscale range, ( ) represents the second grayscale range, ( ) represents the third grayscale range, ( ) represents the fourth grayscale range, is the grayscale calculation coefficient, is the stretch transformation coefficient.

[0027] Preferably, the expression of the box dimension is:

[0028]

[0029] In the formula, is the box dimension of the pixel (i, j) in the image to be extracted, is the number of boxes in the image to be extracted, , M is the fractal dimension scale, and Y is the matrix window of the image to be extracted.

[0030] Preferably, the step of judging whether the needle mark position and the needle mark area satisfy preset conditions at the same time based on the contact area, judging the needle mark to be qualified if both conditions are satisfied, and judging the needle mark to be unqualified if both conditions are not satisfied, comprises:

[0031] Obtaining the boundary range of the contact area, determining whether the needle mark position is within the boundary range of the contact area, and if so, determining that the needle mark position is qualified;

[0032] Calculating the area of ​​the contact region according to the boundary range of the contact region;

[0033] Determine whether the ratio of the area of ​​the needle mark to the area of ​​the contact region is within a preset range, and if the ratio is within the preset range, determine that the area of ​​the needle mark is qualified;

[0034] If both the needle mark position and the needle mark area are judged to be qualified, the needle mark is judged to be qualified, otherwise the needle mark is judged to be unqualified.

[0035] Preferably, the expression of the first accuracy is:

[0036]

[0037] The expression of the second accuracy is:

[0038]

[0039] Wherein: YP is the image that the machine judges as qualified with needle marks and is actually a qualified image, YN is the image that the machine judges as qualified with needle marks but is actually an unqualified image, DP is the image that the machine judges as unqualified with needle marks and is actually an unqualified image, DN is the image that the machine judges as unqualified with needle marks but is actually a qualified image.

[0040] Preferably, the needle mark detection machine determination method further comprises: calculating a comprehensive accuracy rate according to the first accuracy rate and the second accuracy rate;

[0041] Regularly checking whether the first accuracy rate, the second accuracy rate and the comprehensive accuracy rate all meet preset requirements; if they all meet the preset requirements, it is determined that the needle mark detection accuracy rate of the machine is qualified and the machine does not need to be adjusted; otherwise, it is determined that the needle mark detection accuracy rate of the machine is unqualified and the machine is adjusted;

[0042] The expression of the comprehensive accuracy is:

[0043]

[0044] In the formula, H is the comprehensive accuracy, F is the first accuracy, and G is the second accuracy.

[0045] The present invention also provides a needle mark detection machine determination system, comprising:

[0046] A preprocessing module, used to obtain an original image after the probe contacts the solder joint, and perform enhancement preprocessing on the original image to obtain an image to be extracted;

[0047] A determination module, configured to determine a border of the welding point based on the image to be extracted, wherein a contact area is preset in the border;

[0048] A fractal module, used for performing fractal processing on the image to be extracted, so as to extract the needle mark position and the needle mark area in the image to be extracted;

[0049] A first judgment module, used for judging whether the needle mark position and the needle mark area satisfy preset conditions at the same time based on the contact area, and if both conditions are satisfied, judging the needle mark as qualified, and if both conditions are not satisfied, judging the needle mark as unqualified;

[0050] A calculation module, used for acquiring a number of images for which needle marks are judged to be qualified and images for which needle marks are judged to be unqualified, calculating a first accuracy rate according to the images for which needle marks are qualified, and calculating a second accuracy rate according to the images for which needle marks are unqualified;

[0051] A second judgment module is used to regularly detect whether the first accuracy rate and the second accuracy rate both meet the preset requirements. If both meet the preset requirements, it is determined that the needle mark detection accuracy rate of the machine is qualified and the machine does not need to be adjusted. Otherwise, it is determined that the needle mark detection accuracy rate of the machine is unqualified and the machine is adjusted;

[0052] The step of performing fractal processing on the image to be extracted to extract the needle mark position and the needle mark area in the image to be extracted comprises:

[0053] Obtaining the box dimension of each pixel in the image to be extracted according to a differential box dimension algorithm;

[0054] Obtaining a box dimension matrix of the image to be extracted according to the box dimension corresponding to each pixel point;

[0055] Extracting singular values ​​from the box dimension matrix, and finding the linear fractal dimension relationship between the background image and the needle mark image in the image to be extracted according to the singular values, so as to obtain the characteristic dimension values ​​of the background image and the needle mark image;

[0056] Comparing the characteristic dimension values ​​of the background image and the needle mark image with preset dimension values ​​to separate the needle mark shape and needle mark position in the image to be extracted;

[0057] The needle mark area is calculated according to the needle mark shape.

[0058] The present invention further provides a storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned needle mark detection machine determination method is implemented.

[0059] The present invention also proposes a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the needle mark detection machine determination method when executing the computer program.

[0060] Compared with the prior art, the present invention has the following beneficial effects: the needle mark detection machine determination method provided by the present invention first obtains the original image after the probe contacts the solder joint, performs enhancement preprocessing on the original image, obtains the image to be extracted, effectively enhances the display of the needle mark in the image, and strengthens the image interpretation and recognition effect; obtains the contact area boundary and area of ​​the solder joint, and then extracts the needle mark position and needle mark area in the image to be extracted through fractal processing, extracts the target in the image through the fractal method, effectively reduces the interference caused by the complex background and large noise in the image, improves the accuracy of target area extraction, and judges whether the needle mark position and needle mark area meet the preset conditions at the same time based on the contact area. If the preset conditions are met at the same time, the needle mark is qualified, and if the preset conditions are not met at the same time, the needle mark is unqualified; the present application inspects the needle mark based on image recognition, effectively improves the accuracy of needle mark inspection, and reduces the misjudgment rate. Furthermore, the accuracy of the machine in judging qualified and unqualified needle mark images is obtained, and feedback is provided based on the accuracy. Based on the feedback results, it is possible to promptly discover whether the machine's detection accuracy meets the requirements, and to adjust the detection machine in time to improve the machine's detection effect, which is suitable for large-scale promotion.

[0061] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 It is a flow chart of the needle mark detection machine determination method in the first embodiment of the present invention;

[0063] Figure 2 FIG. 4 is a structural block diagram of a computer in a fourth embodiment of the present invention.

[0064] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0065] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0066] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0067] Embodiment 1

[0068] See also Figure 1 , which shows a needle mark detection machine determination method in the first embodiment of the present invention, and the needle mark detection machine determination method specifically includes steps S10 to S60:

[0069] S10, acquiring an original image after the probe contacts the welding point, and performing enhancement preprocessing on the original image to obtain an image to be extracted;

[0070] In specific implementation, after the solder joints on the wafer contact with the probe, needle marks will be formed on the solder joints. Whether the needle marks are qualified or not directly reflects the contact between the probe and the solder joints. Therefore, it is necessary to detect the needle marks of the probe and the solder joints. Optionally, first obtain the original image after the probe and the solder joint contact. The original image can be taken by a CMOS camera or a CCD camera. After the original image is obtained, the original image is enhanced and pre-processed to obtain the image to be extracted, wherein the image to be extracted contains the background image and the image of the needle mark outline.

[0071] Optionally, enhancement processing is mainly used to suppress the background, enhance the display of needle marks, adjust image clarity, improve brightness and darkness uniformity, retain the required amount of information, and enhance image interpretation and recognition effects.

[0072] Specifically, the enhancement preprocessing step includes: normalizing the pixels of the original image and drawing the grayscale histogram of the original image; normalizing the pixels in the original image so that the value range of the pixels is [0, 1]. The grayscale histogram of the image can be drawn by MATLABT.

[0073] According to the grayscale histogram of the original image, the first grayscale range of each pixel in the original image and the second grayscale range of the needle mark contour pixel in the original image are calculated; specifically, the grayscale value of each pixel in the original image can be obtained according to the histogram. , assuming that the first grayscale range is determined according to the grayscale value of each pixel in the original image ( ), the second grayscale range of the needle mark contour pixel point is further determined by the peak of the histogram as ( ), it can be understood that, since the needle mark outline is included in the original image, , .

[0074] The pixel grayscale of the needle mark contour is subjected to segmented combined stretching transformation to obtain a transformed image, and the third grayscale range of the pixel points in the transformed image and the fourth grayscale range of the pixel points of the needle mark contour in the transformed image are calculated; the pixel grayscale of the needle mark contour is stretched to obtain a transformed image, the purpose of which is to highlight the needle mark contour in the original image and expand the grayscale range of the needle mark contour; assuming that the third grayscale range of the pixel points in the transformed image after the stretching transformation is ( ), the fourth grayscale range of the pixel points in the needle mark contour in the transformed image after stretching transformation is ( ).

[0075] The grayscale value of each pixel in the transformed image is calculated according to the first grayscale range, the second grayscale range, the third grayscale range, and the fourth grayscale range. Optionally, the grayscale value of each pixel in the transformed image is expressed as:

[0076]

[0077] In the formula, Represents the gray value of pixel (i, j) in the transformed image, Represents the gray value of pixel (i, j) in the original image, Read directly from the grayscale histogram in the original image, ( ) represents the first grayscale range, ( ) represents the second grayscale range, ( ) represents the third grayscale range, ( ) represents the fourth grayscale range, is the grayscale calculation coefficient, is the stretch transformation coefficient.

[0078] S20, determining a border of the welding point based on the image to be extracted, wherein a contact area is preset in the border;

[0079] In a specific implementation, the Canny edge detection algorithm can be used to perform image edge detection to obtain the solder joint border information in the image to be extracted, wherein the solder joint border represents the size of the solder joint, and a contact area is preset within the solder joint border, and the contact area is a qualified connection area between the probe and the solder joint; preferably, the shape of the solder joint border is coaxial with the edge shape of the contact area and has a similar shape, and the edge of the contact area is separated from the solder joint border by a preset distance, and preferably, the preset distance can be 6 microns.

[0080] S30, performing fractal processing on the image to be extracted to extract the needle mark position and needle mark area in the image to be extracted;

[0081] In specific implementation, the differential box dimension algorithm can be used to perform fractal operations on the image. The differential box dimension algorithm has the advantages of being agile, easy to implement, and easy to understand. Specifically, the box dimension of each pixel in the image to be extracted is obtained according to the differential box dimension algorithm. When calculating the box dimension, the image matrix window Y and the fractal dimension scale M need to be considered. The image matrix window Y can be understood as the size of the image being Y*Y pixels; the fractal dimension scale is to divide the image into M*M sub-blocks; specifically, the expression of the box dimension is:

[0082]

[0083] In the formula, is the box dimension of the pixel (i, j) in the image to be extracted, is the number of boxes of the image to be extracted, that is, the number of grids under the fractal dimension scale M, , M is the fractal dimension scale, and Y is the matrix window of the image to be extracted.

[0084] The box dimension matrix of the image to be extracted is obtained according to the box dimension corresponding to each pixel point; specifically, the box dimension corresponding to each pixel is calculated according to the expression of the box dimension, and a box dimension matrix of the image to be extracted is obtained.

[0085] Extract the singular values ​​in the box dimension matrix, and find the linear fractal dimension relationship between the background image and the needle mark image in the image to be extracted based on the singular values, so as to obtain the characteristic dimension values ​​of the background image and the needle mark image; compare the characteristic dimension values ​​of the background image and the needle mark image with the preset dimension values ​​to separate the needle mark shape and the needle mark position in the image to be extracted, and calculate the needle mark area based on the needle mark shape.

[0086] In a specific implementation, the preset dimension value can be the average dimension value of all pixel box dimensions, and feature dimension values ​​greater than the average dimension value are ignored, thereby separating the shape of the needle mark in the image to be extracted, and determining the relative position of the needle mark within the frame based on the frame of the solder joint. By performing fractal processing on the image to be extracted, the interference caused by complex background and large noise in the image is effectively reduced, thereby improving the accuracy of target area extraction.

[0087] S40, based on the contact area, determining whether the needle mark position and the needle mark area simultaneously meet preset conditions, if both meet the preset conditions, determining that the needle mark is qualified, if not both meet the preset conditions, determining that the needle mark is unqualified;

[0088] In specific implementation, the boundary range of the contact area is obtained to determine whether the needle mark position is within the boundary range of the contact area. If it is within the boundary range, it means that the contact point between the probe and the solder joint is far away from the edge of the solder joint, and good electrical contact can be formed. The needle mark position is determined to be qualified. If it is outside the boundary range, it means that the contact point between the probe and the solder joint is close to the edge of the solder joint, which is prone to virtual contact and poor contact. The needle mark position is determined to be unqualified. Optionally, in this embodiment, the position of the needle mark and the edge of the solder joint should be no less than 6 microns.

[0089] Furthermore, the area of ​​the contact area is calculated based on the boundary range of the contact area; it is determined whether the ratio of the needle mark area to the area of ​​the contact area is within a preset range; if the area ratio is within the preset range, the needle mark area is determined to be qualified; if both the needle mark position and the needle mark area are determined to be qualified, the needle mark is determined to be qualified, otherwise the needle mark is determined to be unqualified. Optionally, in this embodiment, the ratio of the needle mark area to the contact area should be within the range of 10%-25%.

[0090] S50, obtaining a plurality of images for which needle marks are judged to be qualified and images for which needle marks are judged to be unqualified, calculating a first accuracy rate based on the plurality of images for which needle marks are qualified, and calculating a second accuracy rate based on the plurality of images for which needle marks are unqualified.

[0091] In a specific implementation, according to the determination rule of step S40, a number of images for which needle marks are determined to be qualified and images for which needle marks are determined to be unqualified are obtained, and the first accuracy rate and the second accuracy rate are calculated.

[0092] Optionally, the expression of the first accuracy is:

[0093]

[0094] The expression of the second accuracy is:

[0095]

[0096] In the formula: YP is the image in which the machine judges that the needle mark is qualified and is actually a qualified image, YN is the image in which the machine judges that the needle mark is qualified but is actually an unqualified image, DP is the image in which the machine judges that the needle mark is unqualified and is actually an unqualified image, DN is the image in which the machine judges that the needle mark is unqualified but is actually a qualified image. It can be understood that whether the needle mark image is actually qualified can be determined by specific inspection by the staff, which will not be repeated here.

[0097] Furthermore, in order to improve the accuracy of the detection machine, the first accuracy and the second accuracy are considered at the same time to calculate the comprehensive accuracy. Optionally, the expression of the comprehensive accuracy is:

[0098]

[0099] Wherein, H is the comprehensive accuracy considering the first accuracy and the second accuracy, F is the first accuracy, and G is the second accuracy.

[0100] S60, regularly checking whether the first accuracy rate and the second accuracy rate both meet the preset requirements. If both meet the preset requirements, it is determined that the needle mark detection accuracy rate of the machine is qualified and the machine does not need to be adjusted. Otherwise, it is determined that the needle mark detection accuracy rate of the machine is unqualified and the machine is adjusted.

[0101] During specific implementation, the first accuracy rate and the second accuracy rate of the test machine are regularly checked to see if they meet preset requirements. Optionally, the preset requirements are: the first accuracy rate and the second accuracy rate are at least greater than 98%. Further, considering the influence of the comprehensive accuracy rate, the comprehensive accuracy rate is at least greater than 95%. If the first accuracy rate and the second accuracy rate are both greater than 98%, and the comprehensive accuracy rate is greater than 95%, then it is determined that the accuracy of the machine during needle mark detection is high and meets the detection requirements, and the machine does not need to be adjusted. Otherwise, it is determined that the accuracy of the machine is not high and does not meet the detection requirements, and the machine needs to be adjusted accordingly. The adjustment methods include at least: precision adjustment, probe replacement, program optimization, etc. For example, an image determined by the machine as having qualified needle marks may be found to have unqualified needle marks by manual inspection. This may be because the precision requirements of the machine are low, and the machine precision can be appropriately improved.

[0102] To summarize, the needle mark detection machine determination method provided in the present embodiment first obtains the original image after the probe contacts the solder joint, performs enhancement preprocessing on the original image, obtains the image to be extracted, effectively enhances the display of the needle mark in the image, and strengthens the image interpretation and recognition effect; obtains the contact area boundary and area of ​​the solder joint, and then extracts the needle mark position and needle mark area in the image to be extracted through fractal processing, extracts the target area in the image through the fractal method, effectively reduces the interference caused by the complex background and large noise in the image, and improves the accuracy of extracting the target area, and judges whether the needle mark position and needle mark area meet the preset conditions at the same time based on the contact area. If the preset conditions are met at the same time, the needle mark is qualified, and if the preset conditions are not met at the same time, the needle mark is unqualified; the present application inspects the needle mark based on image recognition, effectively improves the accuracy of the needle mark inspection, and reduces the misjudgment rate. Furthermore, the accuracy of the machine in judging qualified and unqualified needle mark images is obtained, and feedback is provided based on the accuracy. Based on the feedback results, it is possible to promptly discover whether the machine's detection accuracy meets the requirements, and to adjust the detection machine in time to improve the machine's detection effect, which is suitable for large-scale promotion.

[0103] Embodiment 2

[0104] This embodiment provides a needle mark detection machine determination system, including:

[0105] A preprocessing module, used to obtain an original image after the probe contacts the solder joint, and perform enhancement preprocessing on the original image to obtain an image to be extracted;

[0106] The step of performing enhancement preprocessing on the original image comprises:

[0107] Normalizing the pixels of the original image and drawing a grayscale histogram of the original image;

[0108] Calculating a first grayscale range of pixels in the original image and a second grayscale range of pixels of a needle mark contour in the original image according to a grayscale histogram of the original image;

[0109] Performing segmented combined stretching transformation on the pixel grayscale of the needle mark contour to obtain a transformed image, and calculating a third grayscale range of the pixel points in the transformed image and a fourth grayscale range of the pixel points of the needle mark contour in the transformed image;

[0110] The grayscale values ​​of pixels in the transformed image are calculated according to the first grayscale range, the second grayscale range, the third grayscale range, and the fourth grayscale range.

[0111] The expression of the gray value of each pixel in the transformed image is:

[0112]

[0113] In the formula, Represents the gray value of pixel (i, j) in the transformed image, Represents the gray value of pixel (i, j) in the original image, Read directly from the grayscale histogram in the original image, ( ) represents the first grayscale range, ( ) represents the second grayscale range, ( ) represents the third grayscale range, ( ) represents the fourth grayscale range, is the grayscale calculation coefficient, is the stretch transformation coefficient.

[0114] A determination module, configured to determine a border of the welding point based on the image to be extracted, wherein a contact area is preset in the border;

[0115] A fractal module, used for performing fractal processing on the image to be extracted, so as to extract the needle mark position and the needle mark area in the image to be extracted;

[0116] The step of performing fractal processing on the image to be extracted to extract the needle mark position and the needle mark area in the image to be extracted comprises:

[0117] Obtaining the box dimension of each pixel in the image to be extracted according to a differential box dimension algorithm;

[0118] Obtaining a box dimension matrix of the image to be extracted according to the box dimension corresponding to each pixel point;

[0119] Extracting singular values ​​from the box dimension matrix, and finding the linear fractal dimension relationship between the background image and the needle mark image in the image to be extracted according to the singular values, so as to obtain the characteristic dimension values ​​of the background image and the needle mark image;

[0120] Comparing the characteristic dimension values ​​of the background image and the needle mark image with preset dimension values ​​to separate the needle mark shape and needle mark position in the image to be extracted;

[0121] The needle mark area is calculated according to the needle mark shape.

[0122] The expression of the box dimension is:

[0123]

[0124] In the formula, is the box dimension of the pixel (i, j) in the image to be extracted, is the number of boxes in the image to be extracted, , M is the fractal dimension scale, and Y is the matrix window of the image to be extracted.

[0125] A first judgment module, used for judging whether the needle mark position and the needle mark area satisfy preset conditions at the same time based on the contact area, and if both conditions are satisfied, judging the needle mark as qualified, and if both conditions are not satisfied, judging the needle mark as unqualified;

[0126] The step of judging whether the needle mark position and the needle mark area satisfy preset conditions at the same time based on the contact area, judging the needle mark to be qualified if both conditions are satisfied, and judging the needle mark to be unqualified if both conditions are not satisfied, comprises:

[0127] Obtaining the boundary range of the contact area, determining whether the needle mark position is within the boundary range of the contact area, and if so, determining that the needle mark position is qualified;

[0128] Calculating the area of ​​the contact region according to the boundary range of the contact region;

[0129] Determine whether the ratio of the area of ​​the needle mark to the area of ​​the contact region is within a preset range, and if the ratio is within the preset range, determine that the area of ​​the needle mark is qualified;

[0130] If both the needle mark position and the needle mark area are judged to be qualified, the needle mark is judged to be qualified, otherwise the needle mark is judged to be unqualified.

[0131] A calculation module, used for acquiring a number of images for which needle marks are judged to be qualified and images for which needle marks are judged to be unqualified, calculating a first accuracy rate according to the images for which needle marks are qualified, and calculating a second accuracy rate according to the images for which needle marks are unqualified;

[0132] The expression of the first accuracy is:

[0133]

[0134] The expression of the second accuracy is:

[0135]

[0136] Wherein: YP is the image that the machine judges as qualified with needle marks and is actually a qualified image, YN is the image that the machine judges as qualified with needle marks but is actually an unqualified image, DP is the image that the machine judges as unqualified with needle marks and is actually an unqualified image, DN is the image that the machine judges as unqualified with needle marks but is actually a qualified image.

[0137] The calculation module is further used to calculate a comprehensive accuracy rate according to the first accuracy rate and the second accuracy rate;

[0138] The expression of the comprehensive accuracy is:

[0139]

[0140] In the formula, H is the comprehensive accuracy, F is the first accuracy, and G is the second accuracy.

[0141] The second judgment module is used to regularly detect whether the first accuracy rate and the second accuracy rate both meet the preset requirements. If both meet the preset requirements, it is determined that the needle mark detection accuracy rate of the machine is qualified and the machine does not need to be adjusted. Otherwise, it is determined that the needle mark detection accuracy rate of the machine is unqualified and the machine is adjusted.

[0142] Embodiment 3

[0143] A third embodiment of the present invention provides a storage medium on which a computer program is stored. When the program is executed by a processor, the needle mark detection machine determination method as described above is implemented.

[0144] Embodiment 4

[0145] The present invention also provides a computer, see Figure 2 , shown is a computer in an embodiment of the present invention, including a memory 10, a processor 20, and a computer program 30 stored in the memory 10 and executable on the processor 20. When the processor 20 executes the computer program 30, the above-mentioned needle mark detection machine determination method is implemented.

[0146] The memory 10 includes at least one type of storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10 may be an internal storage unit of a computer, such as a hard disk of the computer. In other embodiments, the memory 10 may also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Further, the memory 10 may also include both an internal storage unit of the computer and an external storage device. The memory 10 may be used not only to store application software and various types of data installed in the computer, but also to temporarily store data that has been output or is to be output.

[0147] Among them, in some embodiments, the processor 20 can be an electronic control unit (Electronic Control Unit, abbreviated as ECU, also known as a vehicle computer), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run the program code stored in the memory 10 or process data, such as executing access restriction programs, etc.

[0148] It should be pointed out that Figure 2 The structure shown does not constitute a limitation on the computer. In other embodiments, the computer may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0149] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0150] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0151] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0152] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0153] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A needle mark detection machine determination method, characterized in that: include: Acquire an original image after the probe contacts the solder joint, and perform enhancement preprocessing on the original image to obtain an image to be extracted; Based on the image to be extracted, determining a border of the welding point, wherein a contact area is preset in the border; Performing fractal processing on the image to be extracted to extract the needle mark position and needle mark area in the image to be extracted; Based on the contact area, judging whether the needle mark position and the needle mark area simultaneously meet preset conditions, if both meet the preset conditions, judging the needle mark is qualified, if not, judging the needle mark is unqualified; Acquire a number of images for which needle marks are judged to be qualified and images for which needle marks are judged to be unqualified, calculate a first accuracy rate based on the number of images for which needle marks are qualified, and calculate a second accuracy rate based on the number of images for which needle marks are unqualified; Regularly checking whether the first accuracy rate and the second accuracy rate both meet preset requirements. If both meet the preset requirements, it is determined that the needle mark detection accuracy rate of the machine is qualified and the machine does not need to be adjusted. Otherwise, it is determined that the needle mark detection accuracy rate of the machine is unqualified and the machine is adjusted. The step of performing fractal processing on the image to be extracted to extract the needle mark position and the needle mark area in the image to be extracted comprises: Obtaining the box dimension of each pixel in the image to be extracted according to a differential box dimension algorithm; Obtaining a box dimension matrix of the image to be extracted according to the box dimension corresponding to each pixel point; Extracting singular values ​​from the box dimension matrix, and finding the linear fractal dimension relationship between the background image and the needle mark image in the image to be extracted according to the singular values, so as to obtain the characteristic dimension values ​​of the background image and the needle mark image; Comparing the characteristic dimension values ​​of the background image and the needle mark image with preset dimension values ​​to separate the needle mark shape and needle mark position in the image to be extracted; Calculating the needle mark area according to the needle mark shape; The step of performing enhancement preprocessing on the original image comprises: Normalizing the pixels of the original image and drawing a grayscale histogram of the original image; Calculating a first grayscale range of pixels in the original image and a second grayscale range of pixels of a needle mark contour in the original image according to a grayscale histogram of the original image; Performing segmented combined stretching transformation on the pixel grayscale of the needle mark contour to obtain a transformed image, and calculating a third grayscale range of the pixel points in the transformed image and a fourth grayscale range of the pixel points of the needle mark contour in the transformed image; Calculating the grayscale value of a pixel in the transformed image according to the first grayscale range, the second grayscale range, the third grayscale range, and the fourth grayscale range; The expression of the gray value of each pixel in the transformed image is: In the formula, Represents the gray value of pixel (i, j) in the transformed image, Represents the gray value of pixel (i, j) in the original image, Read directly from the grayscale histogram in the original image, ( ) represents the first grayscale range, ( ) represents the second grayscale range, ( ) represents the third grayscale range, ( ) represents the fourth grayscale range, is the grayscale calculation coefficient, is the stretch transformation coefficient; The expression of the first accuracy is: The expression of the second accuracy is: Wherein: YP is the image that the machine judges as qualified with needle marks and is actually a qualified image, YN is the image that the machine judges as qualified with needle marks but is actually an unqualified image, DP is the image that the machine judges as unqualified with needle marks and is actually an unqualified image, DN is the image that the machine judges as unqualified with needle marks but is actually a qualified image.

2. The needle mark detection machine determination method according to claim 1, characterized in that: The expression of the box dimension is: In the formula, is the box dimension of the pixel (i, j) in the image to be extracted, is the number of boxes in the image to be extracted, , M is the fractal dimension scale, and Y is the matrix window of the image to be extracted.

3. The needle mark detection machine determination method according to claim 1, characterized in that: The step of judging whether the needle mark position and the needle mark area satisfy preset conditions at the same time based on the contact area, judging the needle mark to be qualified if both conditions are satisfied, and judging the needle mark to be unqualified if both conditions are not satisfied, comprises: Obtaining the boundary range of the contact area, determining whether the needle mark position is within the boundary range of the contact area, and if so, determining that the needle mark position is qualified; Calculating the area of ​​the contact area according to the boundary range of the contact area; Determine whether the ratio of the area of ​​the needle mark to the area of ​​the contact region is within a preset range, and if the ratio is within the preset range, determine that the area of ​​the needle mark is qualified; If both the needle mark position and the needle mark area are judged to be qualified, the needle mark is judged to be qualified, otherwise the needle mark is judged to be unqualified.

4. The needle mark detection machine determination method according to claim 1, characterized in that: The needle mark detection machine determination method further includes: calculating a comprehensive accuracy rate according to the first accuracy rate and the second accuracy rate; Regularly checking whether the first accuracy rate, the second accuracy rate and the comprehensive accuracy rate all meet preset requirements; if they all meet the preset requirements, it is determined that the needle mark detection accuracy rate of the machine is qualified and the machine does not need to be adjusted; otherwise, it is determined that the needle mark detection accuracy rate of the machine is unqualified and the machine is adjusted; The expression of the comprehensive accuracy is: In the formula, H is the comprehensive accuracy, F is the first accuracy, and G is the second accuracy.

5. A needle mark detection machine determination system, characterized in that: include; A preprocessing module, used to obtain an original image after the probe contacts the solder joint, and perform enhancement preprocessing on the original image to obtain an image to be extracted; The step of performing enhancement preprocessing on the original image comprises: Normalizing the pixels of the original image and drawing a grayscale histogram of the original image; Calculating a first grayscale range of pixels in the original image and a second grayscale range of pixels of a needle mark contour in the original image according to a grayscale histogram of the original image; Performing segmented combined stretching transformation on the pixel grayscale of the needle mark contour to obtain a transformed image, and calculating a third grayscale range of the pixel points in the transformed image and a fourth grayscale range of the pixel points of the needle mark contour in the transformed image; Calculating the grayscale value of a pixel in the transformed image according to the first grayscale range, the second grayscale range, the third grayscale range, and the fourth grayscale range; The expression of the gray value of each pixel in the transformed image is: In the formula, Represents the gray value of pixel (i, j) in the transformed image, Represents the gray value of pixel (i, j) in the original image, Read directly from the grayscale histogram in the original image, ( ) represents the first grayscale range, ( ) represents the second grayscale range, ( ) represents the third grayscale range, ( ) represents the fourth grayscale range, is the grayscale calculation coefficient, is the stretch transformation coefficient; A determination module, configured to determine a border of the welding point based on the image to be extracted, wherein a contact area is preset in the border; A fractal module, used for performing fractal processing on the image to be extracted, so as to extract the needle mark position and the needle mark area in the image to be extracted; A first judgment module, used for judging whether the needle mark position and the needle mark area satisfy preset conditions at the same time based on the contact area, and if both conditions are satisfied, judging the needle mark as qualified, and if both conditions are not satisfied, judging the needle mark as unqualified; A calculation module, used for acquiring a number of images for which needle marks are judged to be qualified and images for which needle marks are judged to be unqualified, calculating a first accuracy rate according to the images for which needle marks are qualified, and calculating a second accuracy rate according to the images for which needle marks are unqualified; A second judgment module is used to regularly detect whether the first accuracy rate and the second accuracy rate both meet the preset requirements. If both meet the preset requirements, it is determined that the needle mark detection accuracy rate of the machine is qualified and the machine does not need to be adjusted. Otherwise, it is determined that the needle mark detection accuracy rate of the machine is unqualified and the machine is adjusted; The step of performing fractal processing on the image to be extracted to extract the needle mark position and the needle mark area in the image to be extracted comprises: Obtaining the box dimension of each pixel in the image to be extracted according to a differential box dimension algorithm; Obtaining a box dimension matrix of the image to be extracted according to the box dimension corresponding to each pixel point; Extracting singular values ​​from the box dimension matrix, and finding the linear fractal dimension relationship between the background image and the needle mark image in the image to be extracted according to the singular values, so as to obtain the characteristic dimension values ​​of the background image and the needle mark image; Comparing the characteristic dimension values ​​of the background image and the needle mark image with preset dimension values ​​to separate the needle mark shape and needle mark position in the image to be extracted; Calculating the needle mark area according to the needle mark shape; The expression of the first accuracy is: The expression of the second accuracy is: Wherein: YP is the image that the machine judges as qualified with needle marks and is actually a qualified image, YN is the image that the machine judges as qualified with needle marks but is actually an unqualified image, DP is the image that the machine judges as unqualified with needle marks and is actually an unqualified image, DN is the image that the machine judges as unqualified with needle marks but is actually a qualified image.

6. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the needle mark detection machine determination method as described in any one of claims 1 to 4 is implemented.

7. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the needle mark detection machine determination method according to any one of claims 1 to 4 is implemented.