A dynamic defect detection method for cable process quality based on deep learning

Through deep learning technology, YOLOV5 and UNet models are used to identify cable characteristics, which solves the problem of low efficiency of traditional cable monitoring methods, achieves accurate identification of cable status and fault determination, and improves detection efficiency and accuracy.

CN113947563BActive Publication Date: 2024-09-06STATE GRID ZHEJIANG ELECTRIC POWER CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202110993552.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-27
Publication Date
2024-09-06
Estimated Expiration
2041-08-27

AI Technical Summary

Technical Problem

Traditional cable monitoring methods have low detection efficiency, are difficult to accurately identify cable status, and provide insufficient early warning of cable fault types and safety hazards.

Method used

A dynamic defect detection method for cable process quality based on deep learning is used to obtain pictures through a camera, use the YOLOV5 target detection algorithm to identify cables, combine the UNet segmentation network model to extract cable features, and determine the red insulating tape and black protective layer of the cable through morphological operations. and whether the exposed parts are abnormal.

Benefits of technology

It significantly improves the cable identification rate, has good generalization ability and robustness, reduces sample collection and labeling time, achieves online real-time and accurate cable status identification, and improves detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113947563B
    Figure CN113947563B
Patent Text Reader

Abstract

The present invention discloses a method for dynamic defect detection of cable process quality based on deep learning, comprising the following steps: step S1, using a camera to obtain a picture to be detected to generate a picture data set, wherein the picture contains at least one cable to be detected; step S2, using the YOLOV5 target detection algorithm to detect the acquired picture and identify the cable in the picture; using the labelme tool to mark the cable in the picture; step S3, according to the position of the cable detection frame, cutting the cable out of the picture for inspection; step S4, using the UNet segmentation network model to segment the cable features; using the Mobilenet‑V2 network as the backbone network of the UNet segmentation network model; step S5, judging whether the cable is abnormal according to the segmented cable features. This scheme points the position of the cable in the picture, extracts the features of the cable and compares and determines the features, significantly improving the recognition rate of the cable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of dynamic monitoring of distribution network projects, and in particular to a method for dynamic defect detection of cable process quality based on deep learning. Background Art

[0002] With the rapid development of social economy, people's demand for power resources is increasing. Empower infrastructure through digital construction. At the same time, distribution network engineering is an important part of the power industry, and the government and power companies also pay more attention to the construction and management of distribution network engineering. In distribution network engineering, traditional detection methods mainly rely on manpower. For example, in the cable detection link, the state of the cable is determined by the size of the exposed part of the cable by the staff. This detection method is inefficient, the working environment of the workers is poor, and it is easy to miss detection due to fatigue. In recent years, deep learning has also been used to detect the status of cables, such as using classification networks to classify and identify the status of cables, but this method relies heavily on the number of samples and the balance of positive and negative samples, and is prone to misidentification. Therefore, how to use a cable detection method to correctly detect and determine the status of the cable has become a key issue.

[0003] Chinese Patent: Publication Number: CN113253062A, Publication Date: August 13, 2021. The present invention relates to a power cable fault inspection system based on risk hazards. The central control unit first obtains the distance between the fault point and the transmitting end as S0. The central control unit transmits different pulse signals to the sorted power cables, and compares the calculated distance between the fault point and the transmitting end with S0. The proportion of the difference that is less than or equal to the distance error Sw is set as Ax, and different operations are performed according to the Ax range. If the central control unit adjusts the pulse signal, the proportion of the difference between the fault point distance and S0 that is less than or equal to the distance error Sw is set to Atx and compared with Ax, and different adjustments are made. If a secondary adjustment is made, the central control unit compares the obtained A2tx with Atx. The central control unit obtains the fault point or determines the operating fault based on the comparison result. The present invention reduces the hardware's obstacles to faults and optimizes the inspection system's accurate determination of the distance between the fault point and the transmitting point of the power cable fault through a step-by-step adjustment method. This solution mainly determines cable faults by locating the fault point, but it cannot determine the type of cable fault, and it cannot provide timely warnings for safety hazards such as cable damage.

