Gold finger defect detection method, device, computer equipment, and storage medium

By extracting the grayscale image of the gold finger area, determining the reference value line and bright spot area, and combining the region growing algorithm and gamma transformation technology, the accuracy problem of the traditional detection method on the rough coating surface is solved, and a more efficient gold finger defect detection is achieved detection.

CN118397011BActive Publication Date: 2024-09-27SUZHOU HUAXING YUANCHUANG TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410865189.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-27
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

The traditional gold finger defect detection method is difficult to accurately segment when facing a rough coating surface, resulting in low detection accuracy and inability to effectively detect gold finger defects.

Method used

By obtaining the image to be detected, extract the grayscale image of the golden finger area, determine the boundary endpoint and reference value line of the gold finger, use the region growing algorithm to determine the bright spot area, and perform defect detection based on the distance from the highlight outline point to the reference value line, combined with Technologies such as gamma transformation and Gaussian smoothing improve detection accuracy.

Benefits of technology

It improves the accuracy of gold finger defect detection, can accurately identify the bright spot area contacted by the probe, enhances the accuracy of detection, and is more reliable than traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118397011B
    Figure CN118397011B
Patent Text Reader

Abstract

The present disclosure relates to a method, device, computer equipment, and storage medium for detecting defects in gold fingers. The method includes: obtaining an image to be detected, extracting a gold finger grayscale image of a gold finger area in the image to be detected; determining the first boundary endpoint and the second boundary endpoint of each gold finger according to the reference graphic area and the size of each gold finger; dividing a preset number of contours between the first boundary endpoint and the second boundary endpoint of each gold finger, determining the midpoint of each gold finger based on the grayscale value of the preset number of contours, and determining the reference value line of the gold finger area based on the midpoint of each gold finger; determining the bright spot area in the grayscale image of the gold finger using a regional growing algorithm; performing defect detection on the image to be detected based on the distance from the bright spot contour point to the reference value line and the distance threshold, and obtaining a defect detection result. The method can improve the detection accuracy and accurately detect defects in gold fingers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, and in particular to a method, device, computer equipment, and storage medium for detecting gold finger defects. Background Art

[0002] With the booming development of the electronics industry, circuit design has become more complex and sophisticated, and the requirements for the manufacturing process of semiconductor devices such as chips and semiconductor connectors have become increasingly stringent. The gold finger area is an area on the semiconductor device where a layer of metal material with strong oxidation resistance and conductivity is electroplated for signal transmission.

[0003] Normally, semiconductor devices need to undergo signal testing before use to verify whether they are qualified. During the test, a probe is used to contact the gold finger area on the semiconductor device to transmit the signal. The probe contact will leave puncture marks on the gold finger and damage the plating. However, puncture marks are not allowed in the keep out zone (KOZ) on the gold finger of the semiconductor device. Therefore, after the semiconductor device has completed the signal test, it is necessary to detect whether the puncture marks appear in the KOZ area.

[0004] Traditional detection methods are mostly performed manually or through image processing. However, traditional image processing methods usually use threshold segmentation methods. This method is difficult to obtain good segmentation effects when facing rough coating surfaces, thereby reducing the accuracy of detection and being unable to accurately detect defects in gold fingers. Summary of the invention

[0005] Based on this, it is necessary to provide a gold finger defect detection method, device, computer equipment, and storage medium that can improve detection accuracy and accurately detect defects on gold fingers in response to the above technical problems.

[0006] In a first aspect, the present disclosure provides a method for detecting gold finger defects. The method comprises:

[0007] Acquire an image to be detected, wherein the image to be detected includes a gold finger area formed by a plurality of gold fingers distributed at equal intervals and a reference graphic area located at both ends of the gold finger area, and extract a gold finger grayscale image of the gold finger area in the image to be detected;

[0008] Determine a first boundary endpoint and a second boundary endpoint of each golden finger according to the reference graphic area and the size of each golden finger;

[0009] Dividing a preset number of contours between the first boundary endpoint and the second boundary endpoint of each golden finger, determining the median point of each golden finger based on the grayscale values ​​of the preset number of contours, and determining the reference value line of the golden finger area based on the median point of each golden finger;

[0010] Determine the bright spot area in the golden finger grayscale image by using a region growing algorithm, and calculate the distance from the bright spot contour point in the bright spot area to the reference value line;

[0011] Based on the distance from the bright spot contour point to the reference value line and the distance threshold, defect detection is performed on the image to be detected to obtain a defect detection result, wherein the distance threshold is determined based on the reference value line and the exclusion area of ​​the gold finger area.

[0012] In one embodiment, determining the median point of each golden finger based on the grayscale values ​​of a preset number of contours includes:

[0013] Performing Gaussian smoothing on the preset number of contours to obtain contour smoothing results;

[0014] Calculating the first-order derivative of the contour smoothing result to obtain a calculation result;

[0015] Determine a position point in the golden finger indicated by the calculation result that is greater than a preset derivative threshold;

[0016] The position points are sorted according to the vertical direction of the golden fingers to determine the median point of each golden finger.

[0017] In one embodiment, extracting the golden finger grayscale image of the golden finger area in the image to be detected includes:

[0018] Based on the reference graphic areas at both ends, rotation correction is performed on the image to be detected, and a golden finger grayscale image of the golden finger area in the image to be detected after rotation correction is extracted.

[0019] In one embodiment, after extracting the golden finger grayscale image of the golden finger area in the image to be detected, the method further includes:

[0020] The golden finger grayscale image is processed by using an image enhancement method based on gamma transform.

[0021] In one embodiment, the determining the bright spot area in the golden finger grayscale image by using a region growing algorithm includes:

[0022] Performing threshold segmentation on the golden finger grayscale image to extract the connected domain of the highlight area in the golden finger grayscale image;

[0023] Determine a preselected point according to the grayscale extreme value point of the connected domain of the highlight area in the golden finger grayscale image and a preset first grayscale threshold;

