Method and device for establishing temporary fence barrier model for substation path

The method and device provide visual monitoring of substation environments by constructing a temporary fence barrier model through image segmentation and edge detection, enabling real-time display of equipment distribution and path division.

CN114240987BActive Publication Date: 2024-12-03GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111432561.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2024-12-03
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

Existing methods for monitoring substation operating status lack visual monitoring capabilities, limiting the ability to intuitively understand the distribution and status of power equipment.

Method used

A method and device for establishing a temporary fence barrier model in substations, involving constructing a physical model, performing image segmentation and edge detection on panoramic images to set a predetermined model at equipment boundaries, creating a visible fence model for path division.

Benefits of technology

Enables real-time, intuitive display of equipment distribution and operating status, facilitating path division and temporary fencing, enhancing visual monitoring of substation environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114240987B_ABST
    Figure CN114240987B_ABST
Patent Text Reader

Abstract

The present application relates to a method and device for establishing a temporary fence barrier model for a substation path. The method comprises: constructing a physical model of the substation; performing image segmentation processing on a panoramic image of the physical model of the substation to obtain a channel spacing image of the power equipment in the substation; performing edge detection processing on the channel spacing image of the power equipment to obtain the boundary positions of each power equipment in the substation; setting a predetermined model at the boundary position of each power equipment in the substation to obtain a model of a temporary fence barrier for the path of the substation; the predetermined model is used to be visible during testing or construction. The present method realizes the path division of the substation, establishes a temporary fence, and can intuitively display the distribution of each device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of substations, and in particular to a method, device, computer equipment, storage medium and computer program product for establishing a temporary fence barrier model for a substation path. Background Art

[0002] As we all know, in the power supply system, the voltage conversion and distribution of the system are realized with the help of substations, which are the hubs connecting various power grids. Therefore, it is very important to grasp the operating status of substations in real time for the maintenance of substations.

[0003] At present, the operating status of substations is mostly determined by collecting monitoring data of substations through monitoring equipment. Although this method can achieve a certain degree of understanding of substations, it cannot achieve visual monitoring of substations. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for establishing a temporary fence barrier model for a substation path in order to address the above-mentioned technical problem of being unable to perform visual monitoring of the substation.

[0005] In a first aspect, the present application provides a method for establishing a temporary fence barrier model for a substation path. The method comprises:

[0006] Construct a physical model of the substation;

[0007] Performing image segmentation processing on the panoramic image of the substation entity model to obtain a channel interval image of the power equipment in the substation;

[0008] Performing edge detection processing on the channel interval image of the power equipment to obtain the boundary position of each power equipment of the substation;

[0009] A predetermined model is set at the boundary position of each power equipment of the substation to obtain a temporary fence barrier model of the path of the substation; the predetermined model is used to be in a visible state during testing or construction.

[0010] In one embodiment, the step of constructing a physical model of a substation includes:

[0011] Constructing an initial substation entity model of tetrahedral mesh based on the substation entity model data;

[0012] Meshing the initial substation entity model to obtain a substation entity model of a hexahedral mesh;

[0013] The quality of the substation entity model of the hexahedral grid is optimized to obtain the substation entity model.

[0014] In one embodiment, the performing image segmentation processing on the panoramic image of the physical model of the substation to obtain the channel interval image of the power equipment in the substation includes:

[0015] Determining a current segmentation threshold, and segmenting the panoramic image into a target area image and a background area image based on the current segmentation threshold;

[0016] Acquire a first accumulated residual entropy of the target area image and a second accumulated residual entropy of the background area image;

[0017] If the sum of the first accumulated residual entropy and the second accumulated residual entropy is less than or equal to a critical value, the current segmentation threshold is increased to obtain a new segmentation threshold, and the step of dividing the panoramic image into a target area image and a background area image based on the current segmentation threshold is returned to until the sum of the first accumulated residual entropy and the second accumulated residual entropy is greater than a critical value to obtain a target segmentation threshold;

[0018] The panoramic image is segmented by the target segmentation threshold, and the obtained target area image is used as the channel interval image of the power equipment in the substation.