[0004] Chinese Patent: Publication Number: CN110889357A, Publication Date: March 17, 2020. This application relates to a method and device for detecting underground cable faults based on marked areas. The method comprises: receiving an underground cable image collected by a robot; identifying the underground cable image to obtain a marked area, and sending the marked area to a user terminal for display; receiving feedback information from the user terminal for the marked area; when the feedback information indicates that the marked area is to be collected again, sending a collection instruction to the robot to collect an image corresponding to the marked area; receiving a secondary image collected by the robot according to the collection instruction, and identifying the secondary image to determine whether the underground cable is faulty. This method can improve accuracy. This solution does not involve the key technical steps of establishing an image recognition model and extracting cable image features. It only describes the general process of cable image recognition, and the specific technical steps such as how to implement it are not fully disclosed.

[0005] Chinese Patent: Publication Number: CN110309221A, Publication Date: October 8, 2019. The present invention relates to a cable fault identification system based on a cable accessory fault database, including: a database module, including a fault database and a power grid operation management library, for providing data for fault identification; a fault information collection module, which is connected to the database module in communication, obtains detailed fault data through on-site data collection, dissection, and physical and chemical analysis, and sends it to the database module; an analysis and identification module, which is connected to the database module in communication, is used to match the fault data to be identified with the fault data in the database module, and output the matching results. Compared with the prior art, the present invention has the advantages of comprehensive fault identification and high recognition accuracy. In this scheme, there is no specific technical means to explain and implement how to extract and clean the cable image in the picture and how to determine the fault. Summary of the invention

[0006] The purpose of this invention is to solve the problem of low detection and recognition efficiency of traditional cable monitoring methods. A dynamic defect detection method for cable process quality based on deep learning is proposed. The position of the cable in the point image is extracted, and the features are compared and determined, which significantly improves the recognition rate of the cable.

[0007] In order to achieve the above technical objectives, the present invention provides a technical solution, which is a method for dynamic defect detection of cable process quality based on deep learning, comprising the following steps:

[0008] Step S1: Use a camera to obtain a picture to be detected to generate a picture data set, where the picture contains at least one cable to be detected (the source of the data set can also be a network source picture);

[0009] Step S2: Use the YOLOV5 target detection algorithm to detect the acquired image and identify the cables in the image; use the labelme tool to label the cables in the image;

[0010] Step S3, according to the position of the cable detection frame, the cable is cut out from the picture for inspection;

[0011] Step S4, using the UNet segmentation network model to segment the cable features; the Mobilenet-V2 network is used as the backbone network of the UNet segmentation network model;

[0012] Step S5: determine whether the cable is abnormal based on the segmented cable characteristics.

[0013] Preferably, the cable features include red insulating tape, a black protective layer and exposed cables.

[0014] Preferably, the UNet segmentation network model includes an encoder and a decoder, wherein:

[0015] The encoder is responsible for feature extraction, downsampling the image four times, and ultimately reducing the size of the original image by 16 times, fully extracting and compressing the features of the original image;

[0016] The decoder is responsible for upsampling the image, upsampling the extracted features four times, and each upsampling is fused with the same scale as the number of channels corresponding to the encoder part, and finally the features are restored to the original image size, and the final result is the segmented image;

[0017] The captured cable images were preprocessed and uniformly changed to 640*320 size. The preprocessed images were used as input to the UNet segmentation network model. After downsampling and upsampling, a 640*320 size segmentation map was finally obtained. The segmentation network model can well extract the black protective layer, red insulating tape, and exposed cable parts of the cable, and has good robustness to interference factors such as image lighting and dust.

[0018] Preferably, step S5 includes the following steps:

[0019] Perform morphological operations on the red insulating tape part to determine the number of pixels of the red insulating tape. If the number of pixels is greater than the preset threshold, it is determined that the cable has red insulating tape, which is normal; otherwise, proceed to the next step;

[0020] A morphological closing operation is performed on the exposed cable part to remove noise points, and the number of pixels in the exposed part is further calculated. If the number of pixels of the exposed cable is less than the preset threshold, it is considered that the cable has no exposed part or the exposed part does not meet the size requirement, and the size of the black protective layer of the cable is judged to meet the requirement; if the number of pixels of the exposed cable is greater than the preset threshold, the minimum bounding rectangle of the exposed cable part is further calculated, and whether the size of the black protective layer of the cable is normal is determined based on the minimum bounding rectangle.

[0021] Preferably, performing morphological operations on the segmented red insulating tape includes the following steps:

