A color and depth image single target tracking algorithm based on 3D cue information
By combining the Transformer backbone network and the 3D cue information network, the target tracking algorithm is enhanced with 3D geometric information, which solves the problems of accuracy and generalization of single target tracking in complex scenes of color images, and achieves higher tracking accuracy and robustness.
Patent Information
- Application Number
- CN202311691149.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-11
AI Technical Summary
Existing color image single-object tracking algorithms perform poorly in complex scenes such as extreme lighting changes, cluttered backgrounds, and motion blur. Furthermore, color and depth image tracking algorithms that rely on appearance information lack generalization ability when trained on small datasets.
A single-target tracking algorithm based on color and depth images with 3D cue information is adopted. By combining the Transformer backbone network with the 3D cue information network, the target position estimation is enhanced by 3D geometric information. The algorithm is further improved in complex scenes by combining dynamic graph convolutional neural network and K-nearest neighbor clustering.
It improves the accuracy and robustness of target tracking algorithms under extreme conditions, reduces the need for training data, and enhances the ability to distinguish between targets and interference objects in various scenarios.
Smart Images

Figure CN117689906B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the fields of deep learning, multimodal target tracking, and cue learning, and involves dynamic graph convolutional networks, K-nearest neighbor clustering algorithm, and single target tracking algorithm OSTrack. Specifically, it relates to a single target tracking algorithm based on color and depth images with 3D cue information. Background Technology
[0002] Single-object tracking of color images is a fundamental component of computer vision, with applications in virtual reality, augmented reality, and autonomous driving, among other fields. Recent advancements in this area have primarily benefited from the Transformer architecture and the development of numerous large-scale datasets. Transformer-based single-object tracking algorithms, such as MixFormer, NeighborTrack, and Ostrack, have surpassed convolutional-based algorithms. These achievements are not only attributed to the Transformer architecture but also to several large-scale RGB tracking datasets, including LaSOT, GOT-10K, and TrackNet.
[0003] While single-object tracking algorithms utilizing color images have achieved significant results, these algorithms still suffer from performance limitations in challenging scenarios such as extreme lighting variations, cluttered backgrounds, and motion blur. Multimodal information, such as depth maps, can help algorithms better locate and track targets. However, recent color and depth image tracking algorithms, such as DAL, DeT, and ViPT, often treat depth as an additional visual feature, resulting in an overall reliance on appearance cues and features. Relying solely on appearance information makes accurate tracking difficult in complex scenes. In contrast, 3D geometric information provides more comprehensive information about object shape and spatial layout, offering a more accurate estimate of the target's precise location.
[0004] Furthermore, considering that color and depth image tracking datasets are much smaller than color image datasets, training directly on small datasets often compromises the generalization ability of the original model. In recent years, cue learning has achieved significant results in transferring skills to downstream tasks, such as AdaptFormer, VPT, and ConvPass. This method provides an effective way for various downstream tasks to better utilize pre-trained models, achieving this goal with only a small increase in trainable parameters. Summary of the Invention
[0005] This invention aims to provide a single-target tracking algorithm based on color and depth images with 3D cue information, which improves the algorithm's generalization ability in various scenarios and enhances its performance under extreme conditions.
[0006] The method described in this invention can be deployed on various devices in autonomous driving scenarios to provide target information for visual positioning and navigation.
[0007] The technical solution of this invention:
[0008] A single-target tracking algorithm based on color and depth images using 3D cue information, comprising the following steps:
[0009] Step 1: Acquire color images and depth images using a color image sensor and a depth image sensor, respectively;
[0010] Step 2: Given the initial frame and the bounding boxes of the current frame; use the bounding box of the initial frame as a template, and determine the search area at time t+1 of the next frame based on the bounding box of the current frame at time t.
[0011] Step 3: Based on the template and the bounding box of the search area, obtain the color image and point cloud information of the corresponding area;
[0012] (3.1) First, based on the bounding box information, the color image and depth image of the template and the search area are cut out. This process includes cutting, scaling and filling operations, and the corresponding correction matrix is obtained based on these operations.
[0013] (3.2) Based on the camera intrinsic parameters and the correction matrix, project the depth images corresponding to the template and the search area onto the camera coordinate system to obtain the corresponding point cloud;
[0014] Step 4: Input a continuous video stream, and after processing by the Transformer backbone network, the 3D cue information network, and the tracking head, obtain the target bounding box at time t+1.
[0015] The input to the Transformer backbone network is a color image of the search region and template, and the output is the feature map corresponding to the search region and template after 16x downsampling. The Transformer backbone network mainly consists of L Transformer modules. Each Transformer module contains three different linear layers for calculating Query, Key, and Value, a self-attention layer, and a multilayer perceptron. If the Transformer backbone network involves downsampling operations with a downsampling factor of M, a convolutional layer with a kernel size of M×M and a stride of M is used to perform the downsampling operation.
[0016] The 3D cue information network is mainly used to extract 3D cue information features and combine these features with corresponding features in the Transformer backbone network, thereby enhancing the Transformer backbone network's ability to understand 3D feature information. The 3D cue information network contains L geometry perception modules. Each geometry perception module has two inputs: one is a 2D feature from the Transformer backbone network, and the other is a 3D cue information feature, which is the output of the previous geometry perception module. Each geometry perception module outputs one and only one 3D cue information feature.
[0017] Downsampling in 3D prompting information networks includes two types: downsampling of feature maps and downsampling of point clouds. Downsampling of feature maps directly adopts the same downsampling method as the Transformer backbone network. Downsampling of point clouds involves first performing minimum pooling with a stride of M and a window size of M×M on the effective points in the depth map, and then reprojecting the downsampled depth map into 3D space.
[0018] The main calculation process of the geometry sensing module is as follows:
[0019] (4.1) The input to the geometry sensing module is the output of the (l-1)th Transformer module in the Transformer backbone network. And the output from the (l-1)th geometry perception module in the 3D prompting information network. They each pass through a linear layer to obtain features with 8 channels. and
[0020] (4.2) For features containing 2D information 2D cue features are obtained after a smoothing operation.
[0021]
[0022] Where ⊙ represents element-wise multiplication, and α is a learnable parameter with an initial value of 10.0, used for feature smoothing;
[0023] (4.3) Then it is necessary to process the features containing 3D information. Extract information;
[0024] (4.3.1) First, perform KNN clustering on the point cloud P corresponding to this feature based on the 3D coordinate information. The clustering result is P. KNN ;
[0025] (4.3.2) For any point P i∈P, the points in its K nearest neighbors The relationship between them is:
[0026]
[0027] Among them, f i 3D For point i in Features in; then will and f KNN Together, they are fed into a lightweight dynamic graph convolutional neural network to obtain features in 3D space.
[0028] (4.3.3) after that, regarding Spatial attention weighting:
[0029]
[0030] Where σ is the sigmoid operation and Linear is a linear layer with 1 output channel;
[0031] (4.4) The final output of the geometry sensing module is determined by the input of the geometry sensing module. and We obtain it by adding each element one by one;
[0032]
[0033] The input to the l-th Transformer module is... and We obtain it by adding each element one by one;
[0034] The input to the tracking head is the features of the search area calculated by the Transformer backbone network and the 3D cue information network. The output is the bounding box information of the target (such as the center point coordinates and size) and the confidence level of the target.
[0035] Step 5: Repeat steps 2 through 4 until the video ends.
[0036] The beneficial effects of this invention are:
[0037] (1) This invention uses 3D prompts to endow the 2D pre-trained model with the ability to perceive the 3D environment, thereby improving the accuracy of the tracking algorithm in calculating the target position and reducing the impact of interference on the tracking process. In addition, it reduces the network's requirement for training data while improving the accuracy of the tracking algorithm.
[0038] (2) This invention improves the robustness and generalization of the multimodal single-target tracking algorithm. It effectively improves the performance of the algorithm when facing challenging scenarios, and can more effectively distinguish between targets and interference objects when facing a variety of different scenarios. Attached Figure Description
[0039] Figure 1 This is the overall network structure of the present invention.
[0040] Figure 2 This describes the structure of the geometry sensing module. Detailed Implementation
[0041] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings and technical solutions.
[0042] Figure 1 The diagram illustrates the overall network structure of this invention. The overall network consists of two parts: a backbone network and a 3D cue information network. The backbone network adopts the ViT network architecture, with pre-trained weights derived from OSTrack. The 3D cue information network mainly comprises several geometric perception modules. The number of Transformer structures in the backbone network is the same as the number of geometric perception modules in the 3D cue information network. For color images and point clouds, the inputs are first downsampled to 1 / 16 of the original image. For color images, 2D downsampling is used, consisting of a convolutional kernel with a size and stride of 16. This kernel has 3 input channels and 768 output channels. For point clouds, 3D downsampling is used, comprising two parts: feature downsampling and point cloud downsampling. Feature downsampling uses the same method as 2D downsampling, while coordinate downsampling involves minimum pooling of points with non-zero depth values in the depth map with a size and stride of 16. The resulting depth map is then projected back into the camera coordinate system.
[0043] The features of the search area are then input into the tracking head to predict the target's location, size, and confidence level.
[0044] Figure 2This is a schematic diagram of the geometry perception module. 2D and 3D features are first fed into a linear layer for channel downsampling, resulting in 8 feature channels. The downsampled 2D features are then fed into a smoothing layer to emphasize the effective information within the 2D features. The downsampled 3D features are modeled based on the KNN clustering results of the coordinates, establishing the relationship between the center point and its K nearest neighbors. This modeled feature, along with the original features of the center point, is then fed into a lightweight dynamic graph neural network. Spatial attention is then applied to the output to further emphasize the effective information in 3D space. This attention mechanism consists of a linear layer and a sigmoid function. Finally, the 2D and 3D features are summed, and this sum is used as the 3D cue information input into the backbone network. This cue information is then added to the output of the corresponding Transformer module and fed into the next Transformer module.
[0045] The training set for this method consists of the training set provided by DepthTrack. Data augmentation includes two parts: 2D data augmentation and 3D data augmentation. 2D data augmentation includes random cropping, random flipping, color dithering, and random scaling. 3D data augmentation uses random discarding, randomly setting all inputs to 0 with a 20% probability. The optimizer is AdamW, with an initial learning rate of 2e-4, and training for 35 epochs.
[0046] During the reasoning process, the template image size is 128×128, and the search area image size is 256×256.
Claims
1. A single-target tracking algorithm for color and depth images based on 3D cue information, characterized in that, The steps are as follows: Step 1: Acquire color images and depth images using a color image sensor and a depth image sensor, respectively; Step 2: Given the initial frame and the bounding boxes of the current frame; use the bounding box of the initial frame as a template, and determine the next frame based on the bounding box of the current frame at time t. t+1 The search area for each moment; Step 3: Based on the template and the bounding box of the search area, obtain the color image and point cloud information of the corresponding area; (3.1) First, based on the bounding box information, the color image and depth image of the template and the search area are cut out. This process includes cutting, scaling and filling operations, and the corresponding correction matrix is obtained based on these operations. (3.2) Based on the camera intrinsic parameters and the correction matrix, project the depth images corresponding to the template and the search area onto the camera coordinate system to obtain the corresponding point cloud; Step 4: Input a continuous video stream, which, after passing through the Transformer backbone network, the 3D cueing information network, and the tracking head's calculations, yields... t+1 The target bounding box at any given time; The Transformer backbone network takes color images of the search region and template as input and outputs feature maps of the search region and template after a 16x downsampling. The Transformer backbone network mainly consists of... L It consists of several Transformer modules, each containing three different linear layers for computation. Query , Key and Value A self-attention layer and a multilayer perceptron; if downsampling is involved in the Transformer backbone network, the downsampling factor is... M Then use a convolution kernel with a size of Step size is M The convolutional layers are used to perform downsampling operations; The 3D cue information network is primarily used to extract 3D cue information features and combine these features with corresponding features in the Transformer backbone network, thereby enhancing the Transformer backbone network's ability to understand 3D feature information. The 3D cue information network includes... L Each geometry perception module has two inputs: one is a 2D feature from the Transformer backbone network, and the other is a 3D cue information feature, which is the output of the previous geometry perception module. Each geometry perception module outputs one and only one 3D cue information feature. Downsampling in 3D prompting information networks includes two types: downsampling of feature maps and downsampling of point clouds. Downsampling of feature maps directly adopts the same downsampling method as the Transformer backbone network. Downsampling of point clouds involves first performing a step size calculation on the effective points in the depth map. M Window size is Mini-pooling reprojects the downsampled depth map into 3D space; The main calculation process of the geometry sensing module is as follows: (4.1) The input to the geometry sensing module comes from the first... in the Transformer backbone network. l-1 Output of the Transformer module And from the 3D prompt information network l-1 The output of each geometry sensing module They each pass through a linear layer to obtain features with 8 channels. and ; (4.2) For features containing 2D information 2D cue features are obtained after a smoothing operation. : in, This represents element-wise multiplication. These are learnable parameters, initially set to 10.0, used for feature smoothing; (4.3) Then it is necessary to process the features containing 3D information. Extract information; (4.3.1) First, analyze the point cloud corresponding to this feature. P KNN clustering was performed based on 3D coordinate information, and the clustering result was as follows: ; (4.3.2) For any point It and its K nearest neighbors The relationship between them is: in, For point i exist Features in; then will and Together, they are fed into a lightweight dynamic graph convolutional neural network to obtain features in 3D space. ; (4.3.3) after that, regarding Spatial attention weighting: in, for sigmoid operate, Linear It is a linear layer with 1 output channel; (4.4) The final output of the geometry sensing module is determined by the input of the geometry sensing module. and We obtain it by adding each element one by one; For the l The input to each Transformer module is... and We obtain it by adding each element one by one; The input to the tracking head is the features of the search area calculated by the Transformer backbone network and the 3D cue information network. The output is the bounding box information of the target and the confidence score of the target. The bounding box information includes the center point coordinates and size. Step 5: Repeat steps 2 through 4 until the video ends.