[0019] In one embodiment, the obtaining of the first accumulated residual entropy of the target area image and the second accumulated residual entropy of the background area image includes:

[0020] Acquire the probability density of the target area image and the probability density of the background area image;

[0021] Based on the probability density of the target area image and the probability density of the background area image, respectively obtain the probability distribution of the target area image and the probability distribution of the background area image;

[0022] Based on the probability distribution of the target area image, obtaining a first cumulative residual entropy of the target area image;

[0023] Based on the probability distribution of the background area image, a second cumulative residual entropy of the background area image is obtained.

[0024] In one embodiment, the performing edge detection processing on the channel interval image of the power equipment to obtain the boundary position of each power equipment of the substation includes:

[0025] Performing convolution filtering on the channel interval image of the electric power equipment to obtain a filtered image;

[0026] Calculating the gradient amplitude components of the filtered image in the horizontal direction and the vertical direction to obtain a gradient amplitude image corresponding to the filtered image;

[0027] The gradient amplitude image is subjected to non-maximum suppression processing to obtain the boundary position of each power equipment of the substation.

[0028] In one embodiment, performing non-maximum suppression processing on the gradient amplitude image to obtain the boundary position of each power equipment of the substation includes:

[0029] Performing non-maximum suppression processing on the gradient amplitude image to obtain a suppressed image;

[0030] Performing threshold processing on the suppressed image using a high threshold and a low threshold respectively to obtain a first edge image and a second edge image;

[0031] The first edge image is corrected based on the second edge image to obtain a target edge image, and the boundary positions in the target edge image are used as the boundary positions of each device in the substation.

[0032] In a second aspect, the present application also provides a device for establishing a temporary fence barrier model for a substation path.

[0033] The device comprises:

[0034] A construction module for constructing a physical model of a substation;

[0035] A segmentation module, used to perform image segmentation processing on the panoramic image of the substation entity model to obtain a channel interval image of the power equipment in the substation;

[0036] A detection module, used to perform edge detection processing on the channel interval image of the power equipment to obtain the boundary position of each power equipment of the substation;

[0037] The setting module is used to set a predetermined model at the boundary position of each power equipment of the substation to obtain a temporary fence barrier model of the path of the substation; the predetermined model is used to be in a visible state during testing or construction.

[0038] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0039] Construct a physical model of the substation;

[0040] Performing image segmentation processing on the panoramic image of the substation entity model to obtain a channel interval image of the power equipment in the substation;

[0041] Performing edge detection processing on the channel interval image of the power equipment to obtain the boundary position of each power equipment of the substation;

[0042] A predetermined model is set at the boundary position of each power equipment of the substation to obtain a model of a temporary fence barrier on the path of the substation; the predetermined model is used to be in a visible state during testing or construction.

[0043] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0044] Construct a physical model of the substation;

[0045] Performing image segmentation processing on the panoramic image of the substation entity model to obtain a channel interval image of the power equipment in the substation;

[0046] Performing edge detection processing on the channel interval image of the power equipment to obtain the boundary position of each power equipment of the substation;

[0047] A predetermined model is set at the boundary position of each power equipment of the substation to obtain a model of a temporary fence barrier on the path of the substation; the predetermined model is used to be in a visible state during testing or construction.

[0048] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0049] Construct a physical model of the substation;

[0050] Performing image segmentation processing on the panoramic image of the substation entity model to obtain a channel interval image of the power equipment in the substation;

[0051] Performing edge detection processing on the channel interval image of the power equipment to obtain the boundary position of each power equipment of the substation;

[0052] A predetermined model is set at the boundary position of each power equipment of the substation to obtain a model of a temporary fence barrier on the path of the substation; the predetermined model is used to be in a visible state during testing or construction.

