Substation equipment image intelligent discrimination method and device

By performing image enhancement and background removal on images of substation equipment, combined with a variety of image processing technologies, accurate readings and status judgments of meters and switchgear equipment are achieved, which solves the problem of inaccurate equipment readings and inaccurate status judgments in the existing technology. Accurate questions improve maintenance efficiency.

CN118537614APending Publication Date: 2024-08-23GUANGDONG POWER GRID CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410459290.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-17
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing image enhancement technology and meter status recognition technology cannot fully meet the reading accuracy requirements of substation equipment when dealing with blurred images, dim light, and cluttered backgrounds. In particular, the status judgment of different types of knife gate equipment is inaccurate. , and there is a lack of unified labeling standards.

Method used

By performing image enhancement adjustment and background removal on the meter and knife gate images of substation equipment, combined with secondary template matching, Hough circle detection, rotating analog pointer method, HSV color recognition and other technologies, the meter readings and knife gate analysis are realized. Accurate judgment of joint status.

Benefits of technology

It improves the maintenance efficiency of substation equipment, provides more accurate and reliable equipment status information, and solves the accuracy problems of image segmentation and status recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537614A
    Figure CN118537614A
Patent Text Reader

Abstract

The invention discloses a transformer substation equipment image intelligent discrimination method and device, and the method comprises the steps: obtaining a meter image and a knife switch image of a to-be-detected transformer substation, carrying out the image enhancement adjustment and background removal of the meter image and the knife switch image, obtaining a meter enhanced image and a knife switch enhanced image, segmenting the meter enhanced image, and carrying out the segmentation of the knife switch enhanced image. Performing target detection and segmentation on the knife-switch enhanced image to obtain a knife-switch equipment segmentation result, judging the on-off state of the knife-switch according to the knife-switch equipment segmentation result to obtain an on-off state judgment result, and determining the on-off state of the knife-switch according to the on-off state judgment result. According to the method, more accurate and reliable equipment state information is provided for operation and maintenance of the transformer substation through intelligent analysis and judgment of the transformer substation equipment image, so that the equipment state of the to-be-detected transformer substation can be judged by personnel according to the meter reading, the knife switch state recognition result and the on-off state judgment result. And the maintenance efficiency of substation equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart grid technology, and in particular to a method and device for intelligently distinguishing images of substation equipment. Background Art

[0002] At present, in the meter status recognition technology based on refined segmentation, first of all, for images with quality problems such as blurred images, dim light, and cluttered backgrounds, the existing image enhancement technology cannot fully meet the requirements. The current method mainly improves the robustness of model recognition by enhancing the color contrast in the image and removing noise, but there are still some limitations. In addition, the existing image segmentation technology still cannot completely eliminate the influence of the background when performing pixel-level segmentation on the dial and pointer in the meter, which leads to low reading accuracy of meters such as barometers, main transformer oil temperature meters, main transformer oil pillow oil level meters, and on-load voltage regulators. Moreover, in terms of the knife switch status recognition technology based on connected areas, the current target detection and semantic segmentation technology can realize the regional positioning and segmentation of equipment such as knife switches and split-and-close indicators, but there are inaccurate problems in the status switch judgment of different types of equipment such as 22-type knife switches, 16-type knife switches, circular split-and-close indicators, pointer-type split-and-close indicators, and card-type split-and-close indicators. There is currently a lack of unified standards and guidance for the annotation specifications of target detection data of key equipment in substations. Summary of the invention

[0003] In order to solve the above technical problems, an embodiment of the present invention provides a method and device for intelligently distinguishing substation equipment images, which obtains substation equipment status information by intelligently analyzing and distinguishing substation equipment images, thereby improving the maintenance efficiency of substation equipment.

[0004] A first aspect of an embodiment of the present invention provides a method for intelligently identifying substation equipment images, the method comprising:

[0005] Acquire the meter image and the switch image of the substation to be inspected, perform image enhancement adjustment and background removal on the meter image and the switch image, and obtain the meter enhanced image and the switch enhanced image;

[0006] Segment the meter enhanced image to obtain the dial segmentation result and the pointer segmentation result, and obtain the meter reading of the substation to be detected according to the dial segmentation result and the pointer segmentation result;

[0007] The switch enhanced image is subjected to target detection and segmentation to obtain the switch equipment segmentation result. The switch opening and closing state is judged according to the switch equipment segmentation result to obtain the opening and closing state judgment result, so that personnel can judge the equipment state of the substation to be inspected according to the meter reading, switch state recognition result and opening and closing state judgment result.

[0008] In a possible implementation of the first aspect, performing image enhancement adjustment and background removal on the meter image and the knife switch image to obtain the meter enhanced image and the knife switch enhanced image includes:

[0009] Performing contrast enhancement and grayscale conversion on the meter image and the knife switch image to obtain a meter image and a knife switch image with enhanced contrast;

[0010] Performing brightness enhancement on the meter image and the knife switch image with improved contrast to obtain the meter image and the knife switch image with enhanced brightness;

