CN112489130B - Distance measurement method and device for power transmission line and target object and electronic equipment - Google Patents

Distance measurement method and device for power transmission line and target object and electronic equipment Download PDF

Info

Publication number
CN112489130B
CN112489130B CN202110027658.1A CN202110027658A CN112489130B CN 112489130 B CN112489130 B CN 112489130B CN 202110027658 A CN202110027658 A CN 202110027658A CN 112489130 B CN112489130 B CN 112489130B
Authority
CN
China
Prior art keywords
dimensional
target object
coordinate
transmission line
power transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110027658.1A
Other languages
Chinese (zh)
Other versions
CN112489130A (en
Inventor
戴永东
王茂飞
毛锋
余万金
蒋中军
邵杰
贾俊
翁蓓蓓
鞠玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taizhou Power Supply Co of State Grid Jiangsu Electric Power Co Ltd
Original Assignee
Taizhou Power Supply Co of State Grid Jiangsu Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taizhou Power Supply Co of State Grid Jiangsu Electric Power Co Ltd filed Critical Taizhou Power Supply Co of State Grid Jiangsu Electric Power Co Ltd
Priority to CN202110027658.1A priority Critical patent/CN112489130B/en
Publication of CN112489130A publication Critical patent/CN112489130A/en
Application granted granted Critical
Publication of CN112489130B publication Critical patent/CN112489130B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C3/00Measuring distances in line of sight; Optical rangefinders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10028Range image; Depth image; 3D point clouds

Abstract

The invention discloses a distance measurement method and device for a power transmission line and a target object and electronic equipment, wherein the method comprises the following steps: receiving a background point cloud and a two-dimensional background image of a power transmission line corridor scene; constructing a coordinate transformation relation between the background point cloud and the two-dimensional background image; selecting characteristic points from the background point cloud and the two-dimensional background image to construct a mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud; receiving a real-time two-dimensional image of a power transmission line corridor scene, and judging whether a target object appears in the real-time two-dimensional image; when the target object appears, calculating the three-dimensional point coordinate of the target object in the background point cloud according to the pixel coordinate and the mapping relation of the target object, and searching the three-dimensional point coordinate of the power transmission line nearest to the target object; calculating the Euclidean distance between the target object and the power transmission line according to the three-dimensional point coordinates of the target object and the three-dimensional point coordinates of the power transmission line; the method can solve the problem of large error of the measurement mode of the traditional handheld laser range finder.

Description

Distance measurement method and device for power transmission line and target object and electronic equipment
Technical Field
The present disclosure relates to the field of power transmission networks, and in particular, to a method and an apparatus for measuring a distance between a power transmission line and a target object, and an electronic device.
Background
The traditional method adopts an artificial ground laser ranging mode for ranging the power transmission line, a detector measures the distance between a target object and the power transmission line by using a handheld laser range finder, and the basic principle of the mode is to calculate the distance by using the light flight time and the light speed and the atmospheric refractive index.
The measurement mode of the traditional hand-held laser range finder is easy to be interfered and influenced by human and environmental factors. For example, in areas with more sunny days, the infrared rays contained in strong sunlight can cause a handheld laser range finder used outdoors to generate larger measurement errors; under the rainy and snowy weather conditions, the reflection of the laser beam can be influenced by rainwater, so that the measuring equipment cannot work normally; meanwhile, inaccuracy in target positioning caused by human factors can also bring errors to measurement. All-weather and all-day transmission line monitoring cannot be implemented due to manpower and actual field operation cost.
Disclosure of Invention
The invention provides a distance measuring method, a distance measuring device and electronic equipment for a power transmission line and a target object, which can solve the problems that the measuring mode of a traditional handheld laser range finder has large error and the power transmission line cannot be monitored all the time.
A distance measurement method of a power transmission line and a target object comprises the following steps:
receiving a background point cloud and a two-dimensional background image of a power transmission line corridor scene;
constructing a coordinate transformation relation between the background point cloud and the two-dimensional background image;
selecting characteristic points from the background point cloud and the two-dimensional background image;
according to the coordinates of the feature points and the coordinate transformation relation, constructing a mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud;
receiving a real-time two-dimensional image of a power transmission line corridor scene, and judging whether a target object appears in the real-time two-dimensional image;
when a target object appears, calculating three-dimensional point coordinates of the target object in a background point cloud according to pixel coordinates of the target object and the mapping relation, and searching three-dimensional point coordinates of a power transmission line nearest to the target object;
and calculating the Euclidean distance between the target object and the power transmission line according to the three-dimensional point coordinates of the target object and the three-dimensional point coordinates of the power transmission line.
Further, the coordinate transformation relationship is as follows:
wherein,and->Each pixel is shown in the horizontal axis +.>And longitudinal axis->Physical dimensions on->Pixel coordinates for the intersection of the camera optical axis and the image plane, < >>Representing the focal length of the camera, +.>For pixel coordinates +.>Is a three-dimensional point coordinate; />Representing a rotation matrix between a camera coordinate system and a point cloud three-dimensional space coordinate system, +.>And a translation vector representing a camera coordinate system to a point cloud three-dimensional space coordinate system.
Further, the feature points are at least three groups;
according to the coordinate of the feature point and the coordinate transformation relation, a mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud is constructed, and the method comprises the following steps:
bringing the two-dimensional pixel coordinates of the feature points in the two-dimensional background image and the three-dimensional point coordinates in the background point cloud into the coordinate transformation relation, and calculating the rotation matrix and the translation vector;
and calculating the mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud according to the coordinate transformation relation, wherein each pixel coordinate in the two-dimensional background image corresponds to the three-dimensional point coordinate in the background point cloud.
Further, after the target is present, the method further comprises:
and selecting any pixel of the target object, and searching the three-dimensional point coordinate corresponding to the pixel coordinate according to the mapping relation.
Further, after the target is present, the method further comprises:
performing frame selection on the target object;
calculating the space distance from the top angle of the square frame to the bottom angle on the same side;
selecting square base angle pixels, and searching three-dimensional point coordinates corresponding to the base angle pixel coordinates according to the mapping relation;
adding the Z-axis coordinates of the three-dimensional point coordinates of each base angle to the space distance to obtain three-dimensional point coordinates of each vertex angle;
calculating Euclidean distances between each vertex angle and the power transmission line according to the three-dimensional point coordinates of each vertex angle and the three-dimensional point coordinates of the power transmission line;
and selecting the shortest Euclidean distance obtained by calculation as the distance between the target object and the power transmission line.
Further, calculating the spatial distance from the top corner of the square block to the same side bottom corner includes:
selecting any two diagonal angles of the square frame, and calculating the pixel coordinate of the other base angle at the bottom end of the square frame according to the pixel coordinate of the diagonal angle;
according to the mapping relation, searching three-dimensional point coordinates corresponding to the two base angles;
according to the three-dimensional point coordinates of the two base angles, calculating the Euclidean distance between the two base angles;
dividing the Euclidean distance between two bottom corners by the pixel distance between the two corners to obtain a pixel space size value corresponding to each pixel in the square frame;
and calculating the space distance from the vertex angle to the same side base angle according to the pixel space size value and the pixel coordinates of the vertex angle and the base angle.
Further, the euclidean distance is calculated by the following formula:
wherein,and->Two three-dimensional point coordinates are respectively adopted, and d is the Euclidean distance.
A distance measurement device for a power transmission line and a target object, comprising:
the receiving module is used for receiving the background point cloud and the two-dimensional background image of the power transmission line corridor scene;
the coordinate transformation module is used for constructing a coordinate transformation relation between the background point cloud and the two-dimensional background image;
the selecting module is used for selecting characteristic points from the background point cloud and the two-dimensional background image;
the relation construction module is used for constructing a mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud according to the coordinates of the characteristic points and the coordinate transformation relation;
the judging module is used for receiving a real-time two-dimensional image of the power transmission line corridor scene and judging whether a target object appears in the real-time two-dimensional image;
the coordinate calculation module is used for calculating the three-dimensional point coordinate of the target object in the background point cloud according to the pixel coordinate of the target object and the mapping relation when the target object appears, and searching the three-dimensional point coordinate of the power transmission line nearest to the target object;
and the distance calculation module is used for calculating the Euclidean distance between the target object and the power transmission line according to the three-dimensional point coordinates of the target object and the three-dimensional point coordinates of the power transmission line.
The electronic equipment comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor is used for reading the instructions and executing the distance measuring method of the transmission line and the target object.
A computer-readable storage medium storing a plurality of instructions readable by a processor and performing the above-described method of measuring a distance between a transmission line and a target object.
The distance measuring method and device for the power transmission line and the target object and the electronic equipment provided by the invention at least comprise the following beneficial effects:
(1) By establishing a mapping relation from two-dimensional pixel coordinates to three-dimensional point coordinates, the distance between a target object and the power transmission line is calculated from the image, the accuracy of distance calculation can be effectively improved, and all-weather monitoring of the power transmission line is realized;
(2) Selecting a target object in a frame, and calculating the three-dimensional point coordinates of the vertex angle according to the space distance from the vertex angle of the square frame to the bottom angle at the same side by calculating the space distance, so that the subsequent calculation result is more accurate;
(3) After the mapping relation from the two-dimensional pixel coordinates to the three-dimensional point coordinates is established, the distance measurement between the power transmission line and the target object can be realized through the real-time two-dimensional image acquired by the monocular camera, and the monocular camera is convenient to set and can effectively reduce the cost.
Drawings
Fig. 1 is a flowchart of an embodiment of a method for measuring a distance between a power transmission line and a target object according to the present invention.
Fig. 2 is a schematic structural diagram of an embodiment of a distance measurement device for a transmission line and a target object provided by the present invention.
Fig. 3 is a schematic structural diagram of an embodiment of an electronic device according to the present invention.
Fig. 4 is a schematic structural diagram of an embodiment of a distance measurement system for a transmission line and a target object according to the present invention.
Detailed Description
In order to better understand the above technical solutions, the following detailed description will be given with reference to the accompanying drawings and specific embodiments.
Referring to fig. 1, in some embodiments, a method for measuring a distance between a power transmission line and a target object is provided, including:
s1, receiving a background point cloud and a two-dimensional background image of a power transmission line corridor scene;
s2, constructing a coordinate transformation relation between the background point cloud and the two-dimensional background image;
s3, selecting characteristic points from the background point cloud and the two-dimensional background image;
s4, constructing a mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud according to the coordinates of the characteristic points and the coordinate transformation relation;
s5, receiving a real-time two-dimensional image of a power transmission line corridor scene, and judging whether a target object appears in the real-time two-dimensional image;
s6, when a target object appears, calculating three-dimensional point coordinates of the target object in a background point cloud according to pixel coordinates of the target object and the mapping relation, and searching three-dimensional point coordinates of a power transmission line closest to the target object;
and S7, calculating the Euclidean distance between the target object and the power transmission line according to the three-dimensional point coordinates of the target object and the three-dimensional point coordinates of the power transmission line.
Specifically, in S1, collecting background point clouds of a power transmission line corridor scene through an unmanned aerial vehicle laser radar scanning system, planning operation tracks of the unmanned aerial vehicle in advance, and sending instructions to the unmanned aerial vehicle so as to enable the unmanned aerial vehicle to fly according to the preset operation tracks, wherein the collected background point clouds of the power transmission line corridor scene are collected through the laser radar system in the flying process, and the collection range is n power towers and a 20-meter range outside the power transmission line between two adjacent power towers, wherein n is more than or equal to 2; the space distance between the operation track and the ground of the power transmission line corridor meets a set condition, and it can be understood that the set condition refers to that the distance between the operation track and the ground is not more than the effective scanning distance of a laser radar scanning system carried by the unmanned aerial vehicle; meanwhile, the flying speed of the unmanned aerial vehicle needs to be controlled under a certain condition, and it can be understood that the laser radar scanning system carried by the unmanned aerial vehicle can acquire the point cloud of the effective acquisition transmission line corridor scene and other targets.
In some embodiments, the method further comprises: classifying the acquired background point clouds into a power transmission line point cloud and a non-power transmission line point cloud.
The two-dimensional background image is acquired by the monocular camera arranged on the power tower, the width of a power transmission line corridor which can be observed by the monocular camera is greater than or equal to 50 meters, the frequency of the image acquired by the monocular camera is greater than or equal to 10Hz, and the resolution ratio of the image is not less than 720 multiplied by 480.
Further, in S2, the coordinate transformation relationship between the constructed background point cloud and the two-dimensional background image is as follows:
;(1)
wherein,and->Each pixel is shown in the horizontal axis +.>And longitudinal axis->Physical dimensions on->Pixel coordinates for the intersection of the camera optical axis and the image plane, < >>Representing the focal length of the camera, +.>For pixel coordinates +.>Is a three-dimensional point coordinate; />Representing a rotation matrix between a camera coordinate system and a point cloud three-dimensional space coordinate system, +.>And a translation vector representing a camera coordinate system to a point cloud three-dimensional space coordinate system.
In the coordinate transformation relation (1), the rotation matrix R and the translation vector T are unknowns, and thus S3 is further performed to select feature points from the background point cloud and the two-dimensional background image, and calculate the rotation matrix R and the translation vector T.
Specifically, the selected characteristic points need to exist in a two-dimensional background image returned by the monocular camera and a background point cloud scanned by the unmanned aerial vehicle laser radar at the same time, and the position and the shape of the characteristic points in a scene are not changed; the selected characteristic points should ensure uniqueness and be uniformly distributed in the whole scene; optionally, at least 3 sets of feature points are acquired, and it can be understood that, in order to ensure accuracy of the mapping relationship, as many feature points uniformly distributed in the scene should be selected as possible.
Further, in S4, first, two-dimensional pixel coordinates of each feature point in the two-dimensional background image and three-dimensional point coordinates in the background point cloud are obtained, the pixel coordinates of the feature point in the two-dimensional background image and the three-dimensional point coordinates in the background point cloud are brought into the coordinate transformation relation (1), and the rotation matrix and the translation vector are calculated;
after the rotation matrix and the translation vector are obtained through calculation, according to the coordinate transformation relation (1), the three-dimensional point coordinates corresponding to the background point cloud in each pixel coordinate in the two-dimensional background image can be calculated, and therefore the mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud is obtained.
After the mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud is established, the three-dimensional coordinate point of any pixel in the two-dimensional background image corresponding to the background point cloud can be obtained.
Further, in S5, a monocular camera disposed on the power tower collects a real-time two-dimensional image, receives the real-time two-dimensional image, and determines whether a target object appears in the real-time two-dimensional image, specifically, whether the target object appears in the real-time two-dimensional image can be determined by an image semantic segmentation algorithm.
In some embodiments, in S6, after the target object is present, further comprising:
and selecting any pixel of the target object, and searching the three-dimensional point coordinate corresponding to the pixel coordinate according to the mapping relation.
And taking the three-dimensional point coordinates corresponding to any one pixel in the target object as a seed point, searching the three-dimensional point coordinates of the power transmission line nearest to the target object, and calculating the Euclidean distance according to the seed point and the three-dimensional point coordinates of the power transmission line, so that the distance between the power transmission line and the target object can be calculated and obtained from the image.
In some embodiments, in S6, after the target object is present, further comprising:
performing frame selection on the target object;
calculating the space distance from the top angle of the square frame to the bottom angle on the same side;
selecting square base angle pixels, and searching three-dimensional point coordinates corresponding to the base angle pixel coordinates according to the mapping relation;
adding the Z-axis coordinates of the three-dimensional point coordinates of each base angle to the space distance to obtain three-dimensional point coordinates of each vertex angle;
calculating Euclidean distances between each vertex angle and the power transmission line according to the three-dimensional point coordinates of each vertex angle and the three-dimensional point coordinates of the power transmission line;
and selecting the shortest Euclidean distance obtained by calculation as the distance between the target object and the power transmission line.
The method for calculating the space distance from the top corner of the square frame to the bottom corner on the same side comprises the following steps:
selecting any two diagonal angles of the square frame, and calculating the pixel coordinate of the other base angle at the bottom end of the square frame according to the pixel coordinate of the diagonal angle;
according to the mapping relation, searching three-dimensional point coordinates corresponding to the two base angles;
according to the three-dimensional point coordinates of the two base angles, calculating the Euclidean distance between the two base angles;
dividing the Euclidean distance between two bottom corners by the pixel distance between the two corners to obtain a pixel space size value corresponding to each pixel in the square frame;
and calculating the space distance from the vertex angle to the same side base angle according to the pixel space size value and the pixel coordinates of the vertex angle and the base angle.
Specifically, for a target object with a larger volume, the frame selection is performed on the target object, and because the frame is two-dimensional, if the distance between the pixels of the top angle of the frame and the power transmission line is calculated by directly selecting the pixels of the top angle of the frame, the space distance between the top angle of the frame and the bottom angle on the same side is calculated, and the coordinates of the three-dimensional point of the top angle are calculated according to the space distance, so that the calculated result is more accurate.
Further, the euclidean distance described in the present embodiment is calculated by the following formula:
;(2)
wherein,and->Two three-dimensional point coordinates are respectively adopted, and d is the Euclidean distance.
The distance measurement between the power transmission line and the target object is realized, and the ground safety distances of 500kV, 220kV and 110kV voltage levels are managed according to different voltage levels of the power transmission line so as to judge the distance between the dangerous source and the lead.
The distance measuring method for the power transmission line and the target object provided by the embodiment at least comprises the following beneficial effects:
(1) By establishing a mapping relation from two-dimensional pixel coordinates to three-dimensional point coordinates, the distance between a target object and the power transmission line is calculated from the image, the accuracy of distance calculation can be effectively improved, and all-weather monitoring of the power transmission line is realized;
(2) Selecting a target object in a frame, and calculating the three-dimensional point coordinates of the vertex angle according to the space distance from the vertex angle of the square frame to the bottom angle at the same side by calculating the space distance, so that the subsequent calculation result is more accurate;
(3) After the mapping relation from the two-dimensional pixel coordinates to the three-dimensional point coordinates is established, the distance measurement between the power transmission line and the target object can be realized through the real-time two-dimensional image acquired by the monocular camera, and the monocular camera is convenient to set and can effectively reduce the cost.
Referring to fig. 2, in some embodiments, there is provided a distance measuring apparatus of a power transmission line from a target object, including:
the receiving module 1 is used for receiving a background point cloud and a two-dimensional background image of a power transmission line corridor scene;
the coordinate transformation module 2 is used for constructing a coordinate transformation relation between the background point cloud and the two-dimensional background image;
a selecting module 3, configured to select feature points from the background point cloud and the two-dimensional background image;
the relation construction module 4 is used for constructing a mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud according to the coordinates of the characteristic points and the coordinate transformation relation;
the judging module 5 is used for receiving a real-time two-dimensional image of the power transmission line corridor scene and judging whether a target object appears in the real-time two-dimensional image;
the coordinate calculation module 6 is used for calculating the three-dimensional point coordinate of the target object in the background point cloud according to the pixel coordinate of the target object and the mapping relation when the target object appears, and searching the three-dimensional point coordinate of the power transmission line nearest to the target object;
and the distance calculation module 7 is used for calculating the Euclidean distance between the target object and the power transmission line according to the three-dimensional point coordinates of the target object and the three-dimensional point coordinates of the power transmission line.
Specifically, the receiving module 1 receives the background point cloud of the power transmission line corridor scene collected by the unmanned aerial vehicle laser radar scanning system and the two-dimensional background image collected by the monocular camera, and the scanning range of the unmanned aerial vehicle laser radar scanning system and the range of the image collected by the monocular camera refer to the above method embodiments, which are not described herein.
The coordinate transformation relation between the background point cloud constructed by the coordinate transformation module 2 and the two-dimensional background image is shown in formula (1).
The characteristic points selected by the selecting module 3 are at least 3 groups, the selected characteristic points need to exist in the two-dimensional background image returned by the monocular camera and the background point cloud scanned by the unmanned aerial vehicle laser radar at the same time, and the position and the shape of the characteristic points in the scene are not changed; the selected characteristic points should ensure uniqueness and be uniformly distributed in the whole scene; it can be understood that, in order to ensure the accuracy of the mapping relationship, as many feature points uniformly distributed in the scene should be selected as possible.
Further, the relationship construction module 4 is further configured to bring two-dimensional pixel coordinates of the feature points in the two-dimensional background image and three-dimensional point coordinates in the background point cloud into the coordinate transformation relationship, and calculate the rotation matrix and the translation vector; and calculating the mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud according to the coordinate transformation relation, wherein each pixel coordinate in the two-dimensional background image corresponds to the three-dimensional point coordinate in the background point cloud.
Further, the coordinate calculation module 6 is further configured to select any one pixel of the target object after the target object appears, and find the three-dimensional point coordinate corresponding to the pixel coordinate according to the mapping relationship. The distance calculating module 7 is further configured to calculate, according to the three-dimensional point coordinate corresponding to the pixel and the three-dimensional point coordinate of the power transmission line, the euclidean distance between the target object and the power transmission line according to formula (2).
Further, the coordinate calculation module 6 is further configured to perform frame selection on the target object after the target object appears; calculating the space distance from the top angle of the square frame to the bottom angle on the same side; selecting square base angle pixels, and searching three-dimensional point coordinates corresponding to the base angle pixel coordinates according to the mapping relation; and adding the Z-axis coordinates of the three-dimensional point coordinates of each base angle to the space distance to obtain the three-dimensional point coordinates of each vertex angle. The distance calculation module 7 is also used for calculating the Euclidean distance between each vertex angle and the power transmission line according to the three-dimensional point coordinates of each vertex angle and the three-dimensional point coordinates of the power transmission line; and selecting the shortest Euclidean distance obtained by calculation as the distance between the target object and the power transmission line.
Further, the coordinate calculating module 6 is further configured to select any two diagonal angles of the square frame, and calculate a pixel coordinate of another base angle at the bottom end of the square frame according to the pixel coordinate of the diagonal angle; according to the mapping relation, searching three-dimensional point coordinates corresponding to the two base angles; according to the three-dimensional point coordinates of the two base angles, calculating the Euclidean distance between the two base angles; dividing the Euclidean distance between two bottom corners by the pixel distance between the two corners to obtain a pixel space size value corresponding to each pixel in the square frame; and calculating the space distance from the vertex angle to the same side base angle according to the pixel space size value and the pixel coordinates of the vertex angle and the base angle.
The distance measuring device for the transmission line and the target object provided by the embodiment at least comprises the following beneficial effects:
(1) By establishing a mapping relation from two-dimensional pixel coordinates to three-dimensional point coordinates, the distance between a target object and the power transmission line is calculated from the image, the accuracy of distance calculation can be effectively improved, and all-weather monitoring of the power transmission line is realized;
(2) Selecting a target object in a frame, and calculating the three-dimensional point coordinates of the vertex angle according to the space distance from the vertex angle of the square frame to the bottom angle at the same side by calculating the space distance, so that the subsequent calculation result is more accurate;
(3) After the mapping relation from the two-dimensional pixel coordinates to the three-dimensional point coordinates is established, the distance measurement between the power transmission line and the target object can be realized through the real-time two-dimensional image acquired by the monocular camera, and the monocular camera is convenient to set and can effectively reduce the cost.
Referring to fig. 3, in some embodiments, there is further provided an electronic device including a processor 301 and a memory 302, where the memory 301 stores a plurality of instructions, and the processor 302 is configured to read the plurality of instructions and execute the above-mentioned distance measurement method between the power transmission line and the target object, for example, including: receiving a background point cloud and a two-dimensional background image of a power transmission line corridor scene; constructing a coordinate transformation relation between the background point cloud and the two-dimensional background image; selecting characteristic points from the background point cloud and the two-dimensional background image; according to the coordinates of the feature points and the coordinate transformation relation, constructing a mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud; receiving a real-time two-dimensional image of a power transmission line corridor scene, and judging whether a target object appears in the real-time two-dimensional image; when a target object appears, calculating three-dimensional point coordinates of the target object in a background point cloud according to pixel coordinates of the target object and the mapping relation, and searching three-dimensional point coordinates of a power transmission line nearest to the target object; and calculating the Euclidean distance between the target object and the power transmission line according to the three-dimensional point coordinates of the target object and the three-dimensional point coordinates of the power transmission line.
In some embodiments, there is further provided a computer readable storage medium storing a plurality of instructions readable by a processor and performing the above-described distance measurement method of a power transmission line from a target object, for example, including: receiving a background point cloud and a two-dimensional background image of a power transmission line corridor scene; constructing a coordinate transformation relation between the background point cloud and the two-dimensional background image; selecting characteristic points from the background point cloud and the two-dimensional background image; according to the coordinates of the feature points and the coordinate transformation relation, constructing a mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud; receiving a real-time two-dimensional image of a power transmission line corridor scene, and judging whether a target object appears in the real-time two-dimensional image; when a target object appears, calculating three-dimensional point coordinates of the target object in a background point cloud according to pixel coordinates of the target object and the mapping relation, and searching three-dimensional point coordinates of a power transmission line nearest to the target object; and calculating the Euclidean distance between the target object and the power transmission line according to the three-dimensional point coordinates of the target object and the three-dimensional point coordinates of the power transmission line.
Referring to fig. 4, in some embodiments, a distance measurement system for a transmission line and a target object is further provided, including an electronic device 100, an unmanned aerial vehicle laser radar scanning system 200, and a monocular camera 300, where the electronic device 100 is an execution subject of the distance measurement method for a transmission line and a target object, and the unmanned aerial vehicle laser radar scanning system 200 and the monocular camera 300 are communicatively connected to the electronic device 100.
In addition, the system further comprises a display module 400 connected with the electronic device 100, wherein the display module displays the real-time two-dimensional image acquired by the monocular camera and displays the background point cloud; in addition, the distance measurement results are displayed.
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. It is therefore intended that the following claims be interpreted as including the 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 modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. The distance measurement method for the power transmission line and the target object is characterized by comprising the following steps of:
receiving a background point cloud and a two-dimensional background image of a power transmission line corridor scene;
constructing a coordinate transformation relation between the background point cloud and the two-dimensional background image;
selecting characteristic points from the background point cloud and the two-dimensional background image;
according to the coordinates of the feature points and the coordinate transformation relation, constructing a mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud;
receiving a real-time two-dimensional image of a power transmission line corridor scene, and judging whether a target object appears in the real-time two-dimensional image;
when a target object appears, calculating three-dimensional point coordinates of the target object in a background point cloud according to pixel coordinates of the target object and the mapping relation, and searching three-dimensional point coordinates of a power transmission line nearest to the target object;
calculating the Euclidean distance between the target object and the power transmission line according to the three-dimensional point coordinates of the target object and the three-dimensional point coordinates of the power transmission line;
after the target is present, the method further comprises:
performing frame selection on the target object;
calculating the space distance from the top angle of the square frame to the bottom angle on the same side;
selecting square base angle pixels, and searching three-dimensional point coordinates corresponding to the base angle pixel coordinates according to the mapping relation;
adding the Z-axis coordinates of the three-dimensional point coordinates of each base angle to the space distance to obtain three-dimensional point coordinates of each vertex angle;
calculating Euclidean distances between each vertex angle and the power transmission line according to the three-dimensional point coordinates of each vertex angle and the three-dimensional point coordinates of the power transmission line;
selecting the shortest Euclidean distance obtained by calculation as the distance between the target object and the power transmission line;
calculating the spatial distance from the top corner of the square frame to the bottom corner on the same side, comprising:
selecting any two diagonal angles of the square frame, and calculating the pixel coordinate of the other base angle at the bottom end of the square frame according to the pixel coordinate of the diagonal angle;
according to the mapping relation, searching three-dimensional point coordinates corresponding to the two base angles;
according to the three-dimensional point coordinates of the two base angles, calculating the Euclidean distance between the two base angles;
dividing the Euclidean distance between two bottom corners by the pixel distance between the two corners to obtain a pixel space size value corresponding to each pixel in the square frame;
and calculating the space distance from the vertex angle to the same side base angle according to the pixel space size value and the pixel coordinates of the vertex angle and the base angle.
2. The distance measurement method of a power transmission line and a target object according to claim 1, wherein the coordinate transformation relationship is as follows:
wherein d x And d y Representing the physical dimensions of each pixel on the horizontal and vertical axes x and y of the image, respectively, (u) 0 ,v 0 ) For the pixel coordinates of the intersection point of the camera optical axis and the image plane, f represents the focal length of the camera, (u, v) is the pixel coordinates, (X) w ,Y W ,Z W ) Is a three-dimensional point coordinate; r represents a rotation matrix between the camera coordinate system and the point cloud three-dimensional space coordinate system, and T represents a translation vector from the camera coordinate system to the point cloud three-dimensional space coordinate system.
3. The method for measuring the distance between the power transmission line and the target object according to claim 2, wherein the characteristic points are at least three groups;
according to the coordinate of the feature point and the coordinate transformation relation, a mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud is constructed, and the method comprises the following steps:
bringing the pixel coordinates of the feature points in the two-dimensional background image and the three-dimensional point coordinates in the background point cloud into the coordinate transformation relation, and calculating the rotation matrix and the translation vector;
and calculating the mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud according to the coordinate transformation relation, wherein each pixel coordinate in the two-dimensional background image corresponds to the three-dimensional point coordinate in the background point cloud.
4. The method for measuring the distance between a power transmission line and a target object according to claim 1, further comprising, after the presence of the target object:
and selecting any pixel of the target object, and searching the three-dimensional point coordinate corresponding to the pixel coordinate according to the mapping relation.
5. The distance measurement method of the power transmission line and the target object according to any one of claims 1 to 4, wherein the euclidean distance is calculated by the following formula:
wherein, (X w1 ,Y W1 ,Z W1 ) And (X) w2 ,Y W2 ,Z W2 ) Two three-dimensional point coordinates are respectively adopted, and d is the Euclidean distance.
6. A distance measuring device for a power transmission line and a target object, comprising:
the receiving module is used for receiving the background point cloud and the two-dimensional background image of the power transmission line corridor scene;
the coordinate transformation module is used for constructing a coordinate transformation relation between the background point cloud and the two-dimensional background image;
the selecting module is used for selecting characteristic points from the background point cloud and the two-dimensional background image;
the relation construction module is used for constructing a mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud according to the coordinates of the characteristic points and the coordinate transformation relation;
the judging module is used for receiving a real-time two-dimensional image of the power transmission line corridor scene and judging whether a target object appears in the real-time two-dimensional image;
the coordinate calculation module is used for calculating the three-dimensional point coordinate of the target object in the background point cloud according to the pixel coordinate of the target object and the mapping relation when the target object appears, and searching the three-dimensional point coordinate of the power transmission line nearest to the target object;
the distance calculation module is used for calculating the Euclidean distance between the target object and the power transmission line according to the three-dimensional point coordinates of the target object and the three-dimensional point coordinates of the power transmission line;
the coordinate calculation module is also used for carrying out frame selection on the target object after the target object appears; calculating the space distance from the top angle of the square frame to the bottom angle on the same side; selecting square base angle pixels, and searching three-dimensional point coordinates corresponding to the base angle pixel coordinates according to the mapping relation; adding the Z-axis coordinates of the three-dimensional point coordinates of each base angle to the space distance to obtain three-dimensional point coordinates of each vertex angle; the distance calculation module is also used for calculating the Euclidean distance between each vertex angle and the power transmission line according to the three-dimensional point coordinates of each vertex angle and the three-dimensional point coordinates of the power transmission line; selecting the shortest Euclidean distance obtained by calculation as the distance between the target object and the power transmission line;
the coordinate calculation module is also used for selecting any two diagonal angles of the square frame and calculating the pixel coordinate of the other bottom angle at the bottom end of the square frame according to the pixel coordinate of the diagonal angle; according to the mapping relation, searching three-dimensional point coordinates corresponding to the two base angles; according to the three-dimensional point coordinates of the two base angles, calculating the Euclidean distance between the two base angles; dividing the Euclidean distance between two bottom corners by the pixel distance between the two corners to obtain a pixel space size value corresponding to each pixel in the square frame; and calculating the space distance from the vertex angle to the same side base angle according to the pixel space size value and the pixel coordinates of the vertex angle and the base angle.
7. The apparatus of claim 6, wherein the selection module selects at least 3 sets of feature points.
8. The apparatus of claim 6, wherein the relationship construction module is further configured to bring two-dimensional pixel coordinates of the feature points in the two-dimensional background image and three-dimensional point coordinates in the background point cloud into the coordinate transformation relationship, and calculate a rotation matrix and a translation vector; and calculating the mapping relation between each pixel coordinate in the two-dimensional background image and each three-dimensional point coordinate in the background point cloud according to the coordinate transformation relation, wherein each pixel coordinate in the two-dimensional background image corresponds to the three-dimensional point coordinate in the background point cloud.
9. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions, the processor configured to read the plurality of instructions and perform the method of measuring a distance between a power transmission line and a target object according to any one of claims 1 to 5.
10. A computer-readable storage medium storing a plurality of instructions readable by a processor and executable by the processor to perform the method of measuring the distance of a transmission line from a target object according to any one of claims 1 to 5.
CN202110027658.1A 2021-01-11 2021-01-11 Distance measurement method and device for power transmission line and target object and electronic equipment Active CN112489130B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110027658.1A CN112489130B (en) 2021-01-11 2021-01-11 Distance measurement method and device for power transmission line and target object and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110027658.1A CN112489130B (en) 2021-01-11 2021-01-11 Distance measurement method and device for power transmission line and target object and electronic equipment

