Deep learning based online cross-camera multi-target vehicle tracking method without delay

By employing deep learning and lightweight feature extraction methods, the problems of latency and computational resource consumption in multi-camera multi-target tracking are solved, achieving latency-free real-time multi-target tracking and improving the stability and robustness of target recognition.

CN118247309BActive Publication Date: 2026-11-24ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410328396.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-21
Publication Date
2026-11-24
Estimated Expiration
2044-03-21

AI Technical Summary

Technical Problem

Existing technologies suffer from high latency and high computational resource consumption in multi-camera, multi-target tracking, making it difficult to achieve real-time performance. Furthermore, manually designed prior information is difficult to transfer to other scenarios, and the target size varies with distance, leading to recognition difficulties.

Method used

A latency-free online cross-camera multi-target tracking method based on deep learning is adopted. Through frame-level processing, parallel multi-scale feature extraction and deep appearance feature matching, combined with Kalman filtering for trajectory update and cross-camera matching, a lightweight multi-target tracking system is designed.

Benefits of technology

It achieves latency-free multi-camera multi-target tracking, effectively solves the problem of target occlusion or loss, optimizes target resolution differences, improves the stability and robustness of appearance features, and can perform real-time tracking without requiring prior knowledge of roads and cameras.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118247309B_ABST
    Figure CN118247309B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of image processing and discloses a latency-free online cross-camera multi-target vehicle tracking method based on deep learning. When a video frame arrives, this method first obtains the target bounding box and appearance feature vector through a detector and feature extractor. Then, detection results with confidence levels lower than the required confidence level are discarded. The remaining results are then tracked using a single camera against historical trajectories from the same camera. Whether a vehicle belongs to the same vehicle is determined based on both appearance similarity and positional distance, completing trajectory initialization and updating, and generating the current single-camera local trajectory. Finally, the updated trajectory is matched with the trajectories from other cameras using a cross-camera tracker to complete the entire tracking process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of image processing, specifically relating to a latency-free online multi-target vehicle tracking method based on deep learning. Background Technology

[0002] With the rise of autonomous driving and smart cities, current research is turning its attention to cross-camera multi-object tracking. Unlike single-camera tracking, multi-camera multi-object (MCMT) tracking emphasizes the correlation between cameras, handling complex factors such as camera position, orientation, and overlap. In real-world MCMT vehicle tracking, road conditions become more complex, facing challenges such as congestion, traffic accidents, and irrelevant obstacles. Thanks to relatively mature multi-object tracking solutions, many studies have generated local trajectories through single-camera tracking, followed by re-identification of the results through clustering and post-processing. However, the extremely high cost, in terms of time and computational resources, makes it difficult for models to achieve real-time performance. To alleviate this problem, traditional methods rely on spatiotemporal information to reduce the number of clustering candidates. On the other hand, global coordinates obtained through camera calibration and more complex, high-dimensional embeddings are utilized to improve accuracy. However, this does not fundamentally solve the significant burden brought by clustering. Furthermore, manually designed prior information, such as import / export areas, is difficult to transfer to other scenarios.

[0003] Another issue is that the fixed camera position causes the target size to vary with distance. All detected targets are resized to 384×384 pixels, resulting in different image resolutions. This problem exists in both multi-camera and single-camera scenarios, making it easier to identify targets of similar size, while making it difficult to distinguish targets of significantly different sizes. Summary of the Invention

[0004] The purpose of this application is to provide a latency-free online multi-target vehicle tracking method based on deep learning, which effectively improves the efficiency of multi-target tracking across cameras through frame-level processing.

[0005] To achieve the above objectives, the technical solution adopted in this application is as follows:

[0006] A deep learning-based, latency-free online multi-target vehicle tracking method across cameras, comprising:

[0007] Step 1: Detect and crop out vehicle images based on the acquired video frames, encode the vehicle images, and align them with the detection bounding boxes and confidence scores output by the detection team.

