Point cloud registration method and device and computer readable storage medium

Through semantic matching and meshing technology, combined with the iterative closest point algorithm, the accuracy and efficiency problems in point cloud registration are solved, and higher registration accuracy and reliability are achieved.

CN118587259AActive Publication Date: 2024-09-03ZHEJIANG KUANBEI YUNTU TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410621549.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-03
Estimated Expiration
2044-05-20

AI Technical Summary

Technical Problem

Existing point cloud registration methods have accuracy problems in actual usage scenarios, especially when satellite navigation is unavailable, which causes point cloud maps between collection devices to be easily misaligned and difficult to directly fuse, and commonly used algorithms can easily lead to errors. Matching and outcome bias.

Method used

By parsing and matching the semantic information in the point cloud data, dividing the mesh for matching, calculating the degree of misalignment to determine the number of meshes, and matching according to the geometric relationship of the semantics, extracting the matching data for registration, and using the iterative closest point algorithm for fine matching. allow.

Benefits of technology

It improves the accuracy and efficiency of point cloud registration, reduces the amount of point cloud data, enhances the reliability of registration results, and avoids local optimal solutions and mismatching problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587259A
    Figure CN118587259A
Patent Text Reader

Abstract

The invention provides a point cloud registration method and device and a computer readable storage medium, and the method comprises the steps: analyzing first point cloud data and second point cloud data, obtaining first semantic information and second semantic information, the first semantic information comprises a plurality of semantics with coordinates, and the second semantic information comprises a plurality of semantics with coordinates; semantics in the first semantic information indicate types of elements in the first point cloud data, the second semantic information comprises a plurality of semantics with coordinates, and semantics in the second semantic information indicate types of elements in the second point cloud data; matching the semantics in the first semantic information with the semantics in the second semantic information to obtain a matched semantic pair; and registering the first point cloud data and the second point cloud data according to the matching semantic pair. According to the point cloud registration method provided by the embodiment of the invention, the point cloud data volume required by the point cloud registration can be reduced according to the position information of the matching semantic pair, so that the accuracy of the point cloud registration is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer vision technology, and specifically relates to a point cloud registration method, device and computer-readable storage medium. Background Art

[0002] Laser point cloud mapping technology plays a vital role in 3D modeling, robot navigation, autonomous driving, urban planning and other fields, among which point cloud registration technology is one of the core technologies. This technology plays an important role in the fusion stage of laser radar odometer or point cloud. Point cloud registration generally requires registering the source point cloud to the target point cloud to obtain the pose conversion relationship between the two point clouds.

[0003] The common methods for point cloud registration at present are mainly the iterative closest point (ICP) and normal distribution transform (NDT) methods and their variants. The ICP algorithm is a commonly used point cloud registration algorithm that continuously optimizes the matching error between two point clouds in an iterative manner until the error is minimized; the NDT algorithm converts the point cloud data into a probability density distribution and finds the best transformation parameters by optimizing this distribution. The ICP algorithm uses a large amount of point cloud data and is greatly affected by the initial iteration value, and is prone to fall into a local optimal solution. The performance of the NDT algorithm is greatly affected by the selection of cell size, the assumption of probability density distribution, etc., and it is difficult to strike a balance between accuracy and efficiency. In addition, the existing registration methods, whether using a priori convergence threshold, maximum number of iterations, mean square error, gradient change, etc., can only guarantee the convergence of the algorithm itself, but cannot guarantee the accuracy of the results.

[0004] In fact, in actual usage scenarios, there are many scenarios where satellite navigation positioning is not available. Due to the lack of an absolute reference with sufficient accuracy (the accuracy can reach centimeters when satellite navigation is available) in this case, multiple point cloud maps established by different acquisition devices, different routes, and different time periods are easily misplaced and cannot be directly fused together. At this time, in order to maintain global consistency, the point cloud registration method must be used to fuse the point clouds. Often at this time, the distance between the point clouds of the same name is far apart. Using common algorithms, it is easy to make mismatches, which leads to great deviations in the results.

[0005] Therefore, how to improve the accuracy of point cloud registration is an urgent problem to be solved. Summary of the invention

[0006] In view of the problems existing in the above-mentioned prior art, a point cloud registration method, device and computer-readable storage medium are proposed. By using this method, device and computer-readable storage medium, the accuracy of point cloud registration can be improved.

[0007] This application provides the following solution.

[0008] In a first aspect, the present application provides a point cloud registration method, comprising:

[0009] Parsing the first point cloud data and the second point cloud data to obtain first semantic information and second semantic information, wherein the first semantic information includes a plurality of semantics with coordinates, and the semantics in the first semantic information indicates the type of elements in the first point cloud data, and the second semantic information includes a plurality of semantics with coordinates, and the semantics in the second semantic information indicates the type of elements in the second point cloud data;

[0010] Matching the semantics in the first semantic information with the semantics in the second semantic information to obtain a matching semantic pair;

[0011] The first point cloud data and the second point cloud data are registered according to the matching semantic pair.

[0012] In some possible embodiments, the multiple semantics in the first semantic information include point semantics, line semantics, and surface semantics, and the multiple semantics in the first point cloud data include point elements, line elements, and surface elements;

[0013] The point semantics in the first semantic information indicates the type of point elements in the first point cloud data, the line semantics in the first semantic information indicates the type of line semantics in the first point cloud data, and the surface semantics in the first semantic information indicates the type of surface elements in the first point cloud data;

[0014] The multiple semantics in the second semantic information include point semantics, line semantics and surface semantics, and the multiple semantics in the second point cloud data include point elements, line elements and surface elements;

