A method and system for converting moving target trajectory coordinates

Through pixel coordinate conversion of UAV video data, combined with UAV position and camera information, vehicle trajectory data conversion under ECEF and WGS84 coordinate systems is directly realized, which solves the accuracy and application limitations of existing camera calibration methods that rely on control point calibration. , suitable for video data processing of complex urban road networks.

CN118411429BActive Publication Date: 2024-10-22SHANDONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410873721.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-22
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

Existing camera calibration methods require control point calibration, which is affected by factors such as the number and distribution of road section control points and road slope, resulting in limited measurement accuracy and application conditions, making it difficult to effectively process camera video data in complex urban road networks.

Method used

By shooting a video with a drone, extract the moving target trajectory data in the pixel coordinate system, combine the drone position information, camera attitude and internal parameter information to solve the unit direction vector in the camera coordinate system and convert it to ECEF and WGS84 coordinate systems. Implement coordinate transformation and avoid control point calibration.

Benefits of technology

Without the need for control point calibration, high-precision vehicle trajectory data is obtained, which solves the problem of video-based trajectory extraction of moving targets such as vehicles, and is suitable for urban road networks that are difficult to calibrate with cameras.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118411429B_ABST
    Figure CN118411429B_ABST
Patent Text Reader

Abstract

The present invention proposes a method and system for converting coordinates of moving target trajectories, and relates to the field of machine vision technology. The method includes extracting moving target trajectory data in a pixel coordinate system; based on the position information, camera attitude information and camera internal parameter information of the drone when shooting each frame, combined with the pixel coordinates of the target point in the pixel coordinate system, solving the representation of the unit direction vector corresponding to the target point in the camera coordinate system in the ECEF coordinate system, and obtaining the vector representation from the ECEF origin to the target point; using the vector representation from the ECEF origin to the target point to represent the coordinates of the target point in the WGS84 coordinate system, and based on the target point and the drone having the same altitude when taking off, finally solving the coordinates of the target point in the WGS84 coordinate system. The present invention can perform coordinate conversion without control point calibration, and can be applied to video data processing of cameras in urban road networks that are difficult to calibrate with cameras.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of machine vision, and in particular relates to a moving target trajectory coordinate conversion method and system. Background Art

[0002] In recent years, ring detectors, microwave detectors and traffic cameras have been widely used to monitor traffic conditions. The development of information acquisition technology and computer vision technology has enabled researchers to extract high-precision vehicle trajectory data from traffic videos. However, camera calibration and coordinate transformation is an extremely complex process, especially for cameras installed in fixed positions. Most previous studies used the direct linear transformation (DLT) theory in close-range photogrammetry technology to establish the transformation relationship equation between the image point coordinate system and the object coordinate system, and calculated the real vehicle trajectory data. However, camera calibration methods such as DLT require the use of control points and experimental fields to complete the calibration, which is often affected by factors such as the number and distribution of control points in the road section and the road slope. Therefore, the measurement accuracy and application conditions of these methods are greatly limited. Summary of the invention

[0003] In order to overcome the deficiencies of the above-mentioned prior art, the present invention provides a moving target trajectory coordinate conversion method and system, which can perform coordinate conversion without control point calibration, and can be applied to video data processing of cameras in urban road networks that are difficult to calibrate with cameras.

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

[0005] A first aspect of the present invention provides a moving target trajectory coordinate conversion method.

[0006] A method for converting moving target trajectory coordinates comprises the following steps:

[0007] Obtain the moving target video taken by the drone, and extract the moving target trajectory data in the pixel coordinate system;

[0008] For any target point in the moving target trajectory data, based on the position information of the drone, the camera attitude information and the camera internal parameter information when shooting each frame, combined with the pixel coordinates of the target point in the pixel coordinate system, the unit direction vector corresponding to the target point in the camera coordinate system is solved in the ECEF coordinate system, and then the vector representation from the ECEF origin to the target point is obtained;