[0022] Perform image morphological opening operation on the segmented red insulating tape part to remove the noise in the image and smooth the outline of the cable; then perform image morphological closing operation on the processed image. First, dilate the image, use the 3*3 template B to perform convolution calculation with image A, obtain the minimum value of the pixel points in the area covered by template B, and use the minimum value to replace the pixel value of the reference point;

[0023] Dilate image A, perform convolution calculation on template B and image A, scan each pixel in the image, and perform “AND” operation between template elements and binary image elements;

[0024] The number of pixels of the red tape insulator is further determined. If it is greater than a preset threshold, it is determined that the cable has red insulating tape and the cable is normal.

[0025] Preferably, judging whether the size of the black protective layer of the cable is normal according to the minimum circumscribed rectangular frame comprises the following steps:

[0026] Calculate the minimum circumscribed rectangular frame of the exposed cable part to obtain the long side and short side of the rectangular frame of the exposed cable;

[0027] Calculate the minimum circumscribed rectangular frame of the black protection layer to obtain the long side and short side of the rectangular frame of the black protection layer;

[0028] Further judgment:

[0029] If the long side of the exposed cable rectangle is smaller than the short side of the black protective layer rectangle, the cable protective layer size is considered to meet the requirements;

[0030] If the longer side of the exposed cable rectangle is larger than the shorter side of the black protective layer rectangle, the cable protective layer is considered to exceed the requirement.

[0031] Preferably, the circumscribed minimum rectangular frame is obtained by the following method, comprising the following steps:

[0032] Calculate the initial circumscribed rectangle A of the exposed cable area and record the area S of the rectangle;

[0033] The rotation formula is used to calculate the point cluster of the exposed area of ​​the cable at an angle θ; the external matrix frame of the point cluster after rotation is calculated, the area of ​​the matrix frame is calculated and compared with the area S, and the smaller area is assigned to S min ;

[0034] Take angle β as the step size until the point cluster is rotated to 90 degrees, loop to calculate the area of ​​the rectangular box and update S min ;

[0035] Get the minimum enclosing rectangle area S min The corresponding rotation angle is α; the initial circumscribed rectangle A is rotated back by an angle of α to obtain the minimum circumscribed rectangle.

[0036] The point cluster rotation formula is as follows:

[0037] x=xcos(θ)-ysin(θ)

[0038] y=xsin(θ)+ycos(θ)

[0039] θ=θ+β

[0040] Among them, (x, y) is the pixel coordinate of the point in the cluster, the initial value of the angle θ is 0, and the angle step β is set to 1 degree.

[0041] The beneficial effects of the present invention are as follows: A cable process quality dynamic defect detection method based on deep learning is based on deep learning technology, has good generalization ability and robustness, and according to data enhancement technology, can effectively save sample collection time and labeling time, and save labor costs; by identifying the cable status online in real time and accurately, the detection and identification efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is a method flow chart of a method for dynamic defect detection of cable process quality based on deep learning of the present invention.

[0043] Figure 2 The present invention is a flow chart of a method for determining whether a cable is abnormal based on segmented cable features. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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.

[0045] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein.

[0046] It should be understood that in various embodiments of the present invention, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0047] It should be understood that in the present invention, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0048] It should be understood that in the present invention, "plurality" refers to two or more than two. "And / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.

[0049] It should be understood that in the present invention, "B corresponding to A", "B corresponding to A", "A corresponds to B" or "B corresponds to A" means that B is associated with A and B can be determined based on A. Determining B based on A does not mean determining B based only on A, but B can also be determined based on A and / or other information. A and B match when the similarity between A and B is greater than or equal to a preset threshold.

[0050] Depending on the context, "if" as used herein may be interpreted as "when" or "when" or "in response to determining" or "in response to detecting."

[0051] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0052] Example:

[0053] like Figure 1 As shown, a cable process quality dynamic defect detection method based on deep learning includes the following steps:

[0054] Step S1: Use a camera to obtain a picture to be detected to generate a picture data set, where the picture contains at least one cable to be detected (the source of the data set can also be a network source picture).

[0055] Step S2: Use the YOLOV5 target detection algorithm to detect the acquired image and identify the cables in the image; use the labelme tool to label the cables in the image.

[0056] Before marking the cables in the figure, the acquired image data set needs to be preprocessed, which includes removing some blurred, ghosting and targetless image data, compressing the image data to a specified pixel value, and adjusting the image rotation angle and chromatic aberration skewness.

