Point cloud division method, device, equipment, and storage medium

The point cloud segmentation method uses a pre-trained neural network to determine target lattices for direct classification, addressing efficiency and accuracy issues by reducing error accumulation and computational loss.

JP7567049B2Active Publication Date: 2024-10-15DOUYIN VISION CO LTD

Patent Information

Application Number
JP2023521505
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-10-16
Filing Date
2021-09-27
Publication Date
2024-10-15
Estimated Expiration
2041-09-27

AI Technical Summary

Technical Problem

Existing point cloud segmentation methods suffer from low efficiency and accuracy due to the need to remove redundant bounding boxes and reliance on inaccurate bounding box predictions.

Method used

A point cloud segmentation method using a pre-trained neural network that determines the corresponding target lattice for each point in a gridded scene space, allowing direct classification into instance types without error accumulation and reducing computational loss.

Benefits of technology

Improves segmentation accuracy and efficiency by avoiding redundant bounding box removal and enhancing point-wise classification, resulting in clearer instance type classification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007567049000016
    Figure 0007567049000016
  • Figure 0007567049000017
    Figure 0007567049000017
  • Figure 0007567049000018
    Figure 0007567049000018
Patent Text Reader

Abstract

A point cloud segmentation method, device, equipment, and storage medium includes: acquiring a point cloud to be processed (S201); obtaining a corresponding target grid in a gridded scene space for each point in the point cloud using a pre-trained neural network trained with a sample point cloud and a corresponding sample target grid in a sample gridded scene space of the sample point cloud (S202); and outputting a point cloud corresponding to each instance according to the instance type corresponding to the target grid, such that the instance types of the same target grid are the same (S203).
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to a Chinese patent application bearing application number 202011112395.6, filed with the China Patent Office on October 16, 2020, the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the field of computer technology, for example, to a point cloud division method, an apparatus, a device, and a storage medium. [Background technology]

[0003] With the development of computer technology, the number of digital images is increasing day by day, and whether digital images can be accurately recognized is very important for technical fields such as automatic driving and robot control. Digital images can be represented using point cloud data, so point cloud segmentation processing has also become an important branch in digital image processing technology.

[0004] When performing segmentation on a point cloud, such as instance segmentation, a "top-down" segmentation method can usually be adopted. In the "top-down" method, multiple 3D bounding boxes are predicted to represent different instances, and then points in each bounding box that belong to the corresponding instance are found through binary classification. However, this method requires removing a large number of redundant bounding boxes, which reduces the efficiency of point cloud segmentation, and at the same time, the classification effect of the point cloud also depends on the accuracy of the bounding box prediction in the previous stage. Summary of the Invention [Problem to be solved by the invention]

[0005] The present application provides a point cloud division method, an apparatus, a device, and a storage medium to solve the problems of low point cloud division efficiency and low point cloud division accuracy. [Means for solving the problem]

[0006] Obtaining a pending point cloud; obtaining a corresponding target grid in a lattified scene space for each point of the point cloud by a pre-trained neural network trained with the sample point cloud and the corresponding sample target grid in the sample lattified scene space of the sample point cloud; and outputting a point cloud corresponding to each example according to the example type corresponding to the target grid, such that the example types of the same target grid are the same. A method for segmenting a point cloud is provided.

[0007] a first acquisition module configured to acquire a point cloud to be processed; a prediction module configured to obtain, for each point of the point cloud, a corresponding target grid in the lattified scene space to which it belongs, by a pre-trained neural network trained with the sample point cloud and a corresponding sample target grid in the sample lattified scene space of the sample point cloud; and an output module configured to output a point cloud corresponding to each example according to the example type corresponding to the target grid, such that the example types of the same target grid are the same. A point cloud segmentation device is also provided.

[0008] An electronic device including a memory in which a computer program is stored and a processor, the electronic device realizing the point cloud division method according to an embodiment of the present application when the processor executes the computer program. An electronic device is also provided.

[0009] A computer-readable storage medium having a computer program stored therein, the computer program being executed by a processor to realize the point cloud division method according to an embodiment of the present application. A computer readable storage medium is also provided. [Brief description of the drawings]

[0010] [Figure 1] FIG. 2 is a diagram illustrating an application environment of a point cloud division method according to an embodiment of the present application. [Diagram 2] 1 is a flowchart of a point cloud division method according to an embodiment of the present application. [Diagram 3] 11 is a flowchart of a point cloud division method according to another aspect of an embodiment of the present application. [Figure 4] FIG. 2 is a schematic diagram illustrating the principle of a point cloud division process according to an embodiment of the present application. [Diagram 5] FIG. 13 is a principle schematic diagram of a point cloud division process according to another aspect of the present application; [Figure 6] FIG. 1 is a comparative schematic diagram of feature space distance distribution according to an embodiment of the present application. [Figure 7] 1 is a structural schematic diagram of a point cloud division device according to an embodiment of the present application. [Figure 8] 1 is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, the embodiments of the present disclosure will be described with reference to the drawings. Although the drawings show some embodiments of the present disclosure, the present disclosure can be realized in various forms, and should not be construed as being limited to the embodiments described herein, but these embodiments are provided for understanding the present disclosure. The drawings and embodiments of the present disclosure are merely for illustrative purposes, and are not intended to limit the scope of protection of the present disclosure.

[0012] Steps described in method embodiments of the present disclosure may be performed in different orders and / or in parallel. Method embodiments may also include additional steps and / or steps shown omitted from execution. The scope of the present disclosure is not limited in this respect.

