Infrared stereoscopic vision target ranging method based on DSCViTNet

Through the DSC_ViTNet network and the bidirectional feature pyramid network, high-precision object detection and ranging are realized under night or low light conditions, solving the problems of low recognition rate and inaccurate ranging of traditional technologies under low light conditions, and reducing detection Cost, suitable for autonomous driving and drone navigation.

CN119007186APending Publication Date: 2024-11-22HUAIYIN INSTITUTE OF TECHNOLOGY
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411206430.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing target detection and ranging technology in night or low-light environments have problems with low recognition rate and inaccurate ranging. Especially the traditional binocular stereoscopic vision technology is not effective under low-light conditions and is cost-effective. Lidar and ultrasonic sensors with low cost but limited accuracy cannot effectively solve the needs of high-precision ranging.

Method used

A method of infrared stereoscopic visual target ranging based on DSC_ViTNet is proposed. The image is captured by infrared binocular system and input DSC_ViTNet network to perform multi-scale feature extraction. The bidirectional feature pyramid network fusion features are used to calculate the disparity map, and the target distance is calculated based on camera parameters. Achieve high-precision object detection and ranging.

Benefits of technology

It improves the accuracy of target detection and ranging accuracy, reduces detection costs, and is suitable for applications such as autonomous driving and drone navigation at night or low light conditions, significantly reducing the use of lidar.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119007186A_ABST
    Figure CN119007186A_ABST
Patent Text Reader

Abstract

The invention discloses a DSCViTNet-based infrared stereoscopic vision target ranging method, which comprises the following steps of: inputting a left infrared image and a right infrared image captured by an infrared binocular camera into a DSCViTNet for multi-scale feature extraction to obtain a corresponding left feature map and a corresponding right feature map; then performing multi-scale feature fusion on the left feature map and the right feature map by using BiFPN, and performing disparity estimation by using a convolutional neural network CNN to obtain a disparity map; performing target detection, category classification and bounding box regression on the left feature map to obtain category information and bounding box information of a target; and finally, calculating depth distance information in a bounding box corresponding to each target by combining camera parameters and the disparity map, and outputting a target detection result with the distance information. The method can improve the accuracy of target obstacle avoidance and detection at night, and is suitable for target detection and distance measurement application under various night or low-light conditions such as automatic driving, unmanned aerial vehicle navigation and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of target detection technology and computer vision, and relates to an infrared stereo vision target ranging method based on DSC_ViTNet. Background Art

[0002] With the rapid development of intelligent transportation systems and security monitoring, target detection and ranging technologies at night or in low-light environments have become particularly important. Existing nighttime target detection technologies mainly rely on visible light imaging, thermal imaging or monocular infrared imaging, but these technologies often have problems such as low recognition rate and inaccurate ranging under complex lighting conditions.

[0003] At present, the commonly used distance measurement methods at night or in low light environments include laser radar (LiDAR), ultrasonic sensors, and monocular vision. Among them, laser radar is widely used in self-driving cars due to its high accuracy and long distance measurement range, but the cost is relatively high; although ultrasonic sensors are low in cost, their measurement range is limited and easily affected by environmental factors; although monocular vision technology can provide relatively rich visual information, due to the lack of depth information, the distance measurement accuracy is not high.

[0004] On the other hand, binocular stereo vision technology uses two cameras to shoot the same scene from different angles, and estimates the depth information of the target by comparing the difference between the two images, which can theoretically provide higher ranging accuracy. However, most traditional binocular stereo vision algorithms are based on visible light images, and the quality of visible light images will be greatly reduced at night or in low light environments, which will affect the ranging effect.

[0005] Therefore, it is urgent to develop a technology that can achieve high-precision target detection and ranging at night or in low light conditions. In particular, how to use infrared binocular vision technology to maintain high accuracy while reducing costs has become a research focus. Summary of the invention

[0006] Purpose of the invention: In order to achieve an effective balance between lightweight detection model, inference speed and detection accuracy, the present invention proposes an infrared stereo vision target ranging method based on DSC-ViTNet.

