Vehicle track correction method and system based on aerial video stream of unmanned aerial vehicle

By using a general linear model to fit the trajectory points, heights and angles in the drone aerial vehicle trajectory data in the drone video stream, the problem of vehicle trajectory positioning error in the drone video is solved and higher trajectories are achieved. Positioning accuracy.

CN118799749APending Publication Date: 2024-10-18SHANDONG UNIV
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410778996.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing technology has positioning errors when obtaining vehicle trajectory data from drone videos, and fails to effectively consider the impact of drone shooting conditions on the trajectory, resulting in low trajectory positioning accuracy.

Method used

Using a general linear model, the trajectory points, heights and angles in the vehicle trajectory data captured by UAVs are used as independent variables, and fitted with the vehicle trajectory true value data to determine the fitting relationship between the independent variables and the dependent variables. Use For error correction, improve trajectory positioning accuracy.

Benefits of technology

By calculating the Pearson correlation coefficient in the UAV aerial video stream, it is determined that the general linear model is used to fit the independent variables and the dependent variables, which achieves effective correction of the vehicle trajectory. Compared with the machine learning method, it is more suitable for the UAV aerial photography vehicle trajectory. The correction significantly improves the positioning accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799749A_ABST
    Figure CN118799749A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle track correction method and system based on an unmanned aerial vehicle aerial video stream, and relates to the technical field of unmanned aerial vehicle shooting movement track positioning. Comprising the following steps: acquiring vehicle track data aerial-photographed by an unmanned aerial vehicle and corresponding vehicle track truth value data; taking track points in vehicle track data aerial-photographed by the unmanned aerial vehicle and the height and angle of the current track point photographed by the unmanned aerial vehicle as independent variables, taking vehicle track truth value data of the current track point at the corresponding time as dependent variables, and fitting the independent variables and the dependent variables by adopting a general linear model; and on the basis of a fitting relationship between the independent variable and the dependent variable, vehicle track truth value data are determined, and correction of the vehicle track is realized. According to the invention, a general linear model is used as an error correction model, the vehicle trajectory data of unmanned aerial vehicle aerial photography and the height and angle of unmanned aerial vehicle shooting are used as independent variables, error correction is carried out on the vehicle trajectory extracted based on unmanned aerial vehicle aerial photography video, and the positioning precision of the unmanned aerial vehicle is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of unmanned aerial vehicle (UAV) shooting moving trajectory positioning, and in particular relates to a vehicle trajectory correction method and system based on UAV aerial video stream. Background Art

[0002] In recent years, with the development of information collection technology, drone equipment has gradually been used in the process of traffic data collection, which has also provided a new data source for intelligent road monitoring, surveillance, operation and management. However, the trajectory obtained through video recognition may have errors, and how to obtain accurate vehicle trajectory data from the video is a difficult point in current research.

[0003] The inventors found that in order to evaluate and quantify the accuracy of trajectory data, some studies have studied positioning error analysis and correction methods, but these studies mainly focus on geometric correction of images taken by drones and ignore the accuracy of moving trajectories of moving geometric objects in video images. Summary of the invention

[0004] In order to overcome the shortcomings of the above-mentioned prior art, the present invention provides a vehicle trajectory correction method and system based on UAV aerial video stream, adopts a general linear model as an error correction model, takes the vehicle trajectory data of UAV aerial photography, the height and angle of UAV photography as independent variables, and performs error correction on the vehicle trajectory extracted based on the UAV aerial video, thereby improving the positioning accuracy of the UAV.

[0005] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:

[0006] A first aspect of the present invention provides a vehicle trajectory correction method based on a drone aerial video stream.

[0007] The vehicle trajectory correction method based on the drone aerial video stream includes the following steps:

[0008] Obtain vehicle trajectory data captured by drones and the corresponding vehicle trajectory truth data;

[0009] Temporally align the vehicle trajectory data captured by the drone and the vehicle trajectory truth data;

[0010] The trajectory points in the vehicle trajectory data taken by the drone, the height and angle of the current trajectory point taken by the drone are taken as independent variables, the true value data of the vehicle trajectory at the corresponding time of the current trajectory point is taken as the dependent variable, and the general linear model is used as the error correction model to fit the independent variables and the dependent variables, and determine the fitting relationship between the independent variables and the dependent variables;