Publications (2)

Publication Number Publication Date
CN112489130A CN112489130A (en) 2021-03-12
CN112489130B true CN112489130B (en) 2024-03-08

Family

ID=74912253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110027658.1A Active CN112489130B (en) 2021-01-11 2021-01-11 Distance measurement method and device for power transmission line and target object and electronic equipment

Country Status (1)

Country Link
CN (1) CN112489130B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113469949B (en) * 2021-06-08 2022-09-06 智洋创新科技股份有限公司 Method for measuring distance of hidden danger in power transmission channel based on geographic information
CN113465522A (en) * 2021-06-08 2021-10-01 智洋创新科技股份有限公司 Point cloud-based method for measuring distance of hidden danger in power transmission channel
CN113469947B (en) * 2021-06-08 2022-08-05 智洋创新科技股份有限公司 Method for measuring hidden danger and transmission conductor clearance distance suitable for various terrains
CN113345019B (en) * 2021-06-09 2023-07-18 山东信通电子股份有限公司 Method, equipment and medium for measuring potential hazards of transmission line channel target
CN114034287B (en) * 2021-11-17 2023-07-07 国网山西省电力公司超高压输电分公司 Transmission line detection method based on monocular vision positioning
CN114543680B (en) * 2022-02-18 2022-12-02 国网湖北省电力有限公司电力科学研究院 On-site monitoring and distance measuring method for overhead transmission line channel construction vehicle
CN114780762B (en) * 2022-06-23 2022-09-06 济南信通达电气科技有限公司 Point cloud ranging automatic labeling method and system for night vision image of power transmission line
CN115908338B (en) * 2022-11-29 2023-08-29 北京数字绿土科技股份有限公司 Three-dimensional point cloud-based electric power facility and intrusion object distance detection method and system
CN117710436A (en) * 2024-02-06 2024-03-15 唐山百川智能机器股份有限公司 Brake shoe thickness detection method based on unmanned aerial vehicle monocular camera

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0997342A (en) * 1995-08-03 1997-04-08 Sumitomo Electric Ind Ltd Tree interval distance measurement system
CN108932475A (en) * 2018-05-31 2018-12-04 中国科学院西安光学精密机械研究所 A kind of Three-dimensional target recognition system and method based on laser radar and monocular vision
CN109254303A (en) * 2018-09-19 2019-01-22 绵阳紫蝶科技有限公司 Power line corridor fast inspection system and method based on laser scanning guidance
CN109813722A (en) * 2019-03-12 2019-05-28 武汉武大卓越科技有限责任公司 Contact Net's Suspension Chord defect inspection method
CN110148196A (en) * 2018-09-12 2019-08-20 腾讯大地通途(北京)科技有限公司 A kind of image processing method, device and relevant device
CN110163903A (en) * 2019-05-27 2019-08-23 百度在线网络技术(北京)有限公司 The acquisition of 3-D image and image position method, device, equipment and storage medium
CN110910379A (en) * 2019-11-29 2020-03-24 珠海大横琴科技发展有限公司 Incomplete detection method and device
CN212135234U (en) * 2020-01-19 2020-12-11 国网江苏省电力有限公司 A flight auxiliary device for transmission line patrols and examines unmanned aerial vehicle

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830894B (en) * 2018-06-19 2020-01-17 亮风台(上海)信息科技有限公司 Remote guidance method, device, terminal and storage medium based on augmented reality

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0997342A (en) * 1995-08-03 1997-04-08 Sumitomo Electric Ind Ltd Tree interval distance measurement system
CN108932475A (en) * 2018-05-31 2018-12-04 中国科学院西安光学精密机械研究所 A kind of Three-dimensional target recognition system and method based on laser radar and monocular vision
CN110148196A (en) * 2018-09-12 2019-08-20 腾讯大地通途(北京)科技有限公司 A kind of image processing method, device and relevant device
CN109254303A (en) * 2018-09-19 2019-01-22 绵阳紫蝶科技有限公司 Power line corridor fast inspection system and method based on laser scanning guidance
CN109813722A (en) * 2019-03-12 2019-05-28 武汉武大卓越科技有限责任公司 Contact Net's Suspension Chord defect inspection method
CN110163903A (en) * 2019-05-27 2019-08-23 百度在线网络技术(北京)有限公司 The acquisition of 3-D image and image position method, device, equipment and storage medium
CN110910379A (en) * 2019-11-29 2020-03-24 珠海大横琴科技发展有限公司 Incomplete detection method and device
CN212135234U (en) * 2020-01-19 2020-12-11 国网江苏省电力有限公司 A flight auxiliary device for transmission line patrols and examines unmanned aerial vehicle