[0013] As used herein, the term "comprising" and variations thereof are open inclusive, i.e., "including, but not limited to." The term "based on" means "based at least in part on." The term "in one embodiment" means "at least one embodiment." The term "another embodiment" means "at least one other embodiment." The term "some embodiments" means "at least some embodiments." Relevant definitions of other terms are provided below in the description.

[0014] The concepts of "first", "second", etc. referred to in this disclosure are merely intended to distinguish different devices, modules or units, and are not intended to limit the order or interdependence of functions performed by these devices, modules or units.

[0015] The modifications "a" and "a plurality" referred to in this disclosure are exemplary but not limiting and should be understood as "one or more" unless the context clearly indicates otherwise.

[0016] The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0017] FIG. 1 is an application environment diagram of a point cloud division method according to an embodiment of the present application. Referring to FIG. 1, the point cloud division method is applied to a point cloud division system. The point cloud division system may include a terminal 101 and a server 102. The terminal 101 and the server 102 are connected by a wireless network or a wired network. The terminal 101 may be a desktop terminal or a mobile terminal, and preferably, the mobile terminal may be at least one of a personal digital assistant (PDA), a tablet computer (PAD), a portable multimedia player (PMP), an in-vehicle terminal (such as an in-vehicle navigation terminal), and a mobile phone, etc. The server 102 may be an independent server or a server cluster consisting of multiple servers.

[0018] The point cloud division method in the embodiments of the present application may be executed independently by the terminal 101 or the server 102, or may be executed jointly by the terminal 101 and the server 102. The following method embodiments will be described taking as an example a case where the execution subject is an electronic device (the electronic device is the terminal 101 and / or the server 102).

[0019] The following provides a brief introduction to some concepts related to embodiments of the present application.

[0020] A concrete object of an instance type can be considered as one instance, and an instance type refers to the type of concrete object, e.g., Object 1, Object 2, Object 3, etc. Instance division can be dividing a point cloud into one or more point groups that do not overlap each other and belong to one concrete object, and one point group corresponds to one instance, e.g., distinguishing which points belong to one concrete object and which points belong to another concrete object in a two-dimensional image or a three-dimensional scene.

[0021] 2 is a flow chart of a point cloud division method according to an embodiment of the present application. This embodiment relates to a process of how an electronic device realizes point cloud division in the manner of single-stage point-by-point classification. As shown in FIG. 2, the method can include the following steps:

[0022] In S201, a point cloud waiting to be processed is obtained.

[0023] The pending point cloud refers to the point cloud that needs to be subjected to instance segmentation. In the embodiment of the present application, the point cloud can include a 2D point cloud or a 3D point cloud, etc., where the 2D point cloud can be a set of a plurality of pixel points in a 2D image, and the 3D point cloud can be a set of a plurality of 3D points in a 3D scene.

[0024] The point cloud segmentation method according to the embodiment of the present application is expected to be widely applied, and has great potential in fields such as autonomous driving, robot control, and augmented reality. The electronic device can obtain the point clouds to be processed from the front-end scanning device in multiple application fields. The front-end scanning device can also upload the scanned point cloud to the cloud, and the electronic device downloads the point clouds that need to perform instance segmentation from the cloud.

[0025] At S202, a pre-trained neural network is used to obtain a corresponding target grid in the gridded scene space for each point in the point cloud.

[0026] The pre-trained neural network is trained with a sample cloud of points and a corresponding sample target grid in a sample gridded scene space of the sample cloud.