[0011] Based on the fitting relationship between the independent variable and the dependent variable, combined with the trajectory points in the vehicle trajectory data taken by the drone, and the height and angle of the current trajectory point taken by the drone, the true value data of the vehicle trajectory is determined to realize the correction of the vehicle trajectory.

[0012] A second aspect of the present invention provides a vehicle trajectory correction system based on drone aerial video stream.

[0013] The vehicle trajectory correction system based on drone aerial video stream includes:

[0014] The data acquisition module is configured to: acquire vehicle trajectory data captured by the drone and corresponding vehicle trajectory true value data;

[0015] The time alignment module is configured to: perform time alignment between the vehicle trajectory data captured by the drone and the vehicle trajectory truth data;

[0016] The fitting module is configured to: use the trajectory points in the vehicle trajectory data taken by the drone, the height and angle of the current trajectory point taken by the drone as independent variables, use the true value data of the vehicle trajectory at the time corresponding to the current trajectory point as the dependent variable, use the general linear model as the error correction model, fit the independent variable and the dependent variable, and determine the fitting relationship between the independent variable and the dependent variable;

[0017] The correction module is configured to: determine the true value data of the vehicle trajectory based on the fitting relationship between the independent variable and the dependent variable, combined with the trajectory points in the vehicle trajectory data taken by the drone, and the height and angle of the current trajectory point taken by the drone, so as to correct the vehicle trajectory.

[0018] The third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps in the vehicle trajectory correction method based on drone aerial video stream as described in the first aspect of the present invention.

[0019] The fourth aspect of the present invention provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps in the vehicle trajectory correction method based on the drone aerial video stream as described in the first aspect of the present invention are implemented.

[0020] One or more of the above technical solutions have the following beneficial effects:

[0021] The present invention provides a vehicle trajectory correction method and system based on drone aerial video stream. Compared with the prior art method of geometrically correcting drone-shot images to correct the trajectory, the present invention innovatively considers the influence of the drone's shooting conditions on the vehicle trajectory, and determines to use a general linear model to fit independent variables and dependent variables by calculating the Pearson correlation coefficient between the vehicle trajectory data of the drone aerial photography and the vehicle trajectory true value data, wherein the trajectory points in the vehicle trajectory data of the drone aerial photography, the height and angle of the current trajectory point shot by the drone are used as independent variables, and the vehicle trajectory true value data at the current trajectory point corresponding to the time is used as the dependent variable, to obtain a fitting relationship between the determined independent variable and the dependent variable, and to use the fitting relationship to correct the vehicle trajectory data obtained by the current drone aerial photography. The method is simple and practical, and the correction effect is good.

[0022] The present invention proves through experiments that the selected general linear model has a better correction effect and is more suitable for correcting the trajectory of drone aerial photography vehicles compared to machine learning methods.

[0023] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0025] Figure 1 This is a flow chart of the method of the first embodiment.

[0026] Figure 2 It is a system structure diagram of the second embodiment. DETAILED DESCRIPTION

[0027] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0028] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.

[0029] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0030] Embodiment 1

[0031] This embodiment discloses a vehicle trajectory correction method based on drone aerial video stream, which can obtain accurate vehicle trajectory data from the vehicle trajectory video captured by drone aerial photography, thereby improving the trajectory positioning accuracy. In addition, this embodiment does not use the method of geometric correction of drone-photographed images in the prior art to correct the trajectory positioning error, but considers the drone aerial photography working conditions, the fitting relationship between the drone aerial photography vehicle trajectory data and the vehicle trajectory true value data, and corrects the trajectory from this perspective.

[0032] like Figure 1 As shown, the vehicle trajectory correction method based on the drone aerial video stream includes the following steps:

[0033] Obtain vehicle trajectory data captured by drones and the corresponding vehicle trajectory truth data;

[0034] Temporally align the vehicle trajectory data captured by the drone and the vehicle trajectory truth data;

