A method and system for detecting appearance of wiring harness terminals
By performing edge detection and feature analysis on wire harness terminal images, the problem of wire harness terminal damage identification was solved, achieving accurate damage identification and cause analysis, and improving the accuracy and reliability of detection.
Patent Information
- Application Number
- CN202411001694.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Existing technologies struggle to accurately identify and locate damage to the surface of wire harness terminals, especially under complex structures and uneven stress distributions, leading to detection difficulties.
By performing edge detection on the wire harness terminal image to obtain the recessed area, calculating the central axis coefficient and the probability value of the metal wire, and combining the crimping strength, the damage coefficient is obtained, thus realizing the appearance inspection of the wire harness terminal.
It enables accurate identification and location of wire harness terminal damage, identifies the cause of damage and provides corresponding adjustment suggestions, thereby improving the accuracy and reliability of detection.
Smart Images

Figure CN118537337B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a method and system for detecting the appearance of a wiring harness terminal. Background Art
[0002] An electrical wiring harness is a collection of multiple wires and cables used to transmit electrical signals or power from one place to another. The wiring harness terminal is the interface part used to connect these wires and cables. The design and quality of the wiring harness terminal are crucial to the stability and reliability of the electrical system. Therefore, during quality inspection, the appearance of the wiring harness terminal needs to be inspected to ensure that there is no damage on the surface.
[0003] When inspecting the quality of wire harness terminals after crimping, the complexity of the wire harness surface, the fine structure of the wire harness itself, the unevenness of the insulation layer, and the possible non-uniform stress distribution may cause the inspection process to be difficult, making the accurate identification and location of damage complicated and difficult to accurately obtain the specific cause of the damage. Summary of the invention
[0004] The invention provides a method and system for detecting the appearance of a wiring harness terminal to solve the existing problems.
[0005] A method and system for detecting the appearance of a wiring harness terminal of the present invention adopts the following technical solutions:
[0006] An embodiment of the present invention provides a method for detecting the appearance of a wiring harness terminal, the method comprising the following steps:
[0007] Perform edge detection on the collected wire harness terminal image to obtain a crimping part, a wire harness part, a wire harness terminal part, and a plurality of edges in each part;
[0008] The concave area is obtained according to the gray value variation characteristics of the crimped part in different directions;
[0009] According to the positional relationship between each edge in the concave area and the crimping part, the medial axis coefficient of each edge in the concave area is obtained; according to the difference in the number of pixels of each edge in the concave area and the same grayscale value in the wiring harness terminal part and the wiring harness part, the metal wire possibility value of each edge in the concave area is obtained;
[0010] The crimping strength of the harness terminal is obtained according to the difference in the gray value change at the connection between the crimping part and the harness part; the breakage coefficient of the concave area is obtained according to the medial axis coefficient and the metal wire possibility value of each edge in the concave area and the crimping strength of the harness terminal;
[0011] Visual inspection of the crimping condition of the wiring harness terminals based on the damage factor of the recessed area.
[0012] Furthermore, the method of obtaining the depressed area according to the grayscale value variation characteristics of the crimped part in different directions includes the following specific steps:
[0013] The calculation method of the concavity value of the a-th pixel point of the harness part is:
[0014]
[0015] In the formula, Indicates the concavity value of the a-th pixel point in the harness part. Indicates the extended grayscale difference of the a-th pixel in the harness part, Indicates the external grayscale difference of the a-th pixel in the harness part, It represents the Euclidean distance from the ath pixel point of the harness part to the edge where the crimping part and the harness part are connected. It represents the Euclidean distance from the a-th pixel point of the harness part to the crimp extension line;
[0016] A concave threshold is preset, and pixels whose values are greater than the concave threshold are recorded as concave pixels. All concave pixels constitute a concave area.
[0017] Furthermore, the specific method of obtaining the extended grayscale difference and the external grayscale difference is as follows:
[0018] The straight line in the specified direction is recorded as the crimping extension line; the grayscale value difference between the ath pixel point and the a+1 pixel point in the direction of the crimping extension line of the wire harness part is recorded as the extended grayscale difference of the ath pixel point; the grayscale value difference between the ath longitudinal pixel point and the a+1 pixel point from the direction of the crimping extension line to the edges on both sides of the wire harness part perpendicular to the crimping extension line is recorded as the external grayscale difference of the ath pixel point.
[0019] Furthermore, the obtaining of the medial axis coefficient of each edge in the concave area includes the following specific steps:
[0020]
[0021] In the formula, Indicates the first The medial axis coefficient of the strip edge, Indicates the first The European distance between the edge center point of the strip edge and the crimp extension line, Indicates the first The angle between the linear fitting line of the edge of the strip and the direction of the crimping extension line, Represents an exponential function with a natural constant as its base.
[0022] Furthermore, the specific method of obtaining the edge center point is as follows:
[0023] The pixel point in the middle of each edge in the concave area is recorded as the edge center point of each edge.
[0024] Furthermore, the obtaining of the metal wire possibility value of each edge in the recessed area includes the following specific steps:
[0025]
[0026] In the formula, Indicates the first The metal wire probability value at the edge of the strip, Indicates the first The number of pixels on the edge of the strip, Indicates the pixel points in the harness part, the first The number of pixels with the same grayscale value as the edge of the strip. It is the pixel point in the wiring harness terminal part, and the first The number of pixels with the same grayscale value as the edge of the strip. Indicates the first The gray value of the x-th pixel at the edge of the strip, Indicates the first The gray value of the x+1th pixel at the edge of the strip, Represents an exponential function with a natural constant as its base.
[0027] Furthermore, the specific steps of obtaining the crimping strength of the wiring harness terminal are as follows:
[0028]
[0029] In the formula, Indicates the crimping strength of the wiring harness terminal. Indicates the mean grayscale value of the collinear edge pixel points where the crimping part and the harness part are connected. Indicates the mean grayscale value of the pixel point in the jth column where the crimping part and the harness part are connected, Indicates the number of columns of line beam pixels. represents the hyperbolic tangent function.
[0030] Furthermore, the specific steps of obtaining the damage coefficient of the concave area include the following:
[0031]
[0032] In the formula, represents the damage coefficient of the concave area, Indicates the first The medial axis coefficient of the strip edge, Indicates the first The metal wire probability value at the edge of the strip, Indicates the crimping strength of the wiring harness terminal. Indicates the number of edges in the concave area.
[0033] Furthermore, the appearance inspection of the crimping condition of the wiring harness terminal according to the damage coefficient of the recessed area includes the following specific steps:
[0034] A damage threshold is preset. When the damage coefficient of the concave area is greater than or equal to the damage threshold, the crimping area is recorded as a damaged area. A crimping threshold is further preset. When there is a damaged area in the harness terminal and the crimping strength of the harness terminal is greater than the crimping threshold, the crimping force needs to be reduced during crimping. When the crimping strength is less than or equal to the crimping threshold, the harness needs to be replaced with a better surface insulation strength.
[0035] When the damage coefficient of the concave area is less than the damage threshold, there is no need to adjust the crimping force during crimping.
[0036] The present invention also proposes a wire harness terminal appearance inspection system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program stored in the memory to implement the steps of the aforementioned wire harness terminal appearance inspection method.
[0037] The beneficial effects of the technical solution of the present invention are: the collected wire harness terminal image is processed to obtain the crimping part, the wire harness part, the wire harness terminal part and several edges, which serve as the basis for subsequent analysis of different parts; the recessed area is obtained according to the grayscale value change characteristics of the crimping part in different directions, which is used as the main area for analysis; the medial axis coefficient is obtained according to the positional relationship between each edge and the crimping part in the recessed area; the metal wire possibility value is obtained according to the difference in the number of pixels of each edge in the recessed area with the same grayscale value as the wire harness terminal part and the wire harness part, which shows the characteristics of wire harness damage; the crimping strength is obtained according to the difference in the grayscale value change at the connection between the crimping part and the wire harness part, and the damage coefficient of the recessed area is obtained by combining the medial axis coefficient and the metal wire possibility value, and the appearance of the wire harness terminal is inspected to obtain the damage condition and specific cause of the wire harness terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] 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 work.
[0039] Figure 1 The present invention is a flowchart of the steps of a method for detecting the appearance of a wiring harness terminal. DETAILED DESCRIPTION
[0040] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the appearance detection method and system of a wiring harness terminal proposed by the present invention, its specific implementation, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0041] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0042] The following is a detailed description of a method and system for detecting the appearance of a wiring harness terminal provided by the present invention in conjunction with the accompanying drawings.
[0043] See also Figure 1 , which shows a flowchart of a method for appearance inspection of a wiring harness terminal provided by an embodiment of the present invention, the method comprising the following steps:
[0044] Step S001: perform edge detection on the collected wire harness terminal image to obtain a crimping part, a wire harness part, a wire harness terminal part, and a plurality of edges in each part.
[0045] The purpose of this embodiment is to detect the wiring harness terminals, analyze the damage of the wiring harness terminals and the reasons for the damage, and realize the appearance inspection of the wiring harness terminals. Therefore, the wiring harness is first placed in a preset direction, and the grayscale image of the wiring harness terminal sample to be inspected is collected. The grayscale image is subjected to canny edge detection to obtain a plurality of edges and a plurality of closed areas. The closed areas are combined to include the wiring harness terminal area, the wiring harness area, and the crimping area. Since the thickness of the entire wiring harness terminal is the same, the obtained area is divided into two parts according to the straight line of the specified direction, and two edges of each area are obtained. The average distance of the two edges of each area to the straight line of the specified direction is calculated. For the crimping area, due to The crimped terminal is wrapped around the wiring harness and is the thickest, so the area with the largest distance mean is recorded as the crimped part. For the wiring harness area, since the thickness of the wiring harness is the same and more consistent than the irregular shape of the terminal, all areas except the crimped part with a difference less than a preset threshold are recorded as the wiring harness part. The specific method for obtaining the degree of difference is: linearly normalizing the difference between the product of the grayscale value mean and the distance of the two closed areas, and recording it as the degree of difference between the two closed areas. The preset threshold of this embodiment is described as 0.1, and other embodiments may set other values. This embodiment does not make specific limitations and all closed areas except the wiring harness part and the crimped part are recorded as the wiring harness terminal part.
[0046] Step S002, obtaining a recessed area according to the grayscale value variation characteristics of the crimped part in different directions; obtaining a medial axis coefficient of each edge in the recessed area according to the positional relationship between each edge in the recessed area and the crimped part; obtaining a metal wire possibility value of each edge in the recessed area according to the difference in the number of pixels of each edge in the recessed area and the grayscale value of the wiring harness terminal part and the wiring harness part.
[0047] It should be noted that since the wiring harness part will be squeezed at the connection part with the wiring harness terminal, the damaged part of the wiring harness insulation on the wiring harness terminal is located near the crimped part. The crimped part of the wiring harness insulation is concave under the action of pressure. The damaged part is mainly located in the concave area on both sides of the crimping and near the extension line of the crimping gap. Therefore, it is necessary to obtain the concave part first. Since the grayscale value of the concave part decreases from the outside to the inside, and the wiring harness insulation is cylindrical, under normal circumstances, its grayscale value decreases from the center line to the outside, and the grayscale value is unchanged in the extension direction of the wiring harness. Therefore, the concave area can be obtained based on the difference in the grayscale value change between the concave area and the normal wiring harness.
[0048] Specifically, the straight line where the specified direction is located is recorded as the crimping extension line, and the direction of the crimping extension line is the specified direction; the grayscale value difference between the a-th pixel point and the a+1 pixel point in the direction of the crimping extension line of the wire harness part is recorded as the extended grayscale difference of the a-th pixel point; the grayscale value difference between the a-th longitudinal pixel point and the a+1 pixel point from the direction of the crimping extension line to the edges on both sides of the wire harness part perpendicular to the crimping extension line is recorded as the external grayscale difference of the a-th pixel point;
[0049] The calculation method of the concavity value of the a-th pixel point of the harness part is:
[0050]
[0051] In the formula, Indicates the concavity value of the a-th pixel point in the harness part. Indicates the extended grayscale difference of the a-th pixel in the harness part, Indicates the external grayscale difference of the a-th pixel in the harness part, It represents the Euclidean distance from the ath pixel point of the harness part to the edge where the crimping part and the harness part are connected. Indicates the Euclidean distance from the ath pixel point in the harness section to the crimp extension line.
[0052] According to the extended grayscale difference of the pixel points in the concave area and the ratio of the external grayscale difference to the distance to the crimping part and the extension line Since the gray value change in the concave area is smaller as it moves outward, the smaller its value is, the more the pixel point conforms to the gray value change characteristics of the concave part.
[0053] A concave threshold is preset. When the concave degree value of the pixel points of the line harness part is greater than the preset concave threshold, it means that it is more likely to be a concave area. The pixel points greater than the concave threshold are recorded as concave pixels, and all concave pixels constitute a concave area.
[0054] Since it is necessary to screen out the edge of the damaged area from several edges in the concave area of the crimping part, and the metal wire inside the harness is exposed in the damaged area, the gray value of the metal wire is higher than that of other normal areas of the harness under the bright condition, and since the stress on the crimping part is too large during crimping, the insulation is subjected to excessive stress, so that the crack is easy to split from the extension line of the connecting line at the crimping part to the extension direction of the harness, therefore, firstly, according to the positional relationship between each edge and the connecting line at the crimping part, the possibility of each edge of the concave area in the extension direction of the connecting line is obtained;
[0055] Specifically, the pixel point in the middle of each edge in the concave area is recorded as the edge center point of each edge, and the medial axis coefficient of the i-th edge in the concave area is calculated as follows:
[0056]
[0057] In the formula, Indicates the first The medial axis coefficient of the strip edge, Indicates the first The European distance between the edge center point of the strip edge and the crimp extension line, Indicates the first The angle between the linear fitting line of the edge of the strip and the direction of the crimping extension line, represents an exponential function with a natural constant as base;
[0058] The smaller the angle and distance between the edge and the central axis in the concave area, the smaller the The more likely the strip edge is to be located on the central axis and aligned with the central axis direction, the greater the central axis coefficient.
[0059] For each edge, since part of the metal wire will be exposed at the front end of the crimped wire harness terminal, if the edge of the damaged area is the edge of the exposed metal wire, the grayscale value of its pixel is basically the same as the grayscale value of the pixel of the part of the metal wire exposed at the front end, and the number of pixels with the same grayscale value as the harness part is small. Therefore, the possibility that the edge in the recessed area is the edge of the metal wire is obtained by the difference between the grayscale value of the edge pixel in the recessed area and the grayscale value of the pixel of the harness terminal part and the harness part.
[0060] Specifically, the first The metal wire probability value at the edge of the strip is calculated as:
[0061]
[0062] In the formula, Indicates the first The metal wire probability value at the edge of the strip, Indicates the first The number of pixels on the edge of the strip, Indicates the pixel points in the harness part, the first The number of pixels with the same grayscale value as the edge of the strip. It is the pixel point in the wiring harness terminal part, and the first The number of pixels with the same grayscale value as the edge of the strip. Indicates the first The gray value of the x-th pixel at the edge of the strip, Indicates the first The gray value of the x+1th pixel at the edge of the strip, Represents an exponential function with a natural constant as its base.
[0063] The smaller the description The more the grayscale value of the edge pixel is the same as the grayscale value of the metal wire exposed at the front end of the wiring harness terminal, the more it belongs to the edge of the metal wire rather than the wiring harness part; and the average value of the difference between adjacent grayscale values of the pixel points on the edge The smaller the value, the smaller the difference in grayscale values between adjacent pixels, the less it conforms to the grayscale value characteristics of the concave area, and the greater the possibility that it belongs to a metal wire.
[0064] Step S003, obtaining the crimping strength of the harness terminal according to the difference in grayscale value changes at the connection between the crimping part and the harness part; obtaining the breakage coefficient of the recessed area according to the medial axis coefficient and metal wire possibility value of each edge in the recessed area, and the crimping strength of the harness terminal.
[0065] It should be noted that when the crimping strength is high, the insulation on the surface of the wire harness is more likely to be damaged. Therefore, the higher the crimping strength, the more obvious the concavity of the insulation on the surface of the wire harness will be squeezed downward. As a result, the grayscale value of the wire harness part connected to the crimping part in the image is lower and the grayscale value increases faster as the wire harness extends in the direction. Therefore, the crimping strength of the wire harness terminal is obtained based on the changes in the grayscale values of the edges of the crimping part and the edge pixels of each column in the extension direction of the wire harness.
[0066] Specifically, this embodiment is described by taking 5 columns of pixels as an example. Other values may be set in other implementations, and this embodiment does not specifically limit this. The calculation method of the crimping strength of the wiring harness terminal is:
[0067]
[0068] In the formula, Indicates the crimping strength of the wiring harness terminal. Indicates the mean grayscale value of the collinear edge pixel points where the crimping part and the harness part are connected. Indicates the mean grayscale value of the pixel point in the jth column where the crimping part and the harness part are connected, Indicates the number of columns of line beam pixels. represents the hyperbolic tangent function, which is used to normalize the crimping strength. The normalized range is .
[0069] The average grayscale value of a column of pixels at the crimp and harness connection in the image The smaller the value, the lower the gray value, indicating that the crimping part makes the wire harness more concave, resulting in a lower gray value, and the higher the crimping strength; and for any column of pixels in the crimping connection in the direction of the wire harness extension, the average gray value is The sum of the differences The larger the value, the faster the gray value of the crimping part changes toward the extended part of the wire harness, the greater the degree of depression, and the higher the crimping strength.
[0070] According to the median axis coefficient and metal conductor coefficient of each edge of the concave area, as well as the crimping strength of the harness terminal, the damage coefficient of the concave area is obtained; the damage coefficient of the concave area is:
[0071]
[0072] In the formula, represents the damage coefficient of the concave area, Indicates the first The medial axis coefficient of the strip edge, Indicates the first The metal wire probability value at the edge of the strip, Indicates the crimping strength of the wiring harness terminal. Indicates the number of edges in the concave area.
[0073] When the median axis coefficient and the metal conductor possibility value are higher, the recessed area is more likely to be damaged, and the higher the crimping strength of the harness terminal is, the more likely it is to be damaged.
[0074] Step S004: Perform appearance inspection on the crimping condition of the wiring harness terminal according to the damage coefficient of the recessed area.
[0075] A damage threshold is preset. When the damage coefficient of the concave area is greater than or equal to the damage threshold, it indicates that the insulation of the harness may be damaged, and the crimping area is recorded as a damaged area. A crimping threshold is further preset. When there is a damaged area at the harness terminal and the crimping strength of the harness terminal is greater than the crimping threshold, it indicates that the damage to the insulation of the harness is caused by high crimping strength, and the crimping strength needs to be reduced during crimping. When the crimping strength is less than or equal to the crimping threshold, it indicates that the damage to the insulation of the harness is caused by poor strength of the insulation of the harness, and the harness with better surface insulation strength needs to be replaced.
[0076] When the damage coefficient of the recessed area is less than the damage threshold, it means that the insulation of the wire harness is not damaged, and there is no need to adjust the crimping force during crimping. In this embodiment, the preset damage threshold is 0.8 and the crimping threshold is 0.6. This is used as an example for description. Other values can be set in other implementations, and this embodiment does not make specific limitations.
[0077] The present invention also provides a wiring harness terminal appearance inspection system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program stored in the memory to implement the steps of the aforementioned wiring harness terminal appearance inspection method.
[0078] It should be noted that the The model only shows negative correlation and the output of the constraint model is in In the range, As the input of this model, it can be replaced by other models with the same purpose in specific implementation. The model is used as an example for description without any specific limitation.
[0079] So far, the present invention is completed.
[0080] 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 method for detecting the appearance of a wiring harness terminal, characterized in that: The method comprises the following steps: Perform edge detection on the collected wire harness terminal image to obtain a crimping part, a wire harness part, a wire harness terminal part, and a plurality of edges in each part; The concave area is obtained according to the gray value variation characteristics of the crimped part in different directions; According to the positional relationship between each edge in the concave area and the crimping part, the medial axis coefficient of each edge in the concave area is obtained; according to the difference in the number of pixels of each edge in the concave area and the same grayscale value in the wiring harness terminal part and the wiring harness part, the metal wire possibility value of each edge in the concave area is obtained; The crimping strength of the harness terminal is obtained according to the difference in the gray value change at the connection between the crimping part and the harness part; the breakage coefficient of the concave area is obtained according to the medial axis coefficient and the metal wire possibility value of each edge in the concave area and the crimping strength of the harness terminal; Perform visual inspection on the crimping condition of the harness terminals based on the damage factor of the recessed area; The specific steps of obtaining the medial axis coefficient of each edge in the concave area are as follows: In the formula, Indicates the first The medial axis coefficient of the strip edge, Indicates the first The European distance between the edge center point of the strip edge and the crimp extension line, Indicates the first The angle between the linear fitting line of the edge of the strip and the direction of the crimping extension line, represents an exponential function with a natural constant as base; The specific steps of obtaining the metal wire possibility value of each edge in the recessed area include the following: In the formula, Indicates the first The metal wire probability value at the edge of the strip, Indicates the first The number of pixels on the edge of the strip, Indicates the pixel points in the harness part, the first The number of pixels with the same grayscale value as the edge of the strip. It is the pixel point in the wiring harness terminal part, and the first The number of pixels with the same grayscale value as the edge of the strip. Indicates the first The gray value of the x-th pixel at the edge of the strip, Indicates the first The gray value of the x+1th pixel at the edge of the strip, represents an exponential function with a natural constant as base; The specific steps of obtaining the crimping strength of the wiring harness terminal are as follows: In the formula, Indicates the crimping strength of the wiring harness terminal. Indicates the mean grayscale value of the collinear edge pixel points where the crimping part and the harness part are connected. Indicates the mean grayscale value of the pixel point in the jth column where the crimping part and the harness part are connected, Indicates the number of columns of pixel points in the line bundle, represents the hyperbolic tangent function.
2. The appearance inspection method of a wiring harness terminal according to claim 1, characterized in that: The specific steps of obtaining the depressed area according to the gray value variation characteristics of the crimped part in different directions are as follows: The calculation method of the concavity value of the a-th pixel point of the harness part is: In the formula, Indicates the concavity value of the a-th pixel point in the harness part. Indicates the extended grayscale difference of the a-th pixel in the harness part, Indicates the external grayscale difference of the a-th pixel in the harness part, It represents the Euclidean distance from the ath pixel point of the harness part to the edge where the crimping part and the harness part are connected. It represents the Euclidean distance from the a-th pixel point of the harness part to the crimp extension line; A concave threshold is preset, and pixels whose values are greater than the concave threshold are recorded as concave pixels. All concave pixels constitute a concave area.
3. The appearance inspection method of a wiring harness terminal according to claim 2, characterized in that: The specific method of obtaining the extended grayscale difference and the external grayscale difference is as follows: The straight line in the specified direction is recorded as the crimping extension line; the grayscale value difference between the ath pixel point and the a+1 pixel point in the direction of the crimping extension line of the wire harness part is recorded as the extended grayscale difference of the ath pixel point; the grayscale value difference between the ath longitudinal pixel point and the a+1 pixel point from the direction of the crimping extension line to the edges on both sides of the wire harness part perpendicular to the crimping extension line is recorded as the external grayscale difference of the ath pixel point.
4. The appearance inspection method of a wiring harness terminal according to claim 1, characterized in that: The specific method of obtaining the edge center point is as follows: The pixel point in the middle of each edge in the concave area is recorded as the edge center point of each edge.
5. The appearance inspection method of a wiring harness terminal according to claim 1, characterized in that: The specific steps of obtaining the damage coefficient of the concave area are as follows: In the formula, represents the damage coefficient of the concave area, Indicates the first The medial axis coefficient of the strip edge, Indicates the first The metal wire probability value at the edge of the strip, Indicates the crimping strength of the wiring harness terminal. Indicates the number of edges in the concave area.
6. The appearance inspection method of a wiring harness terminal according to claim 1, characterized in that: The visual inspection of the crimping condition of the wiring harness terminal according to the damage coefficient of the recessed area includes the following specific steps: A damage threshold is preset. When the damage coefficient of the concave area is greater than or equal to the damage threshold, the crimping area is recorded as a damaged area. A crimping threshold is further preset. When there is a damaged area in the harness terminal and the crimping strength of the harness terminal is greater than the crimping threshold, the crimping force needs to be reduced during crimping. When the crimping strength is less than or equal to the crimping threshold, the harness needs to be replaced with a better surface insulation strength. When the damage coefficient of the concave area is less than the damage threshold, there is no need to adjust the crimping force during crimping.
7. A wiring harness terminal appearance inspection system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by a processor, the steps of the appearance inspection method of a wiring harness terminal as claimed in any one of claims 1 to 6 are implemented.