[0027] In practical applications, it is considered that objects in the scene space do not overlap each other, and different object instances occupy different positions in the scene space. Therefore, the scene space to which the point cloud belongs can be pre-latticed, and different lattices can be defined as corresponding to different instance types. For example, the scene space to which the point cloud belongs can be pre-divided into multiple lattices (e.g., Ns *N s *N s Each grid occupies a specific location and represents an instance type. If the center point of an object instance (whose coordinates are the average of the coordinates of all points in the object instance) is located inside a grid, then all points belonging to the object instance are classified into the grid, i.e., into the instance type corresponding to the grid.

[0028] Based on this, the point-by-point classification process of the point cloud can be realized by the pre-trained neural network. Therefore, it is necessary to adopt a large amount of training data to train the pre-trained neural network. In the training process of the pre-trained neural network, it can be trained by a large amount of sample point clouds and the corresponding sample target grids in the sample gridded scene space of the sample point cloud. While gridding the sample scene space to obtain the sample gridded scene space, an example type corresponding to each grid in the sample gridded scene space can be defined, and different grids will correspond to different example types. While obtaining the sample point cloud, the corresponding sample target grid in the gridded scene space of each point of the sample point cloud is marked to obtain training data (i.e., the sample point cloud and the corresponding sample target grid in the sample gridded scene space of the sample point cloud) of the pre-trained neural network. The training data is used to train the pre-trained neural network.

[0029] In this way, after obtaining a pre-trained neural network for the lattice scene space, the electronics can input the pending point cloud to the pre-trained neural network, and the pre-trained neural network can predict the corresponding target grid in the lattice scene space for each point in the point cloud.

[0030] In order to facilitate the processing of the point cloud by the pre-trained neural network, preferably, after obtaining the point cloud to be processed, the electronic device may further combine the coordinate features and channel features of each point in the point cloud to obtain initial features for each point, and extract local features for each point from the initial features for each point by a feature extraction network.

[0031] The coordinate feature of a point may be a coordinate position of the point. The channel feature of a point may be a channel value of the point, such as a color channel value (Red Green Blue (RGB) value). Combining the coordinate feature and the channel feature may be concatenating each coordinate position with each channel value to obtain an initial feature of each point. Here, the initial feature may be in a matrix form, i.e., an initial feature matrix. The electronics input the initial feature matrix to a feature extraction network to extract local features of each point. Here, the local features may be a high-dimensional representation of the characteristics of the point cloud, and the local features cover the information of the entire point cloud. The local features may also be in a matrix form, i.e., a local feature matrix. The electronics input the local feature matrix to a pre-trained neural network, project the local feature matrix into a feature space used for instance classification, and output the corresponding target grid in the gridded scene space to which each point belongs.

[0032] In a preferred embodiment, the electronic device can select a deep learning network as the feature extraction network, which can be the first half of a PointNet network, the first half of a PointNet++ network, the first half of a PointConv network, or other network structures, etc.

[0033] In S203, a point cloud corresponding to each example is output according to the example type corresponding to the target grid, so that the example types of the same target grid are the same.

[0034] Since the example types corresponding to the grids in the lattice scene space to which the point cloud belongs are predefined, and the example types corresponding to different grids are different, after obtaining the corresponding target grid in the lattice scene space to which each point in the point cloud belongs, the electronic device can divide each point in the point cloud into corresponding object instances based on the example type corresponding to the target grid, and output a point cloud corresponding to each object instance.

[0035] In the point cloud division method according to the embodiment of the present application, after obtaining the point cloud to be processed, the electronic device uses a pre-trained neural network to obtain the corresponding target grid in the grid scene space of each point in the point cloud, and then outputs the point cloud corresponding to each example according to the example type corresponding to the target grid. In the point cloud division process, the electronic device uses the pre-trained neural network to directly predict the corresponding target grid in the grid scene space of each point in the point cloud, and the example types of the same target grid are the same, that is, the single-stage point-based classification method is used to directly classify each point in the point cloud into a clear and specific example type, so that the error accumulation caused by multiple stages is avoided and the accuracy of the division result is improved. At the same time, the loss of calculation amount caused by removing a large amount of redundant bounding boxes in the first stage is also avoided, and the efficiency of point cloud division is improved.

[0036] In practical application, the same target point in the predicted point cloud may correspond to multiple target grids. In this case, the target point needs to be clearly classified into the corresponding target grids. Therefore, processing can be performed with reference to the process described in the following embodiment. Preferably, based on the above embodiment, as shown in FIG. 3, when the same target point corresponds to multiple target grids, before the above S203, the method can further include:

[0037] In S301, a reliability of each target grid among the plurality of target grids is obtained.

[0038] After the scene space to which the point cloud belongs is gridded, many of the grids in the gridded scene space do not correspond to real object instances, and only a few of the grids correspond to real object instances. Therefore, a reliability can be calculated for each grid, and the higher the reliability of a grid, the higher the probability that the grid corresponds to a real object instance, and conversely, the lower the probability that the grid corresponds to a real object instance.

[0039] In this way, when the pre-trained neural network obtains that the same target point corresponds to multiple target grids, the electronic device can obtain the confidence level of each target grid respectively. In a preferred embodiment, the electronic device can obtain the confidence level of each target grid among the multiple target grids through the following process, and the above S301 can include:

[0040] In S3011, for each target grid, select a number of relevant points from the point cloud that are closest to a center point of the target grid.

[0041] Since the characteristics of the multiple associated points closest to the center point of the target grid can characterize the properties of the target grid, the electronic device can select multiple associated points closest to the center point of the target grid to calculate the reliability of the corresponding target grid. In practical application, the number of associated points selected can be set according to practical needs. Preferably, 32 points closest to the center point can be selected to participate in the reliability calculation process.

[0042] In S3012, features of the multiple associated points are aggregated to obtain an aggregate feature for each of the target grids.

[0043] Aggregating the features of multiple associated points may involve performing an average pooling process on the features of multiple associated points, i.e. adding up the feature data of the multiple associated points and then averaging them to obtain an aggregated feature of the corresponding target grid.

[0044] In S3013, an activation process is performed on the aggregate features to obtain a confidence score for each target grid.

[0045] After the aggregate features of each target grid are obtained, the electronic device can adopt a sigmoid activation function to perform activation processing on the aggregate features to obtain the confidence level of each target grid.

[0046] In another preferred embodiment, the electronic device can add a branch to the pre-trained neural network to predict the confidence of each grid in the grid scene space to which the point cloud belongs.If the pre-trained neural network obtains that the same target point corresponds to multiple target grids, the electronic device can directly obtain the confidence of each target grid among the multiple target grids from the pre-trained neural network.To achieve this goal, when training the pre-trained neural network, the training data should further include the actual confidence of each grid obtained by the sample point cloud, and train the pre-trained neural network in conjunction with the actual confidence of each grid.

[0047] In S302, a final target grid corresponding to the target point is determined according to the reliability.

[0048] The electronic device can select the target grid with the highest reliability as the final target grid corresponding to the target point, and when there are multiple target grids with similar reliability, select one of the target grids as the final target grid corresponding to the target point.

[0049] In this embodiment, when the same target point in the point cloud corresponds to multiple target grids, the electronic device can determine the final target grid corresponding to the target point based on the reliability of each target grid. Furthermore, when determining the reliability of each target grid, the calculation result of the reliability of each target grid is improved by combining the features of multiple related points that are closest to the center point of the target grid. Based on the accurate reliability calculation result, the target point can be accurately classified into the corresponding target grid in the subsequent process, and the target point can be accurately classified into the corresponding instance type, thereby improving the accuracy of the point cloud segmentation result.

[0050] In one embodiment, to realize the point-by-point classification process of the point cloud by a pre-trained neural network, preferably, there is a one-to-one correspondence between the output channels of the pre-trained neural network and the grids in the gridded scene space.

[0051] The output channels of the pre-trained neural network can be one-to-one associated with the grids included in the grid scene space in advance, and when the output value of one output channel of the pre-trained neural network is 1, it represents that the point belongs to the grid corresponding to the output channel, and conversely, the output value of the output channel is 0.Preferably, the pre-trained neural network can be realized by a two-layer detector, that is, the pre-trained neural network includes a two-layer detector.Accordingly, the above S202 may be to obtain the corresponding target grid in the grid scene space to which each point of the point cloud belongs by the two-layer detector in the pre-trained neural network.

[0052] Referring to FIG. 4, the point group P is N p The scene space to which the point cloud belongs is defined as N s *N s *N s The point cloud is divided into N lattices, each of which corresponds to a different example type, and in this embodiment, it is assumed that the lattices correspond one-to-one to the output channels of the pre-trained neural network. The electronic device combines the coordinate feature and the channel feature of each point in the point cloud to obtain the initial feature N of the corresponding point. p ', and the initial features N p ' to extract local features of the corresponding points and create a local feature matrix

number

number

number

number

[0053] Usually, in a scene space, only a few lattices correspond to realistic object instances, and the feature vectors in the output space of the pre-trained neural network (the feature vectors are

number

[0054] The above S202 may include:

[0055] At S2021, a pre-trained neural network obtains the projection positions of each point in the point cloud in the x-axis, y-axis, and z-axis directions.

[0056] Preferably, the electronics can obtain the projection positions of each point in the point cloud in the x-axis, y-axis and z-axis directions, respectively, using a three-layer detector corresponding to the x-axis, y-axis and z-axis output channels in the pre-trained neural network.

[0057] In S2022, a corresponding target grid in the gridded scene space to which each point belongs is determined according to the projected position in the x-axis, y-axis, and z-axis directions.

[0058] The electronics determines the corresponding target grid in the latticed scene space to which each point belongs by predicting the orthogonal projections of each point in the point cloud in three directions, the x-axis, the y-axis, and the z-axis. For a point in the point cloud, the predicted orthogonal projections in the three directions, the x-axis, the y-axis, and the z-axis, are each a x , a y , a z Then, based on the projection position of the point in the x-axis, y-axis, and z-axis directions, the corresponding target grid in the gridded scene space to which the point belongs is (a x ,a y ,a z ) can be determined.

[0059] Referring to FIG. 5, the point group P is N p The scene space to which the point group belongs is predefined as N s *N s *N sIt is assumed that the pre-trained neural network is divided into grids, each grid corresponding to a different example type, and the output channel of the pre-trained neural network in the x-axis direction corresponds to the projection of the grid in the x-axis direction, the output channel of the pre-trained neural network in the y-axis direction corresponds to the projection of the grid in the y-axis direction, and the output channel of the pre-trained neural network in the z-axis direction corresponds to the projection of the grid in the z-axis direction. The electronic device combines the coordinate feature and the channel feature of each point in the point cloud to generate an initial feature N of the corresponding point. p ', and the initial features N p ' to extract local features of the corresponding points and create a local feature matrix

number

number

number

number

[0060] In this network architecture, the dimension of the output space of the pre-trained neural network is

number

number

[0061] In this embodiment, the electronic device can use pre-trained neural networks with different network architectures to predict the corresponding target grid in the grid scene space to which each point in the point cloud belongs, and improve the diversification of point cloud division methods. At the same time, the pre-trained neural network includes output channels in the x-axis, y-axis and z-axis directions, and can use pre-trained neural networks with output channels in three directions to predict the target grid corresponding to each point, thereby reducing the amount of calculation in the point-by-point classification process and reducing memory consumption.

[0062] An embodiment further provides a process of obtaining the pre-trained neural network. Based on the above embodiment, the process of obtaining the pre-trained neural network may preferably be: the sample point cloud is a first input of the pre-trained neural network, the corresponding sample target grid of the sample point cloud in the sample gridded scene space is a first desired output corresponding to the first input, and the actual reliability of each grid in the sample gridded scene space is a second desired output corresponding to the first input, and a cross-entropy loss function is adopted to train the pre-trained neural network.

[0063] The sample scene space is gridded to obtain a sample gridded scene space, and at the same time, an example type corresponding to each grid in the sample gridded scene space can be defined, and different grids correspond to different example types. While obtaining the sample point cloud, the corresponding sample target grid in the gridded scene space of each point of the sample point cloud is marked to obtain a sample target grid corresponding to the sample point cloud. At the same time, the actual reliability of each grid can be calculated based on the position information of the sample point cloud and each grid. The sample point cloud, the sample target grid corresponding to the sample point cloud, and the actual reliability of each grid are used as training data to train a pre-trained neural network. The process of calculating the actual reliability of each grid may be to select, for each grid, a plurality of sample related points closest to the center point of the grid from the sample point cloud, aggregate the features of the plurality of sample related points to obtain an aggregated feature of each grid, and perform an activation process on the aggregated features respectively to obtain the actual reliability of the corresponding grid. Preferably, 32 points closest to the center point can be selected to participate in the reliability calculation process.

[0064] After obtaining the training data, the electronic device takes the sample point cloud as a first input of the pre-trained neural network, takes corresponding sample target grids of the sample point cloud as a first desired output corresponding to the first input, calculates a first loss value of a cross-entropy loss function, takes the actual confidence of each grid as a second desired output corresponding to the first input, calculates a second loss value of the cross-entropy loss function, and adjusts parameters of the pre-trained neural network based on a weighted sum of the first loss value and the second loss value until a convergence condition of the loss function is reached, to obtain a trained pre-trained neural network.

[0065] The first loss value L cate The calculation formula is:

number

number

number

number

[0066] In this embodiment, the electronic device can take a large amount of sample point clouds, the corresponding sample target grids in the sample lattice scene space of the sample point clouds, and the actual reliability of each grid as training data, and adopt the cross entropy loss function to train the pre-trained neural network, so that the trained pre-trained neural network is more accurate. Based on the accurate pre-trained neural network, the corresponding target grid in the lattice scene space of each point in the point cloud to be processed can be directly predicted, which improves the accuracy of the prediction result and improves the accuracy of the point cloud segmentation result.

[0067] The technical solutions according to the embodiments of the present application can be widely applied in the fields of autonomous driving, robot control, augmented reality, video instance segmentation, etc. For example, in the case of indoor robot control, if the scanned point cloud can be segmented, the robot can accurately detect each object, which will be an aid to the navigation and control of the robot.

[0068] In order to verify the technical solution according to the embodiment of the present application, the technical solution according to the embodiment of the present application is compared with a point cloud division method (e.g., ASIS).Referring to Fig. 6, as can be seen from Fig. 6, the point cloud division method according to the embodiment of the present application can reduce the overlapping range of the feature distance between the same example and the feature distance between different examples, and can increase the discrimination between different examples.

[0069] 7 is a structural schematic diagram of a point cloud division device according to an embodiment of the present application. As shown in FIG. 7, the device may include a first acquisition module 701, a prediction module 702 and an output module 703.

[0070] The first acquisition module 701 is configured to acquire a point cloud to be processed; The prediction module 702 is configured to obtain, for each point of the point cloud, a corresponding target grid in the lattified scene space to which it belongs, by a pre-trained neural network trained with the sample point cloud and a corresponding sample target grid in the sample lattified scene space of the sample point cloud; The output module 703 is configured to output the point clouds corresponding to each example according to the example type corresponding to the target grid, such that the example types of the same target grid are the same.

[0071] In the point cloud division device according to the embodiment of the present application, after obtaining a point cloud to be processed, the electronic device uses a pre-trained neural network to obtain the corresponding target grid in the gridded scene space of each point in the point cloud, and then outputs the point cloud corresponding to each example according to the example type corresponding to the target grid. In the point cloud division process, the electronic device uses a pre-trained neural network to directly predict the corresponding target grid in the gridded scene space of each point in the point cloud, and the example types of the same target grid are the same, that is, the single-stage point-based classification method is used to directly classify each point in the point cloud into a clear and specific example type, so that the error accumulation caused by multiple stages is avoided and the accuracy of the division result is improved. At the same time, the loss of calculation amount caused by removing a large amount of redundant bounding boxes in the first stage is also avoided, and the efficiency of point cloud division is improved.

[0072] Based on the above embodiment, preferably, when the same target point corresponds to multiple target grids, the apparatus can further include a second acquisition module and a determination module.

[0073] The second acquisition module is configured to acquire a confidence level of each target grid among the plurality of target grids before the output module 703 outputs the point cloud corresponding to each example according to the example type corresponding to the target grid; A determination module is configured to determine a final target grid corresponding to the target point as a function of the confidence level.

[0074] Based on the above embodiment, preferably, the second acquisition module is configured to: for each target grid, select a plurality of associated points from the point cloud that are closest to a center point of the target grid, aggregate features of the plurality of associated points to obtain an aggregate feature of each target grid, and perform an activation process on the aggregate feature to obtain a confidence level of each target grid.

[0075] Preferably, there is a one-to-one correspondence between the output channels of the pre-trained neural network and the lattices in the lattice scene space.

[0076] Based on the above embodiment, preferably, the pre-trained neural network includes output channels in the x-axis, y-axis and z-axis directions; The prediction module 702 is configured to obtain a projection position of each point in the point cloud in the x-axis, y-axis and z-axis directions using a pre-trained neural network, and determine a corresponding target grid in the gridded scene space to which each point belongs according to its projection position in the x-axis, y-axis and z-axis directions.

[0077] Based on the above embodiment, preferably, the apparatus further comprises a network training module. A network training module is configured to take the sample point cloud as a first input of the pre-trained neural network, take corresponding sample target grids of the sample point cloud in a sample lattice scene space as a first desired output corresponding to the first input, and take an actual confidence of each grid in the sample lattice scene space as a second desired output corresponding to the first input, and employ a cross-entropy loss function to train the pre-trained neural network.

[0078] Based on the above embodiment, preferably, the apparatus can further include a combination module and a feature extraction module. The combination module is configured to, after the first acquisition module 701 acquires the point cloud to be processed, combine the coordinate features and the channel features of each point in the point cloud to obtain initial features of each point; The feature extraction module is configured to extract local features for each point from said initial features for each point by means of a feature extraction network.

[0079] Hereinafter, reference will be made to Fig. 8, which shows a structural schematic diagram of an electronic device (such as the terminal or server in Fig. 1) 800 suitable for implementing the embodiments of the present disclosure. The electronic device shown in Fig. 8 is merely an example, and does not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

[0080] 8, the electronic device 800 may include a processing unit (e.g., a central processor, a graphic processor, etc.) 801 capable of performing various suitable operations and processes based on programs stored in a read-only memory (ROM) 802 or loaded from a storage device 808 into a random access memory (RAM) 803. The RAM 803 further stores various programs and data necessary for the operation of the electronic device 800. The processing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0081] Typically, the input device may include, for example, a touch panel, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc. 806 Output devices 807 including, for example, a Liquid Crystal Display (LCD), speaker, vibrator, etc., storage devices 808 including, for example, a magnetic tape, hard disk, etc., and communication devices 809 may be connected to the I / O interface 805. The communication devices 809 enable the electronic device 800 to communicate wirelessly or via wires to exchange data with other devices. Although FIG. 8 illustrates the electronic device 800 with various devices, it is not necessary that it implement or include all of the illustrated devices. Instead, it may implement or include more or fewer devices.

[0082] According to an embodiment of the present disclosure, the process described with reference to the flowchart above may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program including program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded from a network via the communication device 809 and installed, or may be installed from the storage device 808, or may be installed from the ROM 802. When the computer program is executed by the processing device 801, it performs the above-mentioned functions defined in the method of the embodiment of the present disclosure.

[0083] The computer readable medium described in this disclosure may be a computer readable signal medium, a computer readable storage medium, or any combination of the above. The storage medium may be a non-transitory storage medium. The computer readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. The computer readable storage medium may include, but is not limited to, an electrical connection having one or more leads, a portable computer disk, a hard disk, a RAM, a ROM, an Erasable Programmable Read-Only Memory (EPROM), a flash memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this disclosure, the computer readable storage medium may be any tangible medium that contains or stores a program that can be used in or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, in which computer-readable program code is carried. Such a propagated data signal may take various forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may be any computer-readable medium other than a computer-readable storage medium, which may transmit, propagate, or transmit a program for use in or in conjunction with an instruction execution system, apparatus, or device.The program code contained in the computer readable medium may be transmitted over any suitable medium, including, but not limited to, electrical wire, optical cable, radio frequency (RF), or the like, or any suitable combination of the above.

[0084] In some embodiments, the clients and servers may communicate using any now known or later developed network protocol, such as HyperText Transfer Protocol (HTTP), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include a Local Area Network (LAN), a Wide Area Network (WAN), a network off a network (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), and any now known or later developed network.

[0085] The computer-readable medium may be included in the electronic device, or may exist separately and not be attached to the electronic device.

[0086] When the computer-readable medium carries one or more programs and the one or more programs are executed by the electronic device, the electronic device obtains a point cloud to be processed, obtains a corresponding target grid in the lattice scene space to which each point in the point cloud belongs by a pre-trained neural network trained with a sample point cloud and a corresponding sample target grid in the sample lattice scene space of the sample point cloud, and outputs a point cloud corresponding to each example according to the example type corresponding to the target grid, such that the example types of the same target grid are the same.

[0087] Computer program code for carrying out the operations of the present disclosure can be written in one or more programming languages ​​or combinations thereof, which may include, but are not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and also include conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a single, separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a LAN or WAN, or may be connected to an external computer (e.g., connected via the Internet using an Internet Service Provider).

[0088] The flowcharts and block diagrams in the drawings illustrate possible architectures, functions, and operations of systems, methods, and computer program products according to several embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, program, or part of code, which includes one or more executable instructions for implementing a certain logical function. It should be noted that in some alternative implementations, the functions described in the blocks may occur in a different order than the order described in the drawings. For example, two blocks shown as connected may actually be executed substantially in parallel or in reverse order depending on the functions involved. It should be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts may be implemented in a system based on dedicated hardware that executes a certain function or operation, or may be implemented in a combination of dedicated hardware and computer instructions.

[0089] The units according to the embodiments of the present disclosure may be implemented in a software manner or a hardware manner, where the names of the units do not limit the units themselves, for example, the first acquiring unit may be described as "a unit for acquiring at least two Internet Protocol addresses".

[0090] The functionality of the present invention may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Parts (ASSPs), System on Chip (SOCs), Complex Programmable Logic Devices (CPLDs), etc.

[0091] In the specification of this disclosure, a machine-readable medium may be a tangible medium that can contain or store a program for use in or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the above. Examples of machine-readable storage media include an electrical connection by one or more wires, a portable computer disk, a hard disk, a RAM, a ROM, an EPROM, a flash memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0092] In one embodiment, an electronic device includes a memory in which a computer program is stored and a processor, and when the processor executes the computer program, obtaining a pending point cloud; obtaining a corresponding target grid in the lattified scene space for each point of the point cloud by a pre-trained neural network trained with the sample point cloud and the corresponding sample target grid in the sample lattified scene space of the sample point cloud; and outputting a point cloud corresponding to each example according to the example type corresponding to the target grid, such that the example types of the same target grid are the same. Provide electronic equipment.