[0035] The trajectory points in the vehicle trajectory data taken by the drone, the height and angle of the current trajectory point taken by the drone are taken as independent variables, the true value data of the vehicle trajectory at the corresponding time of the current trajectory point is taken as the dependent variable, and the general linear model is used as the error correction model to fit the independent variables and the dependent variables, and determine the fitting relationship between the independent variables and the dependent variables;

[0036] Based on the fitting relationship between the independent variable and the dependent variable, combined with the trajectory points in the vehicle trajectory data taken by the drone, and the height and angle of the current trajectory point taken by the drone, the true value data of the vehicle trajectory is determined to realize the correction of the vehicle trajectory.

[0037] In this embodiment, obtaining the vehicle trajectory data captured by the drone includes:

[0038] Get the vehicle trajectory video taken by the drone;

[0039] Extracting vehicle trajectory data from the vehicle trajectory video based on a target detection and tracking algorithm and a coordinate conversion method, wherein the vehicle trajectory data includes latitude and longitude data;

[0040] The vehicle trajectory truth data corresponding to the vehicle trajectory data taken by the drone is obtained through the inertial navigation system carried on the vehicle.

[0041] Furthermore, the vehicle trajectory data captured by the drone and the true value data of the vehicle trajectory are aligned in time, specifically including:

[0042] The time alignment method is used to align the starting time points of the vehicle trajectory data taken by the UAV and the vehicle trajectory truth data;

[0043] The downsampling method is used to unify the number of trajectory points of the vehicle trajectory data and the vehicle trajectory truth data taken by the UAV in unit time.

[0044] The time alignment of the vehicle trajectory data captured by the drone and the vehicle trajectory true value data is to facilitate the subsequent determination of the trajectory points in the vehicle trajectory data captured by the drone and the longitude and latitude data of the trajectory points in the vehicle trajectory true value data at the same sampling time, so as to facilitate the fitting operation.

[0045] Furthermore, it also includes:

[0046] The Pearson correlation coefficient between the vehicle trajectory data taken by the drone and the true value data of the vehicle trajectory is calculated in the longitude and latitude directions respectively;

[0047] Based on the Pearson correlation coefficient, a general linear model was selected to fit the independent and dependent variables.

[0048] This embodiment uses a general linear model as the error correction model, which is simple to operate and can achieve a good trajectory correction effect.

[0049] Furthermore, the general linear model is:

[0050] y=bx+u

[0051] Among them, y is the true value data of the vehicle trajectory, x is the independent variable, b represents the model coefficient, and u represents the constant term.

[0052] Furthermore, it also includes:

[0053] Determine multiple working conditions of drone aerial photography, and respectively collect vehicle trajectory videos of drone aerial photography under multiple working conditions, wherein the working conditions include drone shooting height and pitch angle;

[0054] Calculate the error between the vehicle trajectory video taken by the drone under various working conditions and the corresponding vehicle trajectory true value data;

[0055] It is determined that the UAV aerial photography working condition corresponding to the minimum error value is the optimal working condition.

[0056] This embodiment provides an optimal working condition and provides a reference for drone aerial photography.

[0057] In this embodiment, we first use a drone to take aerial photos on the experimental road section to obtain a vehicle trajectory video, then extract the vehicle trajectory data (latitude and longitude) from the video based on the target detection and tracking algorithm and the coordinate conversion method, and then compare and analyze the collected vehicle trajectory data with the true value trajectory data output by the inertial navigation system, calculate the error between the two, and finally establish an error correction model to reduce or even eliminate the vehicle trajectory error. The technical route of this embodiment is as follows Figure 1 shown.

[0058] 1. Experimental setup

[0059] 1) Experimental site

[0060] Considering the impact of other vehicles and pedestrians on the road on the test vehicle, the test site should be as open as possible. Therefore, in order to better collect the trajectory data of the test vehicle, we chose an open road section (two-way two-lane motor vehicle lane) in Jinan City, Shandong Province for the experiment.

[0061] In this experiment, the flight altitude of the drone was set to 40-55m, changing every 5m, and the angle range was set to 35°-55°, changing every 5°. The official sports car test was conducted on a sunny weekday from 10:00 to 11:00. Due to battery and device memory issues, a total of 20 sports car tests were conducted.

[0062] 2) Experimental equipment