[0007] Technical solution: The present invention proposes an infrared stereo vision target ranging method based on DSC-ViTNet, comprising the following steps:

[0008] (1) The left infrared image and the right infrared image captured by the infrared binocular system are input into the DSC_ViTNet network for multi-scale feature extraction; the DSC_ViTNet network includes a Stem module, multiple Stage modules and a DSC_DS module; the Stage module includes one or more DSC_AT modules and one or more DSC modules to extract features of different scales; the DSC_AT module introduces the scSE attention module to improve the network's ability to discriminate the importance of features;

[0009] (2) Use the bidirectional feature pyramid network BiFPN to fuse features at different levels and concatenate the fused left and right feature maps to perform disparity estimation.

[0010] (3) Construct a cost volume based on the fused feature map, calculate the similarity metric, and perform disparity regression to obtain the final disparity map;

[0011] (4) The fused left feature map is input into the Head network part for category classification and bounding box regression to obtain the bounding box and category information of each target;

[0012] (5) The bounding box of each target is scaled according to the ratio of the detection image and the disparity map, and the distance values ​​of all pixels within the bounding box of each target in the disparity map are calculated in combination with the camera parameters. The category information, bounding box, and distance value of each target are combined to output the final detection result.

[0013] Furthermore, the Stem module in step (1) is used to preprocess the input image, including two stages: first, a 3x3 DW convolution layer and a 1x1 standard convolution layer are used, followed by a GELU activation function layer; followed by another 3x3 DW convolution layer and a 1x1 standard convolution layer; each convolution layer is followed by a batch normalization layer; the original image size H×W is reduced to H / 4×W / 4 to extract low-level features in the image.

[0014] Furthermore, there are four Stage modules in step (1); Stage 1 extracts image features of the H / 4×W / 4 scale, and its structure includes one DSC_AT module and two DSC modules; then, the DSC_DS module further downsamples the image to H / 8×W / 8; Stage 2 repeats the structure of Stage 1, that is, one DSC_AT module plus two DSC modules; Stage 3 downsamples to H / 16×W / 16 again through the DSC_DS module on the basis of H / 8×W / 8, and extracts features at this scale; Stage 3 includes seven alternating DSC_AT and DSC modules, and finally a DSC module; the image is downsampled to H / 32×W / 32 through the DSC_DS module, and at this time Stage 4 extracts image features of this scale, and its structure is one DSC_AT module and one DSC module.

[0015] Furthermore, the DSC module in step (1) includes three parallel branches: the first branch contains only a 1×1 standard convolution layer; the second branch consists of a 3×3 DW convolution layer and a 1×1 standard convolution layer; the third branch consists of a 1×1 DW convolution layer and a 1×1 standard convolution layer; each convolution layer is connected to a BN layer for normalization; and the input feature map is extracted at different receptive fields through the three branches.

[0016] Furthermore, the DSC_AT module in step (1) is extended on the basis of the DSC module, retaining the multi-branch structure, and introducing the scSE attention module between the final BN layer and the FFN module;

[0017] The scSE attention module includes:

[0018] The channel attention module cSE is used to reduce the feature map to C×1×1 through global average pooling, and then use two 1×1 standard convolution layers to reduce and increase the dimension, and integrate the features and calculate the weights through the ReLU activation function layer and the sigmoid function layer, and finally multiply it with the original feature map to enhance the channel information;

[0019] The spatial attention module sSE is used to reduce the dimension of the feature map to 1×H×W through a 1×1 standard convolution layer, normalize it through a sigmoid function layer, and multiply it with the original feature map to enhance the spatial information.

[0020] Furthermore, the DSC_DS module in step (1) is used for scale transformation between stages, downsampling the feature map through a 3×3 DW convolution layer, and then integrating and enhancing the features through a 1×1 standard convolution layer and an FFN module.