[0009] The vector representation from the ECEF origin to the target point is used to represent the coordinates of the target point in the WGS84 coordinate system. Based on the fact that the target point has the same altitude as the drone when it takes off, the coordinates of the target point in the WGS84 coordinate system are finally solved.

[0010] A second aspect of the present invention provides a moving target trajectory coordinate conversion system.

[0011] A moving target trajectory coordinate conversion system, comprising:

[0012] The moving target trajectory data extraction module is configured to: obtain the moving target video taken by the drone, and extract the moving target trajectory data in the pixel coordinate system;

[0013] The coordinate conversion module is configured to: for any target point in the moving target trajectory data, based on the position information of the drone when shooting each frame, the camera attitude information and the camera internal parameter information, combined with the pixel coordinates of the target point in the pixel coordinate system, solve the representation of the unit direction vector corresponding to the target point in the camera coordinate system in the ECEF coordinate system, and then obtain the vector representation from the ECEF origin to the target point;

[0014] The coordinate solving module is configured to use the vector representation from the ECEF origin to the target point to represent the coordinates of the target point in the WGS84 coordinate system, and based on the fact that the target point has the same altitude as the drone when it takes off, finally solve the coordinates of the target point in the WGS84 coordinate system.

[0015] A 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 method for converting the coordinates of the moving target trajectory as described in the first aspect of the present invention.

[0016] 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, wherein when the processor executes the program, the steps in the method for converting the trajectory coordinates of a moving target as described in the first aspect of the present invention are implemented.

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

[0018] The present invention provides a method and system for converting coordinates of moving target trajectories. After obtaining a road traffic flow video shot by a drone, vehicle trajectory data in a pixel coordinate system is firstly extracted. Then, based on the position information, camera attitude information and camera internal parameter information of the drone when shooting each frame, coordinate transformation is performed on any target point in the vehicle trajectory data in the pixel coordinate system. The unit direction vector corresponding to the target point in the camera coordinate system is expressed in the ECEF coordinate system, and then the vector expression from the ECEF origin to the target point is obtained, and the coordinate expression of the target point in the WGS84 coordinate system is obtained. The coordinates of the target point in the WGS84 coordinate system are obtained by solving. The present invention does not require control point calibration for coordinate conversion, and can be applied to video data processing of cameras in urban road networks that are difficult to calibrate with cameras.

[0019] After the coordinate transformation is performed on any target point, the present invention finally obtains the vehicle trajectory data in the WGS84 coordinate system, thereby solving the problem of trajectory extraction of mobile targets such as vehicles based on videos.

[0020] 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

[0021] 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.

[0022] Figure 1 This is a schematic diagram of the vehicle trajectory data extraction process of the first embodiment.

[0023] Figure 2 This is a coordinate transformation diagram of the first embodiment. DETAILED DESCRIPTION

[0024] 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.

[0025] 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.

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

[0027] Embodiment 1

[0028] like Figure 1 As shown, this embodiment discloses a method for converting moving target trajectory coordinates. In this embodiment, the moving target video shot by the drone is a road traffic flow video, and the moving target in the road traffic flow video is a vehicle.

[0029] The moving target trajectory coordinate conversion method in this embodiment includes the following steps:

[0030] Obtain road traffic flow videos taken by drones and extract vehicle trajectory data in pixel coordinate system;

[0031] For any target point in the vehicle trajectory data, based on the position information of the drone, the camera attitude information and the camera internal parameter information when shooting each frame, combined with the pixel coordinates of the target point in the pixel coordinate system, the unit direction vector corresponding to the target point in the camera coordinate system is solved in the ECEF coordinate system, and then the vector representation from the ECEF origin to the target point is obtained;

[0032] The vector representation from the ECEF origin to the target point is used to represent the coordinates of the target point in the WGS84 coordinate system. Based on the fact that the target point has the same altitude as the drone when it takes off, the coordinates of the target point in the WGS84 coordinate system are finally solved.

