A method, device and computer-readable storage medium for numbering porcelain insulator steel caps based on detection and segmentation

Through drone inspection image processing and deep learning detection segmentation model, the porcelain insulator and steel cap is identified, combined with the object detection algorithm to match the porcelain insulator mounting points, the intelligent automatic numbering of porcelain insulator steel caps is achieved, and the automatic in the existing technology is solved The problem of low numbering accuracy improves the analytical consistency of the temperature and voltage distribution of porcelain insulators.

CN118657763BActive Publication Date: 2024-11-05SHANDONG ZHIYANG ELECTRIC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411132122.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-05
Estimated Expiration
2044-08-19

AI Technical Summary

Technical Problem

In the prior art, the automatic numbering accuracy of porcelain insulator steel caps is low, making it difficult to accurately identify and position defective steel caps in complex environments, affecting the consistency analysis of the temperature and voltage distribution of porcelain insulators.

Method used

Using a method based on detection segmentation, the image processing of UAV patrols is used to identify porcelain insulators and steel caps using deep learning detection segmentation model, and the target detection algorithm is used to match the porcelain insulator mounting points to achieve intelligent matching of porcelain insulators and steel caps. and automatic numbering.

Benefits of technology

The automatic numbering accuracy of porcelain insulator steel caps is improved, and defective steel caps can be accurately identified and positioned in complex environments, ensuring the consistency of the temperature and voltage distribution of porcelain insulators, and supporting intelligent defect detection and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657763B_ABST
    Figure CN118657763B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of image analysis, and more specifically, relates to a method, device and computer-readable storage medium for numbering porcelain insulator steel caps based on detection and segmentation. The method includes obtaining a drone inspection image containing porcelain insulators; processing the drone inspection image through a segmentation algorithm and a model weight; identifying the position of the porcelain insulator mounting point in the drone inspection image through a target detection algorithm; matching the steel cap with the porcelain insulator; at the same time, matching the porcelain insulator mounting point with the porcelain insulator; determining the high-voltage end and the low-voltage end of the porcelain insulator according to the direction of the porcelain insulator mounting point on the porcelain insulator; performing consistency calculation according to the matching situation to obtain the direction of the high-voltage end and the low-voltage end of the porcelain insulator, and then starting numbering according to the high-voltage end or starting numbering according to the low-voltage end. The present invention solves the problem of the accuracy of the detection algorithm, which usually cannot guarantee completely accurate identification and realize the problem of automatic numbering of steel caps.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image analysis, and more specifically, relates to a porcelain insulator steel cap numbering method, device and computer-readable storage medium based on detection and segmentation. Background Art

[0002] In the power system, porcelain insulators are widely used insulating components. Porcelain insulator strings are important components in the process of erecting transmission lines. They mainly include two types: ceramic tension insulator strings and composite tension insulator strings. They can effectively isolate the live conductors from the ground and allow each wire to maintain its position.

[0003] Chinese invention patent CN114842367A discloses a method for identifying and segmenting infrared porcelain insulators and steel caps in a complex environment. First, the area where the porcelain insulator string is located is preliminarily identified, the range is narrowed, the interference of larger obstructions such as electric poles is removed, and an angle correction operation is performed to keep the porcelain insulator string horizontal; based on the preliminary identification, the area where the porcelain insulator string is located is accurately identified, the range is further narrowed, the positions of the two lateral end points of the porcelain insulator string are determined, and the interference of the wires and connectors connecting the two ends of the porcelain insulator string is removed; finally, according to the morphological characteristics of the porcelain insulator string, a segmentation algorithm is established, mathematical modeling is performed on the accurately identified porcelain insulator string, and the steel caps on the porcelain insulator string are segmented.

[0004] In summary, during operation, affected by environmental and internal factors, the performance gradually deteriorates, forming low-value or zero-value porcelain insulators. In a normal string of porcelain insulators, the temperature distribution follows the same voltage distribution law, presenting an asymmetric saddle shape. If the temperature of a steel cap (iron cap) in a porcelain insulator is higher than the normal porcelain insulator temperature, there may be a defect. Therefore, how to automatically number the steel caps of porcelain insulators according to the conductor / tower side can more conveniently determine the temperature distribution in subsequent defect diagnosis, and can quickly locate the position of the problematic steel cap. The accuracy of the detection algorithm in the prior art is low, and usually cannot guarantee completely accurate identification and automatic numbering of the steel caps. Summary of the invention

[0005] The present invention aims to overcome at least one defect of the above-mentioned prior art and provide a porcelain insulator steel cap numbering method based on detection and segmentation to solve the problem in the prior art. The purpose of the present invention is to number the steel caps of porcelain insulators in drone inspection images in a specific order (tower / conductor side), and the consistency of the voltage and temperature distribution of the porcelain insulator steel caps can be determined according to the steel cap numbering order, and the number and position of the steel cap can be quickly located when defects are detected, which is convenient for further porcelain insulator defect detection and analysis and serves as a prerequisite for intelligent porcelain insulator defect detection.

