A point cloud feature extraction method, device, equipment and readable storage medium

By extracting key points of three-dimensional point cloud data and performing binarization processing, it solves the problems of long time-consuming point cloud feature extraction and poor anti-noise ability in the existing technology, and achieves efficient and robust point cloud feature extraction.

CN112053427BActive Publication Date: 2024-10-15ZHUHAI GREE INTELLIGENT EQUIP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011104364.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-15
Publication Date
2024-10-15
Estimated Expiration
2040-10-15

AI Technical Summary

Technical Problem

Existing point cloud feature extraction methods are time-consuming and have poor anti-noise interference capabilities. Directly traversing the global calculation of LBP values ​​results in low computational efficiency and insufficient robustness.

Method used

By extracting key points of 3D point cloud data, determine the target area, project the key points to a preset plane and perform binarization processing to calculate point cloud feature values, avoid directly traversing the global calculation, improve calculation efficiency and suppress the impact of noise.

Benefits of technology

It saves calculation time, improves calculation efficiency, enhances the ability to resist noise interference, and improves the robustness of point cloud feature extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112053427B_ABST
    Figure CN112053427B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and discloses a feature extraction method, device, equipment and readable storage medium of a point cloud, wherein the feature extraction method of the point cloud comprises: obtaining three-dimensional point cloud data; extracting key points corresponding to the three-dimensional point cloud data; determining a target area corresponding to the three-dimensional point cloud data based on the key points; projecting the key points in the target area to a preset plane, determining the projected key points corresponding to the key points; binarizing the projected key points, and determining the feature values ​​of the point cloud. By implementing the present invention, the calculation time is saved, the calculation efficiency is improved, the noise interference is suppressed, and the robustness is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and in particular to a point cloud feature extraction method, device, equipment and readable storage medium. Background Art

[0002] Point cloud data is the most common and basic three-dimensional image model. Point cloud data is usually obtained directly from measurement, and each point corresponds to a measurement point without other processing methods. Therefore, it contains the largest amount of information. Three-dimensional image processing requires the extraction of information hidden in the point cloud data. Since the texture features of point cloud data contain a lot of useful information, the texture feature extraction of point cloud data plays a great role in three-dimensional image processing. Existing point cloud feature extraction is usually performed by directly traversing the global area and calculating the value of the local binary pattern (LBP). The calculated LBP value is the texture feature. However, the existing LBP value calculation method does not have a sampling process. The direct calculation by traversing the global area is not only time-consuming, but also has poor resistance to noise interference. Summary of the invention

[0003] Therefore, the technical problem to be solved by the present invention is to overcome the defects of the LBP value calculation in the prior art, namely, long time consumption and poor anti-noise interference ability, thereby providing a point cloud feature extraction method, device, equipment and readable storage medium.

[0004] According to the first aspect, an embodiment of the present invention provides a point cloud feature extraction method, comprising the following steps: acquiring three-dimensional point cloud data; extracting key points corresponding to the three-dimensional point cloud data; determining a target area corresponding to the three-dimensional point cloud data based on the key points; projecting the key points within the target area to a preset plane to determine the projected key points corresponding to the key points; binarizing the projected key points to determine point cloud feature values.

[0005] In combination with the first aspect, in a first implementation of the first aspect, extracting key points corresponding to the three-dimensional point cloud data includes: extracting key points from the three-dimensional point cloud data based on a target algorithm.

[0006] In combination with the first aspect, in a second implementation of the first aspect, the target-based algorithm extracts key points from the three-dimensional point cloud data, including: traversing all points contained in the three-dimensional point cloud data, obtaining the number of point clouds corresponding to all points, and determining the mutation points in the three-dimensional point cloud data based on the number of point clouds; determining the edge points of the three-dimensional point cloud data and the main direction of change of each point in the three-dimensional point cloud data based on the mutation points; calculating the response value corresponding to the main direction of change; and determining the key points of the three-dimensional point cloud data based on a non-maximum suppression method and the response value.

