Performance detection method and system for data line

Through image detection and pressing pressure control of the data line, the problem of waste in data line detection in the prior art is solved, and the comprehensive evaluation of the data line and the improvement of resource utilization are achieved.

CN119027393AActive Publication Date: 2024-11-26DONGGUAN FANGZHAN IND CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411115147.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-26
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

When any one of the existing data line detection methods fails in appearance or electrical performance detection, the entire data line will be eliminated, resulting in a large amount of material waste and failing to effectively distinguish whether the wire core is intact.

Method used

By obtaining the wire image of the data line, the defect detection is performed, the pressing pressure value is calculated, and the detection area is divided according to the pressure value during the electrical performance detection process, the comprehensive evaluation of the data line is achieved, and the data line with defects but the wire core is intact.

Benefits of technology

Accurately identify appearance defects, reduce material waste, improve resource utilization and detection efficiency, distinguish data lines with intact cores, and reduce production costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119027393A_ABST
    Figure CN119027393A_ABST
Patent Text Reader

Abstract

The invention discloses a performance detection method and system for a data line, and the method comprises the steps: obtaining a wire image of a to-be-detected data line, carrying out the defect detection according to the wire image, and obtaining defect information; the defect information comprises a defect type, a defect size and a defect position; calculating a pressing pressure value according to the defect type, the defect size and a preset pressing pressure value prediction algorithm; dividing the outer surface of the wire rod where the defect position is located into a plurality of pressing detection areas according to the defect size; performing electrical performance detection on the to-be-detected data line, and applying corresponding pressure to different pressing detection areas according to the pressing pressure value in the detection process to generate detection data; and determining an electrical performance detection result according to the detection data. According to the invention, the comprehensive evaluation of the electrical performance of the data line is realized by accurately identifying the appearance defect and combining the intelligent pressing pressure control on the appearance defect part, the data line with the appearance defect and the intact wire core is effectively distinguished, and the material waste is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of machine vision detection, and in particular to a performance detection method and system for a data line. Background Art

[0002] In the production and use of modern electronic products, data cables are an important connection component, and their quality directly affects the reliability and service life of the equipment. Current data cable inspection technology mainly relies on separate appearance inspection and electrical performance inspection. Appearance inspection focuses on the physical integrity of the surface of the data cable, including but not limited to scratches, wear and other visible defects; while electrical performance inspection focuses on evaluating the charging performance and data transmission performance of the cable core.

[0003] However, existing testing methods have certain limitations. When either the appearance test or the electrical performance test fails, the entire data cable is usually eliminated, even if only one of the two tests fails. Although this approach ensures product quality, it ignores the fact that the cores of most data cables with appearance defects are actually intact. This means that a large amount of material is wasted during the elimination process, which is neither economical nor environmentally friendly. Summary of the invention

[0004] In order to solve at least one of the above-mentioned technical problems, the present invention provides a performance detection method and system for a data line.

[0005] In a first aspect, the present invention provides a performance detection method for a data line, the method comprising:

[0006] Acquire a wire image of the data line to be tested, perform defect detection based on the wire image, and obtain defect information; the defect information includes defect type, defect size, and defect location;

[0007] Calculate the pressing pressure value according to the defect type, defect size and a preset pressing pressure value prediction algorithm;

[0008] Dividing the outer surface of the wire material where the defect is located into a plurality of pressing detection areas according to the defect size;

[0009] Conduct electrical performance testing on the data line to be tested, and apply corresponding pressure to different pressing detection areas according to the pressing pressure value during the testing process to generate test data;

[0010] Determine the electrical performance test results based on the test data.

[0011] Preferably, the performing defect detection according to the wire image to obtain defect information includes:

[0012] Divide the wire image into a plurality of sub-wire images, obtain position information corresponding to the sub-wire images, and obtain a plurality of M comparison images of different defect types, wherein M is a positive integer, and the sub-wire images have the same size as the comparison images;