[0021] Furthermore, the FFN module adopts residual connection to enhance the expression of features through a branch containing two 1×1 standard convolutional layers, and a GELU activation function layer is added between the two convolution operations to introduce nonlinear characteristics; the first 1×1 standard convolutional layer is responsible for mapping the features to a higher dimension, while the second standard convolutional layer restores the features to the original dimension and achieves deep enhancement of the features by adding them to the input features.

[0022] Furthermore, the bidirectional feature pyramid network BiFPN in step (2) is:

[0023] The bidirectional connection strategy is used to promote the bidirectional transmission of features at different levels in the feature pyramid network. The feature maps S1, S2, S3 and S4 of different scales extracted from the backbone network are used, and feature fusion is achieved through upsampling and downsampling operations and 3×3 standard convolutional layers to obtain the fused feature maps P1, P2, P3 and P4.

[0024] Furthermore, the implementation process of step (3) is as follows:

[0025] The cost volume is constructed based on the joint feature map, and a three-dimensional cost volume is obtained by calculating the similarity measure. The specific formula is:

[0026]

[0027] Where L represents the left image feature map, R represents the right image feature map, i and j represent the pixel position coordinates, c represents the pixel channel, d represents the disparity value, and r is half of the window radius, that is, the window size is (2r+1)×(2r+1);

[0028] Aggregate the cost volume and use a 3D convolutional layer to aggregate the information in the cost volume. Finally, perform disparity regression to estimate the final disparity map from the aggregated cost volume and use the argmin operation to determine the optimal disparity value for each pixel. The specific formula is:

[0029]

[0030] Among them, d * (i,j) is the optimal disparity value of position (i,j), and c(i,j,d) is the cost value of position (i,j) at disparity d.

[0031] Furthermore, the implementation process of step (5) is as follows:

[0032] Each bounding box is scaled according to the ratio of the original image and the disparity map. In the disparity map, the distance value of each pixel within the scaled bounding box is calculated according to the disparity distance, and the average distance value of all pixels in the bounding box is taken as the distance value of the corresponding target; the disparity distance is:

[0033]

[0034] Among them, depth is the distance, f is the focal length, b is the baseline length, and d is the parallax.

[0035] Beneficial effects: Compared with the prior art, the multi-branch structure and attention mechanism in the DSC_ViTNet proposed in the present invention improve the accuracy of target detection, especially in complex backgrounds and low-light conditions; through the multi-branch structure and deep separable convolution of the DSC module and the DSC_AT module, the demand for computing resources is reduced, so that the model can run on resource-constrained devices. The present invention uses infrared binocular vision technology to replace expensive lidar sensors, significantly reducing the detection cost, and can improve the accuracy of target obstacle avoidance and detection at night. It is suitable for a variety of target detection and ranging applications at night or under low-light conditions such as autonomous driving and drone navigation. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 is a flow chart of the present invention;

[0037] Figure 2 This is a schematic diagram of the DSC_ViTNet network structure proposed by the present invention;

[0038] Figure 3 This is a schematic diagram of the Stem module structure in DSC_ViTNet;

[0039] Figure 4 It is a schematic diagram of the DSC module structure;

[0040] Figure 5 This is a schematic diagram of the DSC_AT module structure;

[0041] Figure 6 It is a schematic diagram of the DSC_DS module structure;

[0042] Figure 7 It is a schematic diagram of the FFN module structure;

[0043] Figure 8 Schematic diagram of the scSE attention module structure;

[0044] Fig. 9 Flowchart for multi-scale fusion using BiFPN;

[0045] Fig.10 This is an infrared image target detection result diagram obtained by using the present invention. DETAILED DESCRIPTION

[0046] The present invention will be further described in detail below in conjunction with the accompanying drawings.

[0047] like Figure 1 As shown, the present invention provides an infrared stereo vision target ranging method based on DSC_ViTNet, comprising the following steps:

[0048] Step 1: Input the left infrared image and the right infrared image captured by the infrared binocular system into DSC_ViTNet for multi-scale feature extraction.