[0006] The detailed technical scheme of the present invention is as follows:

[0007] A method for numbering porcelain insulator steel caps based on detection and segmentation, the method comprising:

[0008] S1, obtaining a drone inspection image containing porcelain insulators;

[0009] S2. Processing the UAV inspection image by using a segmentation algorithm and a model weight, identifying porcelain insulators and steel caps in the UAV inspection image, and obtaining polygonal areas of porcelain insulators and steel caps;

[0010] S3, identifying the position of the porcelain insulator mounting point in the UAV inspection image by using a target detection algorithm, wherein the position of the porcelain insulator mounting point includes the tower mounting point position and the conductor mounting point position;

[0011] S4, matching the steel cap with the porcelain insulator, that is, whether the polygonal area position of the steel cap falls within the polygonal area position of the porcelain insulator;

[0012] At the same time, the porcelain insulator mounting point is matched with the porcelain insulator, that is, whether the position of the porcelain insulator mounting point falls within the polygonal area position of the porcelain insulator;

[0013] S5. According to the direction of the porcelain insulator mounting point on the porcelain insulator, determine the high-voltage end and the low-voltage end of the porcelain insulator, wherein the high-voltage end of the porcelain insulator is the porcelain insulator wire mounting point, and the low-voltage end of the porcelain insulator is the porcelain insulator tower mounting point;

[0014] S6. Count the number of pole tower mounting points and conductor mounting points at both ends of the porcelain insulator that match the porcelain insulator, perform consistency calculation based on the direction and quantity, obtain the direction of the high-voltage end and the low-voltage end of the porcelain insulator, and then start numbering from the high-voltage end or from the low-voltage end.

[0015] Furthermore, matching the steel cap with the porcelain insulator specifically includes:

[0016] S41, preprocessing the porcelain insulator polygonal region to obtain a mask image and contour points of the porcelain insulator, a mask image and contour points of the steel cap, wherein the contour points are a point set of the polygonal region contour, and the contour points can be connected in sequence to form a closed polygon;

[0017] S42, calculate the center point of each steel cap in the image according to the steel cap contour point information, denoted as , :

[0018] (1);

[0019] In formula (1), For the detected steel caps, for the i-th steel cap contour point set , n is the number of concentrated points of the i-th steel cap contour point, It represents the x-coordinate of the t-th contour point of the i-th steel cap contour point set. Represents the y coordinate of the tth contour point of the i-th steel cap contour point set;

[0020] S43, matching porcelain insulators and steel caps;

[0021] Calculate the center point of the steel cap , Whether it is in the polygonal area of ​​the porcelain insulator, if the center point of the steel cap is in the porcelain insulator, the porcelain insulator and the steel cap are matched; if not in the porcelain insulator, the information of the steel cap is ignored / deleted; finally, the matching information of the porcelain insulator and the steel cap is obtained.

[0022] Furthermore, for the segmentation model, each porcelain insulator corresponds to a mask image and a set of contour points. Generally, the mask image is a binary image with only two pixel values ​​of 1 and 0, representing presence or absence or representing white and black respectively. The specific steps of matching porcelain insulators and steel caps are as follows:

[0023] S431. Obtain the segmentation mask image of all porcelain insulators to , p is the number of segmentation mask patterns of porcelain insulators;

[0024] S432, obtain the center point coordinates of all steel cap segmentation mask images, where the center point coordinates of the i-th steel cap are , ;

[0025] S433, traverse all the steel cap center points and Matches if The x and y indices in the image pixel matrix are , If the pixel value of is 1, the center point of the i-th steel cap is matched with the first porcelain insulator; otherwise, no matching is performed;

[0026] S434, repeat S433 and traverse all porcelain insulator mask images to , until all the center points of the steel caps and the porcelain insulators are matched, and the matching relationship between all the steel caps and the porcelain insulators is obtained.

[0027] Furthermore, matching the porcelain insulator mounting point with the porcelain insulator specifically includes:

[0028] S44, obtaining the obtained porcelain insulator polygonal area and the porcelain insulator mounting point position;

[0029] S45. Calculate the rectangular frame position of the porcelain insulator mounting point, obtain the four-point coordinates of the rectangular frame, and record them as , , , ,in For the detected Mounting points; according to the image pixel coordinate system, For the The coordinate point of the upper left corner of the target frame of the porcelain insulator mounting point, For the The coordinate point of the lower right corner of the target frame of the porcelain insulator mounting point;

[0030] S46, matching porcelain insulators and porcelain insulator mounting points;

