Target detection method, device, computer equipment and storage medium

By obtaining and optimizing the lane line detection results and three-dimensional target detection results of the multi-task model, the problem of accuracy decline caused by competition between lane line detection and target detection tasks in traditional technology is solved, and the accuracy of target detection is improved.

CN117876669BActive Publication Date: 2024-09-20ZHUHAI OUYEEL SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410087192.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-22
Publication Date
2024-09-20
Estimated Expiration
2044-01-22

AI Technical Summary

Technical Problem

In traditional technology, the two tasks of lane line detection and target detection share weights, resulting in competition between multiple tasks, resulting in decreased accuracy and insufficient accuracy in target detection.

Method used

By obtaining the lane line detection results and three-dimensional target detection results output by the multi-task model, the target depth information and reference depth information of the target point are determined, and this information is used to optimize the multi-task model and reduce the gap between the lane line detection task and the three-dimensional target detection task. competition to improve the accuracy of target detection.

Benefits of technology

By optimizing the multi-task model, the accuracy drop caused by multi-task competition is reduced, the accuracy of target detection is improved, and the correlation between the lane line detection task and the three-dimensional target detection task is fully utilized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117876669B
    Figure CN117876669B
Patent Text Reader

Abstract

The present application relates to a target detection method, device, computer equipment and storage medium. The method includes: obtaining lane line detection results and three-dimensional target detection results output by a multi-task model; determining target depth information at a target point of a three-dimensional target from the three-dimensional target detection results; determining at least one reference lane line adjacent to the three-dimensional target according to the lane line detection results; determining a reference point corresponding to the target point from each reference lane line; the first direction of the straight line between the target point and the reference point is a horizontal direction perpendicular to the vehicle's driving direction; determining reference depth information at each reference point from the lane line detection results; optimizing the multi-task model according to the difference between the target depth information and the reference depth information to obtain an optimized multi-task model. The use of this method can improve the accuracy of target detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer vision technology, and in particular to a target detection method, apparatus, computer device and storage medium. Background Art

[0002] With the development of computer vision technology, object detection technology, as an important branch of computer vision, has been widely used. For example, in the field of intelligent driving, object detection technology can detect and identify various targets during vehicle driving, so as to help the vehicle better understand the driving situation and make more accurate driving decisions.

[0003] In traditional technology, lane detection and object detection are combined into a multi-task model that shares at least some weights. However, competition between multiple tasks can lead to a decrease in accuracy, resulting in inaccurate object detection. Summary of the invention

[0004] Based on this, it is necessary to provide a target detection method, device, computer equipment and storage medium that can improve accuracy in response to the above technical problems.

[0005] In a first aspect, the present application provides a target detection method, including: obtaining lane line detection results and three-dimensional target detection results output by a multi-task model; determining target depth information at a target point of the three-dimensional target from the three-dimensional target detection results; determining at least one reference lane line adjacent to the three-dimensional target based on the lane line detection results; determining a reference point corresponding to the target point from each reference lane line; a first direction of a straight line between the target point and the reference point is a horizontal direction perpendicular to the direction of vehicle travel; determining reference depth information at each reference point from the lane line detection results; optimizing the multi-task model based on the difference between the target depth information and the reference depth information to obtain an optimized multi-task model.

[0006] In the second aspect, the present application also provides a target detection device, including: a model reasoning module, a target depth determination module, a lane line determination module, a reference point determination module, a reference depth determination module and a model optimization module.

[0007] The model reasoning module is used to obtain the lane detection results and three-dimensional object detection results output by the multi-task model.

[0008] The target depth determination module is used to determine the target depth information at the target point of the three-dimensional target from the three-dimensional target detection result.

[0009] The lane line determination module is used to determine at least one reference lane line adjacent to the three-dimensional target according to the lane line detection result.

[0010] The reference point determination module is used to determine the reference point corresponding to the target point from each reference lane line; the first direction of the straight line between the target point and the reference point is a horizontal direction perpendicular to the vehicle driving direction.

[0011] The reference depth determination module is used to determine the reference depth information at each reference point from the lane line detection result.

[0012] The model optimization module is used to optimize the multi-task model according to the difference between the target depth information and the reference depth information to obtain an optimized multi-task model.

[0013] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the above method when executing the computer program.

[0014] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps in the above method when the computer program is executed by a processor.

[0015] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps in the above method when executed by a processor.

[0016] The above-mentioned object detection method, apparatus, computer equipment, storage medium and computer program product obtain lane line detection results and three-dimensional object detection results output by the multi-task model. During three-dimensional object detection and lane line detection, the depth of three-dimensional detection matches the depth of lane line detection, which is an association relationship between the lane line detection task and the three-dimensional object detection task. By optimizing the multi-task model using this association relationship, the accuracy drop caused by competition between the lane line detection task and the three-dimensional object detection task can be reduced. By determining the target depth information at the target point of the three-dimensional target from the three-dimensional target detection result; determining at least one reference lane line adjacent to the three-dimensional target according to the lane line detection result; determining the reference point corresponding to the target point from each reference lane line; the first direction of the straight line between the target point and the reference point is the horizontal direction perpendicular to the vehicle's driving direction, the target point and the reference point should be located in the same horizontal plane in the three-dimensional space, and their vertical positions are the same, so the depth of the target point and the reference point should be the same; then determining the reference depth information at each reference point from the lane line detection result; optimizing the multi-task model according to the difference between the target depth information and the reference depth information, and obtaining the optimized multi-task model, which can fully utilize the correlation between the three-dimensional target detection task and the lane line detection task in the optimization of the multi-task model, reduce the accuracy drop caused by multi-task competition, and improve the accuracy of target detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 A flowchart of a target detection method provided in an embodiment of the present application.