[0049] The network structure of DSC_ViTNet is as follows Figure 2 As shown, it includes a Stem module, multiple Stage modules and a DSC_DS module; the Stem module is used to preprocess the input image; the Stage module includes one or more DSC_AT modules and one or more DSC modules to extract features of different scales; the DSC_DS module is used to perform scale transformation.

[0050] The input image is first preprocessed by the Stem module. The structure of the Stem module is as follows: Figure 3 As shown in the figure, it includes two stages: first, a 3x3 DW convolution layer (stride 2) and a 1x1 standard convolution layer (stride 1) are used, followed by a GELU activation function layer; followed by another 3x3 DW convolution layer (stride 2) and a 1x1 standard convolution layer (stride 1). Each convolution layer is followed by a batch normalization (BN) layer, which helps stabilize the training process and avoid the problem of gradient disappearance or explosion. This series of operations realizes image downsampling, reducing the original image size H×W to H / 4×W / 4, which can effectively extract low-level features in the image and reduce the computational burden.

[0051] Next, Stage 1 extracts image features at the scale of H / 4×W / 4. Its structure includes one DSC_AT module and two DSC modules. Subsequently, the DSC_DS module further downsamples the image to H / 8×W / 8. At this scale, Stage 2 repeats the structure of Stage 1, that is, one DSC_AT module plus two DSC modules.

[0052] Stage3 downsamples the image to H / 16×W / 16 again through the DSC_DS module based on H / 8×W / 8, and extracts features at this scale. Stage3 contains seven alternating DSC_AT and DSC modules, followed by a DSC module. Finally, the image is downsampled to H / 32×W / 32 through the DSC_DS module, and Stage4 extracts features of the image at this scale. The structure consists of a DSC_AT module and a DSC module.

[0053] The structure of the DSC module is as follows Figure 4 As shown in the figure, a multi-branch neural network structure is constructed. Specifically, the module contains three parallel branches: the first branch contains only a 1×1 standard convolution layer (step size is 1). The second branch consists of a 3×3 DW convolution layer (step size is 1) and a 1×1 standard convolution layer (step size is 1). The third branch consists of a 1×1 DW convolution layer (step size is 1) and a 1×1 standard convolution layer (step size is 1). The use of DW convolution can reduce the amount of calculation. Each convolution layer is connected to a BN layer for normalization to accelerate training. The three branches extract features from the input feature map in different receptive fields to improve the generalization ability of the network. The outputs of the three branches are added and fused, and then processed by the BN layer and FFN module to enhance the nonlinear expression ability.

[0054] The structure of the DSC_AT module is as follows Figure 5 As shown in the figure, it is extended on the basis of the DSC module. It retains the multi-branch structure, but the difference is that the scSE attention module is introduced between the final BN layer and the FFN module. The addition of this module significantly improves the network's ability to discriminate the importance of features.

[0055] The structure of the DSC_DS module is as follows Figure 6 As shown in the figure, this module is mainly used for scale transformation between stages. It downsamples the feature map through a 3×3 DW convolution layer (with a step size of 2), and then integrates and enhances the features through a 1×1 standard convolution layer (with a step size of 1) and the FFN module.

[0056] The structure of the FFN module is as follows Figure 7 As shown in the figure, a residual connection design is adopted. This module enhances the expression of features through a branch containing two 1×1 standard convolutional layers (with a stride of 1), and a GELU activation function layer is added between the two convolution operations to introduce nonlinear characteristics. The first 1×1 standard convolutional layer is responsible for mapping the features to a higher dimension, while the second standard convolutional layer restores the features to the original dimension and achieves deep feature enhancement by adding them to the input features.

