Vehicle cross-mirror tracking method and device, sensing equipment, medium and product

Through the adaptive spatio-temporal dynamic search mechanism and condition generation algorithm module, combined with the vehicle front and rear characteristic data sets, the shortcomings of the vehicle cross-mirror tracking algorithm in real-time and robustness are solved, and high-accuracy vehicle re-identification and tracking are achieved.

CN118570746AActive Publication Date: 2024-08-30TSINGHUA UNIVERSITY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410655542.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-30
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

Existing vehicle cross-mirror tracking algorithms have deficiencies in real-time performance, robustness, and matching accuracy. In particular, problems such as ID exchange and missed detection are prone to occur in multi-target tracking and complex traffic scenarios.

Method used

The adaptive spatio-temporal dynamic search mechanism and condition generation algorithm module are used, combined with the dynamic management of vehicle front and rear feature data sets and candidate target information storage lists, to generate vehicle appearance features from different angles through convolutional neural networks and conditional generation adversarial networks to achieve feature matching. and target tracking.

Benefits of technology

It improves the accuracy and real-time performance of vehicle re-identification, alleviates the problems of weak robustness and low matching accuracy, enhances the continuity and robustness of cross-mirror tracking, and is suitable for complex traffic environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570746A
    Figure CN118570746A
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent traffic, in particular to a vehicle cross-mirror tracking method and device, sensing equipment, a medium and a product, and the method comprises the steps: obtaining front and back view angle images of at least one target vehicle; inputting the front view angle image into a first feature extraction model, extracting a front view angle feature vector by the first feature extraction model, generating an initial back view angle feature vector, and merging to obtain a candidate feature vector; inputting the back view angle image into a second feature extraction model, wherein the second feature extraction model outputs a back view angle feature vector of each target vehicle to obtain a target feature vector; and storing the identifier of each target vehicle and the candidate visual angle feature vector to a list to be selected, and performing similarity matching according to the target feature vector and the candidate feature vector, thereby endowing the target vehicle subjected to cross-mirror tracking. Therefore, the long-standing problems of large intra-class difference and small inter-class difference of vehicle appearance characteristics in vehicle re-identification in a mirror-crossing tracking task are relieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent transportation technology, and in particular to a vehicle cross-mirror tracking method, device, sensing equipment, medium and product. Background Art

[0002] Tracking algorithms are an important research direction in the field of computer vision and play a fundamental and important role in various perception task application scenarios. As an important extension of traditional tracking algorithms, the core of cross-camera tracking algorithms is to achieve target re-identification between multiple camera fields of view, ensure that the same target has a unified ID (Identifier) ​​under different cameras, and achieve continuous and seamless tracking when the target passes through different camera fields of view.

[0003] In the related technology, there are mainly the following methods for cross-camera tracking algorithms: although the method based on target feature matching can achieve accurate target recognition, it is highly dependent on high-definition images and a large amount of computing resources, especially when the vehicle features are greatly different under multiple different perspectives, its effect will be subject to certain limitations; the method based on spatial trajectory relationship matching is relatively simple and consumes less resources, but its accuracy is highly dependent on the accuracy of multi-target tracking trajectories and the accuracy of traffic speed measurement. Therefore, when the target is occluded or the number of targets is large, it is easy to cause problems such as ID exchange and missed detection and lost ID; the method combining feature matching with trajectory matching aims to make up for the shortcomings of the first two, and enhances the credibility of matching by fusing target features and trajectory information, but it still has the limitations of the aforementioned methods, and its robustness and applicability need to be improved; the matching method that incorporates time relationships further improves the robustness and applicability of the algorithm on the basis of the first three, but this method requires advance measurement and planning of specific road scenes, so it lacks universality and is mostly suitable for offline scenarios to improve the accuracy of re-identification. Summary of the invention

[0004] The present application provides a vehicle cross-mirror tracking method, apparatus, sensing device, medium and product to alleviate the real-time problems, weak robustness and low matching accuracy of cross-mirror tracking.

[0005] A first aspect of the present application provides a vehicle cross-mirror tracking method, which is applied to a road-side intelligent sensing device. The road-side intelligent sensing device is provided with a first camera and a second camera, the first camera collects a front view image of the vehicle, and the second camera collects a rear view image of the vehicle, wherein the method comprises the following steps: obtaining the front view image and the rear view image of at least one target vehicle; inputting the front view image into a first feature extraction model, the first feature extraction model outputting a front view feature vector of each target vehicle, wherein the first feature extraction model extracts an initial front view feature vector of the front view image and generates an initial rear view feature vector based on the front view image, and merges the initial front view feature vector and the initial rear view feature vector to obtain a candidate feature vector; inputting the rear view image into a second feature extraction model, the second feature extraction model outputting a target rear view feature vector of each target vehicle, and copying the target rear view feature vector for merging to obtain a target feature vector; storing the identifier of each target vehicle and the candidate feature vector in a candidate list, performing similarity matching between the target feature vector and the candidate feature vector, screening the identifier corresponding to the candidate feature vector with the highest similarity and assigning it to the target vehicle for cross-mirror tracking.

[0006] Optionally, the first feature extraction model includes a first convolutional neural network model, a second convolutional neural network model, and a conditional generative adversarial network, wherein the front perspective image is respectively input into the first convolutional neural network model and the conditional generative adversarial network, the first convolutional neural network model outputs the initial front perspective feature vector, the conditional generative adversarial network outputs the initial back perspective image corresponding to the front perspective image, and the back perspective image is input into the first convolutional neural network to output the initial back perspective feature vector, the initial front perspective feature vector and the initial back perspective feature vector are merged to obtain the candidate feature vector; the initial back perspective image is input into the second convolutional neural network model, the second convolutional neural network model outputs the initial back perspective feature vector, the target back perspective feature vector is copied and merged to obtain the target feature vector.