[0033] This embodiment proposes a vehicle trajectory extraction method for video recorded by drones, fixed cameras and other equipment, which solves the problem of how to extract vehicle trajectories (pixel level) from videos and further convert the trajectory data into trajectory data (latitude and longitude) in a geographic coordinate system. In general, this application solves the problem of trajectories extraction of moving objects such as vehicle targets based on videos.

[0034] The technical solution of this embodiment will be described in detail below. The solution of this embodiment is generally divided into two parts. The first part is to extract vehicle trajectory data using a two-stage target detection and tracking algorithm, and the second part is to perform coordinate transformation on the target point based on the extracted vehicle trajectory data.

[0035] 1. Object Detection Algorithm

[0036] This embodiment uses drones to shoot and record road traffic flow videos, and further uses a two-stage target detection and tracking algorithm to extract and analyze the vehicle driving trajectory data in the weaving area. The overall idea is to use the YOLOv5 algorithm to detect vehicle targets in the first stage, and the DeepSORT multi-target tracking algorithm to achieve vehicle target trajectory tracking in the second stage.

[0037] The vehicle trajectory data extraction process is as follows: Figure 1 As shown. Based on the YOLOv5+DeepSORT target detection and tracking algorithm, we obtained the vehicle trajectory data in the pixel coordinate system. In order to further obtain the vehicle data in the geographic coordinate system, we established the conversion equation between the coordinate systems for theoretical derivation.

[0038] Specifically, in the vehicle target detection stage, this embodiment selects the YOLOv5 algorithm to detect vehicle targets in the expressway weaving area, and selects YOLOv5m as the internal network model. Since the Yolo series algorithm was first proposed by Redmon et al. in 2016, it has gradually evolved from YOLOv1 to YOLOv5, and has occupied a dominant position in the field of target detection with its excellent detection performance. YOLOv5 was released as open source on GitHub in June 2020. It is completely based on PyTorch implementation and is configured with 4 network models of different sizes, namely YOLOv5s, YOLOv5m, YOLOv5l, and YOLOv5x. The basic introduction of the algorithm is as follows:

[0039] like Figure 1 As shown in the figure, after obtaining the road traffic flow video taken by the drone, each frame image in the video is obtained and the obtained image is input into the YOLOv5m network:

[0040] 1) Perform three steps on the input side:

[0041] ①Mosaic data enhancement: randomly crop a selected image and three random images, and then splice them into one image as training data to enrich the background information of the image;

[0042] ② Adaptive anchor frame, calculate the anchor frame with the initial length and width, output the predicted frame, and compare it with the real frame;

[0043] ③ Adaptive image scaling, calculate the scaled size, calculate the black border filling value, and adaptively add the least black border to the original image.

[0044] 2) In the Backbone layer, YOLOv5 includes two structures: ① Focus structure, which performs slicing operations, and ② CSP structure.

[0045] 3) In the Neck Network layer, the CSP2_X structure designed based on CSPnet is adopted to enhance the ability of network feature fusion.

[0046] 4) There are two main operations at the output end:

[0047] ①Bounding Box loss function, YOLOv5 uses CIOU Loss as the loss function of Bounding Box;

[0048] ② Non-Maximum Suppression (NMS): Under the same parameters, the IOU in NMS is changed to DIOUnms. For some occluded and overlapping targets, the detection effect will be improved to a certain extent.

[0049] Finally, the vehicle identification detection result is obtained.

[0050] In the vehicle target tracking stage, we chose the classic DeepSORT target tracking algorithm. The DeepSort algorithm introduces the confirmation link of new trajectories based on the Sort algorithm, divides new trajectories into confirmed and unconfirmed states, and uses Mahalanobis distance and cosine similarity as the basis for distance measurement. Finally, cascade matching is used to achieve trajectory association. The specific steps of the algorithm are as follows:

[0051] 1) Based on the original video frame, the target detector is used to obtain the target candidate frame, and the non-maximum suppression algorithm (NMS) is used to filter out the redundant frames to obtain the detection result;