[0013] The sub-wire image is mixed with the comparison image, and the K-Means algorithm is used to cluster the mixed data set to obtain M+1 classification sets;

[0014] Counting the distribution of the comparison images and sub-wire images of different defect types in the classification set, and determining the defect type corresponding to the sub-wire image based on the distribution;

[0015] Screen out sub-wire images with different defect types, and use region growing algorithm to divide the sub-wire images into regions to obtain defect regions and wire background regions;

[0016] The defect size is obtained according to the defect area, and the defect position is obtained according to the position information of the sub-wire image corresponding to the defect area.

[0017] Preferably, the method of dividing the sub-wire image into regions by using a region growing algorithm to obtain a defect region and a wire background region includes:

[0018] Get the average grayscale of the normal sub-wire image;

[0019] Selecting seed points in the defective sub-wire image based on the average grayscale;

[0020] The wire background region is obtained by performing region growing according to the seed point, and the defect region is obtained by subtracting the wire background region from the sub-wire image.

[0021] Preferably, the pressing pressure value prediction algorithm is expressed as:

[0022]

[0023] Where P std is the preset standard pressing pressure value, T is the weight corresponding to the current defect type, S def is the area of ​​the defect region, S total is the area of ​​the press detection area, P pred is the predicted compression pressure value.

[0024] Preferably, the data cables include: HDMI, DP, DVI, USB and VGA.

[0025] In a second aspect, the present invention further provides a performance detection system for a data line, the system comprising:

[0026] An appearance defect detection module is used to obtain a wire image of the data line to be tested, perform defect detection based on the wire image, and obtain defect information; the defect information includes defect type, defect size and defect location;

[0027] A pressing pressure value calculation module, used to calculate the pressing pressure value according to the defect type, defect size and a preset pressing pressure value prediction algorithm;

[0028] A pressing area division module is used to divide the outer surface of the wire material where the defect is located into multiple pressing detection areas according to the defect size;

[0029] The electrical performance test module is used to perform electrical performance test on the data line to be tested, and to apply corresponding pressure to different pressing test areas according to the pressing pressure value during the test process to generate test data;

[0030] The electrical performance judgment module is used to determine the electrical performance test results based on the test data.

[0031] Preferably, the appearance defect detection module includes:

[0032] An image acquisition unit, used for dividing the wire image into a plurality of sub-wire images, acquiring position information corresponding to the sub-wire images, and acquiring a plurality of M comparison images of different defect types, wherein M is a positive integer, and the sub-wire images have the same size as the comparison images;

[0033] An image mixing clustering unit is used to mix the sub-wire image with the comparison image, and use the K-Means algorithm to perform clustering processing on the mixed data set to obtain M+1 classification sets;

[0034] A defect type judgment unit is used to collect statistics on the distribution of comparison images and sub-wire images of different defect types in the classification set, and determine the defect type corresponding to the sub-wire image based on the distribution;

[0035] The defect image segmentation unit is used to screen out sub-wire images of different defect types and divide the sub-wire images into regions using a region growing algorithm to obtain defect regions and wire background regions;

[0036] The defect information calculation unit is used to obtain the defect size according to the defect area, and obtain the defect position according to the position information of the sub-wire image corresponding to the defect area.

[0037] In a third aspect, the present invention further provides an electronic device comprising a processor and a memory, wherein the memory is used to store computer program code, and the computer program code comprises computer instructions. When the processor executes the computer instructions, the electronic device executes the method as described in the first aspect above and any possible implementation thereof.

[0038] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program includes program instructions, and when the program instructions are executed by a processor of an electronic device, the processor executes the method as described in the first aspect above and any possible implementation thereof.

[0039] Compared with the prior art, the present invention has the following beneficial effects:

[0040] 1) The present invention realizes a comprehensive evaluation of the electrical performance of the data line by accurately identifying appearance defects and combining intelligent pressing pressure control at the appearance defect location, effectively distinguishing data lines with appearance defects but intact cores, reducing material waste, and improving resource utilization and detection efficiency.

