A visually assisted copper wire soft connection detection method and system

By analyzing the characteristics of the punching area in the copper wire soft connection image and calculating the degree of deformation and offset, the problem of misjudgment caused by tilt deformation in the existing technology is solved, and more accurate punching quality detection is achieved.

CN118628497BActive Publication Date: 2024-10-22ZHEJIANG JINQIAO COPPER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411110165.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-10-22
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

The existing copper wire soft connection punching quality detection method is easily misjudged as good quality due to tilt deformation, resulting in inaccurate detection results.

Method used

By collecting the soft connection image of the copper wire, the punching area is divided, the maximum length, vertical length and circle center are calculated, the deformation degree and angular offset are obtained, the punching area set is divided, the ideal circle center and offset are determined, and the comprehensive punching deviation is calculated Coefficient to judge the quality of copper wire soft connection.

Benefits of technology

It improves the accuracy of punching quality detection, avoids misjudgments caused by tilt deformation, and ensures the reliability of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628497B_ABST
    Figure CN118628497B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and proposes a visually assisted copper wire flexible connection detection method and system, including: collecting a copper wire flexible connection image of a copper wire flexible connection element and dividing a punching area; determining the punching circle center, deformation degree and angle offset of the punching area; dividing the punching area into a punching area set, and obtaining the horizontal center offset and vertical center offset of the punching area set; obtaining the punching diameter wear of the copper wire flexible connection image, combining the horizontal center offset and vertical center offset of all punching area sets in the copper wire flexible connection image, obtaining the comprehensive punching deviation coefficient of the copper wire flexible connection image, and obtaining the copper wire flexible connection detection result of the copper wire flexible connection element according to the comprehensive punching deviation coefficient of the copper wire flexible connection image of the copper wire flexible connection element. The present invention solves the problem that inclined and deformed punchings are easily misjudged as punching areas with good quality, making the quality detection results of the punching areas inaccurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a visually assisted copper wire soft connection detection method and system. Background Art

[0002] The interface of the copper wire flexible connector is formed by one-time welding using molecular diffusion welding technology. The copper wire flexible connector element is made of copper terminals at both ends and multiple strands of copper wires. It has the characteristics of good quality, strong conductivity, large current bearing, small resistance value, and durability. Copper wire flexible connectors are widely used in metallurgical fields such as electrolytic aluminum, electrolytic zinc, electrolytic copper, electroplating equipment and power equipment. Punching refers to punching various graphics on materials such as steel plates, leather, cloth, and wood to meet different needs. The copper terminals of the copper wire flexible connector need to be punched. The quality of the punching affects the subsequent normal use of the copper wire flexible connector. Therefore, it is necessary to conduct quality inspection of the punching quality in a timely manner.

[0003] Generally, the image of the copper wire flexible connection is directly collected, the punching area is segmented from the image, and the radius and center of the segmented punching area are compared with the preset radius and center to determine the quality of the punching. However, the problem of tilt deformation may occur during the punching process, causing the segmented punching area to deform. The existing punching quality detection method only judges the punching quality based on the radius and center of the segmented punching area, which is easy to misjudge the deformed punching area as a punching area with good quality, making the quality detection of the segmented punching area inaccurate. Summary of the invention

[0004] The present invention provides a visually assisted copper wire flexible connection detection method and system to solve the problem that inclined and deformed punching holes are easily misjudged as punching areas with good quality, resulting in inaccurate quality detection results of the punching areas. The technical solutions adopted are as follows:

[0005] In a first aspect, an embodiment of the present invention provides a visually assisted copper wire flexible connection detection method, the method comprising the following steps:

[0006] Collecting copper wire flexible connection images of the copper wire flexible connection component and dividing the punching area;

[0007] According to the position distribution between the pixel points contained in the punching area, the maximum length, vertical length and punching circle center of the punching area are determined; according to the difference distribution between the maximum length and vertical length of the punching area, the deformation degree of the punching area is obtained; according to the extension direction of the maximum length of the punching area, the angular offset of the punching area is determined;

[0008] According to the positional relationship between the punching circle centers of the punching areas, the punching areas are divided into punching area sets, the ideal punching circle center of the punching area set is determined, and the horizontal center offset and the vertical center offset of the punching area set are obtained according to the deformation degree, angle offset, and position of the punching circle center of all the punching areas included in the same punching area set, and the position of the ideal punching circle center of the punching area set;