[0011] The meter image and the knife switch image after brightness enhancement are subjected to edge enhancement and background removal to obtain a meter enhanced image and a knife switch enhanced image.

[0012] In a possible implementation manner of the first aspect, segmenting the meter enhanced image to obtain a dial segmentation result and a pointer segmentation result includes:

[0013] Locate the dial of the meter enhanced image and determine the position of the dial through the secondary template matching method;

[0014] According to the position of the dial, the Hough circle detection method is used to crop the dial to obtain the dial segmentation result;

[0015] The dial segmentation result is binarized to obtain the pointer segmentation result.

[0016] In a possible implementation of the first aspect, obtaining a meter reading of the substation to be detected according to the dial segmentation result and the pointer segmentation result includes:

[0017] According to the pointer segmentation results and the dial segmentation results, the rotating simulated pointer method is used to simulate the overlap calculation of the pointer and the dial to determine the pointer angle;

[0018] The blank area in the dial is judged by the rotating analog pointer method to obtain the position of the zero scale line. According to the angle of the pointer and the position of the zero scale line, the meter reading of the substation to be tested is calculated by the proportional method.

[0019] In a possible implementation of the first aspect, performing target detection and segmentation on the knife switch enhanced image to obtain a knife switch device segmentation result includes:

[0020] Using the backbone feature extraction network to extract features from the knife switch enhanced image, a first feature image is obtained;

[0021] After performing a preset number of convolution layers on the first feature image, an RPN operation is added to generate a region of interest, and then target detection is performed to obtain a second feature image;

[0022] After convolving the second feature image, a knife switch device recognition result is obtained;

[0023] The knife switch device recognition result is semantically segmented to obtain the knife switch device segmentation result, wherein the knife switch device segmentation result includes the knife switch segmentation result and the opening and closing indication device segmentation result.

[0024] In a possible implementation of the first aspect, judging the on / off state of the knife switch according to the segmentation result of the knife switch device to obtain the on / off state judgment result includes:

[0025] The HSV color recognition method is used to identify the segmentation results of the split-and-close indicator device, determine the position of the split-and-close plate, set the HSV coefficient according to the color of the split-and-close plate, perform HSV color recognition on the segmentation results of the split-and-close indicator device, and obtain a binary image;

[0026] After Gaussian blur and opening operations are performed on the binary image, the denoised binary image is obtained;

[0027] The HSV value of the pixel points in the "joint" part of the denoised binary image is set to red, and the HSV value of the pixel points in the "separated" part is set to green, and the parts with red and green pixels are extracted to obtain a new binary image;

[0028] Calculate the distance between each white pixel point in the new binary image and the four corners of the splitting and combining plate to obtain the endpoint distance, take the white pixel points whose endpoint distance is less than the first preset distance as the endpoints of the splitting and combining plate, extract and correct the splitting and combining indication device segmentation result by perspective transformation, obtain a new splitting and combining plate image, use the HSV image to identify the new splitting and combining plate image, and obtain the yellow arrow binary image in the new splitting and combining plate image;

[0029] Traverse the pixel points and calculate the number of white pixels in the yellow arrow binary image and the new binary image. If the number of white pixels in the "closed" part is greater than the threshold, it is judged to be in a closed state. If the number of white pixels in the "separated" part is less than the threshold, it is judged to be in a separated state. If the two are equal, it is judged to be an uncertain state.

[0030] In a possible implementation manner of the first aspect, calculating the distance between each white pixel point in the new binary image and the four corners of the split plate further includes:

[0031] If there are defects at the four corners of the split-and-close plate, the segmentation result of the split-and-close indicator device is converted into a grayscale image, and the grayscale image is subjected to canny edge detection to extract all edges, thereby obtaining multiple edges;

[0032] Using Hough straight line transform, edges with edge lengths greater than a preset length are fitted into straight lines to obtain multiple straight lines;

[0033] A plurality of side lines are obtained according to the positional relationship of the straight lines, and each side line is extended to obtain a plurality of intersection points, and the intersection points are determined as the corners of the split plate.

[0034] A second aspect of an embodiment of the present invention provides a device for intelligently identifying substation equipment images, the device comprising:

[0035] An acquisition module is used to acquire a meter image and a switch image of the substation to be detected, and perform image enhancement adjustment and background removal on the meter image and the switch image to obtain a meter enhanced image and a switch enhanced image;

[0036] A segmentation module is used to segment the meter enhanced image to obtain a dial segmentation result and a pointer segmentation result, and obtain the meter reading of the substation to be detected according to the dial segmentation result and the pointer segmentation result;

[0037] The judgment module is used to detect and segment the knife switch enhanced image, obtain the knife switch equipment segmentation result, judge the opening and closing state of the knife switch according to the knife switch equipment segmentation result, and obtain the opening and closing state judgment result, so that personnel can judge the equipment status of the substation to be inspected according to the meter reading, the knife switch state recognition result and the opening and closing state judgment result.