[0031] Calculate whether there is a porcelain insulator in the rectangular frame of the porcelain insulator mounting point. If there is a porcelain insulator, match the porcelain insulator and the porcelain insulator mounting point;

[0032] Among them, the area of ​​the porcelain insulator mounting point target frame is cropped out in the porcelain insulator segmentation mask map. If there is a pixel value of 1 in the cropped area, there is a porcelain insulator in the porcelain insulator mounting point target frame. At this time, the porcelain insulator mounting point is matched with the porcelain insulator; finally, the matching information of the porcelain insulator and the porcelain insulator mounting point is obtained.

[0033] Furthermore, the matching porcelain insulator and the porcelain insulator mounting point specifically include:

[0034] S461. Obtain the binary segmentation mask image of all porcelain insulators in the image to ;

[0035] S462, obtain the rectangular frame position coordinates of the porcelain insulator mounting point, the upper left point of the j-th porcelain insulator mounting point coordinates is , the lower right point is ;

[0036] S463, traverse all porcelain insulator hanging points and connect Matches if The x and y indices in the image pixel matrix are to If there is a pixel value of 1 in the range, the jth porcelain insulator hanging point is matched with the first porcelain insulator; otherwise, no matching is performed;

[0037] S464, repeat S463 and traverse all porcelain insulator mask images to , until all the porcelain insulator hanging points and porcelain insulators are matched, and the matching information of all the porcelain insulator hanging points and porcelain insulators is obtained.

[0038] Finally, the matching information between the porcelain insulator and the mounting point of the porcelain insulator, as well as the matching information between the porcelain insulator and the steel cap are obtained.

[0039] Furthermore, the S5 specifically includes:

[0040] S51. Calculate the center point of the porcelain insulator based on the contour point of the porcelain insulator ( , ), k is the kth porcelain insulator;

[0041] S52, according to the target frame position of the porcelain insulator mounting point, calculate the center point of the target frame of the porcelain insulator mounting point ( , );

[0042] S53. Calculate the positional relationship between the porcelain insulator mounting point and the porcelain insulator according to the direction and center point coordinates of the porcelain insulator:

[0043] If the porcelain insulator is a horizontal porcelain insulator, the two ends of the porcelain insulator are on the left and right. If the x coordinate of the center point of the porcelain insulator is Greater than the x coordinate of the center point of the porcelain insulator mounting point , then this mounting point is on the left side of the porcelain insulator; if the x coordinate of the center point of the porcelain insulator is Smaller than the center point x coordinate of the porcelain insulator mounting point , then this mounting point is on the right side of the porcelain insulator;

[0044] If the porcelain insulator is a vertical porcelain insulator, the two ends of the porcelain insulator are up and down, if the y coordinate of the center point of the porcelain insulator Greater than the y coordinate of the center point of the porcelain insulator mounting point , then this mounting point is on the upper side of the porcelain insulator; if the x coordinate of the center point of the porcelain insulator is Smaller than the center point x coordinate of the porcelain insulator mounting point , then this mounting point is on the lower side of the porcelain insulator.

[0045] Furthermore, the consistency calculation is performed according to the direction of the porcelain insulator and the number of matching pole tower mounting points or conductor mounting points:

[0046] If the number of conductor mounting points on a porcelain insulator in one direction is greater than the pole tower mounting points, the conductor mounting point in that direction is determined as the high-voltage end;

[0047] If the number of pole tower mounting points on the porcelain insulator in one direction is greater than the conductor mounting points, that direction is determined as the pole tower mounting point and is the low-voltage end.

[0048] If the number of pole tower mounting points on one direction of the porcelain insulator is equal to the number of conductor mounting points, it cannot be determined and the determination in the other direction shall prevail;

[0049] If both ends of the insulator cannot be identified as high or low voltage ends, or are both identified as high voltage ends, or are both identified as low voltage ends, the consistency calculation cannot determine the high or low voltage ends of the porcelain insulator, and an error is reported.

[0050] In another aspect of the present invention, a device for implementing a method for numbering porcelain insulator steel caps based on detection segmentation is provided, the device comprising:

[0051] at least one processor; and

[0052] A memory storing instructions, when the instructions are executed by the at least one processor, enables the at least one processor to execute the porcelain insulator steel cap numbering method based on detection segmentation as described above.

[0053] In another aspect of the present invention, a machine-readable storage medium is provided, which stores executable instructions, and when the instructions are executed, the machine executes the porcelain insulator steel cap numbering method based on detection segmentation as described above.

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

[0055] (1) The present invention proposes a porcelain insulator steel cap numbering method, device and computer-readable storage medium based on detection and segmentation, which uses a deep learning detection and segmentation model to identify porcelain insulators, steel caps and porcelain insulator mounting points to achieve intelligent identification; and uses a matching algorithm to match porcelain insulators, steel caps and porcelain insulator mounting points to achieve automatic numbering of steel caps.