[0024] Determining a target point based on the preselected point and a predetermined growth criterion, wherein the growth criterion is determined based on a preset grayscale difference threshold, a second grayscale threshold, a gradient amplitude, and a gradient mean;

[0025] Determine a binary image based on the target point and the golden finger grayscale image;

[0026] According to the gradient mean of the connected domain in the binary image, the bright spot area in the golden finger grayscale image is determined.

[0027] In one embodiment, the growth criteria include: a first criterion, a second criterion, a third criterion and a fourth criterion, wherein the first criterion is that the grayscale difference between the candidate point and the pre-selected point is less than a preset first grayscale difference; the second criterion is that the grayscale value of the candidate point is greater than a second grayscale threshold, and the second grayscale threshold is determined according to the average grayscale of the golden finger grayscale image; the third criterion is that the gradient amplitude of the candidate point is greater than the gradient mean threshold, and the gradient amplitude threshold is determined according to the gradient mean of each pixel in the golden finger grayscale image; the fourth criterion is that the gradient mean of the two or four neighborhoods of the candidate point is greater than the gradient mean threshold; the determination of the target point based on the pre-selected point and the predetermined growth criteria includes:

[0028] For each pre-selected point, determine eight neighboring pixel points of the pre-selected point in the golden finger grayscale image;

[0029] Taking pixel points in the eight neighborhood pixel points as candidate points, in response to any of the candidate points satisfying the conditions of the first criterion, the second criterion, and the third criterion at the same time, or satisfying the conditions of the first criterion, the second criterion, and the fourth criterion at the same time, determining a candidate point satisfying the conditions indicated by the pre-selected point;

[0030] The target point is determined according to the candidate points satisfying the conditions indicated by each pre-selected point.

[0031] In a second aspect, the present disclosure further provides a gold finger defect detection device. The device comprises:

[0032] An image processing module is used to obtain an image to be detected, wherein the image to be detected contains a plurality of gold finger areas with equidistant distribution of gold fingers and reference graphic areas located at both ends of the image to be detected, and extract a gold finger grayscale image of the gold finger area in the image to be detected;

[0033] A boundary point determination module, used for determining a first boundary endpoint and a second boundary endpoint of each golden finger according to the reference graphic areas located at both ends of the image to be detected and the size of each golden finger;

[0034] A baseline determination module, used to divide a preset number of contours between the first boundary endpoint and the second boundary endpoint of each golden finger, determine the median point of each golden finger based on the grayscale values ​​of the preset number of contours, and determine the baseline value line of the golden finger area based on the median point of each golden finger;

[0035] A distance calculation module, used for determining the bright spot area in the golden finger grayscale image by using a target segmentation algorithm of region growing, and calculating the distance from the bright spot contour point of the bright spot area to the reference value line;

[0036] The defect detection module is used to perform defect detection on the image to be detected based on the distance from the bright spot contour point to the baseline value line and the distance threshold to obtain a defect detection result, wherein the distance threshold is determined based on the exclusion area of ​​the baseline value line and the gold finger area.

[0037] In a third aspect, the present disclosure further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps in any of the above method embodiments are implemented.

[0038] In a fourth aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0039] In a fifth aspect, the present disclosure further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0040] In the above embodiments, an image to be detected is obtained, and a gold finger grayscale image of the gold finger area in the image to be detected is extracted; the first boundary endpoint and the second boundary endpoint of each gold finger are determined according to the reference graphic area and the size of each gold finger; a preset number of contours are divided between the first boundary endpoint and the second boundary endpoint of each gold finger, and the midpoint of each gold finger is determined based on the grayscale value of the preset number of contours, and the reference value line of the gold finger area is determined based on the midpoint of each gold finger. By using the reference line of the gold finger area, the position of each gold finger can be accurately located, thereby providing a standard for subsequent judgment and ensuring the accuracy of detection. In addition, a region growing algorithm is used to determine the bright spot area in the grayscale image of the gold finger, and according to a predefined growth criterion, adjacent pixels are gradually expanded and merged into one area, so as to accurately determine the bright spot area touched by the probe, further ensuring the detection accuracy, and based on the distance and distance threshold of the bright spot contour point in the bright spot area to the reference value line, the detection image is subjected to defect detection to obtain a defect detection result, which can improve the detection accuracy compared with the traditional segmentation detection method. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0042] Figure 1 A schematic diagram of a process of detecting a gold finger defect in an embodiment;

[0043] Figure 2 is a schematic diagram of an image to be detected in one embodiment;

[0044] Figure 3 A schematic diagram of a first boundary endpoint, a second boundary endpoint, and a contour in a gold finger image in one embodiment;

[0045] Figure 4 A schematic diagram of a bright spot contour point and a reference value line in a bright spot area in one embodiment;

[0046] Figure 5 A schematic diagram of a bright spot area and an exclusion area in one embodiment;

[0047] Figure 6 Schematic diagram of a process for determining the median point in step S106 in one embodiment;

[0048] Figure 7 is a schematic diagram of a process for determining a bright spot area in step S108 in one embodiment;

[0049] Figure 8 Schematic diagram of the process of step S306 in one embodiment;

[0050] Fig. 9 A schematic diagram of a process of detecting a gold finger defect in another embodiment;

[0051] Fig.10 It is a schematic block diagram of the structure of a gold finger defect detection device in one embodiment;

[0052] Fig.11 is a schematic diagram of the internal structure of a computer device in one embodiment;

[0053] Fig.12 Schematic diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present disclosure more clear, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not used to limit the present disclosure.

[0055] It should be noted that the terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0056] In this article, the term "and / or" is only a description of the association relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the related objects before and after are in an "or" relationship.

[0057] In one embodiment, the present disclosure provides a method for detecting gold finger defects. Figure 1As shown, this embodiment uses the method applied to a terminal as an example for illustration. It is understandable that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0058] S102, extracting a grayscale image of the golden finger region in the image to be detected, wherein the image to be detected includes a golden finger region formed by a plurality of golden fingers distributed at equal intervals and a reference graphic region located at both ends of the golden finger region.