[0038] In a possible implementation manner of the second aspect, the acquisition module includes a contrast enhancement unit, a brightness enhancement unit, and a background removal unit.

[0039] The contrast enhancement unit is used to enhance the contrast and grayscale conversion of the meter image and the knife switch image to obtain the meter image and the knife switch image with enhanced contrast;

[0040] The brightness enhancement unit is used to enhance the brightness of the meter image and the knife switch image with improved contrast, so as to obtain the meter image and the knife switch image after brightness enhancement;

[0041] The background removal unit is used to perform edge enhancement and background removal on the meter image and the knife switch image after brightness enhancement to obtain a meter enhanced image and a knife switch enhanced image.

[0042] In a possible implementation manner of the second aspect, the segmentation module includes a positioning unit, a cropping unit, and a binarization processing unit.

[0043] The positioning unit is used to locate the dial of the meter enhanced image and determine the dial position by a secondary template matching method;

[0044] The cutting unit is used to cut the dial according to the position of the dial and obtain the dial segmentation result by using the Hough circle detection method;

[0045] The binarization processing unit is used to perform binarization processing on the dial segmentation result to obtain the pointer segmentation result.

[0046] The present invention obtains meter images and knife switch images of the substation to be detected, performs image enhancement adjustment and background removal on the meter images and knife switch images, obtains meter enhanced images and knife switch enhanced images, then segments the meter enhanced images to obtain dial segmentation results and pointer segmentation results, then obtains meter readings of the substation to be detected according to the dial segmentation results and the pointer segmentation results, then performs target detection and segmentation on the knife switch enhanced images to obtain knife switch equipment segmentation results, judges the on-off state of the knife switch according to the knife switch equipment segmentation results, and obtains on-off state judgment results, so that personnel can judge the equipment state of the substation to be detected according to the meter readings, knife switch state recognition results and on-off state judgment results. The method provides more accurate and reliable equipment state information for substation operation and maintenance by performing intelligent analysis and judgment on substation equipment images, thereby improving the maintenance efficiency of substation equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 : A discrimination flow chart of an embodiment of the method for intelligent discrimination of substation equipment images provided by the present invention;

[0048] Figure 2 : A device block diagram of an embodiment of the substation equipment image intelligent identification method provided by the present invention. DETAILED DESCRIPTION

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

[0050] Please refer to Figure 1 , which is a flow chart of an embodiment of a method for intelligently distinguishing substation equipment images provided by an embodiment of the present invention, including steps S101 to S103, each of which is specifically as follows:

[0051] S101, obtaining a meter image and a switch image of a substation to be inspected, performing image enhancement adjustment and background removal on the meter image and the switch image, and obtaining a meter enhanced image and a switch enhanced image.

[0052] In this embodiment, various cameras are used to shoot at the substation to be inspected to obtain the meter image, switch image and opening and closing indication device segmentation results of the substation to be inspected, and then the image enhancement technology is used to perform image enhancement adjustment and background removal on the meter image and switch image to improve the contrast of the meter image and remove the noise in the image to obtain the meter enhanced image and the switch enhanced image.

[0053] In some embodiments, step S101 includes but is not limited to the following steps:

[0054] Performing contrast enhancement and grayscale conversion on the meter image and the knife switch image to obtain a meter image and a knife switch image with enhanced contrast;

[0055] Performing brightness enhancement on the meter image and the knife switch image with improved contrast to obtain the meter image and the knife switch image with enhanced brightness;

[0056] The meter image and the knife switch image after brightness enhancement are subjected to edge enhancement and background removal to obtain a meter enhanced image and a knife switch enhanced image.

[0057] Specifically, a contrast enhancement unit is performed on the meter image and the knife switch image to improve the contrast of the image so that the key parts of the dial, pointer and knife switch in the image are more clearly visible, and then the grayscale distribution of the image is adjusted, and then the illumination correction algorithm is applied to enhance the brightness of the image and adjust the brightness distribution of the image.

[0058] After adjusting the brightness of the image, image sharpening technology is used to improve the clarity of the image. Image sharpening technology includes high-pass filtering and edge enhancement techniques to highlight the edge information of the image.

[0059] Then, background removal technology is used to separate key parts such as the dial and pointer from the complex background. Background removal technology can use threshold-based segmentation or edge detection-based segmentation. Threshold-based segmentation is specifically as follows: by extracting the specific color range of the dial and pointer, find the corresponding pixels in the image, use color space conversion, such as converting the image to HSV or Lab color space, and set a threshold to select the color area. If the dial and pointer have specific texture features, such as scale lines, numbers, etc., use texture analysis methods for segmentation. If the dial and pointer have specific shape features, such as a circle or pointer shape, use a shape detection algorithm for segmentation.

[0060] The specific segmentation based on edge detection is as follows: the edge information of the dial and the pointer is extracted through the edge detection algorithm. The edge is the boundary between the object and the background. The key part can be separated by detecting the edge.

