Interruption identification device, method and equipment for overhead cable erection
By setting up cameras on high-altitude towers to collect cable images and using semantic information recognition modules to identify cable interruptions, the problems of delay and inaccuracy in cable interruption identification in the existing technology are solved, rapid identification and alarm of cable interruption locations are achieved, and the efficiency is improved Troubleshooting efficiency.
Patent Information
- Application Number
- CN202410709377.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-10
AI Technical Summary
The existing technology has delays and inaccuracies in cable interruption identification, making it difficult to quickly locate the interruption location and affecting fault handling efficiency.
By setting up cameras on high-altitude towers or surrounding facilities to collect cable images, the semantic information recognition module is used to identify the semantic information in the cable images, determine the continuity of cable pixel distribution, determine the interruption location and generate alarm information.
It realizes rapid identification and alarm of cable interruption locations, improves the efficiency and accuracy of fault handling, and reduces the time and cost of manual inspection.
Smart Images

Figure CN118628801A
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electric power facilities, and specifically relates to a device, method and equipment for identifying interruption of aerial cables. Background Art
[0002] With the continuous development of economy and society, the demand for electricity is increasing, and long-distance power transmission via cables has become a common phenomenon.
[0003] Cables are usually installed on high-altitude towers to cross various terrains such as mountains and rivers. Because the cable is laid over a long distance and the terrain it crosses may not have good traffic conditions, the identification of cable breaks is an important factor in whether the break location can be quickly and accurately determined. The current method of identifying breaks is often to deploy drones or helicopters to conduct inspections along the line. This method is not only time-consuming and labor-intensive, but also still has a high latency, which is not conducive to the rapid handling of cable break faults.
[0004] Therefore, how to timely discover the location where the cable interruption occurs is a technical problem that needs to be solved urgently in this field. Summary of the invention
[0005] The embodiment of the present application provides a device, method and equipment for identifying the interruption of a high-altitude cable, the purpose of which is to solve the problem that the interruption position cannot be quickly located after the cable is interrupted. This solution collects cable images through cameras installed on high-altitude iron towers or surrounding auxiliary facilities, and identifies the semantic information of the cable in the cable image. Based on the recognition of the continuity of semantic information, the cable interruption position can be quickly determined, and corresponding alarm information can be generated so that the staff can properly handle the cable interruption accident in a timely manner.
[0006] In a first aspect, an embodiment of the present application provides a device for identifying an interruption of a high-altitude cable, the device comprising:
[0007] The cable image acquisition module is used to obtain the cable image along the laying direction of the cable through the camera installed on the high-altitude iron tower if there is a cable interruption event;
[0008] A semantic information recognition module is used to perform image recognition on the cable image to obtain the cable semantic information of the cable image;
[0009] A distribution recognition module is used to identify whether the distribution of pixels with cable semantic information is continuous;
[0010] A position information acquisition module, used to determine that there is a cable interruption event if it is not continuous, and to acquire the position information of the camera;
[0011] The alarm information sending module is used to generate alarm information of cable interruption based on the position information of the camera and send it to the monitoring terminal.
[0012] Furthermore, the semantic information recognition module includes:
[0013] A gradient data identification unit, used for acquiring gradient data of the cable image;
[0014] The semantic segmentation unit is used to determine the cable semantic information and the background semantic information in the cable image according to the predetermined statistical information of the gradient change between the cable and the image background and the gradient data of the cable image.
[0015] Furthermore, the distribution identification module is specifically used for:
[0016] Identify the cable extension calibration point in the cable image; wherein the cable extension calibration point is a pixel point in the cable image where the cable extends to a high-altitude iron tower adjacent to the current high-altitude iron tower and the cable installation position;
[0017] Identify whether there is a discontinuous portion of pixel points with cable semantic information between the current installation position of the high-altitude iron tower and the cable extension calibration point. If so, determine that the distribution is discontinuous; if not, determine that the distribution is continuous.
[0018] Furthermore, the device further comprises an abnormal distribution identification module, wherein the abnormal distribution identification module is used to:
[0019] identifying a cable extension calibration point in the cable image, and determining an abnormal distribution area according to a pixel position of the cable extension calibration point in the cable image;
[0020] If it is identified that the pixel point having the cable semantic information exists in the abnormal distribution area, it is determined that a cable interruption event exists.
[0021] Furthermore, the abnormal distribution identification module is specifically used to:
[0022] Calculate the distribution area of cable sag after a cable interruption according to the cable extension calibration points and a pre-built interruption simulation algorithm;
[0023] The difference area between the distribution area where the cable sags and the distribution area where the cable is not interrupted is determined as the abnormal distribution area.
[0024] Furthermore, the abnormal distribution identification module is also specifically used for:
[0025] Determine the continuous passage area of the cable according to the pixel position of the cable extension calibration point in the cable image;
[0026] If it is identified that the path area has no pixel points with cable semantic information, it is determined that a cable interruption event occurs.
[0027] Furthermore, the device also includes:
[0028] The position identification module is used to send the cable images captured by the cameras at least two places to the monitoring terminal when the position information acquisition module identifies that there are cable interruption events at at least two places, and determine whether the cable interruption events at at least two places are real interruptions according to the interruption identification instructions received by the monitoring terminal.
[0029] In a second aspect, an embodiment of the present application provides a method for identifying an interruption of a high-altitude cable, the method comprising:
[0030] If there is a cable break, the camera installed on the high-altitude tower will be used to obtain cable images along the cable laying direction;
[0031] Perform image recognition on the cable image to obtain the cable semantic information of the cable image;
[0032] Identify whether the distribution of pixels with cable semantic information is continuous;
[0033] If it is not continuous, it is determined that there is a cable interruption event, and the position information of the camera is obtained;
[0034] Based on the location information of the camera, an alarm message of cable interruption is generated and sent to a monitoring terminal.
[0035] Furthermore, the cable image is subjected to image recognition to obtain the cable semantic information of the cable image, including:
[0036] Acquiring gradient data of the cable image;
[0037] Cable semantic information and background semantic information in the cable image are determined based on predetermined statistical information on gradient changes between the cable and the image background, and gradient data of the cable image.
[0038] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0039] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0040] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0041] In the embodiment of the present application, the cable image acquisition module is used to obtain the cable image along the laying direction of the cable through a camera installed on the high-altitude iron tower if there is a cable interruption event; the semantic information recognition module is used to perform image recognition on the cable image to obtain the cable semantic information of the cable image; the distribution recognition module is used to identify whether the distribution of pixel points with cable semantic information is continuous; the position information acquisition module is used to determine the existence of a cable interruption event if it is not continuous, and obtain the position information of the camera; the alarm information sending module is used to generate alarm information of cable interruption based on the position information of the camera and send it to the monitoring terminal. This technical solution collects cable images through cameras installed on high-altitude iron towers or surrounding auxiliary facilities, and identifies the semantic information of the cable in the cable image. Based on the recognition of the continuity of semantic information, the cable interruption location can be quickly determined, and corresponding alarm information can be generated so that the staff can properly handle the cable interruption accident in time. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a structural schematic diagram of an interruption identification device for overhead cable installation provided in Example 1 of the present application;
[0043] Figure 2 It is a structural schematic diagram of an interruption identification device for overhead cable installation provided in Example 2 of the present application;
[0044] Figure 3 It is a flowchart of a method for identifying an interruption of an overhead cable provided in Embodiment 3 of the present application;
[0045] Figure 4 It is a schematic diagram of the structure of the electronic device provided in Example 4 of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all of the content is shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0048] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0049] In the following, in conjunction with the accompanying drawings, the interruption identification device, method and equipment for high-altitude cable installation provided by the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0050] Embodiment 1
[0051] Figure 1 Schematic diagram of the structure of the interruption identification device for overhead cable provided in the first embodiment of the present application. Figure 1 As shown, specifically including the following:
[0052] The cable image acquisition module 101 is used to obtain the cable image along the laying direction of the cable through a camera installed on the high-altitude iron tower if there is a cable interruption event;
[0053] The semantic information recognition module 102 is used to perform image recognition on the cable image to obtain the cable semantic information of the cable image;
[0054] A distribution identification module 103, used to identify whether the distribution of pixels with cable semantic information is continuous;
[0055] A position information acquisition module 104 is used to determine that there is a cable interruption event if it is not continuous, and to acquire the position information of the camera;
[0056] The alarm information sending module 105 is used to generate alarm information of cable interruption based on the position information of the camera and send it to the monitoring terminal.
[0057] This solution can be applied to the scenario of cable break detection. It can be understood that the execution subject of this solution can be an intelligent terminal with data computing capability, such as a detection terminal, a smart phone, a desktop computer, and a tablet computer.
[0058] The cable break event may be an alarm time when the cable break is identified. For example, after receiving the cable break alarm, a method is needed to determine the cable break location.
[0059] In this solution, the camera can be a color camera that can be used to obtain color images. Generally, for the convenience of deployment and without the economic waste caused by the establishment of auxiliary facilities, the camera can be installed on a high-altitude iron tower. The installation height can be slightly higher than the installation height of the cable, or slightly lower than the installation height of the cable.
[0060] In order to obtain the cable image, the camera can be set in the direction along the laying direction of the cable, so that the cable image from the current high-altitude tower to the next high-altitude tower can be obtained.
[0061] The semantic information recognition module 102 is used to perform image recognition on the cable image to obtain the cable semantic information of the cable image;
[0062] Among them, the semantics of the image is divided into the visual layer, the object layer and the conceptual layer. The visual layer is the bottom layer that is usually understood, that is, color, texture, shape, etc. These features are called the bottom feature semantics; the object layer is the middle layer, which usually contains attribute features, etc., which is the state of an object at a certain moment; the concept layer is the high layer, which is the image that expresses the closest to human understanding. In layman's terms, for example, there are sand, blue sky, sea water, etc. on a picture. The visual layer is a distinction between pieces, the object layer is sand, blue sky and sea water, and the concept layer is the beach, which is the semantics expressed by this picture. The semantic information in this scheme can correspond to the object layer in the above example. That is, the cable part and the background part can be marked in the cable image. Among them, the background part can include the sky, the ground, and the high-altitude iron tower.
[0063] It can be understood that the cable semantic information, that is, the semantic information is a collection of pixel points of the cable.
[0064] In a feasible embodiment, optionally, the semantic information recognition module includes:
[0065] A gradient data identification unit, used for acquiring gradient data of the cable image;
[0066] The semantic segmentation unit is used to determine the cable semantic information and the background semantic information in the cable image according to the predetermined statistical information of the gradient change between the cable and the image background and the gradient data of the cable image.
[0067] Gradient data can be the amplitude of image changes. For the edge of the image, the gray value changes greatly, and the gradient value changes greatly; on the contrary, for the smoother part of the image, the gray value changes less, and the corresponding gradient value changes less. In general, the image gradient calculates the edge information of the image. It has important applications in image processing and computer vision, and is often used for tasks such as edge detection, feature extraction, and image enhancement.
[0068] This solution can determine the edge position between the cable and the background by identifying the gradient data, and based on the edge position, determine the pixel points with the cable semantic information and the pixel points with the background semantic information.
[0069] Specifically, the cable semantic information and background semantic information in the cable image are determined based on the predetermined statistical information of the gradient change between the cable and the image background, and the gradient data of the cable image. The predetermined statistical information of the gradient change between the cable and the image background may be the grayscale change pattern of the cable and the background in the cable image obtained by statistical analysis of a certain number of cable images. For example, the grayscale data changes from large to small, or the grayscale data of the cable is greater than the grayscale data of the background by more than 25.
[0070] Through such a setting, the present solution can accurately identify the cable part and the background part in the cable image based on the predetermined statistical information of the gradient change of the cable and the image background, thereby providing an accurate data basis for the subsequent identification of cable interruption.
[0071] The distribution identification module 103 is used to identify whether the distribution of pixels with cable semantic information is continuous. If the cable is normal, the distribution of pixels with cable semantic information should be continuous, but if the cable is interrupted, the distribution of pixels with cable semantic information is discontinuous. Therefore, by identifying whether the pixel distribution is continuous, it can be determined whether the semantic information of the cable is interrupted.
[0072] In a feasible embodiment, optionally, the distribution identification module 103 is specifically configured to:
[0073] Identify the cable extension calibration point in the cable image; wherein the cable extension calibration point is a pixel point in the cable image where the cable extends to a high-altitude iron tower adjacent to the current high-altitude iron tower and the cable installation position;
[0074] Identify whether there is a discontinuous portion of pixel points with cable semantic information between the current installation position of the high-altitude iron tower and the cable extension calibration point. If so, determine that the distribution is discontinuous; if not, determine that the distribution is continuous.
[0075] The cable extension calibration point may be a pixel point in the cable image where the cable is to be installed at the next high-altitude iron tower. By clarifying the cable extension calibration point, it is possible to clarify the range in which the pixel points with cable semantic information need to be continuously identified.
[0076] After the cable extension calibration point is determined, it is possible to identify from the cable image whether there is a discontinuous portion of pixels with cable semantic information between the current installation location and the cable extension calibration point. If so, it is determined that the distribution is discontinuous; if not, it is determined that the distribution is continuous.
[0077] Through such a setting, this solution can clearly define the recognition range, avoid the situation where the cable is mistakenly identified as being disconnected due to the obstruction of the next high-altitude iron tower itself, and improve the accuracy of cable interruption recognition.
[0078] The position information acquisition module 104 is used to determine the presence of a cable interruption event in the case of discontinuity and to acquire the position information of the camera.
[0079] Among them, the location information of the camera can be the coordinate position determined by the camera's own positioning component, or it can be the installation position of the camera determined based on information such as the camera number, for example, on which high-altitude iron tower the camera is installed, and the location of the camera is determined based on the number of the high-altitude iron tower.
[0080] The alarm information sending module 105 is used to generate an alarm message of cable interruption based on the position information of the camera. The alarm message can be information used to inform the staff to identify the cable interruption that has occurred here. The alarm message includes position information, which can facilitate the staff to quickly determine the position of the camera, that is, the location where the cable interruption event occurred. The monitoring terminal can be an intelligent terminal set in a monitoring room where the cable runs safely, such as a desktop computer. The method of sending to the monitoring terminal can be to encode the alarm message based on the communication component deployed on the camera and then send it. After the monitoring terminal receives the encoded information, it can decode it to obtain the specific content of the corresponding alarm message.
[0081] In the embodiment of the present application, the cable image acquisition module is used to obtain the cable image along the laying direction of the cable through a camera installed on the high-altitude iron tower if there is a cable interruption event; the semantic information recognition module is used to perform image recognition on the cable image to obtain the cable semantic information of the cable image; the distribution recognition module is used to identify whether the distribution of pixel points with cable semantic information is continuous; the position information acquisition module is used to determine the existence of a cable interruption event if it is not continuous, and obtain the position information of the camera; the alarm information sending module is used to generate alarm information of cable interruption based on the position information of the camera and send it to the monitoring terminal. This technical solution collects cable images through cameras installed on high-altitude iron towers or surrounding auxiliary facilities, and identifies the semantic information of the cable in the cable image. Based on the recognition of the continuity of semantic information, the cable interruption location can be quickly determined, and corresponding alarm information can be generated so that the staff can properly handle the cable interruption accident in time.
[0082] Based on the above embodiments, optionally, the device further includes:
[0083] The position identification module is used to send the cable images captured by the cameras at least two places to the monitoring terminal when the position information acquisition module identifies that there are cable interruption events at at least two places, and determine whether the cable interruption events at at least two places are real interruptions according to the interruption identification instructions received by the monitoring terminal.
[0084] In one scenario, there may be a situation where multiple cameras simultaneously send out alarm information that they recognize a cable break. Because in the cable transmission line, if a break occurs at any point, a cable break event will be identified, and the situation where multiple cable breaks occur at the same time is an event with a very low probability. Therefore, in the case of multiple alarm messages, the cable images obtained by the camera that issued the alarm information can be transmitted to the monitoring terminal to be displayed to the staff, who will determine which is the real cable break and which is caused by misidentification. Among them, after the staff determines that there is a real broken cable image, the location information of the camera that transmits the cable image can be provided to the staff for further repair work.
[0085] Through such a setting, the present scheme can be compatible with the situation of misidentification of cable images, making the operation process of the present scheme more robust. It can provide corresponding data according to different situations for staff to actively identify and reduce the probability of misidentification of cable interruption locations.
[0086] Embodiment 2
[0087] Figure 2 It is a structural schematic diagram of the interruption identification device for overhead cables provided in Example 2 of the present application. This solution makes better improvements on the basis of the above-mentioned embodiment, and the specific improvements are as follows: the device also includes an abnormal distribution identification module, and the abnormal distribution identification module is used to: identify the cable extension calibration point in the cable image, and determine the abnormal distribution area according to the pixel position of the cable extension calibration point in the cable image; if it is identified that the pixel point with cable semantic information exists in the abnormal distribution area, it is determined that a cable interruption event exists.
[0088] like Figure 2 As shown, the device comprises:
[0089] The cable image acquisition module 201 is used to obtain the cable image along the laying direction of the cable through a camera installed on the high-altitude iron tower if there is a cable interruption event;
[0090] The semantic information recognition module 202 is used to perform image recognition on the cable image to obtain the cable semantic information of the cable image;
[0091] Distribution identification module 203, used to identify whether the distribution of pixels with cable semantic information is continuous;
[0092] A position information acquisition module 204 is used to determine that there is a cable interruption event if it is not continuous, and obtain the position information of the camera;
[0093] The alarm information sending module 205 is used to generate alarm information of cable interruption based on the position information of the camera and send it to the monitoring terminal.
[0094] The device further includes an abnormal distribution identification module 206, wherein the abnormal distribution identification module 206 is used to:
[0095] identifying a cable extension calibration point in the cable image, and determining an abnormal distribution area according to a pixel position of the cable extension calibration point in the cable image;
[0096] If it is identified that the pixel point having the cable semantic information exists in the abnormal distribution area, it is determined that a cable interruption event exists.
[0097] After the cable extension calibration point in the cable image is determined, the abnormal distribution area can be determined according to the pixel position of the cable extension calibration point.
[0098] Among them, the abnormal distribution area can be distributed in this area only when the cable is interrupted. For example, after the cable is interrupted, the cable will extend almost vertically downward from the cable extension calibration point and form a bend on the ground. Then, the area near the base of the next high-altitude iron tower can be determined as the abnormal distribution area. Because only when the cable is interrupted can the pixel points with cable semantic information in the cable image fall into this area.
[0099] It can be understood that the abnormal distribution area can be determined based on the pixel position of the cable extension calibration point in the cable image by circled a part of the area at a certain distance below the distribution area of the normal cable in the cable image as the abnormal distribution area.
[0100] When pixel points with cable semantic information are identified in the abnormal distribution area, it can be determined that there is a cable interruption event between the current high-altitude iron tower and the next high-altitude iron tower.
[0101] This embodiment proposes a method for quickly identifying cable interruption according to abnormal distribution areas. Through such a setting, cable interruption events can be quickly and accurately identified, which is conducive to the timely handling of subsequent cable accidents.
[0102] On the basis of the above technical solutions, optionally, the abnormal distribution identification module is specifically used to:
[0103] Calculate the distribution area of cable sag after a cable interruption according to the cable extension calibration points and a pre-built interruption simulation algorithm;
[0104] The difference area between the distribution area where the cable sags and the distribution area where the cable is not interrupted is determined as the abnormal distribution area.
[0105] After obtaining the cable extension calibration point, a pre-built interruption simulation algorithm can be used to calculate the distribution area in the cable image formed by the cable sagging after the interruption occurs, and the distribution area is compared with the distribution area of the cable under normal conditions to obtain the difference area, which can be determined as the abnormal distribution area. Furthermore, when it is identified that the pixel point with cable semantic information falls into the abnormal distribution area, it can be determined that the cable has been interrupted.
[0106] This solution can determine, based on a simulation algorithm, a position that will not appear in the cable image under normal conditions but will appear in the case of a cable interruption, and determine this position as an abnormal distribution area. When it is identified that the cable falls into the abnormal distribution area in the cable image, it can be determined that a cable interruption event has occurred, and thus whether the cable has an interruption event can be quickly and accurately identified.
[0107] On the basis of the above technical solutions, optionally, the abnormal distribution identification module is further specifically used for:
[0108] Determine the continuous passage area of the cable according to the pixel position of the cable extension calibration point in the cable image;
[0109] If it is identified that the path area has no pixel points with cable semantic information, it is determined that a cable interruption event occurs.
[0110] The path area passed by the cable with normal curvature in the cable image can be determined according to the pixel position of the cable extension calibration point in the cable image and the cable laying standard.
[0111] If it is identified that there are no pixels with cable semantic information in this area, it means that the cable may be interrupted, and the location where the interruption occurs is relatively close to the location where the next high-altitude tower is erected.
[0112] In the case where the interruption location is very close to the erection site of the next high-altitude iron tower, it is impossible to identify it using the above-mentioned abnormal distribution area, because the cable will not start to sag downward at the erection site of the next high-altitude iron tower until it reaches the ground. Therefore, this solution provides a different method for identifying cable interruption events.
[0113] The cable interruption identification method provided in this embodiment can accurately identify different interruption locations, avoiding the problem that some interruption phenomena cannot be effectively identified by using an inherent rule, and improving the accuracy and compatibility of the identification method.
[0114] Below are several ways to implement image gradient and edge detection:
[0115] Load any image, convert it to grayscale, and use the Sobel operator and Scharr operator to calculate the x- and y-direction gradients of the image respectively.
[0116] Display the original image, the x-direction gradient image, and the y-direction gradient image. The code is as follows:
[0117] import cv2
[0118] import numpy as np
[0119] from matplotlib import pyplot as plt
[0120] #Load the image and convert it to grayscale
[0121] image=cv2.imread('1.jpg')#Replace with your image path
[0122] gray=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
[0123] #Sobel operator calculates the gradient in the x direction
[0124] sobelx=cv2.Sobel(gray,ddepth=cv2.CV_64F,dx=1,dy=0,ksize=3)#Sobel operator calculates the gradient in the y direction
[0125] sobely=cv2.Sobel(gray,ddepth=cv2.CV_64F,dx=0,dy=1,ksize=3)#Scharr operator calculates the gradient in the x direction
[0126] scharrx=cv2.Scharr(gray,ddepth=cv2.CV_64F,dx=1,dy=0)
[0127] #Scharr operator calculates the gradient in the y direction
[0128] scharry=cv2.Scharry(gray,ddepth=cv2.CV_64F,dx=0,dy=1)
[0129] #Use Matplotlib to display the results
[0130] plt.figure(figsize=(16,6))
[0131] # Display the original image
[0132] plt.subplot(2,3,1)
[0133] plt.imshow(cv2.cvtColor(image,cv2.COLOR_BGR2RGB))
[0134] plt.title('Original Image')
[0135] #Display the Sobel gradient in the x direction
[0136] plt.subplot(2,3,2)
[0137] plt.imshow(sobelx,cmap='gray')
[0138] plt.title('Sobel X Gradient')
[0139] #Display the Sobel gradient in the y direction
[0140] plt.subplot(2,3,3)
[0141] plt.imshow(sobely,cmap='gray')
[0142] plt.title('Sobel Y Gradient')
[0143] #Show the Scharr gradient in the x direction
[0144] plt.subplot(2,3,5)
[0145] plt.imshow(scharrx,cmap='gray')
[0146] plt.title('Scharr X Gradient')
[0147] #Show the Scharr gradient in the y direction
[0148] plt.subplot(2,3,6)
[0149] plt.imshow(scharry,cmap='gray')
[0150] plt.title('Scharr Y Gradient')
[0151] plt.tight_layout()
[0152] plt.show();
[0153] Similarly, load an image and convert it to grayscale, and use the Laplacian operator to calculate the second-order derivative of the image.
[0154] Display the original image and the image after Laplacian processing. The code is as follows:
[0155] import cv2
[0156] import numpy as np
[0157] from matplotlib import pyplot as plt
[0158] #Load the image and convert it to grayscale
[0159] image=cv2.imread('1.jpg')#Replace with your image path
[0160] gray=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
[0161] #Use Laplacian operator to calculate the second-order derivative
[0162] laplacian=cv2.Laplacian(gray,ddepth=cv2.CV_64F)
[0163] #If you want to map negative values to their absolute values, you can calculate the absolute value
[0164] #Usually this is done so that all edges can be seen on the screen, because the screen cannot display negative pixel values
[0165] laplacian_abs=np.absolute(laplacian)
[0166] laplacian_uint8=np.uint8(laplacian_abs)
[0167] #Use Matplotlib to display the results
[0168] plt.figure(figsize=(10,5))
[0169] # Display the original image
[0170] plt.subplot(1,2,1)
[0171] plt.imshow(cv2.cvtColor(image,cv2.COLOR_BGR2RGB))#Convert BGR to RGB
[0172] plt.title('Original Image')
[0173] #Display Laplacian gradient image
[0174] plt.subplot(1,2,2)
[0175] plt.imshow(laplacian_uint8,cmap='gray')
[0176] plt.title('Laplacian Edge Image')
[0177] plt.tight_layout()
[0178] plt.show();
[0179] Read an image and convert it to grayscale format, apply GaussianBlur to denoise it, and perform Canny edge detection on the image using different thresholds.
[0180] Display the original image and the Canny edge detection results under different thresholds. The code is as follows:
[0181] import cv2
[0182] from matplotlib import pyplot as plt
[0183] #Read the image and convert it to grayscale format
[0184] image=cv2.imread('1.jpg')#Replace with your image path
[0185] gray_image=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
[0186] #Apply GaussianBlur for denoising
[0187] blurred_image=cv2.GaussianBlur(gray_image,(5,5),0)
[0188] #Use different thresholds to perform Canny edge detection on the image
[0189] canny_low=cv2.Canny(blurred_image,50,150)
[0190] canny_high=cv2.Canny(blurred_image,100,200)
[0191] #Use Matplotlib to display the results
[0192] plt.figure(figsize=(15,5))
[0193] #Show original image
[0194] plt.subplot(1,3,1)
[0195] plt.imshow(cv2.cvtColor(image,cv2.COLOR_BGR2RGB))#Convert BGR image to RGB image for display
[0196] plt.title('Original Image')
[0197] #Show the results of low threshold Canny edge detection
[0198] plt.subplot(1,3,2)
[0199] plt.imshow(canny_low,cmap='gray')
[0200] plt.title('Canny Edge Detection(low thresholds)')
[0201] #Show the results of high threshold Canny edge detection
[0202] plt.subplot(1,3,3)
[0203] plt.imshow(canny_high,cmap='gray')
[0204] plt.title('Canny Edge Detection(high thresholds)')
[0205] plt.tight_layout()
[0206] plt.show();
[0207] Apply Canny edge detection to an image. First, manually set the upper and lower thresholds. Then try to determine the threshold using Otsu's threshold or other automatic thresholding methods. Compare the results of the two thresholding methods and discuss the possible reasons for the different results.
[0208] The specific code is as follows:
[0209] import cv2
[0210] from matplotlib import pyplot as plt
[0211] #Read the image and convert it to grayscale format
[0212] image=cv2.imread('1.jpg')#Replace with your image path
[0213] gray_image=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
[0214] #Apply GaussianBlur for denoising
[0215] blurred_image=cv2.GaussianBlur(gray_image,(5,5),0)
[0216] #Manually set the threshold
[0217] threshold1=100
[0218] threshold2=200
[0219] canny_manual=cv2.Canny(blurred_image,threshold1,threshold2)
[0220] #Otsu's threshold automation determines the threshold
[0221] high_threshold,_=cv2.threshold(blurred_image,0,255,cv2.THRESH_BINARY+cv2.THRESH_OTSU)
[0222] low_threshold=0.5*high_threshold
[0223] canny_otsu=cv2.Canny(blurred_image,low_threshold,high_threshold)
[0224] #Use Matplotlib to display the results
[0225] plt.figure(figsize=(15,5))
[0226] #Show Canny edge detection results of manual threshold
[0227] plt.subplot(1,2,1)
[0228] plt.imshow(canny_manual,cmap='gray')
[0229] plt.title('Canny Edge Detection(manual thresholds)')
[0230] #Show Canny edge detection results of Otsu threshold
[0231] plt.subplot(1,2,2)
[0232] plt.imshow(canny_otsu,cmap='gray')
[0233] plt.title('Canny Edge Detection(Otsu\'s thresholds)')
[0234] plt.tight_layout()
[0235] plt.show();
[0236] Read and display an image of a simple shape, use the Canny operator to find the edges of the shape, use the findContours method to retrieve all contours in the image, draw the contours, and display the original image and the result of drawing the contours. The code is as follows:
[0237] import cv2
[0238] import numpy as np
[0239] from matplotlib import pyplot as plt
[0240] #Read the image and display it
[0241] image = cv2.imread('1.jpg')#Replace with your image file
[0242] gray_image=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
[0243] #Use Canny edge detection to find the shape edges
[0244] edges=cv2.Canny(gray_image,100,200)
[0245] #Find contours
[0246] #Note: findContours will modify the original image, so use edges.copy() to keep the original image
[0247] contours,hierarchy=cv2.findContours(edges.copy(),cv2.RETR_EXTERNAL,cv2.CHAIN_APPROX_SIMPLE)
[0248] # Draw all contours
[0249] contour_image = image.copy()
[0250] cv2.drawContours(contour_image,contours,-1,(255,0,0),3)
[0251] #Use Matplotlib to display the results
[0252] plt.figure(figsize=(15,5))
[0253] # Display the original image
[0254] plt.subplot(1,2,1)
[0255] plt.imshow(cv2.cvtColor(image,cv2.COLOR_BGR2RGB))#Convert BGR format to RGB format for correct display
[0256] plt.title('Original Image')
[0257] # Display the result of drawing the outline
[0258] plt.subplot(1,2,2)
[0259] plt.imshow(cv2.cvtColor(contour_image,cv2.COLOR_BGR2RGB))#Also convert BGR format to RGB format
[0260] plt.title('Image with Contours')
[0261] plt.tight_layout()
[0262] plt.show();
[0263] Load an image containing multiple nested shapes, find all contours, and use the hierarchical structure of contours to identify and label contours at different levels (such as parent contours and child contours), try to extract specific contours (such as the largest contour or the smallest contour), and display the original image with hierarchical identification and the results of extracting specific contours. The code is as follows:
[0264]
[0265]
[0266]
[0267] Through one or more of the above methods, gradient recognition and edge extraction of cable images can be achieved, thereby obtaining accurate semantic information recognition results.
[0268] In some cases, the GPU memory may be insufficient when training large images due to insufficient graphics card memory. This solution provides a simple method: slicing the image. Slicing the image: Crop large images into fixed and moderate-sized images to facilitate subsequent training.
[0269] The function of this part of the code is to crop the training set and the test set to 224×224 respectively and store them in a new folder;
[0270]
[0271]
[0272]
[0273] The start_points() function in the above code obtains X_points and Y_points as 0, 192, and 288. These three points are the starting points for image cropping. The size of the cropped image is 224×224. For the specific implementation method, see the crop_image_mask() function below.
[0274]
[0275]
[0276] At this point, the image preprocessing is complete. The training set and test set are cropped to 224×224 respectively and stored in a new folder. Later, train.py reads the data from this new folder.
[0277]
[0278]
[0279]
[0280] This code implements the following functions: read the image and mask, put them into sample, and if self.transform == True, perform self.transform on sample.
[0281] The final return value is sample.
[0282]
[0283]
[0284]
[0285]
[0286] The purpose of the penultimate line model.train() in this part of the code is to call model.train() after the validation phase to switch the model back to training mode.
[0287] In deep learning, some layers (such as Dropout, Batch Normalization, etc.) have different behaviors in training mode and evaluation mode. In training mode, these layers perform specific operations to enhance the generalization and stability of the model. In evaluation mode, the behavior of these layers changes to maintain consistency and repeatability.
[0288] In summary, model.train() is added to ensure that the model switches back to training mode after the validation phase to keep the behavior of training and evaluation consistent.
[0289] Embodiment 3
[0290] Figure 3 1 is a flow chart of a method for identifying an interruption of a high-altitude cable provided in Example 3 of the present application. Figure 3 As shown, the specific steps include:
[0291] S301, if there is a cable interruption event, obtain a cable image along the cable laying direction through a camera installed on a high-altitude iron tower;
[0292] S302, performing image recognition on the cable image to obtain cable semantic information of the cable image;
[0293] S303, identifying whether the distribution of pixels having cable semantic information is continuous;
[0294] S304: If it is not continuous, it is determined that there is a cable interruption event, and the position information of the camera is obtained;
[0295] S305: Generate cable break alarm information based on the location information of the camera and send it to the monitoring terminal.
[0296] Furthermore, the cable image is subjected to image recognition to obtain the cable semantic information of the cable image, including:
[0297] Acquiring gradient data of the cable image;
[0298] Cable semantic information and background semantic information in the cable image are determined based on predetermined statistical information on gradient changes between the cable and the image background, and gradient data of the cable image.
[0299] In an embodiment of the present application, if there is a cable interruption event, a camera installed on a high-altitude iron tower is used to obtain a cable image along the laying direction of the cable; image recognition is performed on the cable image to obtain the cable semantic information of the cable image; it is identified whether the distribution of pixels with cable semantic information is continuous; if not, it is determined that there is a cable interruption event, and the position information of the camera is obtained; based on the position information of the camera, an alarm message of cable interruption is generated and sent to the monitoring terminal. This technical solution collects cable images through a camera installed on a high-altitude iron tower or on surrounding auxiliary facilities, and identifies the semantic information of the cable in the cable image. Based on the identification of the continuity of the semantic information, the cable interruption location can be quickly determined, and corresponding alarm information can be generated so that the staff can properly handle the cable interruption accident in a timely manner.
[0300] The method for identifying the interruption of an aerial cable provided in the embodiment of the present application corresponds to the device for identifying the interruption of an aerial cable provided in the above-mentioned embodiment, and has the same functional modules and beneficial effects. To avoid repetition, they will not be described here.
[0301] Embodiment 4
[0302] Figure 4 Schematic diagram of the structure of the electronic device provided in the fourth embodiment of the present application. Figure 4 As shown, an embodiment of the present application also provides an electronic device 400, including a processor 401, a memory 402, and a program or instruction stored in the memory 402 and executable on the processor 401. When the program or instruction is executed by the processor 401, each process of the above-mentioned embodiment of the method for identifying interruption of overhead cables is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0303] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0304] Embodiment 5
[0305] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned interruption identification method embodiment of the high-altitude cable is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0306] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0307] Embodiment 6
[0308] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned embodiment of the interruption identification method for high-altitude cables, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0309] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0310] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0311] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0312] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0313] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A device for identifying the interruption of a high-altitude cable, characterized in that: The device comprises: The cable image acquisition module is used to obtain the cable image along the laying direction of the cable through the camera installed on the high-altitude iron tower if there is a cable interruption event; A semantic information recognition module is used to perform image recognition on the cable image to obtain the cable semantic information of the cable image; A distribution recognition module is used to identify whether the distribution of pixels with cable semantic information is continuous; A position information acquisition module, used to determine that there is a cable interruption event if it is not continuous, and to acquire the position information of the camera; The alarm information sending module is used to generate alarm information of cable interruption based on the position information of the camera and send it to the monitoring terminal.
2. The interruption identification device for overhead cables according to claim 1, characterized in that: The semantic information recognition module comprises: A gradient data identification unit, used for acquiring gradient data of the cable image; The semantic segmentation unit is used to determine the cable semantic information and the background semantic information in the cable image according to the predetermined statistical information of the gradient change between the cable and the image background and the gradient data of the cable image.
3. The interruption identification device for overhead cables according to claim 1, characterized in that: The distribution identification module is specifically used for: Identify the cable extension calibration point in the cable image; wherein the cable extension calibration point is a pixel point in the cable image where the cable extends to a high-altitude iron tower adjacent to the current high-altitude iron tower and the cable installation position; Identify whether there is a discontinuous portion of pixel points with cable semantic information between the current installation position of the high-altitude iron tower and the cable extension calibration point. If so, determine that the distribution is discontinuous; if not, determine that the distribution is continuous.
4. The interruption identification device for overhead cables according to claim 1, characterized in that: The device further includes an abnormal distribution identification module, wherein the abnormal distribution identification module is used to: Identifying cable extension calibration points in the cable image, and determining abnormal distribution areas according to pixel positions of the cable extension calibration points in the cable image; If it is identified that the pixel point having the cable semantic information exists in the abnormal distribution area, it is determined that a cable interruption event exists.
5. The interruption identification device for overhead cables according to claim 4, characterized in that: The abnormal distribution identification module is specifically used for: Calculate the distribution area of cable sag after a cable interruption according to the cable extension calibration points and a pre-built interruption simulation algorithm; The difference area between the distribution area where the cable sags and the distribution area where the cable is not interrupted is determined as the abnormal distribution area.
6. The device for identifying the interruption of a high-altitude cable according to claim 4, characterized in that: The abnormal distribution identification module is further specifically used for: Determine the continuous passage area of the cable according to the pixel position of the cable extension calibration point in the cable image; If it is identified that the path area has no pixel points with cable semantic information, it is determined that a cable interruption event occurs.
7. The interruption identification device for overhead cables according to claim 1, characterized in that: The device also includes: The position identification module is used to send the cable images captured by the cameras at least two places to the monitoring terminal when the position information acquisition module identifies that there are cable interruption events at at least two places, and determine whether the cable interruption events at at least two places are real interruptions according to the interruption identification instructions received by the monitoring terminal.
8. A method for identifying the interruption of a high-altitude cable, characterized in that: The method comprises: If there is a cable break, the camera installed on the high-altitude tower will be used to obtain cable images along the cable laying direction; Perform image recognition on the cable image to obtain the cable semantic information of the cable image; Identify whether the distribution of pixels with cable semantic information is continuous; If it is not continuous, it is determined that there is a cable interruption event, and the position information of the camera is obtained; Based on the location information of the camera, an alarm message of cable interruption is generated and sent to a monitoring terminal.
9. The method for identifying the interruption of an overhead cable according to claim 8, characterized in that: Perform image recognition on the cable image to obtain the cable semantic information of the cable image, including: Acquiring gradient data of the cable image; Cable semantic information and background semantic information in the cable image are determined based on predetermined statistical information on gradient changes between the cable and the image background, and gradient data of the cable image.
10. An electronic device, characterized in that: It comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein when the program or instruction is executed by the processor, the steps of the method for identifying interruption of an overhead cable as described in any one of claims 8 to 9 are implemented.
Citation Information
Patent Citations
Unmanned aerial vehicle-mounted cable detection system
CN108921132A
Cable abnormity automatic alarm method and device
CN112052732A
Cable intermediate joint construction defect detection method, system and device based on image recognition
CN114445331A
Cable surface abnormity intelligent detection method
CN116823815A
Cable defect identification method based on data enhancement preprocessing
CN116912254A