[0009] The punching radius of the ideal punching circle center of the punching area set is used as the ideal punching radius of all punching areas contained in the punching area set. According to the difference between the ideal punching radius and the vertical length of all punching areas in the copper wire soft connection image, the punching diameter wear of the copper wire soft connection image is obtained. According to the horizontal center offset and the vertical center offset of all punching area sets in the copper wire soft connection image and the punching diameter wear of the copper wire soft connection image, the comprehensive punching deviation coefficient of the copper wire soft connection image is obtained. According to the comprehensive punching deviation coefficient of the copper wire soft connection image of the copper wire soft connection element, the copper wire soft connection detection result of the copper wire soft connection element is obtained.

[0010] Furthermore, the maximum length, vertical length and punching center of the punching area are determined by:

[0011] The two pixel points corresponding to the maximum value of the Euclidean distance between the pixel points in the punching area are taken as the two end points of the line segment, and the line segment formed by the two end points is recorded as the maximum length of the punching area;

[0012] The midpoint of the maximum length of the punching area is recorded as the punching center of the punching area;

[0013] Draw a straight line through the center of the punching circle of the punching area and perpendicular to the maximum length of the punching area, and use the two intersection points of the straight line and the punching area as the endpoints of the line connected, which is recorded as the vertical length of the punching area.

[0014] Further, the deformation degree of the punching area is obtained according to the difference distribution between the maximum length and the vertical length of the punching area, and the angular offset of the punching area is determined according to the extension direction of the maximum length of the punching area, including the specific method of:

[0015] The ratio of the maximum length of the punching area to the vertical length is recorded as the deformation degree of the punching area;

[0016] The inclination angle of the straight line where the maximum length of the punching area is located is recorded as the angular offset of the punching area.

[0017] Furthermore, the punching area is divided into a punching area set according to the positional relationship between the punching circle centers of the punching area, and the ideal punching circle center of the punching area set is determined, including the specific method of:

[0018] The distance between the punching circle centers of the two punching areas in the horizontal direction is recorded as the horizontal distance of the two punching areas; when the horizontal distance of the two punching areas is less than or equal to the horizontal distance threshold, the two punching areas are divided into the same punching area set in the same column, and the punching areas whose horizontal distances with other punching areas are greater than the horizontal distance threshold are divided into one punching area set;

[0019] The sum of the Euclidean distances between the punching center points of all punching areas in the punching area set and the preset target positions of the punching center points is recorded as the distance deviation between the punching area set and the target position, and the target position of the punching center point corresponding to the minimum value of all distance deviations corresponding to the same punching area set is recorded as the ideal punching center point of the same punching area set.

[0020] Furthermore, the horizontal center offset of the punching area set is obtained by:

[0021]

[0022] In the formula, Indicates The horizontal center offset of a set of punching areas; Indicates The punching areas contained in the punching area set Deformation degree; Indicates The punching areas contained in the punching area set The angular offset of Indicates The punching areas contained in the punching area set the number of Indicates The punching areas contained in the punching area set The distance between the punching circle center and the left edge of the copper wire soft connection image; Indicates The distance between the ideal punching circle center of each punching area set and the left image edge of the copper wire soft connection image.

[0023] Further, the vertical center offset of the punching area set includes the following specific methods:

[0024]

[0025] In the formula, Indicates The vertical center offset of a set of punching areas; Indicates The punching areas contained in the punching area set The distance between the punching circle center and the lower image edge of the copper wire soft connection image; Indicates The distance between the ideal punching circle center of a set of punching areas and the lower image edge of the copper wire soft connection image.

[0026] Furthermore, the specific method for obtaining the punching diameter wear of the copper wire flexible connection image is as follows:

[0027] The absolute value of the difference between the ideal punching radius and the vertical length of the punching area is taken as the radius difference of the punching area, and the cumulative sum of the radius differences of all punching areas in the copper wire flexible connection image is recorded as the punching diameter wear of the copper wire flexible connection image.

[0028] Furthermore, the method for obtaining the comprehensive punching deviation coefficient of the copper wire flexible connection image is as follows:

[0029] The cumulative sum of the horizontal center offset and the vertical center offset of all punching area sets in the copper wire soft connection image is recorded as the first cumulative sum of the copper wire soft connection image, and the sum of the first cumulative sum of the copper wire soft connection image and the punching diameter wear is recorded as the comprehensive punching deviation coefficient of the copper wire soft connection image.