[0007] In combination with the second implementation of the first aspect, in the third implementation of the first aspect, traversing all points contained in the three-dimensional point cloud data, obtaining the number of point clouds corresponding to all points, and determining the mutation points in the three-dimensional point cloud data based on the number of point clouds, includes: establishing a local coordinate system, setting a normal direction, and respectively calculating the normal vectors of all points contained in the three-dimensional point cloud data in the normal direction; constructing a covariance matrix based on the normal vectors; based on the covariance matrix, respectively calculating the number of point clouds corresponding to all points contained in the three-dimensional point cloud data; and determining the mutation points in the three-dimensional point cloud data based on changes in the number of point clouds.

[0008] In combination with the first aspect, in a fourth implementation of the first aspect, determining the target area corresponding to the three-dimensional point cloud data based on the key point includes: obtaining the radius of a sphere with the key point as the origin; determining whether the sphere radius value is less than a preset value; when the sphere radius is less than the preset value, taking the area contained in the sphere formed by the current sphere radius as the target area.

[0009] In combination with the fourth implementation of the first aspect, in the fifth implementation of the first aspect, the key points contained in the target area are valid key points; projecting the key points in the target area to a preset plane to determine the projected key points corresponding to the key points includes: calculating the minimum enclosing cube formed by the valid key points; dividing the cube into a number of pixel units, and determining the pixel grayscale value corresponding to each pixel unit; determining the preset plane corresponding to the valid key points, projecting the valid key points onto the preset plane, and obtaining the projected key points of the valid key points on the preset plane.

[0010] In combination with the fifth implementation of the first aspect, in the sixth implementation of the first aspect, determining the pixel grayscale value corresponding to each pixel unit includes: determining the pixel grayscale value corresponding to each pixel unit based on the distance between the effective key point and the preset plane.

[0011] In combination with the sixth implementation of the first aspect, in the seventh implementation of the first aspect, the binarization of the projection key points to determine the point cloud eigenvalues ​​includes: generating a feature matrix corresponding to the projection key points based on the pixel grayscale values; and calculating the binarized point cloud eigenvalues ​​based on the feature matrix.

[0012] In combination with the fifth implementation of the first aspect, in an eighth implementation of the first aspect, the cube is divided into 256 pixel units, and the pixel grayscale value is 0 to 255.

[0013] According to the second aspect, an embodiment of the present invention provides a point cloud feature extraction device, comprising: an acquisition module for acquiring three-dimensional point cloud data; an extraction module for extracting key points corresponding to the three-dimensional point cloud data; a determination module for determining a target area corresponding to the three-dimensional point cloud data based on the key points; a projection module for projecting the key points in the target area to a preset plane to determine the projection key points corresponding to the key points; and a processing module for binarizing the projection key points to determine the point cloud feature values.

[0014] According to the third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the point cloud feature extraction method described in the first aspect or any embodiment of the first aspect by executing the computer instructions.

[0015] According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the point cloud feature extraction method described in the first aspect or any embodiment of the first aspect.

[0016] The technical solution of the present invention has the following advantages:

[0017] The feature extraction method, device, equipment and readable storage medium of point cloud provided by the present invention obtain three-dimensional point cloud data, extract key points corresponding to the three-dimensional point cloud data, determine the target area corresponding to the three-dimensional point cloud data based on the key points, project the key points in the target area to a preset plane, determine the projected key points corresponding to the key points, perform binarization processing on the projected key points, and determine the feature values ​​of the point cloud. This method avoids the problem of directly traversing the entire system to calculate the feature values ​​of the point cloud, which is very time-consuming, saves calculation time, and improves calculation efficiency. At the same time, by extracting key points, the noise influence that exists when traversing the feature values ​​of each point of the three-dimensional point cloud data is suppressed, thereby improving robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 Flow chart of a method for extracting features of a point cloud according to an embodiment of the present invention;

[0020] Figure 2 Another flow chart of the feature extraction method of point cloud in an embodiment of the present invention;

[0021] Figure 3 Another flow chart of the feature extraction method of point cloud in an embodiment of the present invention;

[0022] Figure 4 1 is a principle block diagram of a point cloud feature extraction device in an embodiment of the present invention;