[0059] The image to be tested may be an image of a device to be tested that contains gold fingers and has tested the gold fingers. The device to be tested may include but is not limited to various electronic components, semiconductor devices, mechanical parts, etc. Semiconductor devices may include but are not limited to various chips, printed circuit boards, semiconductor connectors, etc. The image to be tested may include but is not limited to various chip images, various printed circuit board images, various semiconductor connector images, etc. Figure 2 As shown in the figure, it is a schematic diagram of the image to be detected. The image to be detected may contain multiple golden fingers, which are usually distributed at equal intervals. All golden fingers distributed at equal intervals can constitute a golden finger area. Reference graphic areas are usually set at both ends of the golden finger area. The reference graphic area is generally used to locate the target, and the positioning accuracy is high. The golden finger grayscale image can usually be the ROI (Region of Interest) grayscale image corresponding to each golden finger.

[0060] Specifically, optical hardware can be used to capture images of electronic components containing gold fingers. The optical hardware can be a CCD (charge coupled device) or CMOS (complementary metal oxide semiconductor) sensor, or a camera. Since there are reference graphic areas at both ends of the gold finger area in the image to be detected, the reference graphic area can be used to accurately locate the gold finger area. In addition, since the gold fingers are distributed at equal intervals in the gold finger area, the gold finger grayscale image of each gold finger can be extracted in the gold finger area by utilizing the characteristics of equal spacing distribution of gold fingers.

[0061] In some exemplary embodiments, the reference graphic areas at both ends can be located using a template matching algorithm. The template matching algorithm is a computer vision technique used to find specific patterns or objects in an image. The basic principle of the algorithm is to compare a small reference image (template) with the input image to determine whether there is an area in the input image that matches the template.

[0062] S104, determining a first boundary endpoint and a second boundary endpoint of each golden finger according to the reference graphic area and the size of each golden finger.

[0063] The size of the gold finger may include the horizontal size of the gold finger and the vertical size of the gold finger. The first boundary endpoint and the second boundary endpoint may generally be symmetrical points at both ends of the left and right boundaries of the gold finger. Figure 3 As shown, it is a golden finger image, the first boundary endpoint may be point A1, and the second boundary endpoint may be point A2.

[0064] Specifically, since the reference graphic area is determined, and the area between the two reference graphic areas is the golden finger area, according to the characteristics of the golden fingers being evenly spaced in the golden finger area, the distance between the two reference graphic areas, and the size of each golden finger, the two endpoints of each golden finger, namely the first boundary endpoint and the second boundary endpoint, can be calculated.

[0065] In some exemplary embodiments, taking a certain golden finger as an example, the center coordinates (x0, y0) of a certain golden finger can be calculated according to the characteristics of the equidistant distribution of golden fingers in the golden finger area and the distance between the two reference graphic areas. If it is known that the horizontal size of each golden finger is w0 and the vertical size is h0, then for a certain golden finger, the coordinates of the first boundary endpoint of the golden finger are (x0-w0 / 2, y0+h0 / 2), and the coordinates of the second boundary endpoint are (x0+w0 / 2, y0+h0 / 2).

[0066] S106, dividing a preset number of contours between the first boundary endpoint and the second boundary endpoint of each golden finger, determining the midpoint of each golden finger based on the grayscale values ​​of the preset number of contours, and determining the baseline value line of the golden finger area based on the midpoint of each golden finger.

[0067] The reference value line of the gold finger area can usually be a straight line to determine the gold finger position. The shape of the contour is not limited in some embodiments of the present disclosure, and can be a rectangle, a circle, a square, etc. The spacing between each contour can be the same. Figure 3 , Figure 3 Among them, L1, L2 and L3 can be contours.

[0068] Specifically, due to process problems, there are burrs and bends on the edges of the upper and lower ends of the gold finger, and these factors will affect the defect detection process. Therefore, in order to accurately determine the position of the gold finger, the baseline value line of the gold finger area can be determined first. The first boundary endpoint and the second boundary endpoint of each gold finger have been determined in the above steps, so a preset number of contours can be divided between the first boundary endpoint and the second boundary endpoint. Then, based on the grayscale value in each contour, the midpoint of the gold finger is determined. Generally, the contour with a larger grayscale value can be the midpoint of the gold finger. After determining the midpoint of each gold finger, a straight line fitting can be performed on the midpoint of each gold finger to determine the baseline value line of the gold finger area.

[0069] S108, using a region growing algorithm to determine a bright spot region in the golden finger grayscale image, and calculating a distance from a bright spot contour point in the bright spot region to the reference value line.

[0070] Among them, the region growing algorithm is a target segmentation algorithm used to combine pixels with similar features in an image into continuous regions or objects. The basic principle of this algorithm is to start from a seed point and gradually grow or merge pixels with similar features until a complete target region is formed.

[0071] The bright spot area may generally be an area touched by the probe during testing.

[0072] Specifically, the region growing algorithm can be used to determine the bright spot region in the golden finger grayscale image. Then the distance from the bright spot contour point in the bright spot region to the reference value line is calculated. Figure 4 As shown, S is the bright spot area, B1 and B2 are two bright spot contour points in the bright spot area, and the distance D1 from B1 to the reference value line can be calculated, and the distance D2 from B2 to the reference straight line can be calculated. In addition, it should be noted that, usually, in order to accurately detect defects on the gold finger, the maximum value of the distance from the bright spot contour point to the reference value line is usually selected for processing. For example, if D1 is greater than D2 and D1 is the maximum value, D1 can be selected for subsequent processing.

[0073] S110, based on the distance from the bright spot contour point to the baseline value line and the distance threshold, perform defect detection on the image to be detected to obtain a defect detection result, wherein the distance threshold is determined based on the baseline value line and the exclusion area of ​​the gold finger area. The exclusion area may be a KOZ area. The exclusion area (Keep Out Zone, KOZ) on the gold finger refers to an area where other components or wires need to be avoided when designing the gold finger. KOZ is usually an area that defines where any other components or wires are prohibited from being placed to ensure the normal operation and connection of the gold finger. When designing a circuit board, designers need to leave enough space to ensure the stable connection of the gold finger while avoiding interference or damage to other components or wires. This space is very much KOZ. For example Figure 5 As shown, K is the exclusion area, and the distance between K and the baseline value line can be calculated as the distance threshold.

