Obstacle feature recognition model training method and apparatus, device, and storage medium

By combining surround images and point cloud data, the obstacle feature recognition model is trained based on the voxel division method, which solves the problem of insufficient accuracy in converting two-dimensional images into three-dimensional data in the existing technology and improves the accuracy of obstacle feature recognition. , supporting more accurate autonomous driving decisions.

WO2024199378A1PCT designated stage expired Publication Date: 2024-10-03BEIJING CO WHEELS TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/084501
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-30
Filing Date
2024-03-28
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing obstacle recognition technology lacks accuracy when converting two-dimensional images into three-dimensional data, which affects the high-precision recognition of obstacle features by autonomous vehicles.

Method used

By obtaining the surrounding image and point cloud data of the obstacle, the real characteristics of the obstacle are determined based on voxel division in three-dimensional space, and the initial model is used to extract and convert features of the surrounding image, and combined with the point cloud data for training, to generate high-precision obstacles Object feature recognition model.

Benefits of technology

It improves the accuracy of feature recognition of obstacles in three-dimensional space, enhances the ability of autonomous vehicles to recognize obstacles, and improves the accuracy of driving route planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024084501_03102024_PF_FP_ABST
    Figure CN2024084501_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided are an obstacle feature recognition model training method and apparatus, a computer device, a computer-readable storage medium, a computer program product, and a computer program. The method comprises: acquiring a surround-view image and point cloud data that are corresponding to a same obstacle; on the basis of the point cloud data and voxels preset in a corresponding three-dimensional space, determining a real obstacle feature corresponding to an obstacle in each voxel; inputting the surround-view image into an initial model to be trained, to obtain a predicted obstacle feature corresponding to the obstacle, wherein the initial model comprises a feature extraction network, a feature conversion network, and an obstacle feature prediction network; and training the initial model according to the real obstacle features and the predicted obstacle feature that are corresponding to the obstacle, so as to obtain an obstacle feature recognition model.
Need to check novelty before this filing date? Find Prior Art

Description

Training method, device, equipment and storage medium for obstacle feature recognition model

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application No. 202310333989.7 filed in China on March 30, 2023, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present disclosure relates to the field of obstacle detection technology, and in particular to a training method and apparatus for an obstacle feature recognition model, a computer device, a computer-readable storage medium, a computer program product, and a computer program. Background Art

[0004] Autonomous vehicles, also known as driverless cars, are a technology that uses computer-controlled devices to achieve autonomous driving on the road. The realization of autonomous driving relies on the coordinated efforts of artificial intelligence, visual computing, radar, and positioning components. Due to the complex nature of real-world roads and the numerous obstacles such as pedestrians and vehicles, the key to autonomous driving is to identify obstacles, clearly characterize them in three dimensions, and then plan routes to avoid them.

[0005] Related obstacle recognition technologies, due to the low cost of cameras, mainly perform obstacle recognition based on images captured by cameras. Although there is technology that converts two-dimensional data captured by cameras into three-dimensional data, its accuracy is poor. As a result, the obstacle features obtained using images and recognition models are not very accurate in three-dimensional space, affecting the subsequent decision-making work of autonomous driving.

[0006] Therefore, how to obtain a recognition model that can output high-precision obstacle features becomes an urgent problem to be solved.

[0007] Summary of the Invention

[0008] In order to solve the above technical problems or at least partially solve the above technical problems, at least one embodiment of the present disclosure provides a training method and apparatus for an obstacle feature recognition model, a computer device, a computer-readable storage medium, a computer program product, and a computer program.

[0009] In a first aspect, an embodiment of the present disclosure provides a method for training an obstacle feature recognition model, comprising:

[0010] Obtain surround view images and point cloud data corresponding to the same obstacle;

[0011] Based on the point cloud data and preset voxels in the corresponding three-dimensional space, determining the real obstacle features corresponding to each voxel of the obstacle;

[0012] Inputting the surround view image into an initial model to be trained to obtain obstacle prediction features corresponding to the obstacle, wherein the initial model includes a feature extraction network, a feature conversion network, and an obstacle feature prediction network;

[0013] The initial model is trained according to the real obstacle features and the predicted obstacle features corresponding to the obstacles to obtain an obstacle feature recognition model.

[0014] In a second aspect, an embodiment of the present disclosure provides a method for acquiring obstacle features, including:

[0015] Obtain surround view images of obstacles;

[0016] Inputting the surround view image into a pre-trained obstacle feature recognition model to obtain obstacle prediction features corresponding to the obstacle;

[0017] The obstacle feature recognition model includes a feature extraction network, a feature conversion network, and an obstacle feature prediction network. The feature extraction network is used to extract two-dimensional features corresponding to the surround view image, the feature conversion network is used to convert the two-dimensional features into three-dimensional features, and the obstacle feature prediction network is used to predict the obstacle prediction features corresponding to the obstacle based on the three-dimensional features.

[0018] In a third aspect, an embodiment of the present disclosure provides a training device for an obstacle feature recognition model, comprising:

[0019] The first acquisition module is used to obtain surround view images and point cloud data corresponding to the same obstacle;

[0020] a determination module, configured to determine, based on the point cloud data and preset voxels in the corresponding three-dimensional space, a real obstacle feature corresponding to each voxel of the obstacle;

[0021] a second acquisition module, configured to input the surround view image into an initial model to be trained to obtain obstacle prediction features corresponding to the obstacle, wherein the initial model includes a feature extraction network, a feature conversion network, and an obstacle feature prediction network;

[0022] The training module is used to train the initial model according to the real obstacle features and the predicted obstacle features corresponding to the obstacles to obtain an obstacle feature recognition model.

[0023] In a fourth aspect, an embodiment of the present disclosure provides a device for acquiring obstacle characteristics, including:

[0024] An image acquisition module is used to obtain surround images of obstacles;

[0025] a feature prediction module, configured to input the surround view image into a pre-trained obstacle feature recognition model to obtain obstacle prediction features corresponding to the obstacle;

[0026] The obstacle feature recognition model includes a feature extraction network, a feature conversion network, and an obstacle feature prediction network. The feature extraction network is used to extract two-dimensional features corresponding to the surround view image, the feature conversion network is used to convert the two-dimensional features into three-dimensional features, and the obstacle feature prediction network is used to predict the obstacle prediction features corresponding to the obstacle based on the three-dimensional features.

[0027] In a fifth aspect, an embodiment of the present disclosure provides a computer device, including: a processor and a memory;

[0028] The processor is configured to execute any of the obstacle feature recognition model training methods provided in the embodiments of the present disclosure, or execute any of the obstacle feature acquisition methods provided in the embodiments of the present disclosure, by calling the program or instruction stored in the memory.

[0029] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program or instruction, wherein the program or instruction enables a computer to execute any of the methods for training an obstacle feature recognition model provided in the embodiments of the present disclosure, or to execute any of the methods for obtaining obstacle features provided in the embodiments of the present disclosure.

[0030] In a seventh aspect, an embodiment of the present disclosure provides a computer program product, which, when executed by a processor, implements the training method of the obstacle feature recognition model described in any embodiment of the first aspect of the present disclosure, or the method for obtaining obstacle features provided in any embodiment of the second aspect of the present disclosure.

[0031] In an eighth aspect, an embodiment of the present disclosure provides a computer program, comprising computer program code. When the computer program code is run on a computer, the computer executes the method for training an obstacle feature recognition model as described in any embodiment of the first aspect of the present disclosure, or the method for obtaining obstacle features as described in any embodiment of the second aspect of the present disclosure.

[0032] Compared with related technologies, the technical solution provided by the embodiments of the present disclosure has at least the following advantages:

[0033] In the disclosed embodiment, surround view images and point cloud data corresponding to the same obstacle are acquired. Based on the point cloud data and pre-set voxels in the corresponding three-dimensional space, the true obstacle features corresponding to the obstacle in each voxel are determined. The surround view images are then input into an initial model to be trained to obtain predicted obstacle features corresponding to the obstacle. The initial model is then trained based on the true obstacle features and predicted obstacle features corresponding to the obstacle to obtain an obstacle feature recognition model. By employing the above technical solution, obstacle features are predicted for the surround view images using the initial model, and the true obstacle features determined based on the point cloud data are used as training targets to train the initial model to obtain an obstacle feature recognition model. This enables the trained model to learn accurate obstacle features from the surround view images, thereby improving the obstacle feature recognition model's accuracy in recognizing the 3D features of obstacles, thereby facilitating improved obstacle recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0036] FIG1 is a flow chart of a method for training an obstacle feature recognition model according to an embodiment of the present disclosure;

[0037] FIG2 is a flow chart of a method for training an obstacle feature recognition model according to another embodiment of the present disclosure;

[0038] FIG3 is a flow chart of a method for training an obstacle feature recognition model according to another embodiment of the present disclosure;

[0039] FIG4 is a flow chart of a method for training an obstacle feature recognition model according to another embodiment of the present disclosure;

[0040] FIG5 shows a schematic diagram of the network structure of an obstacle feature recognition model according to a specific embodiment of the present disclosure;

[0041] FIG6 is a flow chart of a method for acquiring obstacle features according to an embodiment of the present disclosure;

[0042] FIG7 is a schematic structural diagram of a training device for an obstacle feature recognition model provided by an embodiment of the present disclosure;

[0043] FIG8 is a schematic structural diagram of an obstacle feature acquisition device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0044] In order to more clearly understand the above-mentioned purposes, features and advantages of the present disclosure, the present disclosure is further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. The specific embodiments described herein are only used to explain the present disclosure, rather than to limit the present disclosure. In the absence of conflict, the embodiments of the present disclosure and the features in the embodiments can be combined with each other. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field fall within the scope of protection of the present disclosure.