[0056] (2) The present invention proposes a method, device and computer-readable storage medium for numbering porcelain insulator steel caps based on detection and segmentation. Even when there is obstruction or overlap between porcelain insulators, numbering can be performed in any direction on the conductor / tower side, thereby automatically and intelligently realizing the identification of the conductor / tower side of the porcelain insulator and the sequential numbering of the steel caps. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 The present invention is a flow chart of the porcelain insulator steel cap numbering method based on detection segmentation.

[0058] Figure 2 This is an inspection image of a UAV containing porcelain insulators in Example 1 of the present invention.

[0059] Figure 3 It is a schematic diagram of the segmentation mask of the porcelain insulator steel cap in Example 1 of the present invention.

[0060] Figure 4 It is a schematic diagram of porcelain insulator hanging point detection in Example 1 of the present invention.

[0061] Figure 5 It is a schematic diagram of the numbering of multiple strings of steel caps that are blocked between porcelain insulators in Example 1 of the present invention.

[0062] Figure 6 It is a schematic diagram of the numbering of the porcelain insulator steel caps from the conductor side in Example 1 of the present invention. DETAILED DESCRIPTION

[0063] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0064] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0065] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0066] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0067] Embodiment 1,

[0068] Ginseng Figure 1 This embodiment provides a method for numbering porcelain insulator steel caps based on detection and segmentation, the method comprising:

[0069] S1. Obtain the UAV inspection image containing porcelain insulators, such as Figure 2 shown.

[0070] S2, preprocessing the UAV inspection image;

[0071] The UAV inspection images are preprocessed by segmentation algorithm and model weights, the porcelain insulators and steel caps in the UAV inspection images are identified, and the polygonal area positions of the porcelain insulators and the steel caps are obtained.

[0072] The segmentation algorithm and model weights are established and trained in advance. Preferably, the YOLOv8 model is used. Specifically, the following are included:

[0073] (1) Data annotation of the pre-collected UAV inspection images used for training, mainly including the annotation of porcelain insulator segmentation area, porcelain insulator steel cap segmentation area, porcelain insulator tower mounting point, and porcelain insulator conductor mounting point;

[0074] (2) The marking of the mounting point of the porcelain insulator includes the connection points of the porcelain insulator such as the pole tower, conductor, and wire clamp, and also includes the part of the porcelain insulator connected to this mounting point. That is, the marking of the mounting point includes both the porcelain insulator area and the mounting point area such as the hardware or pole tower connected to the porcelain insulator;

[0075] (3) Use labeled data and drone inspection images to train the segmentation model (segmentation algorithm) and obtain model weights.

[0076] S3, identifying the location of the porcelain insulator mounting point in the UAV inspection image;

[0077] Identify the position of the porcelain insulator mounting point in the UAV inspection image by using a target detection algorithm, wherein the position of the porcelain insulator mounting point includes the tower mounting point position and the conductor mounting point position;

[0078] The mounting point of the porcelain insulator tower is the low-voltage end porcelain insulator mounting point, and the mounting point of the conductor is the high-voltage end porcelain insulator mounting point. Preferably, the image pixel coordinate system is used as the reference coordinate system.

[0079] S4, the matching of steel cap and porcelain insulator, and the matching of porcelain insulator mounting point and porcelain insulator;

[0080] Matching the steel cap with the porcelain insulator, that is, whether the polygonal area position of the steel cap falls within the polygonal area position of the porcelain insulator;

[0081] At the same time, the mounting point of the porcelain insulator is matched with the porcelain insulator, that is, whether the position of the mounting point of the porcelain insulator falls within the polygonal area position of the porcelain insulator.

[0082] Specifically, matching the steel cap with the porcelain insulator specifically includes:

[0083] S41. Preprocess the porcelain insulator polygonal region to obtain the mask image and contour points of the porcelain insulator, the mask image and contour points of the steel cap. The contour points are the point set of the polygonal region contour. The contour points can be connected in sequence to form a closed polygon. The mask image is the segmentation result image. Figure 3 As shown;

[0084] S42, calculate the center point of each steel cap in the image according to the steel cap contour point information, denoted as , :

[0085] (1);

[0086] In formula (1), For the detected steel caps, for the i-th steel cap contour point set , n is the number of concentrated points of the i-th steel cap contour point, It represents the x-coordinate of the t-th contour point of the i-th steel cap contour point set. Represents the y coordinate of the tth contour point of the i-th steel cap contour point set;

[0087] S43, matching porcelain insulators and steel caps.

[0088] Calculate the center point of the steel cap , Whether it is inside the porcelain insulator. If the center point of the steel cap is inside the porcelain insulator, match the porcelain insulator and the steel cap. If it is not inside the porcelain insulator, ignore / delete the information of the steel cap.