[0007] Optionally, before inputting the front perspective image into the first feature extraction model, it also includes: obtaining an image dataset of front and rear feature pairs of the vehicle, wherein the image dataset includes the front perspective image and the rear perspective image of the vehicle; and using the front and rear feature datasets to train the conditional generative adversarial network.

[0008] Optionally, when acquiring an image dataset of front and rear feature pairs of a vehicle, acquisition parameters of the first camera and the second camera are fixed.

[0009] Optionally, obtaining the front perspective image and the rear perspective image of at least one target vehicle includes: setting respective acquisition areas of the first camera and the second camera; obtaining a first acquisition image of the first camera within the acquisition area of ​​the first camera, and a second acquisition image of the second camera within the acquisition area of ​​the second camera; identifying the first acquisition image to obtain the front perspective image of the at least one target vehicle, and identifying the second acquisition image to obtain the rear perspective image of the at least one target vehicle.

[0010] Optionally, there is a capture blind spot between the first camera and the second camera, and the acquiring of the front perspective image and the rear perspective image of at least one target vehicle includes: determining the traffic flow density according to the number of vehicles entering the capture blind spot, and determining the spatial search range of each target vehicle based on the traffic flow density; determining the traffic flow speed based on the image captured by the first camera, and determining the time search range of each target vehicle based on the traffic flow speed; and controlling the first camera and the second camera to capture images within the spatial search range and the time search range.

[0011] A second aspect of the present application provides a vehicle cross-mirror tracking device, which is applied to a road-side intelligent sensing device, wherein a first camera and a second camera are provided on the road-side intelligent sensing device, wherein the first camera collects a front-view image of the vehicle, and the second camera collects a rear-view image of the vehicle, wherein the device comprises: an acquisition module, for acquiring the front-view image and the rear-view image of at least one target vehicle; a first processing module, for inputting the front-view image into a first feature extraction model, wherein the first feature extraction model outputs a front-view feature vector of each target vehicle, wherein the first feature extraction model extracts an initial front-view feature vector of the front-view image and a rear-view feature vector based on the front-view image. The first processing module is used to input the back view image into a second feature extraction model, and the second feature extraction model outputs the target back view feature vector of each target vehicle, and copies the target back view feature vector for merging to obtain a target feature vector; the second processing module is used to store the identification and candidate feature vector of each target vehicle into a candidate list, perform similarity matching between the target feature vector and the candidate feature vector, select the identification corresponding to the target feature vector and the candidate feature vector with the highest similarity, and assign it to the target vehicle for cross-mirror tracking.

[0012] The third aspect of the present application provides a road-side intelligent sensing device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the program to implement the vehicle cross-mirror tracking method as described in the above embodiment.

[0013] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the vehicle cross-mirror tracking method as described in the above embodiment.

[0014] The fifth aspect of the present application provides a computer program product, which, when the computer program or instructions are executed, is used to implement the vehicle cross-mirror tracking method as described in the above embodiment.

[0015] Therefore, this application includes the following beneficial effects:

[0016] The embodiment of the present application introduces an adaptive spatiotemporal dynamic search mechanism, which intelligently adjusts the search range according to the traffic flow density; uses a conditional generation algorithm module to generate the appearance features of the vehicle at different angles, alleviating the feature matching problem; at the same time, a special vehicle front and rear feature data set is constructed; through the candidate target information storage list and its dynamic management mechanism, the candidate vehicle information is maintained in real time, thereby improving the accuracy and real-time performance of vehicle re-identification. As a result, technical problems such as weak robustness of cross-mirror tracking and low matching accuracy are alleviated.

[0017] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0019] Figure 1 Architectural diagram of embedded condition generation algorithm provided for related technologies;

[0020] Figure 2 A flow chart of a vehicle cross-mirror tracking method provided according to an embodiment of the present application;

[0021] Figure 3 is a flow chart of a vehicle cross-mirror tracking method according to one embodiment of the present application;

[0022] Figure 4 is a flowchart of an algorithm submodule according to an embodiment of the present application;

[0023] Figure 5 is a block diagram of a cross-mirror tracking device for a vehicle according to an embodiment of the present application;

[0024] Figure 6 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0026] Tracking algorithms occupy an important position in the field of computer vision and are the basic support for various perception tasks. Among them, the cross-camera tracking algorithm is an important application extension of the traditional tracking algorithm. Its core task is to achieve target re-identification between multiple camera fields of view, and assign the target ID under one lens to the same target to be tracked under other lenses. Its task purpose is to identify and track the same target in multiple cameras, the same vehicle target has the same ID under different lenses, and complete continuous tracking when the target passes through different camera fields of view.

[0027] There are several main methods for cross-camera tracking algorithms: one is to re-identify the target based on average feature matching of the target, or through multi-granularity and multi-level feature fusion and matching. The disadvantage is that very high-definition original image data is required to complete multi-level fine-grained matching, and it consumes high computing resources. In the field of vehicle re-identification, the difference in features within the vehicle class is much greater than that of pedestrians, which makes the method of feature matching based on multi-level fine-grained or average features not feasible.