[0061] S102, segmenting the meter enhanced image to obtain a dial segmentation result and a pointer segmentation result, and obtaining the meter reading of the substation to be detected according to the dial segmentation result and the pointer segmentation result.

[0062] In this embodiment, after obtaining the enhanced image of the meter, the dial is located, and then the position of the pressure instrument in the image is accurately located by the secondary template matching method, and then the dial image is further cropped using the Hough circle detection method to remove the redundant background part, that is, the dial segmentation result is obtained, and then the cropped dial image is binarized to obtain the pointer segmentation result. Then, the dial segmentation result and the pointer segmentation result are used to obtain the meter reading of the substation to be detected.

[0063] In some embodiments, step S102 includes but is not limited to the following steps:

[0064] Locate the dial of the meter enhanced image and determine the position of the dial through the secondary template matching method;

[0065] According to the position of the dial, the Hough circle detection method is used to crop the dial to obtain the dial segmentation result;

[0066] The dial segmentation result is binarized to obtain the pointer segmentation result.

[0067] Specifically, the meter image is converted into a grayscale image to reduce color information and retain details, and then the grayscale image is preprocessed to obtain the meter enhanced image, and then the position of the pressure instrument in the meter image is accurately located by the secondary template matching method. The specific method is: use the pre-prepared dial template to find the matching position in the meter image and accurately locate the position of the pressure instrument in the image.

[0068] After secondary template matching, the Hough circle detection method is used to identify the circular outline of the dial, and it is cropped according to its position and radius to obtain the dial image and remove the redundant background. Then, the K-means binarization method is used to convert the grayscale image into a black and white binary dial image to highlight the black outline of the pointer and obtain the pointer segmentation result.

[0069] In some embodiments, step S102 includes but is not limited to the following steps:

[0070] According to the pointer segmentation results and the dial segmentation results, the rotating simulated pointer method is used to simulate the overlap calculation of the pointer and the dial to determine the pointer angle;

[0071] The blank area in the dial is judged by the rotating analog pointer method to obtain the position of the zero scale line. According to the angle of the pointer and the position of the zero scale line, the meter reading of the substation to be tested is calculated by the proportional method.

[0072] Specifically, after obtaining the dial segmentation results and the pointer segmentation results, the rotating simulated pointer method is first used to simulate the pointer and the dial, and then the overlap calculation is performed to determine the angle of the pointer position. Specifically, firstly, according to the predefined pointer shape and the center point of the dial, a series of pointer images at different angles are simulated and generated, and then these simulated pointer images are compared pixel by pixel with the binary dial image after binarization to find the best matching angle, that is, the position angle of the pointer is obtained.

[0073] The rotating analog pointer method is then used to determine the blank area and locate the position of the zero scale line. Specifically, in the dial image, the zero scale line is usually an area without any scales or numbers. By overlapping the analog pointer and the dial, the area not covered by the pointer is found to determine the position of the zero scale line.

[0074] The final pointer reading is calculated using the proportional method based on the pointer angle and the zero scale line angle. For example, if the angle between the pointer and the zero scale line is 10 degrees, and the angle between the pointer and the maximum scale line is 80 degrees, then the rotation angle range C = 80-10 = 70 degrees. According to the proportional relationship, the angle corresponding to each unit scale is 70 / 100 = 0.7 degrees. If the pointer is 30 degrees relative to the zero scale line, the pointer reading is (30-10) / 0.7 = 20 / 0.7 = 28.57. Therefore, the pointer reading is 28.57.

[0075] S103, performing target detection and segmentation on the knife switch enhanced image to obtain the knife switch equipment segmentation result, judging the on / off state of the knife switch according to the knife switch equipment segmentation result, and obtaining the on / off state judgment result, so that personnel can judge the equipment state of the substation to be inspected according to the meter reading, the knife switch state recognition result and the on / off state judgment result.

[0076] In this embodiment, a deep learning-based target detection network is trained using a labeled data set to obtain a preset target detection network. The preset target detection network is used to perform target detection on the knife switch enhanced image to obtain the positions of different devices in the knife switch image, and then semantic segmentation is performed on each device. After obtaining the regional position and pixel-level segmentation results of the knife switch and the separation and combination indication device, the state switch judgment is performed according to the state characteristics of the specific device type. The card-type separation and combination indication judges the separation and combination state by identifying the text or icon on the card, and the pointer-type separation and combination indication judges the separation and combination state by identifying the angle or position of the pointer.

[0077] In some embodiments, step S103 includes but is not limited to the following steps:

[0078] Using the backbone feature extraction network to extract features from the knife switch enhanced image, a first feature image is obtained;

[0079] After performing a preset number of convolution layers on the first feature image, an RPN operation is added to generate a region of interest, and then target detection is performed to obtain a second feature image;

[0080] After convolving the second feature image, a knife switch device recognition result is obtained;

[0081] The knife switch device recognition result is semantically segmented to obtain the knife switch device segmentation result, wherein the knife switch device segmentation result includes the knife switch segmentation result and the opening and closing indication device segmentation result.