[0045] Many specific details are set forth in the following description to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only some of the embodiments of the present disclosure, rather than all of the embodiments.

[0046] Figure 1 is a flow chart of a method for training an obstacle feature recognition model provided in an embodiment of the present disclosure. The method for training an obstacle feature recognition model can be executed by a training device for an obstacle feature recognition model provided in an embodiment of the present disclosure. The training device for the obstacle feature recognition model can be implemented using software and / or hardware and can be integrated into a computer device, which can be an electronic device such as a computer or a server.

[0047] As shown in FIG1 , the training method of the obstacle feature recognition model provided by the embodiment of the present disclosure may include steps 101 to 104 .

[0048] Step 101: Acquire surround view images and point cloud data corresponding to the same obstacle.

[0049] The surround view image includes multiple images, for example, the surround view image may include images in six directions: front, rear, left front, right front, left rear, and right rear. Obstacles may be, for example, buildings, trees, human bodies, vehicles, etc.

[0050] In the embodiment of the present disclosure, for the same obstacle, a surround view image of the obstacle captured by a camera and point cloud data of the obstacle captured by various sensors can be obtained, such as point cloud data of the obstacle acquired by a lidar.

[0051] LiDAR is a system that integrates three technologies: laser, Global Navigation Satellite System (GNSS), and Inertial Navigation System (INS). Through this combination of three technologies, it can not only actively and in real time perceive the environment and the dynamic spatial position relationships of objects, but also generate accurate three-dimensional spatial models with consistent absolute measurement points. It is used in surface remote sensing, such as acquiring data such as ground elevation and landforms, forestry surveys, as well as autonomous driving and high-precision map production.

[0052] LiDAR actively emits a laser beam and measures the time it takes for the light to strike an object or surface and then reflect back, calculating the distance to the target point. This rapid repetition generates millions of data points. Using these data points, the system constructs a complex "map" of the geographic surface being measured, known as a "point cloud." Because a point cloud is the reflection of the laser beam's impact on an object, each point in the point cloud contains three-dimensional coordinates, commonly referred to as x, y, and z.

[0053] It is understood that point cloud data can be collected manually or automatically. For example, point cloud data within the range of obstacles can be collected by manually controlling a LiDAR. Alternatively, point cloud data within the range of obstacles can be collected autonomously by using a LiDAR on an autonomous mobile device while it is in motion.

[0054] In the embodiment of the present disclosure, in order to obtain rich training data, surround view images and point cloud data can be obtained for multiple obstacles, and corresponding surround view images and point cloud data are obtained for each obstacle.

[0055] Step 102 : Based on the point cloud data and preset voxels in the corresponding three-dimensional space, determine the real obstacle feature corresponding to each voxel of the obstacle.

[0056] The preset voxels may be obtained by dividing the three-dimensional space into voxels according to a preset size.

[0057] In the embodiment of the present disclosure, the acquired point cloud data can be converted into a three-dimensional space, and the three-dimensional space can be divided into voxels to obtain a plurality of voxels. The point cloud data in each voxel is then processed to obtain the true features of the obstacle corresponding to the obstacle in each voxel.

[0058] Among them, the real characteristics of the obstacle may include the real occupancy information of each voxel when the three-dimensional space corresponding to the obstacle is divided into multiple voxels. The occupancy information reflects whether the voxel contains an object. An occupied voxel contains an object, and an unoccupied voxel does not contain an object; it may also include the real position and size information of the occupied voxels in the obstacle.

[0059] In the disclosed embodiment, obstacles in the point cloud data are determined to be real, and then the obstacles are used as a benchmark, and the determined real features of the obstacles are used as training targets to participate in subsequent supervised learning.

[0060] Step 103: Input the surround view image into the initial model to be trained to obtain obstacle prediction features corresponding to the obstacles.

[0061] The initial model may include a feature extraction network, a feature conversion network, and an obstacle feature prediction network. It is understood that the network structure of the initial model is not limited to the above three networks and can be configured according to actual needs. This is not limited in the present embodiment.

[0062] In some embodiments, the initial model may include a feature extraction network, a feature conversion network, and an obstacle feature prediction network, each of which may be one or more. The feature extraction network is used to extract different features. For example, the initial model may include a commonly used feature extraction network and a feature conversion network. The feature extraction network extracts two-dimensional features based on the surround view image, and the feature conversion network converts the two-dimensional features into three-dimensional features. The obstacle feature prediction network then predicts obstacle features based on the three-dimensional features. It is understood that, depending on actual needs, there may be one or more obstacle feature prediction networks. When there are multiple obstacle feature prediction networks, each network can be used to predict different categories of features, and the features predicted by each obstacle feature prediction network are used as the final obstacle features.

[0063] In the disclosed embodiment, the surround view image is input into the initial model to be trained, and the initial model performs feature extraction, feature conversion, obstacle feature prediction and other processing on the surround view image, and finally outputs the obstacle prediction features obtained based on the surround view image prediction.

[0064] The obstacle prediction features output by the initial model may include at least one of voxel occupancy prediction information, voxel position prediction information, and voxel size prediction information.

[0065] Step 104 : Training the initial model according to the real obstacle features and the predicted obstacle features corresponding to the obstacles to obtain an obstacle feature recognition model.

[0066] In the disclosed embodiment, after obtaining the obstacle prediction features output by the initial model, the initial model can be trained based on the obstacle prediction features and the actual features of the obstacle corresponding to the same obstacle. By continuously adjusting the network parameters of the initial model, a trained obstacle feature recognition model is obtained. The obstacle feature recognition model can more accurately identify the 3D features of obstacles in the surround view image, providing data support for accurately identifying obstacles within obstacles.

[0067] In some embodiments, the network parameters of the initial model can be adjusted based on the difference between the predicted obstacle features and the actual obstacle features. For example, if the initial model includes a convolutional neural network, the number of convolution kernels, step size and other parameters can be adjusted. For another example, the parameters of the pooling layer can be adjusted.

[0068] In some embodiments, a preset loss function can be used to calculate the loss value based on the data of the obstacle prediction features and the actual obstacle features. When the calculated loss value differs from the preset loss threshold or the difference exceeds the allowable error range, the network parameters of the initial model are adjusted; when the loss value does not differ from the loss threshold or the difference is within the allowable error range, the training is terminated to obtain a trained obstacle feature recognition model.

[0069] The method for training an obstacle feature recognition model in the disclosed embodiments obtains surround view images and point cloud data corresponding to the same obstacle, divides the point cloud data into voxels in three-dimensional space based on the point cloud data, determines the true obstacle features corresponding to the obstacle in each voxel, inputs the surround view images into an initial model to be trained, obtains the predicted obstacle features corresponding to the obstacle, and then trains the initial model based on the true obstacle features and the predicted obstacle features corresponding to the obstacle to obtain an obstacle feature recognition model. Using the above technical solution, the initial model is used to predict obstacle features for the surround view images, and the true obstacle features determined based on the point cloud data are used as training targets to train the initial model to obtain an obstacle feature recognition model. This enables the trained model to learn accurate obstacle features from the surround view images, thereby improving the obstacle feature recognition model's accuracy in recognizing the 3D features of obstacles, thereby facilitating improved obstacle recognition accuracy.

[0070] In an optional embodiment of the present disclosure, the real features of the obstacle may include real voxel occupancy information, and the obstacle feature prediction network may include a voxel occupancy prediction network. Thus, as shown in FIG2 , based on the aforementioned embodiment, step 103 may include steps 201 to 203.

[0071] Step 201: Input the surround view image into a feature extraction network to obtain two-dimensional features corresponding to the surround view image.

[0072] The feature extraction network in the initial model may be a currently commonly used image feature extraction network, which is used to extract two-dimensional features from the surround view image.

[0073] Step 202: Input the two-dimensional features into the feature conversion network to obtain the three-dimensional features corresponding to the obstacles.

[0074] Among them, the feature conversion network in the initial model can be a currently commonly used feature conversion network, which is used to perform feature conversion and restore the input two-dimensional features to three-dimensional features.

[0075] In the disclosed embodiment, after the acquired surround view image is input into the initial model, the surround view image is first subjected to feature extraction by the feature extraction network of the initial model to obtain two-dimensional features, and then the feature conversion network in the initial model performs feature conversion to restore the two-dimensional features to three-dimensional features to obtain the three-dimensional features of the obstacle.

[0076] Step 203: Input the three-dimensional features into the voxel occupancy prediction network to obtain voxel occupancy prediction information output by the voxel occupancy prediction network.

[0077] Among them, the voxel occupancy prediction network is a network built according to actual needs, that is, the obstacle feature prediction network includes the voxel occupancy prediction network. The voxel occupancy prediction network can have a variety of structures, and it can predict the occupancy information of voxels based on three-dimensional features. The embodiment of the present disclosure does not limit the specific structure of the voxel occupancy prediction network.

[0078] In the disclosed embodiment, the three-dimensional features output by the feature conversion network of the initial network are input into the voxel occupancy prediction network, which then outputs voxel occupancy prediction information. It will be appreciated that in the disclosed embodiment, when the voxel occupancy prediction network makes predictions based on the three-dimensional features, it may first divide the three-dimensional features into multiple voxels and then predict the occupancy information corresponding to each voxel.

[0079] The voxel occupancy prediction information is used to reflect whether the voxel is occupied. If the voxel is occupied, it means that the voxel contains an object, and if the voxel is not occupied, it means that the voxel does not contain an object.

[0080] As an example, voxel occupancy prediction information can be represented by a preset identifier. For example, a "1" is preset to indicate that the voxel is occupied, and a "0" is preset to indicate that the voxel is unoccupied. When the voxel occupancy prediction network predicts the occupancy status of each voxel in the three-dimensional feature, if the prediction result is that the voxel is occupied, the voxel is marked as "1", and if the prediction result is that the voxel is unoccupied, the voxel is marked as "0". The voxel label information represents the voxel occupancy prediction information.