[0052] 2) Use the recursive Kalman filter algorithm to predict the location and state of the target in the next frame, perform IOU matching between the predicted box and the detection box, and select the one with higher confidence as the trajectory prediction result;

[0053] 3) Data association is performed using a linear weighted function of the Mahalanobis distance based on motion information and the cosine similarity of appearance features, and tracking trajectory matching is performed through cascade allocation;

[0054] 4) Output the results, update the tracker parameters synchronously, and loop the algorithm process.

[0055] like Figure 1 As shown, in the trajectory output box, there are multiple curves of different colors, and these curves of different colors represent the final trajectory diagrams of different vehicles.

[0056] (II) Coordinate transformation

[0057] After the target detection and tracking algorithm above, we can get the trajectory coordinates of the vehicle in the pixel coordinate system. In order to get the longitude and latitude coordinates of the vehicle in the WGS84 coordinate system, we need to explore the conversion relationship between the pixel coordinate system and the WGS84 coordinate system based on the internal reference information of the drone camera. During the entire target detection and tracking process, the drone, as a shooting device, outputs the position of each frame, as well as the camera attitude and internal reference information, which are stored in the drone's SRT file.

[0058] According to the SRT file and the previously obtained vehicle pixel coordinates, the longitude and latitude coordinates of the vehicle are derived. The conversion relationship between the coordinate systems is shown in the following figure: Figure 2 As shown, the definitions of the related symbols involved are shown in Table 1.

[0059] Table 1 shows the definitions of the symbols.

[0060]

[0061] Figure 2 In the 3D world, a point A represents the trajectory point of the target vehicle at any time. Figure 2 The moving target is marked with a vehicle symbol, and point A is the location of the vehicle.

[0062] According to the coordinates of the vehicle pixel points and the intrinsic parameter information of the camera, we can get a direction vector corresponding to the target point A in the camera coordinate system:

[0063] (1)

[0064] Among them, (cx, cy) is the main point in the camera intrinsic information, f is the focal length in the camera intrinsic information; (x, y) is the pixel coordinate of the target point in the pixel coordinate system.

[0065] Normalize to get the unit direction vector corresponding to the target point in the camera coordinate system:

[0066] (2)

[0067] The rotation matrix R from the camera coordinate system to the North East Earth coordinate system (NED) with the camera as the origin is:

[0068] (3)

[0069] in represents matrix multiplication, They are the transformation matrices when the coordinate system rotates around the Z-axis, Y-axis, and X-axis, respectively, and can be expressed as follows using pitch angle (pitch), yaw angle (yaw), and roll angle (roll):

[0070] (4)

[0071] The rotation matrix from the North East Earth coordinate system to the Northeast Sky coordinate system (ENU) is for:

[0072] (5)

[0073] The rotation matrix T from the Northeast Sky coordinate system to the ECEF coordinate system is:

[0074] (6)

[0075] in, and Respectively represent the longitude and latitude in the drone location information, Indicates the altitude in the drone's location information.

[0076] Therefore, the unit direction vector corresponding to point A in the camera coordinate system is expressed in the ECEF coordinate system as :

[0077] (7)

[0078] The vector from the ECEF origin to the camera can be expressed in the ECEF coordinate system by longitude, latitude and altitude as follows:

[0079] (8)

[0080] in, Indicates the conversion of coordinates in the WGS84 coordinate system to the corresponding coordinates in the ECEF coordinate system; The vector from the ECEF origin to the camera is expressed in the ECEF coordinate system;

[0081] Therefore, the vector from the origin of ECEF to point A can be expressed as:

[0082] (9)

[0083] Where k represents the modulus of the vector from the origin of the camera coordinate system to the target point A.

[0084] Let the coordinates of target point A in WGS84 coordinate system be expressed as , since the target point A has the same altitude as the UAV when it takes off, it can be expressed by formula (10):

[0085] (10)

[0086] in Indicates the conversion from ECEF coordinates to WGS84 coordinate system; r is the abbreviation of relative, which means relative height. Indicates the altitude of the drone relative to the target vehicle after takeoff.