[0030] Further, the method of obtaining the copper wire flexible connection detection result of the copper wire flexible connection element according to the comprehensive punching deviation coefficient of the copper wire flexible connection image of the copper wire flexible connection element includes the following specific methods:

[0031] When the comprehensive punching deviation coefficient of the copper wire flexible connection image of the manufactured copper wire flexible connection element is greater than or equal to the punching evaluation threshold, the manufactured copper wire flexible connection element is judged to be unqualified in quality;

[0032] When the comprehensive punching deviation coefficient of the copper wire flexible connection image of the manufactured copper wire flexible connection element is less than the punching evaluation threshold, the manufactured copper wire flexible connection element is judged to be of qualified quality.

[0033] In a second aspect, an embodiment of the present invention further provides a visually assisted copper wire flexible connection detection system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above-mentioned methods when executing the computer program.

[0034] The beneficial effects of the present invention are:

[0035] The present application collects copper wire flexible connection images of copper wire flexible connection elements and divides the punching area. According to the feature that when the punching deformation is caused by the tilt of the surface punching treatment at the copper terminal, the punching length in the tilted direction will be significantly increased, and the punching length in the vertical direction of the tilted direction will remain almost unchanged or slightly reduced, the length of the punching area in the tilted direction and the length in the vertical direction of the tilted direction, that is, the maximum length and the vertical length, are determined. At the same time, the punching center of the punching area is determined, and further, the deformation degree and angular offset of the punching area are obtained, that is, the degree of deformation and the deformation angle of the punching area are evaluated; combined with the feature that the more serious the inclination of the punch head, the more serious the punching offset will be, and the difference in position distribution between the divided punching area and the ideal punching position, the divided punching areas are evaluated in terms of water The horizontal and vertical offsets are used to obtain the horizontal center offset and vertical center offset of the punching area set; further, considering the feature that the wear of the punching equipment will reduce the punching diameter obtained by the punching process, the punching diameter wear of the copper wire soft connection image is obtained; finally, according to the horizontal center offset and vertical center offset of all punching area sets in the copper wire soft connection image, as well as the punching diameter wear of the copper wire soft connection image, the comprehensive punching deviation coefficient of the copper wire soft connection image is obtained; according to the comprehensive punching deviation coefficient of the copper wire soft connection image of the copper wire soft connection element, the copper wire soft connection detection result of the copper wire soft connection element is obtained, so as to solve the problem that the inclined and deformed punching holes are easily misjudged as punching areas with good quality, resulting in inaccurate quality detection results of the punching areas. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] Figure 1 A schematic flow chart of a visually assisted copper wire flexible connection detection method provided by an embodiment of the present invention;

[0038] Figure 2 A schematic diagram of obtaining the maximum length and vertical length provided by an embodiment of the present invention;

[0039] Figure 3 A schematic diagram of the horizontal distance of a punching area provided in one embodiment of the present invention. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] See also Figure 1 , which shows a flow chart of a visually assisted copper wire soft connection detection method provided by an embodiment of the present invention, the method comprising the following steps:

[0042] Step S001, collecting a copper wire flexible connection image of a copper wire flexible connection element and dividing a punching area.

[0043] After the copper wire flexible connection element is manufactured, a camera is used to capture an image of the manufactured copper wire flexible connection element with a black background to obtain a copper wire flexible connection image, which is an RGB image.

[0044] It should be noted that in order to ensure the image quality and the accuracy of the image analysis results, this embodiment uses median filtering to denoise the copper wire soft connection image. The use of median filtering for image denoising is a well-known technology and will not be repeated here. In actual application, the implementer can use other methods of existing technology such as Gaussian filtering for image denoising, which is not limited here.

[0045] The present application performs defect detection on the copper terminals in the copper wire flexible connection element, so it is necessary to divide the area corresponding to the copper terminals in the copper wire flexible connection image.