[0041] 2) The present invention divides the wire image into multiple sub-images and mixes and clusters them with comparison images of different defect types, so that various defect types, positions and sizes of the data cable surface can be efficiently and accurately identified, thereby improving the accuracy and reliability of detection; an intelligent clustering algorithm is used to automatically classify images according to defect types, thereby simplifying the process of manual intervention and improving detection efficiency; the defect area is accurately divided by a regional growing algorithm, so the scope of the defect can be more accurately defined, providing a reliable basis for subsequent press detection; the specific location of the defect is precisely located, providing clear guidance for subsequent repair or removal; finally, the present invention can distinguish data cables that have appearance defects but intact internal cores, and confirm the availability of the cores through targeted detection, thereby reducing material waste, reducing production costs, and improving resource utilization.

[0042] 3) The present invention uses the average grayscale of the normal sub-wire image as the seed point, and by subtracting the wire background area from the sub-wire image, the defect area can be clearly highlighted, and the wire background area and the defect area can be effectively distinguished. This method avoids the problem of difficulty in selecting a suitable seed point due to the variety of defect types, so that the region growing algorithm can accurately identify the wire background area, thereby improving the accuracy of detection.

[0043] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.

[0045] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.

[0046] Figure 1 A schematic diagram of a flow chart of a method for detecting performance of a data line provided by an embodiment of the present invention;

[0047] Figure 2 A schematic diagram of the structure of a performance detection system for a data line provided by an embodiment of the present invention;

[0048] Figure 3 The embodiment of the present invention provides Figure 2 Schematic diagram of the structure of the sub-modules of the appearance defect detection module. DETAILED DESCRIPTION

[0049] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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.

[0050] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0051] The existing data cable inspection method cannot effectively distinguish whether the cable core is intact when eliminating data cables with appearance defects, resulting in material waste.

[0052] See also Figure 1 , Figure 1 The present invention provides a flow chart of a method for detecting performance of a data line according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0053] S100, obtaining a wire image of a data wire to be tested, performing defect detection according to the wire image, and obtaining defect information; the defect information includes defect type, defect size, and defect position;

[0054] In this embodiment, a high-resolution image of the wire portion of the data line to be tested is obtained by a high-precision industrial camera to obtain a wire image, and the wire image is input into a pre-trained wire defect prediction model based on a convolutional neural network to obtain defect information. The defect information includes defect type (such as scratches, dents, wear, dirt and glue, etc.), defect size (length and width) and defect position (defect center position coordinates).

[0055] It should be noted that one defect detection process can detect defect information of multiple different parts.

[0056] The wire defect prediction model training process is as follows:

[0057] Use high-precision industrial cameras to capture a large number of data line images under different conditions, including normal and defective data lines. Annotate the collected images to mark the location, type, and size of the defects. Data annotation can be completed through professional image annotation software. The data set is divided into training set, validation set, and test set, with data ratios of 70%, 15%, and 15%. Initialize the network weights of the convolutional neural network, use L1 regularization to prevent overfitting, train in batches, use a small number of data samples for each iteration, and use a learning rate decay strategy. When the performance on the validation set no longer improves, stop training to prevent overfitting, and perform multiple epochs of training until the wire defect prediction model converges to obtain a trained wire defect prediction model.

[0058] Convolutional neural networks can automatically extract features from images, reduce manual involvement, and improve detection efficiency. Through a large amount of training data and deep network structure, they can accurately identify subtle defects. The trained model can adapt to different types of data lines and different defect types and has good generalization ability.

[0059] S200, calculating a pressing pressure value according to a defect type, a defect size and a preset pressing pressure value prediction algorithm;

[0060] According to the defect type, defect size and preset pressing pressure value prediction algorithm in the defect information obtained in the above steps, the pressing pressure value is calculated. The pressing pressure value prediction algorithm is as follows:

[0061]

