Point cloud object detection method, computer device, storage medium, and vehicle
By splitting the three-dimensional point cloud frame and optimizing the calculation method of the corner points of the detection frame, the problem of detection frame accuracy when the target is occluded is solved, and the accuracy of point cloud target detection and the reliability of target tracking are improved.
Patent Information
- Application Number
- PCT/CN2023/138983
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-03
- Filing Date
- 2023-12-15
- Publication Date
- 2024-09-12
AI Technical Summary
Existing point cloud target detection methods are difficult to obtain accurate three-dimensional center point coordinates when the target is occluded, which affects the accuracy of the detection frame, thereby reducing the accuracy of target detection.
By acquiring the three-dimensional point cloud frame collected by the radar, detect the minimum and maximum values of the target on the Z axis, split it into two XY planes, calculate the three-dimensional coordinates of the corner points of each detection frame, and use the preset point cloud target detection The model is trained and adjusted, and the loss weights are optimized to improve the accuracy of detecting box corners.
Even when the target is occluded, the coordinates of the unobstructed endpoint of the target can be accurately obtained, improving the accuracy of target detection, and providing reliable tracking corners for target tracking, ensuring the accuracy and reliability of target tracking.
Smart Images

Figure CN2023138983_12092024_PF_FP_ABST
Abstract
Description
Point cloud target detection method, computer equipment, storage medium and vehicle
[0001] This application claims priority to Chinese patent application No. 202310194602.4 filed on March 3, 2023, entitled “Point cloud target detection method, computer equipment, storage medium and vehicle”. The entire contents of the above Chinese patent application are incorporated into this application by reference. Technical Field
[0002] The present application relates to the field of autonomous driving technology, and specifically to a point cloud target detection method, computer equipment, storage medium, and vehicle. Background Art
[0003] When controlling a vehicle autonomously, a radar is usually used to collect a three-dimensional point cloud of the surrounding environment. Target detection is then performed on the three-dimensional point cloud to obtain a three-dimensional detection frame of the target. The target's type, position, size, and other information are then further detected based on the three-dimensional detection frame of the target. Currently, conventional point cloud target detection methods mainly use the CSA model to obtain the target's three-dimensional detection frame, which uses the three-dimensional center point coordinates (Center), three-dimensional size (Size), and target angle (Angle) to represent the three-dimensional detection frame. However, in actual applications, the target may be obscured, which results in missing three-dimensional point clouds collected for the target. In this case, it is difficult to obtain accurate three-dimensional center point coordinates, which in turn affects the accuracy of the three-dimensional detection frame, ultimately reducing the accuracy of target detection.
[0004] Accordingly, this field requires a new technical solution to solve the above problems.
[0005] Summary of the Invention
[0006] In order to overcome the above-mentioned defects, the present application is proposed to provide a point cloud target detection method, a computer device and a computer-readable storage medium that solve or at least partially solve the technical problem of how to improve the accuracy of point cloud target detection.
[0007] In a first aspect, a point cloud target detection method is provided, the method comprising: obtaining a three-dimensional point cloud frame collected by a radar; performing target detection on the three-dimensional point cloud frame to obtain a three-dimensional target detection frame represented by the three-dimensional coordinates of the corner points of the detection frame; and obtaining a target detection result based on the three-dimensional target detection frame.
[0008] In a technical solution of the above-mentioned point cloud target detection method, the step of "obtaining a three-dimensional target detection frame represented by the three-dimensional coordinates of the detection frame corner points" specifically includes: detecting the minimum value and the maximum value of the target in the three-dimensional point cloud frame on the Z axis, and respectively obtaining a first XY plane and a second XY plane that intersect the Z axis at the minimum value and the maximum value; detecting the two-dimensional coordinates of the corner points of the first detection frame of the two-dimensional detection frame corresponding to the target on the first XY plane, and obtaining the three-dimensional coordinates of the corner points of the first detection frame according to the two-dimensional coordinates and the minimum value; detecting the two-dimensional coordinates of the corner points of the second detection frame of the two-dimensional detection frame corresponding to the target on the second XY plane, and obtaining the three-dimensional coordinates of the corner points of the second detection frame according to the two-dimensional coordinates and the maximum value; obtaining the three-dimensional coordinates of the three-dimensional target detection frame according to the three-dimensional coordinates of the corner points of the first detection frame and the second detection frame.
[0009] In a technical solution of the above-mentioned point cloud target detection method, the method further includes: using a preset point cloud target detection model to respectively detect the two-dimensional coordinates of the corner points of the first detection frame and the second detection frame; wherein the preset point cloud target detection model is trained by: using the point cloud target detection model to detect a specific value of the target on the Z axis in a sample of the three-dimensional point cloud frame, and obtaining a third XY plane intersecting with the Z axis at the specific value, where the specific value is the minimum value or maximum value of the target on the Z axis, and obtaining the two-dimensional coordinate prediction values and predicted arrangement order of the corner points of the three-dimensional detection frame corresponding to the target on the third XY plane, and obtaining the true two-dimensional coordinate values and true arrangement order of the corner points of the third detection frame according to the sample; according to the predicted arrangement order and the true arrangement order of the corner points of the third detection frame, respectively forming a coordinate group with the predicted two-dimensional coordinate values and the true two-dimensional coordinate values corresponding to the same arrangement position; using a regression loss function to respectively obtain the loss value between the predicted two-dimensional coordinate value and the true two-dimensional coordinate value in each coordinate group, and obtaining a model loss value based on the loss value; and updating the model parameters of the point cloud target detection model according to the model loss value.
[0010] In a technical solution of the above-mentioned point cloud target detection method, before the step of "obtaining a model loss value based on the loss value", the method also includes: analyzing the visibility of each third detection frame corner point on the third XY plane respectively; adjusting the loss weight of the loss value corresponding to the two-dimensional coordinate prediction value of each third detection frame corner point according to the visibility analysis results; and obtaining the model loss value based on the loss value and the adjusted loss weight.
[0011] In a technical solution of the above-mentioned point cloud target detection method, the step of "adjusting the loss weight of the loss value corresponding to the two-dimensional coordinate prediction value of each corner point of the third detection frame according to the visibility analysis result" specifically includes: judging whether the corner point of the third detection frame is visible according to the visibility analysis result; if it is visible, increasing the corresponding loss weight; if it is not visible, reducing the corresponding loss weight.
[0012] In a technical solution of the above-mentioned point cloud target detection method, the step of "analyzing the visibility of each third detection frame corner point on the third XY plane respectively" specifically includes: analyzing the visibility of the third detection frame corner point on the X-axis and Y-axis of the third XY plane respectively; the step of "adjusting the loss weight of the loss value corresponding to the two-dimensional coordinate prediction value of each third detection frame corner point according to the visibility analysis result" specifically includes: adjusting the loss weight of the loss value corresponding to the X-axis coordinate in the two-dimensional coordinate prediction value according to the analysis result of the visibility of the third detection frame corner point on the X-axis; adjusting the loss weight of the loss value corresponding to the Y-axis coordinate in the two-dimensional coordinate prediction value according to the analysis result of the visibility of the third detection frame corner point on the Y-axis.
[0013] In a technical solution of the above-mentioned point cloud target detection method, before the step of "forming a coordinate group with the two-dimensional coordinate prediction values and the two-dimensional coordinate true values corresponding to the same arrangement position according to the predicted arrangement order and the true arrangement order of the third detection frame corner points", the method also includes: performing target orientation prediction on the sample to obtain the predicted orientation of the target, the third detection frame corner point with the first arrangement position in the predicted arrangement order is located in the upper left of the predicted orientation and each third detection frame corner point is arranged in sequence according to a preset order; judging whether the predicted orientation of the target is opposite to the preset true orientation, the third detection frame corner point with the first arrangement position in the true arrangement order is located in the upper left of the true orientation and each third detection frame corner point is also arranged in sequence according to the preset order; if opposite, adjusting the predicted arrangement order of the third detection frame corner points so that the predicted orientation of the target is the same as the true orientation and the third detection frame corner point with the first arrangement position in the predicted arrangement order is always located in the upper left of the predicted orientation; if not opposite, not adjusting the predicted arrangement order of the third detection frame corner points.
[0014] In a technical solution of the above-mentioned point cloud target detection method, the step of "adjusting the predicted arrangement order of the corner points of the third detection frame" specifically includes: calculating the angle between the edge formed by connecting each two adjacent third detection frame corner points and the predicted direction; taking the edge corresponding to the minimum angle as the long side of the two-dimensional detection frame and adjusting the arrangement order of each third detection frame corner point according to the preset order until the predicted direction of the target is the same as the preset true direction.
[0015] In a technical solution of the above-mentioned point cloud target detection method, the step of "obtaining a predicted arrangement order of the corner points of the third detection frame" specifically includes: obtaining the predicted arrangement order of the corner points of the third detection frame for each different orientation of the target, and each group of predicted arrangement orders corresponds to each orientation one-to-one; the step of "forming a coordinate group with the predicted two-dimensional coordinate values corresponding to the same arrangement position and the true two-dimensional coordinate values according to the predicted arrangement order and the true arrangement order" specifically includes: for each group of predicted arrangement orders, according to the current group of predicted arrangement orders and the true arrangement order, respectively forming a coordinate group with the predicted two-dimensional coordinate values corresponding to the same arrangement position and the true two-dimensional coordinate values; the step of "obtaining a model loss value" specifically includes: for each group of predicted arrangement orders, using a regression loss function to obtain the loss value between the predicted two-dimensional coordinate value and the true two-dimensional coordinate value in each coordinate group corresponding to the current group of predicted arrangement orders, and obtaining a model loss value based on the loss value; the step of "updating the model parameters of the point cloud target detection model based on the model loss value" specifically includes: selecting the minimum model loss value from the model loss values corresponding to each group of predicted arrangement orders, and updating the model parameters based on the minimum model loss value.
[0016] In a second aspect, a computer device is provided, which includes a processor and a storage device, wherein the storage device is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute the method described in any one of the technical solutions of the above-mentioned point cloud target detection method.
[0017] In a third aspect, a computer-readable storage medium is provided, which stores a plurality of program codes, wherein the program codes are suitable for being loaded and run by a processor to execute the method described in any one of the technical solutions of the above-mentioned point cloud target detection method.
[0018] In a fourth aspect, a vehicle is provided, comprising the computer device described in the technical solution of the above-mentioned computer device.
[0019] The above one or more technical solutions of this application have at least one or more of the following beneficial effects:
[0020] In the technical solution for implementing the point cloud target detection method provided in the present application, a three-dimensional point cloud frame collected by a radar can be obtained, and target detection can be performed on the three-dimensional point cloud frame to obtain a three-dimensional target detection frame represented by the three-dimensional coordinates of the corner points of the detection frame, and the target detection result can be obtained based on the three-dimensional target detection frame. Through the above method, even if the three-dimensional point cloud collected by the radar for the target is missing due to the existence of occlusion of the target, the coordinates of the unobstructed endpoints of the target can be accurately obtained based on the three-dimensional coordinates of the corner points of the detection frame in the three-dimensional target detection frame, thereby effectively improving the accuracy of target detection. At the same time, it also increases the effective tracking corner points (or tracking endpoints) for target tracking, ensuring the accuracy and reliability of target tracking. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The disclosure of this application will become more easily understood with reference to the accompanying drawings. Those skilled in the art will readily appreciate that these drawings are for illustrative purposes only and are not intended to limit the scope of protection of this application. Among them:
[0022] FIG1 is a schematic flow chart of the main steps of a point cloud object detection method according to an embodiment of the present application;
[0023] FIG2 is a flow chart showing the main steps of a method for obtaining a three-dimensional object detection frame according to an embodiment of the present application;
[0024] FIG3 is a flow chart showing the main steps of a method for training a point cloud object detection model according to an embodiment of the present application;
[0025] FIG4 is a schematic diagram of corner points of a detection frame according to an embodiment of the present application;
[0026] FIG5 is a schematic diagram of obtaining a three-dimensional detection frame using the CSA mode in the prior art;
[0027] FIG6 is a schematic diagram of reversing a target prediction direction according to an embodiment of the present application;
[0028] FIG7 is a schematic diagram of adjusting different target orientations according to an embodiment of the present application;
[0029] FIG8 is a schematic diagram of the main structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] Some embodiments of the present application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the scope of protection of the present application.
[0031] In the description of this application, a "processor" may include hardware, software, or a combination of the two. A processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. A processor has data and / or signal processing capabilities. A processor may be implemented in software, hardware, or a combination of the two. Computer-readable storage media include any suitable medium capable of storing program code, such as a magnetic disk, a hard disk, an optical disk, flash memory, read-only memory, random access memory, and the like.
[0032] The following describes an embodiment of the point cloud target detection method provided in this application.
[0033] Referring to FIG1 , FIG1 is a schematic flow chart of the main steps of a point cloud object detection method according to an embodiment of the present application. As shown in FIG1 , the point cloud object detection method in the embodiment of the present application mainly includes the following steps S101 to S103.
[0034] Step S101: Acquire a three-dimensional point cloud frame collected by a radar.
[0035] The three-dimensional point cloud frame can be a point cloud frame obtained by collecting the surrounding environment through the radar on the vehicle (such as a lidar). The point cloud on the point cloud frame is determined based on the echo signal reflected back by the environmental point in the environment after receiving the electromagnetic wave emitted by the radar. Each point cloud corresponds to each environmental point one by one. The point cloud contains the coordinates of the environmental point in the three-dimensional coordinate system, which can be a point cloud coordinate system. It should be noted that the operations involving the vehicle, such as collecting point cloud frames through the radar on the vehicle mentioned in this application, are all performed after full authorization by the user or all parties. In other words, the vehicle in this application is an authorized vehicle. In some embodiments, the vehicle computer or the background server can detect whether the authorization information is received. If the authorization information is received, it indicates that the current vehicle is an authorized vehicle, otherwise the current vehicle is an unauthorized vehicle. Among them, the authorization information can be sent through terminal devices including but not limited to mobile phones, tablets and smart watches.
[0036] Step S102: performing target detection on the three-dimensional point cloud frame to obtain a three-dimensional target detection frame represented by the three-dimensional coordinates of the corner points of the detection frame.
[0037] A 3D object detection box of an object refers to a detection box that contains all or most of the 3D point cloud of the object. A 3D object detection box represents an object in the current environment. In some embodiments, the object includes at least a motor vehicle and a traffic sign on the road.
[0038] Since the three-dimensional target detection box is a rectangular parallelepiped, it has 8 detection box corner points. In the embodiment of the invention, target detection can be performed on the three-dimensional point cloud frame to obtain the three-dimensional coordinates (x, y, z) of each detection box corner point respectively, and then the three-dimensional coordinates (x, y, z) of the eight detection box corner points are used to represent the three-dimensional target detection box. For example, the three-dimensional target detection box can be represented as [x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4, x5, y5, z5, x6, y6, z6, x7, y7, z7, x8, y8, z8], where "x1, y1, z1" represents the coordinates of the first detection box corner point on the X-axis, Y-axis, and Z-axis. The meanings of other parameters are similar and will not be repeated here.
[0039] Step S103: Obtain target detection results based on the three-dimensional target detection frame.
[0040] Based on the three-dimensional coordinates of each corner point of the three-dimensional target detection frame, information such as the size, position, and angle of the three-dimensional target detection frame relative to a specified direction can be obtained. This information is the same as the different types of target detection results. In other words, the size, position, and angle of the three-dimensional target detection frame are the same as the size, position, and angle of the target represented by the three-dimensional target detection frame. Those skilled in the art can flexibly use the three-dimensional coordinates of the detection frame corner points to obtain different types of target detection results based on actual needs. This is not specifically limited in the embodiments of the present application, as long as the three-dimensional coordinates of the detection frame corner points can be used to obtain the desired type of target detection result.
[0041] For example, assuming that the target is a motor vehicle, the size and position of the motor vehicle can be obtained based on the three-dimensional target detection frame of the motor vehicle.
[0042] Based on the method described in steps S101 to S103 above, even if the target is blocked, resulting in missing three-dimensional point clouds collected by the radar for the target, the coordinates of the unobstructed endpoints of the target can be accurately obtained based on the three-dimensional coordinates of the corner points of the detection frame in the three-dimensional target detection frame, thereby effectively improving the accuracy of target detection and increasing the effective tracking corner points for target tracking, thereby ensuring the accuracy and reliability of target tracking.
[0043] The above step S102 is further explained below.
[0044] Referring to FIG. 2 , in order to conveniently and accurately obtain the three-dimensional coordinates of each detection frame corner point, the following steps S1021 to S1024 may be performed to obtain the three-dimensional coordinates of each detection frame corner point in the three-dimensional target detection frame.
[0045] Step S1021: Detect the minimum and maximum values of the target on the Z axis in the three-dimensional point cloud frame, and respectively obtain a first XY plane and a second XY plane intersecting the Z axis at the minimum and maximum values.
[0046] In the embodiment of the present application, a conventional position detection method in the field of three-dimensional point cloud technology can be used to detect the minimum and maximum values of the target on the Z axis, and the embodiment of the present application does not specifically limit this. For example, in some embodiments, after determining all the point clouds corresponding to the target, the minimum and maximum values of the Z axis in these three-dimensional coordinates can be selected according to the three-dimensional coordinates of each point cloud, and the minimum and maximum values of the point cloud on the Z axis can be used as the minimum and maximum values of the target on the Z axis. In addition, in some embodiments, a pre-trained detection model with the ability to detect the minimum and maximum values of the target on the Z axis can be used to detect the three-dimensional point cloud frame to obtain the minimum and maximum values of the target on the Z axis. For example, a sample of a three-dimensional point cloud frame with the minimum and maximum values of the target on the Z axis can be used, and a regression loss function can be used to train the detection model so that it has the ability to detect the minimum and maximum values of the target on the Z axis, and then the trained detection model can be used to detect the three-dimensional point cloud frame.
[0047] The XY plane is a two-dimensional plane parallel to both the X and Y axes in a three-dimensional coordinate system. The first XY plane is perpendicular to the Z axis, and the intersection is the target's minimum Z value. The second XY plane is perpendicular to the Z axis, and the intersection is the target's maximum Z value.
[0048] Step S1022: Detect the two-dimensional coordinates of the corner points of the first detection frame of the two-dimensional detection frame corresponding to the target on the first XY plane, and obtain the three-dimensional coordinates of the corner points of the first detection frame according to the two-dimensional coordinates and the minimum value.
[0049] Since the first XY plane intersects with the minimum value of the target on the Z axis, the first XY plane can be understood as a two-dimensional cross-section of the bottom of the target. The two-dimensional detection frame corresponding to the target on the first XY plane can be understood as a two-dimensional detection frame formed by the four detection frame corner points at the bottom of the target. In addition, it can also be understood as the projection of the three-dimensional target detection frame on the first XY plane.
[0050] The two-dimensional coordinates of the corner points of the first detection frame refer to the coordinates of the corner points of the first detection frame on the X-axis and Y-axis. After obtaining the above two-dimensional coordinates, the minimum value of the target on the Z-axis is used as the coordinate of the corner points of the first detection frame on the Z-axis to obtain the three-dimensional coordinates of the corner points of the first detection frame.
[0051] Step S1023: Detect the two-dimensional coordinates of the corner points of the second detection frame of the two-dimensional detection frame corresponding to the target on the second XY plane, and obtain the three-dimensional coordinates of the corner points of the second detection frame according to the two-dimensional coordinates and the maximum value.
[0052] Since the second XY plane intersects with the maximum value of the target on the Z axis, the second XY plane can be understood as a two-dimensional cross-section of the top of the target. The two-dimensional detection frame corresponding to the target on the second XY plane can be understood as a two-dimensional detection frame formed by the four detection frame corner points at the top of the target. In addition, it can also be understood as the projection of the three-dimensional target detection frame on the second XY plane.
[0053] The two-dimensional coordinates of the corner points of the second detection frame refer to the coordinates of the corner points of the second detection frame on the X-axis and Y-axis. After obtaining the above two-dimensional coordinates, the maximum value of the target on the Z-axis is used as the coordinate of the corner points of the second detection frame on the Z-axis to obtain the three-dimensional coordinates of the corner points of the second detection frame.
[0054] Step S1024: Obtain a three-dimensional object detection frame according to the three-dimensional coordinates of the corner points of the first detection frame and the second detection frame.
[0055] After obtaining the three-dimensional coordinates of the four corner points of the first detection frame and the three-dimensional coordinates of the four corner points of the second detection frame, these three-dimensional coordinates can be used to represent the three-dimensional object detection frame.
[0056] Based on the method described in steps S1021 to S1024 above, the three-dimensional target detection frame can be split into two two-dimensional detection frames. The coordinates of the detection frame corner points of the three-dimensional detection frame are obtained by obtaining the coordinates of the detection frame corner points of the two-dimensional detection frame, thereby significantly improving the convenience and accuracy of obtaining the coordinates of the detection frame corner points of the three-dimensional target detection frame.
[0057] Furthermore, in some embodiments, in the above-mentioned steps S1022 and S1023, a preset point cloud target detection model can be used to respectively detect the two-dimensional coordinates of the corner points of the first detection frame and the second detection frame. The point cloud target detection model is a pre-trained model that has the ability to detect the above-mentioned two-dimensional coordinates. When executing steps S1022 and S1023, it is only necessary to call the point cloud target detection model. There is no need to train the point cloud target detection model every time the two-dimensional coordinates are detected, and then use the trained point cloud target detection model to detect the two-dimensional coordinates.
[0058] The following describes the training method of the point cloud target detection model.
[0059] Referring to FIG. 3 , in the embodiment of the present application, a regression loss function may be used and the following steps S201 to S205 may be performed to train a point cloud target detection model.
[0060] Step S201: Use the point cloud target detection model to detect a specific value of the target on the Z axis in the sample of the three-dimensional point cloud frame, and obtain a third XY plane that intersects the Z axis at the specific value, where the specific value is the minimum or maximum value of the target on the Z axis.
[0061] Step S202: Obtain the two-dimensional coordinate prediction values and predicted arrangement order of the corner points of the third detection frame of the two-dimensional detection frame corresponding to the target on the third XY plane, and obtain the two-dimensional coordinate true values and true arrangement order of the corner points of the third detection frame based on the sample.
[0062] When the specific value is the minimum value of the target on the Z axis, the third XY plane has the same meaning as the first XY plane in the aforementioned embodiment; when the specific value is the maximum value of the target on the Z axis, the third XY plane has the same meaning as the second XY plane in the aforementioned embodiment.
[0063] A two-dimensional detection frame includes four detection frame corner points. The positions of these four detection frame corner points are unchanged, but these four detection frame corner points can be sorted according to a preset sorting rule. Those skilled in the art can flexibly set the specific content of the sorting rule according to actual needs, as long as the predicted sorting order and the actual sorting order are obtained based on the same sorting rule. In some preferred embodiments, the sorting rule can be set according to the target orientation. Specifically, the third detection frame corner point located in the upper left of the target orientation can be used as the first corner point in the sorting order, and then the other third detection frame corner points are sorted in sequence according to the preset order. As shown in Figure 4, the rectangular box in Figure 4 represents a two-dimensional detection frame, and the black origin in the rectangular box represents the point cloud. The orientation of the target represented by this two-dimensional detection frame is upward. First, the third detection frame corner point located in the upper left of the target orientation is used as the first corner point in the sorting order and is numbered 0. Then, the third detection frame corner points located in the upper right, lower right, and lower left of the target orientation are sorted in a clockwise direction and are numbered 1, 2, and 3 respectively.
[0064] The predicted 2D coordinate values and predicted order can be obtained by the point cloud object detection model. The 3D point cloud frame samples are pre-annotated with the true 2D coordinate values and order of the third detection box corner points. This information can be obtained from the sample annotations. Training the point cloud object detection model not only trains the model to predict the 2D coordinate values, but also trains it to predict the order.
[0065] Step S203: According to the predicted arrangement order and the actual arrangement order of the corner points of the third detection frame, the two-dimensional coordinate prediction values and the two-dimensional coordinate actual values corresponding to the same arrangement position are respectively formed into a coordinate group.
[0066] Continuing to refer to Figure 4, assuming that the corner points of the third detection box located in the upper left, upper right, lower right and lower left in Figure 4 are ABCD respectively, the predicted arrangement order is BCDA and the predicted values of the two-dimensional coordinates of BCDA are (x12, y12), (x13, y13), (x14, y14), (x11, y11), the actual arrangement order is ABCD and the actual values of the two-dimensional coordinates of ABCD are (x21, y21), (x22, y22), (x23, y23), (x24, y24), at this time x12, y12, x13, y13, x14, y14, x11, y11, correspond one-to-one with x21, y21, x22, y22, x23, y23, x24, y24 respectively, and eight coordinate groups can be formed.
[0067] Step S204: using the regression loss function to obtain the loss value between the predicted value of the two-dimensional coordinates and the true value of the two-dimensional coordinates in each coordinate group respectively, and obtaining the model loss value according to the loss value.
[0068] In the embodiment of the present application, a conventional regression loss function in the field of model training technology can be used to obtain the above loss value and model loss value, and the embodiment of the present application does not specifically limit this. For example, in some embodiments, a smooth loss function can be used, and the model loss value obtained at this time can be shown as the following formula (1). L = ∑i∈{x1,y1,x2,y2,x3,y3,x4,y4}w i *smooth(t i -v i ) (1)
[0069] The meanings of the parameters in formula (1) are as follows:
[0070] t i represents the predicted value of the i-th two-dimensional coordinate, v i Represents the predicted value t of the i-th two-dimensional coordinate i The corresponding two-dimensional coordinate true value points, smooth(t i -v i ) represents the predicted value t of the i-th two-dimensional coordinate obtained by the smooth loss function i The corresponding loss value, w i Represents the loss weight of the loss value, and L represents the model loss value obtained according to the loss value corresponding to each two-dimensional coordinate prediction value.
[0071] In the embodiment of the present application, since the contribution of the two-dimensional coordinate prediction value of each detection frame corner point to the accuracy of the detection frame is the same, the loss weight w corresponding to the two-dimensional coordinate prediction value of each detection frame corner point is i They can be set to the same value, for example, both can be set to 1.
[0072] Step S205: Update the model parameters of the point cloud object detection model according to the model loss value. Specifically, the model parameter gradients of the point cloud object detection model can be calculated according to the model loss value, and the model parameters can be updated according to the model parameter gradient backpropagation.
[0073] Those skilled in the art can adopt conventional model training methods in the field of model training technology to update the model parameters according to the above-mentioned model loss value, and the embodiments of the present application do not specifically limit this. In addition, it should be noted that the training process described in the above-mentioned steps S201 to S205 is an iterative training process for the point cloud target detection model. In order to ensure the detection accuracy of the point cloud target detection model, the above-mentioned training process can be repeated multiple times, that is, the point cloud target detection model is iteratively trained multiple times until the preset detection accuracy requirements are met or the number of iterative training reaches a preset threshold, and then the training is stopped.
[0074] Refer to Figure 5, which illustrates the results of obtaining a three-dimensional detection frame using the CSA model in the prior art. In Figure 5, detection frame 1 represents the actual detection frame, and detection frames 2 and 3 represent the detection frames predicted using the CSA model. The length loss between detection frame 2 and detection frame 1 is 0.5, and the angle loss between detection frame 3 and detection frame 1 is also 0.5. Although the loss values for detection frames 2 and 3 are both 0.5, the accuracy of detection frame 3 is much lower than that of detection frame 2. In other words, in this example, the angle has a greater impact on the accuracy of the detection frame than the length. In practical applications, the postures and types of targets are diverse, and the occlusion situations are also diverse. The contribution of the three-dimensional center point coordinates (Center), three-dimensional size (Size) and target angle (Angle) in the CSA mode to the accuracy of the detection frame is not fixed, and it is impossible to accurately analyze the contribution of Center, Size and Angle in each case. Therefore, when using the regression loss function to train the point cloud target detection model, it will be impossible to accurately determine the loss weights corresponding to Center, Size and Angle, which will not only fail to guarantee the accuracy of the detection frame, but also increase the difficulty of model training.
[0075] In the method described in steps S201 to S205, since the contribution of the two-dimensional coordinate prediction value of each detection frame corner point to the accuracy of the detection frame is the same, even if the two-dimensional coordinate prediction value of an individual detection frame corner point is inaccurate, it will not reduce the accuracy of the detection frame, so that the accuracy of the detection frame is effectively guaranteed. At the same time, the loss weight w corresponding to the two-dimensional coordinate prediction value of each detection frame corner point is set as i It can be set to the same value, and the training difficulty of the model can be significantly reduced, thereby improving the detection ability of the model and further ensuring the accuracy of the detection frame.
[0076] The above step S204 is further explained below.
[0077] According to the description of the above embodiment, the contribution of the two-dimensional coordinate prediction value of each detection box corner point to the accuracy of the detection box is the same. Therefore, the loss weight w corresponding to the two-dimensional coordinate prediction value of each detection box corner point can be i can be set to the same value. However, in actual applications, the target may be obscured. In this case, the loss weight of each detection box corner point can be adjusted separately according to whether each detection box corner point is visible, so that the model training pays more attention to the unobstructed detection box corner points. Specifically, in some implementations of the above step S204, after obtaining the loss value between the two-dimensional coordinate prediction value and the two-dimensional coordinate true value in each coordinate group, the model loss value can be obtained through the following steps 11 to 13.
[0078] Step 11: Analyze the visibility of each corner point of the third detection box on the third XY plane.
[0079] Visibility analysis is used to determine whether the corner points of the third detection frame are visible or invisible on the third XY plane. If they are visible, the corner points of the third detection frame are not occluded; otherwise, they are occluded.
[0080] It should be noted that, in the embodiment of the present application, a conventional endpoint visibility analysis method in the field of point cloud technology can be used to analyze whether the corner points of the third detection box are visible on the third XY plane, wherein the corner points of the third detection box refer to the endpoints in the endpoint visibility analysis method. The embodiment of the present application does not specifically limit the above-mentioned endpoint visibility analysis method. For example, the endpoint visibility analysis method disclosed in the paper titled "Labels Are Not Perfect: Improving Probabilistic Object Detection via Label Uncertainty" published in 2020 on the preprint system arXiv.org can be used.
[0081] Step 12: Based on the visibility analysis results, adjust the loss weight of the loss value corresponding to the two-dimensional coordinate prediction value of each corner point of the third detection box.
[0082] Specifically, for the visible corner points of the third detection frame, the loss weight of the loss value corresponding to the two-dimensional coordinate prediction value can be adjusted so that the model pays more attention to the two-dimensional coordinate prediction value of the third detection frame corner point during training; for the invisible corner points of the third detection frame, the loss weight of the loss value corresponding to the two-dimensional coordinate prediction value can be adjusted so that the model pays less attention to the two-dimensional coordinate prediction value of the third detection frame corner point during training.
[0083] In some embodiments, if the third detection frame corner point is visible, the corresponding loss weight is increased; if the third detection frame corner point is not visible, the corresponding loss weight is decreased. Those skilled in the art can flexibly set the amount of increase or decrease in the loss weight based on actual needs, and this embodiment of the application does not specifically limit this.
[0084] Step 13: Get the model loss value based on the loss value and the adjusted loss weight.
[0085] Specifically, the loss values can be weighted and calculated according to the adjusted loss weights, and the result of the weighted sum calculation can be used as the model loss value.
[0086] Based on the method described in steps 11 to 13 above, the loss weight of the loss value corresponding to the two-dimensional coordinate prediction value can be flexibly adjusted according to the visibility of the corner points of the third detection frame, so that the model pays more attention to the unobstructed corner points of the third detection frame during training, thereby further improving the training effect of the model, improving the detection capability of the model, and ensuring the accuracy of the detection frame.
[0087] The above steps 11 and 12 are further explained below.
[0088] In the above step 11, since the two-dimensional coordinate prediction value of the corner point of the third detection frame includes two coordinates of the X-axis and the Y-axis, in order to further improve the accuracy of the visibility analysis, when analyzing the visibility of the corner point of the third detection frame on the third XY plane, the visibility of the corner point of the third detection frame on the X-axis and the Y-axis of the third XY plane can be analyzed separately.
[0089] At this time, when executing step 12, the loss weight of the loss value corresponding to the X-axis coordinate in the two-dimensional coordinate prediction value can be adjusted according to the analysis result of the visibility of the third detection frame corner point on the X-axis. At the same time, the loss weight of the loss value corresponding to the Y-axis coordinate in the two-dimensional coordinate prediction value can be adjusted according to the analysis result of the visibility of the third detection frame corner point on the Y-axis. Taking the calculation formula of the pattern loss function shown in formula (1) as an example, the loss weight w1 of the X-axis coordinate x1 and the loss weight w2 of the Y-axis coordinate y1 in the two-dimensional coordinate prediction value of the first three detection frame corner point can be adjusted respectively. The adjustment method for the first to third three detection frame corner points is similar and will not be repeated here.
[0090] When executing step 13, the loss values and loss weights of the X-axis coordinates and Y-axis coordinates in the two-dimensional coordinate prediction values of each third detection box corner point can be weighted and calculated to obtain the model loss value. Taking the smooth loss function as an example, the calculation formula of the model loss value can be shown in formula (1).
[0091] The following is a further explanation of the training method of the point cloud object detection model.
[0092] According to the aforementioned method embodiment, when training the point cloud target detection model, the predicted order and the actual order of the corner points of the third detection frame are used to form a coordinate group with the predicted values of the two-dimensional coordinates and the actual values of the two-dimensional coordinates corresponding to the same order, and the regression loss function is used to obtain the loss value between the predicted value of the two-dimensional coordinates and the actual value of the two-dimensional coordinates in each coordinate group, and the model loss value is obtained based on the loss value. If the deviation between the predicted order and the actual order is relatively large, then the final model loss value will also be relatively large, which will increase the difficulty of model training. To this end, in the embodiment of the present application, different methods can be used to adjust the predicted order for different types of targets to obtain a more accurate model loss value, reduce the difficulty of model training and improve the training effect of the model. In the embodiment of the present application, the targets can be divided into two categories according to the degree of correlation between the predicted direction and the predicted order. One category is that the predicted direction has a high degree of correlation with the predicted order, and the accuracy of the predicted direction and the predicted order needs to be guaranteed at the same time. For example, this type of target can be a vehicle. The other type is that the correlation between the predicted direction and the predicted arrangement order is low, and there is no need to ensure the accuracy of the predicted direction and the predicted arrangement order at the same time. For example, this type of target can be vulnerable road users (Vulnerable Road Users, VRU) such as pedestrians, cyclists, electric bicycles and motorcycle riders. These two types of targets are explained below. It should be noted that those skilled in the art can flexibly set the size requirements for the correlation between the predicted direction and the predicted arrangement order for different targets according to actual needs. As long as different targets can be distinguished, the embodiment of the present application does not specifically limit the method for setting the above-mentioned correlation degree.
[0093] 1. Targets with a high correlation between the predicted direction and the predicted ranking
[0094] In the embodiment of the present application, after executing step S201 and step S202 and before executing step S203 , the predicted arrangement order may be adjusted through the following steps 21 to 24 .
[0095] Step 21: Perform target orientation prediction on the samples of the three-dimensional point cloud frame to obtain the predicted orientation of the target. The third detection box corner point with the first arrangement position in the prediction arrangement order is located in the upper left of the predicted orientation and each third detection box corner point is arranged in sequence according to a preset order.
[0096] In the embodiments of this application, conventional target orientation prediction methods in the field of point cloud technology can be used to predict the target orientation of samples in a three-dimensional point cloud frame. This embodiment of this application does not specifically limit the target orientation prediction method. In addition, those skilled in the art can flexibly set the specific rules of the preset order according to actual needs, as long as the predicted arrangement order is consistent with the preset order used in the actual arrangement order.
[0097] For example, as shown in Figure 4, after the third detection frame corner point located at the upper left of the target is taken as the first corner point in the arrangement position and its number is set to 0, the preset order is set to clockwise, and then the third detection frame corner points located at the upper right, lower right and lower left of the target are arranged in a clockwise direction and numbered 1, 2, and 3 respectively.
[0098] Step 22: Determine whether the predicted orientation of the target is opposite to the preset true orientation. The third detection box corner point with the first arrangement position in the true arrangement order is located at the upper left of the true orientation and each third detection box corner point is also arranged in sequence according to the preset order.
[0099] If it is the opposite, go to step 23; if it is not the opposite, go to step 24.
[0100] Step 23: Adjust the predicted arrangement order of the corner points of the third detection frame so that the predicted orientation of the target is the same as the true orientation and the corner point of the third detection frame that is first in the predicted arrangement order is always located in the upper left of the predicted orientation.
[0101] As shown in Figure 6, the direction indicated by the arrow in Figure 6 is the true orientation of the target. From left to right, the predicted orientation of the first detection frame in Figure 6 is opposite to the true orientation, and its orientation needs to be reversed. At the same time, assume that the third detection frame corner points located in the upper left, upper right, lower right, and lower left of the first detection frame are ABCD respectively. Before the reversal, the predicted arrangement order is ABCD, where the third detection frame corner point A in the first arrangement position is numbered 0 and is located in the upper left of the predicted orientation. After the reversal, the predicted orientation is the same as the true orientation, and the predicted arrangement order is CDAB, where the third detection frame corner point C in the first arrangement position is still numbered 0 and is still located in the upper left of the predicted orientation.
[0102] In some preferred embodiments, the predicted arrangement order of the corner points of the third detection frame can be adjusted through the following steps 231 to 232.
[0103] Step 231: Calculate the angle between the edge formed by connecting each two adjacent third detection frame corner points and the predicted orientation. Step 232: Use the edge corresponding to the minimum angle as the long side of the 2D detection frame and adjust the order of each third detection frame corner point until the predicted orientation of the target is the same as the preset true orientation.
[0104] Continuing to refer to the example shown in Figure 6, in Figure 6, from left to right, the predicted orientation of the first detection frame in Figure 6 is opposite to the true orientation. The two third detection frame corner points numbered 1 and 2 are adjacent, and the edge formed by the two can be represented as 12 edges. Similarly, the edges formed by other adjacent third detection frame corner points can be represented as 23 edges, 30 edges, and 01 edges, respectively. The angles between the 12 edges, 23 edges, 30 edges, and 01 edges and the true orientation are 0°, 90°, 180°, and 270°, respectively. Since the angle between the 12 edges is the smallest, the 12 edges are used as the longer edge, and the order of the third detection frame corner points is adjusted in a clockwise direction, and the third detection frame corner points are renumbered.
[0105] Step 24: Do not adjust the predicted order of the corner points of the third detection frame.
[0106] After completing the above steps, continue with steps S203 to S205. If the predicted order of the third detection frame corner points has been adjusted, then step S203 is performed based on the adjusted predicted order; if the predicted order of the third detection frame corner points has not been adjusted, then step S203 is performed based on the unadjusted predicted order.
[0107] Based on the method described in steps 21 to 24 above, the predicted arrangement order is adjusted, which can simultaneously improve the accuracy of the predicted orientation and predicted arrangement order of the target, thereby effectively ensuring the accuracy of the detection frame.
[0108] 2. Targets with a low correlation between predicted direction and predicted ranking
[0109] In the embodiment of the present application, except for step S201, steps S202 to S205 are adjusted, and the adjusted steps S202 to S205 are described below.
[0110] In step S202, the predicted arrangement order of the third detection frame corner points of the target in each different orientation is obtained respectively, and each group of predicted arrangement orders corresponds to each orientation one by one. The third detection frame corner point with the first arrangement position in each group of predicted arrangement orders is located in the upper left of the corresponding orientation.
[0111] A two-dimensional detection box includes four sides, so it has four predicted directions. In this embodiment, a set of predicted arrangement orders is obtained for each predicted direction.
[0112] In step S203, for each group of predicted arrangement orders, according to the current group of predicted arrangement orders and the actual arrangement order, the two-dimensional coordinate predicted values and the two-dimensional coordinate actual values corresponding to the same arrangement position are respectively formed into a coordinate group.
[0113] In step S204, for each group of predicted arrangement order, the regression loss function is used to obtain the loss value between the two-dimensional coordinate predicted value and the two-dimensional coordinate true value in each coordinate group corresponding to the current group of predicted arrangement order, and the model loss value is obtained based on the loss value.
[0114] In step S205, the minimum model loss value is selected from the model loss values corresponding to each group of prediction arrangement orders, and the model parameters are updated according to the minimum model loss value.
[0115] Refer to Figure 7. The arrows represent the true orientation of the target. Assuming that the corner points of the third detection frame located at the upper left, upper right, lower right and lower left of the detection frame are ABCD respectively, there are four predicted orientations of the detection frame. According to these four predicted orientations, four groups of predicted arrangement orders can be obtained. These four groups of predicted arrangement orders are ABCD, BCDA, CDAB and DABC. In the ABCD group of predicted arrangement orders, the numbers of ABCD are 0123 respectively. In the BCDA group of predicted arrangement orders, the numbers of BCDA are 0123 respectively. The numbering of CDAB and DABC is similar and will not be repeated. It can be seen that the corner point of the third detection frame numbered 0 is always located at the upper left of the predicted orientation. According to each group of predicted arrangement orders, a model loss value can be obtained. The smallest one among these model loss values is selected as the final model loss value, and the model parameters are updated using the final model loss value.
[0116] The methods involved in steps S203 to S204 are the same as those described in the aforementioned method embodiments, and are not described here. For example, the method of forming a coordinate group by combining the predicted and actual two-dimensional coordinate values corresponding to the same order of arrangement is the same as that described in the aforementioned method embodiments.
[0117] By adjusting the predicted arrangement order using the above method, the accuracy of the predicted arrangement order can be improved, thereby effectively ensuring the accuracy of the detection frame.
[0118] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art will understand that in order to achieve the effect of the present application, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These adjusted solutions are equivalent to the technical solutions described in this application, and therefore will also fall within the scope of protection of this application.
[0119] It will be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment of the present application can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of each of the above method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium can include: any entity or device, medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0120] Furthermore, the present application also provides a computer device.
[0121] Refer to Figure 8, which is a schematic diagram of the main structure of a computer device embodiment according to the present application. As shown in Figure 8, the computer device in the embodiment of the present application mainly includes a storage device and a processor. The storage device can be configured to store a program for executing the point cloud target detection method of the above-mentioned method embodiment, and the processor can be configured to execute the program in the storage device, which includes but is not limited to a program for executing the point cloud target detection method of the above-mentioned method embodiment. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method section of the embodiment of the present application.
[0122] In the embodiment of the present application, the computer device may be a control device device formed by various electronic devices. In some possible implementations, the computer device may include multiple storage devices and multiple processors. The program for executing the point cloud target detection method of the above method embodiment can be divided into multiple subroutines, and each subroutine can be loaded and run by the processor to execute different steps of the point cloud target detection method of the above method embodiment. Specifically, each subroutine can be stored in different storage devices respectively, and each processor can be configured to execute the program in one or more storage devices to jointly implement the point cloud target detection method of the above method embodiment, that is, each processor executes different steps of the point cloud target detection method of the above method embodiment respectively to jointly implement the point cloud target detection method of the above method embodiment.
[0123] The aforementioned multiple processors may be processors deployed on the same device. For example, the aforementioned computer device may be a high-performance device composed of multiple processors, and the aforementioned multiple processors may be processors configured on the high-performance device. Furthermore, the aforementioned multiple processors may also be processors deployed on different devices. For example, the aforementioned computer device may be a server cluster, and the aforementioned multiple processors may be processors on different servers in the server cluster.
[0124] Furthermore, the present application also provides a computer-readable storage medium.
[0125] In an embodiment of a computer-readable storage medium according to the present application, the computer-readable storage medium can be configured to store a program for executing the point cloud target detection method of the above-mentioned method embodiment, and the program can be loaded and executed by the processor to implement the above-mentioned point cloud target detection method. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method section of the embodiment of the present application. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present application is a non-transitory computer-readable storage medium.
[0126] Furthermore, the present application also provides a vehicle.
[0127] In a vehicle embodiment according to the present application, the vehicle may include the computer device described in the aforementioned computer device embodiment. In this embodiment, the vehicle may be an autonomous vehicle, an unmanned vehicle, or other similar vehicle. Furthermore, based on the type of power source, the vehicle in this embodiment may be a fuel vehicle, an electric vehicle, a hybrid vehicle using a combination of electric and fuel, or a vehicle using other new energy sources.
[0128] Thus far, the technical solution of the present application has been described in conjunction with an embodiment shown in the accompanying drawings. However, it is readily understood by those skilled in the art that the scope of protection of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art may make equivalent changes or substitutions to the relevant technical features, and the technical solutions after such changes or substitutions will fall within the scope of protection of the present application.
Claims
1. A point cloud target detection method, characterized in that: The method comprises: Get the three-dimensional point cloud frame collected by the radar; Performing target detection on the 3D point cloud frame to obtain a 3D target detection frame represented by the 3D coordinates of the corner points of the detection frame; According to the three-dimensional object detection frame, an object detection result is obtained.
2. The point cloud target detection method according to claim 1, characterized in that: The step of "obtaining a three-dimensional object detection frame represented by the three-dimensional coordinates of the corner points of the detection frame" specifically includes: Detecting a minimum value and a maximum value of a target on a Z axis in a three-dimensional point cloud frame, and respectively obtaining a first XY plane and a second XY plane intersecting the Z axis at the minimum value and the maximum value; Detect the two-dimensional coordinates of the corner points of the first detection frame of the two-dimensional detection frame corresponding to the detection target on the first XY plane, and obtain the three-dimensional coordinates of the corner points of the first detection frame according to the two-dimensional coordinates and the minimum value; Detect the two-dimensional coordinates of the corner points of the second detection frame of the two-dimensional detection frame corresponding to the target on the second XY plane, and obtain the three-dimensional coordinates of the corner points of the second detection frame according to the two-dimensional coordinates and the maximum value; A three-dimensional object detection frame is obtained according to the three-dimensional coordinates of the first detection frame corner points and the second detection frame corner points.
3. The point cloud target detection method according to claim 2, characterized in that: The method further comprises: using a preset point cloud target detection model to respectively detect the two-dimensional coordinates of the first detection frame corner points and the second detection frame corner points; Among them, the preset point cloud target detection model is trained in the following way: Using the point cloud target detection model to detect a specific value of the target on the Z axis in the sample of the three-dimensional point cloud frame, and obtaining a third XY plane that intersects the Z axis at the specific value, the specific value is the minimum value or maximum value of the target on the Z axis, and Obtain predicted values and a predicted arrangement order of two-dimensional coordinates of corner points of a third detection frame of a two-dimensional detection frame corresponding to the target on a third XY plane, and obtain true values and a true arrangement order of the two-dimensional coordinates of the corner points of the third detection frame according to the sample; According to the predicted arrangement order and the actual arrangement order of the corner points of the third detection frame, the predicted two-dimensional coordinate values and the actual two-dimensional coordinate values corresponding to the same arrangement order are respectively formed into a coordinate group; A regression loss function is used to obtain a loss value between a predicted value of a two-dimensional coordinate and a true value of the two-dimensional coordinate in each coordinate group, and a model loss value is obtained according to the loss value; According to the model loss value, the model parameters of the point cloud target detection model are updated.
4. The point cloud target detection method according to claim 3, characterized in that: Before the step of "obtaining a model loss value according to the loss value", the method further includes: Analyze the visibility of each corner point of the third detection frame on the third XY plane respectively; According to the visibility analysis results, the loss weights of the loss values corresponding to the two-dimensional coordinate prediction values of each corner point of the third detection box are adjusted respectively; A model loss value is obtained according to the loss value and the adjusted loss weight.
5. The point cloud target detection method according to claim 4, characterized in that: The step of "adjusting the loss weight of the loss value corresponding to the two-dimensional coordinate prediction value of each corner point of the third detection frame according to the visibility analysis result" specifically includes: According to the visibility analysis result, determine whether the corner point of the third detection frame is visible; If visible, increase the corresponding loss weight; If it is not visible, reduce the corresponding loss weight.
6. The point cloud target detection method according to claim 4, characterized in that: The step of “respectively analyzing the visibility of each corner point of the third detection frame on the third XY plane” specifically includes: respectively analyzing the visibility of the corner point of the third detection frame on the X axis and the Y axis of the third XY plane; The step of "adjusting the loss weight of the loss value corresponding to the two-dimensional coordinate prediction value of each corner point of the third detection frame according to the visibility analysis result" specifically includes: According to the analysis result of the visibility of the corner points of the third detection frame on the X-axis, the loss weight of the loss value corresponding to the X-axis coordinate in the two-dimensional coordinate prediction value is adjusted; According to the analysis result of the visibility of the corner points of the third detection box on the Y-axis, adjust the loss weight of the loss value corresponding to the Y-axis coordinate in the two-dimensional coordinate prediction value.
7. The point cloud target detection method according to claim 3, characterized in that: Before the step of "forming a coordinate group with predicted values of the two-dimensional coordinates and true values of the two-dimensional coordinates corresponding to the same arrangement order according to the predicted arrangement order and the true arrangement order of the corner points of the third detection frame", the method further includes: Performing target orientation prediction on the sample to obtain a predicted orientation of the target, wherein the third detection box corner point of the first arrangement position in the predicted arrangement order is located at the upper left of the predicted orientation and each third detection box corner point is arranged in sequence according to a preset order; Determine whether the predicted orientation of the target is opposite to a preset true orientation, wherein the third detection frame corner point of the first arrangement position in the true arrangement order is located at the upper left of the true orientation and each third detection frame corner point is also arranged in sequence according to the preset order; If the opposite is true, the predicted order of the third detection frame corner points is adjusted so that the predicted orientation of the target is the same as the true orientation and the first third detection frame corner point in the predicted order is always located to the left of the predicted orientation. above; If not, the predicted arrangement order of the corner points of the third detection frame will not be adjusted.
8. The point cloud target detection method according to claim 7, characterized in that: The step of "adjusting the predicted arrangement order of the corner points of the third detection frame" specifically includes: Calculate the angle between the edge formed by connecting every two adjacent third detection box corner points and the predicted orientation; The side corresponding to the minimum angle is used as the long side of the two-dimensional detection frame and the arrangement order of each corner point of the third detection frame is adjusted according to the preset order until the predicted direction of the target is the same as the preset true direction.
9. The point cloud target detection method according to claim 3, characterized in that: The step of “obtaining a predicted arrangement order of corner points of the third detection frame” specifically includes: respectively obtaining a predicted arrangement order of corner points of the third detection frame when the target is in each different orientation, and each group of predicted arrangement orders corresponds to each orientation one by one; The step of "forming a coordinate group with the predicted values of the two-dimensional coordinates and the true values of the two-dimensional coordinates corresponding to the same arrangement position according to the predicted arrangement order and the true arrangement order of the corner points of the third detection frame" specifically includes: for each group of predicted arrangement orders, forming a coordinate group with the predicted values of the two-dimensional coordinates and the true values of the two-dimensional coordinates corresponding to the same arrangement position according to the current group of predicted arrangement orders and the true arrangement order; The step of "obtaining the model loss value" specifically includes: for each group of prediction arrangement sequences, using the regression loss function to respectively obtain the loss value between the two-dimensional coordinate prediction value and the two-dimensional coordinate true value in each coordinate group corresponding to the current group of prediction arrangement sequences, and obtaining the model loss value according to the loss value; The step of "updating the model parameters of the point cloud target detection model according to the model loss value" specifically includes: selecting the minimum model loss value from the model loss values corresponding to each group of prediction arrangement order, and updating the model parameters according to the minimum model loss value.
10. A computer device comprising a processor and a storage device, wherein the storage device is suitable for storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by the processor to execute the point cloud target detection method according to any one of claims 1 to 9.
11. A computer-readable storage medium storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by a processor to execute the point cloud target detection method according to any one of claims 1 to 9.
12. A vehicle, characterized in that: The vehicle comprises the computer device of claim 10.
Citation Information
Patent Citations
Point cloud target detection method, computer equipment, storage medium and vehicle
CN115965925A
Target detection method and device, computer readable storage medium and electronic equipment
CN113111692A
Laser radar point cloud target detection method and system based on camera image driving
CN114966603A
3D target detection frame acquisition method and device
CN115359241A
Target detection method and device, computer equipment and storage medium
CN115457492A