[0082] Specifically, the target detection network is trained using the collected substation images. First, the substation images are collected. Through the substation auxiliary monitoring system, image datasets containing and not containing knife switches are collected under different weather and background conditions, and the two states are ensured to be evenly distributed; then the collected image datasets are cleaned, the damaged image data are removed, and they are divided into image datasets containing only knife switches and datasets similar to knife switches but not containing knife switches. After the target detection network is obtained by training the YOLOv5 network constructed by combining local features and global features with the dataset, the target detection network is used to perform target detection on the knife switch enhanced image to obtain the knife switch device recognition result, and then the knife switch device is semantically segmented to obtain the knife switch device segmentation result.

[0083] ResNet101 is used as the backbone feature extraction network to extract features from the knife switch enhanced image. After obtaining the feature map, an RPN operation is added after the fourth group of convolutional layers to generate a region of interest to perform knife switch detection on the feature map. The final output channel number is a feature map with 2048 channels. The number of channels is reduced to 1024 by adding a 1x1 convolutional layer, and then the knife switch device recognition result is obtained.

[0084] In some embodiments, step S103 includes but is not limited to the following steps:

[0085] The HSV color recognition method is used to identify the segmentation results of the split-and-close indicator device, determine the position of the split-and-close plate, set the HSV coefficient according to the color of the split-and-close plate, perform HSV color recognition on the segmentation results of the split-and-close indicator device, and obtain a binary image;

[0086] After Gaussian blur and opening operations are performed on the binary image, the denoised binary image is obtained;

[0087] The HSV value of the pixel points in the "joint" part of the denoised binary image is set to red, and the HSV value of the pixel points in the "separated" part is set to green, and the parts with red and green pixels are extracted to obtain a new binary image;

[0088] Calculate the distance between each white pixel point in the new binary image and the four corners of the splitting and combining plate to obtain the endpoint distance, take the white pixel points whose endpoint distance is less than the first preset distance as the endpoints of the splitting and combining plate, extract and correct the splitting and combining indication device segmentation result by perspective transformation, obtain a new splitting and combining plate image, use the HSV image to identify the new splitting and combining plate image, and obtain the yellow arrow binary image in the new splitting and combining plate image;

[0089] Traverse the pixel points and calculate the number of white pixels in the yellow arrow binary image and the new binary image. If the number of white pixels in the "closed" part is greater than the threshold, it is judged to be in a closed state. If the number of white pixels in the "separated" part is less than the threshold, it is judged to be in a separated state. If the two are equal, it is judged to be an uncertain state.

[0090] Specifically, after obtaining the split-and-close plate image according to the split-and-close indicating device segmentation result image, a rectangular split-and-close identification area is set in the image, the area contains more than 50% of the split-and-close plate pixel area, the split-and-close indicating device segmentation result is identified by using the HSV color recognition method, the split-and-close plate position is determined, the HSV coefficient is set according to the split-and-close plate color, the split-and-close indicating device segmentation result is HSV color recognized, and Gaussian blur and opening operations are performed on the identified binary image to remove noise, different masks are set according to different pixels, the HSV value of the "closed" part is set to red, the HSV value of the "split" part is set to green, and relevant pixel points are extracted to obtain binary images of red and green parts;

[0091] Then, the distance between each white pixel point in the binary image of the red and green parts and the four corners of the splitting and combining plate is calculated to obtain the endpoint distance, and the white pixel points whose endpoint distance is less than the first preset distance are the endpoints of the splitting and combining plate. The segmentation result of the splitting and combining indicating device is extracted and corrected by perspective transformation to obtain a new splitting and combining plate image, and the new splitting and combining plate image is identified by HSV image to obtain the yellow arrow binary image in the new splitting and combining plate image. The pixel points are traversed to calculate the number of white pixels in the yellow arrow binary image and the new binary image. If the number of white pixels in the "closed" part is greater than the threshold, it is judged to be in a closed state. If the number of white pixels in the "split" part is less than the threshold, it is judged to be in a split state. If the two are equal, it is judged to be an uncertain state.

[0092] In some embodiments, step S103 includes but is not limited to the following steps:

[0093] If there are defects at the four corners of the split-and-close plate, the segmentation result of the split-and-close indicator device is converted into a grayscale image, and the grayscale image is subjected to canny edge detection to extract all edges, thereby obtaining multiple edges;

[0094] Using Hough straight line transform, edges with edge lengths greater than a preset length are fitted into straight lines to obtain multiple straight lines;

[0095] A plurality of side lines are obtained according to the positional relationship of the straight lines, and each side line is extended to obtain a plurality of intersection points, and the intersection points are determined as the corners of the split plate.

[0096] Specifically, when searching for the end points of the split board, if the four corners of the split board are defective to varying degrees, the Hough linear transformation method is used to fit the line segments of the four sides of the split board, and then the four side lines are extended to obtain the intersection points. The four intersection points obtained are the four end points of the split board. The specific method is: convert the split board image into a grayscale image, perform canny edge detection on the grayscale image to extract all edges, use the Hough linear transformation to fit the longest four edges into straight lines, that is, the four sides and the center line of the split board, select four side lines according to the positional relationship of the straight lines, extend these four side lines to obtain four intersection points, and use these four intersection points as the end points of the split board.