[0019] Figure 2 A schematic diagram of the structure of a multi-task model provided in an embodiment of the present application.

[0020] Figure 3 A schematic diagram of a target point and two reference points provided in an embodiment of the present application.

[0021] Figure 4 A structural block diagram of a target detection device provided in an embodiment of the present application.

[0022] Figure 5 An internal structure diagram of a computer device provided in an embodiment of the present application.

[0023] Figure 6 An internal structure diagram of another computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0025] In an exemplary embodiment, Figure 1 As shown, a target detection method is provided, which is described by taking the method applied to a computer device as an example, and includes the following steps 102 to 112.

[0026] Step 102: Obtain lane line detection results and three-dimensional object detection results output by the multi-task model.

[0027] The multi-task model refers to a model for implementing lane detection tasks and three-dimensional object detection tasks. For example, the computer device can input the acquired initial image into the multi-task model, obtain the lane detection result output by the lane detection branch in the multi-task model, and obtain the lane detection result output by the three-dimensional object detection branch in the multi-task model.

[0028] In some embodiments, the multi-task model includes a shared backbone network, a lane detection branch, and a three-dimensional object detection branch. The shared backbone network is used to extract features from the initial image to obtain fused image features. The lane detection branch is used to perform lane detection based on the fused image features. The three-dimensional object detection branch is used to perform three-dimensional object detection based on the fused image features.

[0029] In some embodiments, the lane line detection result is used to characterize the lane line in the image. The three-dimensional object detection result is used to characterize the three-dimensional object in the image. For example, the lane line detection result may include lane line position information. The lane line position information is used to characterize the position of the lane line in the image. The three-dimensional object detection result may include a prediction box of the three-dimensional object. The position of the prediction box is the position of the three-dimensional object in the image.

[0030] In some embodiments, the computer device may include at least one of a terminal or a server. The terminal may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server may be implemented as an independent server or a server cluster consisting of multiple servers.

[0031] Step 104: determine target depth information at a target point of the three-dimensional target from the three-dimensional target detection result.

[0032] The target depth information is used to characterize the vertical distance from the target point to the image plane in three-dimensional space. The image plane refers to the plane where the image captured by the image acquisition device is located. This plane usually coincides with the sensor of the image acquisition device, and the sensor is responsible for recording the light projected onto it through the lens.

[0033] Exemplarily, the target point of the three-dimensional object can be determined from the prediction box of the three-dimensional object. The target point can be a point on the bottom surface of the prediction box. The three-dimensional object detection result can include the first depth information at each point on the prediction box. The computer device can determine the target depth information at the target point from the first depth information at each point on the prediction box.

[0034] In some embodiments, the target point of the three-dimensional object may be, but is not limited to, the center point of the bottom surface of the prediction box of the three-dimensional object.

[0035] Step 106: Determine at least one reference lane line adjacent to the three-dimensional object according to the lane line detection result.

[0036] Exemplarily, the lane line detection result may include lane line position information. The lane line position information is used to characterize the position of the lane line. The three-dimensional object detection result may include a prediction box of the three-dimensional object. The prediction box is used to characterize the pose of the three-dimensional object. The computer device may determine at least one reference lane line adjacent to the prediction box from at least one lane line by comparing the position represented by the lane line position information with the position of the prediction box. It can be understood that the reference lane line adjacent to the prediction box is the reference lane line adjacent to the three-dimensional object.

[0037] Step 108, determining a reference point corresponding to the target point from each reference lane line; a first direction of the straight line between the target point and the reference point is a horizontal direction perpendicular to the vehicle driving direction.

[0038] Exemplarily, the computer device may search for a reference point on each reference lane line along a first direction starting from the target point.

[0039] In some embodiments, the computer device may determine a straight line based on the target point and the first direction. The intersection of the straight line and each reference lane line is determined as a reference point. It is understood that a horizontal line is drawn at the target point along a horizontal direction (i.e., horizontal direction) perpendicular to the vehicle's travel direction, and may intersect with the reference lane lines on both sides of the three-dimensional target at the reference point. It should be noted that the target point, intersection point, and reference point mentioned in the embodiments of the present application may be, but are not limited to, pixel points in the image.

[0040] Step 110 , determining reference depth information at each reference point from the lane line detection result.

[0041] Exemplarily, the lane line detection result may include the second depth information at each pixel point on the lane line. The computer device may determine the reference depth information at the reference point from the second depth information at each pixel point on the lane line.

[0042] Step 112: Optimize the multi-task model according to the difference between the target depth information and the reference depth information to obtain an optimized multi-task model.

[0043] In some embodiments, the computer device may determine the first reference loss according to the difference between the target depth information and the reference depth information, and optimize the multi-task model in a direction of reducing the first reference loss to obtain an optimized multi-task model.