[0046] This embodiment uses a neural network to divide the area corresponding to the copper terminal in the copper wire soft connection image, and the divided area is recorded as the copper terminal area. Specifically: according to the method of collecting copper wire soft connection images, 500 copper wire soft connection images of copper wire soft connection elements without defects and 500 copper wire soft connection images of copper wire soft connection elements with defects in copper terminals are collected. All copper wire soft connection images are normalized to accelerate the convergence speed when training the neural network. The area corresponding to the copper terminal in the copper wire soft connection image is divided by a manual annotation method. The convolutional neural network is trained using the collected copper wire soft connection images to obtain a trained convolutional neural network. A copper wire soft connection image is input into the trained convolutional neural network to obtain the area corresponding to the copper terminal in the copper wire soft connection image. The convolutional neural network can adopt network structures such as ResNet18 and SENet. The network structure of the convolutional neural network consists of an encoder and a full connection, and the loss function of the convolutional neural network adopts cross entropy.

[0047] At this point, the copper terminal area is obtained.

[0048] After the copper wire flexible connection components are manufactured, the copper terminals will be punched. When the punch is worn or the mold positioning device is offset, the size, shape and position of the punched holes obtained by the punching process may deviate. The copper wire flexible connection inspection is to inspect the size, shape and position of the punched holes obtained by the punching process.

[0049] The copper terminal in the copper wire flexible connection element has a uniform material and a smooth surface. The copper wire flexible connection element is significantly different from the background when the copper wire flexible connection image is obtained. Therefore, the edge of the copper terminal and the edge of the punching hole of the copper terminal in the copper wire flexible connection image can be accurately identified.

[0050] Convert the copper wire soft connection image into a grayscale image to obtain the copper wire soft connection grayscale image. Use canny edge detection on the copper wire soft connection grayscale image to obtain the copper wire soft connection edge image. According to the position of the copper terminal area in the copper wire soft connection image, divide the copper terminal area in the copper wire soft connection edge image. Since the edge of the copper terminal is a straight line, and the edge of the punching area is a curve, use the LSD straight line detection algorithm on the copper terminal area in the copper wire soft connection edge image to obtain the straight line edge in the copper terminal area, and record all edges in the copper terminal area except the straight line edge as the punching edge. Perform connected domain analysis on the punching edge to obtain the punching area.

[0051] According to the positions of all pixel points contained in the punching area, the punching area is divided in the copper wire soft connection image.

[0052] It is understandable that there may be multiple punched holes obtained by punching the surface of the copper terminal, so there may be multiple punched edges in the copper terminal area, and there may also be multiple punched areas, and one punched hole on the copper terminal surface corresponds to one punched area.

[0053] At this point, the position information of all pixels contained in each punching area and the number of punching areas are obtained.

[0054] Step S002, determining the maximum length, vertical length and punching center of the punching area according to the position distribution between the pixel points contained in the punching area, obtaining the deformation degree of the punching area according to the difference distribution between the maximum length and the vertical length of the punching area, and determining the angular offset of the punching area according to the extension direction of the maximum length of the punching area.

[0055] When the punching hole obtained by the punching process is tilted and deformed, the direction of deformation is not fixed. However, when the punching hole is deformed due to the tilt of the surface punching process at the copper terminal, the length of the punching hole in the tilted direction will increase significantly, and the length of the punching hole in the direction perpendicular to the tilted direction will remain almost unchanged or slightly decrease. Therefore, the present application first determines the deformation direction of the punching area.

[0056] Calculate the Euclidean distance between every two pixels in the punching area, take the two pixels with the largest Euclidean distance as the endpoints of the line segment, record it as the maximum length of the punching area, and record the midpoint of the maximum length of the punching area as the punching center of the punching area. Draw a straight line through the punching center of the punching area, perpendicular to the maximum length of the punching area, and take the two intersection points of the straight line and the punching area as the endpoints of the line connecting the two points, record it as the vertical length of the punching area.

[0057] It should be noted that when there are multiple maximum values ​​of the Euclidean distance, one of them is randomly selected to determine the maximum length of the punching area.

[0058] It can be understood that each punching area has a corresponding maximum length, vertical length and punching center.

[0059] The schematic diagram of obtaining the maximum length and vertical length is as follows Figure 2 As shown. Figure 2 In the figure, A represents the punching area; the two pixel points with the largest Euclidean distance in the punching area are B and C, and the line segment BC represents the maximum length of the punching area; D represents the midpoint of the maximum length BC of the punching area, that is, the center of the punching circle of the punching area; through the center of the punching circle D of the punching area, a straight line is drawn perpendicular to the maximum length BC of the punching area, and the two intersection points of the straight line and the punching area are E and F, and the line segment EF represents the vertical length of the punching area.