[0062] Where P std is the preset standard pressing pressure value, T is the weight corresponding to the current defect type, S def is the area of ​​the defect region, S total is the area of ​​the press detection area, P pred is the predicted compression pressure value.

[0063] In this embodiment, the weight of the scratch defect type is 0.8, the weight of the dent defect type is 0.7, the weight of the wear defect type is 0.6, the weight of the dirt defect type is 0.2, and the weight of the adhesive defect type is 0.2, and the standard pressing pressure value is 10N.

[0064] According to the specific situation of the wire defect, a more appropriate pressing force can be calculated through the pressing pressure value prediction algorithm. This pressing force can detect whether the wire core part is in good contact and avoid unnecessary damage to the data cable.

[0065] S300, dividing the outer surface of the wire material where the defect is located into a plurality of pressing detection areas according to the defect size;

[0066] According to the specific location and size of the defect, multiple smaller areas are divided on the surface of the data cable so that press tests can be performed in different directions of the wire part where the defect is located. This can more accurately locate the defect position and evaluate the condition of the wire core.

[0067] In this embodiment, the outer surface of the wire where the defect is located is divided into four press detection areas.

[0068] S400, performing electrical performance testing on the data line to be tested, and applying corresponding pressure to different pressing detection areas according to the pressing pressure value during the testing process to generate test data;

[0069] In this embodiment, the electrical performance test includes charging performance test and data transmission test. During the electrical performance test, according to the pressing pressure values ​​of different defects calculated in S200, corresponding pressure is applied to the pressing detection area corresponding to each different defect, and the change of electrical performance is observed. The electrical performance change data of the data line under pressing is recorded to provide data basis for subsequent judgment of whether the wire core has poor contact. The test data includes various electrical performance indicators recorded before and after applying pressure, as well as the response changes during the pressing process.

[0070] S500, determining an electrical performance test result according to the test data.

[0071] By analyzing the data change rate of the test data, it is determined whether the electrical performance of the data line meets the preset test standards. If it does not meet the test standards, it proves that the current data line core has poor contact. If it meets the test standards, it proves that the current data line only has appearance defects and the core is in good condition. The test standards are national standards corresponding to different types of data cables.

[0072] It should be noted that the data cables mentioned in the present invention include but are not limited to HDMI, DP, DVI, USB, VGA and other data cables.

[0073] In a possible embodiment, the electrical performance detection process of HDMI includes: using an ADC (analog-to-digital converter) chip to convert an HDMI signal (including an HDMI digital signal generated by pressing) into an analog signal, sending the converted analog signal to an analog signal processing module, which may include a low-pass filter, an amplifier, etc., for removing noise and enhancing the signal, extracting key features of the signal (i.e., detection data) through the analog signal processing module, such as the amplitude, frequency, and waveform shape of the signal, and comparing the extracted signal features with preset standard thresholds to evaluate the transmission quality of the HDMI data cable and determine whether the core part of the current HDMI data cable has poor contact. If not, the core part of the HDMI data cable can be recycled and reused.

[0074] In this embodiment, by accurately identifying appearance defects and combining intelligent pressing pressure control at the appearance defect location, a comprehensive evaluation of the electrical performance of the data cable is achieved, which effectively distinguishes data cables with appearance defects but intact cores, reduces material waste, and improves resource utilization and detection efficiency.

[0075] Preferably, the performing defect detection according to the wire image to obtain defect information includes:

[0076] Divide the wire image into a plurality of sub-wire images, obtain position information corresponding to the sub-wire images, and obtain a plurality of M comparison images of different defect types, wherein M is a positive integer, and the sub-wire images have the same size as the comparison images;

[0077] In this embodiment, the data line image captured by a high-precision industrial camera or other imaging device is used for subsequent defect detection, and the complete wire image is divided into multiple smaller image blocks according to a predetermined size. Each sub-image represents a local area of ​​the data line, which is convenient for subsequent defect identification and positioning. The position information of the sub-wire image refers to the exact position coordinates of each sub-wire image in its original wire image. A series of image samples containing different defect types are prepared in advance for comparison and analysis with the sub-wire image. M is a positive integer representing the number of defect types. It should be noted that the sub-wire image is ensured to be consistent in size with the comparison image to facilitate effective comparison and analysis.