[0044] In some embodiments, the first reference loss may be an additional loss based on the original loss of the multi-task model, and the first reference loss and the original loss are used together to supervise the optimization process of the multi-task model. The original loss may include at least one of the losses such as lane line detection loss or three-dimensional target loss. The embodiment of the present application does not limit the calculation of the original loss, as long as it can measure the effect of the model in the lane line detection task and the three-dimensional target detection task.

[0045] In some embodiments, there is at least one reference point. Each reference point has a reference depth information, and the computer device can fuse at least one reference depth information to obtain fused depth information. The multi-task model is optimized according to the difference between the target depth information and the fused depth information.

[0046] It can be understood that the depth of the target point on the bottom surface of the prediction box of the three-dimensional target should be consistent with the depth of the reference point on the adjacent lane line (i.e., the reference lane line). This is because the reference point is the intersection of the reference lane line and the target point in the first direction, and the first direction is the horizontal direction perpendicular to the vehicle's driving direction (i.e., horizontal). Therefore, the reference point and the target point are actually located in the same horizontal plane, and their vertical positions are the same. Even if they appear differently in the image due to the influence of the viewing angle and camera parameters, their depth information should be the same. However, due to the influence of detection accuracy and image acquisition equipment, the depth information in the lane line detection results and the three-dimensional target detection results may not be accurate. Therefore, when there are two or more reference points, the reference depth information at each reference point is fused to obtain more accurate fused depth information.

[0047] In some embodiments, when there is only one reference lane line, there is only one reference point corresponding to the target point, and the computer device can use the reference depth information at the reference point as the fused depth information.

[0048] In some embodiments, the computer device may perform weighted fusion on the reference depth information at each reference point according to the relative position relationship between the reference point and the target point to obtain fused depth information.

[0049] In some embodiments, the computer device may determine the first reference loss according to a difference between the target depth information and the fused depth information.

[0050] In some embodiments, the computer device may calculate a mean absolute error between the target depth information and the fused depth information to obtain a first reference loss.

[0051] In the above object detection method, the lane line detection results and three-dimensional object detection results output by the multi-task model are obtained. During three-dimensional object detection and lane line detection, the depth of three-dimensional detection matches the depth of lane line detection, which is the association between the lane line detection task and the three-dimensional object detection task. By optimizing the multi-task model using this association, the accuracy drop caused by competition between the lane line detection task and the three-dimensional object detection task can be reduced. By determining the target depth information at the target point of the three-dimensional target from the three-dimensional target detection result; determining at least one reference lane line adjacent to the three-dimensional target according to the lane line detection result; determining the reference point corresponding to the target point from each reference lane line; the first direction of the straight line between the target point and the reference point is the horizontal direction perpendicular to the vehicle's driving direction, the target point and the reference point should be located in the same horizontal plane in the three-dimensional space, and their vertical positions are the same, so the depth of the target point and the reference point should be the same; then determining the reference depth information at each reference point from the lane line detection result; optimizing the multi-task model according to the difference between the target depth information and the reference depth information, and obtaining the optimized multi-task model, which can fully utilize the correlation between the three-dimensional target detection task and the lane line detection task in the optimization of the multi-task model, reduce the accuracy drop caused by multi-task competition, and improve the accuracy of target detection.

[0052] In some embodiments, the lane line detection results and three-dimensional target detection results output by the multi-task model are obtained, including: performing cutout processing on the central area of ​​the acquired initial image to obtain a central sub-image; fusing the whole image features of the initial image and the cutout features of the central sub-image through the multi-task model to obtain fused image features; performing lane line detection based on the fused image features to obtain lane line detection results; performing three-dimensional target detection based on the fused image features to obtain three-dimensional target detection results.

[0053] In some embodiments, the computer device may acquire a captured initial image. The initial image may be captured during the driving of the vehicle. The central area of ​​the initial image is cut out according to a first preset ratio to obtain a central sub-image. For example, the size of the central sub-image cut out from the initial image may be 1 / 4 of the size of the initial image, that is, the central image may be a sub-image with a horizontal and vertical resolution of 1 / 2 cut out from the initial image.

[0054] In some embodiments, the computer device may reduce the initial image according to a second preset ratio to obtain a reduced image. The initial image may be, but is not limited to, a high-resolution image. The reduced image is downsampled to obtain the whole image feature. The central sub-image is downsampled at least one level to obtain the cutout feature. The resolution corresponding to the cutout feature is the same as the resolution corresponding to the whole image feature. It can be understood that after the initial image is reduced, the corresponding resolution decreases, and after the downsampling process, the corresponding resolution further decreases. Therefore, the central sub-image needs to be downsampled so that the resolution corresponding to the cutout feature is consistent with the resolution corresponding to the whole image feature, thereby ensuring the subsequent fusion effect of the whole image feature and the cutout feature.

[0055] In some embodiments, the computer device may perform downsampling processing on the reduced image by convolution to obtain the whole image feature. The central sub-image may be convolved at least once to perform at least one level of downsampling processing to obtain the cutout feature.

[0056] In some embodiments, the whole image feature may be, but is not limited to, obtained by convolving the reduced image to 1 / 4 downsampling. The cutout feature may be, but is not limited to, obtained by convolving the central sub-image to 1 / 8 downsampling.