[0053] The above-mentioned method, device, computer equipment, storage medium and computer program product for establishing a temporary fence barrier model for a substation path, after constructing a physical model of the substation, sequentially perform image segmentation processing and edge detection processing on the panoramic image of the physical model of the substation to obtain the boundary positions of various power equipment in the substation, and finally set a predetermined model at the boundary positions of various power equipment in the substation to obtain a model of a temporary fence barrier for the path of the substation. When conducting tests or construction, the fence model is set to a visible state to indicate that the passage is impassable. This method realizes the path division of the substation, establishes a temporary fence, can intuitively display the distribution of various equipment, is simple and practical, and can display the operating status of the equipment in real time. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 A schematic diagram of a flow chart of a method for establishing a temporary fence barrier model for a substation path in one embodiment;

[0055] Figure 2 A schematic diagram of a construction process of a substation entity model in an embodiment;

[0056] Figure 3 A schematic diagram of a process of edge detection processing on a channel interval image of an electric power device in one embodiment;

[0057] Figure 4 It is a schematic diagram of a process of performing image segmentation processing on a panoramic image of a physical model of a substation in one embodiment;

[0058] Figure 5 A structural block diagram of a device for establishing a temporary fence barrier model for a substation path in one embodiment;

[0059] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0061] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.

[0062] In one embodiment, Figure 1As shown, a method for establishing a temporary fence barrier model for a substation path is provided. This embodiment uses the method applied to a terminal as an example for illustration. It is understandable that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the terminal can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented as an independent server or a server cluster consisting of multiple servers. In this embodiment, the method includes the following steps:

[0063] Step S110, constructing a physical model of a substation.

[0064] Among them, the substation entity model is a digital twin model. The digital twin fully utilizes the physical model, sensor update, operation history and other data, integrates multi-disciplinary, multi-physical quantity, multi-scale, and multi-probability simulation processes, and completes the mapping in the virtual space, thereby reflecting the full life cycle of the corresponding physical equipment. Digital twin is a concept that transcends reality and can be regarded as a digital mapping system of one or more important and interdependent equipment systems.

[0065] In the specific implementation, Figure 2 As shown, it is a schematic diagram of the construction process of the substation entity model. The substation entity model data can be read from the file, and the constrained tetrahedral mesh generation method is used to mesh the substation three-dimensional entity model to generate a tetrahedral mesh as the initial substation entity model of the tetrahedral mesh. The initial substation entity model is then meshed. Specifically, the tetrahedral mesh can be decomposed into hexahedral meshes using the tetrahedral conversion method to obtain the substation entity model of the hexahedral mesh. The mesh quality of the substation entity model of the hexahedral mesh is optimized to obtain the substation entity model.

[0066] Step S120, performing image segmentation processing on the panoramic image of the physical model of the substation to obtain a channel interval image of the power equipment in the substation.

[0067] In a specific implementation, the panoramic image of the physical model of the substation can be segmented based on the threshold segmentation method. More specifically, an initial segmentation threshold is first determined as the current segmentation threshold, and the panoramic image is segmented into a target area image and a background area image based on the current segmentation threshold, and the first cumulative residual entropy of the target area image and the second cumulative residual entropy of the background area image are obtained; if the sum of the first cumulative residual entropy and the second cumulative residual entropy is less than or equal to the critical value, the current segmentation threshold is increased to obtain a new segmentation threshold, and the step of dividing the panoramic image into the target area image and the background area image based on the current segmentation threshold is returned until the sum of the first cumulative residual entropy and the second cumulative residual entropy is greater than the critical value to obtain the target segmentation threshold; the panoramic image is segmented by the target segmentation threshold, and the obtained target area image is used as the channel spacing image of the power equipment in the substation.

[0068] Step S130 , edge detection processing is performed on the channel interval image of the power equipment to obtain the boundary position of each power equipment in the substation.

[0069] In the specific implementation, refer to Figure 3 , which is a flow chart of edge detection processing for the channel interval image of the power equipment, uses a Gaussian filter to perform convolution filtering processing on the channel interval image of the power equipment to obtain a filtered image; calculates the gradient amplitude components of the filtered image in the horizontal and vertical directions to obtain the gradient amplitude image and gradient direction corresponding to the filtered image; performs non-maximum suppression processing on the gradient amplitude image to obtain a suppressed image; uses a high threshold and a low threshold to threshold the suppressed image to obtain a first edge image and a second edge image; corrects the first edge image based on the second edge image to obtain a target edge image, and uses the boundary position in the target edge image as the boundary position of each device in the substation.