[0097] In addition, in addition to intelligent identification of substation equipment images, it also includes data labeling standard steps, specifically, determining the scope and classification of data collection according to the application scenarios and business specifications of substation intelligent technology. For example, the data collection requirements for different types of equipment and different scenarios can be determined and classified for subsequent data management and labeling work; then organize and store the data according to equipment type, date, location and other information, and name each data file for quick positioning and retrieval; determine the naming standards and encoding methods of data labels to ensure the consistency and readability of the labels, name each label according to the equipment type, status, location and other information, and establish a corresponding coding table or label dictionary to facilitate the use and understanding of data labelers.

[0098] Formulate methods and processes for data labeling, including selecting appropriate labeling tools, determining labeling personnel, and conducting labeling quality control, etc. Use commonly used labeling tools, such as Label Img, RectLabel, etc., combined with labeling templates and labeling guidelines to ensure the accuracy and consistency of the labeling process. This data labeling standard method can provide unified data labeling specifications and guidelines to ensure the quality and accuracy of the labeled data. This data is integrated into the discrimination system corresponding to the intelligent discrimination method for substation equipment images, providing a reliable data basis for the subsequent algorithm training and evaluation of the system, and improving the system's understanding and recognition capabilities for specific equipment and scenarios.

[0099] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0100] In some embodiments, Figure 2 As shown, it shows a block diagram of a substation equipment image intelligent identification device 200 provided in an embodiment of the present application, including: an acquisition module 201, a segmentation module 202 and a judgment module 203, wherein:

[0101] An acquisition module is used to acquire a meter image and a switch image of the substation to be detected, and perform image enhancement adjustment and background removal on the meter image and the switch image to obtain a meter enhanced image and a switch enhanced image;

[0102] A segmentation module is used to segment the meter enhanced image to obtain a dial segmentation result and a pointer segmentation result, and obtain the meter reading of the substation to be detected according to the dial segmentation result and the pointer segmentation result;

[0103] The judgment module is used to detect and segment the knife switch enhanced image, obtain the knife switch equipment segmentation result, judge the opening and closing state of the knife switch according to the knife switch equipment segmentation result, and obtain the opening and closing state judgment result, so that personnel can judge the equipment status of the substation to be inspected according to the meter reading, the knife switch state recognition result and the opening and closing state judgment result.

[0104] In some embodiments, the acquisition module includes a contrast enhancement unit, a brightness enhancement unit, and a background removal unit.

[0105] The contrast enhancement unit is used to enhance the contrast and grayscale conversion of the meter image and the knife switch image to obtain the meter image and the knife switch image with enhanced contrast;

[0106] The brightness enhancement unit is used to enhance the brightness of the meter image and the knife switch image with improved contrast, so as to obtain the meter image and the knife switch image after brightness enhancement;

[0107] The background removal unit is used to perform edge enhancement and background removal on the meter image and the knife switch image after brightness enhancement to obtain a meter enhanced image and a knife switch enhanced image.

[0108] In some embodiments, the segmentation module includes a positioning unit, a cropping unit and a binarization processing unit.

[0109] The positioning unit is used to locate the dial of the meter enhanced image and determine the dial position by a secondary template matching method;

[0110] The cutting unit is used to cut the dial according to the position of the dial and obtain the dial segmentation result by using the Hough circle detection method;

[0111] The binarization processing unit is used to perform binarization processing on the dial segmentation result to obtain the pointer segmentation result.

[0112] In some embodiments, obtaining the meter reading of the substation to be detected according to the dial segmentation result and the pointer segmentation result includes:

[0113] According to the pointer segmentation results and the dial segmentation results, the rotating simulated pointer method is used to simulate the overlap calculation of the pointer and the dial to determine the pointer angle;

[0114] The blank area in the dial is judged by the rotating analog pointer method to obtain the position of the zero scale line. According to the angle of the pointer and the position of the zero scale line, the meter reading of the substation to be tested is calculated by the proportional method.

[0115] In some embodiments, target detection and segmentation are performed on the knife gate enhanced image to obtain a knife gate device segmentation result, including:

[0116] Using the backbone feature extraction network to extract features from the knife switch enhanced image, a first feature image is obtained;

[0117] After performing a preset number of convolution layers on the first feature image, an RPN operation is added to generate a region of interest, and then target detection is performed to obtain a second feature image;

[0118] After convolving the second feature image, a knife switch device recognition result is obtained;

[0119] The knife switch device recognition result is semantically segmented to obtain the knife switch device segmentation result, wherein the knife switch device segmentation result includes the knife switch segmentation result and the opening and closing indication device segmentation result.

[0120] In some embodiments, judging the on / off state of the knife switch according to the segmentation result of the knife switch device to obtain the on / off state judgment result includes:

[0121] The HSV color recognition method is used to identify the segmentation results of the split-and-close indicator device, determine the position of the split-and-close plate, set the HSV coefficient according to the color of the split-and-close plate, perform HSV color recognition on the segmentation results of the split-and-close indicator device, and obtain a binary image;

[0122] After Gaussian blur and opening operations are performed on the binary image, the denoised binary image is obtained;

[0123] The HSV value of the pixel points in the "joint" part of the denoised binary image is set to red, and the HSV value of the pixel points in the "separated" part is set to green, and the parts with red and green pixels are extracted to obtain a new binary image;

[0124] Calculate the distance between each white pixel point in the new binary image and the four corners of the splitting and combining plate to obtain the endpoint distance, take the white pixel points whose endpoint distance is less than the first preset distance as the endpoints of the splitting and combining plate, extract and correct the splitting and combining indication device segmentation result by perspective transformation, obtain a new splitting and combining plate image, use the HSV image to identify the new splitting and combining plate image, and obtain the yellow arrow binary image in the new splitting and combining plate image;

[0125] Traverse the pixel points and calculate the number of white pixels in the yellow arrow binary image and the new binary image. If the number of white pixels in the "closed" part is greater than the threshold, it is judged to be in a closed state. If the number of white pixels in the "separated" part is less than the threshold, it is judged to be in a separated state. If the two are equal, it is judged to be an uncertain state.

[0126] In some embodiments, calculating the distance between each white pixel in the new binary image and the four corners of the split plate further includes:

[0127] If there are defects at the four corners of the split-and-close plate, the segmentation result of the split-and-close indicator device is converted into a grayscale image, and the grayscale image is subjected to canny edge detection to extract all edges, thereby obtaining multiple edges;

[0128] Using Hough straight line transform, edges with edge lengths greater than a preset length are fitted into straight lines to obtain multiple straight lines;

[0129] A plurality of side lines are obtained according to the positional relationship of the straight lines, and each side line is extended to obtain a plurality of intersection points, and the intersection points are determined as the corners of the split plate.

[0130] In one embodiment of the present application, a computer device is provided, which includes a memory and a processor, wherein a computer program is stored in the memory, and the above steps are implemented when the processor executes the computer program; the implementation principle and technical effect of the computer device provided in this embodiment are similar to those of the above method embodiment, and will not be repeated here.

[0131] In one embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the above steps are implemented when the computer program is executed by a processor; the computer-readable storage medium provided in this embodiment has an implementation principle and technical effects similar to those of the above method embodiment, and will not be repeated here.

[0132] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0133] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0134] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for intelligent identification of substation equipment images, characterized in that: include: Acquire a meter image and a switch image of the substation to be inspected, perform image enhancement adjustment and background removal on the meter image and the switch image, and obtain a meter enhanced image and a switch enhanced image; Segmenting the meter enhanced image to obtain a dial segmentation result and a pointer segmentation result, and obtaining a meter reading of the substation to be detected according to the dial segmentation result and the pointer segmentation result; The knife switch enhanced image is subjected to target detection and segmentation to obtain a knife switch device segmentation result, and the on / off state of the knife switch is judged according to the knife switch device segmentation result to obtain an on / off state judgment result, so that the personnel can judge the equipment state of the substation to be inspected according to the meter reading, the knife switch state recognition result and the on / off state judgment result.

2. The intelligent identification method of substation equipment image according to claim 1, characterized in that: The step of performing image enhancement adjustment and background removal on the meter image and the knife switch image to obtain a meter enhanced image and a knife switch enhanced image includes: Performing contrast enhancement and grayscale conversion on the meter image and the knife switch image to obtain a meter image and a knife switch image with enhanced contrast; Performing brightness enhancement on the meter image and the knife switch image with improved contrast to obtain the meter image and the knife switch image with enhanced brightness; The meter image and the knife switch image after brightness enhancement are subjected to edge enhancement and background removal to obtain a meter enhanced image and a knife switch enhanced image.

3. The intelligent identification method of substation equipment image according to claim 1, characterized in that: The step of segmenting the meter enhanced image to obtain a dial segmentation result and a pointer segmentation result includes: Performing dial positioning on the enhanced image of the meter, and determining the position of the dial by a secondary template matching method; According to the position of the dial, the dial is cropped using a Hough circle detection method to obtain a dial segmentation result; The dial segmentation result is binarized to obtain a pointer segmentation result.

4. The method for intelligent identification of substation equipment images according to claim 1, characterized in that: The step of obtaining the meter reading of the substation to be detected according to the dial segmentation result and the pointer segmentation result includes: According to the pointer segmentation result and the dial segmentation result, a rotating simulated pointer method is used to simulate the overlap calculation of the pointer and the dial to determine the angle of the pointer; The blank area in the dial is judged by a rotating analog pointer method to obtain the position of the zero scale line, and the meter reading of the substation to be detected is calculated by a proportional method according to the angle of the pointer and the position of the zero scale line.