[0081] In the disclosed embodiment, by obtaining the real information of voxel occupancy as a learning target and setting a feature extraction network, a feature conversion network and a voxel occupancy prediction network in the initial model, the initial model is able to learn the voxel occupancy of the input surround image. Since whether a voxel is occupied reflects whether there is an object in the voxel, this also provides conditions for further predicting the position of obstacles and narrowing the obstacle detection range.

[0082] In an optional embodiment of the present disclosure, the real features of the obstacle may further include real voxel position information and real voxel size information corresponding to the voxels, and the obstacle feature prediction network may further include a voxel position prediction network and a voxel size prediction network. As shown in FIG2 , step 103 may further include steps 204 to 205.

[0083] Step 204: input the three-dimensional features into the voxel position prediction network to obtain voxel position prediction information output by the voxel position prediction network.

[0084] Among them, the voxel position prediction network is a network built according to actual needs, that is, the obstacle feature prediction network also includes a voxel position prediction network. The voxel position prediction network can have a variety of structures, and it can predict the voxel position information based on three-dimensional features. The embodiment of the present disclosure does not limit the specific structure of the voxel position prediction network.

[0085] In the disclosed embodiment, after the feature conversion network of the initial model extracts the three-dimensional features, the three-dimensional features can also be input into the voxel position prediction network, which outputs voxel position prediction information based on the three-dimensional features.

[0086] The voxel position prediction information reflects the position of the object (ie, obstacle) within the voxel.

[0087] As an example, the position of the center of mass of an object within a voxel can be predicted as voxel position prediction information. The voxel position prediction information can be expressed as (x, y, z), where x, y, and z represent the coordinate values ​​of the predicted center of mass of the object on the x-axis, y-axis, and z-axis, respectively.

[0088] As an example, the coordinate offset of the center of mass of the object in the voxel relative to the center point of the voxel can be predicted as the voxel position prediction information. The voxel position prediction information can be expressed as (dx, dy, dz), where dx represents the offset of the center point of the voxel relative to the center of mass of the object on the x-axis, dy represents the offset of the center point of the voxel relative to the center of mass of the object on the y-axis, and dz represents the offset of the center point of the voxel relative to the center of mass of the object on the z-axis. It can be understood that dx, dy, and dz are predicted values.

[0089] Step 205: Input the three-dimensional features into the voxel size prediction network to obtain voxel size prediction information output by the voxel size prediction network.

[0090] Among them, the voxel size prediction network is a network built according to actual needs, that is, the obstacle feature prediction network also includes a voxel size prediction network. The voxel size prediction network can have a variety of structures, as long as it can predict the size information of voxels based on three-dimensional features. The embodiments of the present disclosure do not limit the specific structure of the voxel size prediction network.

[0091] In the disclosed embodiment, after the feature conversion network of the initial model extracts the three-dimensional features, the three-dimensional features can also be input into the voxel size prediction network, which outputs voxel size prediction information based on the three-dimensional features.

[0092] Among them, the voxel size prediction information reflects the size of the object (i.e., obstacle) within the voxel.

[0093] As an example, the length, width and height of the minimum circumscribed cuboid of the point cloud within the voxel can be predicted as voxel size prediction information. The voxel size prediction information can be expressed as (dl, dw, dh), where dl represents the length of the minimum circumscribed cuboid, dw represents the width of the minimum circumscribed cuboid, and dh represents the height of the minimum circumscribed cuboid.

[0094] In the implementation of the present disclosure, the initial model includes a voxel occupancy prediction network, a voxel position prediction network, and a voxel size prediction network, thereby being able to predict voxel occupancy information, position information, and size information, which constitute obstacle prediction features.

[0095] In some embodiments, the obstacle prediction feature can be represented by the prediction features corresponding to multiple voxels, and the prediction features corresponding to each voxel can be expressed as (1, x, y, z, dx, dy, dz, dl, dw, dh), where 1 is the voxel occupancy prediction information, indicating that the voxel is occupied, (x, y, z) represents the center point coordinates of the voxel, (dx, dy, dz) represents the voxel position prediction information, and (dl, dw, dh) represents the voxel size prediction information. The obstacle prediction feature can also be expressed as (0), where 0 is the voxel occupancy prediction information, indicating that the voxel is unoccupied, and the unoccupied voxel has no voxel position prediction information and voxel size prediction information; or, the obstacle prediction feature can also be expressed as (0, x, y, z, 0, 0, 0, 0, 0), where the first 0 is the voxel occupancy prediction information, indicating that the voxel is unoccupied, (x, y, z) represents the center point coordinates of the unoccupied voxel, and the remaining 0s indicate that the unoccupied voxel has no voxel position prediction information and voxel size prediction information.

[0096] It should be noted that there is no order among the above steps 203, 204, and 205, and they can be executed together or separately.

[0097] The training method of the obstacle feature recognition model in the embodiment of the present disclosure obtains the real information of voxel position and voxel size as learning objectives, and sets a voxel position prediction network and a voxel size prediction network in the initial model, so that the initial model can learn the voxel position and voxel size of the input surround view image. As a result, the trained model can predict more accurate voxel position and size based on the input surround view image, thereby obtaining accurate 3D features of obstacles.

[0098] In an optional embodiment of the present disclosure, when the initial model is trained based on the real obstacle features and the predicted obstacle features corresponding to the obstacle, a first loss value can be determined based on the voxel occupancy prediction information and the real voxel occupancy information, a second loss value can be determined based on the voxel position prediction information and the real voxel position information, and a third loss value can be determined based on the voxel size prediction information and the real voxel size information, and then the network parameters of the initial model can be adjusted based on the first loss value, the second loss value and the third loss value.

[0099] In the embodiment of the present disclosure, when calculating the first loss value, the second loss value, and the third loss value, relevant technologies can be first used to determine at least one voxel pair from the real obstacle features and the predicted obstacle features. For example, for any voxel in the predicted obstacle features, the target voxel with the same specific coordinates as the voxel can be found from the real obstacle features based on the coordinates of the voxel (i.e., the center point coordinates). The voxel and the target voxel then constitute a voxel pair. Subsequently, the first loss value is calculated using the voxel occupancy prediction information and the real voxel occupancy information corresponding to the voxel pair, the second loss value is calculated using the voxel position prediction information and the real voxel position information corresponding to the voxel pair, and the third loss value is calculated using the voxel size prediction information and the real voxel size information corresponding to the voxel pair.

[0100] Among them, the loss function used to calculate each loss value can be pre-set according to actual needs. The embodiment of the present disclosure does not limit the loss function used to calculate each loss value.

[0101] As an example, when adjusting the network parameters of the initial model based on the first loss value, the second loss value, and the third loss value, the network parameters of the initial model can be adjusted based on each loss value. For example, when the first loss value does not meet the corresponding loss threshold, the network parameters of the voxel occupancy prediction network in the initial model can be adjusted, and the network parameters of other networks preceding the voxel occupancy prediction network can also be adjusted; when the second loss value does not meet the corresponding loss threshold, the network parameters of the voxel position prediction network in the initial model can be adjusted, and the network parameters of other networks preceding the voxel position prediction network can also be adjusted; when the third loss value does not meet the corresponding loss threshold, the network parameters of the voxel size prediction network in the initial model can also be adjusted, and the network parameters of other networks preceding the voxel size prediction network can also be adjusted.

[0102] As an example, when adjusting the network parameters of the initial model based on the first loss value, the second loss value, and the third loss value, the loss value of the initial model can be first calculated based on the first loss value, the second loss value, and the third loss value. For example, the average of the first loss value, the second loss value, and the third loss value can be calculated as the loss value of the initial model; for another example, the sum of the first loss value, the second loss value, and the third loss value can be calculated as the loss value of the initial model, and so on. Next, the network parameters of the initial model can be adjusted based on the loss value of the initial model. If the loss value of the initial model does not meet a preset loss threshold, at least one network parameter of the initial model is adjusted.

[0103] In the embodiment of the present disclosure, a first loss value is determined based on the voxel occupancy prediction information and the actual voxel occupancy information, a second loss value is determined based on the voxel position prediction information and the actual voxel position information, and a third loss value is determined based on the voxel size prediction information and the actual voxel size information. Then, based on the first loss value, the second loss value, and the third loss value, the network parameters of the initial model are adjusted. Thus, iterative training of the initial model is achieved to obtain an obstacle feature recognition model that can accurately predict the 3D features of obstacles in the surround view image.

[0104] In an optional implementation of the present disclosure, as shown in FIG3 , based on the above embodiment, step 102 may include steps 301 to 303 .

[0105] Step 301: convert the point cloud data into a three-dimensional coordinate system.

[0106] In the disclosed embodiments, point cloud data collected by a sensor (such as a laser radar) can be acquired and converted into a three-dimensional coordinate system. Since each point in the point cloud data contains a three-dimensional coordinate value, during the conversion, the acquired point cloud data can be converted into a three-dimensional coordinate system based on the three-dimensional coordinate value contained in each point.

[0107] Step 302 : voxelize the three-dimensional space in the three-dimensional coordinate system according to a preset size to obtain a plurality of voxels in the three-dimensional space.

[0108] Among them, the preset size can be pre-set according to actual needs. For example, the preset size can be set to 0.1m*0.1m*0.1m, 0.1m*0.2m*0.1m, 0.1m*0.1m*0.2m, 0.1m*0.2m*0.3m, and so on.

[0109] In the embodiment of the present disclosure, for a three-dimensional space in a three-dimensional coordinate system, the three-dimensional space may be divided into voxels according to a fixed preset size, and the three-dimensional space may be divided into a plurality of voxels of the same size.