[0070] Step S140, setting a predetermined model at the boundary position of each power equipment in the substation to obtain a temporary fence barrier model of the substation path; the predetermined model is used to be in a visible state during testing or construction.

[0071] In the specific implementation, after determining the boundary position of each power equipment in the substation, a predetermined model is set at the boundary position. The predetermined model can be in two states: visible and transparent. When conducting tests or construction, the predetermined model is set to a visible state, indicating that the passage is impassable. During normal operation, the predetermined model is set to a transparent state, indicating that normal passage is possible.

[0072] In the above-mentioned method for establishing a temporary fence barrier model for a substation path, after constructing the physical model of the substation, the panoramic image of the physical model of the substation is subjected to image segmentation processing and edge detection processing in sequence to obtain the boundary positions of various power equipment in the substation, and finally a predetermined model is set at the boundary positions of various power equipment in the substation to obtain a model of a temporary fence barrier for the path of the substation. When conducting tests or construction, the fence model is set to a visible state, indicating that the channel is impassable, thereby realizing the path division of the substation and establishing a temporary fence, which can intuitively display the distribution of various equipment, is simple and practical, and can also display the operating status of the equipment in real time.

[0073] In an exemplary embodiment, the above step S110 constructs a substation entity model, specifically including: constructing an initial substation entity model of a tetrahedral mesh based on the substation entity model data; meshing the initial substation entity model to obtain a substation entity model of a hexahedral mesh; and performing quality optimization processing on the mesh of the substation entity model of the hexahedral mesh to obtain the substation entity model.

[0074] Among them, the substation entity model data includes constraints such as points, lines, and surfaces.

[0075] In the specific implementation, the substation entity model data including constraints such as points, lines, and faces is first read from the file, and the three-dimensional entity model of the substation is meshed using the constrained tetrahedral mesh generation method to generate a tetrahedral mesh substation entity model. More specifically, the construction process of the tetrahedral mesh substation entity model includes: first, the Delaunay tetrahedral unit mesh is constructed from the three-dimensional point set using the point-by-point insertion method; each face in the entity model is meshed using the triangulation method, the generated line segments and triangular face patches are stored in the line segment list and face patch list, and the redundant line segments are deleted; then, a constrained tetrahedron is formed, the lost line segments and faces are detected, and the line segments and faces here are the given line segments and faces in the tetrahedral mesh, and the lost line segments and faces are restored to achieve boundary position consistency; finally, the mesh is optimized using optimization methods such as edge flipping, deleting free nodes or inserting new nodes to improve the mesh quality; the tetrahedral mesh is decomposed into a hexahedral mesh using the tetrahedral conversion method; and the mesh quality is optimized.

[0076] In this embodiment, a physical model of the substation is first constructed, so as to further determine the boundary positions of various power equipment in the substation from the physical model of the substation, thereby realizing the establishment of a temporary fence barrier model for the substation path.

[0077] In an exemplary embodiment, the above-mentioned step S120 performs image segmentation processing on the panoramic image of the substation entity model to obtain the channel spacing image of the power equipment in the substation, which can be achieved in the following manner: determine the current segmentation threshold, and divide the panoramic image into a target area image and a background area image based on the current segmentation threshold; obtain the first cumulative residual entropy of the target area image and the second cumulative residual entropy of the background area image; if the sum of the first cumulative residual entropy and the second cumulative residual entropy is less than or equal to the critical value, increase the current segmentation threshold to obtain a new segmentation threshold, and return to the step of dividing the panoramic image into a target area image and a background area image based on the current segmentation threshold until the sum of the first cumulative residual entropy and the second cumulative residual entropy is greater than the critical value to obtain the target segmentation threshold; segment the panoramic image according to the target segmentation threshold, and use the obtained target area image as the channel spacing image of the power equipment in the substation.