[0028] The second is a matching method based on spatial trajectory relationships. The multi-target tracking trajectory between the two lenses is drawn, and the trajectory matching is performed according to the spatial relationship between the two lenses, thereby completing the target ID matching. This method is relatively simple and can complete target re-identification with very little computing resources. The disadvantage is that it relies too much on the accuracy of the multi-target tracking trajectory under the field of view of each lens. When there are too many targets and they occlude each other, problems such as ID exchange and missed ID loss are prone to occur. The cross-lens re-identification effect based on tracking trajectories with too many errors is usually poor, and it also needs to rely on the spatial relationship and deployment alignment between the lenses. It is impossible to reliably complete multi-target re-identification without overlapping domains.

[0029] The third method combines the previous two methods. While matching the multi-target trajectories, the similarity of the multi-target features between multiple lenses is calculated for feature matching, and finally the two are fused and matched. This method can make up for the shortcomings of the above two methods, adding the target features of each trajectory for matching, thereby significantly enhancing the credibility of trajectory matching. However, it still has all the shortcomings of method 2 and is not very robust and applicable.

[0030] Fourth, on the basis of the third method, the temporal relationship calculation is added, that is, the target feature + spatial relationship + temporal relationship. Before matching, the temporal and spatial relationship information will be used for screening, and some targets will be filtered out to improve the matching success rate. Then, the spatial relationship, temporal relationship and feature similarity will be integrated to complete the target cross-camera re-identification and tracking. This method is better than the third method in terms of robustness and applicability. This solution is the mainstream method for the international MTMCT (Multi Target Multi Camera Tracking) cross-camera tracking competition scene, but it requires advance measurement and planning for each specific road scene, and is not universal. It can only be used as an offline prior to improve the accuracy of re-identification.

[0031] The following describes the vehicle cross-mirror tracking method, apparatus, sensing device, medium and product of the embodiments of the present application with reference to the accompanying drawings. In view of the problems mentioned in the above background technology that the existing vehicle re-identification algorithm relies on a priori methods, the workload of offline data sets is large and it is difficult to achieve real-time performance, the present application provides a vehicle cross-mirror tracking method, in which an adaptive spatiotemporal dynamic search mechanism is introduced to intelligently adjust the search range according to the traffic flow density; the conditional generation algorithm module is used to directionally generate the appearance features of the vehicle at different angles, thereby alleviating the problem of feature matching; at the same time, a special vehicle front and rear feature data set is constructed; through the candidate target information storage list and its dynamic management mechanism, the candidate vehicle information is maintained in real time, thereby improving the accuracy and real-time performance of vehicle re-identification. As a result, the real-time problem, weak robustness and low matching accuracy of cross-mirror tracking are alleviated.

[0032] Before the embodiment of the present application specifically describes the vehicle cross-mirror tracking method, it is necessary to understand the conditional generative adversarial network (cGANs). Specifically, cGANs introduces conditional inputs into the generator and the discriminator, and uses the Pix2PixHD algorithm to enable the generator to generate output results that are more in line with expectations based on specific conditions. Figure 1As shown in the figure, a coarse-to-fine strategy for generating Pix2PixHD is presented, in which the global generator G1 works in conjunction with the local enhancement network G2. In the residual group of G1, its input information is composed of the output of the convolution front end of G1 and the deconvolution back end of G2, thereby cleverly integrating global information with local detail information to generate a more refined image. In particular, this conditional generative adversarial network effectively guides the output of the generator by introducing conditions, such as RGB images, as input. In the training phase, a multi-scale discriminator is used, that is, three discriminators {D1, D2, D3} with similar structures are used to discriminate images of different scales. This design not only saves storage space and alleviates the overfitting problem, but also improves the discrimination ability by expanding the receptive field. At the same time, the discriminator at the finest scale can promote the generator to produce finer details, effectively eliminating the common repeated details in the generated image, thereby achieving accurate distinction between real and synthetic images at high resolution.

[0033] In summary, by embedding the conditional generative network into the ReID neural network model, it can generate vehicle image features at corresponding angles. Through targeted training of the conditional generative adversarial network with a self-made data set, the network model can generate feature perspective images of the rear of the vehicle by inputting the perspective images of the vehicle's head features, thereby overcoming the difficulty of re-identifying the vehicle through appearance features but with low accuracy in cross-camera tracking.

[0034] Specifically, Figure 2 A schematic flow chart of a vehicle cross-mirror tracking method provided in an embodiment of the present application.

[0035] like Figure 2 As shown, the vehicle cross-mirror tracking method is applied to a road-side intelligent sensing device, on which a first camera and a second camera are arranged, the first camera collects a front view image of the vehicle, and the second camera collects a rear view image of the vehicle, wherein the method comprises the following steps:

[0036] In step S101, a front view image and a rear view image of at least one target vehicle are acquired.

[0037] Among them, the front perspective image can be an image of the scene in front of the vehicle captured by a camera in front of the vehicle, and the rear perspective image can be an image of the scene behind the vehicle captured by a camera behind the vehicle.

[0038] It can be understood that the embodiment of the present application obtains the front perspective image and the rear perspective image of the target vehicle, which provides an important basis and condition for subsequent vehicle tracking. Among them, the front perspective image can reflect the road conditions, traffic signs, other vehicles and pedestrians in front of the vehicle, etc., which helps to accurately judge the vehicle's driving status and surrounding environment. The rear perspective image can show the traffic conditions behind the vehicle and ensure driving safety.