[0110] In some embodiments, assuming that the spatial range of the three-dimensional space is 30m*30m*10m and the preset size is 0.1m*0.1m*0.1m, the three-dimensional space is voxelized according to the preset size, and the three-dimensional space can be divided into (300, 300, 100) voxels of equal size.

[0111] Step 303: Based on the point cloud data contained in each voxel of the plurality of voxels, the real obstacle features corresponding to the obstacle in each voxel are generated using the key points of the point cloud within the voxel and the circumscribed graphics of the point cloud. The real obstacle features include the real voxel occupancy information corresponding to each voxel, the real voxel position information corresponding to the non-empty voxels, and the real voxel size information.

[0112] The key point of the point cloud within the voxel may be the centroid of the point cloud within the voxel, and the circumscribed figure of the point cloud within the voxel may be the minimum circumscribed cuboid of the point cloud within the voxel.

[0113] In the disclosed embodiment, for each divided voxel, the point cloud data contained in the voxel can be determined, and then the real voxel information of the voxel can be determined based on the point cloud data contained in the voxel, the key points of the point cloud within the voxel, and the external graphics of the point cloud. The real voxel information includes the real voxel occupancy information of the voxel, the real voxel position information corresponding to non-empty voxels (i.e., the real voxel occupancy information is the occupied voxel), and the real voxel size information. The real voxel occupancy information corresponding to each voxel, the real voxel position information corresponding to the occupied non-empty voxels, and the real voxel size information constitute the real obstacle feature corresponding to the obstacle to which the point cloud data belongs in each voxel.

[0114] The voxel occupancy information can be determined based on whether the voxel contains a point, and can be represented by different labels. For example, a voxel containing a point can be marked as "1" as the voxel occupancy information, indicating that an object exists in the voxel; a voxel not containing a point can be marked as "0" as the voxel occupancy information, indicating that an object does not exist in the voxel.

[0115] In the embodiment of the present disclosure, the real voxel position information and the real voxel size information of the voxel can be represented by different parameters, which are described below with examples.

[0116] In some embodiments, the true voxel position information of a voxel can be represented by the coordinates corresponding to the center of mass (i.e., key point) of the point cloud within the voxel, and the true voxel size information of a voxel can be represented by the coordinates of each vertex of the minimum circumscribed cuboid of the point cloud within the voxel.

[0117] In some embodiments, the true voxel position information of a voxel can be represented by the offset between the coordinates of the center point of the voxel and the coordinates corresponding to the center of mass of the point cloud within the voxel (i.e., the key point), and the true voxel size information of the voxel can be represented by the length, width, and height of the minimum circumscribed cuboid of the point cloud within the voxel.

[0118] The training method for the obstacle feature recognition model of the disclosed embodiment converts point cloud data into a three-dimensional coordinate system, voxelizes the three-dimensional space within the three-dimensional coordinate system according to a preset size, and obtains multiple voxels in the three-dimensional space. Then, based on the point cloud data contained in each of the multiple voxels, the key points of the point cloud within the voxel and the circumscribed graphics of the point cloud are used to generate the true obstacle features corresponding to the obstacle in each voxel. The true obstacle features include the true voxel occupancy information corresponding to each voxel, the true voxel position information corresponding to non-empty voxels, and the true voxel size information. By adopting the above technical solution, after dividing the three-dimensional space into multiple voxels of fixed size, the voxel occupancy real information, voxel position real information and voxel size real information corresponding to each voxel are further determined as the real voxel information of the voxel based on the point cloud data contained in each voxel. In this way, the real position and real size of the voxels belonging to it are calculated based on the point cloud data, so that the sizes of different voxels can be different, and accurate voxel real position and voxel real size can be obtained, which is conducive to improving the representation accuracy of obstacle position and size, and also provides data support for training a model that can accurately identify obstacle features.

[0119] In an optional implementation of the present disclosure, as shown in FIG4 , based on the embodiment shown in FIG3 , step 303 may include steps 401 to 405 .

[0120] Step 401 : determining the real voxel occupancy information corresponding to each voxel according to the position of each point in the point cloud data, wherein the real voxel occupancy information includes occupied and unoccupied.

[0121] In the disclosed embodiments, after dividing the three-dimensional space into a plurality of voxels, it is possible to determine whether each voxel contains a point or a point cloud based on the position of each point in the point cloud data, i.e., the coordinate values ​​contained in each point, and determine the real voxel occupancy information corresponding to each voxel based on the determination result. Specifically, for voxels containing points, the corresponding real voxel occupancy information is determined to be occupied, and for voxels not containing points, the corresponding real voxel occupancy information is determined to be unoccupied.

[0122] In some embodiments, a non-empty voxel containing at least one point can be assigned a value of 1, indicating that the voxel is occupied and contains an object; an empty voxel without a point can be assigned a value of 0, indicating that the voxel is unoccupied and contains no object. "1" and "0" represent actual voxel occupancy information.

[0123] Step 402 : for a non-empty voxel whose real voxel occupancy information is occupied, determine the centroid of the point cloud in the non-empty voxel as the key point based on a centroid calculation rule according to at least one point in the non-empty voxel.

[0124] The centroid calculation rule may be a preset rule for determining the centroid of a point cloud within a non-empty voxel. If there is only one point in a non-empty voxel, that point can be determined as the centroid, and the coordinates of that point are the coordinates of the centroid. If there are multiple points in a non-empty voxel, the centroid of the point cloud within the non-empty voxel and its corresponding coordinates can be calculated using the currently commonly used method for determining the centroid of a point cloud, based on the coordinate values ​​of each point in the non-empty voxel, the mass of each point, and other information. The coordinates of the centroid can represent the location of the centroid, i.e., the position coordinates.

[0125] In the embodiment of the present disclosure, for any non-empty voxel whose real occupancy information is occupied, the center of mass of the point cloud in the non-empty voxel can be determined based on all points contained in the non-empty voxel (called a point cloud) and the center of mass calculation rule, and the center of mass can be used as the key point of the point cloud in the non-empty voxel.

[0126] Step 403 : According to the key points, based on a preset position determination rule, the real voxel position information of the non-empty voxels is determined.

[0127] In the embodiment of the present disclosure, for each non-empty voxel whose filtered voxel occupancy real information is occupied, the voxel position real information and voxel size real information corresponding to each non-empty voxel can be determined according to the key points of the point cloud in the non-empty voxels and based on the preset position determination rules.

[0128] In an optional embodiment of the present disclosure, the position determination rule includes determining the position coordinates corresponding to the key point as the true voxel position information of the non-empty voxel. Thus, in this embodiment of the present disclosure, when determining the true voxel position information of any non-empty voxel based on the key point and the preset position determination rule, the position coordinates of the determined key point can be directly determined as the true voxel position information corresponding to the corresponding non-empty voxel.

[0129] Since the key point of the point cloud within a non-empty voxel is the centroid of the point cloud, the centroid of the point cloud represents the average position of the mass distribution of the point cloud, and the point cloud describes obstacles in geographic space, in the embodiment of the present disclosure, the centroid of the point cloud can be used to represent the true position of the obstacle. Since the general obstacle detection algorithm in three-dimensional space divides the three-dimensional space into voxels to identify obstacles, in the embodiment of the present disclosure, in order to determine the true position of the voxel, the coordinates of the centroid of the point cloud within the voxel (i.e., the key point) can be used as the true voxel position information of the voxel.

[0130] As a possible implementation method, the position determination rule includes: determining the coordinate offset of the center point of the non-empty voxel relative to the key point as the position information of the non-empty voxel. Thus, in the embodiment of the present disclosure, for any non-empty voxel, when determining the true voxel position information of the non-empty voxel based on the key point and the preset position determination rule, the first coordinate of the center point of the non-empty voxel can be obtained first, and then the coordinate offset of the center point of the non-empty voxel relative to the key point of the point cloud in the non-empty voxel can be determined based on the first coordinate and the second coordinate corresponding to the key point of the point cloud in the non-empty voxel, wherein the coordinate offset includes the offset corresponding to each coordinate axis in the three-dimensional coordinate system, and then the first coordinate of the center point of the non-empty voxel and the coordinate offset of the center point relative to the center of mass of the point cloud in the non-empty voxel are determined as the true voxel position information of the non-empty voxel.

[0131] It is understood that after the spatial range of the three-dimensional space is divided into multiple voxels of equal size according to a fixed preset size, the coordinates of the center point of each voxel can be determined. For ease of description and to distinguish them from the coordinates of key points of the point cloud within non-empty voxels, in the embodiments of the present disclosure, the coordinates corresponding to the center point of the non-empty voxel are referred to as first coordinates, and the coordinates corresponding to the key points of the point cloud within the non-empty voxel are referred to as second coordinates.

[0132] In the embodiment of the present disclosure, when determining the true voxel position information of each non-empty voxel, the coordinate offset of the center point of the non-empty voxel relative to the key point of the point cloud within the non-empty voxel can be calculated based on the first coordinate corresponding to the center point of the non-empty voxel and the second coordinate corresponding to the key point of the point cloud within the non-empty voxel, wherein the coordinate offset includes the offset of the center point relative to the key point on the x, y and z axes of the three-dimensional coordinate system, respectively, and the offset can be expressed by the coordinate difference between the center point and the key point on the same coordinate axis.

[0133] In some embodiments, assuming that the first coordinate of the center point of a non-empty voxel is (x1, y1, z1), and the second coordinate corresponding to the key point of the point cloud in the non-empty voxel is (x2, y2, z2), then the coordinate offset of the center point of the non-empty voxel relative to the key point of the point cloud can be recorded as (dx, dy, dz), where dx = x1-x2, dy = y1-y2, and dz = z1-z2.