[0074] Specifically, defect detection can be performed on the image to be detected based on the size relationship between the distance from the bright spot contour point to the reference value line and the distance threshold, thereby obtaining the defect detection result of the gold finger. When the distance from the bright spot contour point to the reference value line is greater than the distance threshold, it can be determined that the bright spot area is located in the exclusion area. In this case, it is determined that the gold finger in the electronic component corresponding to the image to be detected has a defect. When the distance from the two-point contour point to the reference value line is less than the distance threshold, it can be determined that the bright spot area is not located in the exclusion area, and it is determined that there is no defect in the gold finger in the electronic component corresponding to the image to be detected.

[0075] In the above-mentioned gold finger defect detection method, an image to be detected is obtained, and a gold finger grayscale image of the gold finger area in the image to be detected is extracted; according to the reference graphic area and the size of each gold finger, the first boundary endpoint and the second boundary endpoint of each gold finger are determined; a preset number of contours are divided between the first boundary endpoint and the second boundary endpoint of each gold finger, and the midpoint of each gold finger is determined based on the grayscale value of the preset number of contours, and the reference value line of the gold finger area is determined based on the midpoint of each gold finger. Using the reference line of the gold finger area, the position of each gold finger can be accurately located, thereby providing a standard for subsequent judgment and ensuring the accuracy of detection. In addition, a region growing algorithm is used to determine the bright spot area in the grayscale image of the gold finger, and according to the predefined growth criteria, the adjacent pixels are gradually expanded and merged into one area, so as to accurately determine the bright spot area touched by the probe, further ensuring the detection accuracy, and based on the distance and distance threshold from the bright spot contour point of the bright spot area to the reference value line, the detection image is defect detected to obtain a defect detection result, which can improve the detection accuracy compared with the traditional segmentation detection method.

[0076] In one embodiment, Figure 6As shown, the method of determining the median point of each golden finger based on the grayscale values ​​of a preset number of contours includes:

[0077] S202, performing Gaussian smoothing on the preset number of contours to obtain contour smoothing results.

[0078] Among them, Gaussian smoothing is an image processing technology used to remove noise and details in an image and make the image smoother. Smoothing is performed based on the Gaussian function, and by weighted averaging each pixel value in the image, the noise in the image is suppressed while retaining the overall structure and characteristics of the image.

[0079] Specifically, Gaussian smoothing can be performed on a preset number of contours to remove noise and details in the regional contours, making the contours smoother, thereby obtaining a contour smoothing result after Gaussian smoothing.

[0080] S204, calculating the first-order derivative of the contour smoothing result to obtain a calculation result.

[0081] S206, determining a position point in the golden finger indicated by the calculation result that is greater than a preset derivative threshold.

[0082] S208, sorting the position points according to the vertical direction of the golden fingers to determine the midpoint of each golden finger.

[0083] The derivative threshold can be calculated based on the derivative mean at each position of the golden finger area. The position point can usually be a pixel point in the contour.

[0084] Specifically, the first-order derivative of the smoothed contour result can be calculated to obtain the calculation result. According to, the calculation of the first-order derivative is to calculate the grayscale difference between the contour smoothing result and the surrounding points. The greater the grayscale difference, the greater the calculation result. Usually, the calculation result is compared with the preset derivative threshold, the calculation result greater than the derivative threshold is found, and the position point in the golden finger indicated by the calculation result greater than the derivative threshold is determined. Usually, one or more position points are determined in each golden finger. When there are multiple position points, since the coordinates in the X direction have no effect on the slope of the reference value line when performing straight line fitting (determining the reference value line), the Y direction (vertical direction) will affect the slope of the reference line, so the multiple position points can be sorted in the vertical direction, for example, the y coordinate value is small and the y coordinate value is large. The position point is then determined according to the sorted position points.

[0085] In some exemplary embodiments, for example, three profiles are obtained, namely, the A profile, the B profile, and the C profile. The A profile is Gaussian smoothed, and the first-order derivative is calculated to obtain the A1 calculation result. The B profile is Gaussian smoothed, and the first-order derivative is calculated to obtain the B1 calculation result. The C profile is Gaussian smoothed, and the first-order derivative is calculated to obtain the C1 calculation result. If there is a result greater than the derivative threshold in the A1 calculation result, the position point indicated by the result greater than the derivative threshold in the A1 calculation result can be determined. If the position point is A11, A12, A13, if there is no position point indicated by the result greater than the derivative threshold in the B1 calculation result. The position points indicated by the result greater than the derivative threshold in the C1 calculation result are C11, C12, then A11, A12, A13, C11, C12 can be sorted in the vertical direction, and the sorted order is A12, A13, A11, C12, C11, and the median point A11 is taken as the median point of the golden finger.

[0086] In other exemplary embodiments, the points whose absolute values ​​in the calculation results of the first-order derivative are greater than the derivative threshold can be put into the boundary point set N; the points in the point set N are sorted according to the y coordinate (vertical direction) to obtain the point set N', and the median point of N' is taken to obtain the median point of the golden finger.

[0087] In this embodiment, the contour is processed by Gaussian smoothing, which can reduce the impact of noise and improve the accuracy of calculation. In addition, the first-order derivative of the contour smoothing result is calculated to obtain a calculation result, and the position point in the golden finger indicated by the calculation result greater than the preset derivative threshold is determined, so that the difference position in the contour can be determined more accurately, and finally the difference position is sorted in the vertical direction. Since the slope in the final reference value line fitting process is affected by the vertical coordinate, the position points are sorted according to the vertical direction of the golden finger to determine the median point of each golden finger, thereby ensuring the accuracy in the subsequent fitting of the reference value line.

[0088] In one embodiment, extracting the golden finger grayscale image of the golden finger area in the image to be detected includes:

[0089] Based on the reference graphic areas at both ends, rotation correction is performed on the image to be detected, and a golden finger grayscale image of the golden finger area in the image to be detected after rotation correction is extracted.

[0090] Specifically, since the position of electronic components is not fixed, the position of the gold finger in the image to be detected is not necessarily horizontal. Therefore, in order to ensure the accuracy of subsequent detection, the angle of the gold finger area can be located based on the reference graphic areas at both ends, and then the image to be detected is rotationally corrected according to the angle, and then the gold finger grayscale image of the gold finger area in the image to be detected after rotation correction is extracted.

[0091] In this embodiment, the detection accuracy can be improved by correcting the image to be detected using the reference image area.

[0092] In one embodiment, after extracting the golden finger grayscale image of the golden finger area in the image to be detected, the method further includes:

[0093] The golden finger grayscale image is processed by using an image enhancement method based on gamma transform.

[0094] Among them, the image enhancement method based on gamma transform is a commonly used image enhancement technology. By performing gamma transform on the pixel values ​​of the image, the contrast and brightness of the image are adjusted to improve the visual effect of the image. Gamma transform is a nonlinear transform that can adjust the grayscale of the image to make the image visually clearer and more vivid.

[0095] Specifically, usually, a puncture mark will be left on the gold finger after the signal test, and the gray value of the puncture position is higher than that of other areas in the gold finger. However, due to the influence of the image acquisition environment and the depth of the probe contacting the semiconductor device during the signal test, the probe cannot be pressed too deep. When the probe is pressed down and touches the gold finger, it will be turned on, but it must be compatible so that a row of probes can touch the gold finger, so some probes on the gold finger are bound to have overvoltage, but it cannot be overvoltage too much, and too much overvoltage will damage the coating on the gold finger. Therefore, the contrast between the puncture position and other areas of the gold finger will not be particularly obvious. In order to highlight the puncture position, the image enhancement method based on gamma transform can be used to process the grayscale image of the gold finger.

[0096] In some exemplary embodiments, the following formula may be used to process the golden finger grayscale image:

[0097]

[0098] Among them, r is the normalized input value of the gold finger grayscale image, and its value range is [0, 1]. s is the grayscale output value after gamma transformation. γ is the gamma factor, which controls the scaling degree of the entire transformation. c is the grayscale scaling coefficient.

[0099] In this embodiment, the gamma transform-based image enhancement method is used to process the gold finger grayscale image, which can improve the visual effect of the puncture marks in the gold finger grayscale image and facilitate subsequent defect detection tasks.

[0100] In one embodiment, Figure 7 As shown, the method of determining the bright spot area in the golden finger grayscale image by using the region growing algorithm includes:

[0101] S302, performing threshold segmentation on the golden finger grayscale image, and extracting connected domains of highlight areas in the golden finger grayscale image.

[0102] Specifically, a suitable threshold can be selected to binarize the golden finger grayscale image and separate the highlight area from the low-brightness area. The threshold can be determined by using a global threshold, an adaptive threshold, or a threshold selection method based on a histogram. Connected domain analysis is performed on the binarized image to identify and mark different connected domains in the image. Functions provided by image processing libraries such as OpenCV (such as connected Components With Stats) can be used to implement connected domain analysis. According to the marking information of the connected domain, the connected domain of the highlight area is filtered out. The connected domain can be filtered according to its size, shape, and other features to ensure that the extracted connected domain meets the characteristics of the highlight area.

[0103] S304: determining a preselected point according to the grayscale extreme value point of the connected domain of the highlight area in the golden finger grayscale image and a preset first grayscale threshold.

[0104] Among them, the grayscale extreme value point is usually the grayscale maximum value. The pre-selected point can be a seed pre-selected point, which is the initial point used for the region growing algorithm in image processing. In the region growing algorithm, the seed pre-selected point is used as the starting point of growth, and a region or connected domain is gradually expanded through the similarity of pixels around the seed point or other rules.

[0105] Specifically, the grayscale value of the connected domain of the highlight area in the golden finger grayscale image can be calculated to determine the grayscale extreme point. Then the grayscale extreme point is compared with a preset first grayscale threshold, and the grayscale extreme point greater than the first grayscale threshold is used as a pre-selected point.

[0106] S306, determining a target point based on the preselected point and a predetermined growth criterion, wherein the growth criterion is determined based on a preset grayscale difference threshold, a second grayscale threshold, a gradient amplitude, and a gradient mean.

[0107] In the region growing algorithm, the growth criterion is a rule or condition for determining whether a pixel should be added to the current growing region. The growth criterion is usually based on the similarity between pixels or other specific rules to determine whether a pixel is added to the growing region. In some embodiments of the present disclosure, the growth criterion can be determined based on a grayscale difference threshold, a preset second grayscale threshold, a gradient amplitude, and a gradient mean.

[0108] Specifically, the target point can be determined based on the pre-selected point and the pre-set growth accuracy.

[0109] S308: Determine a binary image based on the target point and the golden finger grayscale image.

[0110] S310, determining a bright spot area in the golden finger grayscale image according to the gradient mean of the connected domain in the binary image.

[0111] Specifically, after the target point is determined, the target point can be marked in the golden finger grayscale image to determine the binary image. The connected domain in the binary image is searched, and the connected domain features are extracted and analyzed. The gradient mean of the connected domain is calculated. If the gradient mean is less than the set threshold, it is considered to be a noise area. If the gradient mean is greater than the set threshold, it is considered to be a bright spot area.

[0112] In this embodiment, a preselected point is determined based on the grayscale extreme point of the connected domain of the highlight area in the golden finger grayscale image and a preset first grayscale threshold, and then a target point is determined based on the preselected point and a predetermined growth criterion, so that the target point is processed to ensure the accuracy of the final bright spot area, thereby ensuring the accuracy of defect detection.

