Depth information acquisition method, device, electronic device and storage medium
By inputting continuous images into the depth information fusion model in the autonomous driving system, combining the monocular and multi-eye depth information acquisition layers, and using vehicle speed and camera external parameters for depth information fusion, the problem of unsupervised depth algorithms in images in dynamic scenes is solved. The problem of low depth prediction accuracy is solved by achieving higher image depth prediction accuracy.
Patent Information
- Application Number
- CN202210989737.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-17
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-08-17
AI Technical Summary
Unsupervised depth algorithms have low accuracy in predicting image depth information in dynamic scenes, which limits their use in applications such as autonomous driving.
A depth information acquisition method is proposed, which inputs two consecutive frames of images of the target vehicle into the depth information fusion model, combines the monocular and multi-eye depth information acquisition layers, and uses the vehicle speed and camera external parameters to perform depth information fusion to improve image depth. Prediction accuracy.
By fusing monocular and multi-eye depth information and adaptively adjusting the image depth, the accuracy of image depth prediction is significantly improved and is suitable for autonomous driving applications in dynamic scenes.
Smart Images

Figure CN115457105B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of image depth prediction, and in particular to a method, device, electronic device and storage medium for acquiring depth information. Background Art
[0002] In the field of autonomous driving, how to obtain depth information of targets such as vehicles and pedestrians is an important technical point in many current researches, such as 3D reconstruction, obstacle detection, SLAM (Simultaneous Localization and Mapping), etc.
[0003] Image depth algorithms are divided into supervised algorithms and unsupervised algorithms. The predicted depth values of supervised algorithms are more accurate, but supervised algorithms need to provide point clouds, which limits the practical application of such algorithms. Therefore, unsupervised algorithms are more popular in future research and applications. Unsupervised means that there is no need for point cloud signals or manual annotation. You only need to input the image data itself to train the algorithm and obtain image depth information.
[0004] At present, there are two commonly used unsupervised depth algorithms: 1. Monocular unsupervised depth estimation algorithm based on video sequence; 2. Multi-frame unsupervised depth estimation algorithm based on video sequence. However, these two algorithms need to ensure that the input image is an image of a static scene. In dynamic scenes, the accuracy of the predicted image depth information will be low. Summary of the invention
[0005] The embodiments of the present application provide a method, device, electronic device and storage medium for acquiring depth information to solve the problem of low accuracy of predicted image depth information caused by unsupervised depth algorithms in related technologies.
[0006] In order to solve the above technical problems, the embodiments of the present application are implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a method for acquiring depth information, comprising:
[0008] Inputting a first frame image and a second frame image of the target vehicle into a depth information fusion model; the first frame image and the second frame image are two consecutive frames of images, and the generation time of the first frame image is later than that of the second frame image, and the depth information fusion model includes: a monocular depth information acquisition layer, a multi-eye depth information acquisition layer and a depth information fusion layer;
[0009] Calling the monocular depth information acquisition layer to process the image features of the first frame image to obtain the monocular depth information of each pixel in the first frame image;
[0010] Calling the multi-eye depth information acquisition layer to process the image features of the first frame image and the second frame image according to the monocular depth information, the predicted vehicle speed of the target vehicle, and the camera extrinsic parameters of the target camera, to obtain the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information;
[0011] The depth information fusion layer is called to fuse the monocular depth information and the multi-camera depth information of each pixel in the first frame image according to the confidence level to obtain the image depth information of the first frame image.
[0012] Optionally, the depth information fusion model further includes: a camera extrinsic parameter acquisition layer,
[0013] After the first frame image and the second frame image of the target vehicle are input into the depth information fusion model, the method further includes:
[0014] Calling the camera extrinsic parameter acquisition layer to process the image features of the first frame image and the second frame image to obtain the camera extrinsic parameters of the target camera;
[0015] The vehicle speed of the target vehicle is determined according to the camera translation vector in the camera extrinsic parameters and the camera shooting frame rate of the target camera.
[0016] Optionally, the multi-view depth information acquisition layer includes: an encoding module, a cost volume construction module and a decoding module.
[0017] The calling of the multi-eye depth information acquisition layer processes the image features of the first frame image and the second frame image according to the monocular depth information, the predicted vehicle speed of the target vehicle, and the camera extrinsic parameters of the target camera to obtain the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information, including:
[0018] Calling the encoding module to perform encoding processing on the first frame image and the second frame image to obtain a first image feature of the first frame image and a second image feature of the second frame image;
[0019] Calling the cost volume construction module to perform homography transformation on the first image feature and the second image feature to obtain transformation features, and processing the camera extrinsic parameters and the transformation features to obtain cost volume features of each pixel in the first frame image;
[0020] The decoding module is called to process the cost volume feature according to the vehicle speed and the monocular depth information to obtain multi-eye depth search range information of each pixel in the first frame image, and the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information are determined according to the multi-eye depth search range information.
[0021] Optionally, calling the cost volume construction module to perform homography transformation on the first image feature and the second image feature to obtain transformation features, and processing the camera extrinsic parameters and the transformation features to obtain cost volume features of each pixel in the first frame image includes:
[0022] Calling the cost volume construction module to perform homography transformation on the first image feature and the second image feature to obtain a first transformation feature of the first image feature and a second transformation feature of the second image feature;
[0023] Obtaining an initial cost volume feature of each pixel in the second frame image according to the first transformation feature, the second transformation feature and the camera extrinsic parameter;
[0024] The initial cost volume feature is projected onto the first frame image to obtain a cost volume feature of each pixel in the first frame image.
[0025] Optionally, the calling the depth information fusion layer to fuse the monocular depth information and the multi-camera depth information of each pixel in the first frame image according to the confidence level to obtain the image depth information of the first frame image includes:
[0026] Calling the depth information fusion layer to obtain a first pixel in the first frame image whose confidence is greater than a first confidence threshold, and using the multi-view depth information of the first pixel as the depth information of the first pixel;
[0027] Calling the depth information fusion layer to obtain a second pixel in the first frame image whose confidence is less than a second confidence threshold, and using the monocular depth information of the second pixel as the depth information of the second pixel; the first confidence threshold is greater than the second confidence threshold;
[0028] Calling the depth information fusion layer to obtain a third pixel in the first frame image except the first pixel and the second pixel, and fusing the monocular depth information of the third pixel with the multi-eye depth information according to the confidence of the third pixel to obtain fused depth information, and using the fused depth information as the depth information of the third pixel;
[0029] Image depth information of the first frame image is obtained according to the depth information of the first pixel, the depth information of the second pixel, and the depth information of the third pixel.
[0030] In a second aspect, an embodiment of the present application provides a depth information acquisition device, including:
[0031] An image input module is used to input a first frame image and a second frame image of a target vehicle into a depth information fusion model; the first frame image and the second frame image are two consecutive frames of images, and the generation time of the first frame image is later than that of the second frame image, and the depth information fusion model includes: a monocular depth information acquisition layer, a multi-eye depth information acquisition layer and a depth information fusion layer;
[0032] A monocular depth acquisition module, used for calling the monocular depth information acquisition layer to process the image features of the first frame image to obtain the monocular depth information of each pixel in the first frame image;
[0033] A multi-eye depth acquisition module is used to call the multi-eye depth information acquisition layer to process the image features of the first frame image and the second frame image according to the monocular depth information, the predicted vehicle speed of the target vehicle and the camera extrinsic parameters of the target camera, so as to obtain the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information;
[0034] The image depth acquisition module is used to call the depth information fusion layer to fuse the monocular depth information and multi-camera depth information of each pixel in the first frame image according to the confidence level to obtain the image depth information of the first frame image.
[0035] Optionally, the depth information fusion model further includes: a camera extrinsic parameter acquisition layer,
[0036] The device also includes:
[0037] A camera parameter acquisition module, used for calling the camera extrinsic parameter acquisition layer, processing the image features of the first frame image and the second frame image, and obtaining the camera extrinsic parameters of the target camera;
[0038] The vehicle speed determination module is used to determine the vehicle speed of the target vehicle according to the camera translation vector in the camera extrinsic parameter and the camera shooting frame rate of the target camera.
[0039] Optionally, the multi-view depth information acquisition layer includes: an encoding module, a cost volume construction module and a decoding module.
[0040] The multi-view depth acquisition module comprises:
[0041] an image feature acquisition unit, configured to call the encoding module to perform encoding processing on the first frame image and the second frame image to obtain a first image feature of the first frame image and a second image feature of the second frame image;
[0042] a cost volume feature acquisition unit, configured to call the cost volume construction module to perform homography transformation on the first image feature and the second image feature to obtain transformation features, and process the camera extrinsic parameters and the transformation features to obtain cost volume features of each pixel in the first frame image;
[0043] A multi-eye depth determination unit is used to call the decoding module to process the cost volume feature according to the vehicle speed and the monocular depth information, obtain the multi-eye depth search range information of each pixel in the first frame image, and determine the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information according to the multi-eye depth search range information.
[0044] Optionally, the cost volume feature acquisition unit includes:
[0045] a transformation feature acquisition subunit, configured to call the cost volume construction module to perform homography transformation on the first image feature and the second image feature to obtain a first transformation feature of the first image feature and a second transformation feature of the second image feature;
[0046] an initial feature acquisition subunit, configured to obtain an initial cost volume feature of each pixel in the second frame image according to the first transformation feature, the second transformation feature and the camera extrinsic parameter;
[0047] The cost volume feature acquisition subunit is used to project the initial cost volume feature onto the first frame image to obtain the cost volume feature of each pixel in the first frame image.
[0048] Optionally, the image depth acquisition module includes:
[0049] A first depth information acquisition unit, configured to call the depth information fusion layer to acquire a first pixel in the first frame image whose confidence is greater than a first confidence threshold, and use the multi-view depth information of the first pixel as the depth information of the first pixel;
[0050] A second depth information acquisition unit is used to call the depth information fusion layer to acquire a second pixel in the first frame image whose confidence is less than a second confidence threshold, and use the monocular depth information of the second pixel as the depth information of the second pixel; the first confidence threshold is greater than the second confidence threshold;
[0051] a third depth information acquisition unit, configured to call the depth information fusion layer to acquire a third pixel in the first frame image except the first pixel and the second pixel, and fuse the monocular depth information of the third pixel with the multi-eye depth information according to the confidence of the third pixel to obtain fused depth information, and use the fused depth information as the depth information of the third pixel;
[0052] An image depth information acquisition unit is used to obtain the image depth information of the first frame image according to the depth information of the first pixel, the depth information of the second pixel and the depth information of the third pixel.
[0053] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0054] A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements any of the above-mentioned depth information acquisition methods when executed by the processor.
[0055] In a fourth aspect, an embodiment of the present application provides a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute any of the depth information acquisition methods described above.
[0056] In an embodiment of the present application, a first frame image and a second frame image of the target vehicle are input into a depth information fusion model. The first frame image and the second frame image are two consecutive frames of images, and the generation time of the first frame image is later than that of the second frame image. The depth information fusion model includes: a monocular depth information acquisition layer, a multi-eye depth information acquisition layer and a depth information fusion layer. The monocular depth information acquisition layer is called to process the image features of the first frame image to obtain the monocular depth information of each pixel in the first frame image. The multi-eye depth information acquisition layer is called to process the image features of the first frame image and the second frame image according to the monocular depth information, the predicted vehicle speed of the target vehicle and the camera extrinsic parameters of the target camera to obtain the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information. The depth information fusion layer is called to fuse the monocular depth information and the multi-eye depth information of each pixel in the first frame image according to the confidence to obtain the image depth information of the first frame image. The embodiment of the present application adaptively adjusts the multi-camera depth of the image by combining the vehicle speed and the monocular depth, and fuses the multi-camera depth and the monocular depth to obtain the image depth, so as to obtain a more accurate image depth and improve the accuracy of image depth prediction.
[0057] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be 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.
[0059] Figure 1 A flowchart of a method for obtaining depth information provided in an embodiment of the present application;
[0060] Figure 2 A flowchart of a method for obtaining camera parameters provided in an embodiment of the present application;
[0061] Figure 3 A flowchart of the steps of a multi-view depth acquisition method provided in an embodiment of the present application;
[0062] Figure 4 A flowchart of a cost volume feature acquisition method provided in an embodiment of the present application;
[0063] Figure 5 A flowchart of a method for obtaining image depth information provided by an embodiment of the present application;
[0064] Figure 6 A schematic diagram of a depth information fusion model provided in an embodiment of the present application;
[0065] Figure 7 A schematic diagram of the structure of a depth information acquisition device provided in an embodiment of the present application;
[0066] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0067] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0068] Reference Figure 1, which shows a flowchart of the steps of a method for obtaining depth information provided by an embodiment of the present application, such as Figure 1 As shown, the depth information acquisition method may include: step 101, step 102, step 103 and step 104.
[0069] Step 101: Input the first frame image and the second frame image of the target vehicle into a depth information fusion model.
[0070] The embodiments of the present application can be applied to scenarios where monocular depth information and multi-camera depth information of an image are fused to accurately obtain the depth information of the image.
[0071] In this embodiment, the target vehicle may be an autonomous driving vehicle, such as an unmanned delivery vehicle, an unmanned patrol vehicle, and the like.
[0072] The first frame image and the second frame image are two consecutive frames of images, and the generation time of the first frame image is later than that of the second frame image. Specifically, the first frame image and the second frame image are two consecutive frames of images in a video recorded by a target camera on a target vehicle. For example, the video shot by the target camera contains 10 frames of images, and the 10 frames of images are image 1, image 2, ..., image 10 in chronological order. When the first frame image is image 2, the second frame image is image 1; and when the first frame image is image 6, the second frame image is image 5, and so on.
[0073] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation to the embodiments.
[0074] The depth information fusion model refers to a model used to fuse multi-eye depth information and monocular depth information to obtain image depth. In this example, the depth information fusion model may include: a monocular depth information acquisition layer, a multi-eye depth information acquisition layer, and a depth information fusion layer. Figure 6 As shown in the figure, Pose branch is the camera external parameter acquisition layer, Monocular branch is the monocular depth information acquisition layer, MVS branch is the multi-eye depth information acquisition layer, etc.
[0075] In a specific implementation, when a target camera on a target vehicle is used to record a video and the depth information of a current frame (ie, the first frame) image is parsed, the first frame image and the second frame image at the previous moment can be input into a depth information fusion model.
[0076] After the first frame image and the second frame image of the target vehicle are input into the depth information fusion model, step 102 is performed.
[0077] Step 102: calling the monocular depth information acquisition layer to process the image features of the first frame image to obtain the monocular depth information of each pixel in the first frame image.
[0078] After the first frame image and the second frame image of the target vehicle are input into the depth information fusion model, the monocular depth information acquisition layer can be called to process the image features of the first frame image to obtain the monocular depth information of each pixel in the first frame image. Figure 6 As shown, in the Monocular branch, DepthNet can be used to process the first frame image (i.e., Frame T in the figure) to obtain the monocular depth information Monocular Depth of the first frame image.
[0079] After calling the monocular depth information acquisition layer to process the image features of the first frame image to obtain the monocular depth information of each pixel in the first frame image, step 103 is executed.
[0080] Step 103: Call the multi-eye depth information acquisition layer to process the image features of the first frame image and the second frame image according to the monocular depth information, the predicted vehicle speed of the target vehicle and the camera parameters of the target camera, to obtain the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information.
[0081] Vehicle speed refers to the predicted driving speed of the target vehicle.
[0082] The camera parameters refer to the parameters of the target camera used to capture the first frame image and the second frame image. In this example, the camera parameters may include: a rotation matrix of the target camera and a camera translation vector.
[0083] The process of predicting vehicle speed and camera parameters can be combined Figure 2 This is described in detail as follows.
[0084] Reference Figure 2 , shows a flowchart of the steps of a camera parameter acquisition method provided by an embodiment of the present application, such as Figure 2 As shown, the camera parameter acquisition method may include: step 201 and step 202.
[0085] Step 201: calling the camera extrinsic parameter acquisition layer to process the image features of the first frame image and the second frame image to obtain the camera extrinsic parameters of the target camera.
[0086] In this embodiment, the depth information fusion model may also include: a camera external parameter acquisition layer, such as Figure 7 As shown, Posebranch is the camera external parameter acquisition layer.
[0087] After the first frame image and the second frame image of the target vehicle are input into the depth information fusion model, the camera extrinsic parameter acquisition layer can be called to process the image features of the first frame image and the second frame image to obtain the camera extrinsic parameters of the target camera. Figure 7 As shown, after Frame T (i.e., the first frame image) and Frame T-1 (i.e., the second frame image) are input into the depth information fusion model, the image features of Frame T and Frame T-1 can be processed using Pose Net in the Pose branch to obtain the camera extrinsics of the target camera, i.e., the rotation matrix and the camera translation vector.
[0088] After calling the camera extrinsic parameter acquisition layer to process the image features of the first frame image and the second frame image to obtain the camera extrinsic parameters of the target camera, step 202 is executed.
[0089] Step 202: Determine the vehicle speed of the target vehicle according to the camera translation vector in the camera extrinsic parameters and the camera shooting frame rate of the target camera.
[0090] After the camera extrinsic parameter acquisition layer is called to process the image features of the first frame image and the second frame image to obtain the camera extrinsic parameters of the target camera, the vehicle speed of the target vehicle can be determined according to the camera translation vector in the camera extrinsic parameters and the camera shooting frame rate of the target camera. Specifically, the vehicle speed can be predicted in the camera extrinsic parameter acquisition layer according to the following formula (1):
[0091] v=α||T||2 (1)
[0092] In the above formula (1), v is the vehicle speed, α is the camera shooting frame rate, and T is the camera translation vector.
[0093] After obtaining the monocular depth information of the first frame image, the vehicle speed of the target vehicle and the camera extrinsic parameters of the target camera, the monocular depth information of the first frame image, the vehicle speed of the target vehicle and the camera extrinsic parameters of the target camera can be used as the input of the multi-eye depth information acquisition layer. The multi-eye depth information acquisition layer can be called to process the image features of the first frame image and the second frame image according to the monocular depth information of the first frame image, the vehicle speed of the target vehicle and the camera extrinsic parameters of the target camera to obtain the multi-eye depth information of each pixel in the first frame image, as well as the confidence of the multi-eye depth information of each pixel. The confidence can be used to indicate the degree to which the pixel tends to the multi-eye depth information. The greater the confidence, the more the pixel tends to the predicted multi-eye depth information of the pixel, etc. Figure 7As shown in the figure, Frame T (i.e., the first frame image) and Frame T-1 (i.e., the second frame image), as well as the outputs of the Pose branch and the Monocular branch, can be used as the input of the MVS branch. The encoder, Homo-Warp, and decoder process the input to obtain the multi-view depth information MVS Depth and the corresponding uncertainty of each pixel.
[0094] In a specific implementation, the multi-eye depth information acquisition layer can be called to obtain the cost volume features of each pixel in the first frame image, and the multi-eye depth search range information of each pixel in the first frame image can be dynamically adjusted. The multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information can be determined according to the multi-eye depth search range information. Figure 3 This is described in detail as follows.
[0095] Reference Figure 3 , which shows a flowchart of the steps of a multi-view depth acquisition method provided by an embodiment of the present application, such as Figure 3 As shown, the multi-view depth acquisition method may include: step 301, step 302 and step 303.
[0096] Step 301: calling the encoding module to perform encoding processing on the first frame image and the second frame image to obtain a first image feature of the first frame image and a second image feature of the second frame image.
[0097] In this embodiment, the multi-view depth information acquisition layer may include: an encoding module, a cost volume construction module and a decoding module. Figure 7 As shown, the MVS branch may include: encoder (encoding module), Homo-Warp (cost body construction module) and decoder (decoding module).
[0098] After the first frame image and the second frame image are input into the depth information fusion model, the encoding module in the multi-view depth information acquisition layer can be called to encode the first frame image and the second frame image to obtain the first image features of the first frame image and the second image features of the second frame image.
[0099] After the encoding module is called to perform encoding processing on the first frame image and the second frame image to obtain the first image feature of the first frame image and the second image feature of the second frame image, step 302 is performed.
[0100] Step 302: Call the cost volume construction module to perform homography transformation on the first image features and the second image features to obtain transformation features, and process the camera extrinsic parameters and the transformation features to obtain cost volume features for each pixel in the first frame image.
[0101] After the encoding module is called to encode the first frame image and the second frame image to obtain the first image feature of the first frame image and the second image feature of the second frame image, the cost volume construction module can be used to perform homography transformation on the first image feature and the second image feature to obtain the transformation features corresponding to the first image feature and the second image feature respectively. Then, the camera extrinsic parameters and the transformation features are processed to obtain the cost volume features of each pixel in the first frame image.
[0102] For this implementation process, you can combine Figure 4 This is described in detail as follows.
[0103] Reference Figure 4 , which shows a flowchart of the steps of a cost volume feature acquisition method provided by an embodiment of the present application, such as Figure 4 As shown, the cost volume feature acquisition method may include: step 401, step 402 and step 403.
[0104] Step 401: calling the cost volume construction module to perform homography transformation on the first image feature and the second image feature to obtain a first transformation feature of the first image feature and a second transformation feature of the second image feature.
[0105] In this embodiment, after obtaining the first image feature and the second image feature, the cost volume construction module can be called to perform homography transformation on the first image feature and the second image feature to obtain a first transformation feature of the first image feature and a second transformation feature of the second image feature.
[0106] After the first transformation feature and the second transformation feature are obtained, step 402 is performed.
[0107] Step 402: Obtain an initial cost volume feature of each pixel in the second frame image according to the first transformation feature, the second transformation feature and the camera extrinsic parameter.
[0108] After the first transformation feature and the second transformation feature are obtained, an initial cost volume feature of each pixel in the second frame image can be obtained according to the first transformation feature, the second transformation feature and the camera extrinsic parameter.
[0109] In this embodiment, a plane scanning method may be used to construct the cost volume feature of each pixel, as shown in the following formula (2):
[0110] P t-1,j=K*(R*(K -1 *P t *d j )+T) (2)
[0111] In the above formula (2), P t is the pixel feature of the transformation feature corresponding to the first frame image, P t-1,j is the pixel feature of the transformation feature corresponding to the second frame image, K is the camera intrinsic parameter of the target camera, R is the rotation matrix of the target camera, T is the camera translation vector of the target camera, d j is the depth value of the jth pixel.
[0112] In a specific implementation, the above formula (2) can be applied once to each pixel, and then the cost volume feature of each pixel in the second frame image can be obtained, that is, the initial cost volume feature.
[0113] Step 403: Project the initial cost volume feature onto the first frame image to obtain the cost volume feature of each pixel in the first frame image.
[0114] After obtaining the initial cost volume feature of each pixel in the second frame image, the initial cost volume feature may be projected onto the first frame image to obtain the cost volume feature of each pixel in the first frame image.
[0115] After the cost volume feature of each pixel in the first frame image is obtained, step 303 is executed.
[0116] Step 303: Call the decoding module to process the cost volume features according to the vehicle speed and the monocular depth information to obtain the multi-eye depth search range information of each pixel in the first frame image, and determine the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information based on the multi-eye depth search range information.
[0117] After obtaining the cost volume feature of each pixel in the first frame image, the decoding module can be called to process the corresponding cost volume feature according to the vehicle speed and the monocular depth information of each pixel in the first frame image to obtain the multi-eye depth search range information of each pixel in the first frame image. Then, the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information of each pixel are determined according to the multi-eye depth search range information.
[0118] In this embodiment, the depth search range of the multi-eye depth information can be dynamically adjusted based on the predicted speed and monocular depth information. When the speed is higher, the premise assumption of the multi-eye depth information (the field of view of the two images changes greatly) is met, then the depth search range can be expanded to more accurately estimate the depth. When the vehicle speed is low, the premise assumption of the multi-eye depth information is not met, so the depth search range can be reduced to make the depth as close to the monocular depth as possible, so that the multi-eye depth obtained is more robust. The multi-eye depth search range can be shown as the following formula (3):
[0119]
[0120] In the above formula (3), d min is the minimum value of the multi-eye depth search range, d max is the maximum value of the multi-eye depth search range, D Mono is the monocular depth information, β is a hyperparameter (between 1 and 2), T is the camera translation vector, v is the vehicle speed, and βT(v) ranges from 0 to 1.
[0121] After obtaining the multi-view depth search range information of each pixel, the precise multi-view depth information corresponding to each pixel can be found from the multi-view depth search range information.
[0122] For confidence, the decoder (which can be composed of a 2D convolutional network plus a sigmoid activation function) can be used to learn the entropy function of the cost body features to obtain the uncertainty of the cost body features as the confidence of the multi-view depth information of each pixel.
[0123] After obtaining the monocular depth information and multi-camera depth information of each pixel in the first frame image, as well as the confidence of the multi-camera depth information of each pixel, step 104 is performed.
[0124] Step 104: calling the depth information fusion layer to fuse the monocular depth information and multi-camera depth information of each pixel in the first frame image according to the confidence level to obtain the image depth information of the first frame image.
[0125] After obtaining the monocular depth information and multi-eye depth information of each pixel in the first frame image, as well as the confidence of the multi-eye depth information of each pixel, the depth information fusion layer can be called to fuse the monocular depth information and multi-eye depth information of each pixel in the first frame image according to the confidence, so as to obtain the image depth information of the first frame image. Figure 5 This is described in detail as follows.
[0126] Reference Figure 5 , shows a flowchart of the steps of a method for obtaining image depth information provided by an embodiment of the present application, such as Figure 5 As shown, the method for acquiring image depth information may include: step 501, step 502, step 503 and step 504.
[0127] Step 501: calling the depth information fusion layer to obtain a first pixel in the first frame image whose confidence is greater than a first confidence threshold, and using the multi-view depth information of the first pixel as the depth information of the first pixel.
[0128] In this embodiment, the first confidence threshold refers to a preset confidence threshold for determining pixels in an image that are close to multi-view depth information. The specific value of the first confidence threshold can be determined according to business requirements, and this embodiment does not impose any restrictions on this.
[0129] After obtaining the multi-view depth information and the corresponding confidence level of each pixel in the first frame image, the depth information fusion layer may be called to obtain the first pixel in the first frame image whose confidence level is greater than a first confidence level threshold.
[0130] After acquiring a first pixel whose confidence is greater than a first confidence threshold in the first frame image, the multi-view depth information of the first pixel may be used as the depth information of the first pixel.
[0131] Step 502: Call the depth information fusion layer to obtain a second pixel in the first frame image whose confidence is less than a second confidence threshold, and use the monocular depth information of the second pixel as the depth information of the second pixel; the first confidence threshold is greater than the second confidence threshold.
[0132] The second confidence threshold refers to a preset confidence threshold for determining pixels in an image that are close to monocular depth information. The specific value of the second confidence threshold can be determined based on business requirements, and this embodiment does not impose any restrictions on this.
[0133] In this example, the first confidence threshold is greater than the second confidence threshold.
[0134] After obtaining the multi-view depth information and the corresponding confidence level of each pixel in the first frame image, the depth information fusion layer may be called to obtain a second pixel in the first frame image whose confidence level is less than a second confidence level threshold.
[0135] After acquiring a second pixel whose confidence is less than a second confidence threshold in the first frame image, the monocular depth information of the second pixel may be used as the depth information of the second pixel, that is, the monocular depth information of the second pixel may replace the multi-eye depth information of the second pixel.
[0136] Step 503: Call the depth information fusion layer to obtain a third pixel in the first frame image except the first pixel and the second pixel, and fuse the monocular depth information and the multi-eye depth information of the third pixel according to the confidence of the third pixel to obtain fused depth information, and use the fused depth information as the depth information of the third pixel.
[0137] After obtaining the multi-view depth information and the corresponding confidence level of each pixel in the first frame image, the depth information fusion layer may be called to obtain a third pixel in the first frame image except the first pixel and the second pixel.
[0138] After obtaining the third pixel in the first frame image, the monocular depth information and multi-eye depth information of the third pixel can be fused according to the third pixel confidence to obtain fused depth information, and then the fused depth information can be used as the depth information of the third pixel.
[0139] Step 504: Obtain image depth information of the first frame image according to the depth information of the first pixel, the depth information of the second pixel, and the depth information of the third pixel.
[0140] After obtaining the depth information of the first pixel, the depth information of the second pixel, and the depth information of the third pixel, the image depth information of the first frame image may be obtained according to the depth information corresponding to the first pixel, the second pixel, and the third pixel respectively.
[0141] In this embodiment, the above implementation can be combined with the following formula (3):
[0142] D Fuse =U*D Mono +(1-U)*D MVS (3)
[0143] In the above formula (3), D Fuse is the fused image depth information, U is the confidence, D Mono is the monocular depth information, D MVS It is multi-eye depth information.
[0144] The depth information acquisition method provided in the embodiment of the present application is implemented by inputting the first frame image and the second frame image of the target vehicle into the depth information fusion model. The first frame image and the second frame image are two consecutive frames of images, and the generation time of the first frame image is later than that of the second frame image. The depth information fusion model includes: a monocular depth information acquisition layer, a multi-eye depth information acquisition layer and a depth information fusion layer. The monocular depth information acquisition layer is called to process the image features of the first frame image to obtain the monocular depth information of each pixel in the first frame image. The multi-eye depth information acquisition layer is called to process the image features of the first frame image and the second frame image according to the monocular depth information, the predicted vehicle speed of the target vehicle and the camera extrinsic parameters of the target camera to obtain the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information. The depth information fusion layer is called to fuse the monocular depth information and the multi-eye depth information of each pixel in the first frame image according to the confidence to obtain the image depth information of the first frame image. The embodiment of the present application adaptively adjusts the multi-camera depth of the image by combining the vehicle speed and the monocular depth, and fuses the multi-camera depth and the monocular depth to obtain the image depth, so as to obtain a more accurate image depth and improve the accuracy of image depth prediction.
[0145] Reference Figure 7 , which shows a schematic diagram of the structure of a depth information acquisition device provided in an embodiment of the present application, such as Figure 7 As shown, the depth information acquisition device 700 may include: an image input module 710 , a monocular depth acquisition module 720 , a multi-camera depth acquisition module 730 and an image depth acquisition module 740 .
[0146] The image input module 710 is used to input a first frame image and a second frame image of the target vehicle into a depth information fusion model; the first frame image and the second frame image are two consecutive frames of images, and the generation time of the first frame image is later than that of the second frame image, and the depth information fusion model includes: a monocular depth information acquisition layer, a multi-eye depth information acquisition layer and a depth information fusion layer;
[0147] A monocular depth acquisition module 720 is used to call the monocular depth information acquisition layer to process the image features of the first frame image to obtain the monocular depth information of each pixel in the first frame image;
[0148] The multi-eye depth acquisition module 730 is used to call the multi-eye depth information acquisition layer to process the image features of the first frame image and the second frame image according to the monocular depth information, the predicted vehicle speed of the target vehicle and the camera extrinsic parameters of the target camera, so as to obtain the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information;
[0149] The image depth acquisition module 740 is used to call the depth information fusion layer to fuse the monocular depth information and multi-camera depth information of each pixel in the first frame image according to the confidence level to obtain the image depth information of the first frame image.
[0150] Optionally, the depth information fusion model further includes: a camera extrinsic parameter acquisition layer,
[0151] The device also includes:
[0152] A camera parameter acquisition module, used for calling the camera extrinsic parameter acquisition layer, processing the image features of the first frame image and the second frame image, and obtaining the camera extrinsic parameters of the target camera;
[0153] The vehicle speed determination module is used to determine the vehicle speed of the target vehicle according to the camera translation vector in the camera extrinsic parameter and the camera shooting frame rate of the target camera.
[0154] Optionally, the multi-view depth information acquisition layer includes: an encoding module, a cost volume construction module and a decoding module.
[0155] The multi-view depth acquisition module 730 includes:
[0156] an image feature acquisition unit, configured to call the encoding module to perform encoding processing on the first frame image and the second frame image to obtain a first image feature of the first frame image and a second image feature of the second frame image;
[0157] a cost volume feature acquisition unit, configured to call the cost volume construction module to perform homography transformation on the first image feature and the second image feature to obtain transformation features, and process the camera extrinsic parameters and the transformation features to obtain cost volume features of each pixel in the first frame image;
[0158] A multi-eye depth determination unit is used to call the decoding module to process the cost volume feature according to the vehicle speed and the monocular depth information, obtain the multi-eye depth search range information of each pixel in the first frame image, and determine the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information according to the multi-eye depth search range information.
[0159] Optionally, the cost volume feature acquisition unit includes:
[0160] a transformation feature acquisition subunit, configured to call the cost volume construction module to perform homography transformation on the first image feature and the second image feature to obtain a first transformation feature of the first image feature and a second transformation feature of the second image feature;
[0161] an initial feature acquisition subunit, configured to obtain an initial cost volume feature of each pixel in the second frame image according to the first transformation feature, the second transformation feature and the camera extrinsic parameter;
[0162] The cost volume feature acquisition subunit is used to project the initial cost volume feature onto the first frame image to obtain the cost volume feature of each pixel in the first frame image.
[0163] Optionally, the image depth acquisition module 740 includes:
[0164] A first depth information acquisition unit, configured to call the depth information fusion layer to acquire a first pixel in the first frame image whose confidence is greater than a first confidence threshold, and use the multi-view depth information of the first pixel as the depth information of the first pixel;
[0165] A second depth information acquisition unit is used to call the depth information fusion layer to acquire a second pixel in the first frame image whose confidence is less than a second confidence threshold, and use the monocular depth information of the second pixel as the depth information of the second pixel; the first confidence threshold is greater than the second confidence threshold;
[0166] a third depth information acquisition unit, configured to call the depth information fusion layer to acquire a third pixel in the first frame image except the first pixel and the second pixel, and fuse the monocular depth information of the third pixel with the multi-eye depth information according to the confidence of the third pixel to obtain fused depth information, and use the fused depth information as the depth information of the third pixel;
[0167] An image depth information acquisition unit is used to obtain the image depth information of the first frame image according to the depth information of the first pixel, the depth information of the second pixel and the depth information of the third pixel.
[0168] The depth information acquisition device provided in the embodiment of the present application is input into the depth information fusion model by inputting the first frame image and the second frame image of the target vehicle. The first frame image and the second frame image are two consecutive frames of images, and the generation time of the first frame image is later than that of the second frame image. The depth information fusion model includes: a monocular depth information acquisition layer, a multi-eye depth information acquisition layer and a depth information fusion layer. The monocular depth information acquisition layer is called to process the image features of the first frame image to obtain the monocular depth information of each pixel in the first frame image. The multi-eye depth information acquisition layer is called to process the image features of the first frame image and the second frame image according to the monocular depth information, the predicted vehicle speed of the target vehicle and the camera extrinsic parameters of the target camera to obtain the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information. The depth information fusion layer is called to fuse the monocular depth information and the multi-eye depth information of each pixel in the first frame image according to the confidence to obtain the image depth information of the first frame image. The embodiment of the present application adaptively adjusts the multi-camera depth of the image by combining the vehicle speed and the monocular depth, and fuses the multi-camera depth and the monocular depth to obtain the image depth, so as to obtain a more accurate image depth and improve the accuracy of image depth prediction.
[0169] An embodiment of the present application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the above-mentioned depth information acquisition method when executed by the processor.
[0170] Figure 8 FIG. 8 is a schematic diagram showing the structure of an electronic device 800 according to an embodiment of the present invention. Figure 8 As shown, the electronic device 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 802 or computer program instructions loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0171] Multiple components in the electronic device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, a microphone, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0172] The various processes and processing described above may be performed by the processing unit 801. For example, the method of any of the above embodiments may be implemented as a computer software program, which is tangibly contained in a computer-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the CPU 801, one or more actions in the method described above may be performed.
[0173] The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned depth information acquisition method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0174] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0175] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0176] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0177] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0178] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0179] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or groups can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0180] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0181] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0182] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0183] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for obtaining depth information, characterized in that: include: Inputting the first frame image and the second frame image of the target vehicle into the depth information fusion model; The first frame image and the second frame image are two consecutive frames of images, and the generation time of the first frame image is later than that of the second frame image. The depth information fusion model includes: a monocular depth information acquisition layer, a multi-eye depth information acquisition layer and a depth information fusion layer, and the multi-eye depth information acquisition layer includes: an encoding module, a cost volume construction module and a decoding module; Calling the monocular depth information acquisition layer to process the image features of the first frame image to obtain the monocular depth information of each pixel in the first frame image; The multi-eye depth information acquisition layer is called to process the image features of the first frame image and the second frame image according to the monocular depth information, the predicted vehicle speed of the target vehicle and the camera extrinsic parameters of the target camera, so as to obtain the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information, including: calling the encoding module to encode the first frame image and the second frame image to obtain the first image feature of the first frame image and the second image feature of the second frame image; calling the cost volume construction module to perform homography transformation on the first image feature and the second image feature to obtain transformation features, and processing the camera extrinsic parameters and the transformation features to obtain the cost volume feature of each pixel in the first frame image; calling the decoding module to process the cost volume feature according to the vehicle speed and the monocular depth information to obtain the multi-eye depth search range information of each pixel in the first frame image, and determining the multi-eye depth information of each pixel in the first frame image according to the multi-eye depth search range information, and the confidence of the multi-eye depth information; the confidence is used to indicate the degree to which each pixel tends to the multi-eye depth information; The depth information fusion layer is called to fuse the monocular depth information and the multi-camera depth information of each pixel in the first frame image according to the confidence level to obtain the image depth information of the first frame image.
2. The method according to claim 1, characterized in that The depth information fusion model also includes: a camera external parameter acquisition layer, After the first frame image and the second frame image of the target vehicle are input into the depth information fusion model, the method further includes: Calling the camera extrinsic parameter acquisition layer to process the image features of the first frame image and the second frame image to obtain the camera extrinsic parameters of the target camera; The vehicle speed of the target vehicle is determined according to the camera translation vector in the camera extrinsic parameters and the camera shooting frame rate of the target camera.
3. The method according to claim 1, characterized in that The calling of the cost volume construction module to perform homography transformation on the first image feature and the second image feature to obtain transformation features, and processing the camera extrinsic parameters and the transformation features to obtain cost volume features of each pixel in the first frame image includes: Calling the cost volume construction module to perform homography transformation on the first image feature and the second image feature to obtain a first transformation feature of the first image feature and a second transformation feature of the second image feature; Obtaining an initial cost volume feature of each pixel in the second frame image according to the first transformation feature, the second transformation feature and the camera extrinsic parameter; The initial cost volume feature is projected onto the first frame image to obtain a cost volume feature of each pixel in the first frame image.
4. The method according to claim 1, characterized in that: The calling the depth information fusion layer to fuse the monocular depth information and the multi-camera depth information of each pixel in the first frame of image according to the confidence level to obtain the image depth information of the first frame of image includes: Calling the depth information fusion layer to obtain a first pixel in the first frame image whose confidence is greater than a first confidence threshold, and using the multi-view depth information of the first pixel as the depth information of the first pixel; Calling the depth information fusion layer to obtain a second pixel in the first frame image whose confidence is less than a second confidence threshold, and using the monocular depth information of the second pixel as the depth information of the second pixel; the first confidence threshold is greater than the second confidence threshold; Calling the depth information fusion layer to obtain a third pixel in the first frame image except the first pixel and the second pixel, and fusing the monocular depth information of the third pixel with the multi-eye depth information according to the confidence of the third pixel to obtain fused depth information, and using the fused depth information as the depth information of the third pixel; Image depth information of the first frame image is obtained according to the depth information of the first pixel, the depth information of the second pixel, and the depth information of the third pixel.
5. A depth information acquisition device, characterized in that: include: An image input module, used for inputting a first frame image and a second frame image of a target vehicle into a depth information fusion model; The first frame image and the second frame image are two consecutive frames of images, and the generation time of the first frame image is later than that of the second frame image. The depth information fusion model includes: a monocular depth information acquisition layer, a multi-eye depth information acquisition layer and a depth information fusion layer, and the multi-eye depth information acquisition layer includes: an encoding module, a cost volume construction module and a decoding module; A monocular depth acquisition module, used for calling the monocular depth information acquisition layer to process the image features of the first frame image to obtain the monocular depth information of each pixel in the first frame image; A multi-eye depth acquisition module is used to call the multi-eye depth information acquisition layer to process the image features of the first frame image and the second frame image according to the monocular depth information, the predicted vehicle speed of the target vehicle and the camera extrinsic parameters of the target camera, so as to obtain the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information; An image depth acquisition module, configured to call the depth information fusion layer to fuse the monocular depth information and the multi-camera depth information of each pixel in the first frame of image according to the confidence level, so as to obtain the image depth information of the first frame of image; The multi-view depth acquisition module comprises: an image feature acquisition unit, configured to call the encoding module to perform encoding processing on the first frame image and the second frame image to obtain a first image feature of the first frame image and a second image feature of the second frame image; a cost volume feature acquisition unit, configured to call the cost volume construction module to perform homography transformation on the first image feature and the second image feature to obtain transformation features, and process the camera extrinsic parameters and the transformation features to obtain cost volume features of each pixel in the first frame image; A multi-eye depth determination unit is used to call the decoding module to process the cost volume feature according to the vehicle speed and the monocular depth information, obtain the multi-eye depth search range information of each pixel in the first frame image, and determine the multi-eye depth information of each pixel in the first frame image and the confidence of the multi-eye depth information according to the multi-eye depth search range information; the confidence is used to indicate the degree to which each pixel tends to the multi-eye depth information.
6. The device according to claim 5, characterized in that The depth information fusion model also includes: a camera external parameter acquisition layer, The device also includes: A camera parameter acquisition module, used for calling the camera extrinsic parameter acquisition layer, processing the image features of the first frame image and the second frame image, and obtaining the camera extrinsic parameters of the target camera; The vehicle speed determination module is used to determine the vehicle speed of the target vehicle according to the camera translation vector in the camera extrinsic parameter and the camera shooting frame rate of the target camera.
7. The device according to claim 5, characterized in that The cost volume feature acquisition unit includes: a transformation feature acquisition subunit, configured to call the cost volume construction module to perform homography transformation on the first image feature and the second image feature to obtain a first transformation feature of the first image feature and a second transformation feature of the second image feature; An initial feature acquisition subunit, configured to obtain an initial cost volume feature of each pixel in the second frame image according to the first transformation feature, the second transformation feature and the camera extrinsic parameter; The cost volume feature acquisition subunit is used to project the initial cost volume feature onto the first frame image to obtain the cost volume feature of each pixel in the first frame image.
8. The device according to claim 5, characterized in that The image depth acquisition module comprises: A first depth information acquisition unit, configured to call the depth information fusion layer to acquire a first pixel in the first frame image whose confidence is greater than a first confidence threshold, and use the multi-view depth information of the first pixel as the depth information of the first pixel; A second depth information acquisition unit is used to call the depth information fusion layer to acquire a second pixel in the first frame image whose confidence is less than a second confidence threshold, and use the monocular depth information of the second pixel as the depth information of the second pixel; the first confidence threshold is greater than the second confidence threshold; a third depth information acquisition unit, configured to call the depth information fusion layer to acquire a third pixel in the first frame image except the first pixel and the second pixel, and fuse the monocular depth information of the third pixel with the multi-eye depth information according to the confidence of the third pixel to obtain fused depth information, and use the fused depth information as the depth information of the third pixel; An image depth information acquisition unit is used to obtain the image depth information of the first frame image according to the depth information of the first pixel, the depth information of the second pixel and the depth information of the third pixel.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the depth information acquisition method according to any one of claims 1 to 4.
10. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the depth information acquisition method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Three-dimensional scene fusion method and device based on monocular estimation
CN111340864A
Binocular image alignment method, electronic equipment and computer readable storage medium
CN113538538A