[0063] The main equipment used in this experiment are: inertial navigation equipment (INS), drone (DJI Mavic3E) and test vehicle. The inertial navigation equipment (MHT-M821-D integrated navigation) is used to collect trajectory truth data, mainly outputting the latitude and longitude of the test vehicle and GPS time. The drone is used to shoot the test vehicle motion video, mainly outputting the height, angle of the aircraft and the internal parameter information of the camera.

[0064] Before the experiment began, the experimenters fixed the inertial navigation system (INS) inside the test vehicle, keeping the sensor's X-axis direction consistent with the vehicle's forward direction. The GNSS dual antennas were installed on the vehicle's exterior, with the main antenna at the back and the secondary antenna at the front, fixed on the vehicle's engine hood and trunk lid, keeping the GNSS antenna consistent with the system's orientation.

[0065] After the installation, the arm measurement error between GNSS and inertial navigation equipment (INS) is controlled within 5cm, ensuring the measurement accuracy of the system. At the same time, the vehicle is equipped with a computer connected to GNSS, INS and power supply, which displays the system operation time and vehicle latitude and longitude information in real time, with a collection frequency of 100HZ.

[0066] In addition, the drone configuration used in this experiment includes several basic components: RTK (Real-time kinematic) module, aircraft, battery and charger, and remote control. The RTK module is a real-time dynamic positioning technology based on carrier phase observation, which can provide real-time three-dimensional positioning results of the measuring station in a specified coordinate system with an accuracy of up to centimeters. Installing the RTK module above the aircraft can improve the accuracy of drone data acquisition and support real-time positioning of the aircraft. The aircraft is equipped with a Hasselblad camera and a telephoto camera. This embodiment uses a Hasselblad camera with an effective pixel of 20 million. Before the experiment began, the experimenter turned on the remote control, used the DJI Fly App to perform gimbal tilt calibration, and connected to the network hotspot to ensure that the RTK signal was good. Throughout the experiment, the drone's acquisition frequency was 30fps and the pixel size was 3840*2160.

[0067] 3) Data preprocessing method

[0068] Due to the different acquisition frequencies and data transmission methods of drones and inertial navigation equipment, the trajectory data collected by the two devices cannot correspond one to one at the time point. Therefore, the time alignment method and downsampling method are used to calibrate the trajectory data:

[0069] First, the timestamp sequences collected by the two devices are compared, and the starting time points of the trajectories of the UAV and the INS are aligned using the time alignment method;

[0070] Secondly, the acquisition frequencies of the two devices are compared, and the number of trajectory points per unit time is unified using the downsampling method.

[0071] In the specific test process: by comparing the trajectory segments of the same location area, it was found that there was a 20s time deviation in the trajectory sequences of the two devices (the INS was in front), so the INS data was adjusted in time to ensure that the two trajectories were consistent in time; in addition, the data acquisition frequency of the UAV was 30fps (about 0.033s), and the data acquisition frequency of the INS was 100HZ (about 0.01s). The INS data was downsampled, and the INS data points closest in time were extracted based on the timestamp of the UAV data collection to ensure the consistency of the data point density of the two devices.

[0072] 4) Evaluation indicators

[0073] This experiment involves two evaluation indicators. The first is the evaluation indicator TTA, which is used to evaluate the error of vehicle tracking trajectory based on drone aerial video. The second evaluation indicator RMSE is used to measure the performance of the error correction model.

[0074] First, the positioning of vehicles by drones through traffic videos may be inaccurate. The errors may come from the following two aspects:

[0075] 1) UAV is a complex multi-sensor integrated system. The overall accuracy of the system will be affected by the accuracy of the sensors and the operating environment (such as weather conditions, wind speed and light);

[0076] 2) Detecting and tracking vehicles from traffic videos may be affected by the flying altitude and pitch angle of the drone.

[0077] Therefore, after developing the vehicle detection, tracking and localization algorithms, it is necessary to perform error analysis and propose trajectory error correction algorithms when necessary. In order to evaluate the tracking performance, the tracked vehicle trajectory accuracy TTA is selected as the criterion to measure the effectiveness.

[0078]

[0079] Among them, d t,i is the Euclidean distance between the trajectory from the UAV system and the ground truth of vehicle i at time t; c t is the number of tracked vehicles at time t.