[0089] For the instance segmentation model, each porcelain insulator corresponds to a mask image and a contour point. Generally, the mask image is a binary image with only two pixel values ​​0 and 1, representing presence or absence, or white or black, respectively.

[0090] remember For the Binarized segmentation mask image of a porcelain insulator, ( , ) is the The center point coordinates of the steel caps, [ , ]for The median coordinate is , The specific steps of matching porcelain insulators and steel caps are as follows:

[0091] S431. Obtain the segmentation mask image of all porcelain insulators to , p is the number of porcelain insulator segmentation mask patterns;

[0092] S432, obtain the center point coordinates of all steel cap segmentation mask images, where the center point coordinates of the i-th steel cap are , ;

[0093] S433, traverse all the steel cap center points and Matches if The x and y indices in the image pixel matrix are , If the pixel value of is 1, the center point of the i-th steel cap is matched with the first porcelain insulator; otherwise, no matching is performed;

[0094] S434, repeat S433 and traverse all porcelain insulator mask images to , until all the center points of the steel caps and the porcelain insulators are matched, and the matching relationship between all the steel caps and the porcelain insulators is obtained.

[0095] Generally, a porcelain insulator is composed of multiple steel caps. After matching, each porcelain insulator There will be a corresponding relationship with multiple steel caps. If the first porcelain insulator has 3 steel caps that match the first, second, and third steel caps, then the center point of the steel cap corresponding to the first porcelain insulator is .

[0096] Specifically, matching the porcelain insulator mounting point with the porcelain insulator specifically includes:

[0097] S44, the obtained porcelain insulator polygonal area and the porcelain insulator mounting point position, the porcelain insulator mounting point position is as follows Figure 4 As shown, link clamp 0.83 means the confidence level of the porcelain insulator conductor mounting point is 0.83, and linktower 0.92 means the confidence level of the porcelain insulator tower mounting point is 0.92;

[0098] S45. Calculate the rectangular frame position of the porcelain insulator mounting point, obtain the four-point coordinates of the rectangular frame, and record them as , , , ,in For the detected Mounting points; according to the image pixel coordinate system, For the The coordinate point of the upper left corner of the target frame of the porcelain insulator mounting point, For the The coordinate point of the lower right corner of the target frame of the porcelain insulator mounting point;

[0099] S46, matching the porcelain insulator and the porcelain insulator mounting point; calculating whether there is a porcelain insulator in the rectangular frame of the porcelain insulator mounting point, and if there is a porcelain insulator, matching the porcelain insulator and the porcelain insulator mounting point;

[0100] The specific implementation method is: cut out the area of ​​the porcelain insulator mounting point target frame in the porcelain insulator segmentation mask map. If the cropped area has a pixel value of 1, there is a porcelain insulator in the porcelain insulator mounting point target frame. At this time, match the porcelain insulator mounting point with the porcelain insulator to obtain the matching information of the porcelain insulator and the porcelain insulator mounting point.

[0101] Specifically, the matching porcelain insulator and the porcelain insulator mounting point specifically include:

[0102] S461. Obtain the binary segmentation mask image of all porcelain insulators in the image to ;

[0103] S462, obtain the rectangular frame position coordinates of the porcelain insulator mounting point, the upper left point of the j-th porcelain insulator mounting point coordinates is , the lower right point is ;

[0104] S463, traverse all porcelain insulator hanging points and connect Matches. If The x and y indices in the image pixel matrix are to If there is a pixel value of 1 in the range, the jth porcelain insulator hanging point is matched with the first porcelain insulator; otherwise, no matching is performed;

[0105] S464, repeat S463 and traverse all porcelain insulator mask images to , until all the porcelain insulator hanging points and porcelain insulators are matched, and the matching information of all the porcelain insulator hanging points and porcelain insulators is obtained.

[0106] For example, In the image matrix, the pixel value of the porcelain insulator area is 1, and the pixel value of other areas is 0. In the corresponding range of x Range to y If there is a pixel value of 1 in the corresponding range, the first hanging point is matched with the first porcelain insulator; if there is no pixel value of 1 in the corresponding range, it is not matched. Then continue to judge the second porcelain insulator hanging point until all porcelain insulator hanging points are matched. By analogy, when the match with During matching, all porcelain insulator hanging points and porcelain insulators are matched.

[0107] Obtain the corresponding relationship between the porcelain insulator and the porcelain insulator mounting point after matching. Generally, one porcelain insulator matches two mounting points, one is the porcelain insulator tower mounting point, and the other is the porcelain insulator conductor mounting point. After the matching is completed, each porcelain insulator will have a corresponding relationship with multiple mounting points.

[0108] S5. Determine the high voltage end and low voltage end of the porcelain insulator;