[0057] The structure of the scSE attention module is as follows Figure 8 As shown in the figure, it combines the two mechanisms of channel attention (cSE) and spatial attention (sSE). The cSE module reduces the feature map from C×H×W dimensions to C×1×1 through global average pooling, and then uses two 1×1 standard convolution layers (with a step size of 1) to reduce and increase the dimensions, and integrates features and calculates weights through the ReLU activation function layer and the sigmoid function layer, and finally multiplies it with the original feature map to enhance the channel information. The sSE module reduces the feature map to 1×H×W through a 1×1 standard convolution layer (with a step size of 1), normalizes it through the sigmoid function layer, and multiplies it with the original feature map to enhance the spatial information. Finally, the channel information enhanced feature map and the spatial information enhanced feature map are added to obtain the output of the scSE module. By integrating and enhancing the features using two attention mechanisms, the expressiveness of the feature map is improved.

[0058] The left image and right image captured by the binocular infrared stereo system are respectively input into DSC_ViTNet to obtain the feature map of the image after feature extraction through each stage, and the left feature map and right feature map containing multi-scale features are obtained.

[0059] Step 2: Input the left feature map and the right feature map containing multi-scale features into the Neck network part of the target detection model respectively, and use the bidirectional feature pyramid network (BiFPN) to fuse features at different levels, such as Fig. 9 shown.

[0060] BiFPN promotes the bidirectional transmission of features at different levels in the feature pyramid network through a bidirectional connection strategy. This mechanism allows information to flow from high-level features to low-level features while also flowing back from low-level features to high-level features. This bidirectional information integration significantly enhances the network's ability to capture multi-scale features, especially in target detection tasks, it can handle objects with large size differences in images.

[0061] In the implementation of BiFPN, four feature maps of different scales, S1, S2, S3, and S4, extracted from the backbone network are used, corresponding to Stage1, Stage2, Stage3, and Stage4, respectively. First, S4 is upsampled to match the scale of S3, added to S3, and passed through a 3×3 standard convolution layer (step size 1) to obtain S5. Then, S5 is upsampled to the scale of S2, added to S2, and passed through a 3×3 standard convolution layer again to obtain S6. Similarly, S6 is upsampled to the scale of S1, added to S1, and passed through a 3×3 standard convolution layer to obtain P1. Subsequently, P1 is downsampled to the scale of S6, added to S2 and S6, and passed through a 3×3 standard convolution layer to obtain P2. P2 is further downsampled to the scale of S5, added to S3 and S5, and passed through a 3×3 standard convolution layer to obtain P3. Finally, P3 is downsampled to the scale of S4, added to S4, and P4 is obtained through a 3×3 standard convolution layer. In this way, four feature maps of different scales P1, P2, P3 and P4 are finally obtained after weighted feature fusion. These fusion weights are learned during the training process to ensure the optimal feature integration effect, thereby improving the network's ability to process objects of different sizes and complexities.

[0062] Step 3: Concatenate the left feature map and the right feature map after fusing the multi-scale features to facilitate disparity estimation.

[0063] The cost volume is constructed based on the feature map after fusing multi-scale features, and the similarity measure is calculated to obtain a three-dimensional cost volume. The specific formula is:

[0064]

[0065] Among them, L represents the left image feature map, R represents the right image feature map, i and j represent the position coordinates of the pixel, c represents the channel of the pixel, d represents the disparity value, and r is half of the window radius, that is, the window size is (2r+1)×(2r+1).

[0066] Then, the cost volume is aggregated, and a 3D convolutional layer is used to aggregate the information in the cost volume, reduce the noise in the cost volume, and improve the accuracy of the disparity estimation. Finally, disparity regression is performed to estimate the final disparity map from the aggregated cost volume, and the argmin operation is used to determine the best disparity value for each pixel. For each pixel position (i, j), the index corresponding to the minimum value of the cost volume in the disparity dimension is calculated, that is, the best disparity value. The specific formula is:

[0067] d * (i,j)=argminc(i,j,d)

[0068] Among them, d *(i,j) is the optimal disparity value of position (i,j), and c(i,j,d) is the cost value of position (i,j) at disparity d.

[0069] Step 4: Input the left feature map after fusion of multi-scale features into the Head network part of the target detection model to perform category classification and bounding box regression to obtain the bounding box and category information of each target, such as Fig.10 shown.