[0093] In the point cloud division device according to the embodiment of the present application, after obtaining a point cloud to be processed, the electronic device uses a pre-trained neural network to obtain the corresponding target grid in the gridded scene space of each point in the point cloud, and then outputs the point cloud corresponding to each example according to the example type corresponding to the target grid. In the point cloud division process, the electronic device uses a pre-trained neural network to directly predict the corresponding target grid in the gridded scene space of each point in the point cloud, and the example types of the same target grid are the same, that is, the single-stage point-based classification method is used to directly classify each point in the point cloud into a clear and specific example type, so that the error accumulation caused by multiple stages is avoided and the accuracy of the division result is improved. At the same time, the loss of calculation amount caused by removing a large amount of redundant bounding boxes in the first stage is also avoided, and the efficiency of point cloud division is improved.

[0094] In one embodiment, when the same target point corresponds to multiple target grids, when the processor executes the computer program, the processor further realizes a step of obtaining a reliability of each target grid among the multiple target grids, and determining a final target grid corresponding to the target point according to the reliability.

[0095] In one embodiment, when the processor executes the computer program, the steps of: for each target grid, selecting a number of associated points from the point cloud that are closest to a center point of the target grid; aggregating features of the number of associated points to obtain an aggregated feature for each target grid; and performing an activation process on the aggregated features to obtain a confidence score for each target grid.