[0060] The deformation degree of the punching area is obtained according to the maximum length and the vertical length of the punching area. The deformation degree of the punching area is positively correlated with the maximum length of the punching area and negatively correlated with the vertical length of the punching area.

[0061] Preferably, as an embodiment of the present application, the degree of deformation of the punching area is the ratio of the maximum length of the punching area to the vertical length.

[0062] Specifically, the calculation formula for the deformation degree of the punching area is:

[0063]

[0064] In the formula, Indicates the punching area Deformation degree; Indicates the punching area The maximum length of Indicates the punching area The vertical length of

[0065] In actual application, as another implementation, the difference between the maximum length of the punching area and the vertical length is recorded as the first difference of the punching area, and the ratio of the first difference of the punching area to the vertical length is recorded as the deformation degree of the punching area.

[0066] When the punching process obtains a more serious tilt deformation, the maximum length of the punching area becomes larger relative to the non-deformed punching area, and the vertical length becomes smaller or remains unchanged. Therefore, the larger the maximum length of the punching area is relative to the vertical length, the greater the deformation of the punching area.

[0067] The inclination angle of the straight line where the maximum length of the punching area is located is recorded as the angular offset of the punching area.

[0068] The inclination angle is a well-known definition in the field of mathematics. Specifically, the inclination angle is the angle between a straight line and a horizontal rightward direction. The calculation method of the inclination angle of a straight line is a well-known technology and will not be described in detail.

[0069] At this point, the deformation degree and angle offset of the punching area are obtained.

[0070] Step S003, according to the positional relationship between the punching circle centers of the punching area, the punching area is divided into a punching area set, and the ideal punching circle center of the punching area set is determined. According to the deformation degree, angular offset, and position of the punching circle center of all punching areas included in the same punching area set, and the position of the ideal punching circle center of the punching area set, the horizontal center offset and vertical center offset of the punching area set are obtained.

[0071] When a punch is used to punch a copper terminal of a copper wire flexible connection component, if the punch is tilted, the punch will be offset. The more serious the punch tilt is, the more serious the offset of the punch will be, and further, the more serious the deformation of the punch will be.

[0072] It is understandable that there may be multiple or only one punched hole obtained by punching the terminal surface, so there may be multiple or only one punched area obtained.

[0073] The horizontal distance between the centers of the two punching areas is recorded as the horizontal distance between the two punching areas. Figure 3 shown.

[0074] exist Figure 3 In the figure, the punching centers of the two punching areas are A and B respectively. A vertical straight line l is drawn through one of the punching centers A. The distance between the punching center B and the straight line l is the length of the line segment BC. The length of the line segment BC is the horizontal distance between the punching centers A and B. Therefore, the length of the line segment BC is the horizontal distance between the two punching areas corresponding to the punching centers A and B.

[0075] When the horizontal distance between two punching areas is less than or equal to the horizontal distance threshold, the two punching areas are divided into the same punching area set in the same column. When there are no other punching areas and the punching area divided into the same punching area set in the same column, the punching area itself is divided into a punching area set.

[0076] When punching the terminal surface to obtain the punched holes, the positions of the punched holes need to be determined in advance, so each punched hole corresponds to a target position of a punched area in the copper wire soft connection image. Therefore, each punched hole corresponds to a target position of the center of a punched circle in the copper wire soft connection image. The target position of the center of the punched circle is set manually for the punching processing machine. At the same time, since the punched area obtained after the punching process may deviate from the target position, it may not be possible to directly determine the target position corresponding to the punched area included in the punched area set. Therefore, it is necessary to first determine the target position corresponding to the punched area included in the punched area set.

[0077] The sum of the Euclidean distances between the punching circle centers of all punching areas in the punching area set and the preset target position of the punching circle center is recorded as the distance deviation between the punching area set and the target position. Since there may be multiple punchings obtained by punching the terminal surface, the same punching area set and the target position of each punching correspond to a distance deviation. The minimum value of all distance deviations corresponding to the same punching area set is recorded as the minimum distance deviation of the same punching area set, and the target position of the punching circle center corresponding to the minimum distance deviation of the same punching area set is recorded as the ideal punching circle center of the same punching area set.

[0078] Preferably, as an embodiment of the present application, the horizontal center offset and vertical center offset of the punching area set are obtained based on the deformation degree, angular offset, position of the punching circle center of all punching areas contained in the same punching area set, and the position of the ideal punching circle center of the punching area set.