[0057] In image analysis, the quality of the image directly affects the design of the recognition algorithm and the accuracy of the effect. Therefore, before image analysis (feature extraction, segmentation, matching and recognition, etc.), image preprocessing is required. The main purpose of image preprocessing is to eliminate irrelevant information in the image, restore useful real information, enhance the detectability of relevant information, and simplify the data to the maximum extent, thereby improving the reliability of feature extraction, image segmentation, matching and recognition.

[0058] The general preprocessing process is: grayscale -> geometric transformation -> image enhancement;

[0059] When processing color images, it is often necessary to process the three channels in sequence, which will take a lot of time. Therefore, in order to improve the processing speed of the entire application system, it is necessary to grayscale the color image to reduce the amount of data required to be processed;

[0060] In the RGB model, if R=G=B, the color represents a grayscale color, where the value of R=G=B is called the grayscale value. Therefore, each pixel of the grayscale image only needs one byte to store the grayscale value (also known as intensity value, brightness value), and the grayscale range is 0-255. There are generally four methods to grayscale color images: component method, maximum value method, average method, and weighted average method.

[0061] Among them, weighted average method: according to the importance and other indicators, the three components are weighted averaged with different weights. Since the human eye is most sensitive to green and least sensitive to blue, a more reasonable grayscale image can be obtained by weighted averaging the three components of RGB according to the following formula.

[0062] Geometric transformation: Image geometric transformation is also called image space transformation. It processes the acquired image through geometric transformations such as translation, transposition, mirroring, rotation, and scaling to correct the systematic error of the image acquisition system and the random error of the instrument position (imaging angle, perspective relationship, and even the lens itself). In addition, a grayscale interpolation algorithm is also required because the pixels of the output image may be mapped to non-integer coordinates of the input image when calculating according to this transformation relationship. Commonly used methods include nearest neighbor interpolation, bilinear interpolation, and bicubic interpolation.

[0063] Image enhancement: Enhance the useful information in the image. It can be a distortion process, and its purpose is to improve the visual effect of the image. For the application of a given image, it purposefully emphasizes the overall or local characteristics of the image, makes the originally unclear image clear or emphasizes certain features of interest, expands the difference between the features of different objects in the image, suppresses features of no interest, improves image quality, enriches the amount of information, strengthens image interpretation and recognition effects, and meets the needs of certain special analysis. Image enhancement can be divided into two categories: frequency domain method and spatial domain method.

[0064] Step S3, according to the position of the cable detection frame, the cable is cut out from the picture for inspection;

[0065] Step S4: Use the UNet segmentation network model to segment the cable features; the Mobilenet-V2 network is used as the backbone network of the UNet segmentation network model; the UNet segmentation network model includes an encoder and a decoder, wherein:

[0066] The encoder is responsible for feature extraction, downsampling the image four times, and ultimately reducing the size of the original image by 16 times, fully extracting and compressing the features of the original image;

[0067] The decoder is responsible for upsampling the image, upsampling the extracted features four times, and each upsampling is fused with the same scale as the number of channels corresponding to the encoder part, and finally the features are restored to the original image size, and the final result is the segmented image;

[0068] The captured cable images were preprocessed and uniformly changed to 640*320 size. The preprocessed images were used as input to the UNet segmentation network model. After downsampling and upsampling, a 640*320 size segmentation map was finally obtained. The segmentation network model can well extract the black protective layer, red insulating tape, and exposed cable parts of the cable, and has good robustness to interference factors such as image lighting and dust.

[0069] Step S5, judging whether the cable is abnormal according to the segmented cable characteristics; the cable characteristics include red insulating tape, black protective layer and exposed cable.

[0070] Step S5 includes the following steps:

[0071] S51, performing morphological operation on the red insulating tape part to determine the number of pixels of the red insulating tape. If the number of pixels is greater than a preset threshold, it is determined that the cable has red insulating tape, which is normal; otherwise, proceed to the next step;

[0072] S52, performing a morphological closing operation on the exposed cable part to remove noise points, and further calculating the number of pixels of the exposed part. If the number of pixels of the exposed cable is less than a preset threshold, it is considered that the cable has no exposed part or the exposed part does not meet the size requirement;

[0073] S53, judging whether the size of the black protective layer of the cable meets the requirements; if the number of pixels of the exposed cable is greater than the preset threshold, further calculating the minimum bounding rectangle of the exposed cable part, and judging whether the size of the black protective layer of the cable is normal according to the minimum bounding rectangle.