[0078] The sub-wire image is mixed with the comparison image, and the K-Means algorithm is used to cluster the mixed data set to obtain M+1 classification sets;

[0079] The sub-wire images are combined with the comparison images to form a large data set containing all images. The K-Means algorithm is used to group the images in the data set according to similarity. The K value here is M+1, that is, the M defect types in the comparison images plus an additional classification set (i.e., the normal image set) is used to classify non-defective images. The mixed image set is divided into M+1 classification sets through the K-Means algorithm, and each classification set represents a defect type or a normal defect-free state.

[0080] Counting the distribution of the comparison images and sub-wire images of different defect types in the classification set, and determining the defect type corresponding to the sub-wire image based on the distribution;

[0081] The number and proportion of the comparison images and sub-wire images in each classification set are counted to determine which defect type the sub-wire image is most likely to belong to. According to the distribution of the sub-wire image in each classification set, the defect type with the highest frequency is selected as the final defect type of the sub-wire image. For example, if a sub-wire image appears the most times in the classification set of the scratch defect type, then the sub-wire image is considered to belong to the scratch defect type.

[0082] Sub-wire images with different defect types are screened out, and the sub-wire images are divided into regions using a region growing algorithm to obtain defect regions and wire background regions.

[0083] The images that are judged to have defects are screened out from all sub-wire images. The region growing algorithm is an image segmentation algorithm that automatically identifies defective areas and background areas by setting seed points and gradually expanding similar pixel areas.

[0084] The defect size is obtained according to the defect area, and the defect position is obtained according to the position information of the sub-wire image corresponding to the defect area.

[0085] The specific size of the defect is determined by measuring parameters such as the area, length and width of the defect area. According to the position information of the sub-wire image and the position of the defect area in the sub-wire image, the exact position of the defect on the entire data line is finally determined.

[0086] In this embodiment, by dividing the wire image into multiple sub-images and mixing and clustering the sub-images with the comparison images of different defect types, various defect types on the surface of the data line and their positions and sizes can be efficiently and accurately identified, thereby improving the accuracy and reliability of detection; the intelligent clustering algorithm is used to automatically classify the image according to the defect type, thereby simplifying the process of manual intervention and improving the detection efficiency; the defect area is accurately divided by the regional growing algorithm, so the scope of the defect can be more accurately defined, providing a reliable basis for subsequent press detection; by precisely locating the specific location of the defect, clear guidance is provided for subsequent repair or removal; finally, the present invention can distinguish data cables that have appearance defects but intact internal cores, and confirm the availability of the core through targeted detection, thereby reducing material waste, reducing production costs, and improving resource utilization.

[0087] Preferably, the method of dividing the sub-wire image into regions by using a region growing algorithm to obtain a defect region and a wire background region includes:

[0088] Get the average grayscale of the normal sub-wire image;

[0089] Selecting seed points in the defective sub-wire image based on the average grayscale;

[0090] The wire background region is obtained by performing region growing according to the seed point, and the defect region is obtained by subtracting the wire background region from the sub-wire image.

[0091] In this embodiment, the normal sub-wire image refers to the sub-wire image in the normal image set in the above clustering processing result. By performing grayscale analysis on the normal sub-wire image, the average grayscale of all pixel grayscale values ​​is calculated, and the pixel points with a grayscale close to the average grayscale of the normal sub-wire image are selected as seed points. These seed points are usually located in areas with fewer or no defects, and serve as the starting point of the region growing algorithm. In the defective sub-wire image, by comparing the average grayscale value of each pixel with the normal sub-wire image, the pixel point closest to the average grayscale value is selected as the seed point. The region growing algorithm starts to expand from the seed point, and the adjacent pixel points with similar grayscale values ​​to the seed point are added to the same area until no more similar pixels can be found. The final formed area is the wire background area. The determined wire background area is subtracted from the sub-wire image, and the remaining part is the defect area. Through this subtraction operation, the existence and location of the defect can be clearly highlighted.