[0015] The point semantics in the second semantic information indicates the type of point elements in the second point cloud data, the line semantics in the second semantic information indicates the type of line semantics in the second point cloud data, and the surface semantics in the second semantic information indicates the type of surface elements in the second point cloud data.

[0016] In some possible embodiments, matching the semantics in the first semantic information with the semantics in the second semantic information to obtain a matching semantic pair includes:

[0017] Dividing the first semantic information into a plurality of grids according to the semantic coordinates, and dividing the second semantic information into a plurality of grids;

[0018] Matching the first grid of the target position in the first semantic information with the target position and multiple second grids around the target position in the second semantic information, and determining the target grid with the highest matching degree with the first grid among the multiple second grids;

[0019] The semantics in the first grid are matched with the semantics in the target grid to obtain at least two matching semantic pairs.

[0020] In some possible embodiments, it further includes:

[0021] Calculating the degree of misalignment between the first point cloud data and the second point cloud data;

[0022] The number of grids in the plurality of second grids is determined according to the degree of misalignment. The higher the degree of misalignment, the greater the number of grids in the plurality of second grids.

[0023] In some possible embodiments, the misalignment degree S between the first point cloud data and the second point cloud data is calculated by the following formula: m,n :

[0024]

[0025]

[0026] in, Indicates the semantic similarity between the first grid m and the second grid n of type type_i, represents the total number of semantics of type type_i in the first grid m, represents the total number of semantics of type type_i in the second grid n, P type_i Represents the weight of type type_i.

[0027] In some possible embodiments, the plurality of second grids include a grid at the target position in the second semantic information, and eight grids adjacent to the grid at the target position.

[0028] In some possible embodiments, matching the semantics in the first grid with the semantics in the target grid to obtain at least two matching semantic pairs includes:

[0029] The geometric relationship between the semantics in the target mesh is matched with the geometric relationship between the semantics in the first mesh to obtain at least two matching semantic pairs.

[0030] In some possible embodiments, when the semantics in the first grid and the semantics in the target grid meet the following conditions, it is determined that the semantics in the first grid and the corresponding semantics in the second grid constitute a matching semantic pair:

[0031] ΔA ij Less than α° and ΔBij Less than τ meters;

[0032] ΔC ij Less than α / 1.4° and ΔD ij Less than τ / 1.4 m;