[0078] In a specific implementation, the specific method of segmenting a panoramic image into a target area image and a background area image based on the current segmentation threshold can be: obtaining the grayscale value of each pixel in the divided image, and taking the pixel area with a grayscale value less than the segmentation threshold as the target area; taking the pixel area with a grayscale value greater than or equal to the segmentation threshold as the background area, taking the image of the target area as the target area image, and taking the image of the background area as the background area image.

[0079] If the first cumulative residual entropy of the target area image is H O , the second cumulative residual entropy of the background area image is H B , then the target segmentation threshold T * It can be expressed by the following relationship:

[0080] T * = arg max[H O (T)+H B (T)]

[0081] Further, in an exemplary embodiment, the first cumulative residual entropy of the target area image and the second cumulative residual entropy of the background area image can be determined in the following manner: obtaining the probability density of the target area image and the probability density of the background area image; based on the probability density of the target area image and the probability density of the background area image, respectively obtaining the probability distribution of the target area image and the probability distribution of the background area image; based on the probability distribution of the target area image, obtaining the first cumulative residual entropy of the target area image; based on the probability distribution of the background area image, obtaining the second cumulative residual entropy of the background area image.

[0082] In the specific implementation, if the segmentation threshold is set to T, the image of the pixel area above the segmentation threshold T is used as the background area image, and the image of the pixel area below the segmentation threshold T is used as the target area image. Thus, the probability density P of the target area image can be obtained. o and the probability density P of the background area B They are:

[0083]

[0084]

[0085] Among them, P i represents the probability of a pixel with gray level i, P t represents the probability of a pixel with gray level T, L represents the critical value of the segmentation threshold, if the number of pixels with gray level i in the image is N i , f(x,y) represents the gray value at the pixel point (x,y), then the probability Pi of a pixel with gray level i can be expressed as:

[0086]

[0087] Where M×N represents the total number of pixels in the image. According to formula (1) and the definition of probability distribution function, the probability distribution function of the entire image can be obtained as:

[0088]

[0089] According to the definition of cumulative residual entropy, the cumulative residual entropy H of the entire image can be obtained: ch for:

[0090]

[0091] Based on the probability density P of the target area image O and the probability density P of the background area B , we can get the probability distribution F of the target area image O and the probability distribution F of the background area B They are:

[0092]

[0093]

[0094] Furthermore, according to the definition of cumulative residual entropy, we can know the first cumulative residual entropy H of the target area image: O And the second cumulative residual entropy H of the background area image B They are:

[0095]

[0096]

[0097] In order to facilitate those skilled in the art to understand the method of performing image segmentation processing on the panoramic image of the substation entity model in this embodiment, the following will be combined with the attached Figure 4 This embodiment is further described.

[0098] refer to Figure 4 , which is a flow chart of image segmentation processing for a panoramic image of a substation entity model. A panoramic image of a grid-divided substation entity model is input, and the grayscale probability Pi is calculated. The probability distribution function F(i) is determined based on the grayscale probability Pi. An initial segmentation threshold T=1 is given. The panoramic image is divided into a target area image and a background area image based on the initial segmentation threshold, and the sum of the cumulative residual entropies of the target area image and the background area image is calculated. When the sum of the cumulative residual entropies is less than or equal to the critical value L, the segmentation threshold T is added by 1 to obtain a new segmentation threshold. The panoramic image is re-segmented based on the new segmentation threshold, and the sum of the cumulative residual entropies of the new target area image and the new background area image is calculated. The sum is compared with the critical value L again until the sum of the cumulative residual entropies is greater than the critical value L, and the target segmentation threshold is obtained. The panoramic image is segmented by the target segmentation threshold, and the obtained target area image is used as the channel interval image of the power equipment in the substation.

[0099] In this embodiment, by cyclically debugging the segmentation threshold, a segmentation threshold is obtained when the sum of the first cumulative residual entropy of the target area image and the second cumulative residual entropy of the background area image is greater than a critical value. This is used as the target segmentation threshold to segment the panoramic image, which can improve the accuracy of the segmentation result.