[0079]

[0080] In the formula, Indicates The horizontal center offset of a set of punching areas; Indicates The punching areas contained in the punching area set Deformation degree; Indicates The punching areas contained in the punching area set The angular offset of Indicates The punching areas contained in the punching area set the number of Indicates The punching areas contained in the punching area set The distance between the punching circle center and the left edge of the copper wire soft connection image; Indicates The distance between the ideal punching circle center of each punching area set and the left image edge of the copper wire soft connection image.

[0081]

[0082] In the formula, Indicates The vertical center offset of a set of punching areas; Indicates The punching areas contained in the punching area set Deformation degree; Indicates The punching areas contained in the punching area set The angular offset of Indicates The punching areas contained in the punching area set the number of Indicates The punching areas contained in the punching area set The distance between the punching circle center and the lower image edge of the copper wire soft connection image; Indicates The distance between the ideal punching circle center of a set of punching areas and the lower image edge of the copper wire soft connection image.

[0083] When the deformation degree and angle offset of all punching areas contained in the same punching area set are greater, and the position of the punching circle center of the punching area deviates more from the position of the ideal punching circle center of the punching area set, the horizontal center offset and vertical center offset of the punching area set are greater. At this time, the possibility that the punching area obtained after the punching process deviates from the target position is greater and the degree of deviation is more obvious.

[0084] At this point, the horizontal center offset and vertical center offset of the punching area set are obtained.

[0085] Step S004, taking the punching radius of the ideal punching circle center of the punching area set as the ideal punching radius of all the punching areas contained in the punching area set, obtaining the punching diameter wear of the copper wire soft connection image according to the difference between the ideal punching radius and the vertical length of all the punching areas in the copper wire soft connection image, obtaining the comprehensive punching deviation coefficient of the copper wire soft connection image according to the horizontal center offset and the vertical center offset of all the punching area sets in the copper wire soft connection image and the punching diameter wear of the copper wire soft connection image, and obtaining the copper wire soft connection detection result of the copper wire soft connection element according to the comprehensive punching deviation coefficient of the copper wire soft connection image of the copper wire soft connection element.

[0086] When the punching equipment is worn, the shape of the punching will also change. Specifically, the diameter of the punching obtained by the punching process will be reduced. The reduction of the punching diameter is also a kind of punching deformation.

[0087] The punching radius corresponding to the ideal punching circle center of the punching area set is recorded as the ideal punching radius of all the punching areas included in the punching area set.

[0088] According to the difference between the ideal punching radius and the vertical length of all punching areas in the copper wire flexible connection image, the punching diameter wear of the copper wire flexible connection image is obtained. The punching diameter wear of the copper wire flexible connection image is positively correlated with the difference between the ideal punching radius and the vertical length of each punching area in the copper wire flexible connection image.

[0089] Preferably, as an embodiment of the present application, the absolute value of the difference between the ideal punching radius and the vertical length of the punching area is taken as the radius difference of the punching area, and the cumulative sum of the radius differences of all punching areas in the copper wire soft connection image is recorded as the punching diameter wear of the copper wire soft connection image.

[0090] The calculation formula for the punching diameter wear of the copper wire flexible connection image is:

[0091]

[0092] In the formula, Indicates the wear degree of punching diameter of copper wire flexible connection image; Indicates the punching area The vertical length of Indicates the punching area The ideal punching radius; Indicates the number of punch areas contained in the punch area set.

[0093] When the difference between the ideal punching radius and the vertical length of the punching area is greater, the punching diameter wear of the copper wire flexible connection image is greater, and when the copper wire flexible connection element corresponding to the copper wire flexible connection image is punched, the possibility of wear of the punching equipment is greater.

[0094] When the punch is tilted and the hole is offset, the maximum length of the punching area varies greatly relative to the ideal punching radius of the punching area, but the vertical length of the punching area is not much different from the ideal punching radius of the punching area. Therefore, comparing the ideal punching radius and vertical length of the punching area to evaluate whether the punching equipment is worn can avoid the problem of the punching offset caused by the tilt of the punch being misjudged as punching diameter wear, thereby improving the accuracy of the evaluation of whether the punching equipment is worn.

[0095] According to the horizontal center offset and vertical center offset of all punching areas in the copper wire soft connection image and the punching diameter wear of the copper wire soft connection image, the comprehensive punching deviation coefficient of the copper wire soft connection image is obtained.