[0113] In one embodiment, the growth criteria include: a first criterion, a second criterion, a third criterion and a fourth criterion, wherein the first criterion is that the grayscale difference between the candidate point and the preselected point is less than a preset first grayscale difference. The first grayscale difference is obtained according to the segmentation effect of the actual golden finger grayscale image, and the first grayscale difference obtained in different application scenarios will be different. In some embodiments of the present disclosure, the specific value of the grayscale difference is not limited.

[0114] The second criterion is that the grayscale value of the candidate point is greater than the second grayscale threshold. The second grayscale threshold is usually determined based on the average grayscale in the golden finger grayscale image. Furthermore, the average grayscale in the golden finger grayscale image can be calculated, and the average grayscale and the preset first constant are added to obtain the second grayscale threshold.

[0115] The third criterion is that the gradient amplitude of the candidate point is greater than the gradient mean threshold. The gradient amplitude refers to the gradient size at each pixel in the image, which indicates the grayscale change rate or color change rate of the image at that point. The gradient refers to the rate of change of the grayscale or color of the image, and the gradient amplitude indicates the magnitude of this change. The gradient mean threshold can be determined based on the gradient mean of each pixel in the golden finger grayscale image. Furthermore, the gradient mean of each pixel in the golden finger grayscale image can be calculated, and then the gradient mean is added to the preset second constant to obtain the gradient mean threshold.

[0116] The fourth criterion is that the gradient mean of the two-fourth neighborhood of the candidate point is greater than the gradient mean threshold. The two-fourth neighborhood refers to the four adjacent pixels around a pixel in the image, that is, the pixels in the four directions of up, down, left and right. In a two-dimensional image, each pixel has a two-fourth neighborhood, and these four adjacent pixels and the central pixel together constitute four neighborhoods in a two-dimensional plane. The gradient mean usually refers to the average value of the gradient amplitude in a certain area of ​​the image. The gradient amplitude indicates the gradient size at each pixel in the image, while the gradient mean is the value obtained by averaging the gradient amplitudes of all pixels in a certain area. The gradient mean can be used to describe the overall gradient changes in a certain area of ​​the image.

[0117] like Figure 8 As shown, the determining of the target point based on the preselected point and the predetermined growth criterion includes:

[0118] S402: for each pre-selected point, determine eight neighboring pixel points of the pre-selected point in the golden finger grayscale image.

[0119] Among them, the eight-neighborhood refers to the eight adjacent pixels around a pixel in the image, including pixels in eight directions: up, down, left, right, upper left, upper right, lower left, and lower right. In a two-dimensional image, each pixel has an eight-neighborhood. These eight adjacent pixels and the central pixel together constitute eight neighborhoods in a two-dimensional plane.

[0120] Specifically, for each pre-selected point, eight neighboring pixel points of the pre-selected point in the gold finger grayscale image may be determined.

[0121] S404, taking pixel points in the eight neighborhood pixel points as candidate points, in response to any of the candidate points simultaneously satisfying the conditions of the first criterion, the second criterion, and the third criterion, or simultaneously satisfying the conditions of the first criterion, the second criterion, and the fourth criterion, determining the candidate point that satisfies the conditions indicated by the pre-selected point.

[0122] Specifically, each pixel point in the eight neighborhood pixels can be used as a candidate point. When there is a candidate point that satisfies the conditions of the first criterion, the second criterion, and the third criterion at the same time, or satisfies the conditions of the first criterion, the second criterion, and the fourth criterion at the same time, the candidate point that satisfies the conditions is determined. And so on, until the candidate point that satisfies the conditions indicated by each pre-selected point is determined.

[0123] S406: Determine a target point according to the candidate points satisfying the conditions indicated by each pre-selected point.

[0124] In some exemplary embodiments, a point P1 can be selected from the pre-selected points, and P1 can be placed in the point set Pfg, and the eight-neighborhood pixel points of P1 can be searched in the golden finger grayscale image. The eight-neighborhood pixel points that simultaneously meet the conditions of the first criterion, the second criterion, and the third criterion, or the eight-neighborhood pixel points that simultaneously meet the conditions of the first criterion, the second criterion, and the fourth criterion, are determined as target points. Among them, the initial point does not contain the pre-selected point. By analogy, the above process is repeated until all the pre-selected points are included in the point set Pfg, thereby screening out the target point.

[0125] In this embodiment, by screening the target points according to the first criterion, the second criterion, the third criterion, and the fourth criterion, a more accurate bright spot area can be obtained, thereby ensuring the accuracy of subsequent defect detection.

[0126] In one embodiment, Fig. 9 As shown, the present disclosure also provides another method for detecting gold finger defects, including:

[0127] Extract the image:

[0128] S502, obtaining an image to be detected, wherein the image to be detected includes a gold finger area formed by a plurality of gold fingers distributed at equal intervals and a reference graphic area located at both ends of the gold finger area.

[0129] S504, performing rotation correction on the image to be detected based on the reference graphic areas at both ends, and extracting a golden finger grayscale image of the golden finger area in the image to be detected after the rotation correction.

[0130] Confirm the baseline value line:

[0131] S506: Determine a first boundary endpoint and a second boundary endpoint of each golden finger according to the reference graphic area and the size of each golden finger.

[0132] S508: Divide a preset number of contours between the first boundary endpoint and the second boundary endpoint of each golden finger.

[0133] S510, performing Gaussian smoothing on a preset number of contours to obtain contour smoothing results.

[0134] S512, calculating the first-order derivative of the contour smoothing result to obtain a calculation result.

[0135] S514, determining a position point in the golden finger indicated by a calculation result greater than a preset derivative threshold.

[0136] S516, sorting the position points according to the vertical direction of the golden fingers, and determining the median point of each golden finger.

[0137] Image Enhancement:

[0138] S518, using a gamma transform-based image enhancement method to process the golden finger grayscale image.

[0139] Regional Growth:

[0140] S520, performing threshold segmentation on the golden finger grayscale image, and extracting the connected domain of the highlight area in the golden finger grayscale image.

[0141] S522, determining a pre-selected point according to the grayscale extreme value point of the connected domain of the highlight area in the golden finger grayscale image and a preset first grayscale threshold.