[0008] Step 2: After preprocessing the vehicle image, input it into the shallow fusion branch and the deep fusion branch respectively for parallel multi-scale feature extraction, and then stitch the multi-scale features extracted by the two branches together in the first dimension to obtain the deep appearance features of the vehicle.

[0009] Step 3, Single-camera multi-target vehicle tracking, including:

[0010] Step 3.1: Obtain the historical trajectory pool output by the camera in the previous time step. The historical trajectory pool includes active trajectories that were successfully matched in the previous time step and temporarily lost trajectories that were not successfully matched in the previous time step but are still within the local buffer time.

[0011] Step 3.2: First, Hungarian matching is performed using depth appearance feature distance, with the minimum total distance as the optimization objective. The vehicles in the detection results are matched one-to-one with the trajectories in the historical trajectory pool. Finally, the successfully matched trajectory-vehicle pairs, unmatched trajectories, and unmatched vehicles are output. Then, the positional distance between the unmatched trajectories and unmatched vehicles is calculated, and a second Hungarian matching is performed. The successfully matched trajectory-vehicle pairs, unmatched trajectories, and unmatched vehicles are output again.

[0012] Step 3.3: Based on the two successfully matched trajectory-vehicle pairs, use Kalman filtering to update and predict the trajectory, forming a new trajectory update historical trajectory pool. At the same time, update the ID list of the successfully matched trajectories and add a new ID to record the trajectory. Unmatched vehicles are considered as newly entered vehicles of the camera. A trajectory is initialized to record the vehicle, and an ID and ID list are initialized for the trajectory. For unmatched trajectories, the continuous unmatched time is incremented by 1. If the continuous unmatched time exceeds the local buffer time, it will be considered that the vehicle has left the current camera, and the trajectory will be removed from the historical trajectory pool.

[0013] Step 4, multi-target vehicle tracking across cameras, including:

[0014] Step 4.1: Capture the current camera (Cam). x Active trajectories in the historical trajectory pool, simultaneously captured from the previous camera. x-1 For trajectories that do not exceed the global buffer time, calculate the depth appearance feature distance between the trajectories taken from the two cameras, and use the depth appearance feature distance as the cost matrix for Hungarian matching, outputting the successfully matched trajectory-trajectory pairs and the unmatched trajectories;

[0015] Step 4.2: Based on the successfully matched trajectory-trajectory pairs, modify the camera settings. x The latest ID in the list of successfully matched trajectories is used to match the camera's ID. x-1 The ID of the track matched in the image must be consistent. Next, select the camera (Cam).x The most frequently occurring ID in the list of successfully matched track IDs is used as the latest ID for that track; for camera Cam x-1 For unmatched trajectories, the duration of consecutive unmatched events is incremented by 1. If the duration of consecutive unmatched events exceeds the global buffer time, the vehicle is considered to have left the tracking range, its status is changed, and it no longer participates in cross-camera matching at the next time step. For cameras... x For unmatched trajectories, the tracking continues with the previous camera. x-2 Matching is performed on trajectories that have not exceeded the global buffer time, and the matching continues forward until the camera (Cam) is reached. x All active trajectories in the system were successfully matched or until a match with the first camera, Cam1, was completed.

[0016] Several alternative methods are provided below, but they are not intended as additional limitations on the overall solution above. They are merely further additions or optimizations. Provided there are no technical or logical contradictions, each alternative method can be combined individually with respect to the overall solution above, or multiple alternative methods can be combined with each other.

[0017] Preferably, the step of detecting and cropping vehicle images from the acquired video frames, encoding the vehicle images, and aligning them with the detection bounding boxes and confidence scores output includes:

[0018] Take camera x Current video frame I t The current video frame I is output through the moving window attention detector. t The vehicle detection box D that appears in the image N And confidence score C N Delete confidence score C N Low-quality detected targets below the confidence threshold are processed by placing the remaining results within the detection bounding box in the current video frame I. t Cropping was performed to obtain vehicle images of different sizes. N For vehicle image X N After encoding, it is aligned with the corresponding detection box and confidence score.