[0109] According to the direction of the porcelain insulator mounting point on the porcelain insulator (the porcelain insulator mounting point is on the top / bottom / left / right side of the porcelain insulator), determine the high-voltage end and low-voltage end of the porcelain insulator, where the high-voltage end of the porcelain insulator is the porcelain insulator tower mounting point, and the low-voltage end of the porcelain insulator is the porcelain insulator tower mounting point;

[0110] First, determine whether the porcelain insulator is distributed vertically or horizontally according to its direction, and then match the mounting point position with the porcelain insulator to determine whether the mounting point is on the top / bottom or left / right side of the porcelain insulator.

[0111] The specific calculation steps are as follows:

[0112] S51. Calculate the center point of the porcelain insulator based on the contour point of the porcelain insulator ( , ), k is the kth porcelain insulator;

[0113] S52, according to the target frame position of the porcelain insulator mounting point, calculate the center point of the target frame of the porcelain insulator mounting point ( , );

[0114] S53. Calculate the positional relationship between the porcelain insulator mounting point and the porcelain insulator according to the direction and center point coordinates of the porcelain insulator:

[0115] If the porcelain insulator is a horizontal porcelain insulator, the two ends of the porcelain insulator are on the left and right. If the x coordinate of the center point of the porcelain insulator is Greater than the x coordinate of the center point of the porcelain insulator mounting point , then this mounting point is on the left side of the porcelain insulator; if the x coordinate of the center point of the porcelain insulator is Smaller than the center point x coordinate of the porcelain insulator mounting point , then this mounting point is on the right side of the porcelain insulator;

[0116] If the porcelain insulator is a vertical porcelain insulator, the two ends of the porcelain insulator are up and down, if the y coordinate of the center point of the porcelain insulator Greater than the y coordinate of the center point of the porcelain insulator mounting point , then this mounting point is on the upper side of the porcelain insulator; if the x coordinate of the center point of the porcelain insulator is Smaller than the center point x coordinate of the porcelain insulator mounting point , then this mounting point is on the lower side of the porcelain insulator.

[0117] Generally, porcelain insulators are insulating components with high-voltage and low-voltage ends respectively. The pole tower mounting point connects the porcelain insulator to the pole tower, which is the low-voltage end; the conductor mounting point connects the porcelain insulator to the live conductor, which is the high-voltage end. Due to the accuracy of the detection algorithm, completely accurate identification cannot usually be guaranteed, so there may be a situation where one direction of the porcelain insulator is not detected or two or more pole tower mounting points or conductor mounting points are detected.

[0118] S6. Number the steel caps according to the rules;

[0119] Count the number of pole tower mounting points and conductor mounting points at both ends of the porcelain insulator that match the porcelain insulator, perform consistency calculation based on the direction and quantity, get the direction of the high-voltage and low-voltage ends of the porcelain insulator, and number the steel caps starting from the high-voltage end or starting from the low-voltage end.

[0120] Specifically, the consistency calculation is performed based on the direction of the porcelain insulator and the number of matching pole tower mounting points or conductor mounting points:

[0121] If the number of conductor mounting points on a porcelain insulator in one direction is greater than the pole tower mounting points, the conductor mounting point in that direction is determined as the high-voltage end;

[0122] If the number of pole tower mounting points on the porcelain insulator in one direction is greater than the conductor mounting points, that direction is determined as the pole tower mounting point and is the low-voltage end.

[0123] If the number of pole tower mounting points on one direction of the porcelain insulator is equal to the number of conductor mounting points, it cannot be determined and the determination in the other direction shall prevail;

[0124] If both ends of the insulator cannot be identified as high or low voltage ends, or are both identified as high voltage ends, or are both identified as low voltage ends, the consistency calculation cannot determine the high or low voltage ends of the porcelain insulator, and an error is reported.

[0125] Preferably, Figure 6 As shown, the numbering is uniformly based on the high-voltage end as the starting end, that is, starting from the porcelain insulator steel cap from the conductor side, and numbered from bottom to top as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.

[0126] When the porcelain insulator is directly blocked, the numbering can also be completed according to the above method, such as Figure 3 As shown in the figure, when there is an obstruction between porcelain insulators, the segmentation algorithm and model weight can be used to preliminarily distinguish the obstruction. The matching calculation between steel cap and porcelain insulator and the matching calculation between porcelain insulator mounting point and porcelain insulator can further distinguish the obstruction. Finally, the consistency calculation is used to further improve the judgment of high and low voltage directions and the numbering of steel caps in the case of obstruction. The numbering of multiple strings of steel caps when there is an obstruction between porcelain insulators is shown in the figure. Figure 5 shown.

[0127] Example 2

[0128] This embodiment provides a device for implementing a method for numbering porcelain insulator steel caps based on detection and segmentation, the device comprising:

[0129] at least one processor; and