[0023] Figure 5 Schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0025] When processing a three-dimensional image model, point cloud data is usually used for analysis and processing. Since the texture features of point cloud data contain a lot of useful information, the texture feature extraction of point cloud data plays a great role in three-dimensional image processing. However, point cloud data is usually obtained by direct measurement, and each point corresponds to a measurement point without other processing methods. Therefore, it contains the largest amount of information, and three-dimensional image processing requires the extraction of information hidden in the point cloud data. Existing point cloud feature extraction is usually calculated by directly traversing the global value, and the value of the local binary pattern (LBP) is calculated. The calculated LBP value is the texture feature. However, since the existing LBP value calculation method does not have a sampling process, but directly calculates the data by traversing the global value, when calculating point cloud data, its feature extraction is not only time-consuming, but also has poor anti-noise interference ability.

[0026] The existing LBP value calculation method is time-consuming and has poor noise resistance. By extracting the key points corresponding to the three-dimensional point cloud data and sampling the point cloud data, the problem of long calculation time is solved, while noise interference is avoided and robustness is improved.

[0027] According to an embodiment of the present invention, an embodiment of a feature extraction method for a point cloud 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.

[0028] In this embodiment, a point cloud feature extraction method is provided, which can be used in electronic devices such as computers, mobile phones, tablet computers, etc. Figure 1 is a flow chart of a feature extraction method of a point cloud according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0029] S11, obtaining three-dimensional point cloud data.

[0030] Three-dimensional point cloud data is a collection of massive points that express the spatial distribution and surface characteristics of the target in the same spatial reference system. It is a collection of points obtained after obtaining the spatial coordinates of each sampling point on the surface of the object. The three-dimensional point cloud data of the target object can be acquired by a three-dimensional laser scanner or by other image scanners. Of course, the method for acquiring three-dimensional point cloud data described in the embodiment of the present invention is not limited to the description of the above acquisition method, and other methods can also be used for acquisition. There is no limitation on the method for acquiring three-dimensional point cloud data here. It only needs to ensure that it is three-dimensional point cloud data corresponding to the target object.

[0031] S12, extracting key points corresponding to the three-dimensional point cloud data.

[0032] Since the amount of original 3D point cloud data is large, in order to speed up the subsequent recognition and tracking information processing, it is necessary to extract the key points corresponding to the 3D point cloud data. Key points are stable and distinctive point sets obtained by defining detection standards in 3D point cloud data. Specifically, the key points corresponding to the 3D point cloud data can be extracted by a key point extraction algorithm, such as the Harris corner detection algorithm. Key points can also be determined by other extraction algorithms, and no limitation is made to the key point extraction algorithm herein.

[0033] S13, determining a target area corresponding to the three-dimensional point cloud data based on the key points.

[0034] The target area is the valid area of ​​the three-dimensional point cloud data. The key points in the target area contain the texture feature information corresponding to the three-dimensional point cloud data. The target area is determined according to the distance between each point contained in the three-dimensional point cloud data and the key point. Specifically, the distances between each point and the key point in the three-dimensional point cloud data are obtained respectively, and it is determined whether each distance exceeds the preset distance. If the distance between a certain point and the key point does not exceed the preset distance, then the point is the key point in the target area, that is, the area composed of all points whose distances to the key point are within the preset distance is the target area.

[0035] S14, projecting the key points in the target area onto a preset plane, and determining the projected key points corresponding to the key points.

[0036] The three-dimensional point cloud data corresponds to a spatial coordinate system, namely an XYZ coordinate system. The preset plane can be the plane where the X and Y axes are located, the plane where the Y and Z axes are located, or the plane where the Z and X axes are located. This application does not make specific restrictions on this. Taking the plane where the Y and Z axes are located as an example, the key points in the target area are projected to the plane where the Y and Z axes are located to obtain the projected key points corresponding to the key points.

[0037] Take key points A, B and C as an example, where:

[0038] The spatial coordinates of key point A are (x1, y1, z1). Project the key point to the plane where the Y and Z axes are located to obtain the projected key point A1 (y11, z11) corresponding to key point A.

[0039] The spatial coordinates of key point B are (x2, y2, z2). Project the key point to the plane where the Y and Z axes are located to obtain the projected key point B1 (y22, z22) corresponding to key point B.

[0040] The spatial coordinates of the key point C are (x3, y3, z3). The key point is projected to the plane where the Y and Z axes are located to obtain the projected key point C1 (y33, z33) corresponding to the key point C.