[0096] Preferably, as an embodiment of the present application, the cumulative sum of the horizontal center offset and the vertical center offset of the set of all punching areas in the copper wire soft connection image is recorded as the first cumulative sum of the copper wire soft connection image, and the sum of the first cumulative sum of the copper wire soft connection image and the punching diameter wear is recorded as the comprehensive punching deviation coefficient of the copper wire soft connection image.

[0097] Specifically, the calculation formula for the comprehensive punching deviation coefficient of the copper wire soft connection image is:

[0098]

[0099] In the formula, Indicates the comprehensive punching deviation coefficient of the copper wire soft connection image; Indicates the wear degree of punching diameter of copper wire flexible connection image; Indicates The horizontal center offset of a set of punching areas; Indicates The vertical center offset of a set of punching areas; Indicates the number of punching area sets contained in the copper wire soft connection image.

[0100] When the horizontal center offset and vertical center offset of the set of all punching areas in the copper wire soft connection image are larger, and at the same time, the punching diameter wear of the copper wire soft connection image is greater, the comprehensive punching deviation coefficient of the copper wire soft connection image is larger. At this time, the greater the difference between the punching area in the copper wire soft connection image and the target position, the better the punching quality of the copper wire soft connection component.

[0101] At this point, the comprehensive punching deviation coefficient of the copper wire soft connection image is obtained.

[0102] 100 high-quality copper wire flexible connection components are selected, and according to the above method, the copper wire flexible connection images of the 100 high-quality copper wire flexible connection components are respectively collected, and the comprehensive punching deviation coefficients of the 100 copper wire flexible connection images are obtained.

[0103] The sum of the mean and standard deviation of the comprehensive punching deviation coefficients of the copper wire flexible connection images of 100 high-quality copper wire flexible connection components is recorded as the punching judgment threshold.

[0104] When the comprehensive punching deviation coefficient of the copper wire flexible connection image of the manufactured copper wire flexible connection element is greater than or equal to the punching judgment threshold, the quality of the manufactured copper wire flexible connection element is judged to be unqualified. When the comprehensive punching deviation coefficient of the copper wire flexible connection image of the manufactured copper wire flexible connection element is less than the punching judgment threshold, the quality of the manufactured copper wire flexible connection element is judged to be qualified.

[0105] At this point, visually assisted copper wire soft connection detection is achieved.

[0106] Based on the same inventive concept as the above method, an embodiment of the present invention also provides a visually assisted copper wire soft connection detection system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, the steps of any one of the above-mentioned visually assisted copper wire soft connection detection methods are implemented.

[0107] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A visually assisted copper wire flexible connection detection method, characterized in that: The method comprises the following steps: Collecting copper wire flexible connection images of the copper wire flexible connection component and dividing the punching area; According to the position distribution between the pixel points contained in the punching area, the maximum length, vertical length and punching circle center of the punching area are determined; according to the difference distribution between the maximum length and vertical length of the punching area, the deformation degree of the punching area is obtained; according to the extension direction of the maximum length of the punching area, the angular offset of the punching area is determined; According to the positional relationship between the punching circle centers of the punching areas, the punching areas are divided into punching area sets, the ideal punching circle center of the punching area set is determined, and the horizontal center offset and the vertical center offset of the punching area set are obtained according to the deformation degree, angle offset, and position of the punching circle center of all the punching areas included in the same punching area set, and the position of the ideal punching circle center of the punching area set; The punching radius of the ideal punching circle center of the punching area set is used as the ideal punching radius of all the punching areas contained in the punching area set, and the punching diameter wear of the copper wire soft connection image is obtained according to the difference between the ideal punching radius and the vertical length of all the punching areas in the copper wire soft connection image. The comprehensive punching deviation coefficient of the copper wire soft connection image is obtained according to the horizontal center offset and the vertical center offset of all the punching area sets in the copper wire soft connection image and the punching diameter wear of the copper wire soft connection image. The copper wire soft connection detection result of the copper wire soft connection element is obtained according to the comprehensive punching deviation coefficient of the copper wire soft connection image of the copper wire soft connection element; The maximum length, vertical length and punching center of the punching area are determined by: The two pixel points corresponding to the maximum value of the Euclidean distance between the pixel points in the punching area are taken as the two end points of the line segment, and the line segment formed by the two end points is recorded as the maximum length of the punching area; The midpoint of the maximum length of the punching area is recorded as the punching center of the punching area; Draw a straight line through the center of the punching circle of the punching area and perpendicular to the maximum length of the punching area, and use the two intersection points of the straight line and the punching area as the endpoints of the line connected, which is recorded as the vertical length of the punching area; The method of dividing the punching area into a punching area set according to the positional relationship between the punching circle centers of the punching area and determining the ideal punching circle center of the punching area set includes: The distance between the punching circle centers of the two punching areas in the horizontal direction is recorded as the horizontal distance of the two punching areas; when the horizontal distance of the two punching areas is less than or equal to the horizontal distance threshold, the two punching areas are divided into the same punching area set in the same column, and the punching areas whose horizontal distances with other punching areas are greater than the horizontal distance threshold are divided into one punching area set; The sum of the Euclidean distances between the punching center points of all punching areas in the punching area set and the preset target positions of the punching center points is recorded as the distance deviation between the punching area set and the target position, and the target position of the punching center point corresponding to the minimum value of all distance deviations corresponding to the same punching area set is recorded as the ideal punching center point of the same punching area set.