[0019] Preferably, the shallow fusion branch uses a deep residual network ResNet-50, where the channel dimension of the downsampled features is increased and the width and height dimensions are decreased in each downsampling step, finally yielding the shallow fusion features output by this branch.

[0020] Preferably, the deep fusion branch uses the MSINet network obtained by searching the interaction module based on neural network architecture search;

[0021] Before each downsampling, the input feature map f is copied and denoted as feature map f1 and f2 respectively. Feature map f1 is processed by a 1×1 convolution and three concatenated 3×3 convolutional layers to obtain feature map f1′, while feature map f2 is processed by a 1×1 convolution and a 3×3 convolutional layer to obtain feature map f2′. The receptive field size of feature map f1′ is three times that of feature map f2′. Then, the MSINet network selects the corresponding interaction module according to the search results, and swaps, weights, performs attention operations, or keeps feature map f1′ and feature map f2′ unchanged before inputting them into the next stage.

[0022] The output of the previous stage is used as new feature maps f1 and f2, and the same operation as the previous stage is performed on the new feature maps f1 and f2 to obtain new feature maps f1′ and f2′.

[0023] Finally, the new feature maps f1′ and f2′ are added together to obtain feature map f′. Feature map f is added together with feature map f′ as input for downsampling to obtain downsampled feature map f″. Feature map f″ is then input into a fully connected layer to obtain the deep fusion feature output by this branch.

[0024] Preferably, each trajectory in the historical trajectory pool represents a vehicle target, and records all detection box information of the vehicle in the historical frame, the continuous non-matching time, the depth appearance features of the vehicle, an ID, and an ID list. The ID list records whether the ID has changed at each time point.

[0025] This application provides a deep learning-based, latency-free online multi-target vehicle tracking method across cameras, which offers the following advantages compared to existing technologies: This method is a strictly online (latency-free) multi-camera multi-target tracking approach that does not require prior knowledge of roads and cameras, and can process data frame-by-frame or track complete videos. By creating a label-matching multi-camera scene matching strategy, the problem of target occlusion or loss is effectively solved. A lightweight parallel multi-scale feature extractor is designed to optimize the handling of target resolution differences, improving the stability and robustness of appearance features during target recognition. Attached Figure Description

[0026] Figure 1 A comparison diagram of the overall frameworks for cluster-based offline cross-camera tracking and strictly online cross-camera tracking;

[0027] Figure 2 This is a flowchart of the latency-free online cross-camera multi-target vehicle tracking method based on deep learning according to the present invention;

[0028] Figure 3 This is a flowchart of the depth appearance feature extraction process for the vehicle of the present invention;

[0029] Figure 4 This is a comparison chart showing the effects of traditional re-identification methods and the vehicle depth appearance feature extraction module of this invention. Detailed Implementation

[0030] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of this application.

[0032] like Figure 1 As shown, Figure 1 (a) in the diagram is a schematic of offline cross-camera tracking based on clustering. Figure 1 (b) in the figure is a schematic diagram of strictly online cross-camera tracking. It can be seen that the strictly online cross-camera tracking has a small latency. Therefore, this embodiment proposes a cross-camera tracking method based on strictly online tracking.

[0033] To overcome the shortcomings of existing multi-camera multi-target tracking technologies, this embodiment provides a latency-free online cross-camera multi-target vehicle tracking method based on deep learning. When a video frame arrives, the target bounding box and appearance feature vector are first obtained through a detector and feature extractor. Then, detection results with a confidence level less than a confidence threshold (e.g., 0.4) are discarded. The remaining results are tracked using a single camera against historical trajectories within the same camera. Whether a vehicle belongs to the same vehicle is determined based on both appearance similarity and positional distance, completing trajectory initialization and updating, and generating the current single-camera local trajectory. Finally, the updated trajectory is matched with the trajectories of other cameras in a cross-camera tracker, completing the entire tracking process.

[0034] Specifically, such as Figure 2 As shown in the figure, the latency-free online cross-camera multi-target vehicle tracking method based on deep learning in this embodiment includes the following steps:

[0035] Step 1, Vehicle Detector: Detect and crop vehicle images from the acquired video frames, encode the vehicle images, and align them with the detection bounding boxes and confidence scores output by the detector.

[0036] Take camera x Current video frame I tThe current video frame I is output through the moving window attention detector. t The vehicle detection box D that appears in the image N And confidence score C N Delete confidence score C N Low-quality detected targets with a confidence threshold (e.g., 0.4) are then processed according to the detection bounding box range within the current video frame i. t Cropping was performed to obtain vehicle images of different sizes. N For vehicle image X N After encoding, it is aligned with the corresponding detection box and confidence score.

[0037] Step 2, Parallel vehicle appearance feature extraction (dual-branch model extraction): After preprocessing the vehicle image, input it into the shallow fusion branch and the deep fusion branch respectively for parallel multi-scale feature extraction, and then stitch the multi-scale features extracted by the two branches together in the first dimension to obtain the deep appearance features of the vehicle.

[0038] After obtaining the detection results in step 1, the captured vehicle images of different sizes will be X N The image is scaled to 384×384 pixels by sampling and linear interpolation, and the data in the channel dimension is normalized to obtain the preprocessed image.

[0039] like Figure 3 As shown, in the subsequent process, the preprocessed image X N The inputs are fed into the shallow fusion branch and the deep fusion branch respectively, ultimately obtaining deep appearance features. Both branches have been trained for 300 epochs on the Veri and Vehicle ID datasets, and the parameters with the best performance are selected. The shallow fusion branch uses a deep residual network "ResNet-50," which increases the channel dimension and decreases the width and height dimensions of the features in each downsampling iteration, ultimately yielding shallow fused features.

[0040] The deep fusion branch uses a neural network architecture search (NAS) to obtain "MSINet". In this embodiment, MSINet is used as the basic architecture network to search for the interaction modules within it. After the search is completed (the interaction modules are determined), the network is trained. Finally, the trained network is used for inference to obtain the required deep appearance features.

[0041] Copy the input feature map before each downsampling. Let these be denoted as feature maps f1 and f2, respectively. Feature map f1 is processed through a 1×1 convolution and three cascaded 3×3 convolutional layers to obtain feature map f1′, while feature map f2 is processed through a 1×1 convolution and one 3×3 convolutional layer to obtain feature map f2′. The receptive field size of feature map f1′ is three times that of feature map f2′. Next, the network selects the corresponding interaction module based on the search results, swapping, weighting, performing attention operations, or keeping feature maps f1′ and f2′ unchanged as inputs to the next stage. After repeating this process twice, the final output feature map f1′ is added to feature map f2′ to obtain feature map f′. Finally, feature map f is added to feature map f′ as input for downsampling to obtain the downsampled feature map. After the above operations and downsampling are performed twice, the feature map f″ is input into a fully connected layer to obtain the deep fusion feature. shallow fusion feature F shallow With deep fusion feature F deep By stitching them together in the first dimension, we obtain the vehicle's depth appearance features.