[0041] S15, performing binarization processing on the projected key points to determine the feature values ​​of the point cloud.

[0042] Binarize the projection key points to obtain the point cloud feature values ​​corresponding to the projection key points. Specifically, take a projection key point as the center, obtain the pixel grayscale value of the projection key point, compare the pixel grayscale values ​​of other projection key points adjacent to the central projection key point with the pixel grayscale value of the central projection key point, and if the pixel grayscale value of the adjacent projection key point is greater than the pixel grayscale value of the central projection key point, set the pixel grayscale value of the point to 1, otherwise set it to 0. In this way, a set of binary codes can be obtained, and the point cloud feature values ​​corresponding to the projection key point can be obtained by converting the binary codes into decimal numbers.

[0043] For example, the pixel grayscale values ​​of the eight other projection key points adjacent to the central projection key point are compared with the pixel grayscale value of the central projection key point. If the pixel grayscale value of the adjacent projection key point is greater than the pixel grayscale value of the central projection key point, the pixel grayscale value of the projection key point adjacent to the central projection key point is set to 1, otherwise the pixel grayscale value of the projection key point adjacent to the central projection key point is set to 0, as shown in the following table:

[0044]

[0045] Starting from the upper left corner, in clockwise order, we can get an 8-bit binary code of 10011110. Converting this binary code into a decimal number, we get the point cloud feature value corresponding to the current central projection key point as 158.

[0046] The feature extraction method of point cloud provided by the embodiment of the present invention obtains three-dimensional point cloud data, extracts key points corresponding to the three-dimensional point cloud data, determines the target area corresponding to the three-dimensional point cloud data based on the key points, projects the key points in the target area to a preset plane, determines the projected key points corresponding to the key points, performs binarization processing on the projected key points, and determines the feature values ​​of the point cloud. This method avoids the problem of directly traversing the entire system to calculate the feature values ​​of the point cloud, which is very time-consuming, saves calculation time, and improves calculation efficiency. At the same time, by extracting key points, the noise influence that exists when traversing the feature values ​​of each point of the three-dimensional point cloud data is suppressed, thereby improving robustness.

[0047] In this embodiment, a point cloud feature extraction method is provided, which can be used in electronic devices such as computers, mobile phones, tablet computers, etc. Figure 2 is a flow chart of a feature extraction method of a point cloud according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0048] S21, obtaining three-dimensional point cloud data. For details, please refer to the relevant description of step S11 in the above embodiment, which will not be repeated here.

[0049] S22, extracting key points corresponding to the three-dimensional point cloud data.

[0050] Specifically, the above S22 may include the steps of:

[0051] S221, extracting key points from three-dimensional point cloud data based on a target algorithm.

[0052] The target algorithm may be a Harris algorithm, which extracts key points from three-dimensional point cloud data based on the Harris corner detection method.

[0053] Specifically, the above S221 may include the following steps:

[0054] (1) Traverse all points contained in the three-dimensional point cloud data, obtain the number of point clouds corresponding to all points, and determine the mutation points in the three-dimensional point cloud data according to the number of point clouds.

[0055] The original 3D point cloud data contains a large number of points. All points of the 3D point cloud data are traversed, and a sliding window is established with a certain point in the 3D point cloud data. The sliding window can slide in any direction to obtain the number of point clouds in the sliding window. According to the change in the number of point clouds, it is determined whether the point is a mutation point. By analogy, the number of point clouds corresponding to each point in the 3D point cloud data can be obtained, and the mutation point in the 3D point cloud data can be determined according to the change in the number of point clouds.

[0056] Specifically, the step of determining the mutation point in the three-dimensional point cloud data includes:

[0057] First, a local coordinate system is established, the normal direction is set, and the normal vectors of all points in the three-dimensional point cloud data in the normal direction are calculated. Select a point P in the three-dimensional point cloud data, establish a local coordinate system on P, set the normal direction, for example, take the z direction as the normal direction, and the x and y directions are perpendicular to the z direction, obtain the normal vector of the point P in the normal direction, and so on, you can get the normal vector corresponding to each point.

[0058] Secondly, a covariance matrix is ​​constructed according to the normal vector. The calculated normal vector is constructed as a covariance matrix.