[0070] In actual application scenarios, after the object detection model completes its basic reasoning calculations, it will go through a series of post-processing steps to generate the final detection results. These post-processing steps usually include decoding the prediction output, performing non-maximum suppression (NMS) to filter out redundant bounding boxes, and drawing the final confirmed object bounding box on the image.

[0071] Step 5: Scale the bounding box of each target according to the ratio of the detection image and the disparity map, and calculate the distance values ​​of all pixels within the bounding box of each target in the disparity map in combination with the camera parameters. The distance value of each target is the average distance value of all pixels in the corresponding bounding box. The disparity distance calculation formula is:

[0072]

[0073] Among them, depth is the distance, f is the focal length (pixel focal length), b is the baseline length, and d is the parallax.

[0074] Combine the category information, bounding box, and distance value of each target to output the final detection result.

[0075] When training the entire model, it is necessary to consider the parallax estimation loss (L disp ) and target detection loss (L class and L box ).

[0076] The disparity estimation loss uses the Smooth L1Loss (Huber Loss) loss function:

[0077]

[0078] in, is the true disparity value, d i is the disparity value predicted by the model, and N is the total number of pixels. The overall loss function is:

[0079] L total =λ1L disp +λ2L class +λ3L box

[0080] Among them, λ1, λ2, and λ3 are hyperparameters used to balance the contributions between different loss terms.

[0081] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. An infrared stereo vision target ranging method based on DSC_ViTNet, characterized in that: The following steps are involved: (1) The left infrared image and the right infrared image captured by the infrared binocular system are input into the DSC_ViTNet network for multi-scale feature extraction; the DSC_ViTNet network includes a Stem module, multiple Stage modules and a DSC_DS module; the Stage module includes one or more DSC_AT modules and one or more DSC modules to extract features of different scales; the DSC_AT module introduces the scSE attention module to improve the network's ability to discriminate the importance of features; (2) Use the bidirectional feature pyramid network BiFPN to fuse features at different levels and concatenate the fused left and right feature maps to perform disparity estimation. (3) Construct a cost volume based on the fused feature map, calculate the similarity metric, and perform disparity regression to obtain the final disparity map; (4) The fused left feature map is input into the Head network part for category classification and bounding box regression to obtain the bounding box and category information of each target; (5) The bounding box of each target is scaled according to the ratio of the detection image and the disparity map, and the distance values ​​of all pixels within the bounding box of each target in the disparity map are calculated in combination with the camera parameters. The category information, bounding box, and distance value of each target are combined to output the final detection result.

2. The infrared stereoscopic target ranging method based on DSC_ViTNet according to claim 1, characterized in that: The Stem module in step (1) is used to preprocess the input image, which includes two stages: first, a 3x3 DW convolution layer and a 1x1 standard convolution layer are used, followed by a GELU activation function layer; followed by another 3x3 DW convolution layer and a 1x1 standard convolution layer; each convolution layer is followed by a batch normalization layer; the original image size H×W is reduced to H / 4×W / 4 to extract low-level features in the image.

3. The infrared stereo vision target ranging method based on DSC_ViTNet according to claim 1, characterized in that: There are four Stage modules in step (1); Stage 1 extracts image features of the H / 4×W / 4 scale, and its structure includes one DSC_AT module and two DSC modules; then, the DSC_DS module further downsamples the image to H / 8×W / 8; Stage 2 repeats the structure of Stage 1, that is, one DSC_AT module plus two DSC modules; Stage 3 downsamples to H / 16×W / 16 again through the DSC_DS module on the basis of H / 8×W / 8, and extracts features at this scale; Stage 3 includes seven alternating DSC_AT and DSC modules, and finally a DSC module; the image is downsampled to H / 32×W / 32 through the DSC_DS module, and at this time Stage 4 extracts image features of this scale, and the structure is one DSC_AT module and one DSC module.