[0087] Combining formulas (9) and (10), solving for the value of k and substituting it into formula (9) yields the WGS84 coordinates of the target point A, as shown in formula (11):

[0088] (11)

[0089] Since the UAV and the vehicle target are at the same ground plane before takeoff, the target point A has the same altitude as the UAV when it takes off.

[0090] Embodiment 2

[0091] This embodiment discloses a moving target trajectory coordinate conversion system.

[0092] A moving target trajectory coordinate conversion system, comprising:

[0093] The moving target trajectory data extraction module is configured to: obtain the moving target video taken by the drone, and extract the moving target trajectory data in the pixel coordinate system;

[0094] The coordinate conversion module is configured to: for any target point in the moving target trajectory data, based on the position information of the drone when shooting each frame, the camera attitude information and the camera internal parameter information, combined with the pixel coordinates of the target point in the pixel coordinate system, solve the representation of the unit direction vector corresponding to the target point in the camera coordinate system in the ECEF coordinate system, and then obtain the vector representation from the ECEF origin to the target point;

[0095] The coordinate solving module is configured to use the vector representation from the ECEF origin to the target point to represent the coordinates of the target point in the WGS84 coordinate system, and based on the fact that the target point has the same altitude as the drone when it takes off, finally solve the coordinates of the target point in the WGS84 coordinate system.

[0096] Embodiment 3

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

[0098] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps in the method for converting the coordinates of the moving target trajectory as described in Example 1 of the present disclosure.

[0099] Embodiment 4

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

[0101] 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 method for converting the coordinates of the trajectory of a moving target as described in Example 1 of the present disclosure are implemented.

[0102] 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.

[0103] 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.

[0104] 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 method for converting moving target trajectory coordinates, characterized in that: The following steps are involved: Obtain the moving target video taken by the drone, and extract the moving target trajectory data in the pixel coordinate system; A two-stage target detection and tracking algorithm is used to extract and analyze trajectory data; For any target point in the moving target trajectory data, based on the position information of the drone, the camera attitude information and the camera internal parameter information when shooting each frame, combined with the pixel coordinates of the target point in the pixel coordinate system, the unit direction vector corresponding to the target point in the camera coordinate system is solved in the ECEF coordinate system, and then the vector representation from the ECEF origin to the target point is obtained; The unit direction vector corresponding to point A in the camera coordinate system is expressed in the ECEF coordinate system as , specifically: ; ; ; ; R is the rotation matrix from the camera coordinate system to the north-east coordinate system with the camera as the origin; is the rotation matrix from the north-east earth coordinate system to the northeast sky coordinate system; T is the rotation matrix from the northeast sky coordinate system to the ECEF coordinate system; is the unit direction vector corresponding to the target point in the camera coordinate system; They are the transformation matrices when the coordinate system rotates around the Z axis, Y axis, and X axis respectively; and Respectively represent the longitude and latitude in the drone's location information; The vector from the ECEF origin to the camera can be expressed in the ECEF coordinate system by longitude, latitude and altitude as follows: ; in, Indicates the conversion of coordinates in the WGS84 coordinate system to the corresponding coordinates in the ECEF coordinate system; The vector from the ECEF origin to the camera is expressed in the ECEF coordinate system; Indicates the altitude in the drone's location information; The vector from the origin of ECEF to point A can be expressed as: ; Where k represents the modulus of the vector from the origin of the camera coordinate system to the target point A; The vector representation from the ECEF origin to the target point is used to represent the coordinates of the target point in the WGS84 coordinate system. Based on the fact that the target point has the same altitude as the drone when it takes off, the coordinates of the target point in the WGS84 coordinate system are finally solved.