[0096] Preferably, there is a one-to-one correspondence between the output channels of the pre-trained neural network and the lattices in the lattice scene space.

[0097] In one embodiment, the pre-trained neural network includes a two-layer detector, and when the processor executes the computer program, the two-layer detector in the pre-trained neural network further realizes a step of obtaining a corresponding target grid in the gridded scene space for each point in the point cloud.

[0098] In one embodiment, the pre-trained neural network includes output channels in x-axis, y-axis and z-axis directions, and when the processor executes the computer program, the pre-trained neural network further realizes the steps of obtaining a projection position of each point in the point cloud in the x-axis, y-axis and z-axis directions, and determining a corresponding target grid in the gridded scene space to which the corresponding point belongs according to the projection position in the x-axis, y-axis and z-axis directions.

[0099] In one embodiment, the pre-trained neural network includes a three-layer detector corresponding to output channels of the x-axis, y-axis and z-axis, and when the processor executes the computer program, the three-layer detector in the pre-trained neural network further realizes a step of obtaining a projection position of each point in the point cloud in the x-axis, y-axis and z-axis directions, respectively.

[0100] In one embodiment, when a processor executes the computer program, the computer program further realizes the steps of: taking the sample point cloud as a first input of the pre-trained neural network; a corresponding sample target grid of the sample point cloud in a sample lattice scene space as a first desired output corresponding to the first input; and taking an actual confidence of each grid in the sample lattice scene space as a second desired output corresponding to the first input; and adopting a cross-entropy loss function to train the pre-trained neural network.