[0100] In an exemplary embodiment, the above-mentioned step S130 performs edge detection processing on the channel interval image of the power equipment to obtain the boundary positions of each power equipment in the substation, which can be achieved in the following manner: performing convolution filtering processing on the channel interval image of the power equipment to obtain a filtered image; calculating the gradient amplitude components of the filtered image in the horizontal and vertical directions to obtain a gradient amplitude image corresponding to the filtered image; performing non-maximum suppression processing on the gradient amplitude image to obtain the boundary positions of each power equipment in the substation.

[0101] Furthermore, in an exemplary embodiment, non-maximum suppression processing is performed on the gradient amplitude image to obtain the boundary positions of each power equipment in the substation, including: performing non-maximum suppression processing on the gradient amplitude image to obtain a suppressed image; thresholding the suppressed image using a high threshold and a low threshold respectively to obtain a first edge image and a second edge image; correcting the first edge image based on the second edge image to obtain a target edge image, and using the boundary positions in the target edge image as the boundary positions of each equipment in the substation.

[0102] In the specific implementation, the edge detection method based on the Canny operator can be used to determine the boundary position of each device in the substation. The specific process is as follows:

[0103] (1) Use a Gaussian filter to perform convolution filtering on the channel interval image of the power equipment to filter out noise and reduce the impact of noise on gradient calculation. The filtered image can be expressed as:

[0104]

[0105] (2) Use the first-order difference operator to calculate the gradient magnitude components in the horizontal and vertical directions, thereby obtaining the gradient magnitude M and the gradient direction α of the image.

[0106] (3) Non-maximum suppression. Traverse each pixel on the gradient magnitude image M(i, j), interpolate and calculate the gradient magnitude of the two adjacent pixels in the gradient direction of the current pixel. If the gradient magnitude of the current pixel is greater than or equal to these two values, then the point may be an edge point. Otherwise, the pixel is a non-edge pixel. The suppressed image obtained after non-maximum suppression is marked as g N (x, y).

[0107] (4) Dual threshold detection and edge connection. Using high threshold T H and low threshold T L To extract the edge, traverse the image g N (x, y), generally the ratio of high threshold to low threshold should be 2:1 or 3:1, and the high threshold and low threshold are used for thresholding to obtain the edge image g NH (x, y) and g NL (x, y).g NH (x, y) is a strong edge point, all pixels are assumed to be valid edge pixels and are marked immediately, but there may be discontinuities; g NL (x, y) is a weak edge point, and pseudo edge points may appear. Tracking g NH The edge in (x, y) is detected when the endpoint is in image g. NL Search for edge points in the 8-neighborhood of the corresponding position of (x, y) to connect the strong edge g NH(x, y) in the discontinuity, continuously search for tracking edges, and convert the high threshold image g NH The edges in (x, y) are connected discontinuously.

[0108] In this embodiment, by first performing convolution filtering on the channel interval image of the power equipment, noise can be filtered out to reduce the impact of noise on subsequent gradient calculations. After obtaining a suppressed image through non-maximum suppression processing, a double threshold is used to perform threshold processing on the suppressed image. The first edge image obtained through high threshold processing is corrected by the second edge image obtained through low threshold processing, which can improve the accuracy of the boundary position of each power equipment in the substation.

[0109] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0110] Based on the same inventive concept, the embodiment of the present application also provides a substation path temporary fence barrier model establishment device for implementing the above-mentioned substation path temporary fence barrier model establishment method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in one or more substation path temporary fence barrier model establishment device embodiments provided below can refer to the above-mentioned limitations on the substation path temporary fence barrier model establishment method, and will not be repeated here.

[0111] In one embodiment, Figure 5 As shown, a device for establishing a temporary fence barrier model for a substation path is provided, comprising: a construction module 510, a segmentation module 520, a detection module 530 and a setting module 540, wherein:

[0112] A construction module 510 is used to construct a substation entity model;

[0113] The segmentation module 520 is used to perform image segmentation processing on the panoramic image of the substation entity model to obtain a channel interval image of the power equipment in the substation;

[0114] The detection module 530 is used to perform edge detection processing on the channel interval image of the power equipment to obtain the boundary position of each power equipment in the substation;

[0115] The setting module 540 is used to set a predetermined model at the boundary position of each power equipment in the substation to obtain a temporary fence barrier model of the substation path; the predetermined model is used to be in a visible state during testing or construction.