[0142] S524, for each pre-selected point, determining eight neighboring pixel points of the pre-selected point in the gold finger grayscale image.

[0143] S526, taking pixel points in the eight neighborhood pixels as candidate points, in response to any candidate point satisfying the conditions of the first criterion, the second criterion, and the third criterion at the same time, or satisfying the conditions of the first criterion, the second criterion, and the fourth criterion at the same time, determining the candidate point that satisfies the conditions indicated by the pre-selected point.

[0144] S528: Determine the target point according to the candidate points satisfying the conditions indicated by each pre-selected point.

[0145] S530, determining a binary image based on the target point and the processed golden finger grayscale image.

[0146] S532, determining a bright spot area in the golden finger grayscale image according to the gradient mean of the connected domain in the binary image.

[0147] S534, calculating the distance between the bright spot contour point and the reference value line in the bright spot area, and performing defect detection on the image to be detected based on the distance between the bright spot contour point and the reference value line and the distance threshold, to obtain a defect detection result.

[0148] For the specific implementation and limitation of this embodiment, please refer to the above embodiment, which will not be repeated here.

[0149] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0150] Based on the same inventive concept, the embodiment of the present disclosure also provides a gold finger defect detection device for implementing the gold finger defect detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more gold finger defect detection device embodiments provided below can refer to the limitations of the gold finger defect detection method above, and will not be repeated here.

[0151] In one embodiment, Fig.10 As shown, a gold finger defect detection device 600 is provided, including: an image processing module 602, a boundary point determination module 604, a reference line determination module 606, a distance calculation module 608 and a defect detection module 610, wherein:

[0152] The image processing module 602 is used to obtain an image to be detected, wherein the image to be detected contains a plurality of gold finger areas with equidistant distribution of gold fingers and a reference graphic area located at both ends of the image to be detected, and extract a gold finger grayscale image of the gold finger area in the image to be detected;

[0153] The boundary point determination module 604 is used to determine the first boundary endpoint and the second boundary endpoint of each golden finger according to the reference graphic areas located at both ends of the image to be detected and the size of each golden finger;

[0154] A baseline determination module 606 is used to divide a preset number of contours between the first boundary endpoint and the second boundary endpoint of each golden finger, determine the median point of each golden finger based on the grayscale values ​​of the preset number of contours, and determine the baseline value line of the golden finger area based on the median point of each golden finger;

[0155] A distance calculation module 608 is used to determine the bright spot area in the golden finger grayscale image by using a target segmentation algorithm of region growing, and calculate the distance from the bright spot contour point of the bright spot area to the reference value line;

[0156] The defect detection module 610 is used to perform defect detection on the image to be detected based on the distance from the bright spot contour point to the baseline value line and the distance threshold to obtain a defect detection result, wherein the distance threshold is determined based on the exclusion area of ​​the baseline value line and the gold finger area.

[0157] In one embodiment of the device, the baseline determination module 606 includes: a median point determination module, which is used to perform Gaussian smoothing on the preset number of contours to obtain a contour smoothing result; calculate the first-order derivative of the contour smoothing result to obtain a calculation result; determine the position point in the golden finger indicated by the calculation result that is greater than a preset derivative threshold; sort the position points according to the vertical direction of the golden finger to determine the median point of each golden finger.

[0158] In one embodiment of the device, the image processing module 602 is further used to perform rotation correction on the image to be detected based on the reference graphic areas at both ends, and extract the golden finger grayscale image of the golden finger area in the image to be detected after rotation correction.

[0159] In one embodiment of the device, the device further comprises: an image enhancement module, configured to process the golden finger grayscale image by using an image enhancement method based on gamma transform.

[0160] In one embodiment of the device, the distance calculation module 608 includes: a bright spot area calculation module, which is used to perform threshold segmentation on the golden finger grayscale image and extract the connected domain of the highlight area in the golden finger grayscale image; determine the pre-selected point according to the grayscale extreme point of the connected domain of the highlight area in the golden finger grayscale image and the preset first grayscale threshold; determine the target point based on the pre-selected point and a predetermined growth criterion, and the growth criterion is determined based on a preset grayscale difference threshold, a second grayscale threshold, a gradient amplitude and a gradient mean; determine a binary image based on the target point and the golden finger grayscale image; determine the bright spot area in the golden finger grayscale image according to the gradient mean of the connected domain in the binary image.

[0161] In one embodiment of the device, the growth criteria include: a first criterion, a second criterion, a third criterion and a fourth criterion, wherein the first criterion is that the grayscale difference between the candidate point and the pre-selected point is less than a preset first grayscale difference; the second criterion is that the grayscale value of the candidate point is greater than a second grayscale threshold, and the second grayscale threshold is determined according to the average grayscale of the golden finger grayscale image; the third criterion is that the gradient amplitude of the candidate point is greater than the gradient mean threshold, and the gradient amplitude threshold is determined according to the gradient mean of each pixel in the golden finger grayscale image; the fourth criterion is that the second criterion of the candidate point is greater than the second grayscale threshold, and the second grayscale threshold is determined according to the gradient mean of each pixel in the golden finger grayscale image; The gradient mean of the four neighborhoods is greater than the gradient mean threshold; the bright spot area calculation module includes: a target point determination module, which is used to determine the eight neighborhood pixel points of the pre-selected point in the golden finger grayscale image for each pre-selected point; taking the pixel points in the eight neighborhood pixel points as candidate points, in response to any of the candidate points simultaneously satisfying the conditions of the first criterion, the second criterion, and the third criterion, or simultaneously satisfying the conditions of the first criterion, the second criterion, and the fourth criterion, determining the candidate point that meets the conditions indicated by the pre-selected point; and determining the target point based on the candidate points that meet the conditions indicated by each pre-selected point.

[0162] Each module in the above-mentioned gold finger defect detection device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0163] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.11 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store images to be detected. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a gold finger defect detection method is implemented.