[0039] In an embodiment of the present application, obtaining a front view image and a rear view image of at least one target vehicle includes: setting respective acquisition areas of a first camera and a second camera; obtaining a first acquisition image of the first camera within the acquisition area of ​​the first camera, and a second acquisition image of the second camera within the acquisition area of ​​the second camera; identifying the first acquisition image to obtain a front view image of the at least one target vehicle, and identifying the second acquisition image to obtain a rear view image of the at least one target vehicle.

[0040] Among them, the first camera can be responsible for capturing the front perspective image of the vehicle, and the second camera can be responsible for capturing the rear perspective image of the vehicle. The capture area can be the spatial range in which the camera can clearly capture and identify the target object. The first captured image can be an image captured by the first camera within its capture area, which may include vehicles, pedestrians, road signs and other elements. The second captured image can be an image captured by the second camera within its capture area, which may mainly show the rear perspective of the vehicle. The target vehicle may be a specific vehicle that needs to be tracked or identified.

[0041] It can be understood that the embodiment of the present application, by setting the collection areas of the first camera and the second camera, and acquiring and identifying the corresponding front and rear perspective images, can ensure a more comprehensive monitoring range, which can not only capture the traffic conditions in front of the vehicle, but also observe the dynamics behind the vehicle, thereby realizing all-round monitoring of the vehicle's driving status.

[0042] Specifically, Figure 3As shown, Yolov8 combined with DeepOcsort's advanced tracking solution is used in each of the two single-mirror fields of view to alleviate the problems of ID loss and update caused by missed detection and false detection, and ID exchange caused by the target being too close in the single-mirror tracking process. In order to give sufficient computing time to the cross-mirror re-identification task, a "collection zone A" area is set in the road area in the front video, near the blind spot of the perception device. When the center of the detection frame of the target vehicle passes through the "collection zone A", the corresponding vehicle target image and vehicle ID will be collected and sent to the cross-mirror re-identification task. Similarly, another "collection zone B" is set in the rear-view tracking task. When the vehicle rushes out of the blind spot and enters the "collection zone B" in the rear view, the vehicle image detected by the corresponding target will be collected and provided to the cross-mirror re-identification task for corresponding calculation.

[0043] In an embodiment of the present application, there is a capture blind spot between the first camera and the second camera, and a front view image and a rear view image of at least one target vehicle are obtained, including: determining the traffic flow density according to the number of vehicles entering the capture blind spot, and determining the spatial search range of each target vehicle based on the traffic flow density; determining the traffic flow speed based on the image captured by the first camera, and determining the time search range of each target vehicle based on the traffic flow speed; controlling the first camera and the second camera to capture images within the spatial search range and the time search range.

[0044] The traffic flow density can be the number of vehicles at a certain moment in a lane or in a direction on a unit length section of road. The spatial search range can be the spatial area where the target vehicle may appear determined by the traffic flow density. The temporal search range can be the time period when the target vehicle may pass through a certain area determined based on the traffic flow speed.

[0045] It is understandable that the embodiment of the present application determines the traffic flow density by comprehensively analyzing the number of vehicles entering the acquisition blind spot, and sets the spatial search range of the target vehicle accordingly; at the same time, the traffic flow speed is calculated using the image collected by the first camera, thereby dynamically adjusting the matching search range in space and time. Within the limited space and time range, the image collection of the first camera and the second camera is accurately controlled, thereby improving the collection efficiency and accuracy.

[0046] For example, in a four-lane scenario, when four or more vehicles are in the blind spot, it can be considered that the blind spot is in a congested traffic state. At this time, the driver tends to stay in the lane, and the search for candidate targets can be limited to the pixel coordinate range of a single lane width; when less than four vehicles are in the blind spot, it can be considered that the blind spot is in a smooth traffic state. At this time, it can be considered that the driver may have the possibility of changing lanes left or right, and the search for candidate targets can be limited to the pixel coordinate range of one and a half lane widths. On this basis, the time range needs to be further filtered. First, when the vehicle is about to enter the blind spot in the field of view of the front camera, the speed of each vehicle target is roughly calculated by visual methods. The default vehicle moves at an approximately uniform speed within the blind spot range of no more than 15m. The estimated passing time can be calculated by the speed of each vehicle. According to the vehicle's passing time budget, the search range in time can be dynamically adjusted, which greatly improves the accuracy, robustness and efficiency of vehicle ID matching.

[0047] In step S102, the front perspective image is input into the first feature extraction model, and the first feature extraction model outputs the front perspective feature vector of each target vehicle, wherein the first feature extraction model extracts the initial front perspective feature vector of the front perspective image and generates an initial rear perspective feature vector based on the front perspective image, and merges the initial front perspective feature vector and the initial rear perspective feature vector to obtain a candidate feature vector.

[0048] Among them, the first feature extraction model can be a deep learning model specifically used to extract features from the front view image, the initial front view feature vector can be an unprocessed feature vector extracted directly from the front view image by the first feature extraction model, the initial back view feature vector can be generated from the front view image, simulating or predicting the features of the back view, and the target front view feature vector can be a feature vector obtained after feature fusion by the first feature extraction model.

[0049] It can be understood that the embodiment of the present application inputs the frontal perspective image into the first feature extraction model, and improves the comprehensiveness and representativeness of the feature extraction by extracting and fusing the feature vectors in the front and rear directions, which helps to improve the accuracy and stability of cross-camera tracking and adapt to complex traffic environments.

[0050] It should be noted that the Pix2PixHD algorithm is used to generate the corresponding initial rear-view image from the front-view image, and the first feature extraction model is used to extract the feature vector of the generated rear-view image.