[0092] In this embodiment, by using the average grayscale of the normal sub-wire image as the seed point, by subtracting the wire background area from the sub-wire image, the defect area can be clearly highlighted, and the wire background area and the defect area can be effectively distinguished. This method avoids the problem of difficulty in selecting a suitable seed point due to the variety of defect types, so that the region growing algorithm can accurately identify the wire background area, thereby improving the accuracy of detection.

[0093] Preferably, the pressing pressure value prediction algorithm is expressed as:

[0094]

[0095] Where P std is the preset standard pressing pressure value, T is the weight corresponding to the current defect type, S def is the area of ​​the defect region, S total is the area of ​​the press detection area, P pred is the predicted compression pressure value.

[0096] P in the formula std Indicates the preset standard pressing pressure value (the standard pressing pressure value in this embodiment is 100N), which represents the minimum pressing pressure required for a wire without any defects under ideal conditions. T represents the weight corresponding to the current defect type. Different defect types may cause different degrees of influence on the wire when subjected to force, so they need to be given corresponding weights. The size of the weight depends on the severity and nature of the defect. For example, some serious defects may require a greater pressing pressure to overcome their influence. By introducing the weight coefficient, the predicted pressure value can be adjusted according to the specific defect type to make it more in line with the actual situation. S def Indicates the area of ​​the defect region, which is obtained through the region growing algorithm or other image processing techniques mentioned above. The larger the area of ​​the defect region, the greater the impact of the defect on the overall performance of the wire, so a greater pressing pressure is required to ensure the stability of the wire. total Indicates the total area of ​​the press test area. This value usually refers to the surface area of ​​the wire, or the area of ​​the part that needs to be pressed. By comparing the defect area with the total inspection area, the relative importance of the defect in the entire wire can be evaluated.

[0097] The compression pressure value prediction algorithm gives the predicted compression pressure value P predThe predicted pressing pressure value is obtained by multiplying the standard pressing pressure value by a correction factor. The correction factor consists of two parts: one is the product of the weight corresponding to the defect type and the defect area divided by the total area of ​​the pressing detection area, and the other is a constant 1. The former reflects the impact of the defect on the pressing pressure, and the latter maintains the basic magnitude of the standard pressing pressure.

[0098] In this embodiment, the pressing pressure value prediction algorithm can more accurately analyze the pressing pressure values ​​corresponding to different defect information. Specifically, when the defect area is large or the defect type weight is high, the predicted pressing pressure value will increase accordingly, and vice versa. The advantage of this is that the pressing pressure can be adjusted according to the specific defect situation to ensure that the wire remains stable when subjected to external pressure, while not over-applying unnecessary force, thereby protecting the wire from damage.

[0099] The data cables include: HDMI, DP, DVI, USB and VGA.

[0100] In summary, the method provided in this embodiment can at least achieve the following effects:

[0101] 1) The present invention realizes a comprehensive evaluation of the electrical performance of the data line by accurately identifying appearance defects and combining intelligent pressing pressure control at the appearance defect location, effectively distinguishing data lines with appearance defects but intact cores, reducing material waste, and improving resource utilization and detection efficiency.

[0102] 2) The present invention divides the wire image into multiple sub-images and mixes and clusters them with comparison images of different defect types, so that various defect types, positions and sizes of the data cable surface can be efficiently and accurately identified, thereby improving the accuracy and reliability of detection; an intelligent clustering algorithm is used to automatically classify images according to defect types, thereby simplifying the process of manual intervention and improving detection efficiency; the defect area is accurately divided by a regional growing algorithm, so the scope of the defect can be more accurately defined, providing a reliable basis for subsequent press detection; the specific location of the defect is precisely located, providing clear guidance for subsequent repair or removal; finally, the present invention can distinguish data cables that have appearance defects but intact internal cores, and confirm the availability of the cores through targeted detection, thereby reducing material waste, reducing production costs, and improving resource utilization.