[0057] In some embodiments, the computer device may input the reduced image and the central sub-image into a multi-task model, and extract whole-image features and cutout features through the multi-task model.

[0058] In some embodiments, the multi-task model includes a backbone network. The backbone network can be used to extract whole-image features from the input reduced image and extract cutout features from the input central sub-image.

[0059] In some embodiments, the computer device may superimpose the cutout feature onto the central area of ​​the whole image feature for fusion to obtain a fused image feature.

[0060] In some embodiments, the multi-task model may include a backbone network, a lane detection branch, and a three-dimensional object detection branch. The lane detection branch performs lane detection based on the fused image features output by the backbone network and outputs a lane detection result. The three-dimensional object detection branch performs three-dimensional object detection based on the fused image features output by the backbone network and outputs a three-dimensional object detection result.

[0061] In some embodiments, Figure 2As shown, a schematic diagram of the structure of the multi-task model is provided. The reduced image and the central sub-image are input into the multi-task model. In the multi-task model, the reduced image is down-sampled by 1 / 4 through the first input branch to obtain the whole image feature, and the central sub-image is down-sampled by 1 / 2 in multiple layers through the second input branch to obtain the cutout feature. The cutout feature is superimposed on the central area of ​​the whole image feature to be fused to obtain the fused image feature corresponding to the first resolution. The fused image feature corresponding to the first resolution is down-sampled by 1 / 2 in multiple layers to obtain the fused image feature corresponding to the second resolution, the fused image feature corresponding to the third resolution, and the fused image feature corresponding to the fourth resolution.

[0062] The lane line detection branch upsamples the fused image features corresponding to the fourth resolution by 2 times to obtain the first upsampled features corresponding to the third resolution. The first upsampled features corresponding to the third resolution and the fused image features corresponding to the third resolution are upsampled by 2 times to obtain the first upsampled features corresponding to the second resolution. The first upsampled features corresponding to the second resolution and the fused image features corresponding to the second resolution are upsampled by 2 times to obtain the first upsampled features corresponding to the first resolution. The first upsampled features corresponding to the first resolution and the fused image features corresponding to the first resolution are upsampled by 2 times to obtain the lane line detection result.

[0063] The three-dimensional object detection branch obtains the second up-sampled features corresponding to the third resolution after up-sampling the fused image features corresponding to the fourth resolution by 2 times. The second up-sampled features corresponding to the third resolution and the fused image features corresponding to the third resolution are up-sampled by 2 times to obtain the second up-sampled features corresponding to the second resolution. The second up-sampled features corresponding to the second resolution and the fused image features corresponding to the second resolution are up-sampled by 2 times to obtain the second up-sampled features corresponding to the first resolution. The second up-sampled features corresponding to the first resolution and the fused image features corresponding to the first resolution are up-sampled by 2 times and then continue to pass through the output layer corresponding to the first resolution to obtain the three-dimensional object detection result corresponding to the first resolution. The three-dimensional object detection result corresponding to the first resolution and the second up-sampled features corresponding to the first resolution pass through the output layer corresponding to the second resolution to obtain the three-dimensional object detection result corresponding to the second resolution. The three-dimensional object detection result corresponding to the second resolution and the second up-sampled features corresponding to the second resolution pass through the output layer corresponding to the third resolution to obtain the three-dimensional object detection result corresponding to the third resolution. The three-dimensional object detection result corresponding to the third resolution and the second up-sampled features corresponding to the third resolution pass through the output layer corresponding to the fourth resolution together to obtain the three-dimensional object detection result corresponding to the fourth resolution.

[0064] The first resolution is greater than the second resolution, which is greater than the third resolution, which is greater than the fourth resolution. It should be noted that the embodiment of the present application provides network layers corresponding to four resolutions respectively, and network layers corresponding to more or fewer resolutions can actually be set according to requirements.

[0065] In this embodiment, the central area of ​​the collected initial image is subjected to a cutout process to obtain a central sub-image; the whole image features of the initial image and the cutout features of the central sub-image are fused through a multi-task model to obtain a fused image feature; lane line detection is performed based on the fused image feature to obtain a lane line detection result; three-dimensional object detection is performed based on the fused image feature to obtain a three-dimensional object detection result, which can provide richer image features for lane line detection and three-dimensional object detection and improve the accuracy of detection. Compared with the method of inputting only the cutout, inputting the cutout and the whole image together can avoid the problem of double framing caused by the model's misjudgment of the cutout edge features.

[0066] In some embodiments, target depth information at a target point of a three-dimensional target is determined from three-dimensional target detection results, including: determining a prediction box of the three-dimensional target from the three-dimensional target detection results; determining a center point of a bottom surface of the prediction box as the target point of the three-dimensional target; the bottom surface is used to characterize the contact surface between the three-dimensional target and the lane; and determining target depth information at the target point from the three-dimensional target detection results.

[0067] In some embodiments, the three-dimensional object detection result includes a prediction box and first depth information at each point on the prediction box. Each prediction box represents the position and posture of a three-dimensional object.