[0101] In one embodiment, when the processor executes the computer program, the step of combining the coordinate features and the channel features of each point in the point cloud to obtain initial features of the corresponding point, and extracting local features of the corresponding point from the initial features of each point by a feature extraction network is further implemented.

[0102] The point cloud division device, the device, and the storage medium according to the above embodiments can execute the point cloud division method according to any embodiment of the present application, and have functional modules and effects for executing the method. For technical details not described in detail in the above embodiments, please refer to the point cloud division method according to any embodiment of the present application.

[0103] According to one or more embodiments of the present disclosure, Obtaining a pending point cloud; obtaining a corresponding target grid in a lattified scene space for each point of the point cloud by a pre-trained neural network trained with the sample point cloud and the corresponding sample target grid in the sample lattified scene space of the sample point cloud; and outputting a point cloud corresponding to each example according to the example type corresponding to the target grid, such that the example types of the same target grid are the same. A method for segmenting a point cloud is provided.

[0104] When the same target point corresponds to multiple target grids, the point cloud division method according to one or more embodiments of the present disclosure further includes: obtaining a reliability of each target grid among the multiple target grids; and determining a final target grid corresponding to the target point according to the reliability.

[0105] The point cloud division method according to one or more embodiments of the present disclosure further includes: for each target grid, selecting a number of associated points from the point cloud that are closest to a center point of the target grid; aggregating features of the number of associated points to obtain an aggregated feature of each target grid; and performing an activation process on the aggregated features to obtain a confidence level of each target grid.