[0103] 3) The present invention uses the average grayscale of the normal sub-wire image as the seed point, and by subtracting the wire background area from the sub-wire image, the defect area can be clearly highlighted, and the wire background area and the defect area can be effectively distinguished. This method avoids the problem of difficulty in selecting a suitable seed point due to the variety of defect types, so that the region growing algorithm can accurately identify the wire background area, thereby improving the accuracy of detection.

[0104] See also Figure 2 In one embodiment, a performance detection system for a data line is also provided, the system comprising:

[0105] The appearance defect detection module 100 is used to obtain a wire image of the data line to be tested, perform defect detection based on the wire image, and obtain defect information; the defect information includes defect type, defect size and defect position;

[0106] A pressing pressure value calculation module 200, used to calculate the pressing pressure value according to the defect type, defect size and a preset pressing pressure value prediction algorithm;

[0107] A pressing area division module 300 is used to divide the outer surface of the wire material where the defect position is located into a plurality of pressing detection areas according to the defect size;

[0108] The electrical performance test module 400 is used to perform electrical performance test on the data line to be tested, and to apply corresponding pressure to different pressing detection areas according to the pressing pressure value during the test process to generate test data;

[0109] The electrical performance determination module 500 is used to determine the electrical performance test result according to the test data.

[0110] See also Figure 3 In one embodiment, the appearance defect detection module 100 includes:

[0111] The image acquisition unit 101 is used to divide the wire image into a plurality of sub-wire images, acquire position information corresponding to the sub-wire images, and acquire a plurality of M comparison images of different defect types, wherein M is a positive integer, and the sub-wire images have the same size as the comparison images;

[0112] An image mixing and clustering unit 102 is used to mix the sub-wire image with the comparison image, and perform clustering processing on the mixed data set using a K-Means algorithm to obtain M+1 classification sets;

[0113] The defect type determination unit 103 is used to collect statistics on the distribution of the comparison images and sub-wire images of different defect types in the classification set, and determine the defect type corresponding to the sub-wire image based on the distribution;

[0114] The defect image segmentation unit 104 is used to screen out sub-wire images of different defect types and divide the sub-wire images into regions using a region growing algorithm to obtain defect regions and wire background regions;

[0115] The defect information calculation unit 105 is used to obtain the defect size according to the defect area, and obtain the defect position according to the position information of the sub-wire image corresponding to the defect area.

[0116] It can be understood that the functions or modules included in the system provided in this embodiment can be used to execute the method described in the above method embodiment. Its specific implementation can refer to the description of the above method embodiment. For the sake of brevity, it will not be repeated here.

[0117] The present invention also provides an electronic device, including a processor and a memory, wherein the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes a method as described in any possible implementation manner.

[0118] The present invention also provides a computer-readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes a method as described in any possible implementation manner.

[0119] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0120] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those skilled in the art can also clearly understand that the descriptions of the various embodiments of the present invention have different focuses. For the convenience and brevity of description, the same or similar parts may not be repeated in different embodiments. Therefore, for parts not described or not described in detail in a certain embodiment, refer to the records of other embodiments.

Claims

1. A performance detection method for a data line, characterized in that: The method comprises: Acquire a wire image of the data line to be tested, perform defect detection based on the wire image, and obtain defect information; the defect information includes defect type, defect size, and defect location; Calculate the pressing pressure value according to the defect type, defect size and a preset pressing pressure value prediction algorithm; Dividing the outer surface of the wire material where the defect is located into a plurality of pressing detection areas according to the defect size; Conduct electrical performance testing on the data line to be tested, and apply corresponding pressure to different pressing detection areas according to the pressing pressure value during the testing process to generate test data; Determine the electrical performance test results based on the test data.