[0116] In one embodiment, the above-mentioned construction module 510 is specifically used to construct an initial substation entity model of a tetrahedral mesh based on the substation entity model data; mesh the initial substation entity model to obtain a substation entity model of a hexahedral mesh; and perform quality optimization processing on the mesh of the substation entity model of the hexahedral mesh to obtain the substation entity model.

[0117] In one embodiment, the above-mentioned segmentation module 520 is specifically used to determine the current segmentation threshold, and segment the panoramic image into a target area image and a background area image based on the current segmentation threshold; obtain a first cumulative residual entropy of the target area image and a second cumulative residual entropy of the background area image; if the sum of the first cumulative residual entropy and the second cumulative residual entropy is less than or equal to a critical value, increase the current segmentation threshold to obtain a new segmentation threshold, and return to the step of dividing the panoramic image into a target area image and a background area image based on the current segmentation threshold until the sum of the first cumulative residual entropy and the second cumulative residual entropy is greater than the critical value to obtain the target segmentation threshold; segment the panoramic image according to the target segmentation threshold, and use the obtained target area image as a channel spacing image of the power equipment in the substation.

[0118] In one embodiment, the above-mentioned segmentation module 520 is also used to obtain the probability density of the target area image and the probability density of the background area image; based on the probability density of the target area image and the probability density of the background area image, the probability distribution of the target area image and the probability distribution of the background area image are obtained respectively; based on the probability distribution of the target area image, the first cumulative residual entropy of the target area image is obtained; based on the probability distribution of the background area image, the second cumulative residual entropy of the background area image is obtained.

[0119] In one embodiment, the above-mentioned detection module 530 is specifically used to perform convolution filtering on the channel interval image of the power equipment to obtain a filtered image; calculate the gradient amplitude components of the filtered image in the horizontal and vertical directions to obtain a gradient amplitude image corresponding to the filtered image; perform non-maximum suppression processing on the gradient amplitude image to obtain the boundary positions of each power equipment in the substation.

[0120] In one embodiment, the above-mentioned detection module 530 is also used to perform non-maximum suppression processing on the gradient amplitude image to obtain a suppressed image; use a high threshold and a low threshold to perform threshold processing on the suppressed image to obtain a first edge image and a second edge image; correct the first edge image based on the second edge image to obtain a target edge image, and use the boundary position in the target edge image as the boundary position of each device in the substation.

[0121] Each module in the above-mentioned substation path temporary fence barrier model establishment device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0122] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for establishing a temporary fence barrier model for a substation path is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0123] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0124] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0125] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0126] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0127] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0128] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

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

[0130] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for establishing a temporary fence barrier model for a substation path, characterized in that: The method comprises: Construct a physical model of the substation; Performing image segmentation processing on the panoramic image of the substation entity model to obtain a channel spacing image of the power equipment in the substation; further comprising: determining a current segmentation threshold, and segmenting the panoramic image into a target area image and a background area image based on the current segmentation threshold; obtaining a first cumulative residual entropy of the target area image and a second cumulative residual entropy of the background area image; if the sum of the first cumulative residual entropy and the second cumulative residual entropy is less than or equal to a critical value, increasing the current segmentation threshold to obtain a new segmentation threshold, and returning to the step of dividing the panoramic image into a target area image and a background area image based on the current segmentation threshold until the sum of the first cumulative residual entropy and the second cumulative residual entropy is greater than the critical value to obtain a target segmentation threshold; segmenting the panoramic image according to the target segmentation threshold, and using the obtained target area image as a channel spacing image of the power equipment in the substation; Performing edge detection processing on the channel interval image of the power equipment to obtain the boundary position of each power equipment in the substation; further comprising: performing convolution filtering processing on the channel interval image of the power equipment to obtain a filtered image; calculating the gradient amplitude components in the horizontal and vertical directions of the filtered image to obtain a gradient amplitude image corresponding to the filtered image; performing non-maximum suppression processing on the gradient amplitude image to obtain a suppressed image; performing thresholding processing on the suppressed image using a high threshold and a low threshold respectively to obtain a first edge image and a second edge image; correcting the first edge image based on the second edge image to obtain a target edge image, and using the boundary position in the target edge image as the boundary position of each equipment in the substation; A predetermined model is set at the boundary position of each power equipment of the substation to obtain a temporary fence barrier model of the path of the substation; the predetermined model is used to be in a visible state during testing or construction.