[0106] Preferably, there is a one-to-one correspondence between the output channels of the pre-trained neural network and the lattices in the lattice scene space.

[0107] Preferably, the pre-trained neural network includes a two-layer detector, and the point cloud segmentation method according to one or more embodiments of the present disclosure further includes obtaining a corresponding target grid in the gridded scene space to which each point in the point cloud belongs by the two-layer detector in the pre-trained neural network.

[0108] Preferably, the pre-trained neural network includes output channels in x-axis, y-axis and z-axis directions, and the point cloud segmentation method according to one or more embodiments of the present disclosure further includes: obtaining, by the pre-trained neural network, a projection position of each point of the point cloud in the x-axis, y-axis and z-axis directions; and determining a corresponding target grid in the gridded scene space to which the corresponding point belongs according to the projection position in the x-axis, y-axis and z-axis directions.

[0109] Preferably, the pre-trained neural network includes a three-layer detector corresponding to output channels of the x-axis, y-axis and z-axis, and the point cloud division method according to one or more embodiments of the present disclosure further includes obtaining projection positions of each point in the point cloud in the x-axis, y-axis and z-axis directions, respectively, by the three-layer detector in the pre-trained neural network.

[0110] The above-mentioned point cloud splitting method according to one or more embodiments of the present disclosure further includes: taking the sample point cloud as a first input of the pre-trained neural network, corresponding sample target grids of the sample point cloud in a sample lattice scene space as a first desired output corresponding to the first input, and an actual confidence of each grid in the sample lattice scene space as a second desired output corresponding to the first input, and adopting a cross-entropy loss function to train the pre-trained neural network.

