Position determination method and device of overhead line, storage medium, processor and program product
Through projection and fitting technology, the two-dimensional plane straight line features of overhead lines are extracted and the three-dimensional point cloud is filtered, which solves the problem of low efficiency in processing overhead line point cloud data, achieves accurate positioning of overhead lines, and improves safety.
Patent Information
- Application Number
- CN202410771510.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-20
AI Technical Summary
In the existing technology, the point cloud data processing efficiency of overhead lines is low, and the point cloud data of overhead lines cannot be extracted quickly and accurately, which poses safety risks.
By projecting the original three-dimensional point cloud to a two-dimensional plane, extracting the plane straight line point cloud, filtering out the target three-dimensional point cloud, performing parabola fitting based on the target point cloud, and determining the position of the overhead line.
It improves the processing efficiency of point cloud data, accurately locates overhead lines, and reduces the safety hazards of live work.
Smart Images

Figure CN118674783A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a method, device, storage medium, processor and program product for determining the position of an overhead line. Background Art
[0002] At present, live working on overhead lines is a common working mode in nearby live working. Live working on overhead lines often causes safety hazards to the working objects during the working process due to electric shock.
[0003] In related technologies, the position of overhead lines is usually located by integrating laser radar ranging methods. However, the point cloud data of overhead lines is large in scale and has a complex background. This method cannot quickly and accurately extract the point cloud data of overhead lines, and there is a technical problem of low efficiency in processing point cloud data.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] Embodiments of the present invention provide a method, device, storage medium, processor and program product for determining the position of an overhead line, so as to at least solve the technical problem of low processing efficiency of point cloud data.
[0006] According to one aspect of an embodiment of the present invention, a method for determining the position of an overhead line is provided, comprising: obtaining an original three-dimensional point cloud of the overhead line in three-dimensional space; projecting the original three-dimensional point cloud onto a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane; extracting a plane straight line point cloud of the overhead line from the plane point cloud, wherein the plane straight line point cloud is used to characterize edge features of the overhead line on the two-dimensional plane; using the plane straight line point cloud, screening out a target three-dimensional point cloud from the original three-dimensional point cloud, wherein the target three-dimensional point cloud is used to characterize edge features of the overhead line in three-dimensional space; and determining the position of the overhead line in three-dimensional space based on the target three-dimensional point cloud.
[0007] Optionally, the plane straight line point cloud is used to filter out a target three-dimensional point cloud from the original three-dimensional point cloud, including: obtaining parallel features of parallel lines in the overhead lines; using the parallel features to filter out a target plane straight line point cloud associated with the overhead lines from the plane straight line point cloud; using the target plane straight line point cloud to filter out the target three-dimensional point cloud from the original three-dimensional point cloud.
[0008] Optionally, the target plane straight line point cloud is used to filter out the target three-dimensional point cloud from the original three-dimensional point cloud, including: obtaining index information of the target plane straight line point cloud; and extracting the target three-dimensional point cloud from the original three-dimensional point cloud according to the index information.
[0009] Optionally, based on the target three-dimensional point cloud, the position of the overhead line in the three-dimensional space is determined, including: performing parabola fitting on the target three-dimensional point cloud to obtain a fitting result; identifying the fitting result to obtain a recognition result, wherein the recognition result is used to characterize the position of the overhead line.
[0010] Optionally, a plane straight line point cloud of an overhead line is extracted from the plane point cloud, including: constructing a target mapping relationship based on any two plane sub-point clouds in the plane point cloud to obtain multiple target mapping relationships, wherein the target mapping relationship is used to represent a straight line constructed by any two plane sub-point clouds; and extracting a plane straight line point cloud from the plane point cloud using multiple target mapping relationships.
[0011] Optionally, a plane straight line point cloud is extracted from a plane point cloud using multiple target mapping relationships, including: respectively determining evaluation indicators corresponding to multiple target mapping relationships to obtain multiple evaluation indicators; and extracting a plane straight line point cloud from the plane point cloud based on the multiple evaluation indicators.
[0012] Optionally, evaluation indicators corresponding to multiple target mapping relationships are determined separately, including: determining the straight line equation corresponding to the target mapping relationship constructed by the plane sub-point cloud; determining the distances between other sub-point clouds except the plane sub-point cloud in the plane point cloud and the straight line equation corresponding to the plane sub-point cloud to obtain multiple distances; determining the number of distances less than a distance threshold among the multiple distances; and determining the number as the evaluation indicator of the target mapping relationship.
[0013] Optionally, based on multiple evaluation indicators, a plane straight line point cloud is extracted from the plane point cloud, including: determining at least one target evaluation indicator among the multiple evaluation indicators, wherein the target evaluation indicator is greater than the evaluation indicator threshold; in the plane point cloud, removing points in the target mapping relationship corresponding to the multiple target evaluation indicators to obtain an initial target point cloud; based on the initial target point cloud, determining the plane straight line point cloud.
[0014] Optionally, before projecting the original three-dimensional point cloud to a two-dimensional plane to obtain a planar point cloud of the original three-dimensional point cloud on the two-dimensional plane, the method may also include: obtaining size information of the overhead line; using the size information to filter the original three-dimensional point cloud; projecting the original three-dimensional point cloud to a two-dimensional plane to obtain a planar point cloud of the original three-dimensional point cloud on the two-dimensional plane, including: projecting the filtered original three-dimensional point cloud to a two-dimensional plane to obtain a planar point cloud of the original three-dimensional point cloud on the two-dimensional plane.
[0015] According to another aspect of an embodiment of the present invention, a device for determining the position of an overhead line is also provided, including: an acquisition unit, used to acquire an original three-dimensional point cloud of the overhead line in three-dimensional space; a processing unit, used to project the original three-dimensional point cloud to a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane; an extraction unit, used to extract a plane straight line point cloud of the overhead line from the plane point cloud, wherein the plane straight line point cloud is used to characterize the edge features of the overhead line on the two-dimensional plane; a screening unit, used to use the plane straight line point cloud to screen out a target three-dimensional point cloud from the original three-dimensional point cloud, wherein the target three-dimensional point cloud is used to characterize the edge features of the overhead line in three-dimensional space; and a determination unit, used to determine the position of the overhead line in three-dimensional space based on the target three-dimensional point cloud.
[0016] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored program. When the program is executed, the device where the computer-readable storage medium is located is controlled to execute the above method.
[0017] According to another aspect of an embodiment of the present invention, a processor is further provided. The processor is used to run a program, wherein the program executes the above method when run by the processor.
[0018] According to another aspect of an embodiment of the present invention, a computer program product is provided. The computer program product includes computer instructions. When the computer instructions are executed by a processor, the above method is implemented.
[0019] In an embodiment of the present invention, in a three-dimensional space, an original three-dimensional point cloud of an overhead line is obtained; the original three-dimensional point cloud is projected onto a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane; from the plane point cloud, a plane straight line point cloud of the overhead line is extracted, wherein the plane straight line point cloud is used to characterize the edge features of the overhead line on the two-dimensional plane; using the plane straight line point cloud, a target three-dimensional point cloud is screened out from the original three-dimensional point cloud, wherein the target three-dimensional point cloud is used to characterize the edge features of the overhead line in the three-dimensional space; based on the target three-dimensional point cloud, the position of the overhead line in the three-dimensional space is determined. That is, in an embodiment of the present invention, an original three-dimensional point cloud is obtained, a plane point cloud of the original three-dimensional point cloud is determined, a plane straight line point cloud in the plane point cloud is determined, and the original three-dimensional point cloud is further screened using the plane straight line point cloud to obtain a target three-dimensional point cloud, and at this time, the target three-dimensional point cloud data can accurately locate the position of the overhead line, thereby solving the technical problem of low processing efficiency of point cloud data and achieving the technical effect of improving the processing efficiency of point cloud data. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0021] Figure 1 is a flow chart of a method for determining the position of an overhead line according to an embodiment of the present invention;
[0022] Figure 2 is a flow chart of a point cloud fitting method for an overhead line according to an embodiment of the present invention;
[0023] Figure 3 is a schematic diagram of a device for determining a position of an overhead line according to an embodiment of the present invention;
[0024] Figure 4 is a structural block diagram of a computer terminal according to an embodiment of the present invention;
[0025] Figure 5 It is a block diagram of an electronic device for a method for determining the location of an overhead line according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Example 1
[0029] According to an embodiment of the present invention, an embodiment of a method for determining the location of an overhead line is provided, and the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] In this embodiment, a method for determining the position of an overhead line is proposed. The method can obtain an original three-dimensional point cloud, determine a plane point cloud of the original three-dimensional point cloud, determine a plane straight line point cloud in the plane point cloud, and use the plane straight line point cloud to further screen the original three-dimensional point cloud to obtain a target three-dimensional point cloud. At this time, the target three-dimensional point cloud data can accurately locate the position of the overhead line.
[0031] Figure 1 FIG. 1 is a flow chart of a method for determining the location of an overhead line according to an embodiment of the present invention. Figure 1 As shown, the method may include the following steps:
[0032] Step S102: acquiring an original three-dimensional point cloud of the overhead line in three-dimensional space.
[0033] In the technical solution provided in the above step S102 of the present invention, in the three-dimensional space, an original three-dimensional point cloud associated with the overhead line can be obtained. The original three-dimensional point cloud can be a point cloud data set of the overhead line in the three-dimensional space, which can be used to represent the shape and structure of the overhead line. The overhead line can refer to a suspended power transmission line.
[0034] For example, the original three-dimensional point cloud associated with the overhead line can be obtained by using sensors such as laser radar or camera. For example, the laser radar obtains the position and shape information of the overhead line by emitting a laser beam and measuring its return time and intensity to obtain the original three-dimensional point cloud. For another example, the camera can obtain the original three-dimensional point cloud by taking an image containing the detection object and using a three-dimensional reconstruction algorithm. In addition, other sensors such as sonar can also be used to obtain point cloud data. This is only an example, and there is no specific limitation on the method of obtaining the original three-dimensional point cloud.
[0035] Step S104, projecting the original three-dimensional point cloud onto a two-dimensional plane to obtain a planar point cloud of the original three-dimensional point cloud on the two-dimensional plane.
[0036] In the technical solution provided in the above step S104 of the present invention, after obtaining the original three-dimensional point cloud, the original three-dimensional point cloud can be projected onto a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane. The plane point cloud can be an XY plane point cloud or a point cloud data set on a two-dimensional plane.
[0037] For example, suppose the 3D coordinates of a point in the original 3D point cloud P are p i (x i ,y i ,z i ),i∈[1,N], where N is the number of points in the point cloud P. Let z i = 0, the point cloud can be projected onto the xy plane to obtain the plane point cloud p of the original 3D point cloud P in the xy plane i xy (x i ,y i ,0).
[0038] Step S106, extracting the plane straight line point cloud of the overhead line from the plane point cloud, wherein the plane straight line point cloud is used to characterize the edge features of the overhead line on a two-dimensional plane.
[0039] In the technical solution provided in the above step S106 of the present invention, after the original three-dimensional point cloud is projected onto the xy plane, the obtained plane point cloud may have straight line features. By extracting the plane straight line point cloud with straight line features in the plane point cloud, the overhead line and the background target can be separated. Therefore, in order to improve the positioning accuracy of the overhead line and the detection object on the overhead line, the plane straight line point cloud can be extracted from the plane point cloud. Among them, the background target can be data that is unrelated to the overhead line and the operating object on the overhead line. The plane straight line point cloud can be a collection of a group of points on a two-dimensional plane, which can be used to determine the shape of the overhead line.
[0040] Optionally, a plane straight line point cloud is extracted from the plane point cloud, and components with straight line structures in the plane can be determined by analyzing the plane straight line point cloud.
[0041] Step S108, using the plane straight line point cloud, filter out a target three-dimensional point cloud from the original three-dimensional point cloud, wherein the target three-dimensional point cloud is used to characterize the edge features of the overhead line in the three-dimensional space.
[0042] In the technical solution provided in the above step S108 of the present invention, the plane line point cloud can be used to determine the edge features of the overhead line. However, the plane line point cloud used at this time is a point cloud in a two-dimensional space. Therefore, it is necessary to convert the points in the two-dimensional space into points in a three-dimensional space. The target three-dimensional point cloud can be screened out from the original three-dimensional point cloud through the mapping relationship between the point cloud in the three-dimensional space and the point cloud in the two-dimensional space. Among them, the target three-dimensional point cloud can be the point cloud data obtained after eliminating the points in the original three-dimensional point cloud that are not closely related to the overhead line, and can be used to characterize the shape, position and other information of the overhead line. It should be noted that this is only an example, and the characterization content of the target three-dimensional point cloud is not specifically limited.
[0043] Optionally, the index information of the plane straight line point cloud is determined, and based on the index information of the plane straight line point cloud, a target three-dimensional point cloud for determining the position of the overhead line can be screened out from the original three-dimensional point cloud.
[0044] Step S110, determining the position of the overhead line in the three-dimensional space based on the target three-dimensional point cloud.
[0045] In the technical solution provided in the above step S110 of the present invention, after obtaining the target three-dimensional point cloud, the target three-dimensional point cloud can be drawn to obtain the position of the overhead line in the three-dimensional space.
[0046] For example, by obtaining a target three-dimensional point cloud, feature points of the overhead line, such as edges, corner points, etc., can be extracted from the target three-dimensional point cloud. The extracted feature points can be matched with a known model of the overhead line to determine the position and posture of the overhead line in three-dimensional space. Furthermore, based on the result of feature matching, a positioning algorithm is used to calculate the position and posture information of the overhead line relative to the reference coordinate system. It should be noted that the method of processing the target point cloud data here to determine the position of the work object is only for illustration, and different processing methods can be selected according to actual conditions without specific restrictions.
[0047] For another example, the original three-dimensional point cloud of the overhead line in the three-dimensional space can be obtained by laser radar. In order to improve the accuracy of the positioning of the overhead line, the original three-dimensional point cloud can be projected onto a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane. Furthermore, the plane straight line point cloud can be extracted from the plane point cloud, and the plane straight line point cloud can be used to determine the target three-dimensional point cloud from the original three-dimensional point cloud. By processing and extracting features of the target three-dimensional point cloud and using feature matching and positioning algorithms, the position and posture of the overhead line in the three-dimensional space can be determined.
[0048] Through the above steps S102 and S110 of the present invention, in three-dimensional space, the original three-dimensional point cloud of the overhead line is obtained; the original three-dimensional point cloud is projected onto a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane; from the plane point cloud, the plane straight line point cloud of the overhead line is extracted, wherein the plane straight line point cloud is used to characterize the edge features of the overhead line on the two-dimensional plane; the target three-dimensional point cloud is screened out from the original three-dimensional point cloud using the plane straight line point cloud, wherein the target three-dimensional point cloud is used to characterize the edge features of the overhead line in three-dimensional space; based on the target three-dimensional point cloud, the position of the overhead line in three-dimensional space is determined. That is to say, in an embodiment of the present invention, the original three-dimensional point cloud is obtained, the plane point cloud of the original three-dimensional point cloud is determined, the plane straight line point cloud in the plane point cloud is determined, and the original three-dimensional point cloud is further screened using the plane straight line point cloud to obtain the target three-dimensional point cloud, and the target three-dimensional point cloud data at this time can accurately locate the position of the overhead line, thereby solving the technical problem of low processing efficiency of point cloud data and achieving the technical effect of improving the processing efficiency of point cloud data.
[0049] The above method of this embodiment is further introduced below.
[0050] As an optional implementation, step S108, using plane straight line point cloud, filters out target three-dimensional point cloud from the original three-dimensional point cloud, including: obtaining parallel features of parallel lines in the overhead lines; using parallel features to filter out target plane straight line point cloud associated with the overhead lines from the plane straight line point cloud; using the target plane straight line point cloud to filter out the target three-dimensional point cloud from the original three-dimensional point cloud.
[0051] In this embodiment, in order to improve the accuracy of positioning the overhead line, the parallel features of the parallel lines in the overhead line can be obtained. By using the parallel features, the target plane line point cloud associated with the overhead line can be screened out from the plane line point cloud; the target plane line point cloud can be screened out from the original three-dimensional point cloud. Among them, the parallel features can be used to characterize the features of the overhead line, and can be parallel characteristics, such as the angle and direction between the overhead lines. This is only an example, and there is no specific limitation on the type of parallel features.
[0052] Optionally, since the extracted plane straight line point cloud may contain a large number of noise points and other irrelevant point clouds, the non-overhead line point clouds with straight line features in the plane straight line point cloud can be further filtered out based on the parallel features of multiple overhead lines or other known information associated with the overhead lines.
[0053] For example, for a known plane point cloud, a feature extraction algorithm, such as an algorithm based on geometric shape features, can be used to extract the straight line features of the plane point cloud to obtain a plane straight line point cloud. Furthermore, since the plane straight line point cloud contains the point cloud of the overhead line in a straight state and the point cloud of the non-overhead line with straight line features, in order to improve the accuracy of identifying the overhead line, the parallel features of the straight line can be used to filter out the non-overhead line point clouds that are not related to the overhead line to obtain the target plane straight line point cloud. For example, the parallel feature can be the direction vector between the overhead lines. The direction vector can be used to determine whether the two overhead lines are parallel. If the angle between the direction vectors of the two lines is greater than the angle threshold, it can be considered that the two overhead lines are not parallel. The point cloud in the abnormal result can be filtered to achieve the purpose of filtering out the non-overhead line point cloud.
[0054] As an optional implementation, the target plane straight line point cloud is used to filter out the target three-dimensional point cloud from the original three-dimensional point cloud, including: obtaining index information of the target plane straight line point cloud; and extracting the target three-dimensional point cloud from the original three-dimensional point cloud based on the index information.
[0055] In this embodiment, the index information of the target straight line point cloud can be obtained, and the target three-dimensional point cloud in the original three-dimensional point cloud can be extracted according to the index information. The index information can be a point cloud index corresponding to the point cloud.
[0056] Optionally, after obtaining the target plane straight line point cloud, the target plane straight line point cloud obtained at this time can be used to accurately determine the position of the overhead line. However, the point cloud data at this time is two-dimensional point cloud data, and the two-dimensional point cloud data needs to be converted into three-dimensional point cloud data. The index information of the target straight line point cloud can be obtained, and according to the index information, the corresponding data of the target straight line point cloud in the original three-dimensional point cloud can be determined to obtain the target three-dimensional point cloud.
[0057] For example, a plane point cloud can be fitted with a straight line to obtain a plane straight line point cloud, and in the plane straight line point cloud, a target plane straight line point cloud related to the overhead line can be screened out. Determine the index information D corresponding to the target plane straight line point cloud m ={j,I(d j ,ξ)=1}, the point cloud corresponding to the target straight line point cloud can be determined in the original 3D point cloud to obtain the target 3D point cloud
[0058] As an optional implementation, step S110 determines the position of the overhead line in three-dimensional space based on the target three-dimensional point cloud, including: performing parabola fitting on the target three-dimensional point cloud to obtain a fitting result; identifying the fitting result to obtain a recognition result, wherein the recognition result is used to characterize the position of the overhead line.
[0059] In this embodiment, in order to further remove points in the target three-dimensional point cloud that are not related to the overhead line, a parabola fitting can be performed on the target three-dimensional point cloud to obtain a fitting result; the fitting result can be identified to obtain a recognition result. The recognition result can be used to characterize the location of the overhead line, and can be information such as images and texts. This is only an example, and the content of the recognition result is not specifically limited. The fitting result can be a fitting point cloud.
[0060] Optionally, since a plane point cloud line may be obtained by projecting two or more three-dimensional point cloud lines onto the xy plane, and may also contain other background noise, according to the appearance characteristics of the overhead line point cloud in the vertical plane, the random sampling consistency (RANSAC) method can be used to perform parabola fitting on the target three-dimensional point cloud of the overhead line to further separate more accurate point cloud data of the overhead line.
[0061] For example, after obtaining the target three-dimensional point cloud, a fitting algorithm (such as least squares method, RANSAC, etc.) can be used to perform parabola fitting on the point cloud to obtain a fitting result. The fitting result can be identified using computer vision or deep learning technology to obtain a recognition result, wherein the recognition result can be data such as an image containing marking information. This is only an example, and there is no specific restriction on the content and type of the recognition result. Based on the recognition result, the position of the detection object in the overhead line can be determined, so that the safety procedure of the detection object at this time can be further determined.
[0062] Optionally, a random sampling consistency method is used to obtain a target 3D point cloud of the overhead line. Performing parabola fitting can include:
[0063] The first step is to Randomly select three three-dimensional points p1, p2, p3, and the parabola equation J k for
[0064] y=a k x 2 +b k x+c k
[0065] Where x is the distance from the point in the target 3D point cloud to the z-axis, and y is the value of the point in the target 3D point cloud corresponding to the z-axis;
[0066] The second step is to calculate The remaining points p j (x j ,y j ,z j ) to J kThe distance d j ;
[0067] The third step is to count J k Score S k , that is, the statistic P xy The remaining points p j To J k The distance d j The number of values less than the threshold ξ
[0068]
[0069] Step 4: Repeat steps 1 to 3 K times to select the line with the highest score.
[0070] Step 5: Record and The index information of the points in D k ={j,I(d j ,ξ)=1}, from Remove The point in
[0071] Step 6: Remove Points in Repeat steps 1 to 5 until no score S can be selected. k Parabola J less than the threshold S0 k , thereby obtaining the final fitting result, the fitting result can be identified to obtain a recognition result, and the recognition result can be used to determine the location of the detection object, which can be text, image, etc. This is only an example, and there is no specific limitation on the type of recognition result.
[0072] As an optional implementation, step S106, extracting the plane straight line point cloud of the overhead line from the plane point cloud, includes: constructing a target mapping relationship based on any two plane sub-point clouds in the plane point cloud to obtain multiple target mapping relationships, wherein the target mapping relationship is used to represent the straight line constructed by any two plane sub-point clouds; and extracting the plane straight line point cloud from the plane point cloud using multiple target mapping relationships.
[0073] In this embodiment, the plane point cloud may contain multiple plane sub-point clouds, and a plane straight line point cloud may be extracted from the plane point cloud by straight line fitting. The process may include: selecting any two plane sub-point clouds in the plane point cloud, constructing multiple target mapping relationships based on any two plane sub-point clouds in the plane point cloud, and extracting a plane straight line point cloud from the plane point cloud by using the multiple target mapping relationships. The target mapping relationship may be used to represent a straight line constructed by any two plane sub-point clouds, which may be a straight line equation.
[0074] For example, we can xy Randomly select two points Sure and The equation of the straight line I constructed m :
[0075] y=k m x+b m
[0076] Where x can be a point The value or point corresponding to the x-axis The corresponding x-axis value; y can be three points The value or point corresponding to the y-axis The corresponding y-axis value.
[0077] Optionally, a planar straight line point cloud can be extracted from a planar point cloud using a target mapping relationship.
[0078] As an optional implementation, a plane straight line point cloud is extracted from a plane point cloud using multiple target mapping relationships, including: respectively determining evaluation indicators corresponding to multiple target mapping relationships to obtain multiple evaluation indicators; and extracting a plane straight line point cloud from the plane point cloud based on multiple evaluation indicators.
[0079] In this embodiment, after obtaining the linear equation, the evaluation index corresponding to the target mapping relationship can be determined to obtain multiple evaluation indexes corresponding to multiple target mapping relationships, and a plane linear point cloud can be proposed from the plane point cloud based on the multiple evaluation indexes. Among them, the above evaluation index can be used to determine the linear equation associated with the overhead line among the multiple linear equations constructed based on any two plane sub-point clouds in the plane point cloud, which can be the evaluation score.
[0080] As an optional implementation, evaluation indicators corresponding to multiple target mapping relationships are determined separately, including: determining the straight line equation corresponding to the target mapping relationship constructed by the plane sub-point cloud; determining the distances between other sub-point clouds except the plane sub-point cloud in the plane point cloud and the straight line equation corresponding to the plane sub-point cloud to obtain multiple distances; determining the number of distances less than a distance threshold among the multiple distances; and determining the number as the evaluation indicator of the target mapping relationship.
[0081] In this embodiment, any two plane sub-point clouds can construct a target mapping relationship, and the target mapping relationship can correspond to a straight line equation one by one. Further, after determining the target mapping relationship, the straight line equation represented by the target mapping relationship constructed by the plane sub-point cloud can be determined. The distances between the other sub-point clouds other than the plane sub-point cloud and the straight line equation corresponding to the plane sub-point cloud can be determined separately in the plane point cloud to obtain multiple distances; the number of distances less than the distance threshold among the multiple distances is determined; the number is determined as the evaluation index of the straight line equation, that is, the evaluation index corresponding to the target mapping relationship is obtained. Among them, the distance threshold can be a pre-set value, or a value obtained according to actual conditions or experiments. This is only an example, and there is no specific limitation on the method of determining the distance threshold.
[0082] For example, calculate the plane point cloud P xy The remaining points To I m The distance d j , get multiple distances, determine the number of distances that are less than the distance threshold (ξ), and get and The equation of the straight line I m Evaluation index (S m ):
[0083]
[0084] Optionally, through the above steps, multiple straight line equations constructed in the plane point cloud can be obtained, and the evaluation index corresponding to each straight line equation can be determined respectively to obtain multiple evaluation indexes.
[0085] As an optional implementation, a plane straight line point cloud is extracted from a plane point cloud based on multiple evaluation indicators, including: determining at least one target evaluation indicator among multiple evaluation indicators, wherein the target evaluation indicator is greater than an evaluation indicator threshold; in the plane point cloud, removing points in a target mapping relationship corresponding to multiple target evaluation indicators to obtain an initial target point cloud; and obtaining a plane straight line point cloud based on the initial target point cloud.
[0086] In this embodiment, at least one target evaluation index greater than the evaluation index threshold value among multiple evaluation indexes can be determined, and in the plane point cloud, the points in the straight line equation represented by the target mapping relationship corresponding to the multiple target evaluation indexes are removed to obtain the initial target point cloud; further, any two plane sub-point clouds in the initial target point cloud can be used to construct multiple straight line equations, determine the evaluation index corresponding to the straight line equation, and obtain multiple evaluation indexes corresponding to the multiple straight line equations; at least one target evaluation index greater than the evaluation index threshold value among multiple evaluation indexes can be determined, and in the plane point cloud from which part of the point cloud data has been removed, the points in the straight line equation corresponding to the multiple target evaluation indexes calculated this time are removed again to obtain point cloud data, and the point cloud data is processed according to the above steps to obtain the final plane straight line point cloud. It should be noted that the evaluation index corresponding to the straight line equation can be an evaluation index that represents the target mapping relationship of the straight line equation.
[0087] For example, after obtaining the plane point cloud data, the random sampling consistency method can be used to extract the plane point cloud Plane straight line point cloud with straight line structure in .
[0088] For example, the following steps can be used to extract a plane line point cloud from a plane point cloud:
[0089] Step 1: From P xy Randomly select two points Sure and The equation of the straight line I m :
[0090] y=k m x+b m
[0091] Where x can be a point The value or point corresponding to the x-axis The corresponding x-axis value; y can be three points The value or point corresponding to the y-axis The corresponding y-axis value.
[0092] Step 2: Calculate P xy The remaining points To I m The distance d j , get multiple distances, determine the number of distances that are less than the distance threshold (ξ), and get and The equation of the straight line I m Evaluation index (S m ):
[0093]
[0094] Step 3: A plane point cloud can contain multiple points. Therefore, by repeating the above steps 1 and 2, the evaluation index corresponding to the straight line equation formed by any two points in the plane point cloud can be determined, and multiple evaluation indexes can be obtained. From the multiple evaluation indexes, the straight line equation with the highest score can be selected.
[0095] Step 4: Record The index information of the points in P xy Remove Among them, The points in can refer to points that lie on the equation of a line.
[0096] Step 5: After the removal, in the plane point cloud after the removal, you can repeat the above steps to step 4 until the score S cannot be selected. m The straight line I is less than the threshold S0 m , then the remaining point cloud data is determined as a plane straight line point cloud.
[0097] As an optional implementation, in step S104, before projecting the original three-dimensional point cloud to a two-dimensional plane to obtain a planar point cloud of the original three-dimensional point cloud on the two-dimensional plane, the method also includes: obtaining size information of the overhead line; using the size information, filtering the original three-dimensional point cloud; projecting the original three-dimensional point cloud to a two-dimensional plane to obtain a planar point cloud of the original three-dimensional point cloud on the two-dimensional plane, including: projecting the filtered original three-dimensional point cloud to a two-dimensional plane to obtain a planar point cloud of the original three-dimensional point cloud on the two-dimensional plane.
[0098] In this embodiment, the size information of the overhead line can be obtained, and the original three-dimensional point cloud can be filtered using the size information, and the filtered original three-dimensional point cloud can be projected onto a two-dimensional plane to obtain a plane point cloud. The size information can include information such as the height and length of the overhead line, which can be used to characterize the specific shape of the overhead line.
[0099] For example, to obtain the size information of the overhead line, the original three-dimensional point cloud can be filtered according to the height and length requirements of the overhead line, as well as the shape characteristics of the overhead line, so as to filter out the interfering point cloud, discrete points and noise points in the original three-dimensional point cloud, thereby improving the accuracy of point cloud recognition.
[0100] Optionally, after filtering the original three-dimensional point cloud, the filtered original three-dimensional point cloud may be projected onto a two-dimensional plane to obtain a planar point cloud of the original three-dimensional point cloud on the two-dimensional plane.
[0101] In an embodiment of the present invention, an original 3D point cloud is obtained, a plane point cloud of the original 3D point cloud is determined, a plane straight line point cloud in the plane point cloud is determined, and the original 3D point cloud is further screened using the plane straight line point cloud to obtain a target 3D point cloud. At this time, the target 3D point cloud data can accurately locate the position of the work object, thereby solving the technical problem of low processing efficiency of point cloud data and achieving the technical effect of improving the processing efficiency of point cloud data.
[0102] Example 2
[0103] The technical solution of the embodiment of the present invention is illustrated below in conjunction with preferred implementation modes.
[0104] At present, live working near overhead lines is a common working mode in live working near overhead lines. Live working near overhead lines often causes safety hazards to the working objects due to electric shock. Therefore, early warning of electric shock risks in live working near overhead lines is very important.
[0105] As an optional example, the method of integrating laser radar ranging technology can dynamically and accurately determine the safe distance between operators and live objects, and provide electric shock risk warning for live operations near overhead lines. This method requires the extraction of point cloud data of operators and live objects. However, the point cloud data of overhead lines is large in scale and complex in background, and it is impossible to quickly and accurately extract the point cloud data of overhead lines. Therefore, there is a technical problem of low processing efficiency of point cloud data.
[0106] To solve the above problems, in this embodiment, a point cloud fitting method for overhead lines is proposed, which performs filtering processing on the original three-dimensional point cloud to remove interference noise. The three-dimensional point cloud is projected onto a two-dimensional plane (for example, the xy plane) to obtain a plane point cloud of the xy plane. A plane straight line point cloud with straight line features is extracted from the plane point cloud, and the index information corresponding to the plane straight line point cloud is determined. The plane straight line point cloud of non-overhead lines in the plane point cloud is filtered out to obtain a target plane point cloud. According to the index information of the target plane straight line point cloud, the target three-dimensional point cloud of the overhead line is extracted from the original three-dimensional point cloud. A parabola fitting is performed on the target three-dimensional point cloud of the overhead line to obtain a fitting result. By identifying the fitting result, the positioning of the overhead line is completed, thereby providing a basis for issuing a corresponding warning for the risk of electric shock for live operations near the overhead line, thereby solving the technical problem of low processing efficiency of point cloud data and achieving the technical effect of improving the processing efficiency of point cloud data.
[0107] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments; the size of the numbers in the embodiments is only for illustration and is not specifically limited here. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention and are not specifically limited here.
[0108] Figure 2 is a flow chart of a point cloud fitting method for an overhead line according to an embodiment of the present invention. Figure 2 As shown, the method may include the following steps:
[0109] Step S202, obtaining the original three-dimensional point cloud.
[0110] In this embodiment, the original 3D point cloud of the overhead line can be obtained and filtered, wherein the original 3D point cloud can be a point cloud data set of the overhead line in 3D space, which can be used to represent the shape and structure of the overhead line.
[0111] Optionally, the size information of the overhead line is obtained, wherein the size information may include information such as the height and length of the overhead line, which can be used to characterize the specific shape of the overhead line. According to the height and length requirements of the overhead line and the shape characteristics of the overhead line, the original three-dimensional point cloud can be filtered to filter out the interference point cloud, discrete points and noise points in the original three-dimensional point cloud, thereby improving the accuracy of point cloud recognition.
[0112] For example, the original 3D point cloud of the overhead line can be obtained by using sensors such as laser radar or camera. For example, the laser radar obtains the position and shape information of the overhead line by emitting a laser beam and measuring its return time and intensity, thereby generating an original 3D point cloud. For another example, the camera can obtain the original 3D point cloud by taking an image of the overhead line and using a 3D reconstruction algorithm. In addition, other sensors such as sonar can also be used to obtain point cloud data. This is only an example, and there is no specific restriction on the method of obtaining the original 3D point cloud.
[0113] Step S204, obtaining a plane point cloud.
[0114] In this embodiment, the original three-dimensional point cloud is projected onto a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane. The plane point cloud may be an XY plane point cloud or a point cloud data set on a two-dimensional plane.
[0115] For example, assuming that the three-dimensional coordinates of a point in the point cloud P are pi(xi,yi,zi), i∈[1,N], where N is the number of points in the point cloud P, and zi=0, the point cloud can be projected onto the xy plane to obtain the plane point cloud of the xy plane point
[0116] Step S206: extracting a plane straight line point cloud having straight line features from the plane point cloud.
[0117] In this embodiment, after the original 3D point cloud of the overhead line is projected onto the xy plane, the obtained plane point cloud has straight line features, and by extracting the plane straight line point cloud with straight line features in the plane point cloud, the overhead line and the background target can be separated. The background target may be data unrelated to the overhead line and the operating object on the overhead line.
[0118] Optionally, after obtaining the plane point cloud data, the plane point cloud can be extracted by using the random sampling consistency method Plane straight line point cloud with straight line structure in .
[0119] For example, the following steps can be used to extract a plane line point cloud from a plane point cloud:
[0120] Step 1: Randomly select two points from Pxy Sure and The resulting straight line equation Im:
[0121] y=kmx+bm
[0122] Where x can be a point The value or point corresponding to the x-axis The corresponding x-axis value; y can be three points The value or point corresponding to the y-axis The corresponding y-axis value.
[0123] Step 2: Calculate the remaining points in Pxy The distance dj to Im is obtained, and multiple distances are obtained. The number of distances less than the distance threshold (ξ) is determined, and the obtained and The equation of the straight line I m Evaluation index (S m ):
[0124]
[0125] Step 3: A plane point cloud can contain multiple points. Therefore, by repeating the above steps 1 and 2, the evaluation index corresponding to the straight line equation formed by any two points in the plane point cloud can be determined, and multiple evaluation indexes can be obtained. From the multiple evaluation indexes, the straight line equation with the highest score can be selected.
[0126] Step 4: Record The index information of the points in P xy Remove The point in .
[0127] Step 5: After the removal, you can repeat the above steps to step 4 on the plane point cloud after the removal until the score S cannot be selected. m The straight line I is less than the threshold S0 m , then the remaining point cloud data is determined as a plane straight line point cloud.
[0128] Step S208, filtering the plane straight line point cloud of non-overhead lines.
[0129] In this embodiment, since the extracted plane straight line point cloud may contain more noise points and other irrelevant point clouds, non-overhead line point clouds with straight line features in the plane straight line point cloud can be further filtered out based on the parallel features of multiple overhead lines or other known information.
[0130] Step S210, using the plane straight line point cloud, screens out a target three-dimensional point cloud from the original three-dimensional point cloud, wherein the target three-dimensional point cloud is used to characterize edge features of the overhead line in three-dimensional space.
[0131] In this embodiment, the index information of the plane straight line point cloud is determined, and based on the index information of the plane straight line point cloud, a target three-dimensional point cloud for determining the position of the detection object can be screened out from the original three-dimensional point cloud to obtain the target three-dimensional point cloud.
[0132] For example, a plane point cloud can be fitted with a straight line to obtain a plane straight line point cloud, and in the plane straight line point cloud, a target plane straight line point cloud related to the overhead line can be screened out. Determine the index information D corresponding to the target plane straight line point cloud m ={j,I(d j ,ξ)=1}, the point cloud corresponding to the target straight line point cloud can be determined in the original 3D point cloud to obtain the target 3D point cloud
[0133] Step S212: performing parabola fitting on the target three-dimensional point cloud to locate the position of the work object.
[0134] In this embodiment, since a plane point cloud line may be obtained by projecting two or more three-dimensional point cloud lines onto the xy plane, and may also contain other background noise, according to the appearance characteristics of the overhead line point cloud in the vertical plane, the RANSAC method can be used to perform parabola fitting on the target three-dimensional point cloud of the overhead line to further separate a more accurate overhead line point cloud.
[0135] Optionally, the RANSAC method is used to calculate the target 3D point cloud of the overhead line. Performing parabola fitting can include:
[0136] The first step is to Randomly select three three-dimensional points p1, p2, p3, and the parabola equation J k for
[0137] y=a k x 2 +b k x+c k
[0138] Where x is the distance from the point in the target 3D point cloud to the z-axis, and y is the value of the point in the target 3D point cloud corresponding to the z-axis;
[0139] The second step is to calculate The remaining points p j (x j ,y j ,z j ) to J k The distance d j ;
[0140] The third step is to count J k Score S k , that is, the statistic P xy The remaining points p j To J k The distance d j The number of values less than the threshold ξ
[0141]
[0142] Step 4: Repeat steps 1 to 3 K times to select the line with the highest score.
[0143] Step 5: Record and The index information of the points in D k ={j,I(d j ,ξ)=1}, from Remove The point in
[0144] Step 6: Remove Points in Repeat steps 1 to 5 until no score S can be selected. k Parabola J less than the threshold S0 k , thereby obtaining the final fitting result, the fitting result can be identified to obtain a recognition result, and the recognition result can be used to determine the location of the detection object, which can be text, image, etc. This is only an example, and there is no specific limitation on the type of recognition result.
[0145] In an embodiment of the present invention, an original three-dimensional point cloud is obtained, a plane point cloud of the original three-dimensional point cloud is determined, a plane straight line point cloud in the plane point cloud is determined, and the original three-dimensional point cloud is further screened using the plane straight line point cloud to obtain a target three-dimensional point cloud. At this time, the target three-dimensional point cloud data can accurately locate the position of the overhead line, thereby solving the technical problem of low processing efficiency of point cloud data and achieving the technical effect of improving the processing efficiency of point cloud data.
[0146] Example 3
[0147] According to an embodiment of the present invention, a device for determining the position of an overhead line is also provided. It should be noted that the device for determining the position of an overhead line of this embodiment can be used to execute the method for determining the position of an overhead line of embodiment 1 of the present invention.
[0148] Figure 3 Schematic diagram of an overhead line location determination device according to an embodiment of the present invention. Figure 3 As shown, the overhead line position determination device 30 may include: a first acquisition unit 502 , a second acquisition unit 504 and a third acquisition unit 506 .
[0149] The acquisition unit 302 is used to acquire the original three-dimensional point cloud of the overhead line in three-dimensional space.
[0150] The processing unit 304 is used to project the original three-dimensional point cloud onto a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane.
[0151] The extraction unit 306 is used to extract the plane straight line point cloud of the overhead line from the plane point cloud, wherein the plane straight line point cloud is used to characterize the edge features of the overhead line on a two-dimensional plane.
[0152] The screening unit 308 is used to screen out a target three-dimensional point cloud from the original three-dimensional point cloud using the plane straight line point cloud, wherein the target three-dimensional point cloud is used to characterize the edge features of the overhead line in the three-dimensional space.
[0153] The determination unit 310 is used to determine the position of the overhead line in the three-dimensional space based on the target three-dimensional point cloud.
[0154] Optionally, the screening unit 308 includes: a first processing module, used to obtain parallel features of parallel lines in the overhead lines; using the parallel features, screening out target plane straight line point clouds associated with the overhead lines from the plane straight line point clouds; using the target plane straight line point clouds, screening out target three-dimensional point clouds from the original three-dimensional point clouds.
[0155] Optionally, the first processing module includes: a first processing submodule, used to obtain index information of the target plane straight line point cloud; and extract the target three-dimensional point cloud in the original three-dimensional point cloud according to the index information.
[0156] Optionally, the determination unit 310 includes: a second processing module, configured to perform parabola fitting on the target three-dimensional point cloud to obtain a fitting result; and identify the fitting result to obtain an identification result, wherein the identification result is used to characterize the location of the overhead line.
[0157] Optionally, the extraction unit 306 includes: a third processing module, used to construct a target mapping relationship based on any two planar sub-point clouds in the planar point cloud, and obtain multiple target mapping relationships, wherein the target mapping relationship is used to represent a straight line constructed by any two planar sub-point clouds; using multiple target mapping relationships, extracting a planar straight line point cloud from the planar point cloud.
[0158] Optionally, the third processing unit includes: a second processing submodule, used to respectively determine evaluation indicators corresponding to multiple target mapping relationships to obtain multiple evaluation indicators; based on the multiple evaluation indicators, extracting a plane straight line point cloud from the plane point cloud.
[0159] Optionally, the second processing submodule is also used to determine the straight line equation corresponding to the target mapping relationship constructed by the plane sub-point cloud; respectively determine the distances between other sub-point clouds other than the plane sub-point cloud in the plane point cloud and the straight line equation corresponding to the plane sub-point cloud to obtain multiple distances; determine the number of distances that are less than a distance threshold among the multiple distances; and determine the number as an evaluation indicator of the target mapping relationship.
[0160] Optionally, the second processing submodule is also used to determine at least one target evaluation indicator among multiple evaluation indicators, wherein the target evaluation indicator is greater than an evaluation indicator threshold; in the plane point cloud, remove the points in the target mapping relationship corresponding to the multiple target evaluation indicators to obtain an initial target point cloud; based on the initial target point cloud, determine the plane straight line point cloud.
[0161] Optionally, the device may also include: an acquisition unit for acquiring size information of the overhead line; filtering the original three-dimensional point cloud using the size information; projecting the filtered original three-dimensional point cloud onto a two-dimensional plane to obtain a planar point cloud of the original three-dimensional point cloud on the two-dimensional plane.
[0162] The device for determining the position of an overhead line in this embodiment obtains an original three-dimensional point cloud of the overhead line in three-dimensional space through an acquisition unit; projects the original three-dimensional point cloud onto a two-dimensional plane through a processing unit to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane; extracts a plane straight line point cloud of the overhead line from the plane point cloud through an extraction unit, wherein the plane straight line point cloud is used to characterize the edge features of the overhead line on the two-dimensional plane; uses a screening unit to screen out a target three-dimensional point cloud from the original three-dimensional point cloud using the plane straight line point cloud, wherein the target three-dimensional point cloud is used to characterize the edge features of the overhead line in three-dimensional space; and determines the position of the overhead line in three-dimensional space based on the target three-dimensional point cloud through a determination unit, thereby solving the technical problem of low processing efficiency of point cloud data and achieving the technical effect of improving the processing efficiency of point cloud data.
[0163] Example 4
[0164] The embodiment of the present invention can provide a computer terminal, which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal can also be replaced by a terminal device such as a mobile terminal.
[0165] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
[0166] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the performance detection method of the operating system: in three-dimensional space, obtain the original three-dimensional point cloud of the overhead line; project the original three-dimensional point cloud to a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane; extract the plane straight line point cloud of the overhead line from the plane point cloud, wherein the plane straight line point cloud is used to characterize the edge features of the overhead line on the two-dimensional plane; use the plane straight line point cloud to filter out the target three-dimensional point cloud from the original three-dimensional point cloud, wherein the target three-dimensional point cloud is used to characterize the edge features of the overhead line in three-dimensional space; based on the target three-dimensional point cloud, determine the position of the overhead line in three-dimensional space.
[0167] Optionally, Figure 4 is a structural block diagram of a computer terminal according to an embodiment of the present invention. Figure 4 As shown, the computer terminal 408 may include: one or more (only one is shown in the figure) processors 402 , a memory 404 and a transmission device 406 .
[0168] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the performance detection method and device of the operating system in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the performance detection method of the above-mentioned operating system. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 408 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0169] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: in three-dimensional space, obtain the original three-dimensional point cloud of the overhead line; project the original three-dimensional point cloud to a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane; extract the plane straight line point cloud of the overhead line from the plane point cloud, wherein the plane straight line point cloud is used to characterize the edge features of the overhead line on the two-dimensional plane; use the plane straight line point cloud to screen out a target three-dimensional point cloud from the original three-dimensional point cloud, wherein the target three-dimensional point cloud is used to characterize the edge features of the overhead line in three-dimensional space; based on the target three-dimensional point cloud, determine the position of the overhead line in three-dimensional space.
[0170] It can be understood by those skilled in the art that Figure 4 The structure shown is for illustration only, and the computer terminal 408 may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, referred to as MID), a PAD, or other terminal devices. Figure 4 The structure of the computer terminal 408 is not limited. For example, the computer terminal 408 may also include Figure 4 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 4 Different configurations are shown.
[0171] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0172] Example 5
[0173] According to an embodiment of the present invention, there is further provided a computer-readable storage medium, the computer-readable storage medium comprising a stored program, wherein the program executes the method for determining the location of the overhead line in Embodiment 1.
[0174] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the mobile terminals in a mobile terminal group.
[0175] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: in three-dimensional space, obtaining an original three-dimensional point cloud of the overhead line; projecting the original three-dimensional point cloud onto a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane; extracting a plane straight line point cloud of the overhead line from the plane point cloud, wherein the plane straight line point cloud is used to characterize the edge features of the overhead line on the two-dimensional plane; using the plane straight line point cloud, filtering out a target three-dimensional point cloud from the original three-dimensional point cloud, wherein the target three-dimensional point cloud is used to characterize the edge features of the overhead line in three-dimensional space; and determining the position of the overhead line in three-dimensional space based on the target three-dimensional point cloud.
[0176] Optionally, the computer-readable storage medium may also execute program code for the following steps: obtaining parallel features of parallel lines in the overhead lines; using the parallel features to filter out target plane straight line point clouds associated with the overhead lines from the plane straight line point clouds; and using the target plane straight line point clouds to filter out target three-dimensional point clouds from the original three-dimensional point clouds.
[0177] Optionally, the computer-readable storage medium may also execute program code for the following steps: obtaining index information of a target plane straight line point cloud; and extracting a target three-dimensional point cloud from an original three-dimensional point cloud according to the index information.
[0178] Optionally, the computer-readable storage medium may also execute program code of the following steps: performing parabola fitting on the target three-dimensional point cloud to obtain a fitting result; and identifying the fitting result to obtain an identification result, wherein the identification result is used to characterize the location of the overhead line.
[0179] Optionally, the computer-readable storage medium can also execute the program code of the following steps: construct a target mapping relationship based on any two planar sub-point clouds in the planar point cloud to obtain multiple target mapping relationships, wherein the target mapping relationship is used to represent a straight line constructed by any two planar sub-point clouds; and extract a planar straight line point cloud from the planar point cloud using multiple target mapping relationships.
[0180] Optionally, the computer-readable storage medium may also execute program code of the following steps: respectively determining evaluation indicators corresponding to multiple target mapping relationships to obtain multiple evaluation indicators; and extracting a plane straight line point cloud from a plane point cloud based on the multiple evaluation indicators.
[0181] Optionally, the computer-readable storage medium may also execute program codes for the following steps: determining a straight line equation corresponding to a target mapping relationship constructed from a plane sub-point cloud; respectively determining the distances between other sub-point clouds other than the plane sub-point cloud in the plane point cloud and the straight line equation corresponding to the plane sub-point cloud to obtain multiple distances; determining the number of distances that are less than a distance threshold among the multiple distances; and determining the number as an evaluation index for the target mapping relationship.
[0182] Optionally, the computer-readable storage medium can also execute program codes for the following steps: determining at least one target evaluation indicator among multiple evaluation indicators, wherein the target evaluation indicator is greater than an evaluation indicator threshold; in the plane point cloud, removing points in the target mapping relationship corresponding to multiple target evaluation indicators to obtain an initial target point cloud; and determining a plane straight line point cloud based on the initial target point cloud.
[0183] Optionally, the computer-readable storage medium may also execute program code for the following steps: obtaining dimension information of the overhead line; filtering the original three-dimensional point cloud using the dimension information; and projecting the filtered original three-dimensional point cloud onto a two-dimensional plane to obtain a planar point cloud of the original three-dimensional point cloud on the two-dimensional plane.
[0184] In this embodiment, the original three-dimensional point cloud is obtained, the plane point cloud of the original three-dimensional point cloud is determined, the plane straight line point cloud in the plane point cloud is determined, and the original three-dimensional point cloud is further screened using the plane straight line point cloud to obtain a target three-dimensional point cloud. At this time, the target three-dimensional point cloud data can accurately locate the position of the overhead line, thereby solving the technical problem of low processing efficiency of point cloud data and achieving the technical effect of improving the processing efficiency of point cloud data.
[0185] Example 6
[0186] According to an embodiment of the present invention, a processor is further provided. The processor is used to run a program. When the program is run by the processor, the method for determining the location of the overhead line in Embodiment 1 is executed.
[0187] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
[0188] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the multi-language translation method: in three-dimensional space, obtain the original three-dimensional point cloud of the overhead line; project the original three-dimensional point cloud to a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane; extract the plane straight line point cloud of the overhead line from the plane point cloud, wherein the plane straight line point cloud is used to characterize the edge features of the overhead line on the two-dimensional plane; use the plane straight line point cloud to screen out the target three-dimensional point cloud from the original three-dimensional point cloud, wherein the target three-dimensional point cloud is used to characterize the edge features of the overhead line in three-dimensional space; based on the target three-dimensional point cloud, determine the position of the overhead line in three-dimensional space.
[0189] Wherein, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the multilingual translation method and device in the embodiment of the present invention, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned multilingual translation method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0190] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: in three-dimensional space, obtain the original three-dimensional point cloud of the overhead line; project the original three-dimensional point cloud to a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane; extract the plane straight line point cloud of the overhead line from the plane point cloud, wherein the plane straight line point cloud is used to characterize the edge features of the overhead line on the two-dimensional plane; use the plane straight line point cloud to screen out a target three-dimensional point cloud from the original three-dimensional point cloud, wherein the target three-dimensional point cloud is used to characterize the edge features of the overhead line in three-dimensional space; based on the target three-dimensional point cloud, determine the position of the overhead line in three-dimensional space.
[0191] Optionally, the processor may also execute the following program code steps: obtaining parallel features of parallel lines in the overhead lines; using the parallel features to filter out target plane straight line point clouds associated with the overhead lines from the plane straight line point clouds; and using the target plane straight line point clouds to filter out target three-dimensional point clouds from the original three-dimensional point clouds.
[0192] Optionally, the processor may also execute program codes of the following steps: obtaining index information of the target plane straight line point cloud; and extracting the target three-dimensional point cloud from the original three-dimensional point cloud according to the index information.
[0193] Optionally, the processor may also execute program codes of the following steps: performing parabola fitting on the target three-dimensional point cloud to obtain a fitting result; and identifying the fitting result to obtain a recognition result, wherein the recognition result is used to characterize the location of the overhead line.
[0194] Optionally, the processor may also execute the program code of the following steps: construct a target mapping relationship based on any two planar sub-point clouds in the planar point cloud to obtain multiple target mapping relationships, wherein the target mapping relationship is used to represent a straight line constructed by any two planar sub-point clouds; and extract a planar straight line point cloud from the planar point cloud using multiple target mapping relationships.
[0195] Optionally, the processor may also execute program codes of the following steps: respectively determining evaluation indicators corresponding to multiple target mapping relationships to obtain multiple evaluation indicators; and extracting a plane straight line point cloud from the plane point cloud based on the multiple evaluation indicators.
[0196] Optionally, the processor may also execute program code for the following steps: determining a straight line equation corresponding to a target mapping relationship constructed from a plane sub-point cloud; respectively determining the distances between other sub-point clouds other than the plane sub-point cloud in the plane point cloud and the straight line equation corresponding to the plane sub-point cloud to obtain multiple distances; determining the number of distances that are less than a distance threshold among the multiple distances; and determining the number as an evaluation index for the target mapping relationship.
[0197] Optionally, the processor may also execute the program code of the following steps: determining at least one target evaluation indicator among multiple evaluation indicators, wherein the target evaluation indicator is greater than an evaluation indicator threshold; in the plane point cloud, removing the points in the target mapping relationship corresponding to multiple target evaluation indicators to obtain an initial target point cloud; and determining the plane straight line point cloud based on the initial target point cloud.
[0198] Optionally, the processor may also execute the following program code steps: obtaining the size information of the overhead line; filtering the original three-dimensional point cloud using the size information; projecting the filtered original three-dimensional point cloud onto a two-dimensional plane to obtain a planar point cloud of the original three-dimensional point cloud on the two-dimensional plane.
[0199] By adopting the embodiment of the present invention, the original three-dimensional point cloud is obtained, the plane point cloud of the original three-dimensional point cloud is determined, the plane straight line point cloud in the plane point cloud is determined, and the original three-dimensional point cloud is further screened using the plane straight line point cloud to obtain the target three-dimensional point cloud. At this time, the target three-dimensional point cloud data can accurately locate the position of the overhead line, thereby solving the technical problem of low processing efficiency of point cloud data and achieving the technical effect of improving the processing efficiency of point cloud data.
[0200] Example 7
[0201] According to an embodiment of the present invention, a computer program product is further provided. The computer program product includes computer instructions. When the computer instructions are executed by a processor, the method for determining the location of the overhead line in Embodiment 1 is implemented.
[0202] Example 8
[0203] An embodiment of the present application may provide an electronic device, which may include a memory and a processor.
[0204] Figure 5 1 is a block diagram of an electronic device for a method for determining the location of an overhead line according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or claimed herein.
[0205] like Figure 5 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 to a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0206] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 504, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0207] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as a verification method for data. For example, in some embodiments, the verification method for data may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the verification method for data described above may be executed. Alternatively, in other embodiments, the computing unit 501 may be configured to execute the data verification method in any other appropriate manner (for example, by means of firmware).
[0208] According to an embodiment of the present application, a performance detection method for an operating system is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0209] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0210] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0211] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0212] To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or an LCD (liquid crystal display, monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a path ball) through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0213] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a Local Area Network (LAN), a Wide Area Network (WAN), and the Internet.
[0214] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0215] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0216] In the above embodiments of the present invention, 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.
[0217] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units can be a logical function division, and there can 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, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0218] 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 over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0219] In addition, each functional unit in each embodiment of the present invention 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.
[0220] 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 storage medium. Based on this understanding, the technical solution of the present invention, in essence, 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0221] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for determining the position of an overhead line, characterized in that: include: In three-dimensional space, obtain the original three-dimensional point cloud of the overhead line; Projecting the original three-dimensional point cloud onto a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane; Extracting a plane straight line point cloud of the overhead line from the plane point cloud, wherein the plane straight line point cloud is used to characterize edge features of the overhead line on the two-dimensional plane; Using the plane straight line point cloud, a target three-dimensional point cloud is screened out from the original three-dimensional point cloud, wherein the target three-dimensional point cloud is used to characterize edge features of the overhead line in the three-dimensional space; Based on the target three-dimensional point cloud, the position of the overhead line in the three-dimensional space is determined.
2. The method according to claim 1, characterized in that Filtering the target three-dimensional point cloud from the original three-dimensional point cloud using the plane straight line point cloud includes: Obtaining parallel characteristics of parallel lines in the overhead line; Filtering out a target plane straight line point cloud associated with the overhead line from the plane straight line point cloud by using the parallel feature; The target three-dimensional point cloud is screened out from the original three-dimensional point cloud using the target plane straight line point cloud.
3. The method according to claim 2, characterized in that Filtering the target three-dimensional point cloud from the original three-dimensional point cloud using the target plane straight line point cloud includes: Obtaining index information of the target plane straight line point cloud; The target three-dimensional point cloud in the original three-dimensional point cloud is extracted according to the index information.
4. The method according to claim 1, characterized in that: Determining the position of the overhead line in the three-dimensional space based on the target three-dimensional point cloud includes: Performing parabola fitting on the target three-dimensional point cloud to obtain a fitting result; The fitting result is identified to obtain an identification result, wherein the identification result is used to characterize the location of the overhead line.
5. The method according to claim 1, characterized in that Extracting the plane straight line point cloud of the overhead line from the plane point cloud comprises: Based on any two planar sub-point clouds in the planar point cloud, a target mapping relationship is constructed to obtain a plurality of the target mapping relationships, wherein the target mapping relationship is used to represent a straight line constructed by the any two planar sub-point clouds; The planar straight line point cloud is extracted from the planar point cloud using a plurality of the target mapping relationships.
6. The method according to claim 5, characterized in that Extracting the plane straight line point cloud from the plane point cloud using the plurality of target mapping relationships includes: Respectively determine the evaluation indicators corresponding to the plurality of target mapping relationships to obtain the plurality of evaluation indicators; Based on the plurality of evaluation indicators, the planar straight line point cloud is extracted from the planar point cloud.
7. The method according to claim 6, characterized in that Determining evaluation indicators corresponding to a plurality of target mapping relationships respectively, including: Determining a straight line equation corresponding to the target mapping relationship constructed by the planar sub-point cloud; Respectively determine the distances between other sub-point clouds except the planar sub-point cloud in the planar point cloud and the straight line equation corresponding to the planar sub-point cloud to obtain a plurality of the distances; Determine the number of distances that are less than a distance threshold among the plurality of distances; The quantity is determined as an evaluation index of the target mapping relationship.
8. The method according to claim 6, characterized in that Based on the plurality of evaluation indicators, extracting the plane straight line point cloud from the plane point cloud comprises: Determining at least one target evaluation indicator among the plurality of evaluation indicators, wherein the target evaluation indicator is greater than an evaluation indicator threshold; In the plane point cloud, removing points in the target mapping relationship corresponding to the multiple target evaluation indicators to obtain an initial target point cloud; Based on the initial target point cloud, the plane straight line point cloud is determined.
9. The method according to claim 1, characterized in that: Before projecting the original three-dimensional point cloud onto a two-dimensional plane to obtain a planar point cloud of the original three-dimensional point cloud on the two-dimensional plane, the method further includes: Obtaining dimension information of the overhead line; Using the size information, filtering the original three-dimensional point cloud; Projecting the original three-dimensional point cloud onto a two-dimensional plane to obtain a planar point cloud of the original three-dimensional point cloud on the two-dimensional plane includes: projecting the filtered original three-dimensional point cloud onto the two-dimensional plane to obtain the planar point cloud of the original three-dimensional point cloud on the two-dimensional plane.
10. A device for determining the position of an overhead line, characterized in that: include: An acquisition unit, used for acquiring an original three-dimensional point cloud of the overhead line in three-dimensional space; A processing unit, configured to project the original three-dimensional point cloud onto a two-dimensional plane to obtain a plane point cloud of the original three-dimensional point cloud on the two-dimensional plane; An extraction unit, used to extract a plane straight line point cloud of the overhead line from the plane point cloud, wherein the plane straight line point cloud is used to characterize edge features of the overhead line on the two-dimensional plane; A screening unit, used to screen out a target three-dimensional point cloud from the original three-dimensional point cloud using the plane straight line point cloud, wherein the target three-dimensional point cloud is used to characterize edge features of the overhead line in the three-dimensional space; A determination unit is used to determine the position of the overhead line in the three-dimensional space based on the target three-dimensional point cloud.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 9.
12. A processor, characterized in that: The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 9 when being run by the processor.
13. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Building corner space position automatic extraction method in vehicle laser scanning point cloud
CN106056659A
Rapid three-dimensional point cloud linear extraction method
CN106408581A
Method and device for determining length of selected line of pipeline
CN113223179A
3D point cloud power line extraction and reconstruction method based on airborne radar
CN115841545A
Three-dimensional point cloud linear feature extraction method and device
CN116523944A