[0068] In some embodiments, Figure 3 As shown, a schematic diagram of the target point and two reference points is provided. The three-dimensional target can be, but is not limited to, a vehicle. Except for the dotted lines where the target point D, reference point L1, and reference point L2 are located, the remaining dotted line circles are the locations of the prediction boxes. The prediction box of the three-dimensional target is located between the two reference lane lines. A straight line is drawn along the first direction for the center point of the bottom surface of the prediction box (i.e., the target point D), and the straight line and the two reference lane lines are respectively compared to the reference point L1 and the reference point L2.

[0069] In this embodiment, a prediction box of the three-dimensional target is determined from the three-dimensional target detection results; the center point of the bottom surface of the prediction box is determined as the target point of the three-dimensional target; the bottom surface is used to characterize the contact surface between the three-dimensional target and the lane; the target depth information at the target point is determined from the three-dimensional target detection results, and the depth of the bottom surface center point at the position projected in the two-dimensional image should be the same as the depth of the target point on the three-dimensional target, so that the subsequent precision loss caused by multi-task competition can be reduced based on this association relationship, thereby improving accuracy.

[0070] In some embodiments, the multi-task model is optimized according to the difference between the target depth information and the reference depth information to obtain an optimized multi-task model, including: weighted fusion of the reference depth information at each reference point according to the relative position relationship between each reference point and the target point to obtain fused depth information; the multi-task model is optimized according to the difference between the target depth information and the fused depth information to obtain an optimized multi-task model.

[0071] Exemplarily, the computer device may determine the depth weight corresponding to the reference point according to the position difference between the reference point and the target point in the first direction; and perform weighted summation of the reference depth information at each reference point according to the depth weight corresponding to each reference point to obtain the fused depth information. The greater the position difference, the smaller the corresponding depth weight.

[0072] In some embodiments, the computer device may determine the coordinates of the reference point and the coordinates of the target point, and determine the corresponding depth weight according to the lateral coordinate difference (ie, the position difference in the first direction).

[0073] In this embodiment, the reference depth information at each reference point is weightedly fused according to the relative position relationship between each reference point and the target point to obtain the fused depth information; the multi-task model is optimized according to the difference between the target depth information and the fused depth information to obtain the optimized multi-task model, which can fully utilize the correlation between the three-dimensional target detection task and the lane line detection task in the optimization of the multi-task model, reduce the accuracy loss caused by multi-task competition, and improve the accuracy of target detection.

[0074] In some embodiments, the method also includes: in the process of performing lane line detection on the input image based on the multi-task model, performing regression analysis on the interest level of the input image to obtain the predicted interest level at each pixel in the input image; determining the lane area based on the lane boundary position information in the lane line detection result; the label interest level of the pixels in the lane area is greater than the label interest level of the pixels outside the lane area; optimizing the multi-task model according to the difference between the target depth information and the reference depth information to obtain the optimized multi-task model, including: optimizing the multi-task model according to the first difference and the second difference to obtain the optimized multi-task model; the first difference refers to the difference between the target depth information and the reference depth information; the second difference refers to the difference between the label interest level and the predicted interest level.

[0075] In some embodiments, the input image refers to an image input into the multi-task model. The input image may include a reduced image and a central sub-image.

[0076] In some embodiments, the lane detection branch of the multi-task model can predict the level of interest of the input image. The lane detection result may include the predicted level of interest at each pixel in the input image.

[0077] In some embodiments, the lane boundary position information is used to characterize the position of the lane boundary, ie, the curb.

[0078] In some embodiments, the lane line detection result may include lane boundary position information and lane line position information. The computer device may extract the lane area based on the lane boundary position information and the lane line position information. It can be understood that the lane boundary refers to the boundary on both sides of the lane, the lane line is inside the lane boundary, and the lane area refers to the area inside the lane boundary, which is the area where the vehicle is traveling.

[0079] In some embodiments, more attention is paid to the situation in the lane area during vehicle driving, so the label interest level of the pixels in the lane area is set to be larger, while the label interest level of the pixels outside the lane area is set to be smaller. The pixels in the lane area are focus pixels, and the pixels outside the lane area are background pixels. The label interest level of the background pixel may be negatively correlated with the distance between the background pixel and the adjacent lane boundary, that is, the greater the distance between the background pixel and the adjacent lane boundary, the smaller the label interest level of the background pixel, and vice versa. The adjacent lane boundary refers to the lane boundary that is closest to the background pixel in at least one lane boundary.

[0080] In some embodiments, the tag interest level of the focus pixel is the maximum interest level, and the tag interest level of the background pixel is less than the maximum interest level. For example, if the tag interest level of the focus pixel is 1, the tag interest level of the background pixel is less than 1.

[0081] In some embodiments, the regression analysis of the interest level is a task branch of the lane detection task, and the effect of the model needs to be measured in this branch. The second difference between the label interest level and the predicted interest level can be used to measure the effect of the model in the task branch of the regression analysis of the interest level, and can be used to provide supervision for the optimization of the model. The computer device can optimize the multi-task model according to the second difference to ensure the accuracy of the predicted interest level output by the multi-task model.