[0111] The above-mentioned point cloud division method according to one or more embodiments of the present disclosure further includes: combining the coordinate features and channel features of each point in the point cloud to obtain initial features of the corresponding point; and extracting local features of the corresponding point from the initial features of each point by a feature extraction network.

[0112] Also, although operations have been described in a particular order, it should not be understood that these operations must be performed in the particular order shown, or in a forward order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, the above discussion includes multiple implementation details, which should not be understood as limiting the scope of the disclosure. Some features described in the description of a single embodiment may be implemented in combination in a single embodiment. Conversely, various features described in the description of a single embodiment may be implemented in multiple embodiments alone or in any suitable subcombination.

Claims

1. Obtaining a pending point cloud; obtaining a corresponding target grid in a lattified scene space for each point of the point cloud using a pre-trained neural network trained with the sample point cloud and the corresponding sample target grid in a sample lattified scene space for the sample point cloud; outputting a point cloud corresponding to each example according to an example type corresponding to the target grid, such that the example types of the same target grid are the same; A scene space to which the point cloud belongs is divided into a number of grids in advance, each grid occupies a specific position and represents one example type; After obtaining a corresponding target grid in the gridded scene space to which each point in the point cloud belongs, classify each point in the point cloud into corresponding object instances based on an instance type corresponding to the target grid, and output a point cloud corresponding to each object instance. Point cloud segmentation method.

2. When the same target point corresponds to multiple target grids, before outputting the point clouds corresponding to each example according to the example type corresponding to the target grid, obtaining a confidence level for each target grid among the plurality of target grids; determining a final target grid corresponding to the target point according to the confidence level; The method of claim 1.

3. Obtaining a confidence level for each target grid among the plurality of target grids includes: selecting, for each target grid, a number of relevant points from the point cloud that are closest to a center point of the target grid; aggregating features of the plurality of associated points to obtain an aggregate feature for each of the target grids; performing an activation process on the aggregate features to obtain a confidence score for each of the target lattices; The method of claim 2.

4. there is a one-to-one correspondence between the output channels of the pre-trained neural network and the lattices in the lattice scene space; The method according to any one of claims 1 to 3.

5. The pre-trained neural network includes a two-layer detector; Obtaining a corresponding target grid in a gridded scene space for each point in the point cloud by a pre-trained neural network, obtaining, for each point in the point cloud, a corresponding target grid in a gridded scene space to which it belongs, by the two-layer detector in the pre-trained neural network; The method according to claim 4.

6. the pre-trained neural network includes output channels in x-axis, y-axis, and z-axis directions; Obtaining a corresponding target grid in a gridded scene space for each point in the point cloud by a pre-trained neural network, obtaining a projection position of each point of the point cloud in x-axis, y-axis, and z-axis directions by the pre-trained neural network; determining a corresponding target grid in a gridded scene space for each of the points according to the projected positions in the x-axis, y-axis and z-axis directions; The method according to any one of claims 1 to 3.

7. the pre-trained neural network includes a three-layer detector corresponding to output channels in the x-axis, y-axis, and z-axis directions; Obtaining a projection position of each point of the point cloud in x-axis, y-axis, and z-axis directions by the pre-trained neural network, obtaining projection positions of each point of the point cloud in x-axis, y-axis and z-axis directions, respectively, by the three-layer detector in the pre-trained neural network; The method according to claim 6.

8. The process of obtaining the pre-trained neural network includes: the sample point cloud is a first input of the pre-trained neural network, a corresponding sample target grid of the sample point cloud in the sample gridded scene space is a first desired output corresponding to the first input, and an actual confidence of each grid in the sample gridded scene space is a second desired output corresponding to the first input; and a cross-entropy loss function is adopted to train the pre-trained neural network. The method according to any one of claims 1 to 3.

9. After getting the point cloud ready for processing, combining the coordinate features and the channel features of each point in the point cloud to obtain an initial feature for each point; extracting local features of each of the points from the initial features of each of the points by a feature extraction network. The method according to any one of claims 1 to 3.

10. a first acquisition module configured to acquire a point cloud to be processed; a prediction module configured to obtain, for each point of the point cloud, a corresponding target grid in the lattified scene space to which it belongs, by a pre-trained neural network trained with the sample point cloud and a corresponding sample target grid in the sample lattified scene space of the sample point cloud; an output module configured to output a point cloud corresponding to each example according to the example type corresponding to the target grid such that the example types of the same target grid are the same; A scene space to which the point cloud belongs is divided into a number of grids in advance, each grid occupies a specific position and represents one example type; After obtaining a corresponding target grid in the gridded scene space to which each point in the point cloud belongs, classify each point in the point cloud into corresponding object instances based on an instance type corresponding to the target grid, and output a point cloud corresponding to each object instance. Point cloud segmentation device.

11. An electronic device comprising a memory in which a computer program is stored and a processor, the electronic device implementing the method according to any one of claims 1 to 9 when the processor executes the computer program. electronic equipment.

12. A computer-readable storage medium having a computer program stored thereon, the computer program implementing the method according to any one of claims 1 to 9 when executed by a processor. A computer-readable storage medium.

Citation Information

Patent Citations

  • Point cloud segmentation method, computer-readable storage medium and computer device

    WO2020173297A1

Cited By

  • Point cloud segmentation method and apparatus, device, and storage medium

    US12573049B2