[0051] In an embodiment of the present application, the first feature extraction model includes a first convolutional neural network model, a second convolutional neural network model, a conditional generative adversarial network and a fusion network, wherein the front view image is respectively input into the first convolutional neural network model and the conditional generative adversarial network, the first convolutional neural network model outputs an initial front view feature vector, the conditional generative adversarial network outputs an initial back view image corresponding to the front view image, and the back view image is input into the first convolutional neural network to output the initial back view feature vector, the initial front view feature vector and the initial back view feature vector are merged to obtain a candidate feature vector; the initial back view image is input into the second convolutional neural network model, the second convolutional neural network model outputs the initial back view feature vector, the target back view feature vector is copied and merged to obtain the target feature vector.

[0052] Among them, the first convolutional neural network model can be a special neural network, mainly used to process image data, the second convolutional neural network model can process the initial back side view image generated by the conditional generative adversarial network and output the initial back side view feature vector, and the fusion network can be used to integrate information from different sources or different processing stages.

[0053] It can be understood that the first feature extraction model in the embodiment of the present application realizes the deep processing of the front view image by comprehensively using the first convolutional neural network model, the second convolutional neural network model, the conditional generative adversarial network and the fusion network, and not only extracts the initial front view feature vector from the front view image, but also generates the initial back view image through the conditional generative adversarial network, and extracts the initial back view feature vector from it. The two feature vectors are merged through the fusion network to obtain a candidate feature vector. At the same time, the generated back view image is input into the second convolutional neural network to obtain an enhanced target feature vector, which effectively combines the image information of different perspectives and improves the accuracy and robustness of vehicle cross-mirror tracking.

[0054] Specifically, Figure 4As shown, in the field of view under the lens of Camera_A, the image of the target vehicle is obtained according to the size of the target detection frame in the set area, and then a target image of size 128*128 is obtained by unifying the size, and finally it is expanded to a four-dimensional tensor of size (1, 3, 128, 128). The processed tensors are sent to the pre-trained convolutional neural network model for feature extraction, and the tensors are sent to the generation network to generate the angle image of the rear of the vehicle, and then the image of the rear of the vehicle is sent to the same convolutional neural network model to extract features. Finally, the original forward-looking feature vector a1 of 2048*1 dimension and the generated rear-looking feature vector a2 of 2048*1 dimension are obtained respectively, and then the feature vectors a1 and a2 are spliced ​​according to the first dimension to obtain a 2048*1-dimensional forward-looking feature vector A, and then the feature vector A of the target and the corresponding ID are sent to the candidate target information storage list;

[0055] In the field of view under the camera_B lens, the vehicle target image that appears in the set area near the bottom of the field of view is obtained, and a four-dimensional tensor of (1, 3, 128, 128) dimensions is obtained through preprocessing, and sent to the pre-trained convolutional neural network model to obtain the feature vector B of the same dimension 2048*1. Then, the cosine similarity of the rear-view feature vector B and the candidate feature vectors Ai in the candidate list that have been filtered by the adaptive spatiotemporal dynamic range search mechanism is calculated respectively, and the pair of feature vectors Ai-B with the highest cosine similarity is selected, and the ID corresponding to Ai is assigned to the tracking target corresponding to the rear-view feature vector B, thereby completing the cross-lens tracking task. Similarly, if there are j vehicle targets in a specified area in a frame of the forward-looking data, there are i*j cosine distance calculation tasks.

[0056] Therefore, the target image and the corresponding tracking ID collected in the forward tracking algorithm are received, and the target image is preprocessed into a standard unified size and format, and sent to the conditional generation network to obtain the vehicle feature image from the back view. Then the original front view image and the generated back view image are simultaneously sent to the pre-trained convolutional neural network model to extract the feature vectors of the front view and the back view, and the final feature vector is obtained by weighted integration, and then the final feature vector and the corresponding ID are sent to the second module.

[0057] In an embodiment of the present application, before the front perspective image is input into the first feature extraction model, it also includes: obtaining an image dataset of front and rear feature pairs of the vehicle, wherein the image dataset includes a front perspective image and a rear perspective image of the vehicle; and training a conditional generative adversarial network using the front and rear feature datasets.

[0058] It can be understood that the embodiment of the present application effectively enriches the vehicle feature information and improves the quality of the generated image by collecting and organizing the image data set of the front and rear feature pairs of the vehicle, and using the data set to train the conditional generative adversarial network, through an in-depth training process, the conditional generative adversarial network initially grasps the feature change rules and directional mapping capabilities of the vehicle at different perspectives, thereby reflecting its adaptability in complex environments and effectively improving its robustness.

[0059] Specifically, in order to enable the generation module in the algorithm to have the ability to generate the corresponding front and rear features of the vehicle, a large-scale front and rear feature pair image dataset of the vehicle was established. The data engineering links such as data collection, data preprocessing, sorting and storage were completed.

[0060] By referring to national traffic road facility standards and a large number of field experiments, adhering to the principles of practicality, applicability, coverage performance and cost trade-off, the relevant parameters of data collection were determined, such as the position, height, pitch angle of the collection camera and the trigger position for collecting vehicle image information.