[0074] The morphological operation of the segmented red insulating tape includes the following steps:

[0075] Perform image morphological opening operation on the segmented red insulating tape part to remove the noise in the image and smooth the outline of the cable; then perform image morphological closing operation on the processed image. First, dilate the image, use the 3*3 template B to perform convolution calculation with image A, obtain the minimum value of the pixel points in the area covered by template B, and use the minimum value to replace the pixel value of the reference point;

[0076] Dilate image A, perform convolution calculation on template B and image A, scan each pixel in the image, and perform “AND” operation between template elements and binary image elements;

[0077] The number of pixels of the red tape insulator is further determined. If it is greater than a preset threshold, it is determined that the cable has red insulating tape and the cable is normal.

[0078] Judging whether the size of the black protective layer of the cable is normal based on the minimum external rectangular frame includes the following steps:

[0079] Calculate the minimum circumscribed rectangular frame of the exposed cable part to obtain the long side and short side of the rectangular frame of the exposed cable;

[0080] Calculate the minimum circumscribed rectangular frame of the black protection layer to obtain the long side and short side of the rectangular frame of the black protection layer;

[0081] Further judgment:

[0082] If the long side of the exposed cable rectangle is smaller than the short side of the black protective layer rectangle, the cable protective layer size is considered to meet the requirements;

[0083] If the longer side of the exposed cable rectangle is larger than the shorter side of the black protective layer rectangle, the cable protective layer is considered to exceed the requirement.

[0084] The minimum circumscribed rectangular frame is obtained by the following method, including the following steps:

[0085] Calculate the initial circumscribed rectangle A of the exposed cable area and record the area S of the rectangle;

[0086] The rotation formula is used to calculate the point cluster of the exposed area of ​​the cable at an angle θ; the external matrix frame of the point cluster after rotation is calculated, the area of ​​the matrix frame is calculated and compared with the area S, and the smaller area is assigned to S min ;

[0087] Take angle β as the step size until the point cluster is rotated to 90 degrees, loop to calculate the area of ​​the rectangular box and update S min ;

[0088] Get the minimum enclosing rectangle area S min The corresponding rotation angle is α; the initial circumscribed rectangle A is rotated back by an angle of α to obtain the minimum circumscribed rectangle.

[0089] The point cluster rotation formula is as follows:

[0090] x=xcos(θ)-ysin(θ)

[0091] y=xsin(θ)+ycos(θ)

[0092] θ=θ+β

[0093] Among them, (x, y) is the pixel coordinate of the point in the cluster, the initial value of the angle θ is 0, and the angle step β is set to 1 degree.

[0094] The specific implementation described above is a preferred implementation of a cable process quality dynamic defect detection method based on deep learning of the present invention, and is not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to this specific implementation. All equivalent changes made in accordance with the shape and structure of the present invention are within the protection scope of the present invention.

Claims

1. A cable process quality dynamic defect detection method based on deep learning, characterized by: The steps include: Step S1: Use a camera to obtain a picture to be detected to generate a picture data set, where the picture contains at least one cable to be detected; Step S2: Use the YOLOV5 target detection algorithm to detect the acquired image and identify the cables in the image; use the labelme tool to label the cables in the image; Step S3, according to the position of the cable detection frame, the cable is cut out from the picture for inspection; Step S4, using the UNet segmentation network model to segment the cable features; the Mobilenet-V2 network is used as the backbone network of the UNet segmentation network model; Step S5, judging whether the cable is abnormal according to the split cable characteristics; Step S5 includes the following steps: Perform morphological operations on the red insulating tape part to determine the number of pixels of the red insulating tape. If the number of pixels is greater than the preset threshold, it is determined that the cable has red insulating tape, which is normal; otherwise, proceed to the next step; Perform morphological closing operation on the exposed cable part to remove noise points, and further calculate the number of pixels in the exposed part. If the number of pixels of the exposed cable is less than the preset threshold, it is considered that the cable has no exposed part or the exposed part does not meet the size requirement, and judge whether the size of the black protective layer of the cable meets the requirement; if the number of pixels of the exposed cable is greater than the preset threshold, further calculate the minimum bounding rectangle of the exposed cable part, and judge whether the size of the black protective layer of the cable is normal according to the minimum bounding rectangle.