[0082] In this embodiment, in the process of performing lane line detection on the input image based on the multi-task model, the interest level of the input image is regressed and analyzed to obtain the predicted interest level at each pixel in the input image; the lane area is determined based on the lane boundary position information in the lane line detection result; the label interest level of the pixels in the lane area is greater than the label interest level of the pixels outside the lane area; the multi-task model is optimized according to the first difference and the second difference to obtain the optimized multi-task model; the first difference refers to the difference between the target depth information and the reference depth information; the second difference refers to the difference between the label interest level and the predicted interest level, which can enable the multi-task model to pay more attention to the situation in the lane area and ensure the safety of vehicle driving.

[0083] In some embodiments, the three-dimensional target detection result includes a prediction confidence of a prediction box of the three-dimensional target; the method also includes: determining a prediction interest level corresponding to the prediction box based on the prediction interest level at the pixels within the prediction box; weighting the prediction confidence of the prediction box according to the prediction interest level corresponding to the prediction box to obtain a target confidence of the prediction box.

[0084] In some embodiments, the lane line detection result may include a predicted interest level at each pixel. The predicted interest level of the pixel in the lane area is higher than the predicted interest level of the pixel outside the lane area. The predicted interest level at the pixel is used to characterize the attention of the pixel, that is, the importance of the pixel. It can be understood that the larger the predicted interest level, the higher the attention of the pixel. The computer device can determine the predicted interest level corresponding to the prediction box according to the predicted interest level at the pixel in the preset area of ​​the bottom surface of the prediction box. The entire bottom surface of the prediction box can be used as a preset area, and the preset range of the center of the bottom surface of the prediction box can be used as a preset area. The computer device can use the predicted interest level corresponding to the prediction box to weight the prediction confidence of the prediction box to obtain the target confidence of the prediction box. It can be understood that the higher the predicted interest level corresponding to the prediction box, the higher the target confidence of the prediction box. For example, if the predicted interest level corresponding to the prediction box is 1, the target confidence is equal to the prediction confidence, and the predicted interest level corresponding to the prediction box is 0.5, then the target confidence is equal to 0.5×prediction confidence.

[0085] In some embodiments, the computer device may perform weighted fusion on the predicted interest levels at the pixels in the preset area of ​​the bottom surface of the prediction box to obtain the predicted interest level corresponding to the prediction box. For example, the average of the predicted interest levels at the pixels in the preset area of ​​the bottom surface of the prediction box may be used as the predicted interest level corresponding to the prediction box.

[0086] In some embodiments, the computer device may make driving decisions based on the target confidence of the prediction box.

[0087] In this embodiment, the predicted interest level corresponding to the prediction box is determined according to the predicted interest level at the pixels in the prediction box; the prediction confidence of the prediction box is weighted according to the predicted interest level corresponding to the prediction box to obtain the target confidence of the prediction box, which can reduce the multi-task model's attention to the three-dimensional targets outside the lane area, while ensuring the multi-task model's attention to the three-dimensional targets within the lane area, thereby improving vehicle driving safety.

[0088] In some embodiments, the three-dimensional object detection result includes a prediction box of the three-dimensional object; the method also includes: determining a label interest level corresponding to the prediction box based on the label interest level at the pixel in the prediction box; determining a loss weight corresponding to the prediction box based on the label interest level corresponding to the prediction box; the loss weight corresponding to the prediction box is used to characterize the proportion of the prediction box in the calculation of the three-dimensional object detection loss; optimizing the multi-task model based on the first difference and the second difference to obtain an optimized multi-task model, including: determining a first reference loss based on the first difference; determining a second reference loss based on the second difference; optimizing the multi-task model in a direction in which the first reference loss, the second reference loss and the three-dimensional object detection loss are all reduced to obtain an optimized multi-task model.

[0089] In some embodiments, the label interest level of pixels in the lane area is higher than the label interest level of pixels outside the lane area. The computer device can determine the label interest level corresponding to the prediction box according to the label interest level of pixels in a preset area on the bottom surface of the prediction box.

[0090] In some embodiments, the computer device may perform weighted fusion on the label interest levels of pixels in a preset area on the bottom surface of the prediction box to obtain the label interest level corresponding to the prediction box.

[0091] In some embodiments, the computer device may use the average value of the label interest levels at pixels within a preset area on the bottom surface of the prediction box as the label interest level corresponding to the prediction box.

[0092] In some embodiments, the label interest level corresponding to the prediction box can be used to characterize the attention paid to the prediction box during the model optimization process. It can be understood that during the optimization process of the multi-task model, it is necessary to focus on the prediction box in the lane area.

[0093] In some embodiments, the higher the interest level of the label corresponding to the prediction box, the higher the loss weight corresponding to the prediction box. The loss weight is used to weight each prediction box based on the original three-dimensional object detection loss. It should be noted that the embodiment of the present application does not limit the setting method of the loss weight, as long as the relationship that the higher the interest level of the label corresponding to the prediction box, the higher the loss weight corresponding to the prediction box is satisfied.

[0094] In some embodiments, the computer device may determine the 3D object detection loss based on the 3D object detection result and the loss weights corresponding to each prediction box, and optimize the multi-task model in a direction of reducing the 3D object detection loss.

[0095] In some embodiments, the computer device may determine the second reference loss according to the second difference. The larger the second difference, the larger the second reference loss. It should be noted that the embodiment of the present application does not limit the calculation method of the second reference loss.

[0096] In some embodiments, the computer device may optimize the multi-task model based on at least one of the first reference loss, the second reference loss, or the three-dimensional object detection loss.