[0061] The acquisition position is set to be directly above the middle of the road, at a height of 7m and a pitch angle of 23 degrees. By fixing the acquisition parameters in advance, the front and rear feature image pairs of the vehicle at fixed angles can be obtained. The purpose of this is to improve the convergence speed and inference accuracy of the generated network training. In order to accurately and stably achieve the above experimental parameters, two drones are used to collect data in real traffic road scenes, and the collected video data are subjected to time alignment, frame splitting, target detection cropping, data pairing, numbering, quality inspection, packaging and other steps to complete the construction of the vehicle front and rear feature generation data set. This dataset covers the vast majority of mainstream vehicle models on Beijing's traffic roads to support the accuracy and generalization of the generated model in real application scenarios.

[0062] It should be noted that when acquiring the image dataset of the front and rear feature pairs of the vehicle, the acquisition parameters of the first camera and the second camera are fixed to ensure that the captured front view images and rear view images are consistent in key parameters such as resolution, color, and brightness, thereby improving the quality and reliability of the dataset. By fixing the acquisition parameters, the image deviation caused by differences in camera settings is reduced, allowing the trained conditional generative adversarial network to more accurately learn the features of the vehicle at different perspectives.

[0063] In step S103, the rear view image is input into the second feature extraction model, the second feature extraction model outputs a target rear view feature vector of each target vehicle, and copies the target rear view feature vector for merging to obtain a target feature vector.

[0064] Among them, the second feature extraction model can be used to extract features from the back side view image and generate a target back side view feature vector.

[0065] It can be understood that the embodiment of the present application significantly enhances the integrity of vehicle feature extraction by inputting the rear view image into the second feature extraction model to extract the target rear view feature vector of the target vehicle. By merging the rear view feature vector, the vehicle feature representation is further enriched, and the accuracy and efficiency of vehicle matching are significantly improved in cross-camera tracking, thereby greatly optimizing the overall tracking performance.

[0066] During vehicle driving, especially when the vehicle direction changes or encounters occlusion, the rear view feature vector can provide valuable auxiliary information and effectively improve the robustness of tracking. At the same time, the introduction of the rear view feature vector not only enriches the feature representation of the target vehicle, but also significantly improves the accuracy and efficiency of vehicle matching under different camera perspectives during cross-camera tracking, thereby greatly optimizing the overall performance of cross-camera tracking.

[0067] Specifically, the embodiment of the present application designs a candidate target information storage list and its dynamic management mechanism, which is responsible for receiving the second feature vector and storing the second feature vectors, corresponding numbers and pixel coordinates of multiple target vehicles in chronological order. The candidate target information storage list is used to store and record the vehicle tracking target information that is about to leave the field of view and enter the blind spot in the second field of view. Each target is recorded in the [ID, X, Y, Feature_Vector, Timestamp, Velocity] data structure and written to a json file to support the re-identification task of the second shot. The dynamic management mechanism of the list is to maintain the update of the list. When the tracking target that appears in the second shot extracts the ID with the highest matching similarity in the list, or the ID that fails to be extracted and stays in the list for too long, the corresponding target information in the list will be automatically deleted, thereby reducing the error rate of re-identification matching.

[0068] In step S104, the identification and candidate feature vector of each target vehicle are stored in a candidate list, and similarity matching is performed between the target feature vector and the candidate feature vector, and the identification corresponding to the target feature vector and the candidate feature vector with the highest similarity is selected and assigned to the target vehicle for cross-mirror tracking.

[0069] Among them, the candidate list can be used to store the identification of each target vehicle and their target frontal perspective feature vectors, and cross-camera tracking is a technology that can continuously track the same target vehicle between multiple camera perspectives.

[0070] It can be understood that the embodiment of the present application achieves efficient and accurate cross-mirror tracking by storing the identification and candidate feature vectors of each target vehicle in a candidate list, using a similarity matching algorithm to compare the target feature vector with the candidate feature vector, and finally selecting the vehicle identification corresponding to the candidate feature vector with the highest similarity for cross-mirror tracking, significantly enhancing the continuity and robustness of tracking, and effectively tracking even when the vehicle direction changes or encounters occlusion. At the same time, by directly assigning the identification in the candidate list of tracked vehicles, the tracking process is simplified and the system efficiency is improved.

[0071] Specifically, the target vehicle image collected by the "trigger acquisition method" in Camera_B is preprocessed into a standard unified 128*128 size and format, and sent to the pre-trained image feature extraction module to obtain the rear image feature vector. The upstream adaptive spatiotemporal dynamic search mechanism is used to filter out most of the candidate targets that are not suitable in time and space distance. Then, the feature vector B of the back view is respectively calculated by cosine similarity with the feature vectors Ai in the above-mentioned filtered multiple Camera_A. For the vector pair with the highest similarity, the ID corresponding to the feature vector Ai will be assigned to the target to which the vector B belongs, and the multi-target tracking task will be carried out in the rear view of Camera_B, thereby completing the cross-camera tracking task.

[0072] According to the vehicle cross-mirror tracking method proposed in the embodiment of the present application, an adaptive spatiotemporal dynamic search mechanism is introduced to intelligently adjust the search range according to the traffic flow density; the conditional generation algorithm module is used to directionally generate the appearance features of the vehicle at different angles, alleviating the feature matching problem; at the same time, a special vehicle front and rear feature data set is constructed; through the candidate target information storage list and its dynamic management mechanism, the candidate vehicle information is maintained in real time, thereby improving the accuracy and real-time performance of vehicle re-identification. As a result, the real-time problem, weak robustness and low matching accuracy of cross-mirror tracking are alleviated.

[0073] In order to facilitate those skilled in the art to more clearly understand the vehicle cross-mirror tracking method of the embodiment of the present application, the following is combined with Figure 4 The detailed description is as follows:

[0074] First, a section of the road near the blind spot in the field of view of Camera_A is set as "Snapshot Zone A", which is displayed as Area A. When the target vehicle enters the range of Snapshot Zone A, it will trigger the collection of the target's ID, the pixel coordinates of the center point at the bottom of the tracking frame, and the target image of 128*128 size. The target image is first sent to the feature extraction module to obtain a fixed-dimensional feature vector, and is recorded in the json file in the form of structured data with the ID and pixel coordinate information. When the vehicle exits the blind spot under the roadside sensing device, "Snapshot Zone B" is triggered, which is displayed as Area B. Camera_B collects the target-level image of the vehicle. Through steps such as feature extraction, dynamic spatiotemporal filtering, and cosine similarity calculation, the ID with the highest similarity is assigned to the vehicle target that just appeared in Snapshot Zone B, and the target information corresponding to the ID is deleted from the list. In addition, if the ID remains in the list for a period of time that reaches the set threshold, it will also be deleted.

[0075] In summary, the embodiment of the present application realizes cross-mirror vehicle tracking without overlapping domains on a single-node roadside device, and improves the perception range through cameras in the front and rear directions. The feature similarity calculation is performed using the front and rear angle appearance of the vehicle, which alleviates the feature spacing problem caused by the angle difference of the vehicle. A two-stage tracking algorithm is used to process video data, and a conditional generation algorithm is introduced to generate vehicle tail features, which effectively alleviates the problem of vehicle re-identification. At the same time, the adaptive dynamic search mechanism improves the accuracy of target filtering and ensures the real-time performance of the algorithm. Compared with the prior art, this embodiment does not require a large amount of offline data sets and spatiotemporal prior work, and is more suitable for real-time roadside perception applications.

[0076] Next, the vehicle cross-mirror tracking device proposed in accordance with the embodiment of the present application will be described with reference to the accompanying drawings.

[0077] Figure 5 It is a block diagram of a vehicle cross-mirror tracking device according to an embodiment of the present application.

[0078] like Figure 5 As shown, the vehicle cross-mirror tracking device 10 is applied to a road-side intelligent sensing device, on which a first camera and a second camera are arranged. The first camera collects the front view image of the vehicle, and the second camera collects the rear view image of the vehicle. The vehicle cross-mirror tracking device 10 includes: an acquisition module 100, a first processing module 200, a second processing module 300 and a target matching module 400.

[0079] Among them, the acquisition module 100 is used to acquire the front view image and the rear view image of at least one target vehicle; the first processing module 200 is used to input the front view image into the first feature extraction model, and the first feature extraction model outputs the front view feature vector of each target vehicle, wherein the first feature extraction model extracts the initial front view feature vector of the front view image and generates the initial rear view feature vector based on the front view image, and merges the initial front view feature vector and the initial rear view feature vector to obtain a candidate feature vector; the second processing module 300 is used to input the rear view image into the second feature extraction model, and the second feature extraction model outputs the target rear view feature vector of each target vehicle, and copies the target rear view feature vector for merging to obtain the target feature vector; the target matching module 400 is used to store the identification and candidate feature vector of each target vehicle into a candidate list, perform similarity matching based on the target feature vector and the candidate feature vector, screen the identification corresponding to the target feature vector and the candidate feature vector with the highest similarity, and assign it to the target vehicle for cross-mirror tracking.

[0080] It should be noted that the aforementioned explanation of the vehicle cross-mirror tracking method embodiment is also applicable to the vehicle cross-mirror tracking device of this embodiment, and will not be repeated here.

[0081] According to the vehicle cross-mirror tracking device proposed in the embodiment of the present application, an adaptive spatiotemporal dynamic search mechanism is introduced to intelligently adjust the search range according to the traffic flow density; the conditional generation algorithm module is used to directionally generate the appearance features of the vehicle at different angles, alleviating the feature matching problem; at the same time, a special vehicle front and rear feature data set is constructed; through the candidate target information storage list and its dynamic management mechanism, the candidate vehicle information is maintained in real time, thereby improving the accuracy and real-time performance of vehicle re-identification. As a result, the real-time problem, weak robustness and low matching accuracy of cross-mirror tracking are alleviated.

[0082] Figure 6 A schematic diagram of the structure of a road-side intelligent sensing device provided in an embodiment of the present application. The road-side intelligent sensing device may include:

[0083] A memory 601 , a processor 602 , and a computer program stored in the memory 601 and executable on the processor 602 .

[0084] When the processor 602 executes the program, the vehicle cross-mirror tracking method provided in the above embodiment is implemented.

[0085] Furthermore, the road-side intelligent sensing device also includes:

[0086] The communication interface 603 is used for communication between the memory 601 and the processor 602 .

[0087] The memory 601 is used to store computer programs that can be executed on the processor 602 .

[0088] The memory 601 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.

[0089] If the memory 601, the processor 602 and the communication interface 603 are implemented independently, the communication interface 603, the memory 601 and the processor 602 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0090] Optionally, in a specific implementation, if the memory 601, the processor 602 and the communication interface 603 are integrated on a chip, the memory 601, the processor 602 and the communication interface 603 can communicate with each other through an internal interface.

[0091] The processor 602 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0092] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned vehicle cross-mirror tracking method.

[0093] The embodiment of the present application also provides a computer program product, which, when the computer program or instructions are executed, is used to implement the vehicle cross-mirror tracking method as described in the above embodiment.