[0042] For the same vehicle target captured by different cameras or at different times, the appearance features extracted by the deep network should be as close in distance as possible for easier identification. Therefore, we designed a visualization experiment, and the results are as follows: Figure 4 As shown, Figure 4 (a) in the text represents the traditional method. Figure 4 (b) in the figure illustrates the method of this invention. Compared to traditional deep re-identification models (using ResNet101, Resnext101, and Se_ResNet101 models, with the traditional model's result being the average of these three models), the appearance features extracted by the dual-branch model of this invention have significantly smaller distances. Especially for vehicle targets captured by the same camera at different times, traditional models struggle to identify them due to varying resolutions caused by the vehicle's distance from the camera. In contrast, the confusion matrix generated by the appearance features extracted by the dual-branch model of this invention generally has darker colors and smaller distances, resulting in stronger re-identification capabilities.

[0043] Step 3: Single-camera multi-target vehicle tracking.

[0044] Step 3.1: In this stage, the historical trajectory pool output by the camera in the previous time step is collected. The historical trajectory pool includes active trajectories that were successfully matched in the previous time step and temporarily lost trajectories that were not successfully matched in the previous time step but are still within the local buffer time (e.g., 30 frames, which can be calibrated according to the distribution of cameras).

[0045] Each trajectory in the historical trajectory pool represents a vehicle target, recording all detection bounding boxes for that vehicle in historical frames, the number of consecutive non-matching times (frames), the vehicle's depth and appearance features, an ID, and a list of IDs. The ID list records whether the ID has changed at each time point. The detection bounding box information... These represent the x-coordinate, y-coordinate, aspect ratio, and height of the center point of the detection box, respectively, and their corresponding momentum changes. The momentum change is initialized to 0. Each time the Kalman filter is updated, an estimate is made based on the current value and the observed value (detection result), which is then used as the new momentum change.

[0046] Step 3.2: First, Hungarian matching is performed using depth appearance feature distance, with the minimum total distance as the optimization objective. Vehicles are matched one-to-one with trajectories in the historical trajectory pool. Finally, the successfully matched trajectory-vehicle pairs, unmatched trajectories, and unmatched vehicles are output. The depth appearance feature distance uses a cosine distance matrix. In this embodiment, the cosine distance matrix C between the depth appearance features of the trajectory and the vehicle is calculated. dist The specific formula is as follows:

[0047]

[0048] In the formula, F T This represents the depth appearance features of a vehicle in a track, specifically the depth appearance features of the predicted value (vehicle) obtained by Kalman filtering at the previous time step in that track. F D This indicates the depth appearance features of the vehicle in the detection results.

[0049] Because vehicles may have obstructions or deformations, a judgment cannot be made solely based on appearance features; therefore, a second matching step is needed as a supplement. This step uses the position-distance matrix P. dist That is, the average of the Euclidean distances of the four points corresponding to the detection box is used as the cost matrix.

[0050]

[0051] In the formula, T i This represents the maximum and minimum value of the bounding box of a vehicle in the trajectory along the i-th direction. Specifically, it is the maximum and minimum value of the bounding box of the predicted value (vehicle) obtained by Kalman filtering in the previous time step in the trajectory along the i-th direction. i This represents the maximum and minimum values ​​of the vehicle's bounding box in the i-th direction, where i ∈ {t, l, b, r}, and t, l, b, r are the top, left, bottom, and right values, respectively, indicating the maximum and minimum values ​​of the bounding box in the top, left, bottom, and right directions. For example, T t This represents the maximum and minimum values ​​of the bounding box of a vehicle in the trajectory, i.e., the maximum value on the y-axis, for example, T.b This represents the minimum value of the bounding box of a vehicle in the trajectory at the bottom, i.e., the minimum value on the y-axis, and so on.

[0052] Calculate the positional distance between the unmatched trajectory and the unmatched vehicle, perform a second Hungarian matching, and output the successfully matched trajectory-vehicle pair, the unmatched trajectory, and the unmatched vehicle again.

[0053] Step 3.3: Based on the two successfully matched trajectory-vehicle pairs, use Kalman filtering to update and predict the trajectory, forming a new historical trajectory pool. Simultaneously, update the ID list of successfully matched trajectories, adding a new ID to record the trajectory. Unmatched vehicles are considered newly entered vehicles by the camera; initialize a trajectory to record the vehicle, and initialize a local representation ID within a single camera and an ID list for the trajectory (at this time, the ID list records the current ID of the trajectory). For unmatched trajectories, their continuous unmatched time T... lost If the continuous unmatched time exceeds the local buffer time, it will be considered that the vehicle has left the current camera, and the trajectory will be removed from the historical trajectory pool. At the same time, its status will be changed to EXIT and it will no longer participate in the single camera matching in the next moment.

[0054] Step 4: Multi-target vehicle tracking across cameras.

[0055] Repeat steps S1-S3, processing the inputs from other cameras in the same order and performing single-camera multi-target tracking. Except for Cam1, all cameras, after completing single-camera tracking, need to perform cross-camera matching with previous cameras.

[0056] Step 4.1: Capture the current camera (Cam). x Active trajectories from the historical trajectory pool of the x-th camera (where x>1) are used for cross-camera matching. This step first removes single-camera matching results with too small displacement to prevent interference from obstacles that have not moved for a long time. Simultaneously, the previous camera's trajectory is retrieved. x-1 Trajectories that do not exceed the global buffer time (e.g., 110 frames, which can be calibrated based on camera distribution) are considered. The depth appearance feature distance C between the trajectories taken from the two cameras is calculated. dist and with depth appearance feature distance C dist As the cost matrix for Hungarian matching, the output consists of successfully matched trajectory-trajectory pairs and unmatched trajectories.

[0057] Step 4.2: Based on the successfully matched trajectory-trajectory pairs, modify the camera settings. x The latest ID in the list of successfully matched trajectories is used to match the camera's ID. x-1The ID of the track matched in the image must be consistent. Next, select the camera (Cam). x The most frequent ID appearing in the ID list of successfully matched trajectories (if multiple most frequent IDs exist, one is randomly selected or chosen from the top few) is used as the latest ID for that trajectory, making the results more stable and reliable. This method of sharing IDs allows for the identification of the same target from different cameras. For camera Cam x-1 For unmatched trajectories, the consecutive unmatched time is incremented by 1. If the consecutive unmatched time exceeds the global buffer time, the vehicle is considered to have left the tracking range, and the trajectory status is changed to TERMINATE, no longer participating in cross-camera matching in the next time step; for camera Cam... x For unmatched trajectories, the tracking continues with the previous camera. x-2 Matching is performed on trajectories that have not exceeded the global buffer time, and the matching continues forward until the camera (Cam) is reached. x All active trajectories in the data must be successfully matched, or a match with the first camera, Cam1, must be completed. If camera Cam... x If there are still unmatched trajectories after the active trajectory is matched with the first camera Cam1, it indicates that the trajectory is a newly emerging trajectory, and the trajectory is directly retained for matching in the next time step.

[0058] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0059] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A latency-free online multi-target vehicle tracking method based on deep learning, characterized in that, The deep learning-based, latency-free online multi-target vehicle tracking method across cameras includes: Step 1: Detect and crop out vehicle images based on the acquired video frames, encode the vehicle images, and align them with the detection bounding boxes and confidence scores output by the detection team. Step 2: After preprocessing the vehicle image, input it into the shallow fusion branch and the deep fusion branch respectively for parallel multi-scale feature extraction, and then stitch the multi-scale features extracted by the two branches together in the first dimension to obtain the deep appearance features of the vehicle. Step 3, Single-camera multi-target vehicle tracking, including: Step 3.1: Obtain the historical trajectory pool output by the camera in the previous time step. The historical trajectory pool includes active trajectories that were successfully matched in the previous time step and temporarily lost trajectories that were not successfully matched in the previous time step but are still within the local buffer time. Step 3.2: First, Hungarian matching is performed using depth appearance feature distance, with the minimum total distance as the optimization objective. The vehicles in the detection results are matched one-to-one with the trajectories in the historical trajectory pool. Finally, the successfully matched trajectory-vehicle pairs, unmatched trajectories, and unmatched vehicles are output. Then, the positional distance between the unmatched trajectories and unmatched vehicles is calculated, and a second Hungarian matching is performed. The successfully matched trajectory-vehicle pairs, unmatched trajectories, and unmatched vehicles are output again. Step 3.3: Based on the two successfully matched trajectory-vehicle pairs, use Kalman filtering to update and predict the trajectory, forming a new trajectory update historical trajectory pool. At the same time, update the ID list of the successfully matched trajectories and add a new ID to record the trajectory. Unmatched vehicles are considered as newly entered vehicles of the camera. A trajectory is initialized to record the vehicle, and an ID and ID list are initialized for the trajectory. For unmatched trajectories, the continuous unmatched time is incremented by 1. If the continuous unmatched time exceeds the local buffer time, it will be considered that the vehicle has left the current camera, and the trajectory will be removed from the historical trajectory pool. Step 4, multi-target vehicle tracking across cameras, including: Step 4.1: Capture the current camera (Cam). x Active trajectories from the historical trajectory pool, simultaneously captured from the previous camera. x-1 For trajectories that do not exceed the global buffer time, calculate the depth appearance feature distance between the trajectories taken from the two cameras, and use the depth appearance feature distance as the cost matrix for Hungarian matching, outputting the successfully matched trajectory-trajectory pairs and the unmatched trajectories; Step 4.2: Based on the successfully matched trajectory-trajectory pairs, modify the camera settings. x The latest ID in the list of successfully matched trajectories is used to match the camera's ID. x-1 The ID of the track matched in the image must be consistent. Next, select the camera (Cam). x The most frequently occurring ID in the list of successfully matched track IDs is used as the latest ID for that track; for camera Cam x-1 For unmatched trajectories, the duration of consecutive unmatched events is incremented by 1. If the duration of consecutive unmatched events exceeds the global buffer time, the vehicle is considered to have left the tracking range, its status is changed, and it no longer participates in cross-camera matching at the next time step. For cameras... x Unmatched trajectories continue to be tracked against the previous camera. x-2 Matching is performed on trajectories that have not exceeded the global buffer time, and the matching continues forward until the camera (Cam) is reached. x All active trajectories were successfully matched or until a match with the first camera, Cam1, was completed.