[0134] It can be understood that when a non-empty voxel includes only one point, the coordinates of this point can be regarded as the second coordinates of the key point, and the coordinate offset of the center point of the non-empty voxel relative to this point can be regarded as the coordinate offset of the center point of the non-empty voxel relative to the key point.

[0135] In some embodiments, assuming that the first coordinates of the center point of a non-empty voxel are (x1, y1, z1), and the non-empty voxel includes only one point, and the coordinates of the point are (x3, y3, z3), then the coordinate offset of the center point of the non-empty voxel relative to the key point of the point cloud (i.e., the point) can be recorded as (dx, dy, dz), where dx = x1-x3, dy = y1-y3, and dz = z1-z3.

[0136] After that, after determining the coordinate offset of the center point of the non-empty voxel relative to the key point of the point cloud, the first coordinate corresponding to the center point and the determined coordinate offset can be determined as the true voxel position information of the non-empty voxel.

[0137] In some embodiments, the true voxel position information of a non-empty voxel can be expressed as (x1, y1, z1, dx, dy, dz), where (x1, y1, z1) represents the coordinates of the center point of the non-empty voxel, and (dx, dy, dz) represents the coordinate offset of the center point of the non-empty voxel relative to the key point of the point cloud within the non-empty voxel.

[0138] In the embodiment of the present disclosure, the center of mass of the point cloud in the non-empty voxel is determined as the key point of the point cloud based on at least one point in the non-empty voxel, and the true voxel position information of the non-empty voxel is determined based on the center of mass. Thus, the true position of the voxel is determined according to the position of the center of mass of the point cloud in the non-empty voxel, which can improve the accuracy of the voxel position and make the voxel representation of the obstacle position more accurate.

[0139] Step 404 : Determine the true voxel size information of the non-empty voxel using the circumscribed graph corresponding to at least one point in the non-empty voxel.

[0140] The circumscribed figure refers to the circumscribed figure of all points contained in the non-empty voxel, and the circumscribed figure may be, for example, a minimum circumscribed cuboid.

[0141] In an optional embodiment of the present disclosure, for any non-empty voxel, when determining the size information of the non-empty voxel using the circumscribed figure corresponding to at least one point in the non-empty voxel, the minimum circumscribed figure of all points in the non-empty voxel can be determined first, for example, the minimum circumscribed cuboid of all points in the non-empty voxel can be determined, and then the coordinates of each vertex of the minimum circumscribed figure can be determined, and then the coordinates of each vertex can be used to represent the true voxel size information of the non-empty voxel.

[0142] In an optional embodiment of the present disclosure, when using the circumscribed figure corresponding to at least one point in the non-empty voxel to determine the true voxel size information of the non-empty voxel, the minimum circumscribed cuboid of at least one point in the non-empty voxel can be first determined based on at least one point in the non-empty voxel, and then the true voxel size information of the non-empty voxel can be determined based on the length, width and height of the minimum circumscribed cuboid.

[0143] When determining the minimum bounding rectangle of at least one point in a non-empty voxel based on at least one point in the non-empty voxel, a commonly used method for determining the minimum bounding rectangle can be used. The embodiments of this disclosure do not limit the specific implementation method for determining the minimum bounding rectangle. It is understood that the minimum bounding rectangle can be a cuboid or a cube. The determined minimum bounding rectangle can be represented by the coordinates of each vertex.

[0144] In the embodiment of the present disclosure, when determining the minimum circumscribed cuboid, different methods can be selected to determine the minimum circumscribed cuboid of at least one point in the non-empty voxel depending on the number and position of points contained in the non-empty voxel. The following examples are used for exemplary explanation.

[0145] As an example, assuming that a non-empty voxel contains at least two points, and at least two of the at least two points are not on the same plane, the currently commonly used method can be used to determine the minimum circumscribed cuboid of these points.

[0146] As an example, assuming that at least two points contained in a non-empty voxel are on the same plane, the currently commonly used method can be used to determine the minimum circumscribed rectangle of these points. For another coordinate axis that is not involved in the plane where these points are located, the length on the coordinate axis can be determined based on the preset side length, thereby obtaining a cuboid, which is used as the minimum circumscribed rectangle of these points. For example, assuming that multiple points contained in a non-empty voxel are all on the plane yoz, and the preset side length is 0.2, the minimum circumscribed rectangle of these points can be determined based on these points, and the coordinates of each vertex of the minimum circumscribed rectangle can be obtained. For the x-axis, the coordinates on the x-axis can be determined based on the preset side length of 0.2 to obtain a cuboid. For example, the determined minimum circumscribed rectangle can be used as a face of the cuboid, and the coordinates of the vertex when the length is 0.2 in the positive or negative direction of the x-axis can be determined to obtain the coordinates of the other four vertices of the cuboid, thereby obtaining the coordinates of each vertex on the minimum circumscribed rectangle. For another example, the determined minimum circumscribed rectangle can be used as the mid-section of the cuboid, and the x-coordinate values ​​of the four vertices of the minimum circumscribed rectangle can be increased by 0.1 and decreased by 0.1 respectively, while the coordinates of the y-axis and the z-axis remain unchanged, to obtain eight new coordinate points. The cuboid enclosed by these eight new coordinate points is determined as the minimum circumscribed cuboid of at least two points within a non-empty voxel.

[0147] As an example, assuming a non-empty voxel contains only one point, a cube containing the point can be determined as the minimum circumscribed cuboid of the point based on a preset side length. Alternatively, a cuboid containing the point can be determined as the minimum circumscribed cuboid of the point based on a preset length, preset width, and preset height. Alternatively, the non-empty voxel can be used as the minimum circumscribed cuboid.

[0148] Next, after determining the minimum circumscribed cuboid of at least one point in the non-empty voxel, the length, width, and height of the minimum circumscribed cuboid are also determined. Furthermore, the true voxel size information of the non-empty voxel can be determined based on the length, width, and height of the minimum circumscribed cuboid.

[0149] As a possible implementation, when determining the true voxel size information of a non-empty voxel based on the length, width, and height of the minimum circumscribed cuboid, the length, width, and height of the minimum circumscribed cuboid may be directly used as the true voxel size information of the non-empty voxel.

[0150] As a possible implementation method, when determining the true voxel size information of a non-empty voxel based on the length, width and height of a minimum circumscribed cuboid, each side length of the minimum circumscribed cuboid can be first compared with a preset length, wherein each side length includes the lengths corresponding to the length, width and height of the minimum circumscribed cuboid, and the preset length can be set according to actual needs, such as setting the preset length to 0.1; when there is a side length less than the preset length in each side length, the side length less than the preset length will be updated to the preset length, and then based on each updated side length, the true voxel size information of the non-empty voxel is determined.

[0151] That is to say, in the embodiment of the present disclosure, for the determined minimum circumscribed cuboid, the length, width and height of the minimum circumscribed cuboid can be compared with the preset length respectively. If at least one side length of the length, width and height is less than the preset length, the side length less than the preset length is replaced with the preset length, and then the updated side length is used as the true voxel size information of the non-empty voxel. As a result, each side length in the true voxel size information of the non-empty voxel is not less than the preset length, so as to avoid the final determined non-empty voxel size being too small, resulting in a large number of holes, making the voxel discontinuous, and thus affecting the obstacle detection result.

[0152] In some embodiments, in the disclosed embodiments, the true voxel size information of a non-empty voxel can be expressed as (dl, dw, dh), where dl represents the length of the minimum bounding rectangle, dw represents the width of the minimum bounding rectangle, and dh represents the height of the minimum bounding rectangle.

[0153] For example, assuming that the length, width, and height of the minimum circumscribed cuboid determined based on the points in a non-empty voxel are 0.2, 0.1, and 0.08, respectively, then the true voxel size information of the non-empty voxel can be determined to be (0.2, 0.1, 0.08).

[0154] For another example, assuming the preset length is 0.1, the length, width, and height of the minimum circumscribed cuboid determined based on the points in a non-empty voxel are 0.2, 0.1, and 0.08, respectively. It can be determined that the height of the minimum circumscribed cuboid is less than the preset length, and the height of the minimum circumscribed cuboid is updated to 0.1. The final true voxel size information of the non-empty voxel is (0.2, 0.1, 0.1).

[0155] In the embodiment of the present disclosure, the minimum circumscribed cuboid of at least one point in the non-empty voxel is determined based on at least one point in the non-empty voxel, and the true voxel size information of the non-empty voxel is determined based on the length, width and height of the minimum circumscribed cuboid. Thus, it is possible to determine the true size of the voxel based on the position of the point cloud contained in the non-empty voxel, which can improve the accuracy of the voxel size and make the voxel representation of the obstacle contour more precise.

[0156] In an optional embodiment of the present disclosure, when a non-empty voxel contains only one point, it can also be determined that the length, width and height of the minimum circumscribed cuboid of the point are all 0. In this case, the above-mentioned method of comparing the length, width and height of the minimum circumscribed cuboid with the preset length can be adopted. When there is a side length less than the preset length among the length, width and height, the side length less than the preset length is updated to the preset length, and then based on each updated side length, the true voxel size information of the non-empty voxel is determined to determine the true voxel size information of the non-empty voxel when the non-empty voxel contains only one point.

[0157] In the disclosed embodiment, when a non-empty voxel contains only one point, the length, width, and height of the smallest circumscribed cuboid of the point are all 0. However, the preset length is a number greater than 0. Obviously, the length, width, and height of the smallest circumscribed cuboid are all less than the preset length. Therefore, the preset length can be determined as the true voxel size information of the non-empty voxel containing only one point. Assuming the preset length is 0.1, for a non-empty voxel containing only one point, (0.1, 0.1, 0.1) can be used as the true voxel size information of the non-empty voxel.