[0059] Secondly, based on the covariance matrix, the number of point clouds corresponding to all points contained in the three-dimensional point cloud data is calculated respectively. According to the covariance matrix constructed based on the normal vector, the number of point clouds corresponding to each point can be calculated respectively.

[0060] Thirdly, according to the change of the number of point clouds, the mutation points in the 3D point cloud data are determined. If the sliding window moves along the z direction, the number of point clouds in the sliding window should remain unchanged; if the sliding window is located on the edge, the number of point clouds remains almost unchanged when the sliding window moves along the edge; if the sliding window moves in a direction perpendicular to the edge, the number of point clouds changes; if the sliding window is located at a corner point, the number of point clouds will change significantly in both directions. In this way, the mutation points in the 3D point cloud data, i.e., the corner points, can be determined.

[0061] (2) Based on the mutation points, determine the edge points of the three-dimensional point cloud data and the main direction of change of each point in the three-dimensional point cloud data.

[0062] According to the change in the number of point clouds in the sliding window, the mutation point can be determined. After the mutation point is determined, the edge point can be further determined according to the change in the number of point clouds in the sliding window. Based on the mutation point and the edge point, the main direction of the change of each point in the three-dimensional point cloud data can be determined, that is, the main direction of the change of each point is the vertical edge direction or the z direction or the edge direction or the corner point direction.

[0063] (3) Calculate the response value corresponding to the main direction of change.

[0064] The response value can be determined based on the covariance matrix. Specifically, if the normal vectors are A, B, C, D, E, F, then the covariance matrix M is:

[0065]

[0066] Among them, Nx is the feature vector in the x direction, Ny is the feature vector in the y direction, and Nz is the feature vector in the z direction. w(x, y, z) is a function of the sliding window, which is equivalent to different types of weight operators. It can be a Gaussian function or an average function, which is not limited here.

[0067] The calculation formula of the response value R is as follows:

[0068] R = det(M) - k(trace(M)) 2

[0069] Wherein, det(M) is the determinant of the covariance matrix M; trace(M) is the trace of the covariance matrix M; k is the corresponding parameter, usually 0<k<1.

[0070] (4) Based on the non-maximum suppression method and response value, the key points of the three-dimensional point cloud data are determined.

[0071] The non-maximum suppression method and the calculated response value are used to obtain the maximum response value in the local coordinate system. The point corresponding to the response value is used as the key point of the three-dimensional point cloud data, and all the key points corresponding to the three-dimensional point cloud data can be determined in turn.

[0072] S23, determining the target area corresponding to the three-dimensional point cloud data based on the key points. For details, refer to the relevant description of step S13 in the above embodiment, which will not be repeated here.

[0073] S24, projecting the key points in the target area onto a preset plane, and determining the projected key points corresponding to the key points. For details, refer to the relevant description of step S14 in the above embodiment, which will not be repeated here.

[0074] S25, binarization processing is performed on the projected key points to determine the feature values ​​of the point cloud. For details, please refer to the relevant description of step S15 in the above embodiment, which will not be repeated here.

[0075] The point cloud feature extraction method provided by the embodiment of the present invention extracts key points corresponding to the three-dimensional point cloud data through a target algorithm, determines the target area corresponding to the three-dimensional point cloud data based on the key points, projects the key points in the target area to a preset plane, determines the projection key points corresponding to the key points, binarizes the projection key points, determines the point cloud feature values, and thereby samples the three-dimensional point cloud data, avoiding directly traversing the entire world to calculate the point cloud feature values, saving calculation time, improving calculation efficiency, and at the same time suppressing the noise influence caused by traversing the three-dimensional point cloud data.

[0076] In this embodiment, a point cloud feature extraction method is provided, which can be used in electronic devices such as computers, mobile phones, tablet computers, etc. Figure 3 is a flow chart of a feature extraction method of a point cloud according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:

[0077] S31, obtaining three-dimensional point cloud data. For details, please refer to the relevant description of step S11 in the above embodiment, which will not be repeated here.

[0078] S32, extracting key points corresponding to the three-dimensional point cloud data. For details, refer to the relevant description of step S12 in the above embodiment, which will not be repeated here.

[0079] S33, determining a target area corresponding to the three-dimensional point cloud data based on the key points.

[0080] Specifically, the above S33 may include the following steps:

[0081] S331, obtaining the radius of a sphere with the key point as the origin.

[0082] After the key point is determined based on the target algorithm, a sphere can be constructed with the key point as the center, and the radius n of the sphere with the key point as the center can be obtained to obtain all the points contained in the sphere.

[0083] S332, determining whether the sphere radius value is less than a preset value.

[0084] The preset value is the maximum value of the sphere radius of the set valid area. The radius n of the sphere with the key point as the sphere center is compared with the preset value to determine whether the sphere radius value is less than the preset value. When the sphere radius is less than the preset value, step S333 is executed, otherwise, it is determined to be an invalid area.

[0085] S333, taking the area contained in the sphere formed by the current spherical radius as the target area.

[0086] When it is determined that the sphere radius value is less than the preset value, the area contained in the sphere formed by the current sphere radius is taken as the effective area, that is, the effective area composed of all key points contained in the sphere formed by the current sphere radius is taken as the target area.

[0087] S34, projecting the key points in the target area onto a preset plane, and determining the projected key points corresponding to the key points.

[0088] Specifically, the key points contained in the target area are valid key points, and the above S34 may include the following steps:

[0089] S341, calculate the minimum enclosing cube formed by the valid key points.

[0090] A bounding cube is constructed according to multiple valid key points contained in the target area, and the smallest bounding cube is determined. The smallest bounding cube is used as a sliding window to slide in the z direction, the x direction, or the y direction.

[0091] S342, dividing the cube into a plurality of pixel units, and determining the pixel grayscale value corresponding to each pixel unit.

[0092] The minimum enclosing cube is divided into a number of pixel units, and the pixel grayscale value corresponding to each pixel unit is calculated. Specifically, the minimum enclosing cube can be divided into 256 pixel units, and the pixel grayscale value can be 0-255.

[0093] S343, determining a preset plane corresponding to the valid key point, projecting the valid key point onto the preset plane, and obtaining a projected key point of the valid key point on the preset plane.

[0094] For a specific description of the preset plane, please refer to the relevant description corresponding to the above embodiment, which will not be repeated here. By projecting the valid key points in the target area onto the preset plane, the projection key points of the valid key points on the preset plane can be obtained. Specifically, the basic principle of projection can be set as follows: the farther away from the preset plane, the greater the pixel gray value, and the darker the color of its projection key point.

[0095] Specifically, the above S342 may include: determining the pixel grayscale value corresponding to each pixel unit according to the distance between the effective key point and the preset plane.

[0096] Get the spatial coordinates of the valid key point in the coordinate system, determine the distance between the valid key point and the preset plane, and determine the pixel grayscale value of the corresponding projected key point when the valid key point is projected onto the preset plane based on the distance. The pixel grayscale value can be assigned from 0 to 255 based on the distance. The greater the distance, the greater the pixel grayscale value and the darker the color.

[0097] For example, a plane perpendicular to the Z axis is selected as the preset plane for projection, that is, the plane where the X and Y axes are located is selected as the preset plane. If the value of the effective key point is larger than the plane where the X and Y axes are located, the grayscale value of the pixel of the projected key point on the plane where the X and Y axes are located is larger, and the color representing the effective key point is darker.

[0098] S35, performing binarization processing on the projected key points to determine the feature values ​​of the point cloud.

[0099] Specifically, the above S35 may include the following steps:

[0100] S351, generating a feature matrix corresponding to the projection key point according to the pixel gray value.

[0101] The feature matrix is ​​a square matrix of pixel grayscale values. A feature square matrix can be generated according to the pixel grayscale values ​​of the projection key points, that is, the number of rows and columns of the feature matrix is ​​equal.

[0102] S352: Based on the feature matrix, a binary point cloud feature value is calculated.

[0103] The pixel grayscale values ​​in the feature matrix are represented in a table, and each pixel grayscale value is filled in the table according to the position of the feature matrix, so that the pixel grayscale value at the center position can be determined, and the pixel grayscale values ​​at other positions adjacent to the center position are compared with the pixel grayscale value at the center position. If the adjacent pixel grayscale value is greater than the pixel grayscale value at the center position, the pixel grayscale value at the adjacent position is set to 1, otherwise it is set to 0. In this way, a set of binary codes can be obtained, and the binary codes can be converted into decimal numbers to obtain the point cloud feature value corresponding to the projection key point. The specific calculation method refers to the relevant description corresponding to the above embodiment, which will not be repeated here.