2. The method according to claim 1, characterized in that The step of constructing a substation entity model comprises: Constructing an initial substation entity model of tetrahedral mesh based on the substation entity model data; Meshing the initial substation entity model to obtain a substation entity model of a hexahedral mesh; The quality of the substation entity model of the hexahedral grid is optimized to obtain the substation entity model.

3. The method according to claim 1, characterized in that The obtaining of the first accumulated residual entropy of the target area image and the second accumulated residual entropy of the background area image comprises: Acquire the probability density of the target area image and the probability density of the background area image; Based on the probability density of the target area image and the probability density of the background area image, respectively obtain the probability distribution of the target area image and the probability distribution of the background area image; Based on the probability distribution of the target area image, obtaining a first cumulative residual entropy of the target area image; Based on the probability distribution of the background area image, a second cumulative residual entropy of the background area image is obtained.

4. The method according to claim 1, characterized in that: The step of segmenting the panoramic image into a target area image and a background area image based on a current segmentation threshold comprises: Obtaining the grayscale value of each pixel point in the panoramic image; Taking a pixel point area in the panoramic image whose grayscale value is less than a segmentation threshold as a target area, and taking an image corresponding to the target area as the target area image; A pixel area in the panoramic image whose grayscale value is greater than or equal to the segmentation threshold is taken as a background area, and an image corresponding to the background area is taken as the background area image.

5. The method according to claim 1, characterized in that The predetermined model is also used to be in a transparent state during normal operation.

6. A device for establishing a temporary fence barrier model for a substation path, characterized in that: The device comprises: A construction module for constructing a physical model of a substation; A segmentation module, used to perform image segmentation processing on the panoramic image of the substation entity model to obtain a channel interval image of the power equipment in the substation; A detection module, used to perform edge detection processing on the channel interval image of the power equipment to obtain the boundary position of each power equipment of the substation; A setting module is used to set a predetermined model at the boundary position of each power equipment of the substation to obtain a temporary fence barrier model of the path of the substation; the predetermined model is used to be in a visible state during testing or construction; The segmentation module is also used to determine a current segmentation threshold, and segment the panoramic image into a target area image and a background area image based on the current segmentation threshold; obtain a first cumulative residual entropy of the target area image and a second cumulative residual entropy of the background area image; if the sum of the first cumulative residual entropy and the second cumulative residual entropy is less than or equal to a critical value, increase the current segmentation threshold to obtain a new segmentation threshold, and return to the step of dividing the panoramic image into a target area image and a background area image based on the current segmentation threshold until the sum of the first cumulative residual entropy and the second cumulative residual entropy is greater than the critical value to obtain a target segmentation threshold; segment the panoramic image according to the target segmentation threshold, and use the obtained target area image as a channel spacing image of the power equipment in the substation; The detection module is also used to perform convolution filtering on the channel interval image of the power equipment to obtain a filtered image; calculate the gradient amplitude components of the filtered image in the horizontal and vertical directions to obtain a gradient amplitude image corresponding to the filtered image; perform non-maximum suppression processing on the gradient amplitude image to obtain a suppressed image; perform thresholding processing on the suppressed image using a high threshold and a low threshold respectively to obtain a first edge image and a second edge image; correct the first edge image based on the second edge image to obtain a target edge image, and use the boundary position in the target edge image as the boundary position of each device in the substation.

7. The device according to claim 6, characterized in that The construction module is also used to construct an initial substation entity model of a tetrahedral mesh based on the substation entity model data; mesh the initial substation entity model to obtain a substation entity model of a hexahedral mesh; and perform quality optimization processing on the mesh of the substation entity model of the hexahedral mesh to obtain the substation entity model.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

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

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.