A UAV path planning method, device, terminal and storage medium
By obtaining the two-dimensional basemap and safe flight altitude of the target scene, the initial viewpoint set is generated based on plane quality and viewpoint plane quality, and the viewpoint set is optimized using a multi-objective optimization algorithm to determine the shooting path of the drone, solving the image in texture reconstruction The problem of insufficient data quality achieves high-quality texture map effect.
Patent Information
- Application Number
- CN202411312008.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2044-09-20
AI Technical Summary
The existing technology has failed to effectively collect high-quality image data for texture reconstruction, resulting in unsatisfactory results in texture mapping, especially in the problem of inconsistent perspective relationships under rich linear features and clear component structures on urban buildings.
By obtaining the two-dimensional basemap and safe flight altitude of the target scene, the candidate viewpoint set is determined, and the initial viewpoint set is generated based on the plane quality and viewpoint plane quality. The viewpoint set is optimized using a multi-objective optimization algorithm, and finally the drone shooting path is determined. To ensure high-quality texture reconstruction.
It effectively solves the problem of insufficient image data quality in texture reconstruction. The generated texture maps have higher consistency and high-definition quality, reducing splicing traces, blur and deformation.
Smart Images

Figure CN118816899B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer graphics, and in particular to a method, device, terminal and storage medium for unmanned aerial vehicle path planning. Background Art
[0002] The construction of large-scale digital twin cities is usually based on image materials collected by unmanned aerial vehicles (UAVs) to generate structured models with realistic textures. Current UAV acquisition methods mainly aim at high-quality geometric reconstruction. For example: (1) A volume hierarchical representation is used to estimate the cost of reconstructing each part of the scene, balancing the two goals of maximizing the information gain of the viewpoint and minimizing the path length; (2) A scene coverage model is used to formulate a sub-module optimization method to determine the best direction for each candidate viewpoint, and an integer linear program is used to select the best path from the candidate viewpoints to maximize the scene coverage while obtaining a shorter path length; (3) A reconstructible metric is introduced to predict the reconstruction quality, and a heuristic-based continuous optimization method is used to maximize the reconstructibility of all viewpoints in the scene; (4) An adaptive UAV path planning algorithm without field investigation is used to estimate a 2.5-dimensional model for the scene based on the relationship between buildings and corresponding shadows, and the minimum viewpoint set is selected using a maximum-minimum optimization method to maximize the reconstruction quality with the same number of viewpoints; (5) A real-time UAV path planning method for urban scene reconstruction uses a bird's-eye view to generate an initial path, estimates the height of the building through a SLAM (simultaneous localization and mapping) framework, and takes close-up photos to reveal the building details, minimizing the path length at both the inter-building and intra-building levels. These UAV path planning research works aim to better and faster reconstruct complete and accurate dense models.
[0003] However, these methods do not consider how to collect high-quality image data for texture reconstruction, resulting in the inability to achieve ideal texture effects when the collected image data is used for texture mapping. When the collected images are used for texture reconstruction, due to the rich straight line features and clear component structures on the surface of urban buildings, the texture is very prone to cognitive dissonance problems, such as inconsistent perspective relationships of windows on a single building facade.
[0004] Therefore, the existing technology still needs to be improved and developed. Summary of the invention
[0005] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a method, device, terminal and storage medium for drone path planning are provided, aiming to solve the problem that the prior art does not consider how to collect high-quality image data for texture reconstruction, resulting in the collected image data not being able to achieve the ideal texture effect when used for texture mapping.
[0006] The technical solution adopted by the present invention to solve the problem is as follows:
[0007] In a first aspect, an embodiment of the present invention provides a method for planning a path for an unmanned aerial vehicle, wherein the method comprises:
[0008] Acquire a two-dimensional base map and a safe flight altitude of a target scene, and determine a candidate viewpoint set according to the two-dimensional base map and the safe flight altitude;
[0009] Based on the plane quality and the viewpoint-plane pair quality, an initial viewpoint set is generated according to the candidate viewpoint set, wherein the plane quality is used to measure the texture quality of a single plane, and the viewpoint-plane pair quality is used to measure the quality of a viewpoint-plane pair constructed by a single viewpoint and a plane;
[0010] Using a multi-objective optimization algorithm to optimize the initial viewpoint set to determine an optimized viewpoint set;
[0011] The drone shooting path is determined according to the candidate viewpoint set and the optimized viewpoint set.
[0012] In an implementation method, the generating an initial viewpoint set according to the candidate viewpoint set based on the plane quality and the viewpoint-plane pair quality includes:
[0013] Constructing a plurality of viewpoint plane pairs based on the candidate viewpoint set;
[0014] Setting an initial sight direction for a viewpoint in each of the viewpoint plane pairs based on the plane quality;
[0015] The viewpoint-plane pair quality corresponding to each of the viewpoint-plane pairs is calculated, and the initial viewpoint set is determined according to the viewpoint-plane pair quality.
[0016] In an implementation method, setting an initial sight line direction for a viewpoint in each viewpoint plane pair based on the plane quality includes:
[0017] Sampling within a 180° range centered on the reverse direction of the normal direction of the midpoint plane to determine a number of candidate sight lines;
[0018] The candidate sight line direction corresponding to the maximum plane quality is selected as the initial sight line direction of the viewpoint centered on the viewpoint plane.
[0019] In one implementation method, the method for calculating the plane quality includes:
[0020] ,
[0021] in, and Represent the perspective quality and image quality respectively, and is the weight;
[0022] Perspective quality Defined as:
[0023] ,
[0024] in, and is the weight, is the viewpoint set The number of viewpoints, Metric Unit Vector and The distance between express Middle Viewpoint The direction of sight, express The average viewing direction of the midpoint, Representation plane The normal vector of
[0025] Image Quality Defined as:
[0026] ,
[0027] in, and is the weight, Represents line of sight distance The normalized value, express The sight distance, express The average of the sight distances of the midpoints, , represent Mid-viewpoint coverage plane The width of the area, represent Width.
[0028] In one implementation method, the method for calculating the viewpoint plane pair quality includes:
[0029] ,
[0030] in, and Represent the perspective quality and image quality respectively, and is the weight;
[0031] Perspective quality Defined as:
[0032] ,
[0033] and is the weight, Metric Unit Vector and The distance between Indicates viewpoint The direction of sight, Represents a viewpoint set The average viewing direction of the midpoint, Representation plane The normal vector of
[0034] Image Quality Defined as:
[0035] ,
[0036] and is the weight, Represents line of sight distance The normalized value, Indicates viewpoint The sight distance, , represent Mid-viewpoint coverage plane The width of the area, Representative plane The width of Representative plane Only the viewpoint The proportion of the area where the observations were made.
[0037] In one implementation method, the adopting a multi-objective optimization algorithm to optimize the initial viewpoint set to determine the optimized viewpoint set includes:
[0038] Sampling the position and sight direction of each viewpoint in the neighborhood of the initial viewpoint set to obtain candidate viewpoint poses corresponding to each viewpoint;
[0039] Determine a target viewpoint pose among the candidate viewpoint poses based on a multi-objective optimization algorithm;
[0040] The initial viewpoint set is screened according to the target viewpoint pose corresponding to each viewpoint to determine the optimized viewpoint set.
[0041] In one implementation method, determining the drone shooting path according to the candidate viewpoint set and the optimized viewpoint set includes:
[0042] Constructing a fully connected graph according to the candidate viewpoint set and the optimized viewpoint set;
[0043] The minimum cost path corresponding to the fully connected graph is solved based on the traveling salesman problem as the drone shooting path.
[0044] In a second aspect, an embodiment of the present invention further provides a drone path planning device, wherein the drone path planning device comprises:
[0045] A data acquisition module, used to acquire a two-dimensional base map and a safe flight altitude of a target scene, and determine a candidate viewpoint set according to the two-dimensional base map and the safe flight altitude;
[0046] A viewpoint generation module, configured to generate an initial viewpoint set according to the candidate viewpoint set based on a plane quality and a viewpoint-plane pair quality, wherein the plane quality is used to measure the texture quality of a single plane, and the viewpoint-plane pair quality is used to measure the quality of a viewpoint-plane pair constructed by a single viewpoint and a plane;
[0047] A viewpoint optimization module, used to optimize the initial viewpoint set using a multi-objective optimization algorithm to determine an optimized viewpoint set;
[0048] A path determination module is used to determine the drone shooting path according to the candidate viewpoint set and the optimized viewpoint set.
[0049] In a third aspect, an embodiment of the present invention further provides a terminal, comprising a memory and one or more processors; the memory stores one or more programs; the program comprises instructions for executing any of the above-described drone path planning methods; and the processor is used to execute the program.
[0050] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a plurality of instructions are stored, wherein the instructions are suitable for being loaded and executed by a processor to implement any of the above-mentioned drone path planning methods.
[0051] Beneficial effects of the present invention: The embodiments of the present invention obtain a two-dimensional base map and a safe flight altitude of the target scene, and determine a candidate viewpoint set according to the two-dimensional base map and the safe flight altitude; generate an initial viewpoint set according to the candidate viewpoint set based on the plane quality and the viewpoint-plane pair quality, wherein the plane quality is used to measure the texture quality of a single plane, and the viewpoint-plane pair quality is used to measure the quality of the viewpoint-plane pair constructed by a single viewpoint and a plane; optimize the initial viewpoint set using a multi-objective optimization algorithm to determine the optimized viewpoint set; determine the drone shooting path according to the candidate viewpoint set and the optimized viewpoint set. The present invention obtains a viewpoint set capable of reconstructing high-quality textures by introducing plane quality and viewpoint-plane quality, thereby effectively solving the problem that the prior art does not consider how to collect high-quality image data for texture reconstruction, resulting in the inability to achieve ideal texture effects when the collected image data is used for texture mapping. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 It is a flowchart of a method for UAV path planning provided by an embodiment of the present invention.
[0054] Figure 2 This is a diagram for generating a plane dot matrix and dividing downward viewpoints provided by an embodiment of the present invention.
[0055] Figure 3 It is a schematic diagram of all planes observable from viewpoints provided by the embodiment of the present invention.
[0056] Figure 4 It is a schematic diagram of all viewpoints from which a plane can be observed provided by an embodiment of the present invention.
[0057] Figure 5 It is a schematic diagram of the downward viewpoint selection result provided by an embodiment of the present invention.
[0058] Figure 6 4 is a schematic diagram of an initial viewpoint optimization result provided by an embodiment of the present invention.
[0059] Figure 7 It is a schematic diagram of texture mapping results provided by an embodiment of the present invention.
[0060] Figure 8 It is a schematic diagram of the internal modules of the UAV path planning device provided in an embodiment of the present invention.
[0061] Fig. 9 It is a principle block diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0062] The present invention discloses a method, device, terminal and storage medium for planning a path for a drone. To make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0063] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0064] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.
[0065] The current UAV acquisition method mainly aims at high-quality geometric reconstruction, and does not consider the acquisition of high-quality image data for texture reconstruction. Therefore, the acquired image data cannot achieve ideal texture effects when used for texture mapping.
[0066] In view of the above-mentioned defects of the prior art, the present invention provides a method, device, terminal and storage medium for drone path planning, wherein the method obtains a two-dimensional base map and a safe flight altitude of the target scene, determines a candidate viewpoint set according to the two-dimensional base map and the safe flight altitude; generates an initial viewpoint set according to the candidate viewpoint set based on the plane quality and the viewpoint-plane pair quality, wherein the plane quality is used to measure the texture quality of a single plane, and the viewpoint-plane pair quality is used to measure the quality of the viewpoint-plane pair constructed by a single viewpoint and a plane; optimizes the initial viewpoint set using a multi-objective optimization algorithm to determine an optimized viewpoint set; and determines the drone shooting path according to the candidate viewpoint set and the optimized viewpoint set. The present invention obtains a viewpoint set capable of reconstructing high-quality textures by introducing plane quality and viewpoint-plane quality, thereby effectively solving the problem that the prior art does not consider how to collect high-quality image data for texture reconstruction, resulting in the inability to achieve an ideal texture effect when the collected image data is used for texture mapping.
[0067] Exemplary Methods
[0068] like Figure 1 As shown, the method includes:
[0069] Step S100, obtaining a two-dimensional base map and a safe flight altitude of a target scene, and determining a candidate viewpoint set according to the two-dimensional base map and the safe flight altitude;
[0070] The two-dimensional base map is a two-dimensional top-down base map corresponding to the target scene. In the two-dimensional top-down base map, each contour polygon represents a building, and the edge of the contour polygon represents the building facade. The safe flight altitude is the lowest safe flight altitude of the drone. In this embodiment, at a fixed safe flight altitude H, a plane dot matrix completely covering the target scene is generated based on the two-dimensional base map. , the plane lattice It is used as a candidate viewpoint set for subsequent viewpoint screening.
[0071] like Figure 1 As shown, the method specifically also includes:
[0072] Step S200, based on the plane quality and the viewpoint-plane pair quality, generate an initial viewpoint set according to the candidate viewpoint set, wherein the plane quality is used to measure the texture quality of a single plane, and the viewpoint-plane pair quality is used to measure the quality of a viewpoint-plane pair constructed by a single viewpoint and a plane.
[0073] Specifically, the plane is a building facade, and this embodiment defines two quality indicators: plane quality and viewpoint plane quality. Among them, the plane quality measures the final texture quality of the plane based on a set of two-dimensional viewpoints, and the viewpoint plane pair quality measures the quality of the viewpoint plane pair constructed by the two-dimensional viewpoint and the plane. These two qualities are used to guide the selection of viewpoints. Based on the plane quality and the viewpoint plane quality, this embodiment generates an initial viewpoint set according to the candidate viewpoint set, so that the initial viewpoint set can maximize the coverage of the building facade in the target scene, and can ensure that the viewpoints in the initial viewpoint set have high perspective consistency and high image quality.
[0074] In one implementation, plane quality is used to measure the The texture quality, given a set of viewpoints , the calculation method of the plane quality includes:
[0075] ,
[0076] in, and Represent the perspective quality and image quality respectively, and is the weight;
[0077] Perspective quality is used to measure The consistency of the sight direction and the alignment of the sight direction of the midpoint The degree of perspective quality Defined as:
[0078] ,
[0079] in, and are the weights of the line of sight consistency and the line of sight facing item, yes The number of viewpoints, Metric Unit Vector and The distance between express Middle Viewpoint The direction of sight, express The average viewing direction of the midpoint, Representation plane The normal vector of
[0080] Image quality measures the image quality of a flat texture, including the high definition of the image material, the consistency of the image resolution, the completeness of the image coverage plane, and the indispensability of the image coverage plane. ,measure Image quality is mainly measured Relative to resolution consistency and coverage.
[0081] Image Quality Defined as:
[0082] ,
[0083] in, and are the weights of resolution consistency and coverage, yes The number of viewpoints, Represents line of sight distance The normalized value, express The sight distance, express The average value of the sight distance of the midpoint, , represent Mid-viewpoint coverage plane The width of the area, represent Width.
[0084] In one implementation, given Single viewpoint ,measure With plane The constructed viewpoint plane pair. The method for calculating the quality of the viewpoint plane pair includes:
[0085] ,
[0086] in, and Represent the perspective quality and image quality respectively, and is the weight;
[0087] Perspective quality measurement The sight direction and the average sight direction consistency, and Directly opposite The degree of perspective quality Defined as:
[0088] ,
[0089] and is the weight, Metric Unit Vector and The distance between Indicates viewpoint The direction of sight, Represents a viewpoint set The average viewing direction of the midpoint, Representation plane The normal vector of
[0090] Image quality mainly considers the high definition, coverage and indispensability of the viewpoint relative to the plane. Image quality Defined as:
[0091] ,
[0092] and is the weight, Represents line of sight distance The normalized value, Indicates viewpoint The sight distance, , represent Mid-viewpoint coverage plane The width of the area, Representative plane The width of Representative plane Only the viewpoint The proportion of the area where the observations were made.
[0093] In one implementation, the generating an initial viewpoint set according to the candidate viewpoint set based on the plane quality and the viewpoint-plane pair quality includes:
[0094] Step S201, constructing a plurality of viewpoint plane pairs based on the candidate viewpoint set;
[0095] Step S202, setting an initial sight line direction for each viewpoint in the viewpoint plane pair based on the plane quality;
[0096] Step S203: Calculate the viewpoint-plane pair quality corresponding to each viewpoint-plane pair, and determine the initial viewpoint set according to the quality of each viewpoint-plane pair.
[0097] Specifically, the steps of generating an initial viewpoint set based on a candidate viewpoint set include: (1) constructing viewpoint plane pairs; (2) initializing viewpoint directions; and (3) selecting downward viewpoints.
[0098] (1) Viewpoint plane pair construction. A method for constructing a plurality of viewpoint plane pairs based on a candidate viewpoint set includes: At each viewing angle position in , five drone shooting angles are set, including a vertical downward angle and four oblique angles; based on the candidate viewpoint set , the drone is designed to start from the height H and vertically dive down to generate a downward viewpoint for shooting the building facade at a low height. Figure 2 As shown, according to the minimum distance from the viewpoint to the plane polygon and the threshold of the safety distance, The viewpoints in are divided into viewpoints that can be explored and viewpoints that cannot be explored; for each viewpoint that can be explored, the plane that can be observed by the viewpoint is detected, and the viewpoint-plane pair is constructed, such as Figure 3 and Figure 4 As shown. For a plane , all observed The viewpoint, composition The downward viewpoint set In one implementation, a non-descendable viewpoint and a plane may be used to form a viewpoint-plane pair.
[0099] (2) Viewpoint direction initialization. After constructing the viewpoint plane pair, the sight direction of the viewpoint in the viewpoint plane pair is initialized, and an initial sight direction is selected for each viewpoint. The steps of viewpoint direction initialization include: The reverse direction of the normal direction is uniformly sampled within a 180° range as the center to determine several candidate sight lines. ; Select the candidate sight line direction corresponding to the maximum plane quality as the initial sight line direction of the viewpoint in the viewpoint plane The viewpoint direction initialization step further includes assigning the same viewpoint direction to each viewpoint before determining the candidate viewpoint direction.
[0100] (3) Downward viewpoint selection. Downward viewpoint selection is used to delete redundant viewpoints in the viewpoint set corresponding to the plane. This embodiment adopts an iterative deletion strategy. In each round of iteration, the quality of the viewpoint plane pair corresponding to each viewpoint plane pair is first calculated. , Viewpoint The quality of the viewpoint The corresponding plane The sum of the masses of the constructed viewpoint plane pairs is calculated as:
[0101] ,
[0102] In each iteration, the viewpoint with the lowest quality value is deleted until there are no redundant viewpoints, such as Figure 5 As shown, the iteration is terminated and the remaining viewpoints are determined as the initial viewpoint set.
[0103] like Figure 1 As shown, the method specifically also includes:
[0104] Step S300: optimizing the initial viewpoint set using a multi-objective optimization algorithm to determine an optimized viewpoint set.
[0105] For the viewpoints in the initial viewpoint set, a multi-objective optimization algorithm is used to optimize the position and direction of each viewpoint, thereby optimizing the plane quality and reducing the time cost of drone image acquisition. In this embodiment, the optimization target item of the multi-objective optimization algorithm includes the number C of three-dimensional hovering points required for the entire target scene. In addition, in order to improve the texture quality of the building facade, the optimization target also includes the viewpoint Observable building facades The corresponding plane quality The objective terms of multi-objective optimization are:
[0106] ,
[0107] The method for calculating the number of three-dimensional hovering points is as follows: for a given viewpoint (two-dimensional downward viewpoint) and plane ,exist The position is uniformly sampled vertically from top to bottom to generate a series of vertical three-dimensional viewpoints ,in, Represents the position of the 3D viewpoint, Represents the viewing direction of a 3D viewpoint. Ensure that the building facade is fully covered with a certain overlap in the height direction. The two-dimensional probe points at the same position can have different sight directions and are used to observe different building facades. The vertical 3D viewpoints corresponding to the position of can be fine-tuned in the vertical position to merge the viewpoints that are closer in the vertical direction. After the vertical merging, the number of 3D hovering points of the entire target scene can be calculated.
[0108] In one implementation, the adopting a multi-objective optimization algorithm to optimize the initial viewpoint set to determine the optimized viewpoint set includes:
[0109] Step S301, sampling the position and sight direction of each viewpoint in the neighborhood of the initial viewpoint set to obtain candidate viewpoint poses corresponding to each viewpoint;
[0110] Step S302, determining a target viewpoint pose among the candidate viewpoint poses based on a multi-objective optimization algorithm;
[0111] Step S303: Screening the initial viewpoint set according to the target viewpoint pose corresponding to each viewpoint to determine the optimized viewpoint set.
[0112] Specifically, this embodiment adopts the following iterative optimization process to achieve the goal of minimizing the multi-objective optimization algorithm. In each round of iteration, first, at the viewpoint In the neighborhood of , uniform sampling of positions and sight directions is performed to obtain candidate positions and sight directions, and the candidate positions and sight directions are combined as candidate viewpoint poses; all candidate combinations are searched through a multi-objective optimization algorithm to obtain the optimal viewpoint position and sight direction combination as the optimized viewpoint pose, i.e., the target viewpoint pose. Secondly, based on the target viewpoint pose and the viewpoint plane pair quality, the redundancy of other viewpoints is re-judged and redundant viewpoints are deleted. When all the downward viewpoints no longer change, the optimization is determined to have converged, and the optimized viewpoint set is determined, such as Figure 6 shown.
[0113] like Figure 1 As shown, the method specifically also includes:
[0114] Step S400: determining a drone shooting path according to the candidate viewpoint set and the optimized viewpoint set.
[0115] In this embodiment, a total drone viewpoint set is formed by a candidate viewpoint set and an optimized viewpoint set. A path is generated based on the total drone viewpoint set to obtain a drone shooting path.
[0116] In one implementation, determining the drone shooting path according to the candidate viewpoint set and the optimized viewpoint set includes:
[0117] Step S401, constructing a fully connected graph according to the candidate viewpoint set and the optimized viewpoint set;
[0118] Step S402: solving the minimum cost path corresponding to the fully connected graph based on the traveling salesman problem as the drone shooting path.
[0119] In order to reduce the time cost of drone image acquisition, this embodiment constructs a fully connected graph based on the candidate viewpoint set and the optimized viewpoint set and generates a drone flight path that connects all viewpoints in series. By solving the traveling salesman problem, a path that traverses all nodes and has the minimum cost is obtained. In this embodiment, the viewpoints in the candidate viewpoint set and the optimized viewpoint set are used as nodes in the graph to construct a fully connected graph, and the method of solving the traveling salesman problem is used to solve the minimum cost path of the fully connected graph.
[0120] Connecting viewpoint pairs in a fully connected graph The cost value of the edge The definition is as follows:
[0121] ,
[0122] in, Representative Viewpoint To Viewpoint The shortest straight-line distance in the safe area, represent and The angle of sight direction, Represents the weight value. The path with the minimum cost in the fully connected graph is the optimal drone shooting path that traverses all viewpoints.
[0123] The scene reconstruction step includes structured geometry reconstruction and texture reconstruction. Based on the generated drone shooting path, photos are collected for geometry and texture reconstruction of the scene. In the geometry reconstruction step, ContextCapture software is first used to reconstruct a high-precision dense geometry model based on the collected photos. Secondly, a structure-aware reconstruction algorithm is used to obtain a structured model of the dense geometry model. Finally, the TwinTex method (geometry-aware texture generation method for abstract 3D building models) is used to generate high-quality texture maps for the structured model, such as Figure 7 shown.
[0124] By conducting experiments on urban scenes of different complexity, when the image material collected by the drone shooting path obtained by the method of this embodiment is used for texture mapping of the structured model, the obtained result has several advantages: (1) The viewpoint set corresponding to the same building facade has a more consistent perspective and faces the plane. Therefore, when the collected image material is used for texture mapping of the structured model, a texture with consistent perspective and facing the plane can be generated; (2) The viewpoint corresponding to the building facade has a high-definition feature. Therefore, when the collected image material is used for texture mapping, a high-definition texture can be generated; (3) The generated texture has fewer splicing marks, blur and deformation.
[0125] Based on the above embodiments, the present invention also provides a UAV path planning device, such as Figure 8 As shown, the device comprises:
[0126] Data acquisition module 01, used to acquire a two-dimensional base map and a safe flight altitude of a target scene, and determine a candidate viewpoint set according to the two-dimensional base map and the safe flight altitude;
[0127] A viewpoint generation module 02, configured to generate an initial viewpoint set according to the candidate viewpoint set based on a plane quality and a viewpoint-plane pair quality, wherein the plane quality is used to measure the texture quality of a single plane, and the viewpoint-plane pair quality is used to measure the quality of a viewpoint-plane pair constructed by a single viewpoint and a plane;
[0128] A viewpoint optimization module 03 is used to optimize the initial viewpoint set by using a multi-objective optimization algorithm to determine an optimized viewpoint set;
[0129] The path determination module 04 is used to determine the drone shooting path according to the candidate viewpoint set and the optimized viewpoint set.
[0130] Based on the above embodiment, the present invention further provides a terminal, whose principle block diagram can be shown as follows: Fig. 9 As shown. The terminal includes a processor, a memory, a network interface, and a display screen connected through a system bus. Among them, the processor of the terminal is used to provide computing and control capabilities. The memory of the terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the terminal is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for planning the path of a drone is implemented. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen.
[0131] Those skilled in the art will understand that Fig. 9 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the terminal to which the scheme of the present invention is applied. The specific terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0132] In one implementation, the terminal has one or more programs stored in its memory, and is configured to be executed by one or more processors, wherein the one or more programs include instructions for performing a method for planning a path for a drone.
[0133] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0134] In summary, the present invention discloses a method, device, terminal and storage medium for drone path planning, wherein the method obtains a two-dimensional base map and a safe flight altitude of a target scene, determines a candidate viewpoint set according to the two-dimensional base map and the safe flight altitude; generates an initial viewpoint set according to the candidate viewpoint set based on the plane quality and the viewpoint-plane pair quality, wherein the plane quality is used to measure the texture quality of a single plane, and the viewpoint-plane pair quality is used to measure the quality of the viewpoint-plane pair constructed by a single viewpoint and a plane; optimizes the initial viewpoint set using a multi-objective optimization algorithm to determine an optimized viewpoint set; and determines the drone shooting path according to the candidate viewpoint set and the optimized viewpoint set. The present invention obtains a viewpoint set capable of reconstructing high-quality textures by introducing plane quality and viewpoint-plane quality, thereby effectively solving the problem that the prior art does not consider how to collect high-quality image data for texture reconstruction, resulting in the inability to achieve an ideal texture effect when the collected image data is used for texture mapping.
[0135] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for UAV path planning, characterized in that: The method comprises: Acquire a two-dimensional base map and a safe flight altitude of a target scene, and determine a candidate viewpoint set according to the two-dimensional base map and the safe flight altitude; Based on the plane quality and the viewpoint-plane pair quality, an initial viewpoint set is generated according to the candidate viewpoint set, wherein the plane quality is used to measure the texture quality of a single plane, and the viewpoint-plane pair quality is used to measure the quality of a viewpoint-plane pair constructed by a single viewpoint and a plane; Using a multi-objective optimization algorithm to optimize the initial viewpoint set to determine an optimized viewpoint set; Determine a drone shooting path according to the candidate viewpoint set and the optimized viewpoint set; The calculation method of the plane quality includes: , in, and Represent the perspective quality and image quality respectively, and is the weight; Perspective quality Defined as: , in, and is the weight, is the viewpoint set The number of viewpoints, Metric Unit Vector and The distance between express Middle Viewpoint The direction of sight, express The average viewing direction of the midpoint, Representation plane The normal vector of Image Quality Defined as: , in, and is the weight, Represents line of sight distance The normalized value, express The sight distance, express The average of the sight distances of the midpoints, , represent Mid-viewpoint coverage plane The width of the area, represent Width; The method for calculating the viewpoint plane pair quality includes: , in, and Represent the perspective quality and image quality respectively, and is the weight; Perspective quality Defined as: , and is the weight, Metric Unit Vector and The distance between Indicates viewpoint The direction of sight, Represents a viewpoint set The average viewing direction of the midpoint, Representation plane The normal vector of Image Quality Defined as: , and is the weight, Represents line of sight distance The normalized value, Indicates viewpoint The sight distance, , represent Mid-viewpoint coverage plane The width of the area, Representative plane The width of Representative plane Only the viewpoint The proportion of the area where the observations were made.
2. The UAV path planning method according to claim 1, characterized in that: The generating an initial viewpoint set according to the candidate viewpoint set based on the plane quality and the viewpoint plane pair quality comprises: Constructing a plurality of viewpoint plane pairs based on the candidate viewpoint set; Setting an initial sight direction for a viewpoint in each of the viewpoint plane pairs based on the plane quality; The viewpoint-plane pair quality corresponding to each of the viewpoint-plane pairs is calculated, and the initial viewpoint set is determined according to the viewpoint-plane pair quality.
3. The UAV path planning method according to claim 2, characterized in that: The setting of the initial sight line direction for the viewpoint in each viewpoint plane pair based on the plane quality comprises: Sampling within a 180° range centered on the reverse direction of the normal direction of the midpoint plane to determine a number of candidate sight lines; The candidate sight line direction corresponding to the maximum plane quality is selected as the initial sight line direction of the viewpoint centered on the viewpoint plane.
4. The UAV path planning method according to claim 1, characterized in that: The step of optimizing the initial viewpoint set by using a multi-objective optimization algorithm to determine an optimized viewpoint set includes: Sampling the position and sight direction of each viewpoint in the neighborhood of the initial viewpoint set to obtain candidate viewpoint poses corresponding to each viewpoint; Determine a target viewpoint pose among the candidate viewpoint poses based on a multi-objective optimization algorithm; The initial viewpoint set is screened according to the target viewpoint pose corresponding to each viewpoint to determine the optimized viewpoint set.
5. The UAV path planning method according to claim 1, characterized in that: The determining of the drone shooting path according to the candidate viewpoint set and the optimized viewpoint set includes: Constructing a fully connected graph according to the candidate viewpoint set and the optimized viewpoint set; The minimum cost path corresponding to the fully connected graph is solved based on the traveling salesman problem as the drone shooting path.
6. A drone path planning device, characterized in that: The device comprises: A data acquisition module, used to acquire a two-dimensional base map and a safe flight altitude of a target scene, and determine a candidate viewpoint set according to the two-dimensional base map and the safe flight altitude; A viewpoint generation module, configured to generate an initial viewpoint set according to the candidate viewpoint set based on a plane quality and a viewpoint-plane pair quality, wherein the plane quality is used to measure the texture quality of a single plane, and the viewpoint-plane pair quality is used to measure the quality of a viewpoint-plane pair constructed by a single viewpoint and a plane; A viewpoint optimization module, used to optimize the initial viewpoint set using a multi-objective optimization algorithm to determine an optimized viewpoint set; A path determination module, used to determine a drone shooting path according to the candidate viewpoint set and the optimized viewpoint set; The calculation method of the plane quality includes: , in, and Represent the perspective quality and image quality respectively, and is the weight; Perspective quality Defined as: , in, and is the weight, is the viewpoint set The number of viewpoints, Metric Unit Vector and The distance between express Middle Viewpoint The direction of sight, express The average viewing direction of the midpoint, Representation plane The normal vector of Image Quality Defined as: , in, and is the weight, Represents line of sight distance The normalized value, express The sight distance, express The average of the sight distances of the midpoints, , represent Mid-viewpoint coverage plane The width of the area, represent Width; The method for calculating the viewpoint plane pair quality includes: , in, and Represent the perspective quality and image quality respectively, and is the weight; Perspective quality Defined as: , and is the weight, Metric Unit Vector and The distance between Indicates viewpoint The direction of sight, Represents a viewpoint set The average viewing direction of the midpoint, Representation plane The normal vector of Image Quality Defined as: , and is the weight, Represents line of sight distance The normalized value, Indicates viewpoint The sight distance, , represent Mid-viewpoint coverage plane The width of the area, Representative plane The width of Representative plane Only the viewpoint The proportion of the area where the observations were made.
7. A terminal, characterized in that: The terminal includes a memory and one or more processors; the memory stores one or more programs; the program contains instructions for executing the drone path planning method as described in any one of claims 1-5; and the processor is used to execute the program.
8. A computer-readable storage medium having a plurality of instructions stored thereon, characterized in that: The instructions are suitable for being loaded and executed by a processor to implement the steps of the drone path planning method described in any one of claims 1-5 above.