2. The moving target trajectory coordinate conversion method according to claim 1, characterized in that: Solve the unit direction vector corresponding to the target point in the camera coordinate system in the ECEF coordinate system, including: Based on the pixel coordinates of the target point in the pixel coordinate system and the intrinsic parameter information of the camera, the unit direction vector corresponding to the target point in the camera coordinate system is obtained; Based on the camera attitude information, the rotation matrix R from the camera coordinate system to the north-east earth coordinate system with the camera as the origin is obtained, and the rotation matrix from the north-east earth coordinate system to the northeast sky coordinate system is determined , and obtain the rotation matrix T from the northeast sky coordinate system to the ECEF coordinate system based on the position information of the UAV; Based on the rotation matrix R, the rotation matrix And the rotation matrix T, combined with the unit direction vector corresponding to the target point in the camera coordinate system, obtain the representation of the unit direction vector corresponding to the target point in the camera coordinate system in the ECEF coordinate system.

3. The moving target trajectory coordinate conversion method according to claim 2, characterized in that: The unit direction vector corresponding to the target point in the camera coordinate system , expressed as: ; ; Among them, (cx, cy) is the main point in the camera intrinsic information, f is the focal length in the camera intrinsic information; (x, y) is the pixel coordinate of the target point in the pixel coordinate system; is the direction vector of the target point in the camera coordinate system.

4. The moving target trajectory coordinate conversion method according to claim 1, characterized in that: Let the coordinates of the target point in the WGS84 coordinate system be expressed as ,but: ; in, Indicates the conversion from ECEF coordinates to WGS84 coordinate system; After solving the value of k, the WGS84 coordinates of the target point are obtained; Indicates the altitude of the drone relative to the target vehicle after takeoff.

5. The moving target trajectory coordinate conversion method according to claim 1, characterized in that: Extract moving target trajectory data based on a two-stage target detection and tracking algorithm: In the first stage, the YOLOv5 algorithm is used for mobile target detection; In the second stage, the DeepSORT multi-target tracking algorithm is used to realize the trajectory tracking of moving targets.

6. A moving target trajectory coordinate conversion system, characterized in that: include: The moving target trajectory data extraction module is configured to: obtain the moving target video taken by the drone, and extract the moving target trajectory data in the pixel coordinate system; A two-stage target detection and tracking algorithm is used to extract and analyze trajectory data; The coordinate conversion module is configured to: for any target point in the moving target trajectory data, based on the position information of the drone when shooting each frame, the camera attitude information and the camera internal parameter information, combined with the pixel coordinates of the target point in the pixel coordinate system, solve the representation of the unit direction vector corresponding to the target point in the camera coordinate system in the ECEF coordinate system, and then obtain the vector representation from the ECEF origin to the target point; The unit direction vector corresponding to point A in the camera coordinate system is expressed in the ECEF coordinate system as , specifically: ; ; ; ; R is the rotation matrix from the camera coordinate system to the north-east coordinate system with the camera as the origin; is the rotation matrix from the north-east earth coordinate system to the northeast sky coordinate system; T is the rotation matrix from the northeast sky coordinate system to the ECEF coordinate system; is the unit direction vector corresponding to the target point in the camera coordinate system; They are the transformation matrices when the coordinate system rotates around the Z axis, Y axis, and X axis respectively; and Respectively represent the longitude and latitude in the drone's location information; The vector from the ECEF origin to the camera can be expressed in the ECEF coordinate system by longitude, latitude and altitude as follows: ; in, Indicates the conversion of coordinates in the WGS84 coordinate system to the corresponding coordinates in the ECEF coordinate system; The vector from the ECEF origin to the camera is expressed in the ECEF coordinate system; Indicates the altitude in the drone's location information; The vector from the origin of ECEF to point A can be expressed as: ; Where k represents the modulus of the vector from the origin of the camera coordinate system to the target point A; The coordinate solving module is configured to use the vector representation from the ECEF origin to the target point to represent the coordinates of the target point in the WGS84 coordinate system, and based on the fact that the target point has the same altitude as the drone when it takes off, finally solve the coordinates of the target point in the WGS84 coordinate system.

7. 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 moving target trajectory coordinate conversion method as described in any one of claims 1 to 5 are implemented.

8. 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 moving target trajectory coordinate conversion method as described in any one of claims 1-5 are implemented.