[0097] In this embodiment, the three-dimensional target detection result includes a prediction box of the three-dimensional target; the label interest level corresponding to the prediction box is determined according to the label interest level at the pixel in the prediction box; the loss weight corresponding to the prediction box is determined according to the label interest level corresponding to the prediction box; the loss weight corresponding to the prediction box is used to characterize the proportion of the prediction box in the calculation of the three-dimensional target detection loss; the first reference loss is determined according to the first difference; the second reference loss is determined according to the second difference; the multi-task model is optimized in the direction of reducing the first reference loss, the second reference loss and the three-dimensional target detection loss, so as to obtain an optimized multi-task model, which can pay more attention to the accuracy of the prediction box in the lane area in the optimization of the multi-task model to ensure the safety of intelligent driving.

[0098] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0099] Based on the same inventive concept, the embodiment of the present application also provides a target detection device for implementing the target detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more target detection device embodiments provided below can refer to the limitations on the target detection method above, and will not be repeated here.

[0100] In an exemplary embodiment, Figure 4 As shown, a target detection device 400 is provided, including: a model reasoning module 402, a target depth determination module 404, a lane line determination module 406, a reference point determination module 408, a reference depth determination module 410 and a model optimization module 412.

[0101] The model reasoning module 402 is used to obtain the lane detection results and three-dimensional object detection results output by the multi-task model.

[0102] The target depth determination module 404 is used to determine target depth information at a target point of the three-dimensional target from the three-dimensional target detection result.

[0103] The lane line determination module 406 is used to determine at least one reference lane line adjacent to the three-dimensional object according to the lane line detection result.

[0104] The reference point determination module 408 is used to determine the reference point corresponding to the target point from each reference lane line; the first direction of the straight line between the target point and the reference point is a horizontal direction perpendicular to the vehicle driving direction.

[0105] The reference depth determination module 410 is used to determine reference depth information at each reference point from the lane line detection result.

[0106] The model optimization module 412 is used to optimize the multi-task model according to the difference between the target depth information and the reference depth information to obtain an optimized multi-task model.

[0107] In some embodiments, the model inference module 402 is used to perform a cutout process on the central area of ​​the collected initial image to obtain a central sub-image; fuse the whole image features of the initial image and the cutout features of the central sub-image through a multi-task model to obtain a fused image feature; perform lane line detection based on the fused image feature to obtain a lane line detection result; perform three-dimensional target detection based on the fused image feature to obtain a three-dimensional target detection result.

[0108] In some embodiments, the target depth determination module 404 is used to determine the prediction box of the three-dimensional target from the three-dimensional target detection results; determine the center point of the bottom surface of the prediction box as the target point of the three-dimensional target; the bottom surface is used to characterize the contact surface between the three-dimensional target and the lane; and determine the target depth information at the target point from the three-dimensional target detection results.

[0109] In some embodiments, the model optimization module 412 is used to perform weighted fusion of the reference depth information at each reference point according to the relative position relationship between each reference point and the target point to obtain fused depth information; and optimize the multi-task model according to the difference between the target depth information and the fused depth information to obtain an optimized multi-task model.

[0110] In some embodiments, the model reasoning module 402 is used to perform regression analysis on the interest level of the input image during lane line detection based on the multi-task model to obtain the predicted interest level at each pixel in the input image; determine the lane area based on the lane boundary position information in the lane line detection result; the label interest level of the pixels in the lane area is greater than the label interest level of the pixels outside the lane area; the model optimization module 412 is used to optimize the multi-task model according to the first difference and the second difference to obtain the optimized multi-task model; the first difference refers to the difference between the target depth information and the reference depth information; the second difference refers to the difference between the label interest level and the predicted interest level.

[0111] In some embodiments, the three-dimensional target detection result includes the prediction confidence of the prediction box of the three-dimensional target; the model reasoning module 402 is used to determine the prediction interest level corresponding to the prediction box according to the prediction interest level at the pixel in the prediction box; the prediction confidence of the prediction box is weighted according to the prediction interest level corresponding to the prediction box to obtain the target confidence of the prediction box.

[0112] In some embodiments, the three-dimensional object detection result includes a prediction box of the three-dimensional object; a model optimization module 412 is used to determine the label interest level corresponding to the prediction box based on the label interest level at the pixels in the prediction box; determine the loss weight corresponding to the prediction box based on the label interest level corresponding to the prediction box; the loss weight corresponding to the prediction box is used to characterize the proportion of the prediction box in the calculation of the three-dimensional object detection loss; determine a first reference loss based on the first difference; determine a second reference loss based on the second difference; optimize the multi-task model in the direction of reducing the first reference loss, the second reference loss and the three-dimensional object detection loss to obtain an optimized multi-task model.

[0113] Each module in the above target detection device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0114] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 5As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a target detection method is implemented.