Also Published As

Publication number Publication date
CN112489130A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN112489130B (en) Distance measurement method and device for power transmission line and target object and electronic equipment
US20240053477A1 (en) System and method for measuring image distance of power transmission lines with unmanned aerial vehicle (uav)
CN107479059B (en) A kind of overhead line based on unmanned plane and vegetation distance-measuring device and method
CN106441233B (en) Power channel corridor method for inspecting based on oblique photograph three-dimensional reconstruction
US10915673B2 (en) Device, method, apparatus, and computer-readable medium for solar site assessment
CN107561547B (en) Method, device and system for measuring distance from power transmission line to target object
CN106645205A (en) Unmanned aerial vehicle bridge bottom surface crack detection method and system
CN104200086A (en) Wide-baseline visible light camera pose estimation method
CN105203023A (en) One-stop calibration method for arrangement parameters of vehicle-mounted three-dimensional laser scanning system
CN106096207B (en) A kind of rotor wing unmanned aerial vehicle wind resistance appraisal procedure and system based on multi-vision visual
CN114743021A (en) Fusion method and system of power transmission line image and point cloud data
CN113298035A (en) Unmanned aerial vehicle electric power tower detection and autonomous cruise method based on image recognition
CN110595442A (en) Transmission line channel tree obstacle detection method, storage medium and computer equipment
Lv et al. Research on the technology of LIDAR data processing
CN111307046B (en) Tree height measuring method based on hemispherical image
CN112305559A (en) Power transmission line distance measuring method, device and system based on ground fixed-point laser radar scanning and electronic equipment
CN110889899A (en) Method and device for generating digital earth surface model
CN208027170U (en) A kind of power-line patrolling unmanned plane and system
CN115127510A (en) Triphibian three-dimensional unmanned multi-platform linkage landslide intelligent patrol system
CN114663485A (en) Processing method and system for power transmission line image and point cloud data
CN116129067A (en) Urban live-action three-dimensional modeling method based on multi-source geographic information coupling
CN115588144A (en) Real-time attitude capturing method, device and equipment based on Gaussian dynamic threshold screening
CN115017454A (en) Unmanned aerial vehicle and mobile measuring vehicle air-ground cooperative networking remote sensing data acquisition system
CN103777196B (en) Based on terrain object distance single station measuring method and the measuring system thereof of geography information
CN116755104A (en) Method and equipment for positioning object based on three points and two lines

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220914

Address after: 225300 No. 2 Fenghuang West Road, Jiangsu, Taizhou

Applicant after: STATE GRID JIANGSU ELECTRIC POWER Co.,Ltd. TAIZHOU POWER SUPPLY BRANCH

Address before: 100094 room 129, 1st floor, building 5, 8 Dongbeiwang West Road, Haidian District, Beijing

Applicant before: ZHONGXIN HANCHUANG (BEIJING) TECHNOLOGY CO.,LTD.

Applicant before: STATE GRID JIANGSU ELECTRIC POWER Co.,Ltd. TAIZHOU POWER SUPPLY BRANCH

GR01 Patent grant
GR01 Patent grant