[0130] A memory storing instructions, when the instructions are executed by the at least one processor, enables the at least one processor to execute the porcelain insulator steel cap numbering method based on detection segmentation as described above.

[0131] In this embodiment, the device includes but is not limited to: personal computers, server computers, workstations, desktop computers, laptop computers, notebook computers, mobile computing devices, smart phones, tablet computers, cellular phones, personal digital assistants (PDAs), handheld devices, messaging devices, wearable computing devices, consumer electronic devices, etc.

[0132] Example 3

[0133] This embodiment also provides a computer-readable storage medium storing executable instructions, which, when executed, enable the machine to execute the porcelain insulator steel cap numbering method based on detection segmentation as described above.

[0134] Specifically, a system or device equipped with a readable storage medium can be provided, on which software program codes that implement the functions of any of the above-mentioned embodiments are stored, and a computer or processor of the system or device can read and execute instructions stored in the readable storage medium.

[0135] In this case, the program code itself read from the machine-readable medium can realize the function of any one of the above embodiments, and thus the machine-readable code and the machine-readable storage medium storing the machine-readable code constitute part of this specification.

[0136] Examples of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-RW), magnetic tapes, non-volatile memory cards, and ROMs. Optionally, the program code may be downloaded from a server computer or a cloud via a communication network.

[0137] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0138] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0139] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0141] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the technical solution of the present invention, and are not intended to limit the specific implementation methods of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the claims of the present invention shall be included in the protection scope of the claims of the present invention.

Claims

1. A method for numbering porcelain insulator steel caps based on detection and segmentation, characterized in that: The method comprises: S1, obtaining a drone inspection image containing porcelain insulators; S2. Preprocess the drone inspection image, identify the porcelain insulator and the steel cap in the drone inspection image, and obtain the polygonal area of ​​the porcelain insulator and the polygonal area of ​​the steel cap; S3, identifying the position of the porcelain insulator mounting point in the UAV inspection image by using a target detection algorithm, wherein the position of the porcelain insulator mounting point includes the tower mounting point position and the conductor mounting point position; S4, matching the steel cap with the porcelain insulator, that is, the polygonal area position of the steel cap falls within the polygonal area position of the porcelain insulator; At the same time, the porcelain insulator mounting point is matched with the porcelain insulator, that is, the position of the porcelain insulator mounting point falls within the polygonal area position of the porcelain insulator; S5. According to the direction of the porcelain insulator mounting point on the porcelain insulator, determine the high-voltage end and the low-voltage end of the porcelain insulator, wherein the high-voltage end of the porcelain insulator is the porcelain insulator wire mounting point, and the low-voltage end of the porcelain insulator is the porcelain insulator tower mounting point; S6. Count the number of pole tower mounting points and conductor mounting points at both ends of the porcelain insulator that match the porcelain insulator, perform consistency calculation based on the direction and quantity, obtain the direction of the high-voltage end and the low-voltage end of the porcelain insulator, and then start numbering from the high-voltage end or from the low-voltage end.

2. The method for numbering porcelain insulator steel caps based on detection and segmentation according to claim 1 is characterized in that: The matching of the steel cap and the porcelain insulator includes: S41, pre-processing the polygonal region of the porcelain insulator and the polygonal region of the steel cap respectively, obtaining a mask image and contour points of the porcelain insulator and a mask image and contour points of the steel cap, wherein the contour points are a point set of the contour of the polygonal region, and the contour points can be connected in sequence to form a closed polygon; S42, calculate the center point of each steel cap in the image according to the steel cap contour point information, denoted as , ; , The calculation is as follows: (1); In formula (1), For the detected steel caps, for the i-th steel cap contour point set , n is the number of concentrated points of the i-th steel cap contour point, It represents the x-coordinate of the t-th contour point of the i-th steel cap contour point set. Represents the y coordinate of the tth contour point of the i-th steel cap contour point set; S43, Matching porcelain insulators and steel caps: Calculating the center point of the steel cap , Whether it is in the polygonal area of ​​the porcelain insulator; If the center point of the steel cap is inside the porcelain insulator, the porcelain insulator and the steel cap are matched; if it is not inside the porcelain insulator, the information of the steel cap is ignored / deleted; Finally, the matching information of porcelain insulators and steel caps is obtained.

3. The method for numbering porcelain insulator steel caps based on detection and segmentation according to claim 2 is characterized in that: The S43 specifically includes: S431. Obtain the segmentation mask image of all porcelain insulators to , p is the number of porcelain insulator segmentation mask images, the mask image is a binary image, including two pixel values ​​1 and 0, representing presence and absence, or representing white and black respectively; S432, obtain the center point coordinates of all steel cap segmentation mask images, where the center point coordinates of the i-th steel cap are , ; S433, traverse all the steel cap center points and Matches if The x and y indices in the image pixel matrix are , If the pixel value of is 1, the center point of the i-th steel cap is matched with the first porcelain insulator; otherwise, no matching is performed; S434, repeat S433 and traverse all porcelain insulator mask images to , until all the center points of the steel caps and the porcelain insulators are matched, and the matching relationship between all the steel caps and the porcelain insulators is obtained.

