Disclosure of Invention
The invention provides a method and a device for determining a power transmission line inspection area, which can effectively solve human resources and ensure inspection reliability.
A method for determining a power transmission line inspection area comprises the following steps:
collecting hidden danger point data and constructing a hidden danger point data set;
setting a calculation area according to the potential hazard point data set and a preset routing inspection diameter;
calculating hidden danger early warning weights of corresponding hidden danger points according to the calculation regions;
traversing all the hidden danger points in the hidden danger point data set, and determining a routing inspection area according to the hidden danger early warning weight;
and comparing the number of the routing inspection areas with the preset number, and determining the routing inspection areas with the corresponding number as target routing inspection areas when the number of the routing inspection areas is equal to the preset number.
Further, the hidden danger point data includes longitude information, latitude information, and weight information of the hidden danger point.
Further, according to the potential hazard point data set and the preset routing inspection diameter, a calculation region is set, and the method comprises the following steps:
determining hidden danger points to be calculated according to the longitude and latitude of the hidden danger points in the hidden danger point data set;
and setting the quadrilateral area with the preset inspection diameter as the side length as the calculation area by taking the hidden danger point to be calculated as the center.
Further, according to the calculation region, calculating the hidden danger early warning weight of the corresponding hidden danger point, including:
determining a circular area by taking the hidden danger point to be calculated as a circle center and the preset inspection diameter as a diameter;
calculating the distance between each hidden danger point in the calculation region and the hidden danger point to be calculated, and determining the hidden danger points in the circular region;
and taking the sum of the weights of all the hidden danger points in the circular area as the hidden danger early warning weight of the hidden danger point to be calculated.
Further, traversing all the hidden danger points in the hidden danger point data set, and determining a routing inspection area, wherein the method comprises the following steps:
setting a calculation area of the next hidden danger point according to the longitude and latitude of each hidden danger point in the hidden danger point data set and the preset routing inspection diameter;
calculating the hidden danger early warning weight of the next hidden danger point according to the calculation region until the hidden danger early warning weight of each hidden danger point in the hidden danger point data set is obtained;
and determining a circular area corresponding to the hidden danger point with the largest hidden danger early warning weight in one round of calculation as a routing inspection area.
Further, the method further comprises:
and comparing the number of the routing inspection regions with the preset number, when the number of the routing inspection regions is less than the preset number, intensively removing the determined hidden danger points in the routing inspection regions from the hidden danger point data, and calculating the routing inspection regions again for the residual hidden danger points in the hidden danger point data set until the number of the routing inspection regions is equal to the preset number.
An electric transmission line inspection area determining device comprises:
the data construction module is used for collecting hidden danger point data and constructing a hidden danger point data set;
the region setting module is used for setting a calculation region according to the hidden danger point data set and a preset routing inspection diameter;
the calculation module is used for calculating the hidden danger early warning weight of the corresponding hidden danger point according to the calculation region;
the traversal module is used for traversing all the hidden danger points in the hidden danger point data set and determining a routing inspection area according to the hidden danger early warning weight;
and the area determining module is used for comparing the number of the routing inspection areas with the preset number, and determining the routing inspection areas with the corresponding number as target routing inspection areas when the number of the routing inspection areas is equal to the preset number.
Further, the hidden danger point data comprises longitude information, latitude information and weight information of the hidden danger point;
the region setting module is used for: determining hidden danger points to be calculated according to the longitude and latitude of the hidden danger points in the hidden danger point data set; and setting the quadrilateral area with the preset inspection diameter as the side length as the calculation area by taking the hidden danger point to be calculated as the center.
Further, the calculation module is further configured to: determining a circular area by taking the hidden danger point to be calculated as a circle center and the preset inspection diameter as a diameter; calculating the distance between each hidden danger point in the calculation region and the hidden danger point to be calculated, and determining the hidden danger points in the circular region; taking the sum of the weights of all the hidden danger points in the circular area as the hidden danger early warning weight of the hidden danger point to be calculated;
the traversal module is further configured to: setting a calculation area of the next hidden danger point according to the longitude and latitude of each hidden danger point in the hidden danger point data set and the preset routing inspection diameter; calculating the hidden danger early warning weight of the next hidden danger point according to the calculation region until the hidden danger early warning weight of each hidden danger point in the hidden danger point data set is obtained; and determining a circular area corresponding to the hidden danger point with the largest hidden danger early warning weight in one round of calculation as a routing inspection area.
Further, the area determining module is further configured to compare the number of inspection areas with a preset number, and when the number of inspection areas is less than the preset number, remove the determined hidden danger points in the inspection areas from the hidden danger point data set; the region setting module, the calculation module and the traversal module are further used for calculating the routing inspection regions of the remaining hidden danger points in the hidden danger point data set again until the number of the routing inspection regions is equal to the preset number.
The method and the device for determining the routing inspection area of the power transmission line, provided by the invention, at least have the following beneficial effects:
(1) by adopting a region limiting method, a target inspection region can be rapidly and accurately calculated by matching with strategies such as hidden danger point elimination, iterative traversal and the like, inspection region data which need to be focused are provided for inspection personnel of the power transmission line for guiding inspection;
(2) by adopting the region limiting method, the calculation amount can be greatly reduced, and the calculation speed is improved;
(3) the problem of because transmission line quantity is huge, the mode of regularly patrolling and examining consumes a large amount of manpowers is solved, effectively improve and patrol and examine efficiency, reduce the human cost.
Detailed Description
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 1, in some embodiments, there is provided a method for determining a power transmission line inspection area, including:
s1, collecting hidden danger point data and constructing a hidden danger point data set;
s2, setting a calculation area according to the hidden danger point data set and a preset routing inspection diameter;
s3, calculating hidden danger early warning weights of corresponding hidden danger points according to the calculation areas;
s4, traversing all the hidden danger points in the hidden danger point data set, and determining a routing inspection area according to the hidden danger early warning weight;
s5, comparing the number of the inspection areas with the preset number, and determining the inspection areas with the corresponding number as target inspection areas when the number of the inspection areas is equal to the preset number.
Specifically, in step S1, the potential risk point data includes longitude information, latitude information, and weight information of the potential risk point. The hidden danger point data is power transmission channel visual hidden danger early warning data with weight only keeping longitude and latitude information; the hidden danger early warning data of the visual image of the power transmission line belong to the same type of hidden danger early warning, and have longitude and latitude attributes, and the arrangement sequence of the longitude and the latitude of all the data is the same; the weight refers to combining data with the same longitude attribute value and the same latitude attribute value in a data set into a piece of data, adding a weight attribute, and taking the number of the part of data as the weight value of the piece of data.
Further, in step S2, setting a calculation region according to the hidden danger point data set and a preset inspection diameter, including:
s21, determining hidden danger points to be calculated according to the longitude and latitude of each hidden danger point in the hidden danger point data set;
and S22, setting the quadrilateral area with the preset inspection diameter as the side length as the calculation area by taking the hidden danger point to be calculated as the center.
In step S21, the hidden danger point to be calculated is determined according to the longitude and the latitude of the hidden danger point, for example, the hidden danger point with the smallest longitude may be selected as the hidden danger point to be calculated, and if the longitudes are the same, the latitudes are compared, and the hidden danger point with the smaller latitude is selected as the hidden danger point to be calculated.
Specifically, referring to fig. 2, the hidden danger point data is concentrated, the longitude value of the hidden danger point a is the minimum, a quadrilateral region S surrounded by the hidden danger point a as the center and the preset inspection diameter d as the side length is the calculation region. And the calculation of the hidden danger early warning weight only needs to calculate in the region, so that the calculation amount can be greatly reduced.
The preset patrol diameter can be determined according to the time that the patrol personnel can reach, the communication conditions at different time intervals, the difference of different vehicles and the like are considered, and for example, the preset patrol diameter can be set to be the distance that the patrol personnel can reach within 15 minutes.
Further, in step S3, calculating the hidden danger early warning weight of the corresponding hidden danger point according to the calculation region, including:
s31, determining a circular area by taking the hidden danger point to be calculated as a circle center and the preset inspection diameter as a diameter;
s32, calculating the distance between each hidden danger point in the calculation area and the hidden danger point to be calculated, and determining the hidden danger point in the circular area;
and S32, taking the sum of the weights of all the hidden danger points in the circular area as the hidden danger early warning weight of the hidden danger point to be calculated.
Specifically, referring to fig. 3, in a quadrilateral region S, a to-be-calculated hidden danger point is a point a, a circular region T with a to-be-calculated hidden danger point a as a center and a preset inspection diameter as a diameter is set, distances between each hidden danger point in the quadrilateral region S and the to-be-calculated hidden danger point a are calculated, when the distance between the hidden danger point and the to-be-calculated hidden danger point a is smaller than a preset radius, it is determined that the point is in the circular region T, the preset radius is half of a preset inspection diameter d, five hidden danger points including the hidden danger point A, B, C, D, E are calculated in the circular region T with the preset inspection diameter as a diameter, and the sum is the hidden danger early warning weight of the to-be-calculated hidden danger point a.
For the distance calculation between two points, only the hidden danger points of the quadrilateral region need to be calculated, and compared with the calculation of all the hidden danger points, the calculation amount is greatly reduced.
Further, in step S4, traversing all the hidden danger points in the hidden danger point data set, and determining a routing inspection area, including:
s41, setting a calculation area of the next hidden danger point according to the longitude and latitude of each hidden danger point in the hidden danger point data set and the preset routing inspection diameter;
s42, calculating the hidden danger early warning weight of the next hidden danger point according to the calculation region until the hidden danger early warning weight of each hidden danger point in the hidden danger point data set is obtained;
and S43, determining a circular area corresponding to the hidden danger point with the largest hidden danger early warning weight in one round of calculation as an inspection area.
Specifically, in step S41, starting from the hidden danger point with the smallest longitude according to the longitude of each hidden danger point in the hidden danger point data set, if the longitude values of two hidden danger points are the same, comparing the latitudes according to the same strategy, and taking the hidden danger point with the smallest latitude value, for example, taking the hidden danger point with the smallest longitude value for the first time, and taking the hidden danger point with the longitude larger than the previous hidden danger point and smaller than the other hidden danger points for the next time to set the calculation region.
Further, in step S42, according to the above method, the hidden danger early warning weight of the next hidden danger point is calculated until the hidden danger early warning weight of each hidden danger point in the hidden danger point data set is obtained, and then one round of calculation is finished.
In step S3, after traversing all the hidden trouble points, there is a circular area with a preset inspection diameter, in which the sum of the weights of all the hidden trouble points is greater than any circular area in the calculation of this round, and the circular area is the inspection area.
Further, the method further comprises:
and comparing the number of the routing inspection regions with the preset number, when the number of the routing inspection regions is less than the preset number, intensively removing the determined hidden danger points in the routing inspection regions from the hidden danger point data, and calculating the routing inspection regions again for the residual hidden danger points in the hidden danger point data set until the number of the routing inspection regions is equal to the preset number.
In each round of calculation, a routing inspection region is generated, the number of the generated routing inspection regions is compared with the preset number, when the number of the routing inspection regions is less than the preset number, the determined hidden danger points in the routing inspection regions are removed from the hidden danger point data in a centralized mode, the next round of routing inspection region calculation is carried out on the residual hidden danger points in the hidden danger point data in a centralized mode until the number of the routing inspection regions is equal to the preset number, and at the moment, all the routing inspection regions are target routing inspection regions.
Specifically, referring to fig. 4, in the whole iterative computation process shown in fig. 4, firstly, hidden danger point data is collected, and a hidden danger point data set is constructed; setting a calculation area by taking a point with the minimum longitude value in the hidden danger point data set as a center according to a preset routing inspection diameter; according to the calculation region, calculating hidden danger early warning weights of corresponding hidden danger points, traversing all the hidden danger points in the hidden danger point data set, and determining a routing inspection region according to the hidden danger early warning weights; storing the routing inspection regions, comparing the number N +1 of the routing inspection regions with the preset number N0 after each round of calculation is finished, if N is smaller than N0, removing the hidden danger points in the determined routing inspection regions from the hidden danger point data set, calculating the routing inspection regions again for the remaining hidden danger points in the hidden danger point data set until N = N0, and determining N routing inspection regions as target routing inspection regions.
The method for determining the electric line inspection area provided by the embodiment at least comprises the following beneficial effects:
(1) by adopting a region limiting method, a target inspection region can be rapidly and accurately calculated by matching with strategies such as hidden danger point elimination, iterative traversal and the like, inspection region data which need to be focused are provided for inspection personnel of the power transmission line for guiding inspection;
(2) by adopting the region limiting method, the calculation amount can be greatly reduced, and the calculation speed is improved;
(3) the problem of because transmission line quantity is huge, the mode of regularly patrolling and examining consumes a large amount of manpowers is solved, effectively improve and patrol and examine efficiency, reduce the human cost.
Referring to fig. 5, in some embodiments, there is further provided a power transmission line inspection area determining apparatus including:
the data construction module 201 is configured to collect hidden danger point data and construct a hidden danger point data set;
the region setting module 202 is used for setting a calculation region according to the potential hazard point data set and a preset routing inspection diameter;
the calculation module 203 is configured to calculate a hidden danger early warning weight of a corresponding hidden danger point according to the calculation region;
the traversal module 204 is configured to traverse all the hidden danger points in the hidden danger point data set, and determine a routing inspection area according to the hidden danger early warning weight;
the area determining module 205 is configured to compare the number of the inspection areas with a preset number, and determine that the inspection areas with the corresponding number are target inspection areas when the number of the inspection areas is equal to the preset number.
Specifically, the hidden danger point data in the data construction module 201 includes longitude information, latitude information, and weight information of the hidden danger point.
Further, the region setting module 202 is configured to: determining hidden danger points to be calculated according to the longitude and latitude of the hidden danger points in the hidden danger point data set; and setting the quadrilateral area with the preset inspection diameter as the side length as the calculation area by taking the hidden danger point to be calculated as the center.
Specifically, please refer to fig. 2 for a schematic diagram of the calculation region, which is not repeated herein.
The preset patrol diameter can be determined according to the time that the patrol personnel can reach, the communication conditions at different time intervals, the difference of different vehicles and the like are considered, and for example, the preset patrol diameter can be set to be the distance that the patrol personnel can reach within 15 minutes.
Further, the calculation module 203 is further configured to: determining a circular area by taking the hidden danger point to be calculated as a circle center and the preset inspection diameter as a diameter; calculating the distance between each hidden danger point in the calculation region and the hidden danger point to be calculated, and determining the hidden danger points in the circular region; and taking the sum of the weights of all the hidden danger points in the circular area as the hidden danger early warning weight of the hidden danger point to be calculated.
The traverse module 204 is further configured to: setting a calculation area of the next hidden danger point according to the longitude and latitude of each hidden danger point in the hidden danger point data set and the preset routing inspection diameter; calculating the hidden danger early warning weight of the next hidden danger point according to the calculation region until the hidden danger early warning weight of each hidden danger point in the hidden danger point data set is obtained; and determining a circular area corresponding to the hidden danger point with the largest hidden danger early warning weight in one round of calculation as a routing inspection area.
Specifically, starting from the hidden danger point with the smallest longitude according to the longitude of each hidden danger point in the hidden danger point data set, if the longitude values of the two hidden danger points are the same, comparing the latitudes according to the same strategy, and taking the hidden danger point with the smallest latitude value, for example, taking the hidden danger point with the smallest longitude value for the first time, and taking the hidden danger point with the longitude larger than the previous hidden danger point and smaller than other hidden danger points for the next time to set the calculation region.
After traversing all the hidden trouble points, a circular area with the diameter being the preset inspection diameter exists, in the circular area, the sum of the weights of all the hidden trouble points is larger than any circular area in the calculation, and the circular area is the inspection area.
Further, the area determining module 205 is further configured to compare the number of the inspection areas with a preset number, and when the number of the inspection areas is less than the preset number, remove the hidden danger points in the determined inspection area from the hidden danger point data set; the region setting module 202, the calculating module 203, and the traversing module 204 are further configured to calculate the routing inspection regions again for the remaining hidden trouble points in the hidden trouble point data set until the number of the routing inspection regions is equal to the preset number.
In each round of calculation, a routing inspection region is generated, the number of the generated routing inspection regions is compared with the preset number, when the number of the routing inspection regions is less than the preset number, the determined hidden danger points in the routing inspection regions are removed from the hidden danger point data in a centralized mode, the next round of routing inspection region calculation is carried out on the residual hidden danger points in the hidden danger point data in a centralized mode until the number of the routing inspection regions is equal to the preset number, and at the moment, all the routing inspection regions are target routing inspection regions.
The electric line inspection region determining device provided by the embodiment at least comprises the following beneficial effects:
(1) by adopting a region limiting method, a target inspection region can be rapidly and accurately calculated by matching with strategies such as hidden danger point elimination, iterative traversal and the like, inspection region data which need to be focused are provided for inspection personnel of the power transmission line for guiding inspection;
(2) by adopting the region limiting method, the calculation amount can be greatly reduced, and the calculation speed is improved;
(3) the problem of because transmission line quantity is huge, the mode of regularly patrolling and examining consumes a large amount of manpowers is solved, effectively improve and patrol and examine efficiency, reduce the human cost.
The method provided by the above embodiment is further explained by a specific application scenario.
The method comprises the steps that a potential hazard point data set is obtained based on visual data of a power transmission line of a certain power transmission overhaul company, 8794 pieces of data are provided with longitude information, latitude information and weight information, part of the potential hazard point data are shown in table 1, analysis processing is carried out based on the data, the preset number is 10, and the preset inspection diameter is 12000 meters and is used for guiding an inspector to make decisions.
TABLE 1
Taking a potential hazard point [115.33386,36.56522] with the smallest longitude value in the potential hazard point data set as the center, combining a preset inspection diameter d =12000m and an earth average radius value 6378137m, adopting a region limiting algorithm, taking the potential hazard point [115.33386,36.56522] as the center, delimiting a square with the side length of 12000m as a calculation region, taking the square as a [115.26675, 115.40097, 36.51132, 36.61912], and obtaining the potential hazard early warning weight of a circular region with the potential hazard point as the center and the diameter of 12000m, wherein the value is 99.
Traversing calculation is started from the next hidden danger point [115.34231,36.56231] until all the hidden danger points are calculated, the hidden danger points of the routing inspection area obtained by the calculation are [115.91917, 36.56607], the weight is 4124, the specific hidden danger points are [8,115.85649,36.57488 ], 71,115.85998,36.55239, 35,115.86101,36.57482, 20,115.86638,36.55694, 8,115.98527,36.56707 ] and 186 hidden danger points are counted.
And storing the routing inspection areas obtained in the previous step, including the weight, the central point, the details of the hidden danger point and the like, and setting the determined number N of the routing inspection areas to be 1.
Since N < N0=10, the remaining 8608 hidden trouble point data are repeated from the 186 data in the inspection area obtained in the above step among 8794 data, and after 10 rounds of calculation, N = N0=10 is satisfied, and 10 inspection areas are obtained. That is, the inspection personnel need to focus on the target inspection area, the hidden danger number of the 10 inspection areas is higher than that of any other area, and the inspection areas can arrive within fifteen minutes. Some of the data are shown in table 2.
TABLE 2
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention. It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.