4. The infrared stereo vision target ranging method based on DSC_ViTNet according to claim 1, characterized in that: Step (1) The DSC module includes three parallel branches: the first branch contains only a 1×1 standard convolution layer; the second branch consists of a 3×3 DW convolution layer and a 1×1 standard convolution layer; the third branch consists of a 1×1 DW convolution layer and a 1×1 standard convolution layer; each convolution layer is connected to a BN layer for normalization; the input feature map is extracted at different receptive fields through the three branches.

5. The infrared stereo vision target ranging method based on DSC_ViTNet according to claim 1, characterized in that: The DSC_AT module in step (1) is extended on the basis of the DSC module, retaining the multi-branch structure, and introducing the scSE attention module between the final BN layer and the FFN module; The scSE attention module includes: The channel attention module cSE is used to reduce the feature map to C×1×1 through global average pooling, and then use two 1×1 standard convolution layers to reduce and increase the dimension, and integrate the features and calculate the weights through the ReLU activation function layer and the sigmoid function layer, and finally multiply it with the original feature map to enhance the channel information; The spatial attention module sSE is used to reduce the dimension of the feature map to 1×H×W through a 1×1 standard convolution layer, normalize it through a sigmoid function layer, and multiply it with the original feature map to enhance the spatial information.

6. The infrared stereo vision target ranging method based on DSC_ViTNet according to claim 1, characterized in that: The DSC_DS module in step (1) is used for scale transformation between stages. The feature map is downsampled through a 3×3 DW convolution layer, and then the features are integrated and enhanced through a 1×1 standard convolution layer and an FFN module.

7. The infrared stereo vision target ranging method based on DSC_ViTNet according to claim 5, characterized in that: The FFN module adopts residual connection and enhances the expression of features through a branch containing two 1×1 standard convolutional layers. A GELU activation function layer is added between the two convolution operations to introduce nonlinear characteristics. The first 1×1 standard convolutional layer is responsible for mapping the features to a higher dimension, while the second standard convolutional layer restores the features to the original dimension and achieves deep enhancement of the features by adding them to the input features.

8. The infrared stereo vision target ranging method based on DSC_ViTNet according to claim 1, characterized in that: The bidirectional feature pyramid network BiFPN in step (2) is: The bidirectional connection strategy is used to promote the bidirectional transmission of features at different levels in the feature pyramid network. The feature maps S1, S2, S3 and S4 of different scales extracted from the backbone network are used, and feature fusion is achieved through upsampling and downsampling operations and 3×3 standard convolutional layers to obtain the fused feature maps P1, P2, P3 and P4.

9. The infrared stereo vision target ranging method based on DSC_ViTNet according to claim 1, characterized in that: The implementation process of step (3) is as follows: The cost volume is constructed based on the joint feature map, and a three-dimensional cost volume is obtained by calculating the similarity measure. The specific formula is: Where L represents the left image feature map, R represents the right image feature map, i and j represent the pixel position coordinates, c represents the pixel channel, d represents the disparity value, and r is half of the window radius, that is, the window size is (2r+1)×(2r+1); Aggregate the cost volume and use a 3D convolutional layer to aggregate the information in the cost volume. Finally, perform disparity regression to estimate the final disparity map from the aggregated cost volume and use the argmin operation to determine the optimal disparity value for each pixel. The specific formula is: Among them, d * (i,j) is the optimal disparity value of position (i,j), and c(i,j,d) is the cost value of position (i,j) at disparity d.

10. The infrared stereo vision target ranging method based on DSC_ViTNet according to claim 1, characterized in that: The implementation process of step (5) is as follows: Each bounding box is scaled according to the ratio of the original image and the disparity map. In the disparity map, the distance value of each pixel within the scaled bounding box is calculated according to the disparity distance, and the average distance value of all pixels in the bounding box is taken as the distance value of the corresponding target; the disparity distance is: Among them, depth is the distance, f is the focal length, b is the baseline length, and d is the parallax.

Citation Information

Cited By

  • 3D display depth intelligent test method

    CN120298597A

  • Aircraft height measurement method and device based on binocular vision

    CN121330043A