2. The performance detection method for a data line according to claim 1, characterized in that: The defect detection is performed according to the wire image to obtain defect information, including: Divide the wire image into a plurality of sub-wire images, obtain position information corresponding to the sub-wire images, and obtain a plurality of M comparison images of different defect types, wherein M is a positive integer, and the sub-wire images have the same size as the comparison images; The sub-wire image is mixed with the comparison image, and the K-Means algorithm is used to cluster the mixed data set to obtain M+1 classification sets; Counting the distribution of the comparison images and sub-wire images of different defect types in the classification set, and determining the defect type corresponding to the sub-wire image based on the distribution; Screen out sub-wire images with different defect types, and use region growing algorithm to divide the sub-wire images into regions to obtain defect regions and wire background regions; The defect size is obtained according to the defect area, and the defect position is obtained according to the position information of the sub-wire image corresponding to the defect area.

3. The performance detection method for a data line according to claim 2, characterized in that: The method uses a region growing algorithm to divide the sub-wire image into regions to obtain defect regions and wire background regions, including: Get the average grayscale of the normal sub-wire image; Selecting seed points in the defective sub-wire image based on the average grayscale; The wire background region is obtained by performing region growing according to the seed point, and the defect region is obtained by subtracting the wire background region from the sub-wire image.

4. The performance detection method for a data line according to claim 1, characterized in that: The compression pressure value prediction algorithm is expressed as: Where P std is the preset standard pressing pressure value, T is the weight corresponding to the current defect type, S def is the area of ​​the defect region, S total is the area of ​​the press detection area, P pred is the predicted compression pressure value.

5. The performance detection method for a data line according to claim 1, characterized in that: The data cables include: HDMI, DP, DVI, USB and VGA.

6. A performance detection system for a data line, characterized in that: The system comprises: An appearance defect detection module is used to obtain a wire image of the data line to be tested, perform defect detection based on the wire image, and obtain defect information; the defect information includes defect type, defect size and defect location; A pressing pressure value calculation module, used to calculate the pressing pressure value according to the defect type, defect size and a preset pressing pressure value prediction algorithm; A pressing area division module is used to divide the outer surface of the wire material where the defect is located into multiple pressing detection areas according to the defect size; The electrical performance test module is used to perform electrical performance test on the data line to be tested, and to apply corresponding pressure to different pressing detection areas according to the pressing pressure value during the test process to generate test data; The electrical performance judgment module is used to determine the electrical performance test results based on the test data.

7. The performance detection system for a data line according to claim 6, characterized in that: The appearance defect detection module comprises: An image acquisition unit, used for dividing the wire image into a plurality of sub-wire images, acquiring position information corresponding to the sub-wire images, and acquiring a plurality of M comparison images of different defect types, wherein M is a positive integer, and the sub-wire images have the same size as the comparison images; An image mixing clustering unit is used to mix the sub-wire image with the comparison image, and use the K-Means algorithm to perform clustering processing on the mixed data set to obtain M+1 classification sets; A defect type judgment unit is used to collect statistics on the distribution of comparison images and sub-wire images of different defect types in the classification set, and determine the defect type corresponding to the sub-wire image based on the distribution; The defect image segmentation unit is used to screen out sub-wire images of different defect types and divide the sub-wire images into regions using a region growing algorithm to obtain defect regions and wire background regions; The defect information calculation unit is used to obtain the defect size according to the defect area, and obtain the defect position according to the position information of the sub-wire image corresponding to the defect area.

8. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and when the processor executes the computer instructions, the electronic device executes the performance detection method for a data line as described in any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes the performance detection method for a data line according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Pressure key detection method, device and mobile terminal

    CN110471808A

  • Data line pressure detection method, device and equipment and computer readable storage medium

    CN111413016A

  • Industrial product appearance defect detection method and device

    CN113689431A

  • Intelligent identification method and device for PCB defects

    CN118226236A

  • Industrial surface defect detection system and method based on data analysis

    CN118469996A