2. According to claim 1, a cable process quality dynamic defect detection method based on deep learning is characterized by: The cable features include red insulating tape, black protective layer and exposed wire.

3. According to a method for dynamic defect detection of cable process quality based on deep learning according to claim 1, it is characterized in that: The UNet segmentation network model consists of an encoder and a decoder, where: The encoder is used for feature extraction, downsampling the image four times, ultimately reducing the size of the original image by 16 times, and extracting and compressing the features in the original image; The decoder is used to upsample the image. The extracted features are upsampled four times. Each upsampling is fused with the same scale as the number of channels corresponding to the encoder part, and finally the features are restored to the original image size. The final result is the segmented image. The intercepted cable images are preprocessed and uniformly changed to m*n size, where m and n represent the pixel values ​​of the images. The preprocessed images are used as input to the UNet segmentation network model.

4. According to claim 2, a method for dynamic defect detection of cable process quality based on deep learning is characterized in that: The morphological operation of the segmented red insulating tape includes the following steps: Perform image morphological opening operation on the segmented red insulating tape part to remove noise in the image and smooth the outline of the cable; Then perform image morphological closing operation on the processed image.

5. The method for dynamic defect detection of cable process quality based on deep learning according to claim 4 is characterized in that: The image morphological closing operation on the processed image includes the following steps: Dilate the image, perform convolution calculation with the 3*3 template B, obtain the minimum value of the pixels in the area covered by template B, and use the minimum value to replace the pixel value of the reference point; Dilate the image, perform convolution calculation on the template B and the image, scan each pixel in the image, and perform AND operation between the template element and the binary image element; The number of pixels of the red tape insulator is further determined. If it is greater than a preset threshold, it is determined that the cable has red insulating tape and the cable is normal.

6. The cable process quality dynamic defect detection method based on deep learning according to claim 1 is characterized by: Judging whether the size of the black protective layer of the cable is normal based on the minimum external rectangular frame includes the following steps: Calculate the minimum circumscribed rectangular frame of the exposed cable part to obtain the long side and short side of the rectangular frame of the exposed cable; Calculate the minimum circumscribed rectangular frame of the black protection layer to obtain the long side and short side of the rectangular frame of the black protection layer; Whether the size of the cable protective layer meets the requirements is determined by comparing the long and short sides of the smallest rectangular frame surrounding the exposed cable part with the long and short sides of the smallest rectangular frame surrounding the black protective layer.

7. The method for dynamic defect detection of cable process quality based on deep learning according to claim 6 is characterized in that: If the long side of the exposed cable rectangle is smaller than the short side of the black protective layer rectangle, the cable protective layer size is considered to meet the requirements; If the longer side of the exposed cable rectangle is larger than the shorter side of the black protective layer rectangle, the cable protective layer is considered to exceed the requirement.

8. A cable process quality dynamic defect detection method based on deep learning according to claim 6 or 7, characterized in that: The minimum circumscribed rectangular frame is obtained by the following method, including the following steps: Calculate the initial circumscribed rectangle A of the exposed cable area and record the area S of the rectangle; Calculate the angle by the rotation formula Clusters of dots in the exposed area of ​​the rotating cable; Calculate the external matrix frame of the point cluster after rotation, calculate the area of ​​the matrix frame and compare it with the area S, and assign the smaller area to S min ; By angle is the step size until the point cluster is rotated to 90 degrees, and the area of ​​the rectangular box is calculated and updated S in a loop min ; Get the minimum enclosing rectangle area S min The corresponding rotation angle ; Reverse rotate the initial circumscribed rectangle A Angle, that is, to obtain the minimum enclosing rectangle.

9. The cable process quality dynamic defect detection method based on deep learning according to claim 8 is characterized by: The point cluster rotation formula is as follows: ; ; in, , is the pixel coordinate of the point in the cluster, and the angle The initial value is 0, and the angle step Set to 1 degree.

Citation Information

Patent Citations

  • Cable accessory fault database-based cable fault identification system

    CN110309221A

  • Underground cable fault detection method and device based on marked area

    CN110889357A

  • Power cable fault inspection system based on hidden risks

    CN113253062A

  • Defective insulator identification method based on YOLOv3 network and particle filter algorithm

    CN108961235A

  • Wire and cable defect detection system

    CN112179922A