2. A visually assisted copper wire flexible connection detection method according to claim 1, characterized in that: The method of obtaining the deformation degree of the punching area according to the difference distribution between the maximum length and the vertical length of the punching area and determining the angular offset of the punching area according to the extension direction of the maximum length of the punching area includes the following specific methods: The ratio of the maximum length of the punching area to the vertical length is recorded as the deformation degree of the punching area; The inclination angle of the straight line where the maximum length of the punching area is located is recorded as the angular offset of the punching area.

3. A visually assisted copper wire flexible connection detection method according to claim 1, characterized in that: The horizontal center offset of the punching area set is obtained by: , In the formula, Indicates The horizontal center offset of a set of punching areas; Indicates The punching areas contained in the punching area set Deformation degree; Indicates The punching areas contained in the punching area set The angular offset of Indicates The punching areas contained in the punching area set the number of Indicates The punching areas contained in the punching area set The distance between the punching circle center and the left edge of the copper wire soft connection image; Indicates The distance between the ideal punching circle center of each punching area set and the left image edge of the copper wire soft connection image.

4. A visually assisted copper wire flexible connection detection method according to claim 3, characterized in that: The vertical center offset of the punching area set, including the specific methods: , In the formula, Indicates The vertical center offset of a set of punching areas; Indicates The punching areas contained in the punching area set The distance between the punching circle center and the lower image edge of the copper wire soft connection image; Indicates The distance between the ideal punching circle center of a set of punching areas and the lower image edge of the copper wire soft connection image.

5. A visually assisted copper wire flexible connection detection method according to claim 1, characterized in that: The specific method for obtaining the punching diameter wear of the copper wire flexible connection image is as follows: The absolute value of the difference between the ideal punching radius and the vertical length of the punching area is taken as the radius difference of the punching area, and the cumulative sum of the radius differences of all punching areas in the copper wire flexible connection image is recorded as the punching diameter wear of the copper wire flexible connection image.

6. A visually assisted copper wire flexible connection detection method according to claim 1, characterized in that: The method for obtaining the comprehensive punching deviation coefficient of the copper wire soft connection image is as follows: The cumulative sum of the horizontal center offset and the vertical center offset of all punching area sets in the copper wire soft connection image is recorded as the first cumulative sum of the copper wire soft connection image, and the sum of the first cumulative sum of the copper wire soft connection image and the punching diameter wear is recorded as the comprehensive punching deviation coefficient of the copper wire soft connection image.

7. A visually assisted copper wire flexible connection detection method according to claim 1, characterized in that: The method of obtaining the copper wire flexible connection detection result of the copper wire flexible connection element according to the comprehensive punching deviation coefficient of the copper wire flexible connection image of the copper wire flexible connection element includes: When the comprehensive punching deviation coefficient of the copper wire flexible connection image of the manufactured copper wire flexible connection element is greater than or equal to the punching evaluation threshold, the manufactured copper wire flexible connection element is judged to be unqualified in quality; When the comprehensive punching deviation coefficient of the copper wire flexible connection image of the manufactured copper wire flexible connection element is less than the punching evaluation threshold, the manufactured copper wire flexible connection element is judged to be of qualified quality.

8. A visually assisted copper wire flexible connection detection system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.