[0158] It should be noted that in the embodiment of the present disclosure, there is no particular order for executing step 403 and step 404. The two can be executed simultaneously or one after the other. The embodiment of the present disclosure only takes step 404 being executed after step 403 as an example, and it cannot be used as a limitation of the present disclosure.

[0159] Step 405 : Generate a real obstacle feature corresponding to the obstacle in each voxel based on the real voxel occupancy information corresponding to each voxel, the real voxel position information corresponding to the non-empty voxel, and the real voxel size information.

[0160] In the embodiment of the present disclosure, after determining the true voxel position information and the true voxel size information of each non-empty voxel, the true obstacle features of the obstacle belonging to the point cloud data can be generated based on the true voxel occupancy information, the true voxel position information and the true voxel size information of the same non-empty voxel, as well as the true voxel occupancy information corresponding to each unoccupied empty voxel.

[0161] It should be noted that, for empty voxels whose voxel occupancy real information is unoccupied, the voxel position real information and the voxel size real information may not be provided, or the voxel position real information and the voxel size real information of the empty voxels may both be set to 0.

[0162] In some embodiments, it is assumed that the real information corresponding to each voxel in the real feature of the obstacle is represented in a unified format as (p, x, y, z, dl, dw, dh), where p represents the real information of voxel occupancy, (x, y, z) represents the coordinates corresponding to the centroid of the point cloud in the voxel, dl represents the length of the minimum bounding rectangle, dw represents the width of the minimum bounding rectangle, and dh represents the height of the minimum bounding rectangle. For unoccupied empty voxels, their real information can be expressed as (p1,,,,,,), where p1 indicates that the voxel is unoccupied, and the other elements are empty, indicating that there is no real information about the voxel position and the real information about the voxel size. For occupied non-empty voxels, their real information can be expressed as (p2, x0, y0, z0, dl, dw, dh), where p2 indicates that the voxel is occupied.

[0163] In some embodiments, the real information representation corresponding to the unoccupied empty voxels in the real features of the obstacle can be (p1), where p1 indicates that the voxel is unoccupied. Assuming that the real information of the voxel position of the occupied non-empty voxel is represented by the coordinates of the center point of the non-empty voxel and the coordinate offset of the center point relative to the center of mass of the point cloud in the non-empty voxel, and the real information of the voxel size of the non-empty voxel is represented by the length, width and height of the minimum circumscribed rectangle of all point clouds in the non-empty voxel, the real information of the non-empty voxel can be expressed as (p2, x1, y1, z1, dx, dy, dz, dl, dw, dh), where p2 indicates that the voxel is occupied, (x1, y1, z1) indicates the coordinates corresponding to the center point of the non-empty voxel, (dx, dy, dz) indicates the coordinate offset of the center point of the non-empty voxel relative to the center of mass of the point cloud in the non-empty voxel, dl indicates the length of the minimum circumscribed rectangle, dw indicates the width of the minimum circumscribed rectangle, and dh indicates the height of the minimum circumscribed rectangle.

[0164] The training method of the obstacle feature recognition model of the embodiment of the present disclosure determines the real voxel occupancy information corresponding to each voxel according to the position of each point in the point cloud data, the real voxel occupancy information includes occupied and unoccupied, and for non-empty voxels whose real voxel occupancy information is occupied, the center of mass of the point cloud in the non-empty voxel is determined as a key point based on a center of mass calculation rule according to at least one point in the non-empty voxel, and the real voxel position information of the non-empty voxel is determined based on a preset position determination rule according to the determined key point, and the circumscribed graph corresponding to at least one point in the non-empty voxel is used to determine the non-empty voxel. The real voxel size information of the empty voxels is obtained, and then based on the real voxel occupancy information corresponding to each voxel, the real voxel position information and real voxel size information corresponding to the non-empty voxels, the real obstacle feature corresponding to the obstacle in each voxel is generated. As a result, the occupancy status of the divided multiple voxels can be marked, and the real position and real size corresponding to each non-empty voxel can be determined. The real voxel information is dynamically generated according to the points in the voxel, making the position and contour of the obstacle more precise, which is conducive to improving the accuracy of obstacle feature recognition, thereby improving the accuracy of obstacle detection.

[0165] In an optional embodiment of the present disclosure, when converting the acquired point cloud data into a three-dimensional coordinate system, multiple frames of point cloud data collected by the laser radar for the same obstacle can be first obtained, and then the multiple frames of point cloud data can be converted into the same three-dimensional coordinate system. During the conversion, if the same three-dimensional coordinate position corresponds to multiple points in the multiple frames of point cloud data, the multiple points are deduplicated.

[0166] Usually, when a laser radar collects point cloud data of an obstacle, it obtains a frame of point cloud of the obstacle at a time. It is difficult for a frame of point cloud to fully describe all the information of the entire obstacle. Therefore, in the embodiment of the present disclosure, multiple frames of point cloud data collected by the laser radar for the same obstacle at different times can be obtained, and then the obtained multiple frames of point cloud data can be spliced. Splicing refers to converting the multiple frames of point cloud data into the same three-dimensional coordinate system. It can be understood that for the same three-dimensional coordinate position in three-dimensional space, more than one frame of point cloud data may contain the point corresponding to the position. In this case, when splicing, the multiple points corresponding to the position can be deduplicated, and only one point can be retained to be displayed in the three-dimensional coordinate system. Alternatively, in the case where a three-dimensional coordinate position corresponds to multiple points, the data of the multiple points corresponding to the same three-dimensional coordinate position can be averaged, and the obtained average value can be used as the information of the point corresponding to the three-dimensional coordinate position in the three-dimensional coordinate system.

[0167] In the embodiment of the present disclosure, by acquiring multi-frame point cloud data and converting the multi-frame point cloud data into the same coordinate system, a denser point cloud can be obtained, so that the point cloud data displayed in the three-dimensional coordinate system can better reflect all the information of the real obstacle.

[0168] Figure 5 shows a schematic diagram of the network architecture of an obstacle feature recognition model according to a specific embodiment of the present disclosure. As shown in Figure 5, the obstacle feature recognition model comprises a feature extraction network, a feature conversion network, a voxel occupancy prediction network, a voxel position prediction network, and a voxel size prediction network. The feature extraction network extracts features from the input surround view image to obtain two-dimensional features. The feature conversion network converts the two-dimensional features extracted by the feature extraction network into three-dimensional features. The voxel occupancy prediction network obtains voxel occupancy prediction information based on the three-dimensional features. The voxel position prediction network obtains voxel position prediction information based on the three-dimensional features. The voxel size prediction network obtains voxel size prediction information based on the three-dimensional features. The obstacle feature recognition model shown in Figure 5 can be trained using true obstacle features obtained from point cloud data as training targets. The true obstacle features include true voxel occupancy information, true voxel position information, and true voxel size information. As shown in Figure 5, six surround view images are input into the obstacle feature recognition model. Two-dimensional features are first obtained through the feature extraction network, and then restored to three-dimensional features through the feature conversion module. As shown in Figure 5, the obstacle feature recognition model can also include an upsampling network. After upsampling, the 3D features are fed into a voxel occupancy prediction network, a voxel position prediction network, and a voxel size prediction network, respectively. This yields voxel occupancy prediction information, voxel position prediction information, and voxel size prediction information. Furthermore, obstacle prediction features are derived based on this voxel occupancy prediction information, voxel position prediction information, and voxel size prediction information. The obstacle feature recognition model shown in Figure 5 can obtain accurate 3D obstacle features, paving the way for accurate obstacle recognition based on surround view images.

[0169] Corresponding to the above embodiment, the embodiment of the present disclosure further provides a method for acquiring obstacle features, which uses the obstacle feature recognition model trained in the above embodiment to obtain obstacle prediction features of the obstacle.

[0170] Figure 6 is a flowchart of a method for acquiring obstacle features provided in an embodiment of the present disclosure. The method for acquiring obstacle features can be performed by an apparatus for acquiring obstacle features provided in an embodiment of the present disclosure. The apparatus for acquiring obstacle features can be implemented using software and / or hardware and can be integrated into a computer device, which can be a computer, server, or other electronic device.

[0171] As shown in FIG6 , the method for acquiring obstacle features may include steps 501 and 502 .

[0172] Step 501: Acquire a surround view image of an obstacle.

[0173] Obstacles may be, for example, buildings, trees, human bodies, vehicles, etc.

[0174] In some embodiments, a camera may be used to capture surround images of obstacles. The surround images include multiple images. For example, the surround images may include images in six directions: front, back, left front, right front, left rear, and right rear.

[0175] Step 502: Input the surround view image into a pre-trained obstacle feature recognition model to obtain obstacle prediction features corresponding to the obstacle.

[0176] The obstacle feature recognition model is pre-trained using the obstacle feature recognition model training method provided in the above embodiment. The obstacle feature recognition model includes a feature extraction network, a feature conversion network, and an obstacle feature prediction network. The feature extraction network is used to extract two-dimensional features corresponding to the surround view image, the feature conversion network is used to convert the two-dimensional features into three-dimensional features, and the obstacle feature prediction network is used to predict obstacle prediction features corresponding to the obstacles based on the three-dimensional features.

[0177] In the disclosed embodiment, the acquired surround view image of an obstacle is input into a pre-trained obstacle feature recognition model. The feature extraction network within the obstacle feature recognition model first extracts features from the surround view image to obtain two-dimensional features corresponding to the surround view image. The two-dimensional features output by the feature extraction network are then input into a feature conversion network, which converts the two-dimensional features into three-dimensional features corresponding to the obstacle. Finally, the three-dimensional features output by the feature conversion network are input into an obstacle feature prediction network, which predicts obstacle features based on the input three-dimensional features and outputs predicted obstacle features corresponding to the obstacle.