4. The method for numbering porcelain insulator steel caps based on detection and segmentation according to claim 1 is characterized in that: The matching of the porcelain insulator mounting point and the porcelain insulator specifically includes: S44, obtaining the obtained porcelain insulator polygonal area and the porcelain insulator mounting point position; S45. Calculate the rectangular frame position of the porcelain insulator mounting point, obtain the four-point coordinates of the rectangular frame, and record them as , , , ,in For the detected Mounting points; according to the image pixel coordinate system, For the The coordinate point of the upper left corner of the target frame of the porcelain insulator mounting point, For the The coordinate point of the lower right corner of the target frame of the porcelain insulator mounting point; S46, matching porcelain insulators and porcelain insulator mounting points; Calculate whether there is a porcelain insulator in the rectangular frame of the porcelain insulator mounting point. If there is a porcelain insulator, match the porcelain insulator and the porcelain insulator mounting point.

5. The method for numbering porcelain insulator steel caps based on detection and segmentation according to claim 3 is characterized in that: The matching porcelain insulator and the porcelain insulator mounting point specifically include: S461. Get the segmentation mask image of all porcelain insulators to ; S462, obtain the rectangular frame position coordinates of the porcelain insulator mounting point, the upper left point of the j-th porcelain insulator mounting point coordinates is , the lower right point is ; S463, traverse all porcelain insulator hanging points and connect Matches if The x and y indices in the image pixel matrix are to If there is a pixel value of 1 in the range, the jth porcelain insulator hanging point is matched with the first porcelain insulator; otherwise, no matching is performed; S464, repeat S463 and traverse all porcelain insulator mask images to , until all the porcelain insulator hanging points and porcelain insulators are matched, and the matching information of all the porcelain insulator hanging points and porcelain insulators is obtained.

6. The method for numbering porcelain insulator steel caps based on detection and segmentation according to claim 3 is characterized in that: The S5 specifically includes: S51. Calculate the center point of the porcelain insulator based on the contour point of the porcelain insulator ( , ), k is the kth porcelain insulator; S52, according to the target frame position of the porcelain insulator mounting point, calculate the center point of the target frame of the porcelain insulator mounting point ( , ); S53. Calculate the positional relationship between the porcelain insulator mounting point and the porcelain insulator according to the direction and center point coordinates of the porcelain insulator: If the porcelain insulator is a horizontal porcelain insulator, the two ends of the porcelain insulator are on the left and right. If the x coordinate of the center point of the porcelain insulator is Greater than the x coordinate of the center point of the porcelain insulator mounting point , then this mounting point is on the left side of the porcelain insulator; if the x coordinate of the center point of the porcelain insulator is Smaller than the center point x coordinate of the porcelain insulator mounting point , then this mounting point is on the right side of the porcelain insulator; If the porcelain insulator is a vertical porcelain insulator, the two ends of the porcelain insulator are up and down, if the y coordinate of the center point of the porcelain insulator Greater than the y coordinate of the center point of the porcelain insulator mounting point , then this mounting point is on the upper side of the porcelain insulator; if the x coordinate of the center point of the porcelain insulator is Smaller than the center point x coordinate of the porcelain insulator mounting point , then this mounting point is on the lower side of the porcelain insulator.

7. The method for numbering porcelain insulator steel caps based on detection and segmentation according to claim 3 is characterized in that: The consistency calculation is performed based on the direction of the porcelain insulator and the number of matching pole tower mounting points or conductor mounting points: If the number of conductor mounting points on a porcelain insulator in one direction is greater than the pole tower mounting points, the conductor mounting point in that direction is determined as the high-voltage end; If the number of pole tower mounting points on a porcelain insulator in one direction is greater than the conductor mounting points, the pole tower mounting point in that direction is determined as the low-voltage end; If the number of pole tower mounting points on one direction of the porcelain insulator is equal to the number of conductor mounting points, it cannot be determined and the determination in the other direction shall prevail; If both ends of the insulator cannot be identified as high or low voltage ends, or are both identified as high voltage ends, or are both identified as low voltage ends, the consistency calculation cannot determine the high or low voltage ends of the porcelain insulator, and an error is reported.

8. A device for numbering porcelain insulator steel caps based on detection segmentation, characterized in that: The device comprises: processor; a memory having stored thereon a computer program executable on the processor; Wherein, when the computer program is executed by the processor, the steps of the porcelain insulator steel cap numbering method based on detection segmentation as described in any one of claims 1 to 7 are implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.