[0164] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.12As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a gold finger defect detection method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0165] Those skilled in the art will understand that Fig.11 or Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present disclosure, and does not constitute a limitation on the computer device to which the scheme of the present disclosure is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0166] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in any of the above method embodiments when executing the computer program.

[0167] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0168] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in any of the above method embodiments when executed by a processor.

[0169] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present disclosure may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided by the present disclosure may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but are not limited to this.

[0170] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above 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.

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

Claims

1. A gold finger defect detection method, characterized in that: The method comprises: Acquire an image to be detected, wherein the image to be detected includes a gold finger area formed by a plurality of gold fingers distributed at equal intervals and a reference graphic area located at both ends of the gold finger area, and extract a gold finger grayscale image of the gold finger area in the image to be detected; Determine a first boundary endpoint and a second boundary endpoint of each golden finger according to the reference graphic area and the size of each golden finger; A preset number of contours are divided between the first boundary endpoint and the second boundary endpoint of each golden finger, and the median point of each golden finger is determined based on the grayscale values ​​of the preset number of contours, and the reference value line of the golden finger area is determined based on the median point of each golden finger; the median point of each golden finger is determined based on the grayscale values ​​of the preset number of contours, including: Gaussian smoothing of the preset number of contours to obtain a contour smoothing result; calculating the first-order derivative of the contour smoothing result to obtain a calculation result; determining the position point in the golden finger indicated by the calculation result that is greater than a preset derivative threshold; sorting the position points according to the vertical direction of the golden finger to determine the median point of each golden finger; Determine the bright spot area in the golden finger grayscale image by using a region growing algorithm, and calculate the distance from the bright spot contour point in the bright spot area to the reference value line; Based on the distance from the bright spot contour point to the reference value line and the distance threshold, defect detection is performed on the image to be detected to obtain a defect detection result, wherein the distance threshold is determined based on the reference value line and the exclusion area of ​​the gold finger area.

2. The method according to claim 1, characterized in that The step of extracting the golden finger grayscale image of the golden finger area in the image to be detected includes: Based on the reference graphic areas at both ends, rotation correction is performed on the image to be detected, and a golden finger grayscale image of the golden finger area in the image to be detected after rotation correction is extracted.

3. The method according to claim 1, characterized in that After extracting the golden finger grayscale image of the golden finger area in the image to be detected, the method further includes: The golden finger grayscale image is processed by using an image enhancement method based on gamma transform.

4. The method according to claim 1, characterized in that: The method of determining the bright spot area in the golden finger grayscale image by using a region growing algorithm includes: Performing threshold segmentation on the golden finger grayscale image to extract the connected domain of the highlight area in the golden finger grayscale image; Determine a preselected point according to the grayscale extreme value point of the connected domain of the highlight area in the golden finger grayscale image and a preset first grayscale threshold; Determining a target point based on the preselected point and a predetermined growth criterion, wherein the growth criterion is determined based on a preset grayscale difference threshold, a second grayscale threshold, a gradient amplitude, and a gradient mean; Determine a binary image based on the target point and the golden finger grayscale image; According to the gradient mean of the connected domain in the binary image, the bright spot area in the golden finger grayscale image is determined.

5. The method according to claim 4, characterized in that The growth criteria include: a first criterion, a second criterion, a third criterion and a fourth criterion, wherein the first criterion is that the grayscale difference between the candidate point and the pre-selected point is less than a preset first grayscale difference; the second criterion is that the grayscale value of the candidate point is greater than a second grayscale threshold, and the second grayscale threshold is determined according to the average grayscale of the golden finger grayscale image; the third criterion is that the gradient amplitude of the candidate point is greater than the gradient mean threshold, and the gradient amplitude threshold is determined according to the gradient mean of each pixel in the golden finger grayscale image; the fourth criterion is that the gradient mean of the two or four neighborhoods of the candidate point is greater than the gradient mean threshold; the determination of the target point based on the pre-selected point and the predetermined growth criteria includes: For each pre-selected point, determine eight neighboring pixel points of the pre-selected point in the golden finger grayscale image; Taking pixel points in the eight neighborhood pixel points as candidate points, in response to any of the candidate points satisfying the conditions of the first criterion, the second criterion, and the third criterion at the same time, or satisfying the conditions of the first criterion, the second criterion, and the fourth criterion at the same time, determining a candidate point satisfying the conditions indicated by the pre-selected point; The target point is determined according to the candidate points satisfying the conditions indicated by each pre-selected point.

6. A gold finger defect detection device, characterized in that: The device comprises: An image processing module is used to obtain an image to be detected, wherein the image to be detected contains a plurality of gold finger areas with equidistant distribution of gold fingers and reference graphic areas located at both ends of the image to be detected, and extract a gold finger grayscale image of the gold finger area in the image to be detected; A boundary point determination module, used for determining a first boundary endpoint and a second boundary endpoint of each golden finger according to the reference graphic areas located at both ends of the image to be detected and the size of each golden finger; A baseline determination module is used to divide a preset number of contours between the first boundary endpoint and the second boundary endpoint of each golden finger, determine the median point of each golden finger based on the grayscale values ​​of the preset number of contours, and determine the baseline value line of the golden finger area based on the median point of each golden finger; the baseline determination module includes: a median point determination module, used to perform Gaussian smoothing on the preset number of contours to obtain a contour smoothing result; calculate the first-order derivative of the contour smoothing result to obtain a calculation result; determine the position point in the golden finger indicated by the calculation result that is greater than a preset derivative threshold; sort the position points according to the vertical direction of the golden finger to determine the median point of each golden finger; A distance calculation module, used for determining the bright spot area in the golden finger grayscale image by using a target segmentation algorithm of region growing, and calculating the distance from the bright spot contour point of the bright spot area to the reference value line; The defect detection module is used to perform defect detection on the image to be detected based on the distance from the bright spot contour point to the baseline value line and the distance threshold to obtain a defect detection result, wherein the distance threshold is determined based on the exclusion area of ​​the baseline value line and the gold finger area.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Cited By

  • Golden finger defect detection method

    CN119648633A