[0178] Among them, the obstacle feature prediction network can be set according to actual needs. The obstacle feature prediction network may include but is not limited to at least one of a voxel occupancy prediction network, a voxel position prediction network, and a voxel size prediction network. Accordingly, at least one of voxel occupancy prediction information, voxel position prediction information, and voxel size prediction information can be predicted as the obstacle prediction feature of the obstacle.

[0179] The obstacle feature acquisition method of the disclosed embodiments obtains surround-view images of obstacles, inputs the surround-view images into a pre-trained obstacle feature recognition model, and obtains obstacle prediction features corresponding to the obstacles. Thus, using the pre-trained obstacle feature recognition model, high-precision obstacle features of obstacles in three-dimensional space can be obtained based on the surround-view images of the obstacles, which helps improve the accuracy of obstacle recognition and thus helps vehicles effectively avoid obstacles during autonomous driving.

[0180] In order to implement the above embodiment, the embodiment of the present disclosure also provides a training device for an obstacle feature recognition model.

[0181] FIG7 is a schematic diagram of the structure of a training device for an obstacle feature recognition model provided in an embodiment of the present disclosure. The device may be implemented using software and / or hardware and may be integrated on a computer device, which may be a computer, server, or other electronic device.

[0182] As shown in FIG. 7 , the training device 60 for the obstacle feature recognition model provided by the embodiment of the present disclosure may include: a first acquisition module 601 , a determination module 602 , a second acquisition module 603 and a training module 604 .

[0183] The first acquisition module 601 is used to acquire surround view images and point cloud data corresponding to the same obstacle.

[0184] The determination module 602 is configured to determine the real obstacle feature corresponding to each voxel of the obstacle based on the point cloud data and preset voxels in the corresponding three-dimensional space.

[0185] The second acquisition module 603 is used to input the surround view image into the initial model to be trained to obtain obstacle prediction features corresponding to the obstacles. The initial model includes a feature extraction network, a feature conversion network and an obstacle feature prediction network.

[0186] The training module 604 is configured to train the initial model according to the real obstacle features and the predicted obstacle features corresponding to the obstacles to obtain an obstacle feature recognition model.

[0187] In some embodiments, the real obstacle feature includes real voxel occupancy information, and the obstacle feature prediction network includes a voxel occupancy prediction network; the second acquisition module 603 is further configured to:

[0188] Inputting the surround view image into a feature extraction network to obtain two-dimensional features corresponding to the surround view image;

[0189] Inputting the two-dimensional features into the feature conversion network to obtain three-dimensional features corresponding to the obstacle;

[0190] The three-dimensional features are input into the voxel occupancy prediction network to obtain voxel occupancy prediction information output by the voxel occupancy prediction network.

[0191] In some embodiments, the real obstacle feature further includes real voxel position information and real voxel size information corresponding to the voxel, and the obstacle feature prediction network further includes a voxel position prediction network and a voxel size prediction network; the second acquisition module 603 is further configured to:

[0192] Inputting the three-dimensional features into the voxel position prediction network to obtain voxel position prediction information output by the voxel position prediction network;

[0193] The three-dimensional features are input into the voxel size prediction network to obtain voxel size prediction information output by the voxel size prediction network.

[0194] In some embodiments, the training module 604 is further configured to:

[0195] determining a first loss value according to the voxel occupancy prediction information and the voxel occupancy actual information;

[0196] determining a second loss value according to the voxel position prediction information and the voxel position real information;

[0197] determining a third loss value according to the voxel size prediction information and the actual voxel size information;

[0198] Based on the first loss value, the second loss value, and the third loss value, network parameters of the initial model are adjusted.

[0199] In some embodiments, the determining module 602 includes:

[0200] A conversion submodule, used for converting the point cloud data into a three-dimensional coordinate system;

[0201] a segmentation submodule, configured to voxelize the three-dimensional space in the three-dimensional coordinate system according to a preset size to obtain a plurality of voxels in the three-dimensional space;

[0202] a generation submodule for generating, based on the point cloud data contained in each voxel of the plurality of voxels, a real obstacle feature corresponding to the obstacle in each voxel using key points of the point cloud within the voxel and an external graphic of the point cloud, wherein the real obstacle feature includes real voxel occupancy information corresponding to each voxel, real voxel position information corresponding to non-empty voxels, and real voxel size information.

[0203] In some embodiments, the generating submodule includes:

[0204] a first determining unit, configured to determine, based on the position of each point in the point cloud data, real voxel occupancy information corresponding to each voxel, wherein the real voxel occupancy information includes occupied and unoccupied information;

[0205] a second determining unit, configured to determine, for a non-empty voxel whose real voxel occupancy information is occupied, a centroid of the point cloud in the non-empty voxel as the key point based on a centroid calculation rule according to at least one point in the non-empty voxel;

[0206] A third determining unit is configured to determine the true voxel position information of the non-empty voxel according to the key point and a preset position determination rule;

[0207] a fourth determining unit, configured to determine the true voxel size information of the non-empty voxel by using a circumscribed graph corresponding to at least one point in the non-empty voxel;

[0208] A generating unit is configured to generate a real obstacle feature corresponding to the obstacle in each voxel based on the real voxel occupancy information corresponding to each voxel, the real voxel position information corresponding to the non-empty voxel, and the real voxel size information.

[0209] In some embodiments, the position determination rule includes: determining the position coordinates corresponding to the key point as the real voxel position information of the non-empty voxel.

[0210] In some embodiments, the position determination rule includes: determining a coordinate offset of a center point of the non-empty voxel relative to the key point as the position information of the non-empty voxel; and the third determination unit is further configured to:

[0211] Obtaining a first coordinate of a center point of the non-empty voxel;

[0212] Determining a coordinate offset of the center point relative to the key point based on the first coordinate and the second coordinate corresponding to the key point, the coordinate offset including an offset corresponding to each coordinate axis in the three-dimensional coordinate system;

[0213] The first coordinate and the coordinate offset are determined as the real voxel position information of the non-empty voxel.

[0214] In some embodiments, the fourth determining unit is further configured to:

[0215] determining, according to at least one point in the non-empty voxel, a minimum circumscribed cuboid of the at least one point in the non-empty voxel;

[0216] The real voxel size information of the non-empty voxel is determined according to the length, width and height of the minimum circumscribed cuboid.

[0217] In some embodiments, the fourth determining unit is further configured to:

[0218] When the non-empty voxel contains a point, it is determined that the length, width and height of the minimum circumscribed cuboid are all 0.

[0219] In some embodiments, the fourth determining unit is further configured to:

[0220] Comparing each side length of the minimum circumscribed cuboid with a preset length, wherein each side length includes the length corresponding to the length, width, and height of the minimum circumscribed cuboid;

[0221] When there is a side length smaller than the preset length among each side length, updating the side length smaller than the preset length to the preset length;

[0222] Based on each updated side length, the true voxel size information of the non-empty voxel is determined.

[0223] The obstacle feature recognition model training device provided in the embodiments of the present disclosure, which can be configured on a computer device, can execute any of the obstacle feature recognition model training methods provided in the embodiments of the present disclosure for use on a computer device, and has the corresponding functional modules and beneficial effects. For any details not fully described in the embodiments of the present disclosure, reference can be made to the description of any of the method embodiments of the present disclosure.

[0224] In order to implement the above embodiment, the embodiment of the present disclosure further provides a device for acquiring obstacle characteristics.

[0225] FIG8 is a schematic diagram of the structure of an obstacle feature acquisition device provided in an embodiment of the present disclosure. The device can be implemented using software and / or hardware and can be integrated on a computer device, which can be a computer, server or other electronic device.

[0226] As shown in FIG8 , the obstacle feature acquisition device 70 provided in the embodiment of the present disclosure may include: an image acquisition module 701 and a feature prediction module 702 .

[0227] The image acquisition module 701 is used to acquire surround view images of obstacles.

[0228] The feature prediction module 702 is configured to input the surround view image into a pre-trained obstacle feature recognition model to obtain obstacle prediction features corresponding to the obstacle.

[0229] The obstacle feature recognition model includes a feature extraction network, a feature conversion network, and an obstacle feature prediction network. The feature extraction network is used to extract two-dimensional features corresponding to the surround view image, the feature conversion network is used to convert the two-dimensional features into three-dimensional features, and the obstacle feature prediction network is used to predict the obstacle prediction features corresponding to the obstacle based on the three-dimensional features.

[0230] The obstacle feature acquisition device provided in the embodiments of the present disclosure, which can be configured on a computer device, can execute any of the obstacle feature acquisition methods provided in the embodiments of the present disclosure, and has the corresponding functional modules and beneficial effects. Any details not fully described in the device embodiments of the present disclosure can be referred to in the description of any of the method embodiments of the present disclosure.

[0231] The present disclosure also provides a computer device including a processor and a memory. The processor is configured to execute the steps of each embodiment of the method for training an obstacle feature recognition model as described in any of the aforementioned embodiments, or to execute the steps of each embodiment of the method for acquiring obstacle features as described in any of the aforementioned embodiments, by calling a program or instruction stored in the memory. To avoid repeated description, these steps are not repeated here.

[0232] The present disclosure also provides a computer-readable storage medium, which is non-transitory and stores programs or instructions. The programs or instructions cause a computer to execute the steps of each embodiment of the method for training an obstacle feature recognition model as described in any of the aforementioned embodiments, or to execute the steps of each embodiment of the method for acquiring obstacle features as described in any of the aforementioned embodiments. To avoid repeated description, these steps are not repeated here.

[0233] The embodiments of the present disclosure further provide a computer program product, which is used to execute the steps of each embodiment of the method for training an obstacle feature recognition model as described in any of the aforementioned embodiments, or to execute the steps of each embodiment of the method for acquiring obstacle features as described in any of the aforementioned embodiments.