[0104] The point cloud feature extraction method provided by the embodiment of the present invention determines the target area corresponding to the three-dimensional point cloud data according to the key points corresponding to the extracted three-dimensional point cloud data, projects the key points in the target area to a preset plane, determines the projection key points corresponding to the key points, binarizes the projection key points, and determines the point cloud feature values, thereby saving the calculation time of the point cloud feature values ​​and improving the calculation efficiency, while avoiding traversing each point of the three-dimensional point cloud data to calculate the feature values, thereby suppressing the noise influence that exists when traversing each point of the three-dimensional point cloud data to calculate the feature values, thereby improving the robustness.

[0105] In this embodiment, a feature extraction device for point cloud is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware or a combination of software and hardware is also possible and conceivable.

[0106] This embodiment provides a point cloud feature extraction device, such as Figure 4 As shown, including:

[0107] The acquisition module 41 is used to acquire three-dimensional point cloud data. For details, please refer to the relevant description corresponding to the above method embodiment, which will not be repeated here.

[0108] The extraction module 42 is used to extract key points corresponding to the three-dimensional point cloud data. For details, please refer to the relevant description corresponding to the above method embodiment, which will not be repeated here.

[0109] The determination module 43 is used to determine the target area corresponding to the three-dimensional point cloud data based on the key points. For details, please refer to the relevant description corresponding to the above method embodiment, which will not be repeated here.

[0110] The projection module 44 is used to project the key points in the target area onto a preset plane and determine the projected key points corresponding to the key points. For details, please refer to the relevant description corresponding to the above method embodiment, which will not be repeated here.

[0111] The processing module 45 is used to perform binarization processing on the projected key points to determine the feature values ​​of the point cloud. For details, please refer to the relevant description corresponding to the above method embodiment, which will not be repeated here.

[0112] The feature extraction device of point cloud provided by the present invention obtains three-dimensional point cloud data, extracts key points corresponding to the three-dimensional point cloud data, determines the target area corresponding to the three-dimensional point cloud data based on the key points, projects the key points in the target area to a preset plane, determines the projected key points corresponding to the key points, performs binarization processing on the projected key points, and determines the feature values ​​of the point cloud. The device avoids the problem of directly traversing the entire system to calculate the feature values ​​of the point cloud, which is very time-consuming, saves calculation time, and improves calculation efficiency. At the same time, by extracting key points, the noise influence existing when traversing the feature values ​​of each point of the three-dimensional point cloud data is suppressed, thereby improving robustness.

[0113] The point cloud feature extraction device in this embodiment is presented in the form of a functional module, where the module refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0114] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.

[0115] The embodiment of the present invention also provides an electronic device having the above Figure 4 The feature extraction device of the point cloud shown.

[0116] See also Figure 5 , Figure 5 is a schematic diagram of the structure of an electronic device provided by an optional embodiment of the present invention, such as Figure 5 As shown, the electronic device may include: at least one processor 501, such as a CPU (Central Processing Unit), at least one communication interface 503, a memory 504, and at least one communication bus 502. The communication bus 502 is used to realize the connection and communication between these components. The communication interface 503 may include a display screen (Display), a keyboard (Keyboard), and the optional communication interface 503 may also include a standard wired interface and a wireless interface. The memory 504 may be a high-speed RAM memory (Random Access Memory) or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 504 may optionally be at least one storage device located away from the aforementioned processor 501. The processor 501 may be combined with Figure 4 In the described device, the memory 504 stores an application program, and the processor 501 calls the program code stored in the memory 504 to execute any of the above method steps.

[0117] The communication bus 502 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The communication bus 502 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0118] Among them, the memory 504 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 504 may also include a combination of the above types of memory.

[0119] The processor 501 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP.

[0120] The processor 501 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0121] Optionally, the memory 504 is also used to store program instructions. The processor 501 can call the program instructions to implement the present application Figure 1-3 The feature extraction method of point cloud shown in the embodiment.

