Static power transmission channel edge end distance measuring method and device
By querying the coordinates and distance data of transmission line points in the edge device through the preset ranging database, it solves the problem of difficulty in distance identification when ultra-high voltage transmission line construction vehicles approach, achieves accurate distance monitoring between cranes and transmission lines, and reduces safety issues. risk.
Patent Information
- Application Number
- CN202410690761.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When construction vehicles approach ultra-high-voltage transmission lines, since the bare conductors are not protected by insulating layers, arc discharges can easily occur, increasing safety risks for on-site workers. Traditional edge-end equipment has limited computing resources, making it difficult to accurately identify the distance between the crane and the transmission line, resulting in It is impossible to monitor and identify the safe distance in real time.
Using a preset ranging database, the vehicle coordinate position in the target picture is obtained through the edge device, and the preset database is queried to obtain the coordinates and distance data of the transmission line points, reducing complex three-dimensional model calculations, improving the accuracy and real-time performance of monitoring, and judging Whether the distance is less than the vehicle height to determine the safe status.
It achieves accurate identification of the distance between the crane and the transmission line under the condition of limited computing resources, reduces the risk of contact, improves the accuracy and real-time nature of monitoring, and ensures the safety of the construction process.
Smart Images

Figure CN118566894A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of distance measurement for ultra-high voltage transmission lines, and in particular to a method and device for distance measurement at the edge of a static transmission channel. Background Art
[0002] With the continuous growth of electricity demand, the optimal allocation of energy resources has become particularly important. Ultra-high voltage transmission lines play a core role in energy transmission and optimal allocation with their long-distance, large-capacity and high-efficiency transmission capabilities. Ultra-high voltage transmission lines not only have strong transmission capacity to meet the growing power demand of the power grid, but also have excellent anti-interference and self-healing capabilities, which can ensure the safe and stable operation of the power grid in complex environments and emergencies.
[0003] In urban planning and construction, ultra-high voltage transmission lines are particularly suitable for areas that need to save land resources, such as urban residential areas, due to their compact space and small land area. However, this also brings potential safety risks. In particular, when large construction vehicles (such as cranes) approach or enter the area corresponding to ultra-high voltage transmission lines, since ultra-high voltage transmission lines are bare conductors without insulation protection, the contact or approach of the crane boom with the transmission line may cause serious dangers such as arc discharge, posing a serious threat to the life safety of on-site workers. In order to ensure that the crane maintains a safe distance from the ultra-high voltage transmission line during operation, edge devices are required to monitor the distance between the crane and the transmission line in real time. The traditional method is to capture the monitoring image data of the target area through the edge device, and input the monitoring image data into the three-dimensional model for distance calculation, but the computing resources of the edge device are limited, and it is difficult to support complex three-dimensional model calculation and real-time distance recognition, resulting in the inability to accurately identify the distance between the crane and the transmission line, thereby increasing the risk of contact.
[0004] Therefore, there is an urgent need for a method and device for measuring the distance at the edge of a static power transmission channel that can solve the above-mentioned technical problems. Summary of the invention
[0005] The present application provides a method and device for measuring the distance at the edge of a static power transmission channel. The method reduces the computing burden of edge devices, improves the accuracy and real-time performance of monitoring, and reduces the risk of collision, thereby effectively solving the problem that edge devices cannot accurately identify the distance between a crane and a transmission line when computing resources are limited.
[0006] In the first aspect, the present application provides a method for measuring the distance at the edge of a static power transmission channel, which is applied to a detection platform, and the method includes: receiving a monitoring request sent by a user, the monitoring request being a request for monitoring the distance between a target vehicle and a target power transmission channel; obtaining a target image according to the monitoring request, the target image being an image taken by a target edge device, and the target edge device being a monitoring device installed at the target power transmission channel; obtaining a first coordinate position corresponding to the target vehicle in the target image; inputting the first coordinate position into a preset ranging database for query to obtain a second coordinate position and target distance data, the second coordinate position being a position on the target transmission channel, and the target distance data being distance data between the first coordinate position and the second coordinate position; judging whether the target distance data is less than the target height data, the target height data being height data between the target vehicle and the ground; when the target distance data is less than the target height data, it is confirmed that the distance between the target vehicle and the target transmission channel is in a preset normal state, and the preset normal state is displayed to the user.
[0007] By adopting the above technical solution, a monitoring request sent by a user is obtained, a target image is obtained according to the monitoring request, the first coordinate position corresponding to the target vehicle in the target image is obtained, the first coordinate position is input into a preset distance measurement database for query, and the second coordinate position and target distance data are obtained. Through the preset and trained preset distance measurement database, the edge device no longer needs to perform complex three-dimensional model calculations, and relatively accurate target distance data can be obtained by querying the preset distance measurement database, which reduces the amount of calculation and ensures the real-time monitoring. It is judged whether the target distance data is less than the target height data, and whether there is a risk of collision can be quickly identified. When the target distance data is less than the target height data, it is confirmed that the distance between the target vehicle and the target transmission channel is in a preset normal state, and the preset normal state is displayed to the user, which helps the user to understand the monitoring situation in a timely manner, thereby solving the problem that the edge device cannot accurately identify the distance between the crane and the transmission line when computing resources are limited.
[0008] Optionally, before inputting the first coordinate position into a preset distance measurement database for query to obtain the second coordinate position and target distance data, it is necessary to construct a preset distance measurement database, specifically including: obtaining the first coordinate position, determining the first spatial coordinate information according to the first coordinate position, the first spatial coordinate information being the spatial coordinate information on the cloud corresponding to the first coordinate position; obtaining multiple spatial coordinate information on the target transmission channel; calculating the first spatial coordinate information and the multiple spatial coordinate information in sequence to obtain multiple distance data; sorting the multiple distance data from small to large to obtain a sorting result; obtaining the target distance data, the target distance data being the distance data corresponding to the first position in the sorting result; obtaining the second spatial coordinate information, the second spatial coordinate information being the spatial coordinate information corresponding to the target distance data; converting the second spatial coordinate information to obtain the second coordinate position; constructing a preset distance measurement database, the preset distance measurement database including a first corresponding relationship and a second corresponding relationship, the first corresponding relationship being the corresponding relationship between the first coordinate position and the second coordinate position, and the second corresponding relationship being the corresponding relationship between the first coordinate position and the target distance data.
[0009] By adopting the above technical solution, by calculating the distance between the first spatial coordinate information and multiple spatial coordinate information on the target transmission channel, and selecting the minimum distance in the sorting result as the target distance data, the closest distance between the vehicle and the transmission channel can be judged more accurately, thereby improving the monitoring accuracy. By constructing a preset distance measurement database, and storing the correspondence between the first coordinate information, the second coordinate information and the target distance data in the preset distance measurement database, the target distance data can be obtained by querying the preset distance measurement database, rather than performing complex calculations and distance identification in real time, which can greatly reduce the computing burden of edge devices and optimize resource utilization.
[0010] Optionally, the first spatial coordinate information and multiple spatial coordinate information are calculated in sequence to obtain multiple distance data; specifically including: obtaining third spatial coordinate information, the third spatial coordinate information is any one of the multiple spatial coordinate information; calculating the first spatial coordinate information and the third spatial coordinate information to obtain first distance data; calculating the first spatial coordinate information and the fourth spatial coordinate information to obtain second distance data, the fourth spatial coordinate information is any one of the multiple spatial coordinate information except the third spatial coordinate information, and the multiple distance data include the first distance data and the second distance data.
[0011] By adopting the above technical solution, the first spatial coordinate information and the multiple spatial coordinate information are calculated one by one, and the accurate distance data between the target vehicle and the multiple points on the target transmission channel can be obtained. Since the distance between the target vehicle and the multiple points on the target transmission channel is calculated, the risk near the entire transmission channel can be comprehensively assessed. By automatically calculating the distance data, the monitoring efficiency can be greatly improved.
[0012] Optionally, after converting the second spatial coordinate information to obtain the second coordinate position, the method also includes: obtaining target channel distance data, the target channel distance data is the distance data between the target power transmission channel and the ground; obtaining the target distance data and the second coordinate position; calculating the target channel distance data and the target distance data to obtain first channel data; obtaining width data corresponding to the target image, calculating the first data and the width data to obtain second channel data, the first data being the horizontal coordinate in the second coordinate position; obtaining height data corresponding to the target image, calculating the second data as the height data to obtain third channel data, the second data being the vertical coordinate in the second coordinate position; establishing a third corresponding relationship between the first coordinate position and the target channel data, establishing a fourth corresponding relationship between the first coordinate position and the first channel data, and storing the third corresponding relationship and the fourth corresponding relationship in a preset ranging database, the target channel data being a combination of the second channel data and the third channel data.
[0013] By adopting the above technical solution, the target distance data and the target channel distance are calculated to obtain the first channel data, the first data and the width data are calculated to obtain the second channel data, the second data and the height data are calculated to obtain the third channel data, and by establishing a correspondence between the first coordinate position and the target channel data and the first channel data, and storing these correspondences in a preset distance measurement database, the data storage and query process can be greatly optimized.
[0014] Optionally, before obtaining the first coordinate position corresponding to the target vehicle in the target image, the method also includes: obtaining the target image, importing the target image into a preset software for query, and obtaining multiple query results; determining the target query result corresponding to the target vehicle, and obtaining the first coordinate position corresponding to the target query result.
[0015] By adopting the above technical solution, the target image is automatically processed according to the preset software, and the position of the target vehicle can be automatically identified and determined without human intervention, thereby reducing the error caused by manual judgment.
[0016] Optionally, after the target distance data is less than the target height data, the method also includes: obtaining a target distance difference, the target distance difference being the difference between the target height data and the target distance data; determining whether the target distance difference is less than or equal to a preset safety threshold; when the target distance difference is greater than the preset safety threshold, confirming that the distance between the target vehicle and the target power transmission channel is in a preset normal state.
[0017] By adopting the above technical solution, the target distance difference is obtained, and the target distance difference is compared with the preset safety threshold, so as to accurately determine whether the distance between the target vehicle and the target transmission channel is within a safe range. When the target distance difference is greater than the preset safety threshold, it is confirmed that the distance between the target vehicle and the target transmission channel is in a preset normal state. The entire monitoring process does not require human intervention, and automatic monitoring is realized.
[0018] Optionally, after determining whether the target distance difference is less than or equal to a preset safety threshold, the method also includes: if the target distance difference is less than or equal to the preset safety threshold, confirming that the distance between the target vehicle and the target power transmission channel is in an abnormal state, and sending a warning prompt message to the user, the warning prompt message is used to prompt the user that there is a risk of collision with the target vehicle.
[0019] By adopting the above technical solution, it is possible to monitor and calculate the target distance difference. When the target distance difference is less than or equal to the preset safety threshold, the potential risk can be immediately identified and an early warning message can be sent to the user. The sending of the early warning message can enhance the safety of the user, maintain a safe distance from the transmission channel, and avoid dangerous situations caused by misjudgment.
[0020] In a second aspect of the present application, a device for measuring the distance at the edge of a static power transmission channel is provided. The device is a detection platform, and the detection platform includes an acquisition unit, a processing unit, and a confirmation unit; the acquisition unit receives a monitoring request sent by a user, and the monitoring request is used to monitor the distance between a target vehicle and a target power transmission channel; obtains a first coordinate position corresponding to the target vehicle in a target image; the processing unit obtains a target image according to the monitoring request, and the target image is a picture taken by a target edge device, and the target edge device is a monitoring device installed at the target power transmission channel; the first coordinate position is input into a preset distance measurement database for query to obtain a second coordinate position and target distance data, the second coordinate position is the position on the target transmission channel, and the target distance data is the distance data between the first coordinate position and the second coordinate position; determines whether the target distance data is less than the target height data, and the target height data is the height data between the target vehicle and the ground; the confirmation unit confirms that the distance between the target vehicle and the target transmission channel is in a preset normal state when the target distance data is less than the target height data, and displays the preset normal state to the user.
[0021] Optionally, the acquisition unit is used to acquire a first coordinate position, determine first spatial coordinate information based on the first coordinate position, the first spatial coordinate information is the spatial coordinate information on the cloud corresponding to the first coordinate position; acquire multiple spatial coordinate information on the target transmission channel; the processing unit is used to calculate the first spatial coordinate information and the multiple spatial coordinate information in sequence to obtain multiple distance data; sort the multiple distance data from small to large to obtain a sorting result; the acquisition unit is used to acquire target distance data, the target distance data is the distance data corresponding to the first position in the sorting result; acquire second spatial coordinate information, the second spatial coordinate information is the spatial coordinate information corresponding to the target distance data; the processing unit is used to convert the second spatial coordinate information to obtain a second coordinate position; construct a preset ranging database, the preset ranging database includes a first corresponding relationship and a second corresponding relationship, the first corresponding relationship is the corresponding relationship between the first coordinate position and the second coordinate position, and the second corresponding relationship is the corresponding relationship between the first coordinate position and the target distance data.
[0022] Optionally, the acquisition unit is used to acquire third spatial coordinate information, where the third spatial coordinate information is any one of multiple spatial coordinate information; the processing unit is used to calculate the first spatial coordinate information and the third spatial coordinate information to obtain first distance data; the first spatial coordinate information and the fourth spatial coordinate information are calculated to obtain second distance data, where the fourth spatial coordinate information is any one of multiple spatial coordinate information except the third spatial coordinate information, and the multiple distance data include the first distance data and the second distance data.
[0023] Optionally, the acquisition unit is used to acquire target channel distance data, which is the distance data between the target power transmission channel and the ground; to acquire the target distance data and the second coordinate position; the processing unit is used to calculate the target channel distance data and the target distance data to obtain first channel data; the acquisition unit is used to acquire width data corresponding to the target image, calculate the first data and the width data to obtain second channel data, the first data being the horizontal coordinate in the second coordinate position; to acquire height data corresponding to the target image, calculate the second data as the height data to obtain third channel data, the second data being the vertical coordinate in the second coordinate position; the processing unit is used to establish a third corresponding relationship between the first coordinate position and the target channel data, establish a fourth corresponding relationship between the first coordinate position and the first channel data, and store the third corresponding relationship and the fourth corresponding relationship in a preset ranging database, the target channel data being the combination of the second channel data and the third channel data.
[0024] Optionally, the acquisition unit is used to acquire a target image, import the target image into a preset software for query, and obtain multiple query results; determine the target query result corresponding to the target vehicle, and acquire a first coordinate position corresponding to the target query result.
[0025] Optionally, the acquisition unit is used to obtain a target distance difference, which is the difference between the target height data and the target distance data; the processing unit is used to determine whether the target distance difference is less than or equal to a preset safety threshold; and the confirmation unit is used to confirm that the distance between the target vehicle and the target power transmission channel is in a preset normal state when the target distance difference is greater than the preset safety threshold.
[0026] Optionally, the confirmation unit is used to confirm that the distance between the target vehicle and the target power transmission channel is in an abnormal state if the target distance difference is less than or equal to a preset safety threshold, and send a warning prompt message to the user, wherein the warning prompt message is used to prompt the user that there is a risk of collision with the target vehicle.
[0027] In a third aspect of the present application, an electronic device is provided, which includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory, so that an electronic device executes any one of the methods described above in the present application.
[0028] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any one of the above methods of the present application is executed.
[0029] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. Obtain the monitoring request sent by the user, obtain the target image according to the monitoring request, obtain the first coordinate position corresponding to the target vehicle in the target image, input the first coordinate position into the preset distance measurement database for query, and obtain the second coordinate position and target distance data. Through the preset distance measurement database that is pre-set and trained, the edge point device no longer needs to perform complex three-dimensional model calculations. By querying the preset distance measurement data, relatively accurate target distance data can be obtained, which reduces the amount of calculation and ensures the real-time monitoring. It is judged whether the target distance data is less than the target height data, and whether there is a risk of contact can be quickly identified. When the target distance data is less than the target height data, it is confirmed that the distance between the target vehicle and the target transmission channel is in the preset normal state, and the preset normal state is displayed to the user, which helps the user to understand the monitoring situation in a timely manner, thereby solving the problem that the edge device cannot accurately identify the distance between the crane and the transmission line when the computing resources are limited.
[0030] 2. By calculating the distance between the first spatial coordinate information and multiple spatial coordinate information on the target transmission channel, and selecting the minimum distance in the sorting result as the target distance data, the closest distance between the vehicle and the transmission channel can be judged more accurately, thereby improving the monitoring accuracy. By constructing a preset distance measurement database, and storing the correspondence between the first coordinate information, the second coordinate information and the target distance data in the preset distance measurement database, the target distance data can be obtained by querying the preset distance measurement database, rather than performing complex calculations and distance identification in real time, which can greatly reduce the computing burden of edge devices and optimize resource utilization.
[0031] 3. Obtain the target distance difference and compare it with the preset safety threshold to accurately determine whether the distance between the target vehicle and the target transmission channel is within the safe range. When the target distance difference is greater than the preset safety threshold, it can be confirmed that the distance between the target vehicle and the target transmission channel is in the preset normal state. The entire monitoring process does not require human intervention, realizing automatic monitoring.
[0032] 4. Realize monitoring and calculation of target distance difference. When the target distance difference is less than or equal to the preset safety threshold, it can immediately identify potential risks and send early warning information to the user. The sending of early warning information can enhance the safety of users, maintain a safe distance from the transmission channel, and avoid dangerous situations caused by misjudgment. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a flow chart of a method for measuring the distance at the edge of a static power transmission channel provided in an embodiment of the present application; Figure 2 This is a scenario schematic diagram of a method for measuring the distance at the edge of a static power transmission channel provided in an embodiment of the present application; Figure 3 It is a structural schematic diagram of a distance measuring device for the edge end of a static power transmission channel provided in an embodiment of the present application; Figure 4 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.
[0034] Explanation of the reference numerals: 301, acquisition unit; 302, processing unit; 303, confirmation unit; 400, electronic device; 401, processor; 402, communication bus; 403, user interface; 404, network interface; 405, memory. DETAILED DESCRIPTION
[0035] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0036] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0037] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0038] With the continuous growth of electricity demand, the optimal allocation of energy resources has become particularly important. Ultra-high voltage transmission lines play a core role in energy transmission and optimal allocation with their long-distance, large-capacity and high-efficiency transmission capabilities. Ultra-high voltage transmission lines not only have strong transmission capacity to meet the growing power demand of the power grid, but also have excellent anti-interference and self-healing capabilities, which can ensure the safe and stable operation of the power grid in complex environments and emergencies.
[0039] In urban planning and construction, ultra-high voltage transmission lines are particularly suitable for areas that need to save land resources, such as urban residential areas, due to their compact space and small land area. However, this also brings potential safety risks. In particular, when large construction vehicles (such as cranes) approach or enter the area corresponding to ultra-high voltage transmission lines, since ultra-high voltage transmission lines are bare conductors without insulation protection, the contact or approach of the crane boom with the transmission line may cause serious dangers such as arc discharge, posing a serious threat to the life safety of on-site workers. In order to ensure that the crane maintains a safe distance from the ultra-high voltage transmission line during operation, edge devices are required to monitor the distance between the crane and the transmission line in real time. The traditional method is to capture the monitoring image data of the target area through the edge device, and input the monitoring image data into the three-dimensional model for distance calculation, but the computing resources of the edge device are limited, and it is difficult to support complex three-dimensional model calculation and real-time distance recognition, resulting in the inability to accurately identify the distance between the crane and the transmission line, thereby increasing the risk of contact.
[0040] Therefore, how to solve the problem of how to timely identify the distance between the crane and the transmission line when the computing resources of the edge device are limited is an urgent problem to be solved. The embodiment of the present application provides a distance measurement method for the edge of a static transmission channel, which is applied to a detection platform. The detection platform of the present application can be a platform that provides distance measurement services for construction vehicles. Figure 1 This is a flow chart of a method for measuring the distance at the edge of a static power transmission channel provided by an embodiment of the present application, with reference to Figure 1 The method includes the following steps S101-S106.
[0041] S101: receiving a monitoring request sent by a user, where the monitoring request is a request for monitoring the distance between a target vehicle and a target power transmission channel.
[0042] In the above S101, when the user is driving the target vehicle, it is necessary to determine whether the target vehicle passes through an area where a power transmission channel exists, and whether there is a risk of contact between the target vehicle and the power transmission channel. That is, the user needs to obtain the distance between the target vehicle and the power transmission channel, and then determine whether there is a risk of contact between the target vehicle and the power transmission channel. In this application, the target vehicle refers to a large construction vehicle, that is, a crane; the user refers to a person driving the target vehicle, or a person riding in the target vehicle. The power transmission channel refers to an ultra-high voltage transmission line channel. The user can send a monitoring request to the detection platform through a web page or an application. The monitoring request refers to a request to monitor the distance between the target vehicle and the target transmission channel. The monitoring request includes the identification information of the target vehicle and the identification information of the target transmission channel, so as to determine the geographical location of the target transmission channel that currently needs to be measured.
[0043] S102: Obtain a target image according to a monitoring request, where the target image is an image taken by a target edge device, and the target edge device is a monitoring device installed at a target power transmission channel.
[0044] In the above S102, after receiving the monitoring request, the detection platform determines the target edge device according to the identification information of the target power transmission channel in the monitoring request. The target edge device refers to the monitoring device installed at the target power transmission channel, and the monitoring device includes a camera. Corresponding target edge devices are installed at different target power transmission channels to obtain monitoring images of the target power transmission channels. The detection platform establishes a communication connection with the target edge device, and requests it to send the latest monitoring image as the target image. The target edge device sends the target image to the detection platform according to the request.
[0045] S103: Obtain the first coordinate position corresponding to the target vehicle in the target image.
[0046] In the above S103, after acquiring the target image, the detection platform can use image processing technology (such as target detection, image recognition, etc.) to analyze the image, thereby identifying the position of the target vehicle in the target image and calculating the first coordinate information corresponding to the target vehicle (usually expressed in pixel coordinates).
[0047] Obtaining the first coordinate position corresponding to the target vehicle in the target image specifically includes: obtaining the target image, importing the target image into the preset software for querying, and obtaining multiple query results; determining the target query result corresponding to the target vehicle, and obtaining the first coordinate position corresponding to the target query result. Specifically, to obtain the target image, it is necessary to ensure that the image is clear and contains the target vehicle to be queried. The target vehicle is imported into the preset software, and the preset software is usually an image processing or target detection software, which has the function of analyzing and querying the target image. After importing the target image, the query function in the preset software is used to query the target image. The query process may involve steps such as image processing, feature extraction, and target detection. After querying, the preset software returns multiple query results. The multiple query results include all targets detected in the target image, including the target vehicle and other possible targets. Each query result will include the location information, size, shape and other attributes of the target. Among the multiple query results, determining which query result corresponds to the target vehicle can be achieved by analyzing the attribute information in the query result. After determining the target query result corresponding to the target vehicle, the coordinate position information corresponding to the query result can be obtained. This coordinate position is usually the pixel coordinate of the target vehicle in the target image to obtain the first coordinate position corresponding to the target vehicle.
[0048] S104: Input the first coordinate position into a preset distance measurement database for query to obtain the second coordinate position and target distance data.
[0049] In the above S104, after determining the first coordinate position, the first coordinate position is input into a preset distance measurement database for query. Before obtaining the second coordinate position and the target distance data, a preset distance measurement database needs to be constructed, which specifically includes: obtaining the first coordinate position, determining the first spatial coordinate information according to the first coordinate position, the first spatial coordinate information being the spatial coordinate information on the cloud corresponding to the first coordinate position; obtaining multiple spatial coordinate information on the target transmission channel; calculating the first spatial coordinate information and the multiple spatial coordinate information in sequence to obtain multiple distance data; sorting the multiple distance data from small to large to obtain a sorting result; obtaining the target distance data, the target distance data being the distance data corresponding to the first position in the sorting result; obtaining the second spatial coordinate information, the second spatial coordinate information being the spatial coordinate information corresponding to the target distance data; converting the second spatial coordinate information to obtain the second coordinate position; constructing a preset distance measurement database, the preset distance measurement database including a first corresponding relationship and a second corresponding relationship, the first corresponding relationship being the corresponding relationship between the first coordinate position and the second coordinate position, and the second corresponding relationship being the corresponding relationship between the first coordinate position and the target distance data. Specifically, the first coordinate position corresponding to the target vehicle in the target image must be obtained first. At this time, the first coordinate position can be any position in the target image. Converting the first coordinate position into the first spatial coordinate information in the cloud space system usually involves the conversion of the coordinate system, that is, converting the two-dimensional coordinate into a three-dimensional coordinate. At this time, the first coordinate position is a two-dimensional coordinate, and the first spatial coordinate information is a three-dimensional coordinate. Converting the two-dimensional coordinate to a three-dimensional coordinate can add an additional temperature (i.e., the Z axis) on the basis of the two-dimensional coordinate. This can be achieved in a variety of ways, but the most common is to set the x and y components of the two-dimensional coordinate point and the z component to a fixed value. The z value can also be dynamically determined based on the height, depth or other attributes of the two-dimensional coordinate point. Then, multiple spatial coordinate information on the target transmission channel is obtained, and multiple spatial coordinate information can be understood as coordinate information corresponding to all points on the target transmission channel. These coordinate information can be obtained by measuring or geographic information. Then, the distance calculation is performed on the first spatial coordinate information and the multiple spatial coordinate information in turn. The distance calculation is to calculate the shortest distance between two positions. The distance calculation formula is used to calculate the distance between the first spatial coordinate information and the multiple spatial coordinate information on the target transmission channel in turn, and multiple distance data are generated. Each distance data represents the distance between the target vehicle and a certain position on the target transmission channel. The multiple distance data are sorted in order from small to large to obtain a sorting result. This sorting result helps to quickly find the target point with the shortest distance to the target vehicle. The target point is any point on the target transmission channel. The distance data corresponding to the first position is obtained from the sorting result as the target distance data. The target distance data represents the shortest distance between the target vehicle and a certain point on the target transmission channel.After determining the target distance data, it is also necessary to obtain the spatial coordinate information corresponding to the target distance data as the second spatial coordinate information. This coordinate information indicates the position of the target point closest to the target vehicle on the transmission channel. Then convert the second spatial coordinate information into a second coordinate position, and convert the second spatial coordinate information from the cloud spatial coordinate system to another coordinate system (such as a ground coordinate system, etc.) to obtain the second coordinate position. The conversion of three-dimensional coordinates to two-dimensional coordinates is usually called projection, which involves mapping points in three-dimensional space to a two-dimensional plane. Orthogonal projection can be used, which directly ignores the value of the z-axis and directly uses the x and y coordinates of the three-dimensional point as two-dimensional coordinates. Perspective projection can also be used for conversion. The specific method for conversion can be selected based on actual conditions. Construct a preset distance measurement database, which includes a first corresponding relationship and a second corresponding relationship. The first corresponding relationship is the corresponding relationship between the first coordinate position and the second coordinate position, and the second corresponding relationship is the corresponding relationship between the first coordinate position and the target distance data. The preset distance measurement database can store this information in the form of a table, file, or other data structure for subsequent query and use.
[0050] In addition, one is selected from multiple spatial coordinate information on the target power transmission channel as the third spatial coordinate information, and then the distance between the third spatial coordinate information and the first spatial coordinate information is calculated to obtain distance data. The first spatial coordinate information and multiple spatial coordinate information are calculated in sequence to obtain multiple distance data; specifically including: obtaining the third spatial coordinate information, the third spatial coordinate information is any one of the multiple spatial coordinate information; calculating the first spatial coordinate information and the third spatial coordinate information to obtain the first distance data; calculating the first spatial coordinate information and the fourth spatial coordinate information to obtain the second distance data, the fourth spatial coordinate information is any one of the multiple spatial coordinate information except the third spatial coordinate information, and the multiple distance data include the first distance data and the second distance data. Specifically, one is selected from multiple spatial coordinate information on the target transmission channel as the third spatial coordinate information, and the first distance data between the first spatial coordinate information and the second spatial coordinate information is calculated. The first spatial coordinate information is first obtained, and the first spatial coordinate information represents the position of the target vehicle in the cloud spatial coordinate system. The third spatial coordinate information is obtained, and the third spatial coordinate information represents the position of a certain point on the target transmission channel. The distance calculation formula can be used to take the first spatial coordinate information and the third spatial coordinate information as input to calculate the distance between the two, that is, the first distance data. The distance calculation formula is: ; In the above formula, d represents distance data, (X1, Y1, Z1) represents the first spatial coordinate information, and (X2, Y2, Z2) represents the third spatial coordinate information. Then select one of the remaining spatial coordinate information as the fourth spatial coordinate information, repeat the steps in the first spatial coordinate information and the third spatial coordinate information, use the above distance calculation formula, take the first spatial coordinate information and the fourth spatial coordinate information as input, and calculate the distance between the two, that is, the second distance data. The distance between the first spatial coordinate information and all spatial coordinate information on the target power transmission channel is calculated in sequence to obtain multiple distance data, which can help us fully understand the relationship between the target vehicle and the target power transmission channel. After the preset distance measurement database is constructed, the first coordinate position is input into the preset distance measurement database for query, and other coordinate positions and distance data that establish a corresponding relationship with the first coordinate position are queried. According to the first corresponding relationship and the second corresponding relationship, the second coordinate position and the target distance data are obtained.
[0051] Furthermore, it is necessary to obtain the position where the target vehicle may appear in the target image. If the target vehicle may still be in the third coordinate position at this time, the third coordinate position is converted to obtain three-dimensional coordinate information, and then the three-dimensional coordinate information is calculated with other spatial coordinate information on the target power transmission channel to obtain multiple distance data, and then the multiple distance data are sorted to obtain the first sorting result, and then the distance data corresponding to the first position in the first sorting result is obtained to obtain the third distance data, and then the spatial coordinate information corresponding to the third distance data is obtained, and the spatial coordinate information is converted to obtain the fourth coordinate position. A corresponding relationship between the third coordinate position and the fourth coordinate position is established, and a corresponding relationship between the third coordinate information and the third distance data is established, and the two corresponding relationships are stored in a preset distance measurement database, so that when the target vehicle is in the third coordinate position later, the third coordinate position is input into the preset distance measurement database for query, and then the fourth coordinate position and the third distance data are obtained.
[0052] Furthermore, since there may be multiple positions where target vehicles appear in the target image, all positions where target vehicles may appear in the target image are obtained, and the corresponding distance data between each position and the target power transmission channel are calculated in turn, for the convenience of storage. The target distance data and the second coordinate position can be stored in a three-channel manner. Specifically including: obtaining the target channel distance data, the target channel distance data is the distance data between the target power transmission channel and the ground; obtaining the target distance data and the second coordinate position; calculating the target channel distance data and the target distance data to obtain the first channel data; obtaining the width data corresponding to the target image, calculating the first data and the width data to obtain the second channel data, the first data is the horizontal coordinate in the second coordinate position; obtaining the height data corresponding to the target image, calculating the second data as the height data, obtaining the third channel data, the second data is the vertical coordinate in the second coordinate position; establishing a third corresponding relationship between the first coordinate position and the target channel data, establishing a fourth corresponding relationship between the first coordinate position and the first channel data, and storing the third corresponding relationship and the fourth corresponding relationship in the preset distance measurement database, the target channel data is the data combined from the second channel data and the third channel data.
[0053] Specifically, it is necessary to obtain the distance data between the target transmission channel and the ground, that is, the target channel distance data, which can be obtained by querying the files of the transmission channel, geographic location system data or field measurement. The target channel data represents the vertical distance from the suspension point of the transmission channel to the ground. When obtaining the target distance data and the second coordinate position corresponding to the target vehicle in the target image, the target distance data represents the horizontal distance between the target vehicle and the first point on the target transmission channel, and the second coordinate position is the position of the first point in the target image. Calculate the target channel distance data and the target distance data to obtain the first channel data. The calculation formula for the first channel data is as follows: ; In the above formula, d represents the target distance data, n represents the target channel distance data, L represents the first channel data, and clamp represents the numerical clamp function. The numerical clamp function is a function used to limit the range of a value. Specifically, it ensures that a value is always between the specified minimum and maximum values. If the value is less than the minimum value, the clamp function returns the minimum value; if the value is greater than the maximum value, the clamp function returns the maximum value; if the value is between the minimum and maximum values, the clamp function returns the value itself.
[0054] Then obtain the width data corresponding to the target image, which can be obtained through the image processing library or image metadata, and then calculate the horizontal coordinate (first data) in the second coordinate position with the image width data to obtain the second channel data. This calculation process may be to convert the horizontal coordinate into a relative position or ratio on the image. The calculation formula for the second channel data is as follows: ; In the above formula, represents the horizontal coordinate in the second coordinate position, W represents width data, and M represents the second channel data.
[0055] Then obtain the height data corresponding to the target image, which can be obtained through the image processing library or image metadata, and then calculate the vertical coordinate (second data) in the second coordinate position with the image height data to obtain the third channel data. This calculation process may be to convert the horizontal coordinate into a relative position or proportion on the image. The calculation formula for the third channel data is as follows: ; In the above formula, Represents the ordinate in the second coordinate position, H represents the width data, and N represents the third channel data. After the first channel data, the second channel data, and the third channel data are obtained respectively through the above three formulas, the second channel data and the third channel data are combined to obtain the target channel data, and the first coordinate position and the target channel data are established with a third corresponding relationship, and the third corresponding relationship is stored in a preset distance measurement database, so that when the target vehicle is subsequently identified in the target image at the first coordinate position, the target channel data that establishes a third corresponding relationship with the first coordinate position is obtained, and the second coordinate position can be inferred from the calculation formula of the above second channel data and the third channel data. Then, the first coordinate position and the first channel data are established with a fourth corresponding relationship, and the fourth corresponding relationship represents the distance between the second coordinate position and the first coordinate position when the target vehicle is at the first coordinate position, that is, the shortest distance between the target vehicle and the target power transmission channel, and the fourth corresponding relationship is stored in the preset distance measurement database, so that when the target vehicle is determined to be at the first coordinate position, the first channel data with the shortest distance to the target power transmission channel is obtained, and the target distance data d can be inferred from the calculation formula of the above first channel data. In this application, the second coordinate position and target distance data are calculated. The purpose of the calculation is to prevent the subsequent extraction of the first coordinate position of the target vehicle in the target image from ensuring that the size of the captured target image is the same as the actual stored target image, that is, the target image cannot change. Changes in the image will lead to inaccurate acquisition of the first coordinate position, and then inaccurate extraction of the position. In addition, the first channel data, the second channel data, and the third channel data are calculated based on the size of the target image and the height of the target transmission channel. Subsequently, the above three calculation formulas are reversed according to the size of the target image and the height of the target transmission channel, and the second coordinate position and target distance data can be obtained.
[0056] After constructing a preset distance measurement database using the above method, the first coordinate position is input into the preset distance measurement database for query to obtain the second coordinate position and target distance data. At this time, the second coordinate position is the position on the target transmission channel closest to the first coordinate position, and the target distance data is the shortest distance between the first coordinate position and the second coordinate position.
[0057] S105: Determine whether the target distance data is less than the target height data, where the target height data is the height data between the target vehicle and the ground.
[0058] In the above S105, after the detection platform inputs the first coordinate position into the preset distance measurement database for query, and obtains the second coordinate position and the target distance data, the height data between the target vehicle and the ground (target height data) is obtained, which can be obtained through the sensor of the target vehicle, user input or other methods. The target height data is compared with the target distance data obtained by the query, and the target distance data is the shortest distance between the target vehicle and the target transmission channel.
[0059] S106: When the target distance data is less than the target height data, it is confirmed that the distance between the target vehicle and the target power transmission channel is in a preset normal state, and the preset normal state is displayed to the user.
[0060] In the above S106, when the target distance data is less than the target height data, it is confirmed that the distance between the target vehicle and the target power transmission channel is in a preset normal state. Before the preset normal state is displayed to the user, it is also necessary to determine whether the difference between the target height data and the target distance data is within a safe range. If it is within a safe range, it is confirmed that the target vehicle can safely pass through the target power transmission channel. Specifically, it includes: obtaining a target distance difference, the target distance difference is the difference between the target height data and the target distance data; determining whether the target distance difference is less than or equal to a preset safety threshold; when the target distance difference is greater than the preset safety threshold, it is confirmed that the distance between the target vehicle and the target power transmission channel is in a preset normal state. Specifically, the target height data generally refers to the height of the target vehicle from the ground, which can be obtained in a variety of ways, such as vehicle information in a vehicle database, the average height corresponding to the vehicle type, or real-time measurement by a sensor. The target distance data is the horizontal distance between the target vehicle and the second coordinate position on the target power transmission channel, which can be obtained by entering the first coordinate position corresponding to the target vehicle into a preset distance measurement database for query. Then calculate the difference between the target height data and the target distance data, that is, the target distance difference = target height data - target distance data. Then determine whether the target distance difference is less than or equal to the preset safety threshold. The preset safety threshold is a value set according to the actual situation and is used to determine whether the distance between the target vehicle and the target transmission channel is safe. The preset safety threshold can be determined based on factors such as the height, voltage level, and safety distance requirements of the transmission channel. When the target distance difference is greater than the preset safety threshold, it is confirmed that the distance between the target vehicle and the target transmission channel is in a preset normal state. At this time, the preset state indicates that the distance between the target vehicle and the target transmission channel is much greater than the preset safety threshold. There is a risk of collision between the target vehicle and the target transmission channel. The preset normal state can be displayed to the user to facilitate the user to drive the target vehicle to continue driving.
[0061] For example, the target distance data is obtained, the target distance data is 60 meters, the target height data is obtained, the target height data is 80 meters, the target distance difference is 20 meters, and the preset safety threshold is determined to be 18 meters based on the voltage level and height of the target transmission channel. If the target distance difference is greater than the preset safety threshold, it is confirmed that the distance between the target vehicle and the target transmission channel does not exceed the safety threshold, and there will be no collision risk.
[0062] Further, if the target distance difference is less than or equal to the preset safety threshold, it is confirmed that the distance between the target vehicle and the target power transmission channel is in an abnormal state, and a warning prompt message is sent to the user. The warning prompt message is used to remind the user that the target vehicle is in a risk of contact. Specifically, when the target distance difference is less than or equal to the preset safety threshold, it is confirmed that the distance between the target vehicle and the target power transmission channel is in an abnormal state. The abnormal state means that there is a potential danger, that is, the distance between the target vehicle and the target power transmission channel has approached or exceeded the limit of the safety distance. When it is confirmed that the distance between the target vehicle and the target power transmission channel is in an abnormal state, a warning prompt message is sent to the user. The preset prompt message is used to remind the user that the target vehicle in the form of a touch risk exists, and the target vehicle needs to be guided to change the driving path to ensure the safe operation of the target power transmission alternative and the safe driving of the target vehicle. The warning prompt message can be sent to the user in a variety of ways. If the vehicle is equipped with an on-board display screen, the warning message can be directly displayed on the screen. If the detection platform is connected to the user's mobile phone APP, the warning message can be pushed to the user's mobile phone through the APP, and the voice prompt message can also be played through the car audio or the mobile phone speaker.
[0063] Furthermore, when the target distance data is greater than or equal to the target height data, it is confirmed that the distance between the target vehicle and the target power transmission channel is in an abnormal state, and a prompt message can be sent to the user so that the user can adjust the driving path of the target vehicle in time according to the prompt message to reduce the risk of collision between the target vehicle and the target power transmission channel.
[0064] like Figure 2 As shown, the first coordinate position of the target vehicle a in the target image is (x, y). Before extracting the first coordinate position of the target vehicle in the target image, it is necessary to determine the image information of the target edge device by which the target image is taken. According to the identification information of the target edge device, the actual geographical location of the target vehicle and the target power transmission channel is determined, so that the first coordinate position can be subsequently input into the preset distance measurement database for query. At this time, the preset distance measurement data is constructed based on the actual geographical location of the target vehicle and the target power transmission channel. That is, a preset distance measurement database is constructed for a target power transmission channel and a target edge device, so that after the position corresponding to the target image is determined later, the first coordinate position is input into the preset distance measurement database for query to obtain the second coordinate position and target distance data. The second coordinate position is (x1, y1), the target distance data is b, and the target power transmission channel is c.
[0065] The embodiment of the present application also provides a device for measuring the distance at the edge of a static power transmission channel, Figure 3 This is a schematic diagram of a distance measuring device for the edge of a static power transmission channel provided in an embodiment of the present application, with reference to Figure 3The device is a detection platform, which includes an acquisition unit 301, a processing unit 302 and a confirmation unit 303.
[0066] The acquisition unit 301 receives a monitoring request sent by a user, where the monitoring request is a request for monitoring the distance between a target vehicle and a target power transmission channel; and acquires a first coordinate position corresponding to the target vehicle in a target image.
[0067] Processing unit 302 obtains a target image according to a monitoring request, where the target image is an image taken by a target edge device, and the target edge device is a monitoring device installed at a target power transmission channel; inputs a first coordinate position into a preset distance measurement database for query to obtain a second coordinate position and target distance data, where the second coordinate position is a position on the target power transmission channel, and the target distance data is distance data between the first coordinate position and the second coordinate position; and determines whether the target distance data is less than the target height data, where the target height data is height data between the target vehicle and the ground.
[0068] The confirmation unit 303 confirms that the distance between the target vehicle and the target power transmission channel is in a preset normal state when the target distance data is less than the target height data, and displays the preset normal state to the user.
[0069] In a possible implementation, the acquisition unit 301 is used to acquire a first coordinate position, determine first spatial coordinate information based on the first coordinate position, and the first spatial coordinate information is the spatial coordinate information on the cloud corresponding to the first coordinate position; obtain multiple spatial coordinate information on the target transmission channel; the processing unit 302 is used to calculate the first spatial coordinate information and the multiple spatial coordinate information in sequence to obtain multiple distance data; sort the multiple distance data from small to large to obtain a sorting result; the acquisition unit 301 is used to acquire target distance data, and the target distance data is the distance data corresponding to the first position in the sorting result; acquire second spatial coordinate information, and the second spatial coordinate information is the spatial coordinate information corresponding to the target distance data; the processing unit 302 is used to convert the second spatial coordinate information to obtain a second coordinate position; construct a preset ranging database, and the preset ranging database includes a first corresponding relationship and a second corresponding relationship, the first corresponding relationship is the corresponding relationship between the first coordinate position and the second coordinate position, and the second corresponding relationship is the corresponding relationship between the first coordinate position and the target distance data.
[0070] In a possible implementation, the acquisition unit 301 is used to acquire third spatial coordinate information, where the third spatial coordinate information is any one of multiple spatial coordinate information; the processing unit 302 is used to calculate the first spatial coordinate information and the third spatial coordinate information to obtain first distance data; the first spatial coordinate information and the fourth spatial coordinate information are calculated to obtain second distance data, where the fourth spatial coordinate information is any one of multiple spatial coordinate information except the third spatial coordinate information, and the multiple distance data include the first distance data and the second distance data.
[0071] In a possible implementation, the acquisition unit 301 is used to acquire target channel distance data, which is the distance data between the target power transmission channel and the ground; to acquire the target distance data and the second coordinate position; the processing unit 302 is used to calculate the target channel distance data and the target distance data to obtain first channel data; the acquisition unit 301 is used to acquire width data corresponding to the target image, calculate the first data and the width data to obtain second channel data, and the first data is the horizontal coordinate in the second coordinate position; acquire height data corresponding to the target image, calculate the second data as the height data, and obtain third channel data, and the second data is the vertical coordinate in the second coordinate position; the processing unit 302 is used to establish a third corresponding relationship between the first coordinate position and the target channel data, establish a fourth corresponding relationship between the first coordinate position and the first channel data, and store the third corresponding relationship and the fourth corresponding relationship in a preset ranging database, and the target channel data is data combined from the second channel data and the third channel data.
[0072] In a possible implementation, the acquisition unit 301 is used to acquire a target image, import the target image into a preset software for query, and obtain multiple query results; determine the target query result corresponding to the target vehicle, and acquire the first coordinate position corresponding to the target query result.
[0073] In one possible implementation, the acquisition unit 301 is used to obtain a target distance difference, which is the difference between the target height data and the target distance data; the processing unit 302 is used to determine whether the target distance difference is less than or equal to a preset safety threshold; the confirmation unit 303 is used to confirm that the distance between the target vehicle and the target power transmission channel is in a preset normal state when the target distance difference is greater than the preset safety threshold.
[0074] In a possible implementation, the confirmation unit 303 is used to confirm that the distance between the target vehicle and the target power transmission channel is in an abnormal state if the target distance difference is less than or equal to a preset safety threshold, and send a warning prompt message to the user, where the warning prompt message is used to prompt the user that there is a risk of collision with the target vehicle.
[0075] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0076] The present application also discloses an electronic device. Figure 4 , Figure 4 The electronic device 400 may include: at least one processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .
[0077] The communication bus 402 is used to realize the connection and communication between these components.
[0078] The user interface 403 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 403 may also include a standard wired interface and a wireless interface.
[0079] The network interface 404 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0080] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 401 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application requests; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.
[0081] Among them, the memory 405 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer-readable storage medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area. Instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. can be stored; the data storage area can store data involved in the above-mentioned various method embodiments, etc. The memory 405 can also be optionally at least one storage device located away from the aforementioned processor 401.
[0082] like Figure 4 As shown, the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for measuring the distance to the edge end of a static power transmission channel.
[0083] exist Figure 4In the electronic device 400 shown, the user interface 403 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 401 can be used to call the application program for measuring the distance at the edge of the static power transmission channel stored in the memory 405. When executed by one or more processors, the electronic device executes one or more of the methods described in the above embodiments.
[0084] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0085] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0086] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0087] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0088] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0089] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0090] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any variation, use or adaptive change of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure.
Claims
1. A method for measuring the distance at the edge of a static power transmission channel, characterized in that: Applied in a detection platform, the method comprises: receiving a monitoring request sent by a user, wherein the monitoring request is a request for monitoring the distance between a target vehicle and a target power transmission channel; Acquire a target image according to the monitoring request, wherein the target image is an image taken by a target edge device, and the target edge device is a monitoring device installed at the target power transmission channel; Obtaining a first coordinate position corresponding to the target vehicle in the target image; Input the first coordinate position into a preset distance measurement database for query to obtain a second coordinate position and target distance data, wherein the second coordinate position is a position on the target power transmission channel, and the target distance data is distance data from the first coordinate position to the second coordinate position; Determine whether the target distance data is less than the target height data, the target height data being the height data between the target vehicle and the ground; When the target distance data is less than the target height data, it is confirmed that the distance between the target vehicle and the target power transmission channel is in a preset normal state, and the preset normal state is displayed to the user.
2. The method according to claim 1, characterized in that Before inputting the first coordinate position into a preset distance measurement database for query to obtain the second coordinate position and target distance data, the preset distance measurement database needs to be constructed, specifically including: Acquire the first coordinate position, and determine first spatial coordinate information according to the first coordinate position, where the first spatial coordinate information is the spatial coordinate information on the cloud corresponding to the first coordinate position; Acquiring multiple spatial coordinate information on the target power transmission channel; Calculating the first spatial coordinate information and the plurality of spatial coordinate information in sequence to obtain a plurality of distance data; Sorting the plurality of distance data from small to large to obtain a sorting result; Acquire the target distance data, where the target distance data is the distance data corresponding to the first position in the sorting result; Acquire second spatial coordinate information, where the second spatial coordinate information is spatial coordinate information corresponding to the target distance data; Convert the second spatial coordinate information to obtain the second coordinate position; The preset distance measurement database is constructed, and the preset distance measurement database includes a first corresponding relationship and a second corresponding relationship, wherein the first corresponding relationship is a corresponding relationship between the first coordinate position and the second coordinate position, and the second corresponding relationship is a corresponding relationship between the first coordinate position and the target distance data.
3. The method according to claim 2, characterized in that The step of sequentially calculating the first spatial coordinate information and the plurality of spatial coordinate information to obtain a plurality of distance data specifically includes: Acquire third spatial coordinate information, where the third spatial coordinate information is any one of the plurality of spatial coordinate information; Calculating the first spatial coordinate information and the third spatial coordinate information to obtain first distance data; The first spatial coordinate information and the fourth spatial coordinate information are calculated to obtain second distance data, wherein the fourth spatial coordinate information is any one of the plurality of spatial coordinate information except the third spatial coordinate information, and the plurality of distance data include the first distance data and the second distance data.
4. The method according to claim 2, characterized in that: After converting the second spatial coordinate information to obtain the second coordinate position, the method further includes: Acquire target channel distance data, where the target channel distance data is distance data between the target power transmission channel and the ground; Acquire the target distance data and the second coordinate position; Calculating the target channel distance data and the target distance data to obtain first channel data; Obtain width data corresponding to the target image, calculate the first data and the width data to obtain second channel data, where the first data is the horizontal coordinate in the second coordinate position; Acquire height data corresponding to the target image, calculate the second data as the height data, and obtain third channel data, wherein the second data is the ordinate at the second coordinate position; A third correspondence is established between the first coordinate position and the target channel data, a fourth correspondence is established between the first coordinate position and the first channel data, and the third correspondence and the fourth correspondence are stored in the preset ranging database, wherein the target channel data is a combination of the second channel data and the third channel data.
5. The method according to claim 1, characterized in that Before obtaining the first coordinate position corresponding to the target vehicle in the target image, the method further includes: Acquire the target image, import the target image into a preset software for query, and obtain multiple query results; Determine a target query result corresponding to the target vehicle, and obtain the first coordinate position corresponding to the target query result.
6. The method according to claim 1, characterized in that After the target distance data is less than the target height data, the method further includes: Acquire a target distance difference, where the target distance difference is a difference between the target height data and the target distance data; Determine whether the target distance difference is less than or equal to a preset safety threshold; When the target distance difference is greater than the preset safety threshold, it is confirmed that the distance between the target vehicle and the target power transmission channel is in the preset normal state.
7. The method according to claim 6, characterized in that After determining whether the target distance difference is less than or equal to a preset safety threshold, the method further includes: If the target distance difference is less than or equal to the preset safety threshold, it is confirmed that the distance between the target vehicle and the target power transmission channel is in an abnormal state, and a warning prompt message is sent to the user, wherein the warning prompt message is used to prompt the user that the target vehicle being driven is at risk of collision.
8. A device for measuring the distance at the edge of a static power transmission channel, characterized in that: The device is a detection platform, which comprises an acquisition unit (301), a processing unit (302) and a confirmation unit (303); The acquisition unit (301) receives a monitoring request sent by a user, wherein the monitoring request is a request for monitoring the distance between a target vehicle and a target power transmission channel; and acquires a first coordinate position corresponding to the target vehicle in the target image; The processing unit (302) obtains a target image according to the monitoring request, the target image is an image taken by a target edge device, and the target edge device is a monitoring device installed at the target power transmission channel; inputs the first coordinate position into a preset distance measurement database for query to obtain a second coordinate position and target distance data, the second coordinate position is a position on the target power transmission channel, and the target distance data is distance data between the first coordinate position and the second coordinate position; determines whether the target distance data is less than target height data, the target height data is height data between the target vehicle and the ground; The confirmation unit (303) confirms that the distance between the target vehicle and the target power transmission channel is in a preset normal state when the target distance data is less than the target height data, and displays the preset normal state to the user.
9. An electronic device, characterized in that: The electronic device (400) comprises a processor (401), a memory (405), a user interface (403) and a network interface (404), wherein the memory (405) is used to store instructions, the user interface (403) and the network interface (404) are used to communicate with other devices, and the processor (401) is used to execute the instructions stored in the memory (405) so that the electronic device (400) executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is executed.
Citation Information
Patent Citations
High-voltage line foreign matter invasion target detection method
CN104463904A
Stereo space monitoring and rapid distance measurement method of powder transmission line channel
CN107391631A
Power transmission line external damage prevention method and system based on multi-monitoring image recognition
CN110490121A
Safety distance monitoring and alarming method and system for preventing overhead line from being externally damaged by crane
CN111210594A
Alarm method and system for preventing power transmission line from being touched
CN113903154A