[0080] In addition, this embodiment selects RMSE (Root Mean Squared Error) as an evaluation index to compare the error correction effects between different error correction models. RMSE is a commonly used indicator to measure the performance of a prediction model, especially in regression problems. It represents the square root of the mean of the square of the difference between the predicted value and the actual value, and the calculation formula is as shown in formula (2). The smaller the RMSE value, the better the prediction performance of the model.

[0081]

[0082] Among them, J a is the ath actual observation value, is the a-th predicted value and z is the number of observations.

[0083] 2. Example Analysis

[0084] 1) Trajectory error calculation

[0085] This experiment conducted a total of 20 sports car tests, and obtained a total of 20 drone aerial videos under working conditions. This experiment first used the commonly used YOLOv5+DeepSORT target detection and tracking algorithm to extract the trajectory of the test vehicle in the aerial video, and then further used the coordinate conversion method to convert the vehicle trajectory into longitude and latitude data. In other embodiments, other methods in the prior art can also be used to extract vehicle trajectory data from the vehicle trajectory video.

[0086] The evaluation index TTA can be used to calculate the error between the vehicle trajectory obtained based on the drone aerial video and the true value of the trajectory output by the inertial navigation positioning device, as shown in Table 1.

[0087] Table 1 shows the vehicle tracking performance

[0088]

[0089]

[0090] As shown in Table 1, when the drone's aerial photography height is 50m and the pitch angle is 45°, a smaller error can be achieved. In this embodiment, the drone's aerial photography height of 50m and the pitch angle of 45° are taken as the optimal working conditions.

[0091] 2) Error correction

[0092] Considering that the UAV system is a complex multi-sensor integrated system, its accuracy is affected by the various components in the system, and the accuracy of its data collection is also affected by the weather (wind speed, light) during the flight of the UAV. Therefore, it is necessary to perform error analysis and correction on the trajectory data collected by the UAV.

[0093] Considering that the trajectory collected by the drone may have some similarity with the actual trajectory, a linear model can be considered to eliminate the error in trajectory error processing. However, considering that the causes of the error are more complicated, a machine learning model can also be introduced to eliminate the trajectory error.

[0094] Therefore, before error correction, the Pearson correlation coefficient between the output trajectory of the UAV and the true value of the trajectory is calculated in the longitude and latitude directions respectively. The Pearson test results are as follows:

[0095] As shown in the table. According to the results of the Pearson correlation test, the trajectories output by the two devices are correlated in both longitude and latitude.

[0096] Table 2 shows the Pearson correlation analysis.

[0097]

[0098] **significant correlation at the 0.01level(bilateral).

[0099] According to the results of the Pearson correlation test, considering that the trajectory data output by the two devices are correlated, we first considered the general linear model when establishing the error correction model. The general linear model has a wide range of applicability, the model form is simple and clear, and the results are easy to understand. And the higher the data correlation, the better the fitting effect of the general linear model. The basic form of the general linear model is shown in formula (3). In this experiment, the general linear model is implemented based on the SPSS model.

[0100] y=bx+u (3)

[0101] Among them, y is the true value data of the trajectory, x is the independent variable, b represents the model coefficient, and u represents the constant term.

[0102] In addition, in order to compare the effect of error correction with the general linear model, we considered choosing another machine learning method for error correction. As a powerful machine learning model, support vector machine can be used not only for classification problems, but also for regression problems, that is, support vector regression (SVR). Referring to previous studies, support vector regression has the advantages of processing high-dimensional data, strong generalization ability, suitability for situations with scarce training samples, and global optimal solution in trajectory prediction. Therefore, in this study, support vector regression was selected as the second error correction model and implemented using Python software.

[0103] At the same time, according to the previous discussion and analysis, the height and angle of the drone shooting are important factors affecting the vehicle trajectory error. Therefore, in the process of error correction, in order to further verify the influence of the height and angle of the drone shooting on the extracted trajectory error, we set two cases for the independent variables of the error correction model:

[0104] Case 1: The trajectory information output by the drone is used as the independent variable;

[0105] Case 2: Height, angle, and trajectory information output by the drone are used as independent variables.