[0115] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a target detection method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0116] Those skilled in the art will understand that Figure 5 or Figure 6The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0117] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0118] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0119] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0120] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0121] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0122] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0123] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A target detection method, characterized in that: The method comprises: Obtain lane detection results and 3D object detection results output by the multi-task model; Determining target depth information at a target point of the three-dimensional target from the three-dimensional target detection result; Determine at least one reference lane line adjacent to the three-dimensional object according to the lane line detection result; Determine a reference point corresponding to the target point from each of the reference lane lines; a first direction of a straight line between the target point and the reference point is a horizontal direction perpendicular to the driving direction of the vehicle; Determining reference depth information at each of the reference points from the lane line detection result; In the process of performing lane line detection on an input image based on the multi-task model, a regression analysis is performed on the interest level of the input image to obtain a predicted interest level at each pixel in the input image; a lane area is determined based on lane boundary position information in the lane line detection result; the label interest level of pixels in the lane area is greater than the label interest level of pixels outside the lane area; Determine the label interest level corresponding to the prediction box according to the label interest level at the pixel in the prediction box; determine the loss weight corresponding to the prediction box according to the label interest level corresponding to the prediction box; the loss weight corresponding to the prediction box is used to characterize the proportion of the prediction box in the calculation of the three-dimensional object detection loss; A first reference loss is determined according to a first difference; a second reference loss is determined according to a second difference; the multi-task model is optimized in a direction in which the first reference loss, the second reference loss and the three-dimensional target detection loss are all reduced to obtain an optimized multi-task model; the first difference refers to the difference between the target depth information and the reference depth information; the second difference refers to the difference between the label interest level and the predicted interest level.

2. The method according to claim 1, characterized in that The obtaining of lane line detection results and three-dimensional target detection results output by the multi-task model includes: Performing a cutout process on the central area of ​​the acquired initial image to obtain a central sub-image; The whole image features of the initial image and the cutout features of the central sub-image are fused through a multi-task model to obtain fused image features; Perform lane line detection according to the fused image features to obtain a lane line detection result; Three-dimensional object detection is performed according to the fused image features to obtain a three-dimensional object detection result.

3. The method according to claim 1, characterized in that The step of determining target depth information at a target point of the three-dimensional target from the three-dimensional target detection result includes: Determining a prediction box of the three-dimensional object from the three-dimensional object detection result; Determine the center point of the bottom surface of the prediction box as the target point of the three-dimensional object; the bottom surface is used to represent the contact surface between the three-dimensional object and the lane; Determine target depth information at the target point from the three-dimensional target detection result.

4. The method according to claim 1, characterized in that: The method further comprises: Performing weighted fusion on the reference depth information at each of the reference points according to the relative positional relationship between each of the reference points and the target point, to obtain fused depth information; The first difference is determined according to the target depth information and the fused depth information.

5. The method according to claim 1, characterized in that The three-dimensional object detection result includes a prediction confidence of a prediction box of the three-dimensional object; The method further comprises: Determining a predicted level of interest corresponding to the prediction box according to the predicted levels of interest at pixels within the prediction box; The prediction confidence of the prediction box is weighted according to the prediction interest level corresponding to the prediction box to obtain the target confidence of the prediction box.

6. A target detection device, characterized in that: The device comprises: Model reasoning module, used to obtain lane detection results and 3D object detection results output by the multi-task model; A target depth determination module, used to determine target depth information at a target point of the three-dimensional target from the three-dimensional target detection result; A lane line determination module, used to determine at least one reference lane line adjacent to the three-dimensional object according to the lane line detection result; A reference point determination module, used to determine a reference point corresponding to the target point from each of the reference lane lines; a first direction of a straight line between the target point and the reference point is a horizontal direction perpendicular to a vehicle travel direction; A reference depth determination module, used to determine reference depth information at each reference point from the lane line detection result; The model inference module is further used to perform regression analysis on the interest level of the input image in the process of performing lane line detection on the input image based on the multi-task model to obtain a predicted interest level at each pixel in the input image; determine the lane area based on the lane boundary position information in the lane line detection result; the label interest level of the pixels in the lane area is greater than the label interest level of the pixels outside the lane area; A model optimization module, used to determine the label interest level corresponding to the prediction box according to the label interest level at the pixels in the prediction box; determine the loss weight corresponding to the prediction box according to the label interest level corresponding to the prediction box; the loss weight corresponding to the prediction box is used to characterize the proportion of the prediction box in the calculation of the three-dimensional target detection loss; determine the first reference loss according to the first difference; determine the second reference loss according to the second difference; optimize the multi-task model in the direction of reducing the first reference loss, the second reference loss and the three-dimensional target detection loss to obtain an optimized multi-task model; the first difference refers to the difference between the target depth information and the reference depth information; the second difference refers to the difference between the label interest level and the predicted interest level.

7. The device according to claim 6, characterized in that The model inference module is also used to perform cutout processing on the central area of ​​the collected initial image to obtain a central sub-image; fuse the whole image features of the initial image and the cutout features of the central sub-image through a multi-task model to obtain a fused image feature; perform lane line detection based on the fused image feature to obtain a lane line detection result; perform three-dimensional target detection based on the fused image feature to obtain a three-dimensional target detection result.

8. The device according to claim 6, characterized in that The target depth determination module is further used to determine a prediction box of the three-dimensional target from the three-dimensional target detection result; determine the center point of the bottom surface of the prediction box as the target point of the three-dimensional target; the bottom surface is used to represent the contact surface between the three-dimensional target and the lane; Determine target depth information at the target point from the three-dimensional target detection result.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.