[0234] The embodiments of the present disclosure further provide a computer program, comprising computer program code. When the computer program code is executed on a computer, the computer is enabled to execute the method for training an obstacle feature recognition model as described in any of the foregoing embodiments, or the method for acquiring obstacle features as described in any of the foregoing embodiments.

[0235] It should be noted that the above explanations of the method and device embodiments are also applicable to the electronic device, computer-readable storage medium, computer program product and computer program of the above embodiments, and will not be repeated here.

[0236] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0237] The foregoing description is intended only to provide specific embodiments of the present disclosure, intended to enable those skilled in the art to understand and implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the embodiments described herein, but rather to be construed in the broadest manner consistent with the principles and novel features disclosed herein.

[0238] All embodiments of the present disclosure may be implemented individually or in combination with other embodiments, and are all considered to be within the scope of protection claimed by the present disclosure.

Claims

1. A training method for an obstacle feature recognition model, characterized in that: The method comprises: Obtain surround view images and point cloud data corresponding to the same obstacle; Based on the point cloud data and preset voxels in the corresponding three-dimensional space, determine the real obstacle features corresponding to the obstacle in each voxel; Inputting the surround view image into an initial model to be trained to obtain obstacle prediction features corresponding to the obstacle, wherein the initial model includes a feature extraction network, a feature conversion network, and an obstacle feature prediction network; The initial model is trained according to the real obstacle features and the predicted obstacle features corresponding to the obstacle to obtain an obstacle feature recognition model.

2. The method according to claim 1, characterized in that The real obstacle feature includes real voxel occupancy information, and the obstacle feature prediction network includes a voxel occupancy prediction network; The step of inputting the surround view image into the initial model to be trained to obtain obstacle prediction features corresponding to the obstacle includes: Inputting the surround view image into the feature extraction network to obtain two-dimensional features corresponding to the surround view image; Inputting the two-dimensional features into the feature conversion network to obtain three-dimensional features corresponding to the obstacles; The three-dimensional features are input into the voxel occupancy prediction network to obtain voxel occupancy prediction information output by the voxel occupancy prediction network.

3. The method according to claim 2, characterized in that The real feature of the obstacle also includes the real information of the voxel position and the real information of the voxel size corresponding to the voxel, and the obstacle feature prediction network also includes the voxel position prediction network and the voxel size prediction network; The step of inputting the surround view image into the initial model to be trained to obtain obstacle prediction features corresponding to the obstacle further includes: Inputting the three-dimensional features into the voxel position prediction network to obtain voxel position prediction information output by the voxel position prediction network; The three-dimensional features are input into the voxel size prediction network to obtain voxel size prediction information output by the voxel size prediction network.

4. The method according to claim 3, characterized in that The training of the initial model according to the real obstacle features and the predicted obstacle features corresponding to the obstacle includes: Determining a first loss value according to the voxel occupancy prediction information and the voxel occupancy actual information; Determining a second loss value according to the voxel position prediction information and the voxel position real information; Determining a third loss value according to the voxel size prediction information and the voxel size real information; Based on the first loss value, the second loss value, and the third loss value, a network parameter of the initial model is adjusted.

5. The method according to any one of claims 1 to 4, characterized in that The determining, based on the point cloud data and corresponding preset voxels in the three-dimensional space, the real feature of the obstacle corresponding to each voxel of the obstacle includes: Converting the point cloud data into a three-dimensional coordinate system; voxelize the three-dimensional space in the three-dimensional coordinate system according to a preset size to obtain a plurality of voxels in the three-dimensional space; According to the point cloud data contained in each voxel of the multiple voxels, the real features of the obstacle corresponding to the obstacle in each voxel are generated by utilizing the key points of the point cloud in the voxel and the external graphics of the point cloud. The real features of the obstacle include the real information of voxel occupancy corresponding to each voxel, the real information of voxel position corresponding to the non-empty voxel, and the real information of voxel size.

6. The method according to claim 5, characterized in that The step of generating the obstacle real features corresponding to the obstacle in each voxel according to the point cloud data contained in each voxel of the plurality of voxels and using the key points of the point cloud in the voxel and the circumscribed graphics of the point cloud comprises: Determine, according to the position of each point in the point cloud data, the real voxel occupancy information corresponding to each voxel, wherein the real voxel occupancy information includes occupied and unoccupied; For the non-empty voxel whose real voxel occupancy information is occupied, determining the centroid of the point cloud in the non-empty voxel as the key point based on a centroid calculation rule according to at least one point in the non-empty voxel; According to the key points, based on a preset position determination rule, determining the real voxel position information of the non-empty voxel; Determine the real voxel size information of the non-empty voxel by using the circumscribed graph corresponding to at least one point in the non-empty voxel; Based on the voxel occupancy real information corresponding to each voxel, the voxel position real information corresponding to the non-empty voxel, and the voxel size real information, a real obstacle feature corresponding to the obstacle in each voxel is generated.

7. The method according to claim 6, characterized in that The position determination rule includes: The position coordinates corresponding to the key points are determined as the real voxel position information of the non-empty voxels.

8. The method according to claim 6 or 7, characterized in that: The position determination rule includes: Determine the coordinate offset of the center point of the non-empty voxel relative to the key point as the position information of the non-empty voxel; The determining, according to the key point and based on a preset position determination rule, the real voxel position information of the non-empty voxel includes: Obtaining a first coordinate of a center point of the non-empty voxel; Determine, according to the first coordinate and the second coordinate corresponding to the key point, a coordinate offset of the center point relative to the key point, wherein the coordinate offset includes an offset corresponding to each coordinate axis in the three-dimensional coordinate system; The first coordinate and the coordinate offset are determined as the real voxel position information of the non-empty voxel.

9. The method according to any one of claims 6 to 8, characterized in that The determining the real voxel size information of the non-empty voxel by using the circumscribed graph corresponding to at least one point in the non-empty voxel comprises: Determine the minimum circumscribed area of ​​the at least one point in the non-empty voxel according to the at least one point in the non-empty voxel. cuboid; According to the length, width and height of the minimum circumscribed cuboid, the real voxel size information of the non-empty voxel is determined.

10. The method according to claim 9, characterized in that The method further comprises: When the non-empty voxel contains a point, it is determined that the length, width and height of the minimum circumscribed cuboid are all 0.

11. The method according to claim 9 or 10, characterized in that: The determining the real voxel size information of the non-empty voxel according to the length, width and height of the minimum circumscribed cuboid includes: Compare each side length of the minimum circumscribed cuboid with a preset length, wherein each side length includes the lengths corresponding to the length, width, and height of the minimum circumscribed cuboid; When there is a side length shorter than the preset length among each side length, updating the side length shorter than the preset length to the preset length; Based on each updated edge length, the real voxel size information of the non-empty voxel is determined.

12. A method for obtaining obstacle characteristics, characterized in that: The method comprises: Obtain surround images of obstacles; Inputting the surround view image into a pre-trained obstacle feature recognition model to obtain obstacle prediction features corresponding to the obstacle; Among them, the obstacle feature recognition model includes a feature extraction network, a feature conversion network and an obstacle feature prediction network. The feature extraction network is used to extract the two-dimensional features corresponding to the surround view image, the feature conversion network is used to convert the two-dimensional features into three-dimensional features, and the obstacle feature prediction network is used to predict the obstacle prediction features corresponding to the obstacle based on the three-dimensional features.

13. A training device for an obstacle feature recognition model, characterized in that: The device comprises: The first acquisition module is used to acquire the surround view image and point cloud data corresponding to the same obstacle; A determination module, used to determine the real features of the obstacle corresponding to the obstacle based on the point cloud data; A second acquisition module is used to input the surround view image into the initial model to be trained to obtain obstacle prediction features corresponding to the obstacle; The training module is used to train the initial model according to the real obstacle features and the predicted obstacle features corresponding to the obstacles to obtain an obstacle feature recognition model.

14. A device for acquiring obstacle characteristics, characterized in that: The device comprises: An image acquisition module is used to acquire a surround view image of obstacles; A feature prediction module, used to input the surround view image into a pre-trained obstacle feature recognition model to obtain obstacle prediction features corresponding to the obstacle; Among them, the obstacle feature recognition model includes a feature extraction network, a feature conversion network and an obstacle feature prediction network. The feature extraction network is used to extract the two-dimensional features corresponding to the surround view image, the feature conversion network is used to convert the two-dimensional features into three-dimensional features, and the obstacle feature prediction network is used to predict the obstacle prediction features corresponding to the obstacle based on the three-dimensional features.

15. A computer device, characterized in that: include: Processor and memory; The processor is used to execute the training method of the obstacle feature recognition model as described in any one of claims 1 to 11, or to execute the method for acquiring obstacle features as described in claim 12 by calling the program or instruction stored in the memory.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or instruction, which enables a computer to execute the training method of the obstacle feature recognition model as described in any one of claims 1 to 11, or the method for acquiring obstacle features as described in claim 12.

17. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method for training an obstacle feature recognition model as claimed in any one of claims 1 to 11, or the method for acquiring obstacle features as claimed in claim 12.

18. A computer program, characterized in that The computer program includes computer program code, and when the computer program code is run on a computer, the computer executes the training method for the obstacle feature recognition model as described in any one of claims 1 to 11, or the method for obtaining obstacle features as described in claim 12.

Citation Information

Patent Citations

  • Obstacle recognition method and device for vehicles

    CN106707293A

  • Training method of image recognition model, and image recognition method and device

    CN113255444A

  • Point cloud segmentation model training method, point cloud data segmentation method and related device

    CN114638954A

  • Voxel-based feature learning network

    US10970518B1