[0106] In this study, the variables of Case 1 and Case 2 were set as independent variables of the error correction model, the trajectory data output by the inertial navigation device (model) was set as the dependent variable, and the ratio of the training set to the test set was 8:2. The RMSE values ​​of the two cases and without any error correction are shown in the table.

[0108] Table 3 shows the RMSE of the two models.

[0109]

[0110] According to the table, we can find

[0112] (1) For both the GLM model and the SVR model, the RMSE value in case 2 is lower than that in case 1, which shows that considering the height and angle can improve the effect of error correction, which is consistent with the conclusion mentioned above that the height and angle of drone shooting significantly affect the trajectory accuracy.

[0113] (2) In either case, the GLM model achieved a lower RMSE than the SVR model, showing a better error correction effect. This may be due to the correlation between the output data of the two devices. The GLM model is more suitable for regression analysis with a linear relationship. After analyzing the GLM results in case 2, it was found that after error correction, the root mean square error of longitude was reduced from 0.000051128 (about 4.48 meters) to 0.000023726 radians (about 2.08 meters). In addition, the RMSE of latitude was reduced from 0.000029669 (about 3.30 meters) to 0.000001219 radians (about 0.13 meters). In short, GLM significantly improved the accuracy of vehicle trajectory.

[0114] (3) We also noticed that the RMSE of the SVR model in case 1 is higher than the RMSE without error correction. This may be because the SVR model is more suitable for the analysis of high-dimensional data, and the effect of the model will be reduced when there is only one independent variable. In case 2, although the use of the SVR model does not significantly improve the accuracy of the drone output trajectory data compared to the absence of error correction, compared to case 1, considering the height and angle of the drone shooting, the performance of the SVR model is greatly improved.

[0115] This embodiment conducts real vehicle experiments to find and determine the optimal working conditions for drone aerial photography, and further verifies the effect of the error correction model established on the error correction of vehicle trajectories extracted based on drone aerial video. The positioning error is corrected by the method provided in this embodiment, which improves the positioning accuracy under different drone working conditions. These research results can promote the application of drones in real-time traffic monitoring and operation.

[0116] Embodiment 2

[0117] This embodiment discloses a vehicle trajectory correction system based on drone aerial video stream.

[0118] like Figure 2 As shown, the vehicle trajectory correction system based on the drone aerial video stream includes:

[0119] The data acquisition module is configured to: acquire vehicle trajectory data captured by the drone and corresponding vehicle trajectory true value data;

[0120] The time alignment module is configured to: perform time alignment between the vehicle trajectory data captured by the drone and the vehicle trajectory truth data;

[0121] The fitting module is configured to: use the trajectory points in the vehicle trajectory data taken by the drone, the height and angle of the current trajectory point taken by the drone as independent variables, use the true value data of the vehicle trajectory at the time corresponding to the current trajectory point as the dependent variable, use the general linear model as the error correction model, fit the independent variable and the dependent variable, and determine the fitting relationship between the independent variable and the dependent variable;

[0122] The correction module is configured to: determine the true value data of the vehicle trajectory based on the fitting relationship between the independent variable and the dependent variable, combined with the trajectory points in the vehicle trajectory data taken by the drone, and the height and angle of the current trajectory point taken by the drone, so as to correct the vehicle trajectory.

[0123] Embodiment 3

[0124] The purpose of this embodiment is to provide a computer-readable storage medium.

[0125] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the vehicle trajectory correction method based on drone aerial video stream as described in Example 1 of the present disclosure.

[0126] Embodiment 4

[0127] The purpose of this embodiment is to provide an electronic device.

[0128] An electronic device includes a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps in the vehicle trajectory correction method based on drone aerial video stream as described in Example 1 of the present disclosure are implemented.

[0129] The steps involved in the apparatuses of the above embodiments 2, 3 and 4 correspond to the method embodiment 1, and the specific implementation methods can refer to the relevant description part of embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.

[0130] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.

