[go: up one dir, main page]

CN118816899A - A UAV path planning method, device, terminal and storage medium - Google Patents

A UAV path planning method, device, terminal and storage medium Download PDF

Info

Publication number
CN118816899A
CN118816899A CN202411312008.1A CN202411312008A CN118816899A CN 118816899 A CN118816899 A CN 118816899A CN 202411312008 A CN202411312008 A CN 202411312008A CN 118816899 A CN118816899 A CN 118816899A
Authority
CN
China
Prior art keywords
viewpoint
plane
quality
candidate
viewpoint set
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202411312008.1A
Other languages
Chinese (zh)
Other versions
CN118816899B (en
Inventor
熊卫丹
黄惠
胡梓榆
张洪芊
曾博川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen University
Original Assignee
Shenzhen University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen University filed Critical Shenzhen University
Priority to CN202411312008.1A priority Critical patent/CN118816899B/en
Publication of CN118816899A publication Critical patent/CN118816899A/en
Application granted granted Critical
Publication of CN118816899B publication Critical patent/CN118816899B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/20Instruments for performing navigational calculations
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C11/00Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Automation & Control Theory (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本发明公开了一种无人机路径规划方法、装置、终端及存储介质,所述方法根据二维底图和安全飞行高度确定候选视点集;基于平面质量和视点平面对质量,根据候选视点集生成初始视点集,其中,平面质量用于衡量单个平面的纹理质量,视点平面对质量用于衡量单个视点与平面所构建的视点平面对的质量;采用多目标优化算法对初始视点集进行优化,确定优化视点集;根据候选视点集和优化视点集确定无人机拍摄路径。本发明通过引入平面质量和视点平面质量来得到能够重建高质量纹理的视点集,从而有效的解决现有技术未考虑如何针对纹理重建采集高质量的影像数据,导致采集的影像数据用于纹理贴图时不能达到理想的纹理效果的问题。

The present invention discloses a method, device, terminal and storage medium for drone path planning. The method determines a candidate viewpoint set according to a two-dimensional base map and a safe flight altitude; generates an initial viewpoint set according to the candidate viewpoint set based on plane quality and 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; 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.

Description

一种无人机路径规划方法、装置、终端及存储介质A UAV path planning method, device, terminal and storage medium

技术领域Technical Field

本发明涉及计算机图形学领域,尤其涉及的是一种无人机路径规划方法、装置、终端及存储介质。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

大规模数字孪生城市的构建通常基于无人机(Unmanned Aerial Vehicle,UAV)采集的图像素材生成带有逼真纹理的结构化模型。目前的UAV采集方法主要以高质量的几何重建为目标。例如:(1)采用体积分层表征,用于估计重建场景每个部分的成本,平衡最大化视点的信息增益和最小化路径长度两个目标;(2)采用场景覆盖模型,制定子模块优化方法来确定每个候选视点的最佳方向,使用整数线性程序从候选视点中选择最佳路径,最大化场景覆盖的同时获得较短路径长度;(3)引入可重建度量预测重建质量,采用一种基于启发式的连续优化方法,最大化场景中所有视点的可重建性;(4)采用无需实地考察的自适应无人机路径规划算法,根据建筑物和对应阴影之间的关系为场景估计2.5维模型,用最大-最小优化方法选择最小的视点集,在相同数量的视点下最大化重建质量;(5)用于城市场景重建的实时UAV路径规划方法,利用俯视图生成初始路径,通过SLAM(即时定位与地图构建)框架估算建筑的高度并拍摄特写照片以揭示建筑细节,在建筑物间和建筑物内两个层面最小化路径长度。这些UAV路径规划研究工作,旨在更好、更快地重建完整、准确的稠密模型。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.

但上述这些方法并未考虑如何针对纹理重建采集高质量的影像数据,导致采集的影像数据用于纹理贴图时不能达到理想的纹理效果。采集得到的图像用于纹理重建时,由于城市建筑表面具有丰富的直线特征与清晰的部件结构,纹理十分容易出现认知层面的失调问题,比如单一建筑立面的窗户的透视关系不统一等。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.

因此,现有技术还有待改进和发展。Therefore, the existing technology still needs to be improved and developed.

发明内容Summary of the invention

本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一种无人机路径规划方法、装置、终端及存储介质,旨在解决现有技术并未考虑如何针对纹理重建采集高质量的影像数据,导致采集的影像数据用于纹理贴图时不能达到理想的纹理效果的问题。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.

本发明解决问题所采用的技术方案如下:The technical solution adopted by the present invention to solve the problem is as follows:

第一方面,本发明实施例提供一种无人机路径规划方法,其中,所述方法包括: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:

获取目标场景的二维底图和安全飞行高度,根据所述二维底图和所述安全飞行高度确定候选视点集;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;

根据所述候选视点集和所述优化视点集确定无人机拍摄路径。The drone shooting path is determined according to the candidate viewpoint set and the optimized viewpoint set.

在一种实施方法中,所述基于平面质量和视点平面对质量,根据所述候选视点集生成初始视点集,包括: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:

基于所述候选视点集构建若干视点平面对;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.

在一种实施方法中,所述基于所述平面质量对各所述视点平面对中的视点设置初始视线方向,包括:In an implementation method, setting an initial sight line direction for a viewpoint in each viewpoint plane pair based on the plane quality includes:

在所述视点平面对中平面法线方向的逆方向为中心的180°范围内采样,确定若干候选视线方向;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.

在一种实施方法中,所述平面质量的计算方法包括:In one implementation method, the method for calculating 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 value of the sight distance of the midpoint, , represent Mid-viewpoint coverage plane The width of the area, represent Width.

在一种实施方法中,所述视点平面对质量的计算方法包括:In one implementation method, 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.

在一种实施方法中,所述采用多目标优化算法对所述初始视点集进行优化,确定优化视点集,包括:In one implementation method, the adopting a multi-objective optimization algorithm to optimize the initial viewpoint set to determine the 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.

在一种实施方法中,所述根据所述候选视点集和所述优化视点集确定无人机拍摄路径,包括:In one implementation method, determining 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.

第二方面,本发明实施例还提供一种无人机路径规划装置,其中,所述无人机路径规划装置包括:In a second aspect, an embodiment of the present invention further provides a drone path planning device, wherein the drone path planning 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 is used to determine the drone shooting path according to the candidate viewpoint set and the optimized viewpoint set.

第三方面,本发明实施例还提供一种终端,所述终端包括有存储器和一个以上处理器;所述存储器存储有一个以上的程序;所述程序包含用于执行如上述任一所述的无人机路径规划方法的指令;所述处理器用于执行所述程序。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.

第四方面,本发明实施例还提供一种计算机可读存储介质,其上存储有多条指令,其中,所述指令适用于由处理器加载并执行,以实现上述任一所述的无人机路径规划方法。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.

本发明的有益效果:本发明实施例通过获取目标场景的二维底图和安全飞行高度,根据二维底图和安全飞行高度确定候选视点集;基于平面质量和视点平面对质量,根据候选视点集生成初始视点集,其中,平面质量用于衡量单个平面的纹理质量,视点平面对质量用于衡量单个视点与平面所构建的视点平面对的质量;采用多目标优化算法对初始视点集进行优化,确定优化视点集;根据候选视点集和优化视点集确定无人机拍摄路径。本发明通过引入平面质量和视点平面质量来得到能够重建高质量纹理的视点集,从而有效的解决现有技术未考虑如何针对纹理重建采集高质量的影像数据,导致采集的影像数据用于纹理贴图时不能达到理想的纹理效果的问题。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

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。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.

图1是本发明实施例提供的无人机路径规划方法的流程示意图。FIG1 is a schematic flow chart of a method for UAV path planning according to an embodiment of the present invention.

图2是本发明实施例提供的平面点阵的生成和下探视点的划分图。FIG. 2 is a diagram showing the generation of a plane dot matrix and the division of downward viewpoints provided by an embodiment of the present invention.

图3是本发明实施例提供的视点可观测的所有平面示意图。FIG. 3 is a schematic diagram of all planes observable from viewpoints provided by an embodiment of the present invention.

图4是本发明实施例提供的可观测到平面的所有视点示意图。FIG. 4 is a schematic diagram of all viewpoints from which a plane can be observed provided by an embodiment of the present invention.

图5是本发明实施例提供的下探视点选择结果示意图。FIG. 5 is a schematic diagram of a downward viewpoint selection result provided by an embodiment of the present invention.

图6是本发明实施例提供的初始视点优化结果示意图。FIG. 6 is a schematic diagram of an initial viewpoint optimization result provided by an embodiment of the present invention.

图7是本发明实施例提供的纹理贴图结果示意图。FIG. 7 is a schematic diagram of a texture mapping result provided by an embodiment of the present invention.

图8是本发明实施例提供的无人机路径规划装置的内部模块示意图。FIG8 is a schematic diagram of the internal modules of the UAV path planning device provided in an embodiment of the present invention.

图9是本发明实施例提供的终端的原理框图。FIG. 9 is a functional block diagram of a terminal provided in an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

本发明公开了一种无人机路径规划方法、装置、终端及存储介质,为使本发明的目的、技术方案及效果更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。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.

本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。 应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。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.

本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。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.

目前的UAV采集方法主要以高质量的几何重建为目标,并未考虑针对纹理重建采集高质量的影像数据,因此采集的影像数据用于纹理贴图时不能达到理想的纹理效果。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.

针对现有技术的上述缺陷,本发明提供一种无人机路径规划方法、装置、终端及存储介质,所述方法通过获取目标场景的二维底图和安全飞行高度,根据二维底图和安全飞行高度确定候选视点集;基于平面质量和视点平面对质量,根据候选视点集生成初始视点集,其中,平面质量用于衡量单个平面的纹理质量,视点平面对质量用于衡量单个视点与平面所构建的视点平面对的质量;采用多目标优化算法对初始视点集进行优化,确定优化视点集;根据候选视点集和优化视点集确定无人机拍摄路径。本发明通过引入平面质量和视点平面质量来得到能够重建高质量纹理的视点集,从而有效的解决现有技术未考虑如何针对纹理重建采集高质量的影像数据,导致采集的影像数据用于纹理贴图时不能达到理想的纹理效果的问题。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.

示例性方法Exemplary Methods

如图1所示,所述方法包括:As shown in FIG1 , the method comprises:

步骤S100、获取目标场景的二维底图和安全飞行高度,根据所述二维底图和所述安全飞行高度确定候选视点集;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;

二维底图为目标场景对应的二维俯视底图,二维俯视底图中,每个轮廓多边形代表一栋建筑,轮廓多边形的边代表建筑立面。安全飞行高度为无人机的最低的安全飞行高度。本实施例在固定的安全飞行高度H上,基于二维底图生成完全覆盖目标场景的平面点阵,将该平面点阵作为候选视点集用于后续的视点筛选。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.

如图1所示,所述方法具体还包括:As shown in FIG1 , the method further includes:

步骤S200、基于平面质量和视点平面对质量,根据所述候选视点集生成初始视点集,其中,所述平面质量用于衡量单个平面的纹理质量,所述视点平面对质量用于衡量单个视点与平面所构建的视点平面对的质量。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.

具体地,平面为建筑立面,本实施例定义了平面质量和视点平面质量两项质量指标。其中,平面质量基于一组二维视点衡量平面最终的纹理质量,视点平面对质量衡量二维视点与平面构建的视点平面对的质量,这两项质量用于指导视点的选择。本实施例基于平面质量和视点平面质量,根据候选视点集生成初始视点集,使得该初始视点集能够最大化覆盖目标场景中的建筑立面,并能保证初始视点集中的视点具有高透视一致性和高图像质量。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.

在一种实现方式中平面质量用于衡量单个平面的纹理质量,给定一组视点,所述平面质量的计算方法包括: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:

,

其中,分别表示透视质量和图像质量,为权重;in, and Represent the perspective quality and image quality respectively, and is the weight;

透视质量用于衡量中视点的视线方向一致性和视线方向正对的程度。透视质量定义为: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:

,

其中,分别为视线方向一致性和视线方向正对项的权重,中视点的数量,衡量单位向量之间的距离,表示中视点的视线方向,表示中视点的平均视线方向,表示平面的法向量;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

图像质量衡量平面纹理的图像质量,包括图像素材的高清度、图像分辨率的一致性、图像覆盖平面的完整度以及图像覆盖平面的不可或缺度。给定,衡量的图像质量主要是衡量相对于的分辨率一致性和覆盖度。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.

图像质量定义为:Image Quality Defined as:

,

其中,分别是分辨率一致性和覆盖度的权重,中视点的数量,代表视线距离归一化后的值,表示的视线距离,表示中视点的视线距离的平均值,代表中视点覆盖平面的区域宽度,代表的宽度。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.

在一种实现方式中,给定中单个视点,衡量与平面构建的视点平面对。视点平面对质量的计算方法包括: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:

,

其中,分别表示透视质量和图像质量,为权重;in, and Represent the perspective quality and image quality respectively, and is the weight;

透视质量衡量的视线方向与平均视线方向的一致性,以及正对的程度。透视质量定义为:Perspective quality measurement The sight direction and the average sight direction consistency, and Directly opposite The degree of 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 mainly considers the high definition, coverage and indispensability of the viewpoint relative to the plane. 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.

在一种实现方式中,所述基于平面质量和视点平面对质量,根据所述候选视点集生成初始视点集,包括: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:

步骤S201、基于所述候选视点集构建若干视点平面对;Step S201, constructing a plurality of viewpoint plane pairs based on the candidate viewpoint set;

步骤S202、基于所述平面质量对各所述视点平面对中的视点设置初始视线方向;Step S202, setting an initial sight line direction for each viewpoint in the viewpoint plane pair based on the plane quality;

步骤S203、计算各所述视点平面对对应的所述视点平面对质量,根据各所述视点平面对质量确定所述初始视点集。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.

具体地,根据候选视点集生成初始视点集的步骤包括:(1)视点平面对构建;(2)视点方向初始化;(3)下探视点选择。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.

(1)视点平面对构建。根据候选视点集构建若干视点平面对的方法包括:在候选视点集中的每个视角位置上,设置五个无人机的拍摄视角,包括一个垂直向下的视角和四个倾斜视角;基于候选视点集,设计无人机从高度H开始,垂直下探生成下探视点,用于在低高度上拍摄建筑立面。如图2所示,根据视点到平面多边形的最小距离和安全距离的阈值,将中的视点划分为可下探视点和不可下探视点;对于每个可下探视点,检测视点可观测到的平面,并构建视点平面对,如图3和图4所示。对于平面,所有观测到的视点,构成的下探视点集。在一种实现方式中,也可以采用不可下探视点与平面构成视点平面对。(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 to generate a downward viewpoint for photographing the building facade at a low height. As shown in Figure 2, according to the minimum distance from the viewpoint to the plane polygon and the threshold of the safety distance, The viewpoints in the image 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, as shown in Figures 3 and 4. , 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.

(2)视点方向初始化。构建视点平面对后,则对视点平面对中视点的视线方向初始化,为每个视点选择一个初始的视线方向。视点方向初始化的步骤包括:在视点平面对中平面法线方向的逆方向为中心的180°范围内均匀采样,确定若干候选视线方向;选取所述平面质量最大时对应的所述候选视线方向为所述视点平面对中视点的所述初始视线方向。视点方向初始化步骤还包括,在确定候选视线方向前,对各视点赋予相同的视线方向。(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.

(3)下探视点选择。下探视点选择用于删除平面对应的视点集中的冗余视点。本实施例采取迭代删除的策略。在每一轮的迭代中,首先计算各视点平面对分别对应的视点平面对质量,视点的质量基于视点与对应的平面构建的视点平面对的质量之和计算得到:(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:

,

每轮迭代,将质量值最低的视点删除,直到不存在冗余的视点,如图5所示,则迭代终止,确定剩下的视点作为初始视点集。In each round of iteration, the viewpoint with the lowest quality value is deleted until there are no redundant viewpoints, as shown in FIG5 , then the iteration is terminated and the remaining viewpoints are determined as the initial viewpoint set.

如图1所示,所述方法具体还包括:As shown in FIG1 , the method further includes:

步骤S300、采用多目标优化算法对所述初始视点集进行优化,确定优化视点集。Step S300: optimizing the initial viewpoint set using a multi-objective optimization algorithm to determine an optimized viewpoint set.

对于初始视点集中的视点,采用多目标优化算法优化各视点的位置和方向,从而优化平面质量,并减少无人机采集图像的时间成本。本实施例中,多目标优化算法的优化目标项包括整个目标场景所需的三维悬停点数量C。此外,为了提升建筑立面的纹理质量,优化目标还包括视点可观测到的建筑立面分别对应的平面质量。多目标优化的目标项为: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 items of multi-objective optimization are:

,

其中,三维悬停点数量的求解方法为:对于给定的视点(二维下探视点)和平面,在的位置进行纵向的从上到下的均匀采样,生成一系列纵向的三维视点,其中,代表三维视点的位置,代表三维视点的视线方向。保证在高度方向有一定重叠地完整覆盖建筑立面。同一位置的二维下探点可以拥有不同的视线方向,用于观测不同建筑立面,因此的位置对应的纵向三维视点,可以通过纵向的位置微调,将距离较近的视点进行纵向合并。纵向合并后即可计算出整个目标场景的三维悬停点数量。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.

在一种实现方式中,所述采用多目标优化算法对所述初始视点集进行优化,确定优化视点集,包括:In one implementation, the adopting a multi-objective optimization algorithm to optimize the initial viewpoint set to determine the optimized viewpoint set includes:

步骤S301、在所述初始视点集中的每一视点的邻域范围内进行位置和视线方向的采样,得到各视点对应的候选视点位姿;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;

步骤S302、基于多目标优化算法确定所述候选视点位姿中的目标视点位姿;Step S302, determining a target viewpoint pose among the candidate viewpoint poses based on a multi-objective optimization algorithm;

步骤S303、根据各视点对应的所述目标视点位姿对所述初始视点集进行筛选,确定所述优化视点集。Step S303: Screening the initial viewpoint set according to the target viewpoint pose corresponding to each viewpoint to determine the optimized viewpoint set.

具体地,本实施例采用以下迭代优化过程,来实现最小化多目标优化算法的目标项。在每轮迭代中,首先在视点的邻域范围内,进行位置以及视线方向的均匀采样,得到候选的位置和视线方向,对候选的位置和视线方向进行组合作为视点的候选位姿;通过多目标优化算法搜索所有的候选组合,得到最优的视点位置和视线方向的组合,作为优化后的视点位姿,即目标视点位姿。其次,根据目标视点位姿和视点平面对质量,对其他视点的冗余进行重新判断,删除冗余的视点。当所有的下探视点不再发生变化时,则判定优化收敛,确定优化视点集,如图6所示。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 judged to have converged, and the optimized viewpoint set is determined, as shown in Figure 6.

如图1所示,所述方法具体还包括:As shown in FIG1 , the method further includes:

步骤S400、根据所述候选视点集和所述优化视点集确定无人机拍摄路径。Step S400: determining a drone shooting path according to the candidate viewpoint set and the optimized viewpoint set.

本实施例通过候选视点集和优化视点集构成总的无人机视点集合。基于该总的无人机视点集合生成路径,即可得到无人机拍摄路径。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.

在一种实现方式中,所述根据所述候选视点集和所述优化视点集确定无人机拍摄路径,包括:In one implementation, determining the drone shooting path according to the candidate viewpoint set and the optimized viewpoint set includes:

步骤S401、根据所述候选视点集和所述优化视点集构建全连接图;Step S401, constructing a fully connected graph according to the candidate viewpoint set and the optimized viewpoint set;

步骤S402、基于旅行商问题求解所述全连接图对应的代价最小路径作为所述无人机拍摄路径。Step S402: solving the minimum cost path corresponding to the fully connected graph based on the traveling salesman problem as the drone shooting path.

为了减少无人机采集图像的时间成本,本实施例基于候选视点集和优化视点集构建全连接图并生成一条串联所有视点的无人机飞行路径,通过求解旅行商问题,得到遍历所有节点且代价最小的路径。本实施例中,将候选视点集和优化视点集中的视点作为图中的节点来构建全连接图,采用求解旅行商问题的方法求解全连接图的代价最小路径。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.

全连接图中连接视点对的边的代价值定义如下:Connecting viewpoint pairs in a fully connected graph The cost value of the edge The definition is as follows:

,

其中,代表视点到视点在安全区域的最短直线距离,代表的视线方向的夹角,代表权重值。该全连接图的代价最小的路径,即为遍历所有视点的最佳的无人机拍摄路径。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.

场景重建步骤包括结构化几何重建和纹理重建。基于生成的无人机拍摄路径进行照片采集,用于场景的几何和纹理重建。在几何重建步骤,首先使用ContextCapture(上下文捕获)软件,基于采集的照片重建高精度的稠密几何模型。其次,采用结构感知的重建算法,获得稠密几何模型的结构化模型。最后,采用TwinTex方法(抽象三维建筑模型的几何感知纹理生成方法)为结构化模型生成高质量的纹理贴图,如图7所示。The scene reconstruction step includes structured geometry reconstruction and texture reconstruction. Photo collection is performed based on the generated drone shooting path for scene geometry and texture reconstruction. 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 three-dimensional architectural models) is used to generate high-quality texture maps for the structured model, as shown in Figure 7.

通过在不同的复杂度的城市场景上进行实验,采用本实施例的方法得到的无人机拍摄路径采集的图像素材用于结构化模型的纹理贴图时,得到的结果具有几个优点:(1)同一建筑立面对应的视点集,视角更一致且正对平面,因此采集的图像素材用于结构化模型的纹理贴图时,可以生成透视一致且视角正对的纹理;(2)建筑立面对应的视点具有高清的特点,因此采集的图像素材用于纹理贴图时,可以生成高清的纹理;(3)生成的纹理具有较少的拼接痕迹、模糊和形变。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.

基于上述实施例,本发明还提供了一种无人机路径规划装置,如图8所示,所述装置包括:Based on the above embodiments, the present invention further provides a UAV path planning device, as shown in FIG8 , the device includes:

数据获取模块01,用于获取目标场景的二维底图和安全飞行高度,根据所述二维底图和所述安全飞行高度确定候选视点集;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;

视点生成模块02,用于基于平面质量和视点平面对质量,根据所述候选视点集生成初始视点集,其中,所述平面质量用于衡量单个平面的纹理质量,所述视点平面对质量用于衡量单个视点与平面所构建的视点平面对的质量;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;

视点优化模块03,用于采用多目标优化算法对所述初始视点集进行优化,确定优化视点集;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;

路径确定模块04,用于根据所述候选视点集和所述优化视点集确定无人机拍摄路径。The path determination module 04 is used to determine the drone shooting path according to the candidate viewpoint set and the optimized viewpoint set.

基于上述实施例,本发明还提供了一种终端,其原理框图可以如图9所示。该终端包括通过系统总线连接的处理器、存储器、网络接口、显示屏。其中,该终端的处理器用于提供计算和控制能力。该终端的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该终端的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现无人机路径规划方法。该终端的显示屏可以是液晶显示屏或者电子墨水显示屏。Based on the above embodiments, the present invention also provides a terminal, whose principle block diagram can be shown in Figure 9. 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 drone path planning is implemented. The display screen of the terminal can be a liquid crystal display or an electronic ink display.

本领域技术人员可以理解,图9中示出的原理框图,仅仅是与本发明方案相关的部分结构的框图,并不构成对本发明方案所应用于其上的终端的限定,具体的终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the principle block diagram shown in FIG9 is only a block diagram of a partial structure related to the solution of the present invention, and does not constitute a limitation on the terminal to which the solution of the present invention is applied. The specific terminal may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

在一种实现方式中,所述终端的存储器中存储有一个以上的程序,且经配置以由一个以上处理器执行所述一个以上程序包含用于进行无人机路径规划方法的指令。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 drone path.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本发明所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。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).

综上所述,本发明公开了一种无人机路径规划方法、装置、终端及存储介质,所述方法通过获取目标场景的二维底图和安全飞行高度,根据二维底图和安全飞行高度确定候选视点集;基于平面质量和视点平面对质量,根据候选视点集生成初始视点集,其中,平面质量用于衡量单个平面的纹理质量,视点平面对质量用于衡量单个视点与平面所构建的视点平面对的质量;采用多目标优化算法对初始视点集进行优化,确定优化视点集;根据候选视点集和优化视点集确定无人机拍摄路径。本发明通过引入平面质量和视点平面质量来得到能够重建高质量纹理的视点集,从而有效的解决现有技术未考虑如何针对纹理重建采集高质量的影像数据,导致采集的影像数据用于纹理贴图时不能达到理想的纹理效果的问题。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.

应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。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 (10)

1.一种无人机路径规划方法,其特征在于,所述方法包括:1. A method for unmanned aerial vehicle 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; 根据所述候选视点集和所述优化视点集确定无人机拍摄路径。The drone shooting path is determined according to the candidate viewpoint set and the optimized viewpoint set. 2.根据权利要求1所述的无人机路径规划方法,其特征在于,所述基于平面质量和视点平面对质量,根据所述候选视点集生成初始视点集,包括:2. The method for UAV path planning according to claim 1, characterized in that the generating of the 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.根据权利要求2所述的无人机路径规划方法,其特征在于,所述基于所述平面质量对各所述视点平面对中的视点设置初始视线方向,包括:3. The method for UAV path planning according to claim 2, characterized in that the step of setting an initial sight line direction for each viewpoint in each viewpoint plane pair based on the plane quality comprises: 在所述视点平面对中平面法线方向的逆方向为中心的180°范围内采样,确定若干候选视线方向;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.根据权利要求1所述的无人机路径规划方法,其特征在于,所述平面质量的计算方法包括:4. The UAV path planning method according to claim 1, wherein the method for calculating the plane quality comprises: , 其中,分别表示透视质量和图像质量,为权重;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 value of the sight distance of the midpoint, , represent Mid-viewpoint coverage plane The width of the area, represent Width. 5.根据权利要求1所述的无人机路径规划方法,其特征在于,所述视点平面对质量的计算方法包括:5. The UAV path planning method according to claim 1, characterized in that the method for calculating the viewpoint plane pair quality comprises: , 其中,分别表示透视质量和图像质量,为权重;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. 6.根据权利要求1所述的无人机路径规划方法,其特征在于,所述采用多目标优化算法对所述初始视点集进行优化,确定优化视点集,包括:6. The method for UAV path planning according to claim 1, characterized in that the step of optimizing the initial viewpoint set by using a multi-objective optimization algorithm to determine the optimized viewpoint set comprises: 在所述初始视点集中的每一视点的邻域范围内进行位置和视线方向的采样,得到各视点对应的候选视点位姿;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. 7.根据权利要求1所述的无人机路径规划方法,其特征在于,所述根据所述候选视点集和所述优化视点集确定无人机拍摄路径,包括:7. The method for drone path planning according to claim 1, wherein determining the drone shooting path according to the candidate viewpoint set and the optimized viewpoint set comprises: 根据所述候选视点集和所述优化视点集构建全连接图;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. 8.一种无人机路径规划装置,其特征在于,所述装置包括:8. 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 is used to determine the drone shooting path according to the candidate viewpoint set and the optimized viewpoint set. 9.一种终端,其特征在于,所述终端包括有存储器和一个以上处理器;所述存储器存储有一个以上的程序;所述程序包含用于执行如权利要求1-7中任一所述的无人机路径规划方法的指令;所述处理器用于执行所述程序。9. 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-7; and the processor is used to execute the program. 10.一种计算机可读存储介质,其上存储有多条指令,其特征在于,所述指令适用于由处理器加载并执行,以实现上述权利要求1-7任一所述的无人机路径规划方法的步骤。10. A computer-readable storage medium having a plurality of instructions stored thereon, wherein 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 to 7.
CN202411312008.1A 2024-09-20 2024-09-20 Unmanned aerial vehicle path planning method, unmanned aerial vehicle path planning device, terminal and storage medium Active CN118816899B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411312008.1A CN118816899B (en) 2024-09-20 2024-09-20 Unmanned aerial vehicle path planning method, unmanned aerial vehicle path planning device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411312008.1A CN118816899B (en) 2024-09-20 2024-09-20 Unmanned aerial vehicle path planning method, unmanned aerial vehicle path planning device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN118816899A true CN118816899A (en) 2024-10-22
CN118816899B CN118816899B (en) 2024-12-17

Family

ID=93085703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411312008.1A Active CN118816899B (en) 2024-09-20 2024-09-20 Unmanned aerial vehicle path planning method, unmanned aerial vehicle path planning device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN118816899B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119540453A (en) * 2024-11-11 2025-02-28 中国人民解放军国防科技大学 A UAV trajectory planning method for visual 3D reconstruction of urban scenes

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190339703A1 (en) * 2017-01-18 2019-11-07 Huawei Technologies Co., Ltd. Path Planning Method and Apparatus
CN115979273A (en) * 2023-01-28 2023-04-18 西安交通大学 UAV full coverage path planning method and system based on adaptive viewpoint sampling
CN117970951A (en) * 2023-12-05 2024-05-03 深圳大学 Unmanned aerial vehicle modeling three-dimensional route planning method, terminal and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190339703A1 (en) * 2017-01-18 2019-11-07 Huawei Technologies Co., Ltd. Path Planning Method and Apparatus
CN115979273A (en) * 2023-01-28 2023-04-18 西安交通大学 UAV full coverage path planning method and system based on adaptive viewpoint sampling
CN117970951A (en) * 2023-12-05 2024-05-03 深圳大学 Unmanned aerial vehicle modeling three-dimensional route planning method, terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
金伟: "小型双发固定翼无人机飞行控制系统设计", 中国优秀硕士学位论文全文数据库 (工程科技Ⅱ辑), 15 June 2020 (2020-06-15), pages 031 - 112 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119540453A (en) * 2024-11-11 2025-02-28 中国人民解放军国防科技大学 A UAV trajectory planning method for visual 3D reconstruction of urban scenes

Also Published As

Publication number Publication date
CN118816899B (en) 2024-12-17

Similar Documents

Publication Publication Date Title
CN106338736B (en) A full 3D occupancy voxel terrain modeling method based on lidar
CN110084785A (en) A kind of power transmission line based on Aerial Images hangs down arc measurement method and system
CN115719407A (en) Distributed multi-view stereo reconstruction method for large-scale aerial images
CN118816899A (en) A UAV path planning method, device, terminal and storage medium
CN119850853B (en) A fully automatic, fast, high-precision 3D reconstruction method and system
CN115509224A (en) A Synchronous Optimization Method of Measurement Viewpoint and Measurement Path Based on Reinforcement Learning
CN115082699B (en) Contour shape extraction method and device, electronic equipment and storage medium
CN119399362A (en) Method and system for constructing real-scene three-dimensional model of building
CN115129291A (en) Three-dimensional oblique photography measurement model visualization optimization method, device and equipment
Gu et al. Drone photogrammetry-based wind field simulation for climate adaptation in urban environments
CN115421509B (en) Unmanned aerial vehicle flight shooting planning method, unmanned aerial vehicle flight shooting planning device and storage medium
Liu et al. Dense stereo matching strategy for oblique images that considers the plane directions in urban areas
CN116958449A (en) Urban scene three-dimensional modeling method and device and electronic equipment
CN119151108A (en) Building inspection method, device and system based on BIM technology
CN116821265A (en) Digital city mapping method and system based on distributed operation
CN117235299A (en) Quick indexing method, system, equipment and medium for oblique photographic pictures
CN115017831B (en) Tunnel image modeling method and device based on absolute azimuth control
CN117541729A (en) An architectural model generation system for design
CN116934976A (en) RGBD-based light-weight ancient architecture scene scanning and reconstructing method
CN115018983A (en) Phase-shifting transformer site selection method, device, electronic equipment and storage medium
Wu et al. Optimizing overlap percentage for enhanced accuracy and efficiency in oblique photogrammetry building 3D modeling
CN114863031A (en) Method, device and equipment for calculating overlapping degree of three-dimensional model and storage medium
CN115393516A (en) A 3D reconstruction device based on a depth camera module
CN114332388A (en) DSM vulnerability patching method based on grid distance transformation
CN111951402A (en) Three-dimensional model generation method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant