Optimization method for online self-correction and self-supervised disparity estimation in stereo vision
Through weight-sharing feature extraction and encoding and decoding processing, combined with multi-scale cost body construction, online self-correction and self-supervised disparity estimation of the stereo vision system are realized, which solves the problem of error in disparity estimation after mechanical misalignment and improves the robustness of the system. and applicability.
Patent Information
- Application Number
- CN202210269649.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-18
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-03-18
AI Technical Summary
Existing stereo vision systems cannot effectively perform online self-correction after mechanical misalignment, resulting in errors in disparity estimation. The accuracy and speed of traditional feature extraction algorithms are insufficient to meet real-time needs, and existing stereo matching methods rely on high-cost lidar. Point cloud data.
The weight-sharing feature extraction method is used to jointly learn the homography transformation matrix and spatial matching relationship. Through encoding and decoding processing and multi-scale cost volume construction, end-to-end online self-correction and self-supervised disparity estimation can be achieved, which can be used in the case of slight disturbance of the stereo image pair. Make real-time corrections and parallax predictions.
The online real-time self-correction and self-supervised parallax prediction functions of the stereoscopic vision system are realized, which can tolerate slight mechanical misalignment and image disturbance, significantly improving the robustness and applicability of the system.
Smart Images

Figure CN114677417B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of computer vision, and in particular relates to an optimization method for online self-correction and self-supervised disparity estimation of stereoscopic vision. Background Art
[0002] Stereo vision is one of the classic problems in the field of computer vision and is widely used in 3D reconstruction, robot navigation, industrial inspection and other fields. Stereo correction and stereo matching are two key components of a stereo vision system. The former is to horizontally align the epipolar lines of the two images by performing a projection transformation or homography transformation on the left and right image pairs. The corresponding pixels after epipolar correction are generally located on the same horizontal image row of the two images. Then, stereo matching only needs to search along the X-axis when calculating the offset between corresponding points (i.e., disparity estimation), which significantly reduces the computational overhead.
[0003] Thanks to the rapid development of deep learning technology, stereo matching networks have achieved significant improvements in computational accuracy and processing speed compared to traditional methods in recent years. However, existing stereo matching networks all assume that the input data is a left and right image pair that has been corrected offline. In actual use, once the stereo vision system is mechanically misaligned due to collision or bumps, the offline calculated transformation parameters will become invalid, and the image cannot be effectively corrected, which will also cause errors in subsequent disparity estimation. Therefore, the stereo vision system deployed on the mobile terminal needs to have a real-time online self-correction function to ensure the accuracy of subsequent disparity estimation.
[0004] In existing work, stereo correction and stereo matching are usually designed as two independent modules. Stereo correction is mostly based on traditional methods. Generally, the internal and external parameters of the camera are first calibrated offline using a checkerboard grid, and then the homography transformation matrix is calculated based on the calibration parameters. Common methods include Loop, Hartley, Fusiello, etc., which are mainly based on SIFT+RANSAC to extract feature points and calculate the homography matrix. Although these methods can be used for online correction, the feature points extracted by traditional feature extraction operators are not accurate, and the processing speed is relatively slow, which is difficult to meet the needs of real-time online self-correction. For stereo matching, most of the existing methods use supervised regression to predict disparity maps, which requires heavy reliance on large-scale lidar point cloud data. However, the processing flow of obtaining true value labels based on point clouds is complex and costly, which greatly limits the applicability of stereo vision. In summary, the stereo vision system needs a more robust solution that can tolerate slight disturbances or changes in stereo image pairs to a certain extent. Summary of the invention
[0005] The purpose of the present invention is to propose an optimization method for online self-correction and self-supervised disparity estimation of stereo vision, which is an end-to-end joint optimization method that can overcome the shortcomings of the prior art. The present invention jointly learns the homography transformation matrix and the spatial matching relationship, so that the stereo vision system has the online real-time self-correction and self-supervised disparity prediction functions of the stereo image pair.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] The optimization method for online self-correction and self-supervised disparity estimation of stereo vision includes the following steps:
[0008] The uncorrected stereo image is extracted by using a weight-sharing feature extraction method to obtain features of an uncorrected image pair, the features of the uncorrected image pair are spliced, and then an encoding and decoding process is performed to obtain homography parameters parameterized by a four-point method, and the homography parameters are calculated by a normalized direct linear transformation algorithm to obtain a homography transformation matrix to obtain a corrected image;
[0009] The corrected image is subjected to feature extraction to obtain features of different scales, and then a corresponding multi-scale cost volume is constructed in an associative manner. Finally, cost aggregation is performed, and the final disparity prediction result is obtained by disparity regression, thereby realizing end-to-end joint optimization of stereoscopic vision online self-correction and self-supervised disparity estimation.
[0010] Preferably, the process of parameterization by the four-point method includes: randomly finding a rectangular area on the uncorrected image, setting the coordinates of the four vertices of the rectangular area as (x k ,y k ) k=1,2,3,4 , the coordinates of the four vertices of the corresponding points in the corrected image are (x′ k ,y′ k ) k=1,2,3,4 , homography parameter H 4PT as follows:
[0011]
[0012] Preferably, when extracting features from an uncorrected stereo image using a weight-sharing feature extraction method, the input image is downsampled to a first resolution and a second resolution step by step using two-dimensional convolution, and then image features are further extracted using a plurality of residual blocks including dilated convolutions.
[0013] Preferably, after extracting features from the uncorrected image, the features of the two uncorrected images corresponding to the stereo image are concatenated, and the encoding and decoding process is repeated several times to learn the correlation between the features of the two images, and finally the homography parameters are calculated.
[0014] Preferably, when feature extraction is performed on the corrected image, features at the first resolution, the second resolution and the third resolution are obtained.
[0015] Preferably, the corresponding multi-scale cost volume is constructed in an associative manner, and finally the cost aggregation is performed:
[0016] The features of the rectified image pairs at the first resolution, the second resolution and the third resolution are associated respectively, and three-dimensional cost volumes are constructed at the first resolution, the second resolution and the third resolution respectively, and then the cost aggregation is performed using the cross-scale aggregation method; when performing cost aggregation, at each scale, an aggregated cost volume is generated by adding the three-dimensional cost volumes at the first resolution, the second resolution and the third resolution; when adding and calculating the multi-scale cost volumes, they are unified to the same size through downsampling and upsampling operations;
[0017] When using disparity regression to obtain the final disparity prediction result, a soft argmin mechanism is used to regress the aggregated costs of all scales.
[0018] Preferably, the first resolution is 1 / 2 of the resolution of the uncorrected stereo image, the second resolution is 1 / 4 of the resolution of the uncorrected stereo image, and the third resolution is 1 / 8 of the resolution of the uncorrected stereo image; the uncorrected stereo image includes its corresponding left image and right image.
[0019] The present invention also provides an optimization system for online self-correction and self-supervised disparity estimation of stereoscopic vision, comprising:
[0020] Stereo correction module: used to extract features from uncorrected stereo images using a weight-sharing feature extraction method to obtain features of uncorrected image pairs, splice the features of the uncorrected image pairs, and then perform encoding and decoding processing to obtain homography parameters parameterized by the four-point method, and calculate the homography transformation matrix using a normalized direct linear transformation algorithm to obtain a corrected image;
[0021] Stereo matching module: used to extract features from the corrected image to obtain features of different scales, then construct the corresponding multi-scale cost volume in an associative manner, and finally perform cost aggregation, and use disparity regression to obtain the final disparity prediction result, thereby realizing end-to-end joint optimization of stereo vision online self-correction and self-supervised disparity estimation.
[0022] Preferably: the stereo correction module comprises:
[0023] The first weight-sharing feature extraction module is used to use several 3×3 convolutions with a step size of 2 so that each input uncorrected image is gradually downsampled to the first resolution and the second resolution, and then N residual blocks including 3×3 dilated convolutions, batch normalization, and ReLU activation are used to further extract features, where the dilation rate of the dilated convolution is [1, 1, 2, 4, 1, 1], and then a 3×3 convolution is used to obtain the feature representation; then at each disparity, the right image feature of the uncorrected image is horizontally shifted to the left by the corresponding disparity value units, and spliced with the left image feature of the uncorrected image in the channel direction;
[0024] The encoding-decoding module consists of three cascaded encoder-decoder architectures. In each encoder-decoder architecture, the concatenated features obtained by concatenating the weight-sharing feature extraction modules are further downsampled to 1 / 8 and 1 / 16 resolutions. Finally, two 3×3 convolutional layers and one fully connected layer are used to output homography parameters. The rectified image pairs are obtained through the normalized direct linear transformation algorithm and matrix operations.
[0025] The stereo matching module includes:
[0026] The second weight-sharing feature extraction module is used to use several 3×3 convolutions with a step size of 2 so that the input rectified image pair is gradually downsampled to the first resolution, the second resolution and the third resolution, and then N+1 residual blocks including 3×3 dilated convolutions, batch normalization and ReLU activation are used to further extract features, wherein the dilation rate of the dilated convolution is [1, 1, 2, 4, 1, 1], and then a 3×3 convolution is used to obtain the feature representation; then at each disparity, the right image feature of the rectified image is horizontally translated to the left by the corresponding disparity value units, and then the inner product is performed with the left image feature of the rectified image, and then the average is taken along the channel direction to obtain the three-dimensional cost volume at each resolution scale;
[0027] Cross-scale aggregation module: used to unify the size of the 3D cost volume at each resolution scale and perform cost aggregation on the 3D cost volume at each resolution scale to obtain the aggregated cost at each resolution scale; wherein the specific process of unifying the size of the 3D cost volume at each resolution scale includes: for a certain resolution, unifying the size of the 3D cost volume at other resolution scales to the same size as the 3D cost volume at the resolution through downsampling and upsampling operations; the process of cost aggregation on the 3D cost volume at each resolution scale includes: for the 3D cost volume at a certain resolution scale, the aggregated cost at the resolution scale is generated by summing the 3D cost volumes of all resolution scales unified to the resolution;
[0028] Disparity regression module: used to regress the aggregation cost at all resolution scales to obtain the disparity prediction results at all resolution scales.
[0029] Preferably, the loss function L of the optimization system for online self-correction and self-supervised disparity estimation of stereoscopic vision is L=L SR +L SM ;
[0030] Among them, L SR is the loss function of the stereo correction module, L SM
[0031] is the loss function of the stereo matching module,
[0032] Where N is the total number of pixels in the image, I R This is the right image output by the stereo correction module. gt_R is the original right image used for supervision, SSIM is the structural similarity measure, is the reconstruction loss of the left image, is the reconstruction loss of the right image, is the smoothing loss on the left, is the smoothing loss in the right figure, is the consistency loss of the left figure, is the consistency loss of the right figure.
[0033] Compared with the prior art, the present invention has at least the following beneficial technical effects:
[0034] The optimization method of the present invention is an end-to-end joint optimization method for online self-correction and self-supervised disparity estimation of stereo vision. The method jointly optimizes correction and matching, can tolerate slight disturbances or changes of stereo image pairs to a certain extent, and is suitable for processing mechanical misalignment problems caused by minor collisions or bumps in stereo vision systems in practical applications. The present invention jointly learns the homography transformation matrix and the spatial matching relationship, so that the stereo vision system has the online real-time self-correction and self-supervised disparity prediction functions of stereo image pairs. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is the overall framework of the optimization method for online self-correction and self-supervised disparity estimation of stereo vision of the present invention;
[0036] Figure 2 is a schematic diagram of a stereo correction sub-network of the present invention;
[0037] Figure 3 Schematic diagram of the stereo matching sub-network of the present invention. DETAILED DESCRIPTION
[0038] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0039] The optimization method for online self-correction and self-supervised disparity estimation of stereo vision in the present invention mainly consists of two sub-networks connected in series. Figure 1 , namely, a stereo correction subnetwork for completing the self-correction of the input stereo image pair; and a stereo matching subnetwork for self-supervised disparity estimation. In the stereo correction subnetwork, the weight-sharing feature extractor is first used to extract the features of the input uncorrected image to obtain the features of the uncorrected image pair, and the features of the uncorrected image pair are spliced. Then, the encoder-decoder structure is used to output the homography parameters H after parameterization by the four-point method. 4PT , and then use the normalized direct linear transformation algorithm to obtain the homography transformation matrix H, and finally realize the self-correction of the image. In the stereo matching subnetwork, the corrected image output by the stereo correction subnetwork is used as input, and the 1 / 2, 1 / 4, and 1 / 8 scale features are obtained by the feature extraction module, and then the corresponding multi-scale cost volume is constructed in an associated manner. Finally, the cross-scale aggregation module is used for cost aggregation, and the final disparity prediction result is obtained by disparity regression.
[0040] When constructing a learning-based correction subnetwork, the present invention uses four-point parameterization to balance the different effects of the four parts of rotation, translation, scaling and shearing contained in the homography matrix, so as to be more conducive to the optimization and convergence of the network. The specific meaning of the four-point parameterization is: randomly find a rectangular area on the uncorrected image, assuming (x k ,y k ) k=1,2,3,4 are the coordinates of the four vertices of the rectangular area, (x′ k ,y′ k ) k=1,2,3,4 are the coordinates of the four vertices of the corresponding points in the rectified image, then the four-point homography parameterization is defined as:
[0041]
[0042] Therefore, the purpose of the stereo correction sub-network is to predict H through network training 4PT The eight coordinate offsets (i.e., four Δx k and four Δy k ), and then use the normalized direct linear transformation algorithm and simple matrix operations to obtain the homography matrix H, thereby obtaining the corrected image.
[0043] When performing feature extraction, the stereo correction subnetwork of the present invention first uses two-dimensional convolution to gradually downsample the input image to 1 / 2 and 1 / 4 resolutions, and then uses 6 residual blocks containing dilated convolutions to further extract image features.
[0044] After concatenating the features of the two input images of the stereo correction sub-network, the present invention uses three cascaded encoder-decoder structures to learn the correlation between the features of the two images. Finally, two 3×3 convolutional layers and one fully connected layer are used to output H 4PT 8 offsets.
[0045] The feature extraction structure of the stereo matching sub-network of the present invention is similar to the feature extraction structure of the stereo correction sub-network, except that an additional 1 / 8 scale feature is extracted by using an additional residual block.
[0046] The present invention associates the features of the input image pairs extracted by the stereo matching subnetwork, and constructs three-dimensional cost volumes at 1 / 2, 1 / 4 and 1 / 8 scales respectively, and then uses 6 cross-scale aggregation modules to perform cost aggregation. At each scale, an aggregated cost volume is generated by adding three-dimensional cost volumes at three scales. Before the addition calculation, these multi-scale cost volumes first need to be unified to the same size through downsampling and upsampling operations.
[0047] After obtaining the disparity map (i.e., the disparity prediction result), the Adam optimization method is used to optimize the objective function L:
[0048] L=L SR +L SM
[0049] Among them, L SR is the loss function of the stereo correction sub-network, L SM is the loss function of the stereo matching subnetwork, which includes reconstruction loss, smoothness loss, and consistency loss. After obtaining the optimized model, online inference can be performed.
[0050] The joint training framework proposed in the present invention can promote and enhance the training effects of the two sub-networks of stereo correction and stereo matching, thereby obtaining better optimization results. In particular, the designed stereo correction sub-network is simple and efficient, with an inference speed of 81FPS (resolution is 1242×375) on a high-performance GPU, and can be seamlessly connected with all existing stereo matching network models to enable them to have real-time online self-correction functions.
[0051] Example
[0052] like Figure 1-Figure 3 As shown, the end-to-end joint optimization method for online self-correction and self-supervised disparity estimation of stereo vision in this embodiment includes two parts: stereo self-correction and self-supervised binocular stereo matching.
[0053] 1) Figure 1 Schematic diagram of the overall framework of this embodiment. The input of this embodiment is an uncorrected left and right image pair I un_Land I un_R , the output is the dense disparity map D of the left image L , the network mainly consists of two sub-networks: stereo correction sub-network and stereo matching sub-network. Specifically, the uncorrected left and right image pairs I un_L and I un_R Input into the stereo correction sub-network, and obtain the four-point parameterized homography parameters H through feature extraction and encoding and decoding structure 4PT . After the stereo correction subnetwork obtains these displacement parameters, the final homography transformation matrix H is converted using the normalized direct linear transformation algorithm. In the specific implementation process, since the camera position is relative, the left image is kept unchanged, and only the homography of the right image is calculated, so that the images are aligned on the horizontal line and the corrected image pair is obtained. Then, the corrected image pair is input into the stereo matching subnetwork for feature extraction, cost volume construction and cost aggregation, and finally the disparity regression is used to obtain the disparity prediction result.
[0054] 2) Figure 2 Schematic diagram of the stereo correction sub-network of this embodiment. The stereo correction sub-network includes a weight-sharing feature extraction module and a codec structure. Given a pair of uncorrected images I un_L and I un_R , first use a feature extraction module with shared weights between the two input images, such as Figure 2 The processing of the feature extraction module is shown in Figure 2. Specifically, some 3×3 convolutions with a stride of 2 are used to gradually downsample the input image to 1 / 2 and 1 / 4 resolutions, and the number of channels at these two scales is set to 32 and 64, respectively. Then, 6 residual blocks containing 3×3 dilated convolutions, batch normalization, and ReLU activation are used to further extract features, where the dilation rate of the dilated convolution is [1, 1, 2, 4, 1, 1], and then a 3×3 convolution is used to obtain the feature representation.
[0055] After obtaining the feature representations of the left and right images, at each disparity, the features of the right image are horizontally shifted to the left by the corresponding disparity value units and concatenated with the features of the left image in the channel direction. Then, three cascaded encoder-decoder architectures are used to learn the correlation between the two images, such as Figure 2 The processing of the encoder-decoder module is shown in Figure 2. In each encoder-decoder architecture, the concatenated features are further downsampled to 1 / 8 and 1 / 16. Once the resolution is halved, the number of channels is doubled. Finally, two 3×3 convolutional layers and a fully connected layer are used to output H 4PT At this point, the corrected right image can be obtained through the existing normalized direct linear transformation algorithm and simple matrix operations.
[0056] 3) Figure 3 : is a schematic diagram of the stereo matching subnetwork of this embodiment. The output of the previous stereo correction subnetwork (i.e., the corrected image) is used as input to predict the disparity map in a self-supervised manner. For the feature extraction module of the stereo matching subnetwork, a structure similar to that of the stereo correction subnetwork is adopted, except that an additional residual block is used, that is, the features at 1 / 8 resolution are extracted with a step size of 2. Then, by associating the left and right image features at scales of 1 / 2, 1 / 4, and 1 / 8, a three-dimensional cost volume at different scales is constructed. The specific construction method is: at each disparity, the right image feature is horizontally translated to the left by the corresponding disparity value unit, and then the inner product is made with the left image feature, and the average is taken along the channel direction.
[0057] Then, the 3D cost volumes at each scale are aggregated by six cascaded cross-scale aggregation modules. The aggregation method is as follows: for the cost aggregation at each scale, the aggregated cost is generated by adding the 3D cost volumes of three scales. Before the sum calculation, these multi-scale 3D cost volumes first need to be unified to the same size through downsampling and upsampling operations. The downsampling operation uses a 3×3 convolution with a stride of 2, and the upsampling operation uses bilinear interpolation and a 1×1 convolution. Then, the aggregated costs of all scales are regressed using the soft argmin mechanism, and finally the disparity map of the left image at the original resolution is obtained.
[0058] In order to construct the loss function for self-supervised learning, the same network is used to predict the disparity map of the left and right images, namely D L and D R Alternatively, use the warp operation The rectified stereo image pair is further reconstructed:
[0059]
[0060] During the training process, in order to construct the self-supervised loss function, disparity maps and distorted images of three scales are generated respectively, while during the inference process, only the disparity map of the largest scale is retained as the inference result.
[0061] In order to make self-correction and self-supervision matching more effective, the present invention constructs the following loss functions for these two parts respectively:
[0062] For the stereo correction sub-network, the L1 norm and SSIM weighted reconstruction loss are used. The specific formula is as follows:
[0063]
[0064] Where N is the total number of pixels in the image, I R is the right image output by the stereo correction sub-network, I gt_R is the original right image used for supervision.
[0065] For the stereo matching subnetwork, reconstruction loss, smoothness loss, and consistency loss are used for self-supervised stereo matching. All loss functions need to be constructed in the same way on the left / right image and its disparity map, where the reconstruction loss includes all three scales, and the other two loss functions only include the largest scale. Figure 3 Taking the bottom branch (i.e., the left disparity map) in as an example, the specific formula of each loss function is given in detail. The reconstruction loss is:
[0066]
[0067] Among them, I L This is the left image output by the stereo correction sub-network. This is the left image obtained by the distortion operation.
[0068] The purpose of smoothness loss is to obtain a locally smooth disparity map and refine edge structure and texture at the same time. The specific formula is:
[0069]
[0070] in, is the second-order derivative of the disparity map, is the first-order derivative of the input image.
[0071] The consistency loss is to improve the accuracy of the predicted disparity map and balance the effect of the left and right disparity map estimation. Its specific form is:
[0072]
[0073] After calculating the above three loss functions, the overall loss function of the present invention is:
[0074] L=L SR +L SM
[0075] Among them, the loss function of the matching network
[0076] In order to improve the learning convergence speed and prevent falling into the local optimum, the present invention selects the Adam optimizer to update the model parameters. The present invention perturbs the FlyingThings3D and KITTI datasets to different degrees to obtain uncorrected images, and trains according to the above process. At this point, the model optimization is completed and online reasoning tasks can be performed.
[0077] Through the joint optimization and design of the above two sub-networks, the stereoscopic vision system can have the functions of online real-time correction and disparity estimation. Therefore, in actual application scenarios, the stereoscopic vision system deployed in the unmanned platform can efficiently and robustly complete the matching and disparity calculation even if it is disturbed by external factors (such as bumps, collisions, etc.) and produces a certain degree of physical mechanical displacement. Compared with the existing work, the present invention can directly process the left and right image pairs whose epipolar lines are not horizontally aligned to a certain extent, and realize online real-time self-correction and self-supervised disparity estimation through the proposed end-to-end joint optimization framework, which significantly improves the robustness of the stereoscopic vision system in practical applications.
Claims
1. An optimization method for online self-correction and self-supervised disparity estimation of stereo vision, characterized in that: The process includes the following: The uncorrected stereo image is extracted by using a weight-sharing feature extraction method to obtain features of an uncorrected image pair, the features of the uncorrected image pair are spliced, and then an encoding and decoding process is performed to obtain homography parameters parameterized by a four-point method, and the homography parameters are calculated by a normalized direct linear transformation algorithm to obtain a homography transformation matrix to obtain a corrected image; Extract features from the corrected image to obtain features of different scales, then construct corresponding multi-scale cost volumes in an associative manner, and finally perform cost aggregation to obtain a final disparity prediction result using disparity regression, thereby achieving end-to-end joint optimization of online self-correction of stereo vision and self-supervised disparity estimation; The process of parameterization of the four-point method includes: randomly finding a rectangular area on the uncorrected image, setting the coordinates of the four vertices of the rectangular area as , the coordinates of the four vertices of the corresponding points in the corrected image are , homography parameters as follows: ; When extracting features from uncorrected stereo images using a weight-sharing feature extraction method, the input image is downsampled to a first resolution and a second resolution using two-dimensional convolutions, and then image features are further extracted using a number of residual blocks containing dilated convolutions; When extracting features from the corrected image, features at the first resolution, the second resolution, and the third resolution are obtained; Use the association method to construct the corresponding multi-scale cost volume, and finally perform cost aggregation: The features of the rectified image pairs at the first resolution, the second resolution and the third resolution are associated respectively, and three-dimensional cost volumes are constructed at the first resolution, the second resolution and the third resolution respectively, and then the cost aggregation is performed using the cross-scale aggregation method; when performing cost aggregation, at each scale, an aggregated cost volume is generated by adding the three-dimensional cost volumes at the first resolution, the second resolution and the third resolution; when adding and calculating the multi-scale cost volumes, they are unified to the same size through downsampling and upsampling operations; When using disparity regression to obtain the final disparity prediction result, a soft argmin mechanism is used to regress the aggregated costs of all scales.
2. The optimization method for online self-correction and self-supervised disparity estimation of stereoscopic vision according to claim 1, characterized in that: After feature extraction of the uncorrected image, the features of the two uncorrected images corresponding to the stereo image are concatenated, and the encoding and decoding process is used several times continuously to learn the correlation between the features of the two images, and finally the homography parameters are calculated.
3. The optimization method for online self-correction and self-supervised disparity estimation of stereoscopic vision according to claim 1, characterized in that: The first resolution is 1 / 2 of the uncorrected stereo image resolution, the second resolution is 1 / 4 of the uncorrected stereo image resolution, and the third resolution is 1 / 8 of the uncorrected stereo image resolution; the uncorrected stereo image includes its corresponding left image and right image.
4. An optimization system for online self-correction and self-supervised disparity estimation of stereo vision, characterized in that: The system is used to implement the optimization method for online self-correction and self-supervised disparity estimation of stereoscopic vision according to any one of claims 1 to 3, and the system comprises: Stereo correction module: used to extract features from uncorrected stereo images using a weight-sharing feature extraction method to obtain features of uncorrected image pairs, splice the features of the uncorrected image pairs, and then perform encoding and decoding processing to obtain homography parameters parameterized by the four-point method, and calculate the homography transformation matrix using a normalized direct linear transformation algorithm to obtain a corrected image; Stereo matching module: used to extract features from the corrected image to obtain features of different scales, then construct the corresponding multi-scale cost volume in an associated manner, and finally perform cost aggregation, and use disparity regression to obtain the final disparity prediction result, so as to realize end-to-end joint optimization of stereo vision online self-correction and self-supervised disparity estimation; The stereo correction module comprises: The first weight-sharing feature extraction module is used to use several 3×3 convolutions with a step size of 2 so that each input uncorrected image is gradually downsampled to the first resolution and the second resolution, and then N residual blocks including 3×3 dilated convolutions, batch normalization, and ReLU activation are used to further extract features, where the dilation rate of the dilated convolution is [1, 1, 2, 4, 1, 1], and then a 3×3 convolution is used to obtain the feature representation; then at each disparity, the right image feature of the uncorrected image is horizontally shifted to the left by the corresponding disparity value units, and spliced with the left image feature of the uncorrected image in the channel direction; The encoding-decoding module consists of three cascaded encoder-decoder architectures. In each encoder-decoder architecture, the concatenated features obtained by concatenating the weight-sharing feature extraction modules are further downsampled to 1 / 8 and 1 / 16 resolutions. Finally, two 3×3 convolutional layers and one fully connected layer are used to output homography parameters. The rectified image pairs are obtained through the normalized direct linear transformation algorithm and matrix operations. The stereo matching module includes: The second weight-sharing feature extraction module is used to use several 3×3 convolutions with a step size of 2 so that the input rectified image pair is gradually downsampled to the first resolution, the second resolution and the third resolution, and then N+1 residual blocks including 3×3 dilated convolutions, batch normalization and ReLU activation are used to further extract features, wherein the dilation rate of the dilated convolution is [1, 1, 2, 4, 1, 1], and then a 3×3 convolution is used to obtain the feature representation; then at each disparity, the right image feature of the rectified image is horizontally translated to the left by the corresponding disparity value units, and then the inner product is performed with the left image feature of the rectified image, and then the average is taken along the channel direction to obtain the three-dimensional cost volume at each resolution scale; Cross-scale aggregation module: used to unify the size of the 3D cost volume at each resolution scale and perform cost aggregation on the 3D cost volume at each resolution scale to obtain the aggregated cost at each resolution scale; wherein the specific process of unifying the size of the 3D cost volume at each resolution scale includes: for a certain resolution, unifying the size of the 3D cost volume at other resolution scales to the same size as the 3D cost volume at the resolution through downsampling and upsampling operations; the process of cost aggregation on the 3D cost volume at each resolution scale includes: for the 3D cost volume at a certain resolution scale, the aggregated cost at the resolution scale is generated by summing the 3D cost volumes of all resolution scales unified to the resolution; Disparity regression module: used to regress the aggregation cost at all resolution scales to obtain the disparity prediction results at all resolution scales.
5. The optimization system for online self-correction and self-supervised disparity estimation of stereoscopic vision according to claim 4, characterized in that: Loss function of the optimization system for online self-correction and self-supervised disparity estimation in stereo vision ; in, is the loss function of the stereo correction module, ; is the loss function of the stereo matching module, In the formula, is the total number of pixels in the image, This is the right image output by the stereo correction module. is the original right image used for supervision, is a structural similarity measure, is the reconstruction loss of the left image, is the reconstruction loss of the right image, is the smoothing loss on the left, is the smoothing loss in the right figure, is the consistency loss of the left figure, is the consistency loss of the right figure.
Citation Information
Patent Citations
Binocular stereo matching method based on detail enhancement
CN110427968A
Real-time binocular stereo matching method based on adaptive candidate parallax prediction network
CN112435282A
Parallax optimization method based on attention mechanism
CN112509021A
Method and system for generating a depth map
WO2021084530A1