[0131] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A vehicle trajectory correction method based on drone aerial video stream, characterized in that: The following steps are involved: Obtain vehicle trajectory data captured by drones and the corresponding vehicle trajectory truth data; Temporally align the vehicle trajectory data captured by the drone and the vehicle trajectory truth data; The trajectory points in the vehicle trajectory data taken by the drone, the height and angle of the current trajectory point taken by the drone are taken as independent variables, the true value data of the vehicle trajectory at the corresponding time of the current trajectory point is taken as the dependent variable, and the general linear model is used as the error correction model to fit the independent variables and the dependent variables, and determine the fitting relationship between the independent variables and the dependent variables; Based on the fitting relationship between the independent variable and the dependent variable, combined with the trajectory points in the vehicle trajectory data taken by the drone, and the height and angle of the current trajectory point taken by the drone, the true value data of the vehicle trajectory is determined to realize the correction of the vehicle trajectory.

2. The vehicle trajectory correction method based on drone aerial video stream according to claim 1 is characterized in that: Obtain vehicle trajectory data from drone aerial photography, including: Get the vehicle trajectory video taken by the drone; Based on the target detection and tracking algorithm and the coordinate conversion method, vehicle trajectory data is extracted from the vehicle trajectory video, and the vehicle trajectory data includes latitude and longitude data.

3. The vehicle trajectory correction method based on drone aerial video stream according to claim 1, characterized in that: The vehicle trajectory truth data corresponding to the vehicle trajectory data taken by the drone is obtained through the inertial navigation system carried on the vehicle.

4. The vehicle trajectory correction method based on drone aerial video stream according to claim 1, characterized in that: The vehicle trajectory data captured by the drone and the vehicle trajectory truth data are aligned in time, including: The time alignment method is used to align the starting time points of the vehicle trajectory data taken by the UAV and the vehicle trajectory truth data; The downsampling method is used to unify the number of trajectory points of the vehicle trajectory data and the vehicle trajectory truth data taken by the UAV in unit time.

5. The vehicle trajectory correction method based on drone aerial video stream according to claim 1, characterized in that: Also includes: The Pearson correlation coefficient between the vehicle trajectory data taken by the drone and the true value data of the vehicle trajectory is calculated in the longitude and latitude directions respectively; Based on the Pearson correlation coefficient, a general linear model was selected to fit the independent and dependent variables.

6. The vehicle trajectory correction method based on drone aerial video stream according to claim 1, characterized in that: The general linear model is: y=bx+u Among them, y is the true value data of the vehicle trajectory, x is the independent variable, b represents the model coefficient, and u represents the constant term.

7. The vehicle trajectory correction method based on drone aerial video stream according to claim 2, characterized in that: Also includes: Determine multiple working conditions of drone aerial photography, and respectively collect vehicle trajectory videos of drone aerial photography under multiple working conditions, wherein the working conditions include the drone shooting height and pitch angle; Calculate the error between the vehicle trajectory video taken by the drone under various working conditions and the corresponding vehicle trajectory true value data; It is determined that the UAV aerial photography working condition corresponding to the minimum error value is the optimal working condition.

8. The vehicle trajectory correction system based on drone aerial video stream is characterized by: include: The data acquisition module is configured to: acquire vehicle trajectory data captured by the drone and corresponding vehicle trajectory true value data; The time alignment module is configured to: perform time alignment between the vehicle trajectory data captured by the drone and the vehicle trajectory truth data; The fitting module is configured to: use the trajectory points in the vehicle trajectory data taken by the drone, the height and angle of the current trajectory point taken by the drone as independent variables, use the true value data of the vehicle trajectory at the time corresponding to the current trajectory point as the dependent variable, use the general linear model as the error correction model, fit the independent variable and the dependent variable, and determine the fitting relationship between the independent variable and the dependent variable; The correction module is configured to: determine the true value data of the vehicle trajectory based on the fitting relationship between the independent variable and the dependent variable, combined with the trajectory points in the vehicle trajectory data taken by the drone, and the height and angle of the current trajectory point taken by the drone, so as to correct the vehicle trajectory.

9. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps in the vehicle trajectory correction method based on the drone aerial video stream as described in any one of claims 1 to 7 are implemented.

10. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the vehicle trajectory correction method based on the drone aerial video stream as described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Moving target positioning method and system considering camera pitch angle

    CN119131125A

  • A mobile target positioning method and system considering camera pitch angle

    CN119131125B

  • Method and system for positioning moving target based on camera pitch

    US12354287B1