Simulation method and device for unmanned aerial vehicle target positioning
By building a UAV model in a three-dimensional simulation environment and using the photoelectric pod model to collect images for real-time simulation, the non-real-time and model gap problems of UAV simulation methods in the existing technology are solved, and the accuracy and accuracy of the simulation results are improved. Development efficiency.
Patent Information
- Application Number
- CN202010035235.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-14
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-01-14
AI Technical Summary
Existing drone simulation methods are non-real-time and offline, and there is a large gap between the drone model and the real model, which reduces the accuracy of algorithm simulation and increases development time and testing costs.
Build a UAV model in a three-dimensional simulation environment, collect images through the mounted photoelectric pod model, perform image processing and status information acquisition, calculate the simulation value of the target geographical location, realize closed-loop real-time simulation, reduce human input data, and improve simulation results accuracy.
It achieves high-accuracy simulation of UAV target positioning, shortens algorithm development time, reduces actual test costs, and improves the possibility of algorithm implementation.
Smart Images

Figure CN113189890B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of target positioning, and in particular to a simulation method and device for unmanned aerial vehicle target positioning. Background Art
[0002] At present, drones are often used to detect and track ground targets. The flight conditions of drones are relatively harsh, and the cooperation of pilots is required during the flight. When developing new algorithms, if the complete system is not verified and the real machine is directly tested by drones, once the aircraft is broken or damaged to the surrounding environment, it will cause huge economic losses. The failures that occur when drones are tested are irreversible, the experimental conditions are difficult to reproduce, and the cause of the failure is difficult to analyze clearly. In addition, it often takes the pilot's time and energy to operate the drone, wasting manpower and material resources. As a relatively new field, drone simulation system can exclude errors that may occur in the algorithm logic layer in advance, which is a necessary process for algorithm development.
[0003] In related technologies, MATLAB is often used to implement drone simulation. MATLAB simulation is a non-real-time, offline simulation method. This simulation focuses on the effects of the algorithm itself, such as local control, obstacle avoidance, and tracking, and does not involve the stage of sensor data acquisition. The simulation input is artificially given data, and there is a certain gap between the mathematical model of the drone and the real model. This reduces the accuracy of the algorithm simulation and prolongs the time of algorithm development. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a simulation method for UAV target positioning. The simulation method does not require manual data input. At the same time, the UAV model and optoelectronic pod model used in the simulation method are consistent with the real model, thereby improving the accuracy of the simulation results of UAV target positioning, reducing the actual testing cost, and increasing the possibility of algorithm implementation.
[0005] According to one aspect of the present invention, a simulation method for unmanned aerial vehicle target positioning is provided, wherein an unmanned aerial vehicle model is built in a three-dimensional simulation environment, and the simulation method for unmanned aerial vehicle target positioning comprises:
[0006] When the UAV model is flying, a first image including a first target to be located is collected by an optoelectronic pod model carried thereon;
[0007] Performing image processing on the first image to obtain pixel coordinates of the first target in the first image;
[0008] Acquiring status information of the UAV model and the optoelectronic pod model; and
[0009] Based on the pixel coordinates and the state information, a simulation value of the geographic location of the first target in the three-dimensional simulation environment is calculated.
[0010] Preferably, the simulation method for unmanned aerial vehicle target positioning further includes:
[0011] Acquire a true value of a geographical location of the first target in the three-dimensional simulation environment;
[0012] The true position value and the simulated value are compared to determine a simulated error of the geographic location of the first target.
[0013] Preferably, when the drone model is flying, collecting a first image of a first target to be located by an optoelectronic pod model carried thereon includes:
[0014] Selecting the first target to be located from a plurality of images collected by the optoelectronic pod model;
[0015] Tracking the first target based on a kernel correlation filter algorithm tracking procedure; and
[0016] During the process of the optoelectronic pod model carried by the UAV model acquiring the first image in real time, the status information of the UAV model and the optoelectronic pod model is adjusted in real time so that the first image includes the first target.
[0017] Preferably, performing image processing on the first image to obtain pixel coordinates of the first target in the first image includes:
[0018] Converting the first image into an image format to obtain a second image;
[0019] In a cross-platform computer vision library, image processing is performed on the second image to obtain pixel coordinates of the first target in the first image.
[0020] Preferably, the calculating the simulation value of the geographical location of the first target in the three-dimensional simulation environment based on the pixel coordinates and the state information includes:
[0021] Based on the pixel coordinates and the state information, coordinate system transformation is performed on the pixel coordinates of the first target in the first image to obtain a simulation value of the geographical location of the first target in the three-dimensional simulation environment.
[0022] Preferably, the status information of the UAV model and the optoelectronic pod model includes: the position of the UAV model, the attitude of the UAV model, the position of the optoelectronic pod model and the attitude of the optoelectronic pod model.
[0023] According to another aspect of the present invention, a simulation device for unmanned aerial vehicle target positioning is provided, comprising:
[0024] An image acquisition module, used for acquiring in real time a first image including a first target to be located;
[0025] An image processing module, used to perform image processing on the first image to obtain pixel coordinates of the first target in the first image;
[0026] A data acquisition module, used to acquire status information of the UAV model and the optoelectronic pod model in real time; and
[0027] A calculation module is used to calculate in real time, based on the pixel coordinates and the state information, a simulation value of the geographical location of the first target in the three-dimensional simulation environment.
[0028] Preferably, the simulation device for unmanned aerial vehicle target positioning further comprises:
[0029] A tracking module, used for tracking the first target in real time through a kernel correlation filter algorithm tracking program, and obtaining a true value of a geographical location of the first target in the three-dimensional simulation environment in real time;
[0030] A comparison module is used to compare the true position value and the simulated value to determine a simulation error of the UAV model in locating the geographic location of the first target.
[0031] Preferably, the real-time acquisition includes a first image of a first target to be located, including:
[0032] Selecting the first target to be located from a plurality of images collected in real time;
[0033] Tracking the first target based on a kernel correlation filter algorithm tracking procedure; and
[0034] In the process of real-time acquisition of the first image, the status information of the UAV model and the optoelectronic pod model are adjusted in real time so that the first image includes the first target.
[0035] Preferably, performing image processing on the first image to obtain pixel coordinates of the first target in the first image includes:
[0036] Converting the first image into an image format to obtain a second image;
[0037] In a cross-platform computer vision library, image processing is performed on the second image to obtain pixel coordinates of the first target in the first image.
[0038] Preferably, the real-time simulation calculation of the simulation value of the geographical location of the first target in the three-dimensional simulation environment based on the pixel coordinates and the state information includes:
[0039] Based on the pixel coordinates and the state information, coordinate system transformation is performed on the pixel coordinates of the first target in the first image, and a simulation value of the geographical location of the first target in the three-dimensional simulation environment is obtained by real-time calculation.
[0040] Preferably, the status information of the UAV model and the optoelectronic pod model includes: the position of the UAV model, the attitude of the UAV model, the position of the optoelectronic pod model and the attitude of the optoelectronic pod model.
[0041] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed, the simulation method for unmanned aerial vehicle target positioning as described above is implemented.
[0042] According to another aspect of the present invention, a simulation control device for unmanned aerial vehicle target positioning is provided, comprising:
[0043] A memory is used to store computer instructions; a processor is coupled to the memory, and the processor is configured to execute the simulation method for drone target positioning as described above based on the computer instructions stored in the memory.
[0044] An embodiment of the present invention has the following advantages or beneficial effects:
[0045] The simulation of the target positioning of the UAV is a complete closed-loop real-time simulation, which does not require manual data input, making the simulation system logically complete. In addition, the UAV model and optoelectronic pod model used in the simulation method are consistent with the real model, thereby improving the accuracy of the simulation results of the target positioning of the UAV.
[0046] The true value and the simulated value of the geographical location of the first target in the three-dimensional simulation environment can be directly obtained, which is convenient for comparing the true value and the simulated value of the first target's position to determine the simulation error of the geographical location of the first target. The simulation error is analyzed to adjust and optimize the parameters of the algorithm for drone target positioning. This shortens the development time of the algorithm for drone target positioning, reduces the actual testing cost, and increases the possibility of algorithm implementation. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0048] Figure 1A schematic flow chart showing a method for simulating target positioning of an unmanned aerial vehicle according to an embodiment of the present invention.
[0049] Figure 2a A schematic structural diagram of an optoelectronic pod model according to an embodiment of the present invention is shown.
[0050] Figure 2b A schematic structural diagram of a drone model according to an embodiment of the present invention is shown.
[0051] Figure 3 A schematic flow chart showing a method for simulating target positioning of an unmanned aerial vehicle according to an embodiment of the present invention.
[0052] Figure 4 Schematic diagram showing the algorithm development process.
[0053] Figure 5a A schematic diagram of a three-dimensional simulation environment for UAV target positioning according to an embodiment of the present invention is shown.
[0054] Figure 5b A schematic diagram showing simulation results of drone target positioning in the x-axis direction according to an embodiment of the present invention.
[0055] Figure 5c A schematic diagram showing simulation results of drone target positioning in the y-axis direction according to an embodiment of the present invention.
[0056] Figure 5d A schematic diagram showing a simulation error of a drone target positioning in the x-axis direction according to an embodiment of the present invention.
[0057] Figure 5e A schematic diagram showing a simulation error of a drone target positioning in the y-axis direction according to an embodiment of the present invention.
[0058] Figure 6 A schematic structural diagram of a simulation device for unmanned aerial vehicle target positioning according to an embodiment of the present invention is shown.
[0059] Figure 7 A schematic structural diagram of a simulation device for unmanned aerial vehicle target positioning according to an embodiment of the present invention is shown.
[0060] Figure 8 A structural diagram of a simulation control device for unmanned aerial vehicle target positioning according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0061] The present invention is described below based on embodiments, but the present invention is not limited to these embodiments. In the detailed description of the present invention below, some specific details are described in detail. It is possible for a person skilled in the art to fully understand the present invention without the description of these details. In order to avoid confusing the essence of the present invention, known methods, processes, and procedures are not described in detail. In addition, the drawings are not necessarily drawn to scale.
[0062] Figure 1 The following is a flow chart of a simulation method for positioning a target of a UAV according to an embodiment of the present invention. A UAV model is built in a three-dimensional simulation environment, and the simulation method for positioning a target of a UAV specifically includes the following steps:
[0063] In step S101, when the UAV model is flying, a first image including a first target to be located is collected by the optoelectronic pod model carried thereon.
[0064] In this step, when the UAV model is flying, a first image including a first target to be located is collected by the optoelectronic pod model carried thereon.
[0065] In step S102, image processing is performed on the first image to obtain pixel coordinates of the first target in the first image.
[0066] In this step, image processing is performed on the first image to obtain the pixel coordinates of the first target in the first image.
[0067] In step S103, the status information of the UAV model and the optoelectronic pod model is obtained.
[0068] In this step, the status information of the UAV model and the optoelectronic pod model is obtained.
[0069] In step S104, a simulation value of the geographical location of the first target in the three-dimensional simulation environment is calculated based on the pixel coordinates and the state information.
[0070] In this step, based on the pixel coordinates of the first target in the first image and the status information of the UAV model and the optoelectronic pod model, the simulation value of the geographic location of the first target in the three-dimensional simulation environment is calculated.
[0071] According to the embodiment of the present invention, the simulation of the target positioning of the UAV is a complete closed-loop real-time simulation, which does not require manual data input, so that the simulation system is logically complete. In addition, the UAV model and the optoelectronic pod model used in the simulation method are consistent with the real model, thereby improving the accuracy of the simulation results of the target positioning of the UAV.
[0072] The Drone Operating System (ROS) is a computer operating system architecture designed specifically for robot software development. It is an open source meta-level operating system (post-operating system) that provides services similar to operating systems, including hardware abstraction description, underlying driver management, execution of shared functions, inter-program message passing, and program distribution package management. It also provides some tools and libraries for acquiring, building, writing, and executing multi-machine fusion programs.
[0073] Figure 3 The present invention is a flowchart of a simulation method for positioning a target of a drone according to an embodiment of the present invention. The simulation method for positioning a target of a drone is performed in a robot three-dimensional simulation software (Gazebo) based on a software framework of the Robot Operating System (ROS). This embodiment is a more complete simulation method for positioning a target of a drone than the above embodiment. Specifically, the following steps are included:
[0074] In step S301, when the UAV model is flying, a first image including a first target to be located is collected by the optoelectronic pod model carried thereon.
[0075] like Figure 2a The optoelectronic pod model in the three-dimensional simulation environment shown in the figure collects images in real time to monitor the surrounding environment in real time to find the target. Figure 2b The PX4 open source quadcopter model shown. The optoelectronic pod model is a two-degree-of-freedom optoelectronic pod model.
[0076] The attitude and position of the UAV model and the attitude and position of the optoelectronic pod model are controlled by keyboard operation. The optoelectronic pod model collects images in real time through the built-in camera to monitor the surrounding environment in real time to find the target.
[0077] In this step, the first target to be located is selected from the multiple images collected by the optoelectronic pod model. For example, when the target to be located appears in the multiple images collected by the optoelectronic pod model in real time, the target is selected as the first target by manually selecting the target. After the first target to be located is found, the first target is tracked based on the kernel correlation filter algorithm tracking program. And in the process of the optoelectronic pod model carried by the drone model collecting the first image in real time, the status information of the drone model and the optoelectronic pod model is adjusted in real time so that the first image includes the first target. The status information of the drone model and the optoelectronic pod model includes: the position of the drone model, the posture of the drone model, the position of the optoelectronic pod model, and the posture of the optoelectronic pod model.
[0078] In step S302, image processing is performed on the first image to obtain pixel coordinates of the first target in the first image.
[0079] In this step, the first image is converted into an image format to obtain a second image in an image format supported by a cross-platform computer vision library (opencv). In the cross-platform computer vision library (opencv), the second image is processed to obtain the pixel coordinates of the first target in the first image.
[0080] In step S303, status information of the UAV model and the optoelectronic pod model is obtained.
[0081] In this step, the status information of the UAV model and the optoelectronic pod model is obtained. The status information of the UAV model and the optoelectronic pod model includes: the position of the UAV model, the attitude of the UAV model, the position of the optoelectronic pod model, and the attitude of the optoelectronic pod model.
[0082] In step S304, a simulation value of the geographical location of the first target in the three-dimensional simulation environment is calculated based on the pixel coordinates and the state information.
[0083] Figure 4 is a schematic diagram of the algorithm development process. Figure 4 As shown in Figure 1, the algorithm development process includes:
[0084] First, conduct a demand analysis on user needs. After preliminary design, obtain a preliminary solution for the algorithm. Then, based on user needs, encode the underlying functional algorithm and the upper-level logic algorithm. Secondly, simulate the upper-level logic algorithm. Thirdly, based on the simulation results, determine whether the various indicators of the developed algorithm are qualified. If qualified, further perform hardware and environmental tests on the algorithm. If not qualified, adjust and optimize the various parameters of the upper-level logic algorithm.
[0085] In this step, in the three-dimensional simulation environment, based on the pixel coordinates of the first target in the first image and the state information of the UAV model and the optoelectronic pod model, the pixel coordinates of the first target in the first image are transformed into a coordinate system to obtain a simulation value of the geographical location of the first target in the three-dimensional simulation environment. For example, the simulation value of the geographical location of the first target in the three-dimensional simulation environment is calculated by importing a pre-written algorithm for UAV target positioning into the three-dimensional simulation environment.
[0086] In step S305, the true value of the geographical location of the first target in the three-dimensional simulation environment is obtained.
[0087] In this step, the first target is tracked in real time by a kernel correlation filter algorithm tracking program, and the true position value of the geographical location of the first target in the three-dimensional simulation environment is obtained in real time.
[0088] In step S306, the true position value and the simulated value are compared to determine a simulation error of the geographic location of the first target.
[0089] In this step, the true position value and the simulated value are compared to determine the simulation error of the geographic location of the first target. The simulation error is analyzed to adjust and optimize the parameters of the algorithm for positioning the drone target.
[0090] According to the embodiment of the present invention, both the true value and the simulated value of the geographical location of the first target in the three-dimensional simulation environment can be directly obtained, which is convenient for comparing the true value and the simulated value of the geographical location of the first target to determine the simulation error of the geographical location of the first target. The simulation error is analyzed to adjust and optimize the parameters of the algorithm for positioning the target of the unmanned aerial vehicle. This shortens the development time of the algorithm for positioning the target of the unmanned aerial vehicle, reduces the actual testing cost, and increases the possibility of implementing the algorithm.
[0091] In an optional embodiment of the present application, Figure 5a The 3D simulation environment of UAV target positioning is shown in Figure 2. Figure 5a In the three-dimensional simulation environment of drone target positioning shown in the figure, the drone model 501 takes off to a certain height (50m-100m), and after adjusting the posture of the optoelectronic pod model mounted on the drone model 501, a target within the field of view is selected as the first target, and the white vehicle 502 is selected here. The white vehicle 502 is in a stationary state. It can be understood that the state of the white vehicle 502 is not limited to the stationary state, and the situation where the white vehicle 502 is in a moving state is also applicable to the three-dimensional simulation method for drone target positioning in the embodiment of the present invention.
[0092] The optoelectronic pod model obtains a first image including the white vehicle 502 through a built-in camera. The first image is converted into an image format to obtain a second image. In a cross-platform computer vision library (opencv), the second image is processed to obtain the pixel coordinates (x ip ,y ip ). The built-in sensor of the drone model 501 obtains the status information of the drone model 501 and the optoelectronic pod model in real time.
[0093] In the three-dimensional simulation environment, based on the pixel coordinates and the state information, the simulation value of the geographical location of the white vehicle 502 in the three-dimensional simulation environment is calculated. Here, only the simulation values of the geographical location of the white vehicle 502 in the x-axis direction and the y-axis direction are considered. Figure 5b It is the simulation result of the drone target positioning of the white vehicle 502 in the x-axis direction. Figure 5bThe horizontal axis is the time t (unit: second) in the three-dimensional simulation environment, and the vertical axis is the simulation value of the geographical location of the white vehicle 502 in the x-axis direction in the three-dimensional simulation environment. Figure 5c It is the simulation result of the drone target positioning of the white vehicle 502 in the y-axis direction. Figure 5c The horizontal axis is the time t (unit: second) in the three-dimensional simulation environment, and the vertical axis is the simulated value of the geographical location of the white vehicle 502 in the y-axis direction in the three-dimensional simulation environment. The white vehicle 502 is tracked based on the kernel correlation filter algorithm tracking program to obtain the true value of the geographical location of the white vehicle 502. The true value of the position of the white vehicle 502 in the three-dimensional simulation environment is (56.6, -1.7, 0). The true value of the position and the simulated value are compared to determine the simulation error of the geographical location of the white vehicle 502. Figure 5d is the simulation error of the drone target positioning in the x-axis direction of the white vehicle 502. Figure 5d The horizontal axis is the time t (unit: second) in the three-dimensional simulation environment, and the vertical axis is the simulation error of the geographical location of the white vehicle 502 in the x-axis direction in the three-dimensional simulation environment. Figure 5e is the simulation error of the drone target positioning in the y-axis direction of the white vehicle 502. Figure 5e The horizontal axis is the time t (unit: second) in the three-dimensional simulation environment, and the vertical axis is the simulation error of the geographical location of the white vehicle 502 in the y-axis direction in the three-dimensional simulation environment. Figure 5b and Figure 5d as well as Figure 5c and Figure 5e The simulation results shown show that the simulation error of UAV target positioning is within 5 meters.
[0094] Figure 6 FIG. 1 is a schematic diagram of a simulation device for positioning a target of a drone according to an embodiment of the present invention. Figure 6 As shown, the simulation device for unmanned aerial vehicle target positioning includes: an image acquisition module 601, an image processing module 602, a data acquisition module 603 and a calculation module 604.
[0095] The image acquisition module 601 is used to acquire a first image including a first target to be located in real time.
[0096] This module collects a first image including a first target to be located in real time when the UAV model is flying.
[0097] The image processing module 602 is used to perform image processing on the first image to obtain the pixel coordinates of the first target in the first image.
[0098] This module performs image processing on the first image to obtain pixel coordinates of the first target in the first image.
[0099] The data acquisition module 603 is used to acquire the status information of the UAV model and the optoelectronic pod model in real time.
[0100] This module obtains the status information of the UAV model and the optoelectronic pod model.
[0101] The calculation module 604 is used to calculate the simulation value of the geographical location of the first target in the three-dimensional simulation environment in real time based on the pixel coordinates and the state information.
[0102] The module calculates the simulation value of the geographic location of the first target in the three-dimensional simulation environment based on the pixel coordinates of the first target in the first image and the status information of the UAV model and the optoelectronic pod model.
[0103] Figure 7 FIG. 1 is a schematic diagram of the structure of a simulation device for positioning a target of a drone according to an embodiment of the present invention. This embodiment is a more perfect embodiment than the above-mentioned embodiment. Figure 7 As shown, the simulation device for unmanned aerial vehicle target positioning includes: an image acquisition module 701, an image processing module 702, a data acquisition module 703, a calculation module 704, a tracking module 705 and a comparison module 706.
[0104] The image acquisition module 701 is used to acquire a first image including a first target to be located in real time.
[0105] This module selects the first target to be located from the multiple images collected by the optoelectronic pod model. For example, when the target to be located appears in the multiple images collected by the optoelectronic pod model in real time, the target is selected as the first target by manually selecting the target. After the first target to be located is found, the first target is tracked based on the kernel correlation filter algorithm tracking program. And in the process of the optoelectronic pod model carried by the drone model collecting the first image in real time, the status information of the drone model and the optoelectronic pod model is adjusted in real time so that the first image includes the first target. The status information of the drone model and the optoelectronic pod model includes: the position of the drone model, the posture of the drone model, the position of the optoelectronic pod model, and the posture of the optoelectronic pod model.
[0106] The image processing module 702 is used to perform image processing on the first image to obtain the pixel coordinates of the first target in the first image.
[0107] The module converts the first image into an image format to obtain a second image in an image format supported by a cross-platform computer vision library (opencv). In the cross-platform computer vision library (opencv), the second image is processed to obtain the pixel coordinates of the first target in the first image.
[0108] The data acquisition module 703 is used to acquire the status information of the UAV model and the optoelectronic pod model in real time.
[0109] This module obtains the status information of the UAV model and the optoelectronic pod model. The status information of the UAV model and the optoelectronic pod model includes: the position of the UAV model, the attitude of the UAV model, the position of the optoelectronic pod model, and the attitude of the optoelectronic pod model.
[0110] The calculation module 704 is used to calculate the simulation value of the geographical location of the first target in the three-dimensional simulation environment in real time based on the pixel coordinates and the state information.
[0111] This module, in a three-dimensional simulation environment, performs coordinate system transformation on the pixel coordinates of the first target in the first image based on the pixel coordinates of the first target in the first image and the state information of the UAV model and the optoelectronic pod model, and obtains the simulation value of the geographical location of the first target in the three-dimensional simulation environment. For example, by importing the pre-written algorithm for UAV target positioning into the three-dimensional simulation environment, the simulation value of the geographical location of the first target in the three-dimensional simulation environment is calculated.
[0112] The tracking module 705 is used to track the first target in real time through a kernel correlation filter algorithm tracking program, and obtain the true position value of the geographical location of the first target in the three-dimensional simulation environment in real time.
[0113] This module tracks the first target in real time through a kernel correlation filter algorithm tracking program, and obtains the true value of the geographical location of the first target in a three-dimensional simulation environment in real time.
[0114] The comparison module 706 is used to compare the true position value and the simulated value to determine the simulation error of the UAV model in locating the geographic location of the first target.
[0115] This module compares the true position value and the simulated value to determine the simulation error of the geographic location of the first target. The simulation error is analyzed to adjust and optimize the parameters of the algorithm for the UAV target positioning.
[0116] Figure 8 4 is a structural diagram of a simulation control device for unmanned aerial vehicle target positioning according to an embodiment of the present invention. Figure 8 The device shown is only an example and should not constitute any limitation to the functions and scope of use of the embodiments of the present invention.
[0117] refer to Figure 8, the device includes a processor 801, a memory 802 and an input / output device 803 connected by a bus. The memory 802 includes a read-only memory (ROM) and a random access memory (RAM). The memory 802 stores various computer instructions and data required to execute system functions. The processor 801 reads various computer instructions from the memory 802 to execute various appropriate actions and processes. The input / output device includes an input part such as a keyboard, a mouse, etc.; an output part such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part such as a hard disk; and a communication part such as a network interface card such as a LAN card, a modem, etc. The memory 802 also stores the following computer instructions to complete the operations specified in the simulation method for positioning a target of a drone according to an embodiment of the present invention: when the drone model is flying, a first image including a first target to be positioned is collected through the optoelectronic pod model carried thereon; the first image is processed to obtain the pixel coordinates of the first target in the first image; the status information of the drone model and the optoelectronic pod model is obtained; and based on the pixel coordinates and the status information, the simulation value of the geographical location of the first target in the three-dimensional simulation environment is calculated.
[0118] Accordingly, an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions, and when the computer instructions are executed, the operations specified by the above-mentioned simulation method for unmanned aerial vehicle target positioning are implemented.
[0119] The flowcharts and block diagrams in the accompanying drawings illustrate the possible system frameworks, functions and operations of the systems, methods and devices of the embodiments of the present invention. The boxes on the flowcharts and block diagrams can represent a module, a program segment or just a piece of code, and the modules, program segments and codes are all executable instructions for implementing the specified logical functions. It should also be noted that the executable instructions for implementing the specified logical functions can be recombined to generate new modules and program segments. Therefore, the boxes and the order of the boxes in the accompanying drawings are only used to better illustrate the process and steps of the embodiments, and should not be used as a limitation on the invention itself.
[0120] The above descriptions are only some embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A simulation method for unmanned aerial vehicle target positioning, characterized in that: A UAV model is built in a three-dimensional simulation environment, and the simulation method for UAV target positioning includes: When the UAV model is flying, a first image including a first target to be located is collected by an optoelectronic pod model carried thereon; Performing image processing on the first image to obtain pixel coordinates of the first target in the first image; Acquiring status information of the UAV model and the optoelectronic pod model; and Based on the pixel coordinates and the state information, a simulation value of the geographic location of the first target in the three-dimensional simulation environment is calculated.
2. The simulation method for unmanned aerial vehicle target positioning according to claim 1, characterized in that: Also includes: Acquire a true value of a geographical location of the first target in the three-dimensional simulation environment; The true position value and the simulated value are compared to determine a simulated error of the geographic location of the first target.
3. The simulation method for unmanned aerial vehicle target positioning according to claim 2, characterized in that: When the UAV model is flying, collecting a first image of a first target to be located by using an optoelectronic pod model carried thereon, comprises: Selecting the first target to be located from a plurality of images collected by the optoelectronic pod model; Tracking the first target based on a kernel correlation filter algorithm tracking procedure; and During the process of the optoelectronic pod model carried by the UAV model acquiring the first image in real time, the status information of the UAV model and the optoelectronic pod model is adjusted in real time so that the first image includes the first target.
4. The simulation method for unmanned aerial vehicle target positioning according to claim 3 is characterized in that: The performing image processing on the first image to obtain pixel coordinates of the first target in the first image includes: Converting the first image into an image format to obtain a second image; In a cross-platform computer vision library, image processing is performed on the second image to obtain pixel coordinates of the first target in the first image.
5. The simulation method for unmanned aerial vehicle target positioning according to claim 4, characterized in that: The calculating, based on the pixel coordinates and the state information, a simulation value of the geographical location of the first target in the three-dimensional simulation environment comprises: Based on the pixel coordinates and the state information, coordinate system transformation is performed on the pixel coordinates of the first target in the first image to obtain a simulation value of the geographical location of the first target in the three-dimensional simulation environment.
6. The simulation method for unmanned aerial vehicle target positioning according to claim 5, characterized in that: The status information of the UAV model and the optoelectronic pod model includes: the position of the UAV model, the attitude of the UAV model, the position of the optoelectronic pod model, and the attitude of the optoelectronic pod model.
7. A simulation device for unmanned aerial vehicle target positioning, characterized in that: include: An image acquisition module, used for acquiring a first image including a first target to be located in real time through an optoelectronic pod model carried on a UAV model built in a three-dimensional simulation environment when the UAV model is flying; An image processing module, used to perform image processing on the first image to obtain pixel coordinates of the first target in the first image; A data acquisition module, used to acquire status information of the UAV model and the optoelectronic pod model in real time; as well as A calculation module is used to calculate in real time, based on the pixel coordinates and the state information, a simulation value of the geographical location of the first target in the three-dimensional simulation environment.
8. The simulation device for unmanned aerial vehicle target positioning according to claim 7, characterized in that: Also includes: A tracking module, used for tracking the first target in real time through a kernel correlation filter algorithm tracking program, and obtaining a true value of a geographical location of the first target in the three-dimensional simulation environment in real time; A comparison module is used to compare the true position value and the simulated value to determine a simulation error of the UAV model in locating the geographic location of the first target.
9. The simulation device for unmanned aerial vehicle target positioning according to claim 8, characterized in that: When the UAV model built in the three-dimensional simulation environment is flying, a first image of a first target to be located is collected in real time through an optoelectronic pod model carried thereon, including: Selecting the first target to be located from a plurality of images collected in real time; Tracking the first target based on a kernel correlation filter algorithm tracking procedure; and In the process of real-time acquisition of the first image, the status information of the UAV model and the optoelectronic pod model are adjusted in real time so that the first image includes the first target.
10. The simulation device for unmanned aerial vehicle target positioning according to claim 9, characterized in that: The performing image processing on the first image to obtain pixel coordinates of the first target in the first image includes: Converting the first image into an image format to obtain a second image; In a cross-platform computer vision library, image processing is performed on the second image to obtain pixel coordinates of the first target in the first image.
11. The simulation device for unmanned aerial vehicle target positioning according to claim 10, characterized in that: The real-time simulation calculation of the simulation value of the geographical location of the first target in the three-dimensional simulation environment based on the pixel coordinates and the state information includes: Based on the pixel coordinates and the state information, coordinate system transformation is performed on the pixel coordinates of the first target in the first image, and a simulation value of the geographical location of the first target in the three-dimensional simulation environment is obtained by real-time calculation.
12. The simulation device for unmanned aerial vehicle target positioning according to claim 11, characterized in that: The status information of the UAV model and the optoelectronic pod model includes: the position of the UAV model, the attitude of the UAV model, the position of the optoelectronic pod model, and the attitude of the optoelectronic pod model.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed, the simulation method for unmanned aerial vehicle target positioning according to any one of claims 1 to 6 is implemented.
14. A simulation control device for unmanned aerial vehicle target positioning, characterized in that: include: Memory, for storing computer instructions; A processor is coupled to the memory, and the processor is configured to execute the simulation method for drone target positioning according to any one of claims 1 to 6 based on the computer instructions stored in the memory.
Citation Information
Patent Citations
Modeling and simulation method of tracking mode of unmanned aerial opto-electronic stabilizing turntable
CN106777489A
Compound-axis target tracking simulation test system
CN108279576A