[0033] Among them, α and τ are both preset constants. Represents the set of angles between the normal vector of the surface semantics and the line semantics in the first mesh {A obj The i-th element in} The set of angles between the normal vector of the face semantics and the line semantics in the target mesh {A src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent;

[0034] represents the geometric distance set between the semantic center point of the surface and the semantic center point of the line in the first grid {B obj The i-th element in} The geometric distance set {B src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent;

[0035] represents the set of angles between the center point of the surface semantics, the point semantics connecting line and the surface semantics normal vector in the first grid {C obj The i-th element in} The set of angles between the center point of the face semantics in the target mesh, the line connecting the point semantics and the face semantics normal vector {C src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent;

[0036] represents the geometric distance set between the semantic center point of the surface and the semantic point in the first grid {D obj The i-th element in} The set of geometric distances between the semantic center point of the face and the semantic point in the target mesh {D src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent.

[0037] In some possible embodiments, registering the first point cloud data and the second point cloud data according to the matching semantic pair includes:

[0038] Extracting matching data corresponding to positions of matching semantic pairs in the first point cloud data and the second point cloud data;

[0039] The first point cloud data and the second point cloud data are registered according to the matching data pair.

[0040] In some possible embodiments, extracting matching data corresponding to positions of matching semantic pairs in the first point cloud data and the second point cloud data includes:

[0041] The coordinates of the first point cloud data and the second point cloud data are in [x min -Δ,y min -Δ,z min -Δ] to [x max +Δ,y max +Δ,z max +Δ] are extracted as matching data;

[0042] [x min ,y min ,z min ]=[min(X),min(Y),min(Z)]

[0043] [x max ,y max ,z max ]=[max(X),max(Y),max(Z)]

[0044] X, Y, and Z represent the coordinate points of the matching semantic pair in the local coordinate system in the x, y, and z directions, respectively. min is the minimum value in set X, y min is the minimum value in set Y, z min represents the minimum value in the Z set, x max is the maximum value in set X, y max is the maximum value in the set Y, z max is the maximum value in the set Z, and Δ is the preset error distance.

[0045] In some possible embodiments, registering the first point cloud data and the second point cloud data according to the matching data pair includes:

[0046] The first point cloud data and the second point cloud data are registered according to the matching data by using an iterative closest point algorithm.

[0047] In some possible embodiments, it further includes:

[0048] Extracting verification data outside of locations matching the semantic pair in the first point cloud data and the second point cloud data;

[0049] The registered first point cloud data and the second point cloud data are verified according to the verification data.

[0050] In a second aspect, the present application provides a point cloud registration device, comprising:

[0051] A parsing module, used to parse the first point cloud data and the second point cloud data to obtain first semantic information and second semantic information, wherein the first semantic information includes a plurality of semantics with coordinates, and the semantics in the first semantic information indicates the type of elements in the first point cloud data, and the second semantic information includes a plurality of semantics with coordinates, and the semantics in the second semantic information indicates the type of elements in the second point cloud data;

[0052] A matching module, used for matching the semantics in the first semantic information with the semantics in the second semantic information to obtain a matching semantic pair;

[0053] The registration module is used to register the first point cloud data and the second point cloud data according to the matching semantic pair.

[0054] In some possible embodiments, the multiple semantics in the first semantic information include point semantics, line semantics, and surface semantics, and the multiple semantics in the first point cloud data include point elements, line elements, and surface elements;

[0055] The point semantics in the first semantic information indicates the type of point elements in the first point cloud data, the line semantics in the first semantic information indicates the type of line semantics in the first point cloud data, and the surface semantics in the first semantic information indicates the type of surface elements in the first point cloud data;

[0056] The multiple semantics in the second semantic information include point semantics, line semantics and surface semantics, and the multiple semantics in the second point cloud data include point elements, line elements and surface elements;

[0057] The point semantics in the second semantic information indicates the type of point elements in the second point cloud data, the line semantics in the second semantic information indicates the type of line semantics in the second point cloud data, and the surface semantics in the second semantic information indicates the type of surface elements in the second point cloud data.

[0058] In some possible embodiments, the matching module includes:

[0059] A division submodule, used to divide the first semantic information into a plurality of grids according to the semantic coordinates, and to divide the second semantic information into a plurality of grids;

[0060] A first matching submodule is used to match a first grid of a target position in the first semantic information with a plurality of second grids of the target position and surrounding the target position in the second semantic information, and determine a target grid having the highest matching degree with the first grid among the plurality of second grids;

[0061] The second matching submodule is used to match the semantics in the first grid with the semantics in the target grid to obtain at least two matching semantic pairs.

[0062] In some possible embodiments, it further includes:

[0063] A calculation module, used for calculating the misalignment degree between the first point cloud data and the second point cloud data;

[0064] The quantity determination module is used to determine the number of grids in the plurality of second grids according to the degree of misalignment. The higher the degree of misalignment, the greater the number of grids in the plurality of second grids.

[0065] In some possible embodiments, the misalignment degree S between the first point cloud data and the second point cloud data is calculated by the following formula: m,n :

[0066]

[0067]

[0068] in, Indicates the semantic similarity between the first grid m and the second grid n of type type_i, represents the total number of semantics of type type_i in the first grid m, represents the total number of semantics of type type_i in the second grid n, P type_i Represents the weight of type type_i.

[0069] In some possible embodiments, the plurality of second grids include a grid at the target position in the second semantic information, and eight grids adjacent to the grid at the target position.

[0070] In some possible embodiments, the second matching submodule is used to match the geometric relationship between the semantics in the target mesh with the geometric relationship between the semantics in the first mesh to obtain at least two matching semantic pairs.

[0071] In some possible embodiments, when the semantics in the first grid and the semantics in the target grid meet the following conditions, it is determined that the semantics in the first grid and the corresponding semantics in the second grid constitute a matching semantic pair:

[0072] ΔA ij Less than α° and ΔB ij Less than τ meters;

[0073] ΔC ij Less than α / 1.4° and ΔD ij Less than τ / 1.4 m;

[0074] Among them, α and τ are both preset constants. Represents the set of angles between the normal vector of the surface semantics and the line semantics in the first mesh {A obj The i-th element in} The set of angles between the normal vector of the face semantics and the line semantics in the target mesh {A src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent;

[0075] represents the geometric distance set between the semantic center point of the surface and the semantic center point of the line in the first grid {B obj The i-th element in} The geometric distance set {B src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent;

[0076] represents the set of angles between the center point of the surface semantics, the point semantics connecting line and the surface semantics normal vector in the first grid {C obj The i-th element in} The set of angles between the center point of the face semantics in the target mesh, the line connecting the point semantics and the face semantics normal vector {C src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent;

[0077] represents the geometric distance set between the semantic center point of the surface and the semantic point in the first grid {D obj The i-th element in} The set of geometric distances between the semantic center point of the face and the semantic point in the target mesh {D src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent.

[0078] In some possible embodiments, a registration module is used to extract matching data corresponding to positions of matching semantic pairs in the first point cloud data and the second point cloud data;

[0079] The first point cloud data and the second point cloud data are registered according to the matching data pair.

[0080] In some possible embodiments, the registration module is used to register the coordinates of the first point cloud data and the second point cloud data in [x min -Δ,y min -Δ,x min -Δ] to [x max +Δ,y max +Δ,x max +Δ] are extracted as matching data;

[0081] [z min ,y min ,z min ]=[min(X),min(Y),min(Z)]

[0082] [x max ,y max ,z max ]=[max(X),max(Y),max(Z)]

[0083] X, Y, and Z represent the coordinate points of the matching semantic pair in the local coordinate system in the x, y, and z directions, respectively. min is the minimum value in set X, y min is the minimum value in set Y, z min represents the minimum value in the Z set, x max is the maximum value in set X, y max is the maximum value in the set Y, z max is the maximum value in the set Z, and Δ is the preset error distance.

[0084] In some possible embodiments, the registration module is used to register the first point cloud data and the second point cloud data by using an iterative closest point algorithm according to the matching data.

[0085] In some possible embodiments, it further includes:

[0086] A verification data extraction module, used to extract verification data outside the positions of the matching semantic pairs in the first point cloud data and the second point cloud data;

[0087] The verification module is used to verify the registered first point cloud data and the second point cloud data according to the verification data.

[0088] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a program. When the program is executed by a multi-core processor, the multi-core processor executes the above-mentioned point cloud registration method.

[0089] It can be seen from this that the point cloud registration method provided in the embodiment of the present application, which parses the first point cloud data and the second point cloud data to obtain the first semantic information and the second semantic information, can obtain a matching semantic pair by matching the first semantic information and the second semantic information, and can reduce the amount of point cloud data required for the point cloud registration based on the location information of the matching semantic pair, thereby improving the accuracy of the point cloud registration.

[0090] Other advantages of the present application will be explained in more detail with reference to the following description and drawings.

[0091] It should be understood that the above description is only an overview of the technical solution of the present application, so that the technical means of the present application can be more clearly understood and implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are specifically described below by way of example. BRIEF DESCRIPTION OF THE DRAWINGS

[0092] The advantages and benefits described herein and other advantages and benefits will be apparent to those skilled in the art by reading the detailed description of the exemplary embodiments below. The accompanying drawings are only used for the purpose of illustrating the exemplary embodiments and are not to be considered as limiting the present application. In the accompanying drawings:

[0093] Figure 1 A flow chart of a point cloud registration method provided in an embodiment of the present application;

[0094] Figure 2 A flowchart of a semantic matching method provided in an embodiment of the present application;

[0095] Figure 3 A schematic diagram of a grid position provided in an embodiment of the present application;

[0096] Figure 4 A schematic diagram of a point cloud registration device provided in an embodiment of the present application.

[0097] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION

[0098] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0099] In the description of the embodiments of the present application, it should be understood that terms such as "including" or "having" are intended to indicate the presence of disclosed features, numbers, steps, behaviors, components, parts, or a combination thereof in the present specification, and do not exclude the possibility of the presence of one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof.

[0100] Unless otherwise specified, “ / ” means or. For example, A / B can mean A or B. The “and / or” in this article is merely a way to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0101] The terms "first", "second", etc. are used only to distinguish the same or similar technical features for the convenience of description, and should not be understood as indicating or implying the relative importance or quantity of these technical features. Thus, the features defined by "first", "second", etc. may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, unless otherwise specified, the term "plurality" means two or more than two.

[0102] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0103] See also Figure 1 , which is a flow chart of a point cloud registration method provided in an embodiment of the present application.

[0104] like Figure 1 As shown, the point cloud registration method provided in the embodiment of the present application includes:

[0105] S101: Parse the first point cloud data and the second point cloud data to obtain first semantic information and second semantic information, wherein the first semantic information includes multiple semantics with coordinates, and the semantics in the first semantic information indicates the type of elements in the first point cloud data; the second semantic information includes multiple semantics with coordinates, and the semantics in the second semantic information indicates the type of elements in the second point cloud data.

[0106] The types of elements in the embodiments of the present application may include street lights, road signs, traffic lights, lane lines, guardrails, electric poles, ground symbols, etc., which are not limited in the embodiments of the present application. According to the geometric shape characteristics of the elements, the present application can also divide the elements into point elements, line elements and surface elements.

[0107] It should be noted that the multiple semantics in the first semantic information in the embodiment of the present application may include point semantics, line semantics and surface semantics, and the multiple semantics in the first point cloud data may include point elements, line elements and surface elements. Among them, the point semantics in the first semantic information indicates the type of point elements in the first point cloud data, the line semantics in the first semantic information indicates the type of line semantics in the first point cloud data, and the surface semantics in the first semantic information indicates the type of surface elements in the first point cloud data; the multiple semantics in the second semantic information include point semantics, line semantics and surface semantics, and the multiple semantics in the second point cloud data include point elements, line elements and surface elements; the point semantics in the second semantic information indicates the type of point elements in the second point cloud data, the line semantics in the second semantic information indicates the type of line semantics in the second point cloud data, and the surface semantics in the second semantic information indicates the type of surface elements in the second point cloud data.

[0108] S102: Match the semantics in the first semantic information with the semantics in the second semantic information to obtain a matching semantic pair.

[0109] In the embodiment of the present application, in order to improve the matching rate, the present application can divide the first semantic information and the second semantic information to be matched into multiple grids for matching, and then match the semantics in the successfully matched grids. The specific implementation method may include the following steps S201-S203:

[0110] S201: Divide the first semantic information into a plurality of grids according to semantic coordinates, and divide the second semantic information into a plurality of grids.

[0111] In practical applications, the number of second grids can be determined based on the degree of misalignment between the first point cloud data and the second point cloud data. The present application can first calculate the degree of misalignment between the first point cloud data and the second point cloud data. Then, the number of grids in the plurality of second grids is determined based on the degree of misalignment. It should be noted that the higher the degree of misalignment between the first point cloud data and the second point cloud data, the greater the number of grids in the plurality of second grids. As an example, Figure 3 As shown, the plurality of second grids may include 9 second grids. Specifically, the 9 second grids include grid 5 of the target position in the second semantic information, and 8 grids adjacent to the grid of the target position, namely, grid 1, grid 2, grid 3, grid 4, grid 6, grid 7, grid 8 and grid 9.

[0112] As a possible implementation, the present application can calculate the misalignment degree S between the first point cloud data and the second point cloud data by the following formula: m,n :

[0113]

[0114]

[0115] in, Indicates the semantic similarity between the first grid m and the second grid n of type type_i, represents the total number of semantics of type type_i in the first grid m, represents the total number of semantics of type type_i in the second grid n, P type_i Represents the weight of type type_i.

[0116] S202: Matching the first grid of the target position in the first semantic information with the target position and multiple second grids around the target position in the second semantic information, and determining the target grid with the highest matching degree with the first grid among the multiple second grids.

[0117] As a possible implementation, the present application may respectively calculate the similarity between the first grid and the plurality of second grids, and then use the second grid with the greatest similarity among the plurality of second grids as the target grid.

[0118] S203: Match the semantics in the first grid with the semantics in the target grid to obtain at least two matching semantic pairs.

[0119] As a possible implementation, the present application can match the geometric relationship between the semantics in the target grid with the geometric relationship between the semantics in the first grid to obtain at least two matching semantic pairs. As an example, when the semantics in the first grid and the semantics in the target grid meet the following conditions, it is determined that the semantics in the first grid and the corresponding semantics in the second grid constitute a matching semantic pair:

[0120] ΔA ij Less than α° and ΔB ij Less than τ meters;

[0121] ΔC ij Less than α / 1.4° and ΔD ij Less than τ / 1.4 meters.

[0122] Among them, α and τ are both preset constants. Represents the set of angles between the normal vector of the surface semantics and the line semantics in the first mesh {A obj The i-th element in} The set of angles between the normal vector of the face semantics and the line semantics in the target mesh {A src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent.

[0123] represents the geometric distance set between the semantic center point of the surface and the semantic center point of the line in the first grid {B obj The i-th element in} The geometric distance set {B src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent.

[0124] represents the set of angles between the center point of the surface semantics, the point semantics connecting line and the surface semantics normal vector in the first grid {C obj The i-th element in} The set of angles between the center point of the face semantics in the target mesh, the line connecting the point semantics and the face semantics normal vector {C src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent.

[0125] represents the geometric distance set between the semantic center point of the surface and the semantic point in the first grid {D obj The i-th element in} The set of geometric distances between the semantic center point of the face and the semantic point in the target mesh {D src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent.

[0126] S103: Align the first point cloud data and the second point cloud data according to the matching semantic pair.

[0127] In an embodiment of the present application, matching data corresponding to the positions of matching semantic pairs in the first point cloud data and the second point cloud data can be extracted; and then the first point cloud data and the second point cloud data can be registered based on the matching data pairs.

[0128] In practical applications, the present invention can be used to convert the coordinates of the first point cloud data and the second point cloud data into [x min -Δ,y min -Δ,z min -Δ] to [x max +Δ,y max +Δ,z max +Δ] are extracted as matching data;

[0129] [x min ,y min ,z min]=[min(X),min(Y),min(Z)]

[0130] [x max ,y max ,z max ]=[max(X),max(Y),max(Z)]

[0131] X, Y, and Z represent the coordinate points of the matching semantic pair in the local coordinate system in the x, y, and z directions, respectively. min is the minimum value in set X, y min is the minimum value in set Y, z min represents the minimum value in the Z set, x max is the maximum value in set X, y max is the maximum value in the set Y, z max is the maximum value in the set Z, and Δ is the preset error distance.

[0132] Data was collected in a 60s period in a certain park, with a total of 603 frames of laser point cloud data and a total of 23723132 scanning points. If the extracted semantics are 8 point semantics, 1 line semantics and 9 surface semantics. The screening range Δ is taken as 0.5 meters, and the z-direction range of the point semantics is set to 3 meters separately. After screening all semantics, 577 frames remain, totaling 1423678 scans, and the data compression ratio is 1423678 / 23723132≈0.06. It can be seen that the screening of the embodiment of the present application can greatly reduce the number of input points subsequently involved in the ICP precise registration, and therefore can greatly improve the ICP registration efficiency.

[0133] As a possible implementation, the present application may register the first point cloud data and the second point cloud data by iterative closest point ICP algorithm according to the matching data. As an example, the present application may construct parallel constraints between faces and overlap constraints between points, which are described in detail as follows:

[0134] (1) Constrained observation equation of a point

[0135] Assuming that the semantic point of the matching data in the second semantic information is the source semantic point Pn, and the semantic point of the matching data in the first semantic information is the target semantic point Po, the corresponding rotation matrix between the source point cloud and the target point cloud is The translation relationship is The point after the source point conversion is:

[0136]

[0137] The corresponding cost function is

[0138]

[0139] Using the left perturbation model on the special Euclidean group SE(3), the corresponding Jacobian matrix is:

[0140]

[0141] Among them, × represents an antisymmetric matrix, and its complete expression is:

[0142]

[0143] (2) The constrained observation equation of the surface is:

[0144] First, three points are selected in the plane of the face semantics to form two non-parallel vectors, and then the normal vector of the plane is solved and normalized. Assume that the unit normal vectors corresponding to the source semantics and the target semantics are Nn and No. When calculating the normal vector, the selected directions must correspond to avoid the normal vector being reversed. Assume that a set of corresponding vector edge unit vectors of the source semantics and the target semantics are Ln and Lo, respectively, then after converting the source semantic vector, we can get:

[0145]

[0146]

[0147] The idea of ​​the constraint is that the angle between the normal vector and edge vector of the source semantics and the normal vector and edge vector of the target semantics after conversion should be as small as possible. This is an angle constraint. In order to convert the angle constraint scale to a distance constraint, it is convenient to optimize it together with the point constraint. The constraint condition is changed to: the modulus of the difference between the relevant vector of the source semantics and the relevant vector of the target semantics after adjustment is as small as possible. Since the impact of the angle is proportional to the length of the vector, the length of the upper vector needs to be considered. Therefore, the corresponding cost function is

[0148]

[0149]

[0150] Using the left perturbation model, the corresponding Jacobian matrix is:

[0151]

[0152]

[0153] Among them, d max Indicates the longest edge length of a semantic object.

[0154] (3) Optimization method

[0155] After comprehensive observation of point semantics and surface semantics, the final optimization condition is designed as follows:

[0156]

[0157] γ=[roll,pitch,yaw,x,y,z]

[0158] In the formula, Represents the minimization operator, and the parameters in γ mean roll angle, pitch angle, heading angle, x-direction translation, y-direction translation, and z-direction translation, respectively. This is a nonlinear optimization problem, and open source mathematical libraries such as Ceres (Ceres Non-linear Optimization Library), GTSAM (Georgia Tech Smoothing and Mapping), and g2o (General Graph Optimization) can be used for optimization and solution. It should be pointed out that although the above-mentioned open source libraries come from different sources, their essential ideas are the same, and they are all implementations of nonlinear optimization mathematical algorithms. Therefore, this application does not limit the open source mathematical libraries used.

[0159] Finally, the embodiment of the present application can use the obtained rough alignment result as the initial iteration value, perform a standard ICP algorithm on the screened source point cloud and target point cloud, and obtain a fine alignment result.

[0160] In addition, the present application can also extract verification data other than the positions of the matching semantic pairs in the first point cloud data and the second point cloud data; then verify the aligned first point cloud data and the second point cloud data through the above-mentioned iterative closest point ICP algorithm according to the verification data. For the application of the ICP algorithm, please refer to the above-mentioned description of the processing of matching data, and the embodiments of the present application will not be repeated here. Based on the existing convergence judgment conditions, the present application adds a method of constrained self-checking through redundant semantic observations, so that the results of point cloud alignment are more reliable.

[0161] The present application can use the above observation equation to solve the residuals, and check each residual. When all residuals are less than a preset value, such as 0.1m, the precise registration result is considered reliable. Otherwise, the Δ in the point cloud screening range is expanded to 3Δ, and step S103 is re-executed. The coordinate range of the matching data in the retained first point cloud data and the second point cloud data is [x min -3Δ,y min -3Δ,z min -3Δ] to [x max +3Δ,y max +3Δ,z max +3Δ].

[0162] It should be noted that the semantic information in the embodiments of the present application has a clearer meaning and a more precise scope than feature points, lines, and surfaces. Matching is based on the geometric relationship between semantics, using the high-precision relative accuracy of laser point cloud measurement, which is not affected by absolute position errors and is more robust than the method of semantic point matching based on the nearest neighbor principle.

[0163] In summary, the point cloud registration method provided in the embodiment of the present application can parse the first semantic information and the second semantic information obtained from the first point cloud data and the second point cloud data, and can obtain a matching semantic pair by matching the first semantic information and the second semantic information, thereby narrowing the scope of the point cloud registration according to the location information of the matching semantic pair, reducing the amount of data for the point cloud registration, and improving the accuracy and efficiency of the point cloud registration. Moreover, the present application can greatly speed up the efficiency of the point cloud registration by quickly solving the initial transformation matrix through semantic constraints.

[0164] In the description of this specification, the description with reference to the terms "some possible embodiments", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application, and the above terms do not necessarily represent the same embodiment or example. Moreover, the described specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0165] About the method flow chart of the present application embodiment, some operations are described as different steps performed in a certain order. Such flow chart belongs to illustrative and non-restrictive. Some steps described in this article can be grouped together and performed in a single operation, or some steps can be divided into multiple sub-steps and can be performed in an order different from that shown in this article. Each step shown in the flow chart can be realized in any way by any circuit structure and / or tangible mechanism (for example, by software, hardware (for example, the logical function realized by processor or chip) etc. running on computer equipment and / or any combination thereof).

[0166] Those skilled in the art will appreciate that, in the method described in the above specific implementation, the writing order of each step does not mean a strict execution order, and the specific execution order of each step should be determined by its function and possible internal logic.

[0167] According to the point cloud registration method provided in the above embodiment, the present application also provides a point cloud registration device.

[0168] like Figure 4 As shown, the point cloud registration device provided in the embodiment of the present application includes:

[0169] The parsing module 100 is used to parse the first point cloud data and the second point cloud data to obtain first semantic information and second semantic information, wherein the first semantic information includes a plurality of semantics with coordinates, and the semantics in the first semantic information indicates the type of elements in the first point cloud data, and the second semantic information includes a plurality of semantics with coordinates, and the semantics in the second semantic information indicates the type of elements in the second point cloud data;

[0170] A matching module 200, configured to match the semantics in the first semantic information with the semantics in the second semantic information to obtain a matching semantic pair;

[0171] The registration module 300 is used to register the first point cloud data and the second point cloud data according to the matching semantic pair.

[0172] As a possible implementation, the multiple semantics in the first semantic information include point semantics, line semantics and surface semantics, and the multiple semantics in the first point cloud data include point elements, line elements and surface elements; the point semantics in the first semantic information indicate the type of point elements in the first point cloud data, the line semantics in the first semantic information indicate the type of line semantics in the first point cloud data, and the surface semantics in the first semantic information indicate the type of surface elements in the first point cloud data; the multiple semantics in the second semantic information include point semantics, line semantics and surface semantics, and the multiple semantics in the second point cloud data include point elements, line elements and surface elements; the point semantics in the second semantic information indicate the type of point elements in the second point cloud data, the line semantics in the second semantic information indicate the type of line semantics in the second point cloud data, and the surface semantics in the second semantic information indicate the type of surface elements in the second point cloud data.

[0173] As a possible implementation, the matching module includes: a division submodule, used to divide the first semantic information into multiple grids according to the semantic coordinates, and divide the second semantic information into multiple grids; a first matching submodule, used to match the first grid of the target position in the first semantic information with the target position and multiple second grids around the target position in the second semantic information, and determine the target grid with the highest degree of matching with the first grid among the multiple second grids; a second matching submodule, used to match the semantics in the first grid with the semantics in the target grid to obtain at least two matching semantic pairs.

[0174] As a possible implementation, it also includes: a calculation module, used to calculate the degree of misalignment between the first point cloud data and the second point cloud data; a quantity determination module, used to determine the number of grids in the multiple second grids according to the degree of misalignment, the higher the degree of misalignment, the greater the number of grids in the multiple second grids.

[0175] As a possible implementation, the misalignment degree S between the first point cloud data and the second point cloud data is calculated by the following formula: m,n :

[0176]

[0177]

[0178] in, Indicates the semantic similarity between the first grid m and the second grid n of type type_i, represents the total number of semantics of type type_i in the first grid m, represents the total number of semantics of type type_i in the second grid n, P type_i Indicates the weight of type type_i. As a possible implementation, the plurality of second grids include a grid at the target position in the second semantic information, and eight grids adjacent to the grid at the target position.

[0179] As a possible implementation, the second matching submodule is used to match the geometric relationship between the semantics in the target grid with the geometric relationship between the semantics in the first grid to obtain at least two matching semantic pairs.

[0180] As a possible implementation, when the semantics in the first grid and the semantics in the target grid meet the following conditions, it is determined that the semantics in the first grid and the corresponding semantics in the second grid form a matching semantic pair:

[0181] ΔA ij Less than α° and ΔB ij Less than τ meters;

[0182] ΔC ij Less than α / 1.4° and ΔD ij Less than τ / 1.4 m;

[0183] Among them, α and τ are both preset constants. Represents the set of angles between the normal vector of the surface semantics and the line semantics in the first mesh {A obj The i-th element in} The set of angles between the normal vector of the face semantics and the line semantics in the target mesh {A src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent; represents the geometric distance set between the semantic center point of the surface and the semantic center point of the line in the first grid {B obj The i-th element in} The geometric distance set {B src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent; represents the set of angles between the center point of the surface semantics, the point semantics connecting line and the surface semantics normal vector in the first grid {C obj The i-th element in} The set of angles between the center point of the face semantics in the target mesh, the line connecting the point semantics and the face semantics normal vector {C src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent; represents the geometric distance set between the semantic center point of the surface and the semantic point in the first grid {D obj The i-th element in} The set of geometric distances between the semantic center point of the face and the semantic point in the target mesh {D src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent.

[0184] As a possible implementation, the registration module is used to extract matching data corresponding to positions of matching semantic pairs in the first point cloud data and the second point cloud data; and to register the first point cloud data and the second point cloud data according to the matching data pairs.

[0185] As a possible implementation, the registration module is used to register the coordinates of the first point cloud data and the second point cloud data in [x min -Δ,y min -Δ,z min -Δ] to [x max +Δ,y max +Δ,z max +Δ] are extracted as matching data;

[0186] [x min ,y min ,z min ]=[min(X),min(Y),min(Z)]

[0187] [x max,y max ,z max ]=[max(X),max(Y),max(Z)]

[0188] X, Y, and Z represent the coordinate points of the matching semantic pair in the local coordinate system in the x, y, and z directions, respectively. min is the minimum value in set X, y min is the minimum value in set Y, z min represents the minimum value in the Z set, x max is the maximum value in set X, y max is the maximum value in the set Y, z max is the maximum value in the set Z, and Δ is the preset error distance.

[0189] As a possible implementation, the registration module is used to register the first point cloud data and the second point cloud data by iterative closest point algorithm according to the matching data. As a possible implementation, it also includes: a verification data extraction module, used to extract verification data outside the position of the matching semantic pair in the first point cloud data and the second point cloud data; a verification module, used to verify the registered first point cloud data and the second point cloud data according to the verification data pair.

[0190] It should be noted that the point cloud registration device in the embodiment of the present application can implement the various processes of the embodiment of the aforementioned point cloud registration method and achieve the same effects and functions, which will not be repeated here.

[0191] According to the point cloud registration method and point cloud registration device in the above embodiments, a non-volatile computer storage medium of the point cloud registration method is provided, on which computer executable instructions are stored, and the computer executable instructions are configured to execute the method described in the above embodiments when run by a processor.

[0192] Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory, read-only memory, electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. In addition, although the operations of the method of the present application are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. In addition, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple sub-steps.

[0193] Although the spirit and principle of the present application have been described above with reference to several specific embodiments, it should be understood that the present application is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined. The present application is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.

Claims

1. A point cloud registration method, characterized in that: include: Parsing the first point cloud data and the second point cloud data to obtain first semantic information and second semantic information, wherein the first semantic information includes a plurality of semantics with coordinates, and the semantics in the first semantic information indicates the type of elements in the first point cloud data, and the second semantic information includes a plurality of semantics with coordinates, and the semantics in the second semantic information indicates the type of elements in the second point cloud data; Matching the semantics in the first semantic information with the semantics in the second semantic information to obtain a matching semantic pair; The first point cloud data and the second point cloud data are aligned according to the matching semantic pair.

2. The method according to claim 1, characterized in that: The multiple semantics in the first semantic information include point semantics, line semantics and surface semantics, and the multiple semantics in the first point cloud data include point elements, line elements and surface elements; The point semantics in the first semantic information indicates the type of point elements in the first point cloud data, the line semantics in the first semantic information indicates the type of line semantics in the first point cloud data, and the surface semantics in the first semantic information indicates the type of surface elements in the first point cloud data; The multiple semantics in the second semantic information include point semantics, line semantics and surface semantics, and the multiple semantics in the second point cloud data include point elements, line elements and surface elements; The point semantics in the second semantic information indicates the type of point elements in the second point cloud data, the line semantics in the second semantic information indicates the type of line semantics in the second point cloud data, and the surface semantics in the second semantic information indicates the type of surface elements in the second point cloud data.

3. The method according to claim 1, characterized in that The matching the semantics in the first semantic information with the semantics in the second semantic information to obtain a matching semantic pair includes: Dividing the first semantic information into a plurality of grids according to semantic coordinates, and dividing the second semantic information into a plurality of grids; Matching a first grid of a target position in the first semantic information with the target position and a plurality of second grids around the target position in the second semantic information, and determining a target grid with the highest matching degree with the first grid among the plurality of second grids; The semantics in the first grid are matched with the semantics in the target grid to obtain at least two matching semantic pairs.

4. The method according to claim 3, characterized in that Also includes: Calculating a degree of misalignment between the first point cloud data and the second point cloud data; The number of grids in the plurality of second grids is determined according to the misalignment degree. The higher the misalignment degree is, the greater the number of grids in the plurality of second grids is.

5. The method according to claim 4, characterized in that The misalignment degree S between the first point cloud data and the second point cloud data is calculated by the following formula: m,n : in, Indicates the semantic similarity between the first grid m and the second grid n of type type_i, represents the total number of semantics of type type_i in the first grid m, represents the total number of semantics of type type_i in the second grid n, P type_i Represents the weight of type type_i.

6. The method according to claim 3, characterized in that The plurality of second grids include the grid of the target position in the second semantic information and eight grids adjacent to the grid of the target position.

7. The method according to claim 3, characterized in that The matching of the semantics in the first grid with the semantics in the target grid to obtain at least two matching semantic pairs includes: The geometric relationship between the semantics in the target grid is matched with the geometric relationship between the semantics in the first grid to obtain at least two matching semantic pairs.

8. The method according to claim 7, characterized in that When the semantics in the first grid and the semantics in the target grid meet the following conditions, it is determined that the semantics in the first grid and the corresponding semantics in the second grid form the matching semantic pair: ΔA ij Less than α° and ΔB ij Less than τ meters; ΔC ij Less than α / 1.4° and ΔD ij Less than τ / 1.4 m; Among them, α and τ are both preset constants. represents the set of angles between the normal vector of the surface semantics and the line semantics in the first mesh {A obj The i-th element in} The angle set between the normal vector of the surface semantics and the line semantics in the target mesh {A src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent; represents the geometric distance set between the semantic center point of the surface and the semantic center point of the line in the first grid {B obj The i-th element in} The geometric distance set {B src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent; represents the set of angles between the center point of the surface semantics and the point semantics connecting line and the surface semantics normal vector in the first grid {C obj The i-th element in} The set of angles between the center point of the surface semantics in the target mesh, the line connecting the point semantics and the surface semantics normal vector {C src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent; represents the geometric distance set between the semantic center point of the surface and the semantic point in the first grid {D obj The i-th element in} The set of geometric distances between the face semantic center point and the point semantic center point in the target mesh {D src The jth element in The difference and The types of elements indicated by corresponding semantics are consistent.

9. The method according to claim 3, characterized in that: The registering the first point cloud data and the second point cloud data according to the matching semantic pair includes: Extracting matching data corresponding to the position of the matching semantic pair in the first point cloud data and the second point cloud data; The first point cloud data and the second point cloud data are registered according to the matching data pair.

10. The method according to claim 9, characterized in that The extracting matching data corresponding to the position of the matching semantic pair in the first point cloud data and the second point cloud data includes: The coordinates of the first point cloud data and the second point cloud data are in [x min -Δ,y min -Δ,z min -Δ] to [x max -Δ,y max -Δ,z max -Δ] are extracted as matching data; [x min ,y min ,z min ]=[min(X),min(Y),min(Z)] [x max ,y max ,z max ]=[max(X),max(Y),max(Z)] X, Y, and Z represent the coordinate point sets of the matching semantic pair in the local coordinate system in the x, y, and z directions, respectively. min is the minimum value in set X, y min is the minimum value in set Y, z min represents the minimum value in the Z set, x max is the maximum value in set X, y max is the maximum value in the set Y, z max is the maximum value in the set Z, and Δ is the preset error distance.

11. The method according to claim 9, characterized in that The registering the first point cloud data and the second point cloud data according to the matching data pair comprises: The first point cloud data and the second point cloud data are registered according to the matching data by using an iterative closest point algorithm.

12. The method according to claim 9, characterized in that Also includes: Extracting verification data outside the position of the matching semantic pair in the first point cloud data and the second point cloud data; The registered first point cloud data and the second point cloud data are verified according to the verification data.

13. A point cloud registration device, characterized in that: include: A parsing module, configured to parse the first point cloud data and the second point cloud data to obtain first semantic information and second semantic information, wherein the first semantic information includes a plurality of semantics with coordinates, and the semantics in the first semantic information indicates the type of elements in the first point cloud data, and the second semantic information includes a plurality of semantics with coordinates, and the semantics in the second semantic information indicates the type of elements in the second point cloud data; A matching module, used for matching the semantics in the first semantic information with the semantics in the second semantic information to obtain a matching semantic pair; A registration module is used to register the first point cloud data and the second point cloud data according to the matching semantic pair.

14. A computer-readable storage medium storing a program, wherein when the program is executed by a multi-core processor, the multi-core processor executes the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Point cloud data registration method, system and device and computer storage medium

    CN111524168A

  • Rapid point cloud registration method, device and equipment based on space grid division

    CN113706587A

  • Laser point cloud parameterized semantic feature matching method and device, equipment and storage medium

    CN114445644A

  • Unmanned aerial vehicle laser radar air strip adjustment method fusing semantic features

    CN115631220A

  • Semantic-assisted multi-resolution point cloud registration

    US20220215561A1