Distribution network fault processing method and system based on Internet of Things
Through the distribution network fault handling method based on the Internet of Things, the contour extraction model is used to perform automatic fault analysis on the power grid equipment, which solves the problem of insufficient detection efficiency and accuracy of power equipment in the power grid system, and realizes the timely discovery and detection of abnormalities in equipment parts. Make accurate judgments.
Patent Information
- Application Number
- CN202410832613.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-06-26
AI Technical Summary
The existing technology has insufficient efficiency and accuracy in detecting abnormalities in power equipment in power grid systems. In particular, it is difficult to detect problems in time when equipment parts change slightly, resulting in inaccurate detection data.
A distribution network fault handling method based on the Internet of Things is adopted to obtain the power grid topology, receive power outage information, analyze historical power information and structural data, and use the contour extraction model to compare equipment parts and generate fault data to improve detection efficiency and accuracy. sex.
By dually judging the relative displacement and contour shape of equipment parts, the accuracy and efficiency of abnormality detection are improved, problems such as equipment tilt, falling off or deformation can be discovered in a timely manner, and the reliance on manual inspections is reduced.
Smart Images

Figure CN118379719B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to data processing technology, and in particular to a distribution network fault processing method and system based on the Internet of Things. Background Art
[0002] The power grid system is a unified whole composed of lines, power facilities, and secondary facilities such as regulation and control, relay protection, safety automatic devices, metering devices, dispatching automation, power communication, etc. required to ensure its normal operation. The progress of science and technology and the rapid development of economy have led to a rapid increase in the demand for electricity in society, and the power equipment in the power grid system plays a vital role in the supply of electricity. Therefore, it is particularly important to detect abnormalities in power equipment in the power grid system.
[0003] Generally speaking, power equipment is usually connected through lines to form a power grid system to achieve the transmission and distribution of electric energy. When there is a problem with the power equipment, it may affect the corresponding lines, thereby affecting the normal operation of the power grid system. At present, the power equipment in the power grid system is mainly inspected by manual regular inspections. However, since power equipment is usually composed of multiple equipment parts, for example, for a transformer, it may be constructed by various parts such as high-voltage bushings, low-voltage terminals, oil columns, oil tanks, heat sinks, etc., the normal operation of the equipment can be guaranteed through the joint cooperation between various equipment parts. If the relative position or shape between equipment parts changes, the power equipment may be in a poor working state, and even affect the normal operation of the power equipment in severe cases. Therefore, the above method may make the detection efficiency low, and when the changes in the equipment parts are relatively subtle, it may be difficult to detect the problems through the human eye, so that the detection data is often not accurate enough, resulting in the failure to timely discover the problems in the equipment parts.
[0004] Therefore, how to automatically perform fault analysis on power equipment in the power grid system and improve the efficiency and accuracy of power grid system detection has become an urgent problem to be solved. Summary of the invention
[0005] The embodiments of the present invention provide a distribution network fault processing method and system based on the Internet of Things, which can automatically perform fault analysis on power equipment in the power grid system and improve the efficiency and accuracy of power grid system detection.
[0006] A first aspect of an embodiment of the present invention provides a method for handling a distribution network fault based on the Internet of Things, comprising:
[0007] Acquire a power grid topology structure of a target area, and parse the power grid topology structure to obtain a plurality of power grid branches and power equipment corresponding to each of the power grid branches;
[0008] Receive power outage information based on the power Internet of Things, locate the corresponding power grid branch as the target branch according to the power outage information, and use the power equipment of the target branch as the target equipment;
[0009] Acquire historical power information of the target device, compare the historical power information with the threshold power information to generate power judgment data, retrieve the structure analysis strategy to perform structure analysis on the corresponding target device, and generate structure judgment data;
[0010] The power distribution network fault data is generated according to the power judgment data and the structure judgment data, and the power distribution network fault data is sent to the management end for processing.
[0011] Optionally, in a possible implementation manner of the first aspect, calling a structure analysis strategy to perform structure analysis on the corresponding target device to generate structure judgment data includes:
[0012] The structure analysis strategy is called to obtain the initial image and the current image corresponding to the target device collected at the preset position, and the contour of the device parts in the initial image and the current image is extracted based on the contour extraction model to obtain multiple initial contours corresponding to each device part in the initial image and multiple current contours corresponding to each device part in the current image, wherein different device parts are preset with different colors;
[0013] Selecting an initial contour and a current contour corresponding to a preset device part as a reference initial contour and a reference current contour, obtaining a reference slope and a reference distance corresponding to each initial contour according to the reference center point coordinates corresponding to each initial contour and the reference initial contour, and obtaining a current slope and a current distance corresponding to each current contour according to the current center point coordinates corresponding to each current contour and the reference current contour;
[0014] The initial contour and the current contour are classified based on the device part to obtain a plurality of comparison sets. If the reference slope and the current slope corresponding to the initial contour and the current contour in the comparison set are inconsistent, or the corresponding reference distance and the current distance are inconsistent, the device part corresponding to the comparison set is regarded as the displacement abnormal part;
[0015] Obtain an initial contour value corresponding to the initial contour according to the contour coordinates corresponding to the initial contour in the comparison set, the contour coordinates corresponding to the benchmark initial contour, and the benchmark center point coordinates corresponding to the benchmark initial contour; obtain a current contour value corresponding to the current contour according to the contour coordinates corresponding to the current contour in the comparison set, the contour coordinates corresponding to the benchmark current contour, and the current center point coordinates corresponding to the benchmark current contour;
[0016] Based on the initial contour value and the current contour value, a contour similarity value corresponding to each comparison set is obtained, and a device part corresponding to the comparison set whose contour similarity value is less than a preset contour similarity value is obtained as a contour abnormal part, a prompt box corresponding to the contour abnormal part is generated, and the contour abnormal part is marked based on the prompt box to generate structure judgment data;
[0017] The preset contour similarity value is trained and updated based on the user's operation information on the prompt box.
[0018] Optionally, in a possible implementation manner of the first aspect, contour extraction is performed on device parts in the initial image and the current image based on a contour extraction model to obtain a plurality of initial contours corresponding to each device part in the initial image and a plurality of current contours corresponding to each device part in the current image, including:
[0019] Based on the contour extraction model, the part pixel value interval corresponding to each device part in the target device is obtained, the pixel points located in the part pixel value interval in the initial image are extracted as the first pixel points corresponding to each device part, the adjacent first pixel points are obtained to generate a first pixel point set, and the contour is extracted on the first pixel point set to obtain the initial contour corresponding to each device part of the target device in the initial image;
[0020] Pixel points in the current image that are located in the pixel value interval of each part are extracted as second pixel points corresponding to each device part, adjacent second pixel points are obtained to generate a second pixel point set, and contour extraction is performed on the second pixel point set to obtain the current contour corresponding to each device part of the target device in the current image.
[0021] Optionally, in a possible implementation of the first aspect, obtaining a reference slope and a reference distance corresponding to each initial contour according to reference center point coordinates corresponding to each initial contour and the reference initial contour, and obtaining a current slope and a current distance corresponding to each current contour according to current center point coordinates corresponding to each current contour and the reference current contour, including:
[0022] Performing coordinate processing on the initial image and the current image, obtaining the first reference center point coordinates according to the first initial coordinates corresponding to each initial contour, obtaining the second reference center point coordinates according to the second initial coordinates corresponding to the reference initial contour, and obtaining the reference slope and reference distance corresponding to each initial contour and the reference initial contour based on the first reference center point coordinates and the second reference center point coordinates;
[0023] The first current center point coordinates are obtained according to the first current coordinates corresponding to each current contour, the second current center point coordinates are obtained according to the second current coordinates corresponding to the benchmark current contour, and the current slope and current distance corresponding to each current contour and the benchmark current contour are obtained based on the first current center point coordinates and the second current center point coordinates.
[0024] Optionally, in a possible implementation manner of the first aspect, obtaining first reference center point coordinates according to first initial coordinates corresponding to each initial contour, obtaining second reference center point coordinates according to second initial coordinates corresponding to the reference initial contour, and obtaining reference slopes and reference distances corresponding to each initial contour and the reference initial contour based on the first reference center point coordinates and the second reference center point coordinates include:
[0025] Obtaining a first maximum x-axis coordinate value, a first minimum x-axis coordinate value, a first maximum y-axis coordinate value, and a first minimum y-axis coordinate value among a plurality of first initial coordinates corresponding to each initial contour;
[0026] Obtain a first x-axis center coordinate value according to the middle value of the difference between the first maximum x-axis coordinate value and the first minimum x-axis coordinate value, obtain a first y-axis center coordinate value according to the middle value of the difference between the first maximum y-axis coordinate value and the first minimum y-axis coordinate value, and obtain a first reference center point coordinate based on the first x-axis center coordinate value and the first y-axis center coordinate value;
[0027] Obtaining a second maximum x-axis coordinate value, a second minimum x-axis coordinate value, a second maximum y-axis coordinate value, and a second minimum y-axis coordinate value among a plurality of second initial coordinates corresponding to the reference initial contour;
[0028] Obtain a second x-axis center coordinate value according to the middle value of the difference between the second maximum x-axis coordinate value and the second minimum x-axis coordinate value, obtain a second y-axis center coordinate value according to the middle value of the difference between the second maximum y-axis coordinate value and the second minimum y-axis coordinate value, and obtain a second reference center point coordinate based on the second x-axis center coordinate value and the second y-axis center coordinate value;
[0029] A reference slope and a reference distance corresponding to each initial contour and the reference initial contour are calculated based on the first reference center point coordinates and the second reference center point coordinates.
[0030] Optionally, in a possible implementation manner of the first aspect, calculating a reference slope and a reference distance corresponding to each initial contour and the reference initial contour based on the first reference center point coordinates and the second reference center point coordinates includes:
[0031] The reference slopes of each initial profile and the reference initial profile are calculated by the following formula:
[0032] ,
[0033] in, is the base slope, is the second y-axis center coordinate value, is the center coordinate value of the first y-axis, is the second x-axis center coordinate value, is the center coordinate value of the first x-axis;
[0034] The reference distance between each initial contour and the reference initial contour is calculated by the following formula:
[0035] ,
[0036] in, is the reference distance.
[0037] Optionally, in a possible implementation manner of the first aspect, obtaining an initial contour value corresponding to the initial contour according to contour coordinates corresponding to the initial contour in the comparison set, contour coordinates corresponding to the benchmark initial contour, and benchmark center point coordinates corresponding to the benchmark initial contour, and obtaining a current contour value corresponding to the current contour according to contour coordinates corresponding to the current contour in the comparison set, contour coordinates corresponding to the benchmark current contour, and current center coordinates corresponding to the benchmark current contour, includes:
[0038] Extracting the first contour coordinates corresponding to the initial contour edge line and the second contour coordinates corresponding to the current contour edge line in each comparison set, calculating the first sub-distance according to each first contour coordinate and the second reference center point coordinate corresponding to the reference initial contour, and calculating the second sub-distance according to each second contour coordinate and the second current center point coordinate corresponding to the reference current contour;
[0039] Obtaining a first distance between an initial contour in the comparison set and a reference initial contour based on all first sub-distances, and obtaining a second distance between a current contour in the comparison set and a reference current contour based on all second sub-distances;
[0040] Extracting the third contour coordinates corresponding to the edge line of the reference initial contour and the fourth contour coordinates corresponding to the edge line of the reference current contour, calculating the third sub-distance according to each third contour coordinate and the second reference center point coordinate corresponding to the reference initial contour, and calculating the fourth sub-distance according to each fourth contour coordinate and the second current center point coordinate corresponding to the reference current contour;
[0041] Based on all the third sub-distances, a third distance corresponding to the reference initial contour is obtained; based on all the fourth sub-distances, a fourth distance corresponding to the reference current contour is obtained;
[0042] An initial contour value corresponding to the initial contour in the comparison set is obtained according to a ratio of the first distance to the third distance, and a current contour value corresponding to the current contour in the comparison set is obtained according to a ratio of the second distance to the fourth distance.
[0043] Optionally, in a possible implementation manner of the first aspect, obtaining a contour similarity value corresponding to each comparison set based on the initial contour value and the current contour value includes:
[0044] The contour difference is calculated according to the initial contour value and the current contour value, and the contour similarity value corresponding to each comparison set is calculated based on the contour difference;
[0045] The contour similarity value is calculated by the following formula,
[0046] ,
[0047] in, is the contour similarity value, For the A first sub-distance between the first contour coordinates and the second reference center point coordinates, is the upper limit of the number of coordinates of the first contour, is the first distance, For the The third sub-distance between the third contour coordinates and the second reference center point coordinates, is the upper limit of the number of coordinates of the third contour, is the third distance, For the The second sub-distance between the second contour coordinates and the second current center point coordinates, is the upper limit of the number of coordinates of the second contour, is the second distance, For the The fourth sub-distance between the fourth contour coordinate and the second current center point coordinate, is the upper limit of the number of coordinates of the fourth contour, is the contour similarity weight value.
[0048] Optionally, in a possible implementation manner of the first aspect, generating a prompt box corresponding to the abnormal contour portion, and marking the abnormal contour portion based on the prompt box, includes:
[0049] Acquire the abnormal part contour corresponding to the contour abnormal part, and the third maximum x-axis coordinate value, the third minimum x-axis coordinate value, the third maximum y-axis coordinate value, and the third minimum y-axis coordinate value among the multiple coordinates corresponding to the abnormal part contour;
[0050] Generate a first vertical line according to the third maximum x-axis coordinate value, generate a second vertical line according to the third minimum x-axis coordinate value, generate a first horizontal line according to the third maximum y-axis coordinate value, generate a second horizontal line according to the third minimum y-axis coordinate value, and generate a prompt box for the contour abnormal part based on the first vertical line, the second vertical line, the first horizontal line, and the second horizontal line;
[0051] Training and updating the preset contour similarity value according to the user's operation information on the prompt box includes:
[0052] receiving user selection information of the prompt box, eliminating the prompt box, and marking the contour similarity value corresponding to the eliminated prompt box as the feedback contour similarity value;
[0053] The preset contour similarity value is trained and updated according to the feedback contour similarity value.
[0054] A second aspect of an embodiment of the present invention provides a distribution network fault processing system based on the Internet of Things, including:
[0055] A branch module, used to obtain a power grid topology structure of a target area, and parse the power grid topology structure to obtain a plurality of power grid branches and power equipment corresponding to each of the power grid branches;
[0056] The Internet of Things module is used to receive power outage information based on the power Internet of Things, locate the corresponding power grid branch as the target branch according to the power outage information, and use the power equipment of the target branch as the target equipment;
[0057] A judgment module is used to obtain historical power information of the target device, compare the historical power information with the threshold power information, generate power judgment data, call the structure analysis strategy to perform structural analysis on the corresponding target device, and generate structure judgment data;
[0058] The management module is used to generate distribution network fault data according to the electric energy judgment data and the structure judgment data, and send the distribution network fault data to the management end for processing.
[0059] The beneficial effects of the present invention are as follows:
[0060] 1. The present invention will compare the relative displacement and contour shape of each equipment part to determine whether the posture and contour shape of each equipment part have changed, thereby determining whether the equipment is abnormal. The dual judgment of the posture and contour shape of the equipment part can improve the accuracy of abnormal detection of the equipment part. On the one hand, when judging the posture change of the equipment part, the present invention will judge whether each equipment part has tilted, fallen off or moved by the slope and distance corresponding to the contour of each equipment part. The dual judgment of slope and distance can improve the accuracy of the displacement change of the equipment part. On the other hand, when judging the contour shape change of the equipment part, the present invention will judge it according to the contour similarity value calculated by the initial contour value and the current contour value, and because the amount of data when calculating the contour similarity value is relatively large, the contour similarity value will be further feedback trained, so that the accuracy of the contour shape judgment of the equipment part can be improved. In addition, compared with the manual regular maintenance method in the prior art, the present invention can also improve the efficiency of equipment abnormality detection.
[0061] 2. When the present invention determines whether the relative displacement of the equipment part has changed through the slope and distance corresponding to the contour of the equipment part, the reference slope and reference distance corresponding to the equipment part are obtained through the center point coordinates of the initial contour corresponding to the equipment part and the center point coordinates of the preset equipment part, and the current slope and current distance corresponding to the equipment part are obtained through the center point coordinates of the current contour corresponding to the equipment part and the center point coordinates of the preset equipment part. Then, the reference slope and the current slope are compared, and the reference distance and the current distance are compared to determine whether the relative displacement of the equipment part relative to the preset equipment part has changed, and further determine whether the equipment part is tilted, fallen off or moved. The dual judgment of the slope and distance generated by two coordinate points can improve the efficiency and accuracy of the judgment.
[0062] 3. When the present invention determines whether the contour of the equipment part is deformed by the contour similarity value, the contour value corresponding to each equipment part is amplified, and the contour of the equipment part is determined by the numerical ratio between the amplified contours. First, the present invention obtains the first distance between the initial contour and the center point of the reference initial contour based on all contour coordinates corresponding to the outermost part of the initial contour and the center point coordinates of the reference initial contour, and then obtains the third distance between the outermost contour of the reference initial contour and its center point by all contour coordinates corresponding to the outermost part of the reference initial contour and its center point coordinates, obtains the initial contour value by the ratio of the first distance and the third distance, and then obtains the current contour value by the same method, and finally calculates the contour similarity value based on the difference between the initial contour value and the current contour value. The accuracy of contour judgment can be improved by amplifying the data. At the same time, in order to reduce the error generated during the calculation, the present invention will further perform feedback training on the contour similarity value, and update the error value obtained by information interaction with the user, which can further improve the accuracy of the equipment part contour judgment. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 A schematic diagram of a distribution network fault processing method based on the Internet of Things provided by an embodiment of the present invention;
[0064] Figure 2 A schematic diagram of a prompt box for an abnormal contour portion provided by an embodiment of the present invention;
[0065] Figure 3 A schematic diagram of the structure of a distribution network fault processing system based on the Internet of Things provided by an embodiment of the present invention;
[0066] Figure 4 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0068] See also Figure 1 , is a schematic diagram of a distribution network fault processing method based on the Internet of Things provided by an embodiment of the present invention, Figure 1 The execution subject of the method shown may be a software and / or hardware device. The execution subject of the present application may include but is not limited to at least one of the following: user equipment, network equipment, etc. Among them, user equipment may include but is not limited to computers, smart phones, personal digital assistants (PDA) and the electronic devices mentioned above. Network equipment may include but is not limited to a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of computers or network servers, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computers. This embodiment does not limit this. It includes steps S1 to S4, as follows:
[0069] S1, acquiring a power grid topology structure of a target area, parsing the power grid topology structure to obtain a plurality of power grid branches, and power equipment corresponding to each of the power grid branches.
[0070] When automatically performing fault analysis on power equipment in the power grid system, this solution will first determine the power outage line, and then perform fault analysis on the power equipment corresponding to the power outage line. During the analysis, this solution will perform corresponding analysis on the internal power data and external structure data of the power equipment to determine whether there is an abnormality in the internal power of the power equipment and whether there is an abnormality in the external structure, so as to promptly remind the management personnel when there is a problem with the power equipment.
[0071] The target area refers to the area in the distribution station where power anomaly detection is performed, such as the transformer room in the distribution station. The grid topology refers to the line topology corresponding to the target area, which includes multiple lines in the target area and the power equipment corresponding to each line. The grid branch refers to the line branch in the target area, and the power equipment can be the transformer in the transformer room.
[0072] S2, receiving power outage information based on the power Internet of Things, locating the corresponding power grid branch as the target branch according to the power outage information, and taking the power equipment of the target branch as the target equipment.
[0073] In practical applications, the power Internet of Things can be a wireless Internet of Things. When there is a power outage in a line branch in the power grid system, it means that there may be a problem with the corresponding power equipment. Therefore, after the power Internet of Things receives the power outage information, it can determine the corresponding line branch as the target branch, that is, the line branch for abnormal analysis, so that the target equipment corresponding to the target branch can be found for subsequent fault analysis.
[0074] S3, obtaining the historical power information of the target device, comparing the historical power information with the threshold power information to generate power judgment data, calling the structure analysis strategy to perform structural analysis on the corresponding target device, and generating structure judgment data.
[0075] Among them, historical power information refers to the power data of the target device in the historical time period, such as the current data and voltage data of the target device in a certain time period before the power outage, such as one hour before the power outage. Threshold power information refers to the power threshold of the target device under normal conditions, such as the current threshold and voltage threshold of the transformer under normal conditions. By comparing the historical power information with the threshold power information, it can be determined whether the power data of the target device is abnormal. When the historical power information exceeds the threshold power information, it means that the power data of the target device is likely to be abnormal. When the historical power information does not exceed the threshold power information, it means that the power data of the target device may be normal. Therefore, the power judgment data can include data for normal judgment and data for abnormal judgment.
[0076] The structural analysis strategy refers to the strategy of fault analysis on the external structure of the electric energy equipment. Specifically, this scheme will compare the relative displacement and contour shape between the external equipment parts of the target equipment to determine whether the posture and contour shape of each equipment part have changed, so as to determine whether the equipment has any abnormality.
[0077] It is worth mentioning that the target branch may correspond to multiple power equipment, for example, the target branch may correspond to transformers, switch cabinets and other equipment. If multiple devices are tested one by one, the detection efficiency may be reduced. Therefore, the core equipment can be tested during the detection, for example, the external structure of the transformer can be tested accordingly. In practical applications, the outside of the equipment to be tested can be marked, so that after taking an image of the corresponding area, the device with the mark in the image can be determined as the final device to be tested.
[0078] Based on the above embodiment, the step S3 of "calling the structure analysis strategy to perform structure analysis on the corresponding target device and generate structure judgment data" can be implemented by the following steps:
[0079] S31, calling up the structure analysis strategy to obtain the initial image and the current image corresponding to the target device collected at the preset orientation, performing contour extraction on the device parts in the initial image and the current image based on the contour extraction model, and obtaining multiple initial contours corresponding to each device part in the initial image, and multiple current contours corresponding to each device part in the current image, wherein different device parts are pre-set with different colors.
[0080] Generally speaking, the relative displacement and contour shape between the multiple device parts corresponding to the equipment are generally fixed. If the relative displacement or contour shape between the multiple device parts changes, it is very likely that some device parts have fallen off or deformed. Therefore, in order to discover problems with the device parts and take corresponding measures in time, the present invention will determine whether the device parts have undergone displacement changes or deformation through the acquired initial image and current image in subsequent operations, thereby further determining whether the corresponding device parts have abnormalities.
[0081] Among them, the initial image and the current image taken at the preset orientation can be a front view, a top view, etc. In order to distinguish the multiple device parts corresponding to the device, different device parts can be set to different colors in advance, and then the contours corresponding to the corresponding device parts can be extracted by color. It is worth mentioning that when acquiring images, positioning points can be set to collect data so that the collection positions and angles between multiple images are corresponding.
[0082] Specifically, multiple initial contours corresponding to various device parts in the initial image and multiple current contours corresponding to various device parts in the current image can be obtained through the following steps.
[0083] S311, based on the contour extraction model, obtain the part pixel value interval corresponding to each device part in the target device, extract the pixel points located in the part pixel value interval in the initial image as the first pixel points corresponding to each device part, obtain the adjacent first pixel points to generate a first pixel point set, perform contour extraction on the first pixel point set, and obtain the initial contour corresponding to each device part of the target device in the initial image.
[0084] In practical applications, OpenCV can be used to extract the contour of the first pixel point set. Since each device part is set to a different color in advance, the pixel point corresponding to each device part can be obtained based on the pixel value interval corresponding to each device part, and then the adjacent pixel points can be used to generate a corresponding pixel point set. Finally, the contour of the pixel point set can be extracted to obtain the initial contour corresponding to each device part of the target device in the initial image.
[0085] S312, extracting pixel points in the current image that are located in the pixel value interval of each part as second pixel points corresponding to each device part, acquiring adjacent second pixel points to generate a second pixel point set, performing contour extraction on the second pixel point set, and obtaining current contours corresponding to each device part of the target device in the current image.
[0086] Similarly, OpenCV may be used to extract the contour of the second pixel point set to obtain the current contour corresponding to each device part of the target device in the current image.
[0087] Through the above method, the initial contour and current contour corresponding to each device part of the target device can be quickly acquired, thereby improving the efficiency of subsequent contour comparison.
[0088] S32, select the initial contour and the current contour corresponding to the preset device part as the baseline initial contour and the baseline current contour, and obtain the baseline slope and the baseline distance corresponding to each initial contour according to the baseline center point coordinates corresponding to each initial contour and the baseline initial contour, and obtain the current slope and the current distance corresponding to each current contour according to the current center point coordinates corresponding to each current contour and the baseline current contour.
[0089] Furthermore, after obtaining multiple initial contours corresponding to each device part in the initial image and multiple current contours corresponding to each device part in the current image, the present invention will determine whether the posture of each device part has changed based on the reference slope, reference distance, current slope and current distance.
[0090] It is understandable that when a device part tilts, falls off or moves, the slope and relative distance between the center point of the device part and the center point of the preset device part may also change accordingly. Therefore, it is possible to judge whether the posture of each device part has changed by the slope and distance corresponding to the center point of each device part and the center point of the preset device part.
[0091] The preset device position may be set in advance by the user, for example, the device position located in the middle may be selected as the preset device position.
[0092] Based on the above embodiment, the specific implementation of step S32 may be:
[0093] S321, coordinate processing is performed on the initial image and the current image, and the first reference center point coordinates are obtained according to the first initial coordinates corresponding to each initial contour, and the second reference center point coordinates are obtained according to the second initial coordinates corresponding to the reference initial contour, and the reference slope and reference distance corresponding to each initial contour and the reference initial contour are obtained based on the first reference center point coordinates and the second reference center point coordinates.
[0094] Specifically, the coordinates of the center points of the initial contours and the current contours can be obtained by performing coordinate processing on the initial image and the current image, and then the corresponding slopes and distances can be calculated based on the obtained center point coordinates.
[0095] In some embodiments, the reference slope and reference distance can be obtained by the following steps:
[0096] S3211, obtaining a first maximum x-axis coordinate value, a first minimum x-axis coordinate value, a first maximum y-axis coordinate value, and a first minimum y-axis coordinate value among a plurality of first initial coordinates corresponding to each initial contour.
[0097] It is understandable that each initial contour corresponds to multiple coordinates. Therefore, when obtaining the center point coordinates corresponding to each initial contour, the maximum x-axis coordinate value, the minimum x-axis coordinate value, the maximum y-axis coordinate value and the minimum y-axis coordinate value among the multiple coordinates can be obtained first.
[0098] S3212, obtain the first x-axis center coordinate value according to the middle value of the difference between the first maximum x-axis coordinate value and the first minimum x-axis coordinate value, obtain the first y-axis center coordinate value according to the middle value of the difference between the first maximum y-axis coordinate value and the first minimum y-axis coordinate value, and obtain the first reference center point coordinates based on the first x-axis center coordinate value and the first y-axis center coordinate value.
[0099] Furthermore, after obtaining the maximum x-axis coordinate value, minimum x-axis coordinate value, maximum y-axis coordinate value and minimum y-axis coordinate value corresponding to each initial contour, the x-axis center coordinate value can be obtained based on the middle value of the difference between the maximum x-axis coordinate value and the minimum x-axis coordinate value, and the y-axis center coordinate value can be obtained based on the middle value of the difference between the maximum y-axis coordinate value and the minimum y-axis coordinate value. Finally, the first reference center point coordinates corresponding to each initial contour can be obtained based on the obtained x-axis center coordinate value and y-axis center coordinate value.
[0100] S3213, obtaining a second maximum x-axis coordinate value, a second minimum x-axis coordinate value, a second maximum y-axis coordinate value, and a second minimum y-axis coordinate value among a plurality of second initial coordinates corresponding to the reference initial contour.
[0101] Similarly, when obtaining the center point coordinates corresponding to the reference initial contour, the maximum x-axis coordinate value, the minimum x-axis coordinate value, the maximum y-axis coordinate value and the minimum y-axis coordinate value among the multiple coordinates corresponding to the reference initial contour can also be obtained first.
[0102] S3214, obtain the second x-axis center coordinate value according to the middle value of the difference between the second maximum x-axis coordinate value and the second minimum x-axis coordinate value, obtain the second y-axis center coordinate value according to the middle value of the difference between the second maximum y-axis coordinate value and the second minimum y-axis coordinate value, and obtain the second reference center point coordinates based on the second x-axis center coordinate value and the second y-axis center coordinate value.
[0103] After obtaining the maximum x-axis coordinate value, the minimum x-axis coordinate value, the maximum y-axis coordinate value and the minimum y-axis coordinate value among the multiple coordinates corresponding to the benchmark initial contour, the x-axis center coordinate value can be obtained based on the middle value of the difference between the maximum x-axis coordinate value and the minimum x-axis coordinate value, and the y-axis center coordinate value can be obtained based on the middle value of the difference between the maximum y-axis coordinate value and the minimum y-axis coordinate value. Finally, the coordinates of the second benchmark center point corresponding to the benchmark initial contour can be obtained based on the obtained x-axis center coordinate value and y-axis center coordinate value.
[0104] S3215: Calculate a reference slope and a reference distance corresponding to each initial contour and the reference initial contour based on the first reference center point coordinates and the second reference center point coordinates.
[0105] Furthermore, after obtaining the first reference center point coordinates corresponding to each initial contour and the second reference center point coordinates corresponding to the reference initial contour, the reference slope and reference distance corresponding to each initial contour and the reference initial contour can be calculated based on the first reference center point coordinates and the second reference center point coordinates.
[0106] The reference slopes of each initial profile and the reference initial profile are calculated by the following formula:
[0107] ,
[0108] in, is the base slope, is the second y-axis center coordinate value, is the center coordinate value of the first y-axis, is the second x-axis center coordinate value, is the first x-axis center coordinate value.
[0109] The reference distance between each initial contour and the reference initial contour is calculated by the following formula:
[0110] ,
[0111] in, is the reference distance.
[0112] The reference slope and reference distance corresponding to each initial contour and the reference initial contour can be calculated by the above formula, so that the relative position and relative distance between each initial contour and the reference initial contour can be obtained by the reference slope and the reference distance.
[0113] S322, obtain the first current center point coordinates according to the first current coordinates corresponding to each current contour, obtain the second current center point coordinates according to the second current coordinates corresponding to the benchmark current contour, and obtain the current slope and current distance corresponding to each current contour and the benchmark current contour based on the first current center point coordinates and the second current center point coordinates.
[0114] Similarly, the method of obtaining the first current center point coordinates corresponding to each current contour and the second current center point coordinates corresponding to the reference current contour is similar to the method of obtaining the first reference center point coordinates and the second reference center point coordinates, which will not be repeated here.
[0115] After obtaining the first current center point coordinates and the second current center point coordinates, the current slope and current distance corresponding to each current contour and the benchmark current contour can be obtained based on the first current center point coordinates and the second current center point coordinates, and the relative position and relative distance between each current contour and the benchmark current contour can be obtained through the current slope and the current distance.
[0116] S33, classifying the initial contour and the current contour based on the device part to obtain multiple comparison sets. If the reference slope and the current slope corresponding to the initial contour and the current contour in the comparison set are inconsistent, or the corresponding reference distance and the current distance are inconsistent, the device part corresponding to the comparison set is used as the displacement abnormality part.
[0117] When the initial contours and the current contours are classified based on the equipment part to obtain a plurality of comparison sets, the initial contours and the current contours corresponding to the same equipment part may be taken as a group of comparison sets.
[0118] It can be understood that since the initial contour and the current contour in the comparison set correspond to the same device part, when no displacement abnormality occurs in the device part, the relative position and relative distance between the device part and the preset device part may not change. If the reference slope and the current slope corresponding to the initial contour and the current contour in the comparison set are inconsistent, or the corresponding reference distance and the current distance are inconsistent, it means that the device part corresponding to the comparison set may have undergone displacement changes such as tilting, falling off or moving, and therefore the corresponding device part can be regarded as a displacement abnormality part.
[0119] Through the above method, it can be determined whether the relative displacement between each device part and the preset device part has changed, thereby improving the accuracy of displacement detection of each device part.
[0120] S34, obtaining the initial contour value corresponding to the initial contour according to the contour coordinates corresponding to the initial contour in the comparison set, the contour coordinates corresponding to the benchmark initial contour, and the benchmark center point coordinates corresponding to the benchmark initial contour, and obtaining the current contour value corresponding to the current contour according to the contour coordinates corresponding to the current contour in the comparison set, the contour coordinates corresponding to the benchmark current contour, and the current center point coordinates corresponding to the benchmark current contour.
[0121] In actual applications, in addition to falling off, tilting, or moving, parts of the equipment may also be deformed. When parts of the equipment are deformed, it may also affect the normal operation of the equipment. Therefore, the present invention also makes a corresponding judgment on whether parts of the equipment are deformed.
[0122] Specifically, when judging whether a device part has been deformed, the present invention will first obtain the initial contour value of the initial contour corresponding to each device part, and the current contour value of the current contour, and then judge whether the corresponding device part has been deformed based on the initial contour value and the current contour value in subsequent steps.
[0123] Based on the above embodiment, the specific implementation of step S34 may be:
[0124] S341, extract the first contour coordinates corresponding to the initial contour edge line in each comparison set, and the second contour coordinates corresponding to the current contour edge line, calculate the first sub-distance according to each first contour coordinate and the second benchmark center point coordinate corresponding to the benchmark initial contour, and calculate the second sub-distance according to each second contour coordinate and the second current center point coordinate corresponding to the benchmark current contour.
[0125] Among them, the first contour coordinates refer to the coordinates corresponding to the outermost contour of the initial contour, and the second contour coordinates refer to the coordinates corresponding to the outermost contour of the current contour. According to the first contour coordinates and the second reference center point coordinates, the distance from the coordinate point corresponding to the outermost contour of the initial contour to the center point of the reference initial contour can be obtained, and according to the second contour coordinates and the second center point coordinates, the distance from the coordinate point corresponding to the outermost contour of the current contour to the center point of the reference current contour can be obtained.
[0126] S342 : obtaining a first distance between an initial contour in the comparison set and a reference initial contour based on all first sub-distances, and obtaining a second distance between a current contour in the comparison set and a reference current contour based on all second sub-distances.
[0127] Furthermore, the relative distance between the initial contour and the reference initial contour may be obtained by adding all the first sub-distances obtained, and the distance between the current contour and the reference current contour may be obtained by adding all the second sub-distances obtained.
[0128] S343, extract the third contour coordinates corresponding to the baseline initial contour edge line, and the fourth contour coordinates corresponding to the baseline current contour edge line, calculate the third sub-distance according to the third contour coordinates and the second baseline center point coordinates corresponding to the baseline initial contour, and calculate the fourth sub-distance according to the fourth contour coordinates and the second current center point coordinates corresponding to the baseline current contour.
[0129] Similarly, similar to the method of obtaining the first sub-distance and the second sub-distance, the distance between the coordinate point of the outermost contour of the benchmark initial contour and its center point can be obtained based on the third contour coordinates and the second benchmark center point coordinates, and the distance between the coordinate point of the outermost contour of the benchmark current contour and its center point can be obtained based on the fourth contour coordinates and the second current center point coordinates.
[0130] S344: Obtain a third distance corresponding to the reference initial contour based on all third sub-distances, and obtain a fourth distance corresponding to the reference current contour based on all fourth sub-distances.
[0131] Furthermore, adding all third sub-distances can obtain the relative distance between the outermost contour of the reference initial contour and its center point, and adding all fourth sub-distances can obtain the relative distance between the outermost contour of the reference current contour and its center point.
[0132] S345, obtaining an initial contour value corresponding to the initial contour in the comparison set according to a ratio of the first distance to the third distance, and obtaining a current contour value corresponding to the current contour in the comparison set according to a ratio of the second distance to the fourth distance.
[0133] It is understandable that if the contour corresponding to the equipment part has not been deformed, the corresponding ratio between the contours may not change. Therefore, the present invention determines whether the corresponding equipment part has been deformed by obtaining an initial contour value through the ratio between the first distance and the third distance, and a current contour value through the ratio between the second distance and the fourth distance.
[0134] S35, based on the initial contour value and the current contour value, obtain the contour similarity value corresponding to each comparison set, obtain the device part corresponding to the comparison set whose contour similarity value is less than the preset contour similarity value as the contour abnormal part, generate a prompt box corresponding to the contour abnormal part, mark the contour abnormal part based on the prompt box, and generate structure judgment data.
[0135] Among them, the structural judgment data refers to the data obtained after performing a structural fault analysis on the outside of the target equipment. The structural judgment data can be used to highlight the equipment parts with abnormalities, so that management personnel can carry out targeted processing on the equipment parts with abnormalities.
[0136] Specifically, the above-mentioned contour similarity value can be obtained through the following steps.
[0137] S351, calculating contour differences according to the initial contour values and the current contour values, and calculating contour similarity values corresponding to each comparison set based on the contour differences.
[0138] The contour similarity value is calculated by the following formula,
[0139] ,
[0140] in, is the contour similarity value, For the A first sub-distance between the first contour coordinates and the second reference center point coordinates, is the upper limit of the number of coordinates of the first contour, is the first distance, For the The third sub-distance between the third contour coordinates and the second reference center point coordinates, is the upper limit of the number of coordinates of the third contour, is the third distance, For the The second sub-distance between the second contour coordinates and the second current center point coordinates, is the upper limit of the number of coordinates of the second contour, is the second distance, For the The fourth sub-distance between the fourth contour coordinate and the second current center point coordinate, is the upper limit of the number of coordinates of the fourth contour, is the contour similarity weight value.
[0141] It can be seen from the above formula that the larger the contour difference, the greater the difference between the initial contour and the current contour of the corresponding device part. The device part is likely to have deformed, so the corresponding contour similarity value On the contrary, the smaller the contour difference is, the smaller the difference between the initial contour and the current contour of the corresponding device part may be, and the device part is likely to have no deformation, so the corresponding contour similarity value is It will also be bigger.
[0142] If the contour similarity value is less than the preset contour similarity value, it means that the contour of the device part corresponding to the comparison set is likely to be deformed, so the device part corresponding to the comparison set can be regarded as the contour abnormal part.
[0143] Since the present invention uses the distance difference between multiple coordinates to calculate the contour similarity value, there are more data during the calculation, and errors may occur during the calculation. Therefore, the present invention also trains the abnormal numerical values corresponding to the abnormal parts of the contour to improve the accuracy of the calculation.
[0144] Exemplarily, the abnormal value corresponding to the abnormal part of the contour can be trained through steps S352 to S353, as follows:
[0145] S352, obtaining the abnormal part contour corresponding to the abnormal part, and the third maximum x-axis coordinate value, the third minimum x-axis coordinate value, the third maximum y-axis coordinate value and the third minimum y-axis coordinate value among the multiple coordinates corresponding to the abnormal part contour.
[0146] It is understandable that when training the abnormal value corresponding to the abnormal part of the contour, the corresponding abnormal part of the contour can be displayed to the user first, so that the user can know the part of the equipment where the abnormality occurs, and then make corresponding processing based on the corresponding abnormal information.
[0147] When the corresponding abnormal contour part is displayed, a prompt box corresponding to the abnormal contour part may be generated, and the abnormal contour part may be displayed to the user through the prompt box.
[0148] Specifically, when generating a corresponding prompt box, the current contour corresponding to the abnormal part of the contour in the current image can be first obtained as the abnormal part contour, and then the maximum x-axis coordinate value, the minimum x-axis coordinate value, the maximum y-axis coordinate value and the minimum y-axis coordinate value among the multiple coordinates corresponding to the abnormal part contour can be obtained.
[0149] S353, generate a first vertical line according to the third maximum x-axis coordinate value, generate a second vertical line according to the third minimum x-axis coordinate value, generate a first horizontal line according to the third maximum y-axis coordinate value, generate a second horizontal line according to the third minimum y-axis coordinate value, and generate a prompt box for the abnormal contour based on the first vertical line, the second vertical line, the first horizontal line, and the second horizontal line.
[0150] Further, such as Figure 2 As shown, after obtaining the maximum x-axis coordinate value, the minimum x-axis coordinate value, the maximum y-axis coordinate value and the minimum y-axis coordinate value, the corresponding frame line can be generated by obtaining the maximum x-axis coordinate value, the minimum x-axis coordinate value, the maximum y-axis coordinate value and the minimum y-axis coordinate value, thereby generating a prompt box corresponding to the abnormal contour part.
[0151] Among them, the x-coordinate values of the coordinate points on the first vertical line are all the maximum x-axis coordinate values, that is, Figure 2 The rightmost vertical frame line in the figure has x-coordinate values of all the coordinate points on the second vertical line, which is the minimum x-axis coordinate value. Figure 2 The leftmost vertical frame line in the figure has the maximum y-axis coordinate value at the coordinate point on the first horizontal line, that is, Figure 2 The top horizontal frame line, the y-axis coordinate values of the coordinate points on the second horizontal line are all the minimum y-axis coordinate values, that is Figure 2 The bottom horizontal border.
[0152] It is worth mentioning that see Figure 2 After obtaining the first vertical line, the second vertical line, the first horizontal line, and the second horizontal line, this solution will intercept the corresponding lines at the intersection between the lines to use the range enclosed by the first vertical line, the second vertical line, the first horizontal line, and the second horizontal line as a prompt box.
[0153] S36: training and updating the preset contour similarity value according to the user's operation information on the prompt box.
[0154] It is understandable that in order to improve the accuracy of fault analysis, the preset contour similarity value can also be trained and updated through user feedback information. For example, when the user finds that the analyzed equipment part is not abnormal but the part is displayed abnormally through the prompt box, the preset contour similarity value can be adjusted through the prompt box. Specifically, step S36 can be implemented through the following steps:
[0155] S361, receiving information indicating that the prompt box is selected by the user, eliminating the prompt box, and marking the contour similarity value corresponding to the eliminated prompt box as the feedback contour similarity value.
[0156] In actual applications, it may happen that the calculated contour similarity value is less than the preset similarity value, but the contour corresponding to the equipment part has not been deformed. Therefore, the corresponding abnormal contour part can be displayed to the user through a prompt box. If the user finds that the displayed abnormal contour part has not been deformed, the abnormal contour part corresponding to the prompt box and the abnormal value corresponding to the abnormal contour part can be fed back for processing.
[0157] For example, if the preset contour similarity value is 90, and the calculated contour similarity value is 89, the calculated contour similarity value is also less than the preset contour similarity value. The system will determine the device part corresponding to this value as a contour abnormal part, but the user may find that the device part under this value may not have deformed. At this time, the corresponding contour similarity value can be marked as a feedback similarity value.
[0158] S362: Training and updating the preset contour similarity value according to the feedback contour similarity value.
[0159] During training, the feedback contour similarity value and the preset contour similarity value may be replaced and updated. For example, if the preset contour similarity value is 90 and the feedback similarity value is 89, the preset contour similarity value may be updated to 89.
[0160] Through the above method, the abnormal value corresponding to the abnormal part contour can be updated and trained, which can improve the accuracy of identifying the abnormal part contour and reduce the error in identifying the equipment part contour.
[0161] S4, generating distribution network fault data according to the electric energy judgment data and the structure judgment data, and sending the distribution network fault data to the management end for processing.
[0162] After obtaining the power judgment data and structure judgment data, the distribution network fault data can be generated, that is, the comprehensive data obtained from the power fault data and structure fault data of the power equipment. Through the distribution network fault data, the management personnel can understand the fault problems of the corresponding power equipment and make targeted processing strategies.
[0163] See also Figure 3 , is a schematic diagram of a structure of a distribution network fault processing system based on the Internet of Things provided by an embodiment of the present invention, and the distribution network fault processing system based on the Internet of Things includes:
[0164] A branch module, used to obtain a power grid topology structure of a target area, and parse the power grid topology structure to obtain a plurality of power grid branches and power equipment corresponding to each of the power grid branches;
[0165] The Internet of Things module is used to receive power outage information based on the power Internet of Things, locate the corresponding power grid branch as the target branch according to the power outage information, and use the power equipment of the target branch as the target equipment;
[0166] A judgment module is used to obtain historical power information of the target device, compare the historical power information with the threshold power information, generate power judgment data, call the structure analysis strategy to perform structural analysis on the corresponding target device, and generate structure judgment data;
[0167] The management module is used to generate distribution network fault data according to the electric energy judgment data and the structure judgment data, and send the distribution network fault data to the management end for processing.
[0168] Figure 3 The apparatus of the embodiment shown can be used to perform Figure 1The implementation principles and technical effects of the steps in the method embodiment shown are similar and will not be repeated here.
[0169] See also Figure 4 , is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention, the electronic device 40 includes: a processor 41, a memory 42 and a computer program; wherein
[0170] The memory 42 is used to store the computer program, and the memory may also be a flash memory. The computer program is, for example, an application program, a functional module, etc. for implementing the above method.
[0171] The processor 41 is used to execute the computer program stored in the memory to implement each step performed by the device in the above method. For details, please refer to the relevant description in the above method embodiment.
[0172] Optionally, the memory 42 may be independent or integrated with the processor 41 .
[0173] When the memory 42 is a device independent of the processor 41, the device may further include:
[0174] The bus 43 is used to connect the memory 42 and the processor 41 .
[0175] The present invention also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided by the various embodiments described above.
[0176] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0177] The present invention also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of a device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the device implements the methods provided in the above various embodiments.
[0178] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0179] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A distribution network fault handling method based on the Internet of Things, It is characterized in that include: Acquire a power grid topology structure of a target area, and parse the power grid topology structure to obtain a plurality of power grid branches and power equipment corresponding to each of the power grid branches; Receive power outage information based on the power Internet of Things, locate the corresponding power grid branch as the target branch according to the power outage information, and use the power equipment of the target branch as the target equipment; Acquire historical power information of the target device, compare the historical power information with the threshold power information to generate power judgment data, retrieve the structure analysis strategy to perform structure analysis on the corresponding target device, and generate structure judgment data; Generate distribution network fault data according to the electric energy judgment data and the structure judgment data, and send the distribution network fault data to the management end for processing; Retrieve the structure analysis strategy to perform structure analysis on the corresponding target device and generate structure judgment data, including: The structure analysis strategy is called to obtain the initial image and the current image corresponding to the target device collected at the preset position, and the contour of the device parts in the initial image and the current image is extracted based on the contour extraction model to obtain multiple initial contours corresponding to each device part in the initial image and multiple current contours corresponding to each device part in the current image, wherein different device parts are preset with different colors; Selecting an initial contour and a current contour corresponding to a preset device part as a reference initial contour and a reference current contour, obtaining a reference slope and a reference distance corresponding to each initial contour according to the reference center point coordinates corresponding to each initial contour and the reference initial contour, and obtaining a current slope and a current distance corresponding to each current contour according to the current center point coordinates corresponding to each current contour and the reference current contour; The initial contour and the current contour are classified based on the device part to obtain a plurality of comparison sets. If the reference slope and the current slope corresponding to the initial contour and the current contour in the comparison set are inconsistent, or the corresponding reference distance and the current distance are inconsistent, the device part corresponding to the comparison set is regarded as the displacement abnormal part; Obtain an initial contour value corresponding to the initial contour according to the contour coordinates corresponding to the initial contour in the comparison set, the contour coordinates corresponding to the benchmark initial contour, and the benchmark center point coordinates corresponding to the benchmark initial contour; obtain a current contour value corresponding to the current contour according to the contour coordinates corresponding to the current contour in the comparison set, the contour coordinates corresponding to the benchmark current contour, and the current center point coordinates corresponding to the benchmark current contour; Based on the initial contour value and the current contour value, a contour similarity value corresponding to each comparison set is obtained, and a device part corresponding to the comparison set whose contour similarity value is less than a preset contour similarity value is obtained as a contour abnormal part, a prompt box corresponding to the contour abnormal part is generated, and the contour abnormal part is marked based on the prompt box to generate structure judgment data; The preset contour similarity value is trained and updated according to the user's operation information on the prompt box.
2. The method according to claim 1, It is characterized in that Based on the contour extraction model, contours of the device parts in the initial image and the current image are extracted to obtain a plurality of initial contours corresponding to the device parts in the initial image and a plurality of current contours corresponding to the device parts in the current image, including: Based on the contour extraction model, the part pixel value interval corresponding to each device part in the target device is obtained, the pixel points located in the part pixel value interval in the initial image are extracted as the first pixel points corresponding to each device part, the adjacent first pixel points are obtained to generate a first pixel point set, and the contour is extracted on the first pixel point set to obtain the initial contour corresponding to each device part of the target device in the initial image; Pixel points in the current image that are located in the pixel value interval of each part are extracted as second pixel points corresponding to each device part, adjacent second pixel points are obtained to generate a second pixel point set, and contour extraction is performed on the second pixel point set to obtain the current contour corresponding to each device part of the target device in the current image.
3. The method according to claim 2, It is characterized in that According to the coordinates of the reference center points corresponding to each initial contour and the reference initial contour, the reference slope and reference distance corresponding to each initial contour are obtained; according to the coordinates of the current center points corresponding to each current contour and the reference current contour, the current slope and current distance corresponding to each current contour are obtained, including: Performing coordinate processing on the initial image and the current image, obtaining the first reference center point coordinates according to the first initial coordinates corresponding to each initial contour, obtaining the second reference center point coordinates according to the second initial coordinates corresponding to the reference initial contour, and obtaining the reference slope and reference distance corresponding to each initial contour and the reference initial contour based on the first reference center point coordinates and the second reference center point coordinates; The first current center point coordinates are obtained according to the first current coordinates corresponding to each current contour, the second current center point coordinates are obtained according to the second current coordinates corresponding to the benchmark current contour, and the current slope and current distance corresponding to each current contour and the benchmark current contour are obtained based on the first current center point coordinates and the second current center point coordinates.
4. The method according to claim 3, It is characterized in that Obtaining first reference center point coordinates according to first initial coordinates corresponding to each initial contour, obtaining second reference center point coordinates according to second initial coordinates corresponding to the reference initial contour, and obtaining reference slopes and reference distances corresponding to each initial contour and the reference initial contour based on the first reference center point coordinates and the second reference center point coordinates, including: Obtaining a first maximum x-axis coordinate value, a first minimum x-axis coordinate value, a first maximum y-axis coordinate value, and a first minimum y-axis coordinate value among a plurality of first initial coordinates corresponding to each initial contour; Obtain a first x-axis center coordinate value according to the middle value of the difference between the first maximum x-axis coordinate value and the first minimum x-axis coordinate value, obtain a first y-axis center coordinate value according to the middle value of the difference between the first maximum y-axis coordinate value and the first minimum y-axis coordinate value, and obtain a first reference center point coordinate based on the first x-axis center coordinate value and the first y-axis center coordinate value; Obtaining a second maximum x-axis coordinate value, a second minimum x-axis coordinate value, a second maximum y-axis coordinate value, and a second minimum y-axis coordinate value among a plurality of second initial coordinates corresponding to the reference initial contour; Obtain a second x-axis center coordinate value according to the middle value of the difference between the second maximum x-axis coordinate value and the second minimum x-axis coordinate value, obtain a second y-axis center coordinate value according to the middle value of the difference between the second maximum y-axis coordinate value and the second minimum y-axis coordinate value, and obtain a second reference center point coordinate based on the second x-axis center coordinate value and the second y-axis center coordinate value; A reference slope and a reference distance corresponding to each initial contour and the reference initial contour are calculated based on the first reference center point coordinates and the second reference center point coordinates.
5. The method according to claim 4, It is characterized in that The reference slope and reference distance corresponding to each initial contour and the reference initial contour are calculated based on the coordinates of the first reference center point and the coordinates of the second reference center point, including: The reference slopes of each initial profile and the reference initial profile are calculated by the following formula: in, is the base slope, is the second y-axis center coordinate value, is the center coordinate value of the first y-axis, is the second x-axis center coordinate value, is the center coordinate value of the first x-axis; The reference distance between each initial contour and the reference initial contour is calculated by the following formula: in, is the reference distance.
6. The method according to claim 5, It is characterized in that The initial contour value corresponding to the initial contour is obtained according to the contour coordinates corresponding to the initial contour in the comparison set, the contour coordinates corresponding to the reference initial contour, and the reference center point coordinates corresponding to the reference initial contour. The current contour value corresponding to the current contour is obtained according to the contour coordinates corresponding to the current contour in the comparison set, the contour coordinates corresponding to the reference current contour, and the current center coordinates corresponding to the reference current contour, including: Extracting the first contour coordinates corresponding to the initial contour edge line and the second contour coordinates corresponding to the current contour edge line in each comparison set, calculating the first sub-distance according to each first contour coordinate and the second reference center point coordinate corresponding to the reference initial contour, and calculating the second sub-distance according to each second contour coordinate and the second current center point coordinate corresponding to the reference current contour; Obtaining a first distance between an initial contour in the comparison set and a reference initial contour based on all first sub-distances, and obtaining a second distance between a current contour in the comparison set and a reference current contour based on all second sub-distances; Extracting the third contour coordinates corresponding to the edge line of the reference initial contour and the fourth contour coordinates corresponding to the edge line of the reference current contour, calculating the third sub-distance according to each third contour coordinate and the second reference center point coordinate corresponding to the reference initial contour, and calculating the fourth sub-distance according to each fourth contour coordinate and the second current center point coordinate corresponding to the reference current contour; Based on all the third sub-distances, a third distance corresponding to the reference initial contour is obtained; based on all the fourth sub-distances, a fourth distance corresponding to the reference current contour is obtained; An initial contour value corresponding to the initial contour in the comparison set is obtained according to a ratio of the first distance to the third distance, and a current contour value corresponding to the current contour in the comparison set is obtained according to a ratio of the second distance to the fourth distance.
7. The method according to claim 6, It is characterized in that Based on the initial contour value and the current contour value, the contour similarity value corresponding to each comparison set is obtained, including: The contour difference is calculated according to the initial contour value and the current contour value, and the contour similarity value corresponding to each comparison set is calculated based on the contour difference; The contour similarity value is calculated by the following formula, in, is the contour similarity value, For the A first sub-distance between the first contour coordinates and the second reference center point coordinates, is the upper limit of the number of coordinates of the first contour, is the first distance, For the The third sub-distance between the third contour coordinates and the second reference center point coordinates, is the upper limit of the number of coordinates of the third contour, is the third distance, For the The second sub-distance between the second contour coordinates and the second current center point coordinates, is the upper limit of the number of coordinates of the second contour, is the second distance, For the The fourth sub-distance between the fourth contour coordinate and the second current center point coordinate, is the upper limit of the number of coordinates of the fourth contour, is the contour similarity weight value.
8. The method according to claim 1, It is characterized in that The generating of a prompt box corresponding to the abnormal contour part and marking the abnormal contour part based on the prompt box includes: Acquire the abnormal part contour corresponding to the contour abnormal part, and the third maximum x-axis coordinate value, the third minimum x-axis coordinate value, the third maximum y-axis coordinate value, and the third minimum y-axis coordinate value among the multiple coordinates corresponding to the abnormal part contour; A first vertical line is generated according to the third maximum x-axis coordinate value, a second vertical line is generated according to the third minimum x-axis coordinate value, a first horizontal line is generated according to the third maximum y-axis coordinate value, a second horizontal line is generated according to the third minimum y-axis coordinate value, and a prompt box for the abnormal contour portion is generated based on the first vertical line, the second vertical line, the first horizontal line, and the second horizontal line.
9. The method according to claim 8, It is characterized in that Training and updating the preset contour similarity value according to the user's operation information on the prompt box includes: receiving user selection information of the prompt box, eliminating the prompt box, and marking the contour similarity value corresponding to the eliminated prompt box as the feedback contour similarity value; The preset contour similarity value is trained and updated according to the feedback contour similarity value.
10. A distribution network fault handling system based on the Internet of Things, It is characterized in that include: A branch module, used to obtain a power grid topology structure of a target area, and parse the power grid topology structure to obtain a plurality of power grid branches and power equipment corresponding to each of the power grid branches; The Internet of Things module is used to receive power outage information based on the power Internet of Things, locate the corresponding power grid branch as the target branch according to the power outage information, and use the power equipment of the target branch as the target equipment; A judgment module is used to obtain historical power information of the target device, compare the historical power information with the threshold power information, generate power judgment data, call the structure analysis strategy to perform structural analysis on the corresponding target device, and generate structure judgment data; A management module, used to generate distribution network fault data according to the electric energy judgment data and the structure judgment data, and send the distribution network fault data to a management terminal for processing; Retrieve the structure analysis strategy to perform structure analysis on the corresponding target device and generate structure judgment data, including: The structure analysis strategy is called to obtain the initial image and the current image corresponding to the target device collected at the preset position, and the contour of the device parts in the initial image and the current image is extracted based on the contour extraction model to obtain multiple initial contours corresponding to each device part in the initial image and multiple current contours corresponding to each device part in the current image, wherein different device parts are preset with different colors; Selecting an initial contour and a current contour corresponding to a preset device part as a reference initial contour and a reference current contour, obtaining a reference slope and a reference distance corresponding to each initial contour according to the reference center point coordinates corresponding to each initial contour and the reference initial contour, and obtaining a current slope and a current distance corresponding to each current contour according to the current center point coordinates corresponding to each current contour and the reference current contour; The initial contour and the current contour are classified based on the device part to obtain a plurality of comparison sets. If the reference slope and the current slope corresponding to the initial contour and the current contour in the comparison set are inconsistent, or the corresponding reference distance and the current distance are inconsistent, the device part corresponding to the comparison set is regarded as the displacement abnormal part; Obtain an initial contour value corresponding to the initial contour according to the contour coordinates corresponding to the initial contour in the comparison set, the contour coordinates corresponding to the benchmark initial contour, and the benchmark center point coordinates corresponding to the benchmark initial contour; obtain a current contour value corresponding to the current contour according to the contour coordinates corresponding to the current contour in the comparison set, the contour coordinates corresponding to the benchmark current contour, and the current center point coordinates corresponding to the benchmark current contour; Based on the initial contour value and the current contour value, a contour similarity value corresponding to each comparison set is obtained, and a device part corresponding to the comparison set whose contour similarity value is less than a preset contour similarity value is obtained as a contour abnormal part, a prompt box corresponding to the contour abnormal part is generated, and the contour abnormal part is marked based on the prompt box to generate structure judgment data; The preset contour similarity value is trained and updated according to the user's operation information on the prompt box.