5. The method for intelligent identification of substation equipment images according to claim 1, characterized in that: The target detection and segmentation of the knife switch enhanced image to obtain a knife switch device segmentation result includes: Using a backbone feature extraction network to extract features from the knife switch enhanced image to obtain a first feature image; After performing a preset number of convolution layers on the first feature image, an RPN operation is added to generate a region of interest, and then target detection is performed to obtain a second feature image; After convolving the second feature image, a knife switch device recognition result is obtained; The knife switch device recognition result is semantically segmented to obtain a knife switch device segmentation result, wherein the knife switch device segmentation result includes a knife switch segmentation result and an opening and closing indication device segmentation result.

6. The method for intelligent identification of substation equipment images according to claim 5, characterized in that: The step of judging the on / off state of the knife switch according to the segmentation result of the knife switch device to obtain the on / off state judgment result includes: The segmentation result of the splitting and combining indication device is identified by using the HSV color recognition method, the position of the splitting and combining plate is determined, the HSV coefficient is set according to the color of the splitting and combining plate, and the segmentation result of the splitting and combining indication device is identified by HSV color to obtain a binary image; After performing Gaussian blur and opening operations on the binary image, a denoised binary image is obtained; The HSV values ​​of the pixels in the "joint" part of the denoised binary image are set to red, and the HSV values ​​of the pixels in the "split" part are set to green, and the parts with red and green pixels are extracted to obtain a new binary image; Calculate the distance between each white pixel point in the new binary image and the four corners of the splitting and combining plate to obtain the endpoint distance, take the white pixel points whose endpoint distance is less than the first preset distance as the endpoints of the splitting and combining plate, extract and correct the segmentation result of the splitting and combining indicating device by perspective transformation to obtain a new splitting and combining plate image, identify the new splitting and combining plate image by using the HSV image, and obtain the yellow arrow binary image in the new splitting and combining plate image; Traverse the pixel points and calculate the number of white pixels in the yellow arrow binary image and the new binary image. If the number of white pixels in the "closed" part is greater than the threshold, it is judged to be in a closed state. If the number of white pixels in the "closed" part is less than the threshold, it is judged to be in a closed state. If the two are equal, it is judged to be in an uncertain state.

7. The method for intelligently distinguishing substation equipment images according to claim 6, characterized in that: The step of calculating the distance between each white pixel in the new binary image and the four corners of the split plate also includes: If there are defects at the four corners of the separation and combination plate, the segmentation result of the separation and combination indication device is converted into a grayscale image, and the grayscale image is subjected to canny edge detection to extract all edges to obtain multiple edges; Using Hough straight line transform to fit the edges whose edge lengths are greater than a preset length into straight lines, to obtain a plurality of straight lines; A plurality of side lines are obtained according to the positional relationship of the straight lines, and each side line is extended to obtain a plurality of intersection points, and the intersection points are determined as the corners of the split plate.

8. A device for intelligently distinguishing images of substation equipment, characterized in that: include: An acquisition module is used to acquire a meter image and a switch image of the substation to be detected, and perform image enhancement adjustment and background removal on the meter image and the switch image to obtain a meter enhanced image and a switch enhanced image; A segmentation module is used to segment the meter enhanced image to obtain a dial segmentation result and a pointer segmentation result, and obtain the meter reading of the substation to be detected according to the dial segmentation result and the pointer segmentation result; The judgment module is used to perform target detection and segmentation on the knife switch enhanced image to obtain the knife switch equipment segmentation result, judge the on-off state of the knife switch according to the knife switch equipment segmentation result, and obtain the on-off state judgment result, so that the personnel can judge the equipment state of the substation to be detected according to the meter reading, the knife switch state recognition result and the on-off state judgment result.

9. The intelligent identification device for substation equipment images according to claim 8, characterized in that: The acquisition module includes a contrast enhancement unit, a brightness enhancement unit and a background removal unit. The contrast enhancement unit is used to enhance the contrast and perform grayscale conversion on the meter image and the knife switch image to obtain a meter image and a knife switch image with enhanced contrast; The brightness enhancement unit is used to enhance the brightness of the meter image and the knife switch image with improved contrast, so as to obtain the meter image and the knife switch image after brightness enhancement; The background removal unit is used to perform edge enhancement and background removal on the brightness-enhanced meter image and knife switch image to obtain a meter enhanced image and a knife switch enhanced image.

10. The intelligent identification device for substation equipment images according to claim 8, characterized in that: The segmentation module includes a positioning unit, a cutting unit and a binarization processing unit. Wherein, the positioning unit is used to locate the dial of the meter enhanced image and determine the dial position by a secondary template matching method; The cropping unit is used to crop the dial according to the position of the dial using the Hough circle detection method to obtain a dial segmentation result; The binarization processing unit is used to perform binarization processing on the dial segmentation result to obtain a pointer segmentation result.

Citation Information

Patent Citations

  • Image recognition method and system for switching-on and switching-off board of transformer substation

    CN115761625A

  • Transformer substation video monitoring and intelligent analysis system

    CN209402635U