Visual-based inspection method and device for soldering of stationary contact
By extracting sub-pixel edge points of the weld seam contour of the stationary contact using a visual inspection method, and calculating the curvature value and transition index, the consistency and equipment cost issues of existing inspection methods are resolved, enabling accurate differentiation and quality control of wetting anomalies.
Patent Information
- Application Number
- CN202611330599.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-24
AI Technical Summary
Existing methods for inspecting the quality of brazing of stationary contacts rely on inconsistent human experience, are difficult to perform online full inspections through destructive testing, have high equipment costs and are easily affected by noise, and are difficult to distinguish between wetting abnormalities such as poor soldering and solder overflow.
By acquiring images of the side of the stationary contact, extracting sub-pixel edge points of the outer contour of the solder joint, fitting parametric spline curves to calculate curvature values, dividing contour segments, and using transition index and curvature sequence patterns to identify wetting anomalies, visual detection of poor solder joints and solder overflow is achieved.
It improves the consistency of testing and the quality control capabilities of the production process, reduces equipment costs and noise interference, and can effectively distinguish between insufficient wetting and solder overflow.
Smart Images

Figure CN123160484A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of visual inspection technology, specifically a vision-based method and apparatus for inspecting the quality of static contact brazing. Background Technology
[0002] Stationary contacts are typically formed by brazing a copper substrate to a contact point. The wetting state of the brazing seam directly affects the joint strength, conductivity, and long-term service reliability. In actual production, factors such as the cleanliness of the base material surface, flux distribution, heating temperature, and amount of brazing filler metal can lead to defects such as insufficient wetting, incomplete soldering, and excessive brazing filler metal overflow in the brazing area. Incomplete soldering reduces the effective bonding area between the contact point and the copper substrate, increasing contact resistance. Excessive brazing filler metal may alter the local structural morphology, affecting subsequent assembly and product consistency.
[0003] Existing methods for inspecting the quality of soldering of stationary contacts mainly include manual visual inspection, metallographic section inspection, and non-destructive testing methods such as X-ray and ultrasonic testing. Among these, manual inspection relies on experience, resulting in poor consistency of inspection results; metallographic section inspection is a destructive test and is difficult to use for online full inspection; X-ray and ultrasonic testing equipment is expensive and has high requirements for production line layout and inspection cycle; some image-based inspection methods rely on appearance features such as grayscale, area, or contour size, which are easily affected by surface reflection of the solder, imaging noise, and changes in product posture, and are difficult to effectively distinguish between different types of wetting abnormalities such as cold solder joints and solder overflow. Summary of the Invention
[0004] The purpose of this application is to provide a vision-based method and apparatus for inspecting the quality of static contact brazing, so as to solve the problems mentioned in the background art.
[0005] According to one aspect of this application, a vision-based method for inspecting the quality of static contact brazing is provided, comprising the following steps: Acquire images of the brazing area on the side of the stationary contact and extract the sub-pixel edge point sequence of the outer contour of the brazing seam; A parametric spline curve is fitted to the edge point sequence, and the curvature value is calculated point by point along the spline curve to form a curvature sequence. Based on the distribution of curvature values in the curvature sequence, the outer contour of the brazing seam is divided into an upper flat area, an upper transition area, an arc segment, a lower transition area, and a lower flat area. The reciprocal of the absolute value of the mean curvature of the arc segment is used as the equivalent arc radius. The transition arc lengths of the upper and lower transition zones are measured respectively. The ratio of the equivalent arc radius to the corresponding transition arc length is used as the transition index of the transition zone. The curvature sequences of the upper and lower transition regions are checked to see if there are positive curvature segments that exceed the noise threshold. If they do, they are marked as non-monotonic transitions; otherwise, they are marked as monotonic transitions. If any transition zone is a non-monotonic transition, it is judged as solder overflow; for welded parts that are all monotonically transitioned, those with a transition index exceeding the upper limit of the normal range are judged as cold welds, otherwise they are judged as qualified.
[0006] Preferably, extracting the sub-pixel edge point sequence of the outer contour of the weld seam includes: applying an edge detection operator to the preprocessed image to obtain preliminary edge pixel positions; cutting grayscale profiles along the gradient normal direction of each preliminary edge pixel; calculating the Gaussian first derivative response of the grayscale profiles; taking the sub-pixel position of the response extremum as the precise coordinates of the edge point at that location; and arranging all the precise coordinates in order of position along the contour to form the edge point sequence.
[0007] Preferably, dividing the outer contour of the weld seam into an upper flat region, an upper transition region, an arc segment, a lower transition region, and a lower flat region includes: calculating the standard deviation of curvature for sampling points in the curvature sequence whose absolute curvature values are lower than the coarse selection value, and setting a preset multiple of the standard deviation as a flatness threshold; marking continuous segments where the absolute curvature value is consistently lower than the flatness threshold as flat regions, with the first flat region along the contour from top to bottom being the upper flat region and the last flat region being the lower flat region; marking continuous segments between two flat regions where the curvature value is consistently negative and the absolute value is greater than the flatness threshold as arc segments; the segment between the end of the upper flat region and the beginning of the arc segment being the upper transition region, and the segment between the end of the arc segment and the beginning of the lower flat region being the lower transition region.
[0008] Preferably, when calculating the transition index, a number of consecutive sampling points are selected at the beginning of the transition zone to calculate the mean curvature value as the representative curvature value at the beginning, and a number of consecutive sampling points are selected at the end of the transition zone to calculate the mean curvature value as the representative curvature value at the end. The transition arc length is the cumulative value of the arc length from the beginning to the end. The equivalent circular arc radius is obtained by taking the absolute value of the mean curvature values of all sampling positions within the arc segment and then taking the reciprocal.
[0009] Preferably, the noise threshold is determined by taking the curvature value of each sampling position in the upper flat region or the lower flat region, calculating the standard deviation of the curvature value, and using a preset multiple of the standard deviation as the noise threshold.
[0010] Preferably, when determining a non-monotonic transition, the continuous arc length of the positive curvature segment exceeding the noise threshold is not shorter than a preset proportion of the total arc length of the corresponding transition zone.
[0011] Preferably, determining the upper limit of the normal range includes: performing the curvature sequence formation, contour division, and transition index calculation on several calibration samples that have passed the metallographic section verification for wetting, calculating the mean and standard deviation of the transition index of all calibration samples, and taking the sum of the mean and the standard deviation as the upper limit of the normal range.
[0012] Preferably, for welded parts that are all monotonous transitions, the method further includes calculating the ratio of the transition index of the upper transition zone to the transition index of the lower transition zone, and when the ratio deviates from a preset range, determining whether the cold weld occurs on the upper or lower side based on the direction of deviation.
[0013] Preferably, when the curvature change patterns of the upper and lower transition zones of the same weldment are different, the side marked as non-monotonic transition is determined to be solder overflow, and the side marked as monotonic transition is independently checked to see if its transition index exceeds the upper limit of the normal range, and based on this, it is determined whether there is a cold solder joint on that side.
[0014] In another aspect, this application also provides a vision-based static contact brazing quality inspection device, comprising: The image processing module is used to acquire images of the brazing area on the side of the stationary contact and extract the sub-pixel edge point sequence of the outer contour of the brazing seam. The curvature calculation module is used to fit a parametric spline curve to the edge point sequence, calculate the curvature value point by point along the spline curve, and form a curvature sequence; according to the distribution of curvature values in the curvature sequence, the outer contour of the brazing seam is divided into an upper flat area, an upper transition area, an arc segment, a lower transition area, and a lower flat area; The contour division and transition index calculation module is used to calculate the reciprocal of the absolute value of the mean curvature of the arc surface segment as the equivalent arc radius, measure the transition arc length of the upper transition zone and the lower transition zone respectively, and use the ratio of the equivalent arc radius to the corresponding transition arc length as the transition index of the transition zone. The transition mode detection module is used to detect whether there are positive curvature segments in the curvature sequences of the upper and lower transition regions that exceed the noise threshold. If they exist, they are marked as non-monotonic transitions; otherwise, they are marked as monotonic transitions. The quality judgment module is used to determine that if any transition zone is a non-monotonic transition, it is a solder overflow; for welded parts that are all monotonically transitioned, the transition index exceeding the upper limit of the normal range is judged as a cold weld, otherwise it is judged as qualified.
[0015] This application acquires images of the brazing area on the side of the stationary contact, extracts sub-pixel edge points of the brazed seam outline, and constructs a curvature sequence. The brazed seam outline is divided into a flat area, a transition area, and an arc segment, allowing the brazing wetting state to be characterized by the geometric features of the outline. By normalizing the transition arc length with the equivalent arc radius of the arc segment to obtain a transition index, the impact of solder usage, product specifications, and batch differences on the determination of incomplete welds can be reduced, improving the comparability of determination results between different welded parts. Simultaneously, by identifying non-monotonic transitions based on the positive curvature segments and sign changes in the curvature sequence of the transition area, non-monotonic transitions can be distinguished from incomplete welds caused by solder overflow and insufficient wetting, avoiding misjudgments caused by relying solely on grayscale, area, or outline dimensions. This is beneficial for improving detection consistency and production process quality control capabilities. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0017] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 This is a schematic diagram of a vision-based quality inspection method for static contact brazing, provided in an embodiment of this application.
[0018] Figure 2 This is a schematic diagram of the brazing seam contour segmentation process provided in an embodiment of this disclosure.
[0019] Figure 3 This is a schematic diagram of the comprehensive quality assessment process provided in the embodiments of this disclosure.
[0020] Figure 4 This is a schematic diagram of a vision-based static contact brazing quality inspection device provided in an embodiment of this application. Detailed Implementation
[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0022] This method is applicable to online inspection of the brazing quality of stationary contacts using an industrial area array camera as the acquisition device. The stationary contact is formed by brazing a copper substrate and a contact point. The brazing seam is located in the lateral region between the contact end face and the copper substrate surface, and its wetting state directly affects the joint strength and conductivity reliability. Under normal wetting conditions, the brazing filler metal spreads fully on the base material surface, and the outer contour of the brazing seam smoothly transitions from the base material plane to the concave arc region. When wetting is poor or excessive brazing filler metal overflows, the geometry of the transition region will change accordingly. This method utilizes this geometric difference to extract and analyze the curvature change characteristics at the junction of the brazing seam contour and the base material surface to detect and distinguish between two wetting anomalies: poor soldering and brazing filler metal overflow. It only requires a conventional industrial area array camera and an LED light source, without relying on specialized inspection equipment such as X-rays or ultrasound.
[0023] The following detailed description, in conjunction with specific embodiments, illustrates the implementation process of the vision-based static contact brazing quality inspection method described in this application. It should be noted that these embodiments are merely for explaining this application and not for limiting its scope of protection. Any conventional adjustments or substitutions made by those skilled in the art to the steps without departing from the concept of this application should be included within the scope of protection of this application.
[0024] like Figure 1 As shown in the figure, this application discloses a vision-based method for inspecting the quality of static contact brazing, which includes the following steps: Acquire images of the brazing area on the side of the stationary contact and extract the sub-pixel edge point sequence of the outer contour of the brazing seam; Fit a parametric spline curve to the edge point sequence, and calculate the curvature value point by point along the spline curve to form a curvature sequence; Based on the distribution of curvature values in the curvature sequence, the outer contour of the brazing seam is divided into an upper flat area, an upper transition area, an arc segment, a lower transition area, and a lower flat area. The reciprocal of the absolute value of the mean curvature of the arc segment is used as the equivalent arc radius. The transition arc lengths of the upper and lower transition zones are measured respectively. The ratio of the equivalent arc radius to the corresponding transition arc length is used as the transition index of the transition zone. The curvature sequences of the upper and lower transition regions are checked to see if there are positive curvature segments that exceed the noise threshold. If they do, they are marked as non-monotonic transitions; otherwise, they are marked as monotonic transitions. If any transition zone is a non-monotonic transition, it is judged as solder overflow; for welded parts that are all monotonically transitioned, those with a transition index exceeding the upper limit of the normal range are judged as cold welds, otherwise they are judged as qualified.
[0025] In some embodiments, for step S1, an industrial area array camera is used to acquire images of the brazing area from the side of the stationary contact. A ring-shaped low-angle LED illumination is used as the light source. The illumination angle relative to the horizontal plane can be configured, for example, 15° to 25°, to create clear light and dark boundaries at the brazing seam contour. The brazing filler metal surface typically has high gloss; if the illumination angle is too large, it can easily form large-area specular reflections, interfering with the identification of the contour edges. With low-angle illumination, the light almost brushes across the brazing seam surface, forming high-contrast light and dark boundaries only at the contour transition points, which is beneficial for subsequent edge extraction. In some embodiments, a telecentric lens can be used to eliminate magnification variations caused by differences in object distance. If a conventional lens is used, the working distance should be large enough, for example, not less than 10 times the outer diameter of the contact, so that the imaging approximately meets the parallel projection conditions. After grayscale processing, the acquired image is subjected to a Gaussian smoothing filter to suppress sensor noise. The size of the Gaussian filter kernel is selected according to the image resolution and noise level, for example, it can be configured as 3×3 or 5×5 pixels.
[0026] The Canny edge detection operator is applied to the preprocessed grayscale image to obtain the preliminary edge pixel positions of the seam outer contour. Specifically, the Canny operator extracts edges based on a dual-threshold hysteresis strategy of image grayscale gradient, including first calculating the magnitude and direction of the grayscale gradient at each pixel in the image, then performing non-maximum suppression along the gradient direction to refine the edge width, and finally using high and low thresholds for hysteresis connection. Pixels with gradient magnitudes higher than the high threshold are directly identified as edges, and pixels between the high and low thresholds and connected to the identified edges are also included. The high and low thresholds can be adaptively set according to the statistical distribution of the gradient magnitude map. For example, the value obtained by thresholding the gradient magnitude map using the Otsu method is used as the high threshold, and the low threshold is half of the high threshold.
[0027] Sub-pixel refinement is performed on the initial edge. Specifically, for each initial edge pixel, the gradient direction at that pixel is first determined, which is the normal direction of the edge. A grayscale profile is then extracted from the grayscale image along this normal direction, for example, taking 5 to 8 pixels before and after the normal direction to form a one-dimensional grayscale signal. The first-order Gaussian derivative response is calculated for this grayscale profile, which is to perform a convolution operation between the grayscale signal and the first-order Gaussian derivative kernel. The position with the largest absolute value of the response in the convolution result corresponds to the steepest grayscale gradient, which is the location of the true edge. By performing parabolic interpolation on three points near the extreme value of the response, the extreme value position is located to sub-pixel precision, which serves as the precise coordinates of the edge point at that location.
[0028] Among them, the curvature difference caused by poor soldering in the transition zone may only be reflected in the range of a few tenths to two pixels. Integer pixel-level precision is insufficient to capture such subtle geometric changes. All precise edge points are arranged in order of their position along the solder joint contour to form an ordered edge point sequence.
[0029] In this embodiment of the disclosure, the outer contour of the brazing seam refers to the outer surface boundary line formed by the brazing filler metal between the contact end face and the copper base surface when viewed from the side of the stationary contact. Along the contour from top to bottom, it sequentially passes through the contact end face area, the upper transition area, the middle concave arc area (hereinafter referred to as the arc surface segment), the lower transition area, and the copper base surface area. The transition area refers to the local transition section on the contour from the approximately flat base material surface to the concave arc brazing seam surface. This section is the area where the wetting behavior is directly reflected in the geometry of the contour.
[0030] In some embodiments, for step S2, the outer contour of the brazing seam is divided into an upper flat area, an upper transition area, an arc segment, a lower transition area, and a lower flat area; wherein the upper flat area corresponds to the contact end face area, the lower flat area corresponds to the copper base surface area, the arc segment corresponds to the concave arc area in the middle of the brazing seam, and the upper transition area and the lower transition area are located between the upper flat area and the arc segment, and between the arc segment and the lower flat area, respectively; the division is based on the distribution characteristics of the curvature values at each position of the contour along the arc length direction.
[0031] Specifically, such as Figure 2 As shown, Figure 2 This is a schematic diagram of the weld seam contour segmentation process provided in this embodiment. In S201: a cubic parametric spline curve is fitted to an ordered sequence of edge points to make the contour a smooth curve that is continuously differentiable along the arc length parameter. Specifically, the cubic parametric spline fitting uses the arc length as the independent variable and establishes a cubic piecewise polynomial for the abscissa and ordinate of the edge points respectively. Adjacent segments satisfy the continuity conditions of function value, first derivative, and second derivative at the nodes. Since the spacing between edge points obtained by sub-pixel extraction is not completely uniform, the Euclidean distance between adjacent points is accumulated point by point before fitting as the arc length parameter value of each point. The arc length parameter starts from zero at the top of the contour and increases point by point downwards.
[0032] The fitted spline curve is mathematically represented as a curve with arc length... Continuous function pairs with parameters and The derivatives of each order can be analytically calculated using the coefficients of the spline polynomial. The curvature value is calculated point by point along the spline curve with a fixed arc length step. The calculation method is as follows:
[0033] in , For spline curves with arc length parameter The first derivative of the coordinate component at that point. , As the second derivative, according to the coordinate system convention, concave surfaces correspond to negative curvature values, convex surfaces correspond to positive curvature values, and planes correspond to zero curvature values. The results of point-by-point calculation constitute a complete curvature sequence along the contour. This sequence is the basic data for subsequent segmentation and feature extraction. The calculation step size can be configured to be one-tenth to one-fifth of the spline node spacing. If the step size is too large, local curvature details will be missed, and if the step size is too small, unnecessary calculations will be generated.
[0034] In S202: Five segments are identified in the curvature sequence based on the magnitude and sign of the curvature values at each position. Specifically, all sampling points in the curvature sequence with absolute values lower than a coarse selection value are first collected. The coarse selection value is determined based on the distribution of absolute curvature values within the same curvature sequence. For example, after sorting the absolute curvature values from smallest to largest, the absolute curvature value corresponding to a preset low quantile is taken as the coarse selection value. The preset low quantile can be a 10% to 20% quantile. The standard deviation of the curvature values at these points is then calculated. ,Will The preset multiple is set to the flat threshold. This multiplier can be configured, for example, to be 2 to 3 times. The region with near-zero curvature on the contour reflects the curvature fluctuation amplitude caused by measurement noise on a flat surface. Using this as a benchmark to set a flatness threshold allows the segmentation results to adapt to noise levels under different image conditions.
[0035] The absolute value of curvature remains below The continuous segments are marked as candidate segments of the flat area. The contour is scanned from top to bottom. The first continuous segment that meets the conditions is marked as the upper flat area, corresponding to the contact end face area; the last continuous segment that meets the conditions is marked as the lower flat area, corresponding to the copper base surface area. The base material surface is approximately flat in macroscopic terms, and the curvature value of its corresponding contour segment fluctuates slightly around zero.
[0036] Between the upper and lower flat regions, the curvature value is consistently negative and its absolute value is greater than [value missing]. The continuous section is marked as the arc segment. The arc segment corresponds to the concave arc region in the middle of the braze seam. The curvature of the arc segment of a normal braze seam is negative and remains relatively stable. When marking the starting point of the arc segment, the curvature sequence is scanned downwards along the arc length from the end of the upper flat area to find the first time that the curvature value is continuously lower than the arc segment. The sampling points are continuously maintained at a predetermined number, which can be 3 to 5 sampling points. The reason for requiring the continuous maintenance of the predetermined number of sampling points is to avoid occasional curvature fluctuations in the transition zone being mistaken for the start of the arc segment. The method for determining the end point of the arc segment is similar, scanning upwards from the start of the lower flat area and using the same predetermined number of sampling points to maintain the position continuously. The section between the end of the upper flat area and the start of the arc segment is the upper transition zone, and the section between the end of the arc segment and the start of the lower flat area is the lower transition zone.
[0037] In some embodiments, for step S3, the core physical parameter of brazing wetting quality is the contact angle of the brazing filler metal at the three-phase line; where the three-phase line refers to the boundary line between the brazing filler metal, the base metal, and the air, and the contact angle is the angle between the surface of the brazing filler metal at the three-phase line and the surface of the base metal; the smaller the contact angle, the more fully the brazing filler metal spreads on the base metal, and the better the wetting quality; when the contact angle is too large, it means insufficient wetting, and there may be a cold weld; on the outer contour of the brazed seam, the size of the contact angle directly reflects the difference in the geometric shape of the transition zone: when the contact angle is small, the transition from the flat surface to the arc section is smooth and the transition arc length is long; when the contact angle is large, the transition is rapid and the arc length is significantly shortened; in this embodiment, a quantitative index that can reflect the smoothness of the transition is extracted from the curvature data of the transition zone, and the systematic interference caused by the difference in the amount of brazing filler metal between different welded parts is eliminated by normalization processing.
[0038] Specifically, the curvature transition gradient is calculated for both the upper and lower transition regions. Taking the upper transition region as an example, the calculation process is as follows: First, representative curvature values at both ends of the transition region are determined; at the starting end of the transition region, i.e., the side closer to the upper flat region, several consecutive sampling points are selected, and the average of their curvature values is calculated as the representative curvature value at the starting end. At the end of the transition zone, i.e., on the side closer to the curved surface, several consecutive sampling points are selected to calculate the mean curvature value, which is then used as the representative curvature value at the end. The purpose of taking multiple averages instead of single-point values is to reduce the impact of local noise fluctuations on the representative value. The number of sampling points can be configured to, for example, 5 to 10. The specific number can be determined according to 10% to 20% of the total number of sampling points in the transition zone. If the number of points is too small, the average will not suppress noise sufficiently. If the number of points is too large, the curvature change in the middle of the transition zone may be mixed into the end representative value, affecting its accuracy.
[0039] Simultaneously measure the cumulative arc length from the starting end to the ending end, i.e., the transition arc length. . Approaching zero (corresponding to the theoretical curvature of a flat base material surface). The value is negative (corresponding to the concave curvature of the arc segment), and the difference between the two reflects the curvature span at both ends of the transition zone; This reflects the distance the span unfolds in space, and the ratio of the two is the curvature transition gradient, which can be expressed by the formula:
[0040] It is usually a negative value, and the larger the absolute value, the steeper the transition during normal wetting. Larger Small; when there is a cold solder joint shorten, The curvature transition gradient of the lower transition region is significantly increased and calculated in the same way, thus obtaining the curvature transition gradient corresponding to the lower transition region.
[0041] In actual production, the amount of brazing filler metal used in different welded parts varies between batches and individuals. When the amount of brazing filler metal is large, the radius of curvature of the arc segment increases accordingly, and the absolute value of the average curvature decreases; when the amount of brazing filler metal is small, the radius of curvature is small and the absolute value is large. This difference means that even if two welded parts have the same contact angle, their transition arc lengths will differ. and curvature of arc segment The absolute values of these values are all different, which in turn causes the curvature transition gradient to be different. The absolute values are also different; if we directly use absolute value or Using the absolute value of the solder as an indicator of poor soldering requires establishing separate reference ranges for products with different amounts of solder. Each time a product specification or batch of solder is changed, it needs to be recalibrated, which limits its applicability.
[0042] To address this issue, this embodiment utilizes the geometric features of the arc segment of the same weldment as a normalization benchmark. Specifically, the mean of the curvature values at all sampling positions in the extracted arc segment curvature subsequence is calculated, and the reciprocal of the absolute value of this mean is taken as the equivalent circular arc radius of the arc segment.
[0043] in The mean curvature of the arc segment. This reflects the overall size of the brazed seam surface of the current welded component. In some embodiments, when the arc segment is short or there are local curvature anomalies, the median curvature value of the arc segment can be used instead of the arithmetic mean for calculation. The median is less sensitive to outliers than the mean, and provides a more robust estimate when the curvature distribution of the curved surface is uneven.
[0044] Based on this, the equivalent arc radius With transition arc length The ratio is defined as the transition index of the transition zone:
[0045] and All of them are lengths. A larger value means that the transition arc length is shorter relative to the radius of the arc surface, that is, the transition is steeper and the contact angle is larger; The smaller the value, the smoother the transition and the smaller the contact angle.
[0046] Normalization can eliminate the influence of solder quantity because, with a constant contact angle, increasing the solder quantity proportionally enlarges the overall size of the brazed joint; the radius of curvature... With transition arc length As they increase proportionally, the ratio of the two... It remains essentially constant; this is because the external contour of the brazing seam is geometrically similar under the same contact angle, and changes in size do not alter the shape. The approximation depends only on the contact angle itself, meaning that the arc segment of each weldment acts as an internal dimensional reference for that part. Weldments of different specifications and with different amounts of brazing filler metal are comparable after normalization. Within the product category, batch, and key process parameters covered by the calibration sample, the same standard can be used. Scope of judgment.
[0047] The transition indices for the upper and lower transition zones were calculated separately using the methods described above, and denoted as follows: and Both reflect the steepness of the transition between the contact end face and the copper base face, respectively.
[0048] In one embodiment, the upper limit of the normal range is determined by selecting several welded parts from the same batch of products that have passed metallographic sectioning verification as calibration samples, performing the aforementioned processing steps on each calibration sample, and calculating its... and ; Statistical analysis of all calibrated samples mean and standard deviation Set the upper limit of the normal range to ;in This is the sensitivity coefficient, and its value depends on the balance required between detection sensitivity and false alarm rate. For example, it can be configured to be 2 to 3. The larger the value, the more lenient the judgment, resulting in a lower false alarm rate but potentially missing minor solder joint defects. The smaller the value, the higher the sensitivity, but the false alarm rate increases accordingly. The upper limit of the normal range is determined independently in the same way; the number of calibration samples should ensure the representativeness of the statistical results, for example, no less than 20.
[0049] In some embodiments, for step S4, besides poor soldering, another common wetting abnormality in actual production is solder overflow; when too much solder is used or the heating temperature is too high, the excess solder overflows from the solder joint surface to the base material surface, forming an outwardly protruding accumulation at the junction of the base material surface and the solder joint surface. This protrusion makes the overall contour of the transition zone smoother, and the curvature transition gradient is reduced, only by the transition index. During the determination, the overflow component The value may fall within the normal range or even be too small, thus being mistakenly judged as qualified; therefore, this embodiment uses the change pattern of the positive and negative signs of the curvature value in the curvature sequence of the transition zone to distinguish between normal wetting and solder overflow.
[0050] Under normal wetting conditions, the weld bead profile transitions from a flat base metal surface to a concave arc weld bead surface, with the curvature gradually changing from near zero to a negative value (concave direction). This change is monotonous and continuous, with no positive curvature segment appearing throughout the transition zone. Under poor weld conditions, the curvature also changes from near zero to a negative value in the same direction, but the rate of change is faster and the transition arc length is shorter. No positive curvature segment also appears. The distinction between normal wetting and poor weld conditions is based on the transition index. .
[0051] When solder overflows, the contour shape undergoes significant changes. For example, the protrusion formed by the overflowing solder on the base material surface causes the contour to bulge outwards before entering the concave arc segment. Correspondingly, in terms of curvature, the curvature first increases from near zero to a positive value (protrusion segment), and then becomes negative after passing zero (concave arc segment). A sign reversal from positive to negative occurs in the transition zone. This reversal does not occur in normal wetting or cold solder joints and is a unique geometric feature of solder overflow. Based on this, the curvature change pattern of the transition zone is divided into two categories: a monotonic transition where there is no positive curvature interval exceeding the noise threshold throughout the entire process, and a non-monotonic transition where there is a positive curvature interval exceeding the noise threshold and a sign reversal occurs. Since the transition zone is adjacent to the negative curvature arc segment, this non-monotonic morphology usually manifests as a sign change during the transition from the positive curvature segment to the negative curvature arc segment.
[0052] In addition, the computational errors introduced by subpixel edge extraction and spline fitting may cause extremely small positive curvature fluctuations in the transition region. These fluctuations are not caused by real protrusions and need to be eliminated by setting a reasonable noise threshold.
[0053] In one embodiment, the noise threshold is determined by selecting the region with the most sampling points from the identified upper or lower flat regions, and calculating the standard deviation of the curvature value sequence within that region. The theoretical curvature of the flat region is zero; the fluctuations in the measured curvature value in this region are entirely due to measurement noise and fitting error. Therefore, it directly reflects the noise level of curvature measurement under the current image conditions, and the judgment threshold for the positive curvature segment is set as follows: The preset multiplier, for example, can be configured to 3 times. Under the Gaussian noise assumption, the probability of a single sampling point occasionally exceeding 3 times the standard deviation due to noise is about 0.3%, which is sufficient to effectively suppress false positives.
[0054] In the curvature sequence of the transition zone, check if there is a case where the maximum positive curvature exceeds the noise threshold. If so, further check whether the continuous arc length of the positive curvature segment exceeding the threshold reaches a preset proportion of the total arc length of the corresponding transition zone, for example, it can be configured to 5% to 10%. The purpose of adding this continuity condition is to eliminate misjudgment caused by occasional fluctuations of a single isolated sampling point, because the protrusion segment formed by the actual solder overflow has a certain spatial range and is represented by the positive curvature values of multiple consecutive sampling points in the curvature sequence, while the positive curvature fluctuations caused by noise are usually isolated and discontinuous. When both the positive curvature peak value exceeds the noise threshold and the continuous arc length reaches the preset proportion are met, the transition zone is determined to be a non-monotonic transition; otherwise, it is determined to be a monotonic transition.
[0055] This noise threshold uses the curvature fluctuation of the flat area of the inspected weldment as a noise reference. It is a piece-by-piece adaptive setting method. Under different image conditions, such as changes in light intensity, differences in focus, or fluctuations in sensor temperature, the noise level will change. This method can automatically adapt without offline recalibration.
[0056] The above positive curvature segment detection is performed on the upper and lower transition regions respectively, and each region obtains a curvature change pattern label, i.e., monotonic transition or non-monotonic transition. The labels of the two transition regions are determined independently, and the result of one side does not affect the judgment of the other side.
[0057] In some embodiments, when a non-monotonic transition is detected, quantitative features of the overflow degree can be further extracted. Specifically, the peak value and arc length of the positive curvature segment in the transition zone are recorded, reflecting the steepness and spatial range of the overflow protrusion, respectively, so that process engineers can assess the severity of the overflow and adjust the amount of solder or heating parameters accordingly.
[0058] In some embodiments, for step S5, such as Figure 3 As shown, Figure 3 This is a schematic diagram of the quality comprehensive judgment process provided in the embodiments of this disclosure. In S301: if any transition zone is a non-monotonic transition, it is determined that the solder overflows.
[0059] In the first stage, the curvature change pattern labels of the upper and lower transition zones are checked respectively. If the label of either transition zone is non-monotonic transition, the side corresponding to the non-monotonic transition zone is judged as having solder overflow, and the judgment result of the weldment is recorded as having solder overflow anomaly. At the same time, the location of the overflow is recorded, whether it is the upper side, the lower side, or both sides. If both the upper and lower transition zones are non-monotonic transition, it is judged as solder overflow on both sides. If only one side is non-monotonic transition, the other side's monotonic transition zone is retained and enters the second stage of cold solder joint inspection.
[0060] In S302: For weldments with monotonous transitions, those with a transition index exceeding the upper limit of the normal range are judged as having a weak weld; otherwise, they are judged as acceptable. The second stage is performed on weldments where both the upper and lower transition zones are monotonous transitions, or on the monotonous transition side of a weldment where one side is not monotonous and the other is monotonous. The output of the aforementioned steps is checked. and Check whether the transition index corresponding to the monotonic transition side exceeds the upper limit of its respective normal range: if the transition index of any monotonic transition side being inspected exceeds the limit, the side is judged to be a cold weld; if both the upper and lower transition zones are monotonic transitions and both are within the normal range, the wetting is judged to be normal and the welded part is qualified.
[0061] The protrusions formed by solder overflow in the transition zone will change the transition arc length on the non-monotonic transition side. The measurement results are made to include the arc length contribution of the convex segment, and the calculated value for this side is then obtained. The value no longer accurately reflects the contact angle information; for such... Thresholding values has no physical meaning; therefore, it is necessary to first identify and exclude the transition side that is experiencing overflow. Value determination, then apply the corresponding value to one or both sides that are still in a monotonic transition. Values are used to determine if the solder joint is faulty.
[0062] In some embodiments, when the upper and lower transition zones of the same weldment exhibit different types of anomalies, such as one side being a non-monotonic transition and the other side being a monotonic transition, the following procedures are followed: the side marked as a non-monotonic transition is determined to have solder overflow; the side marked as a monotonic transition is independently checked to see if its transition index exceeds the upper limit of the normal range, thereby determining whether there is a cold solder joint on that side; the monotonic transition side... The value is not affected by the overflow and can still accurately reflect the wetting state of that side; the final output of the same welded part can simultaneously contain abnormal information of different locations and types, such as solder overflow on the upper side and poor soldering on the lower side.
[0063] For welded parts with monotonically changing transitions, optionally, the ratio of the transition index of the upper transition zone to the transition index of the lower transition zone can be further calculated:
[0064] In normal welds, the wetting conditions of the brazing filler metal on both sides of the contact end face and the copper base are similar, and the two transition zones... The values are usually close to, If the surface condition of the base material on one side is poor, for example, if the copper base surface has an oxide layer or insufficient cleanliness, resulting in poor wetting on that side, the corresponding side's... The value is too large. Corresponding deviation 1, A value significantly greater than 1 indicates a steeper transition in the upper transition zone, suggesting a greater likelihood of poor wetting on the upper side compared to the lower side. If the value is significantly less than 1, then there is a greater likelihood of a problem on the lower side. The normal range is through with The same calibration sample set is statistically determined, and calculations are performed for each calibration sample. Statistical analysis of each calibration sample mean and standard deviation And the interval determined by the following formula is taken as Preset range:
[0065] in, In order to calibrate the sample The mean, In order to calibrate the sample standard deviation The sensitivity coefficient is the ratio range, and its value can be determined according to the steps described above. The method for determining the value is as follows. This ratio provides an auxiliary reference for the spatial positioning of cold solder joints, helping process engineers to determine which side of the base material surface the wetting abnormality occurs on, thereby enabling targeted inspection of process aspects such as cleanliness and flux coating uniformity.
[0066] Optionally, the judgment result output may include each transition region. value, Value and curvature variation pattern labels allow process engineers to monitor the stability of the brazing process; for example, when multiple consecutive welded parts... When the value shows a gradual increasing trend but has not yet exceeded the normal range, it can be inferred that the wetting conditions are deteriorating, and possible influencing factors such as the surface treatment of the base material or the heating temperature should be investigated in a timely manner.
[0067] Therefore, this method uses the curvature change behavior of the transition zone of the brazing seam as a detection feature. It uses two independent criteria, the transition index and the curvature sign change pattern, to detect and distinguish between two wetting anomalies: cold solder joints and brazing filler overflow. The ratio of the indices of the upper and lower transition zones is used to help locate the defect. The equivalent arc radius of the arc segment is used as a normalization benchmark to make the judgment criteria unaffected by the fluctuation of brazing filler filler volume. The standard deviation of the curvature in the flat area is used as a noise threshold benchmark to make the sign flip judgment adaptable to different image conditions, reducing the dependence on manual calibration and empirical parameters.
[0068] It should be noted that although the operations of the method of this application are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. On the contrary, the steps depicted in the flowchart can be performed in a different order. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.
[0069] Please see Figure 4 , Figure 4 This application provides a vision-based static contact brazing quality inspection device. This device embodiment is similar to... Figure 1 Corresponding to the illustrated method embodiment, this device can be specifically applied to various electronic devices. The device specifically includes: Image processing module 401 is used to acquire images of the brazing area on the side of the stationary contact and extract the sub-pixel edge point sequence of the outer contour of the brazing seam. The curvature calculation module 402 is used to fit a parametric spline curve to the edge point sequence, calculate the curvature value point by point along the spline curve to form a curvature sequence; and divide the outer contour of the brazing seam into an upper flat area, an upper transition area, an arc segment, a lower transition area and a lower flat area according to the distribution of curvature values in the curvature sequence. The contour division and transition index calculation module 403 is used to calculate the reciprocal of the absolute value of the mean curvature of the arc surface segment as the equivalent arc radius, measure the transition arc length of the upper transition zone and the lower transition zone respectively, and use the ratio of the equivalent arc radius to the corresponding transition arc length as the transition index of the transition zone. The transition mode detection module 404 is used to detect whether there are positive curvature segments exceeding the noise threshold in the curvature sequences of the upper transition region and the lower transition region, respectively. If they exist, they are marked as non-monotonic transitions; otherwise, they are marked as monotonic transitions. The quality judgment module 405 is used to determine that if any transition zone is a non-monotonic transition, it is a solder overflow; for welded parts that are all monotonically transitioned, the transition index exceeding the upper limit of the normal range is judged as a cold weld, otherwise it is judged as qualified.
[0070] Each processing unit and / or module in the embodiments of this application can be implemented by an analog circuit that implements the functions described in the embodiments of this application, or by software that executes the functions described in the embodiments of this application.
[0071] The above description represents the preferred embodiments of the present invention. It should be noted that, for those skilled in the art, various improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A vision-based method for inspecting the quality of static contact brazing, characterized in that, include: Acquire images of the brazing area on the side of the stationary contact and extract the sub-pixel edge point sequence of the outer contour of the brazing seam; A parametric spline curve is fitted to the edge point sequence, and the curvature value is calculated point by point along the spline curve to form a curvature sequence. Based on the distribution of curvature values in the curvature sequence, the outer contour of the brazing seam is divided into an upper flat area, an upper transition area, an arc segment, a lower transition area, and a lower flat area. The reciprocal of the absolute value of the mean curvature of the arc segment is used as the equivalent arc radius. The transition arc lengths of the upper and lower transition zones are measured respectively. The ratio of the equivalent arc radius to the corresponding transition arc length is used as the transition index of the transition zone. The curvature sequences of the upper and lower transition regions are checked to see if there are positive curvature segments that exceed the noise threshold. If they do, they are marked as non-monotonic transitions; otherwise, they are marked as monotonic transitions. If any transition zone is a non-monotonic transition, it is judged as solder overflow; for welded parts that are all monotonically transitioned, those with a transition index exceeding the upper limit of the normal range are judged as cold welds, otherwise they are judged as qualified.
2. The vision-based quality inspection method for static contact brazing according to claim 1, characterized in that, Extracting the sub-pixel edge point sequence of the outer contour of the brazing seam includes: applying an edge detection operator to the preprocessed image to obtain the initial edge pixel positions; cutting grayscale profiles along the gradient normal direction of each initial edge pixel; calculating the Gaussian first derivative response of the grayscale profiles; taking the sub-pixel position of the response extremum as the precise coordinates of the edge point at that location; and arranging all the precise coordinates in order of position along the contour to form the edge point sequence.
3. The vision-based quality inspection method for static contact brazing according to claim 1, characterized in that, Dividing the outer contour of the weld seam into an upper flat region, an upper transition region, an arc segment, a lower transition region, and a lower flat region includes: calculating the standard deviation of curvature for sampling points in the curvature sequence whose absolute curvature values are lower than the coarse selection value, and setting a preset multiple of the standard deviation as a flatness threshold; marking continuous segments where the absolute curvature value is consistently lower than the flatness threshold as flat regions, with the first flat region along the contour from top to bottom being the upper flat region and the last flat region being the lower flat region; marking continuous segments between two flat regions where the curvature value is consistently negative and the absolute value is greater than the flatness threshold as arc segments; the segment between the end of the upper flat region and the beginning of the arc segment being the upper transition region, and the segment between the end of the arc segment and the beginning of the lower flat region being the lower transition region.
4. The vision-based quality inspection method for static contact brazing according to claim 1, characterized in that, When calculating the transition index, a number of consecutive sampling points are selected at the beginning of the transition zone to calculate the mean curvature value as the representative curvature value at the beginning, and a number of consecutive sampling points are selected at the end of the transition zone to calculate the mean curvature value as the representative curvature value at the end. The transition arc length is the cumulative value of the arc length from the beginning to the end. The equivalent radius of the circular arc is obtained by taking the reciprocal of the absolute value of the mean curvature values at all sampling positions within the arc segment.
5. The vision-based method for inspecting the brazing of static contacts according to claim 1, characterized in that, The noise threshold is determined by taking the curvature value of each sampling position in the upper or lower flat region, calculating the standard deviation of the curvature value, and using a preset multiple of the standard deviation as the noise threshold.
6. The vision-based quality inspection method for static contact brazing according to claim 5, characterized in that, When determining a non-monotonic transition, the continuous arc length of the positive curvature segment exceeding the noise threshold is not shorter than a preset proportion of the total arc length of the corresponding transition zone.
7. The vision-based quality inspection method for static contact brazing according to claim 1, characterized in that, Determining the upper limit of the normal range includes: performing the formation of the curvature sequence, contour division, and calculation of the transition index on several calibration samples that have passed the metallographic section verification; statistically analyzing the mean and standard deviation of the transition index of all calibration samples; and using the sum of the mean and the standard deviation by a preset multiple as the upper limit of the normal range.
8. The vision-based quality inspection method for static contact brazing according to claim 1, characterized in that, For welded parts that are all monotonically transitioned, the method further includes calculating the ratio of the transition index of the upper transition zone to the transition index of the lower transition zone. When the ratio deviates from a preset range, the method determines whether the cold weld occurs on the upper or lower side based on the direction of deviation.
9. A vision-based method for inspecting the brazing of static contacts according to claim 1, characterized in that, When the curvature change patterns of the upper and lower transition zones of the same weldment are different, the side marked as non-monotonic transition is determined to be solder overflow, and the side marked as monotonic transition is independently checked to see if its transition index exceeds the upper limit of the normal range, and based on this, it is determined whether there is a cold solder joint on that side.
10. A vision-based static contact brazing quality inspection device, characterized in that, include: The image processing module is used to acquire images of the brazing area on the side of the stationary contact and extract the sub-pixel edge point sequence of the outer contour of the brazing seam. The curvature calculation module is used to fit a parametric spline curve to the edge point sequence, calculate the curvature value point by point along the spline curve, and form a curvature sequence; according to the distribution of curvature values in the curvature sequence, the outer contour of the brazing seam is divided into an upper flat area, an upper transition area, an arc segment, a lower transition area, and a lower flat area; The contour division and transition index calculation module is used to calculate the reciprocal of the absolute value of the mean curvature of the arc surface segment as the equivalent arc radius, measure the transition arc length of the upper transition zone and the lower transition zone respectively, and use the ratio of the equivalent arc radius to the corresponding transition arc length as the transition index of the transition zone. The transition mode detection module is used to detect whether there are positive curvature segments in the curvature sequences of the upper and lower transition regions that exceed the noise threshold. If they exist, they are marked as non-monotonic transitions; otherwise, they are marked as monotonic transitions. The quality judgment module is used to determine that if any transition zone is a non-monotonic transition, it is a solder overflow; for welded parts that are all monotonically transitioned, the transition index exceeding the upper limit of the normal range is judged as a cold weld, otherwise it is judged as qualified.