2. The latency-free online multi-target vehicle tracking method based on deep learning according to claim 1, characterized in that, The step of detecting and cropping vehicle images from acquired video frames, encoding the vehicle images, and aligning them with the detection bounding boxes and confidence scores output includes: Take camera x Current video frame I t The current video frame I is output by the moving window attention detector. t The vehicle detection box D that appears in the image N And confidence score C N Delete confidence score C N Low-quality detected targets below the confidence threshold are then processed according to the detection bounding box range within the current video frame I. t Cropping was performed to obtain vehicle images of different sizes. N For vehicle image X N After encoding, it is aligned with the corresponding detection box and confidence score.

3. The latency-free online multi-target vehicle tracking method based on deep learning according to claim 1, characterized in that, The shallow fusion branch uses a deep residual network ResNet-50. In each downsampling feature, the channel dimension is deepened while the width and height dimensions are reduced, and finally the shallow fusion feature output by this branch is obtained.

4. The latency-free online multi-target vehicle tracking method based on deep learning according to claim 1, characterized in that, The deep fusion branch uses the MSINet network obtained by searching the interaction module based on neural network architecture search; Before each downsampling, the input feature map f is copied and denoted as feature map f1 and f2 respectively. Feature map f1 is processed by a 1×1 convolution and three concatenated 3×3 convolutional layers to obtain feature map f1′, while feature map f2 is processed by a 1×1 convolution and a 3×3 convolutional layer to obtain feature map f2′. The receptive field size of feature map f1′ is three times that of feature map f2′. Then, the MSINet network selects the corresponding interaction module according to the search results, and swaps, weights, performs attention operations, or keeps feature map f1′ and feature map f2′ unchanged before inputting them into the next stage. The output of the previous stage is used as new feature maps f1 and f2, and the same operation as the previous stage is performed on the new feature maps f1 and f2 to obtain new feature maps f1′ and f2′. Finally, the new feature maps f1′ and f2′ are added together to obtain feature map f′. Feature map f is added together with feature map f′ as input for downsampling to obtain downsampled feature map f″. Feature map f″ is then input into a fully connected layer to obtain the deep fusion feature output by this branch.

5. The latency-free online multi-target vehicle tracking method based on deep learning according to claim 1, characterized in that, Each trajectory in the historical trajectory pool represents a vehicle target. It records all detection box information of the vehicle in the historical frame, the continuous non-matching time, the depth appearance features of the vehicle, an ID, and a list of IDs. The ID list records whether the ID has changed at each time point.