[0122] The embodiment of the present invention further provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the processing method of the feature extraction method of the point cloud in any of the above method embodiments. The storage medium may be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium may also include a combination of the above types of memories.

[0123] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.

Claims

1. A feature extraction method for point cloud, It is characterized in that The steps include: Obtain 3D point cloud data; Extracting key points corresponding to the three-dimensional point cloud data; Determine a target area corresponding to the three-dimensional point cloud data based on the key points; Projecting the key points in the target area onto a preset plane to determine the projected key points corresponding to the key points; Binarizing the projected key points to determine point cloud feature values; The determining, based on the key points, a target area corresponding to the three-dimensional point cloud data comprises: Obtaining the radius of a sphere with the key point as the origin; determining whether the radius of the sphere is less than a preset value; when the radius of the sphere is less than the preset value, taking the area contained in the sphere formed by the current radius of the sphere as the target area; The key points contained in the target area are valid key points; and projecting the key points in the target area onto a preset plane to determine the projected key points corresponding to the key points includes: Calculate the minimum bounding cube formed by the valid key points; Dividing the cube into a plurality of pixel units, and determining a pixel grayscale value corresponding to each pixel unit according to the distance between the effective key point and the preset plane; Determine a preset plane corresponding to a valid key point, project the valid key point onto the preset plane, and obtain a projected key point of the valid key point on the preset plane.

2. The method according to claim 1, It is characterized in that The extracting key points corresponding to the three-dimensional point cloud data includes: Key points are extracted from the three-dimensional point cloud data based on a target algorithm.

3. The method according to claim 2, It is characterized in that The extracting key points from the three-dimensional point cloud data based on the target algorithm includes: Traversing all points included in the three-dimensional point cloud data, obtaining the number of point clouds corresponding to all points, and determining the mutation point in the three-dimensional point cloud data according to the number of point clouds; Determining edge points of the three-dimensional point cloud data and main directions of changes of each point in the three-dimensional point cloud data according to the mutation points; Calculating the response value corresponding to the main direction of the change; Based on a non-maximum suppression method and the response value, key points of the three-dimensional point cloud data are determined.

4. The method according to claim 3, It is characterized in that The traversing all points included in the three-dimensional point cloud data, obtaining the number of point clouds corresponding to all points, and determining the mutation point in the three-dimensional point cloud data according to the number of point clouds, includes: Establishing a local coordinate system, setting a normal direction, and respectively calculating normal vectors of all points included in the three-dimensional point cloud data in the normal direction; constructing a covariance matrix according to the normal vector; Based on the covariance matrix, respectively calculating the number of point clouds corresponding to all points included in the three-dimensional point cloud data; According to the change in the number of point clouds, a mutation point in the three-dimensional point cloud data is determined.

5. The method according to claim 1, It is characterized in that The binarization of the projected key points to determine the point cloud feature values ​​includes: Generate a feature matrix corresponding to the projection key point according to the pixel gray value; Based on the feature matrix, binary point cloud feature values ​​are calculated.

6. A point cloud feature extraction device, It is characterized in that include: An acquisition module, used to acquire three-dimensional point cloud data; An extraction module, used to extract key points corresponding to the three-dimensional point cloud data; A determination module, used to determine a target area corresponding to the three-dimensional point cloud data based on the key points; A projection module, used to project the key points in the target area onto a preset plane and determine the projected key points corresponding to the key points; A processing module, used for performing binarization processing on the projection key points to determine the point cloud feature values; The determining module is further used for: Obtaining the radius of a sphere with the key point as the origin; determining whether the radius of the sphere is less than a preset value; when the radius of the sphere is less than the preset value, taking the area contained in the sphere formed by the current radius of the sphere as the target area; The key points contained in the target area are valid key points; the projection module is further used to: Calculate the minimum bounding cube formed by the valid key points; Dividing the cube into a plurality of pixel units, and determining a pixel grayscale value corresponding to each pixel unit according to the distance between the effective key point and the preset plane; Determine a preset plane corresponding to a valid key point, project the valid key point onto the preset plane, and obtain a projected key point of the valid key point on the preset plane.

7. An electronic device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the point cloud feature extraction method according to any one of claims 1 to 5 by executing the computer instructions.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the point cloud feature extraction method according to any one of claims 1 to 5.