[0094] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0095] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0096] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0097] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.

[0098] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0099] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A vehicle cross-mirror tracking method, It is characterized in that The method is applied to a road-side intelligent sensing device, wherein the road-side intelligent sensing device is provided with a first camera and a second camera, wherein the first camera collects a front view image of a vehicle, and the second camera collects a rear view image of the vehicle, wherein the method comprises the following steps: Acquire the front view image and the back view image of at least one target vehicle; The front view image is input into a first feature extraction model, and the first feature extraction model outputs a front view feature vector of each target vehicle, wherein the first feature extraction model extracts an initial front view feature vector of the front view image and generates an initial back view feature vector based on the front view image, and combines the initial front view feature vector and the initial back view feature vector to obtain a candidate feature vector; Inputting the back view image into a second feature extraction model, the second feature extraction model outputting a target back view feature vector of each target vehicle, and copying the target back view feature vector for merging to obtain a target feature vector; The identification and candidate feature vector of each target vehicle are stored in a candidate list, and similarity matching is performed between the target feature vector and the candidate feature vector, and the identification corresponding to the target feature vector and the candidate feature vector with the highest similarity is selected and assigned to the target vehicle for cross-mirror tracking.

2. The vehicle cross-mirror tracking method according to claim 1, It is characterized in that The first feature extraction model includes a first convolutional neural network model, a second convolutional neural network model, and a conditional generative adversarial network, wherein: The front view image is input into the first convolutional neural network model and the conditional generative adversarial network respectively, the first convolutional neural network model outputs the initial front view feature vector, the conditional generative adversarial network outputs the initial back view image corresponding to the front view image, and the back view image is input into the first convolutional neural network to output the initial back view feature vector, the initial front view feature vector and the initial back view feature vector are merged to obtain the candidate feature vector; The initial back side view image is input into the second convolutional neural network model, the second convolutional neural network model outputs the initial back side view feature vector, the target back side view feature vector is copied and merged to obtain the target feature vector.

3. The vehicle cross-mirror tracking method according to claim 2, It is characterized in that Before inputting the frontal perspective image into the first feature extraction model, the method further includes: Acquire an image dataset of front and rear feature pairs of a vehicle, wherein the image dataset includes a front view image and a rear view image of the vehicle; The conditional generative adversarial network is trained using the before and after feature data sets.

4. The vehicle cross-mirror tracking method according to claim 3, It is characterized in that When acquiring an image data set of front and rear feature pairs of a vehicle, the acquisition parameters of the first camera and the second camera are fixed.

5. The vehicle cross-mirror tracking method according to claim 1, It is characterized in that The acquiring the front view image and the rear view image of at least one target vehicle comprises: Set the respective acquisition areas of the first camera and the second camera; Acquire a first captured image of the first camera within a capture area of ​​the first camera, and a second captured image of the second camera within a capture area of ​​the second camera; The first collected image is identified to obtain a front view image of the at least one target vehicle, and the second collected image is identified to obtain a rear view image of the at least one target vehicle.

6. The vehicle cross-mirror tracking method according to claim 5, It is characterized in that There is a collection blind area between the first camera and the second camera, and the acquiring of the front view image and the rear view image of at least one target vehicle includes: Determine the traffic flow density according to the number of vehicles entering the acquisition blind area, and determine the spatial search range of each target vehicle based on the traffic flow density; Determine the traffic flow speed based on the image captured by the first camera, and determine the time search range of each target vehicle based on the traffic flow speed; The first camera and the second camera are controlled to collect images within the spatial search range and the temporal search range.

7. A vehicle cross-mirror tracking device, It is characterized in that The device is applied to a road-side intelligent sensing device, wherein a first camera and a second camera are arranged on the road-side intelligent sensing device, wherein the first camera collects a front view image of a vehicle, and the second camera collects a rear view image of the vehicle, wherein the device comprises: An acquisition module, used to acquire the front view image and the back view image of at least one target vehicle; A first processing module, configured to input the front view image into a first feature extraction model, the first feature extraction model outputting a front view feature vector of each target vehicle, wherein the first feature extraction model extracts an initial front view feature vector of the front view image and generates an initial back view feature vector based on the front view image, and merges the initial front view feature vector and the initial back view feature vector to obtain a candidate feature vector; A second processing module is used to input the back view image into a second feature extraction model, the second feature extraction model outputs a target back view feature vector of each target vehicle, and copies the target back view feature vector for merging to obtain a target feature vector; The target matching module is used to store the identification and candidate feature vector of each target vehicle in a candidate list, perform similarity matching between the target feature vector and the candidate feature vector, select the identification corresponding to the target feature vector and the candidate feature vector with the highest similarity, and assign it to the target vehicle for cross-mirror tracking.

8. A road-side intelligent sensing device, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle cross-mirror tracking method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program or instructions stored thereon, It is characterized in that When the computer program or instruction is executed, the vehicle cross-mirror tracking method described in any one of claims 1-6 is implemented.

10. A computer program product having a computer program or instructions stored thereon, It is characterized in that When the computer program or instruction is executed, the vehicle cross-mirror tracking method described in any one of claims 1-6 is implemented.

Citation Information

Patent Citations

  • Vehicle tracking method and system based on video analysis

    CN111127520A

  • Cross-mirror tracking method for vehicle running track monitoring

    CN112257683A

  • Remote sensing image semantic segmentation method based on deep adversarial learning

    CN113313180A

  • Cross-video target tracking method and system, and electronic device and storage medium

    WO2023216572A1