Three-dimensional reconstruction global precision-oriented path planning method

By constructing a joint constraint function and optimizing the viewpoint position, combined with the ocean predator algorithm, the tedious and accuracy problems of three-dimensional reconstruction path planning are solved, and efficient and fast global precision path planning is achieved, which is suitable for a variety of scenarios.

CN118625822APending Publication Date: 2024-09-10BEIJING INST OF TECH

Patent Information

Application Number
CN202410506680.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing 3D reconstruction path planning methods are cumbersome, time-consuming, and difficult to ensure global accuracy. Especially in irregular plane or spherical scenes, image detail loss and redundant information are prone to occur, and multi-UAV solutions increase equipment requirements, battery life, and energy consumption. The problem is that it is limited to the local search range and cannot achieve a better path.

Method used

The multi-view motion recovery structure and the principle of binocular stereo vision are used to construct a joint constraint function. The reconfigurability and visibility constraint functions are combined to calculate the information domain score of the sampling point. The viewpoint position is optimized through the descending simplex method and the ocean predator algorithm is used. Path planning ensures global search capabilities and accuracy.

Benefits of technology

It achieves efficient and fast 3D reconstruction path planning, improves reconstruction accuracy, reduces redundant information, is suitable for small and medium-sized scenes and irregular surfaces, reduces calculation time costs, and ensures global accuracy and search capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625822A
    Figure CN118625822A
Patent Text Reader

Abstract

The invention discloses a three-dimensional reconstruction global precision-oriented path planning method, and belongs to the technical field of three-dimensional reconstruction. The path planning method comprises the following steps: constructing a reconfigurable constraint function and a visibility constraint function as a combined constraint function according to a multi-view motion recovery structure and a binocular stereoscopic vision principle; calculating an information domain score of the sampling point by using a joint constraint function, and taking the calculated information domain score of the sampling point as a target function of subsequent viewpoint optimization; a descending simplex method is used as an optimization algorithm, the spatial position of the viewpoint is optimized and searched, the position of the viewpoint is iteratively optimized until a preset information domain score threshold value is reached, and the optimized spatial position of the viewpoint is obtained; and applying the optimized viewpoint spatial position to a three-dimensional traveling salesman problem, and performing path planning by using a marine predator algorithm. The planning method provided by the invention is not only universal and has better global search capability, but also can ensure the global precision of reconstruction, and is efficient and rapid at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional reconstruction, and more specifically, to a path planning method for global accuracy of three-dimensional reconstruction. Background Art

[0002] At present, in the path planning of 3D reconstruction, the planning scheme is mainly to plan the image acquisition route on a fixed plane or a fixed sphere, and collect a large number of images along the way. However, the reconstructed object or scene is usually not a regular plane, and it is easy for some image details to be blurred and some structures to be blocked, resulting in the loss of local details of the reconstruction. At the same time, some areas have a large amount of redundant information due to excessive acquisition, and the post-processing efficiency is low. The above image acquisition method is cumbersome and time-consuming, and it is difficult to ensure the global accuracy of the reconstruction. At the same time, path planning for existing viewpoints is defined as a three-dimensional traveling salesman problem, and the current various heuristic search algorithms such as ant colony algorithm and genetic algorithm are mostly applied to the two-dimensional traveling salesman problem. At the same time, the above search speed still has certain limitations.

[0003] For example, the application document with Chinese patent application number 202311253721.9 and application date September 26, 2023 discloses a multi-UAV path planning method and system for 3D reconstruction, including the following steps: capturing vertical images based on a grid trajectory and reconstructing a rough 3D model as prior information; uniformly sampling the rough model surface, and uniformly generating multiple candidate viewpoints in the scene where the rough model is located, and then establishing a reconstruction degree prediction model for surface points based on the principle of multi-view geometric 3D reconstruction; determining the key task positions for multiple UAVs based on the reconstruction degree loss estimation results of the entire scene, and using the cuckoo algorithm to assign the optimal task sequence; multiple UAVs take turns to extend the trajectory to the location of the next task based on an improved A* algorithm according to their respective task sequences; multiple UAVs fly along the trajectory and capture scene images, and finally reconstruct a fine 3D model. The application document realizes that multiple UAVs autonomously capture scene images in a collaborative manner and reconstruct high-quality 3D models. However, this method is based on multi-UAV modeling and path planning, and multiple UAVs mean higher equipment requirements, thereby narrowing the scope of application. Secondly, this method does not consider the impact of the image acquisition quality of each viewpoint position on the three-dimensional reconstruction accuracy. Due to the endurance and energy consumption issues of the multi-UAV solution, this method can only use the coverage rate of the viewpoint to the sampling points as an indicator and cannot adopt a higher coverage rate. In addition, this method uses the A* algorithm for path planning, which may limit the search range to a smaller one in some cases and fail to find a better path farther away, that is, the global search capability is poor.

[0004] Therefore, there is an urgent need to provide a path planning method for three-dimensional reconstruction that is not only relatively universal and has good global search capabilities, but also can ensure the global accuracy of reconstruction, while being efficient, fast, and does not require a lot of time. Summary of the invention

[0005] In view of this, the present invention provides a path planning method for global accuracy of three-dimensional reconstruction to solve the problem that the path planning method for three-dimensional reconstruction in the prior art is cumbersome and time-consuming, and it is difficult to ensure the global accuracy of reconstruction.

[0006] The present invention discloses a path planning method for global accuracy of three-dimensional reconstruction, comprising:

[0007] Constructing a joint constraint function for 3D reconstruction: Based on the principle of multi-view motion restoration structure and binocular stereo vision, constructing a reconstructability constraint function and a visibility constraint function as a joint constraint function;

[0008] The principle of multi-view motion restoration structure is to automatically restore the parameters of the imaging device and the three-dimensional structure of the scene from multiple images or video sequences, and to infer the three-dimensional structure of the object by estimating the motion of the imaging device and the depth information of the object in the scene;

[0009] The principle of binocular stereo vision is based on the principle of parallax, and uses imaging equipment to obtain two images of the object to be measured from different positions, and obtains the three-dimensional geometric information of the object by calculating the position deviation between corresponding points of the images;

[0010] The reconstructability constraint function is used to evaluate the contribution of a sampling point in 3D reconstruction;

[0011] The visibility constraint function is used to evaluate the quality of image acquisition at each viewpoint position;

[0012] Calculate the information domain score of the sampling point: use the joint constraint function to calculate the information domain score of the sampling point, and use the calculated information domain score of the sampling point as the objective function of the subsequent viewpoint optimization; where the information domain score is used to represent the contribution of the sampling point to the 3D reconstruction;

[0013] Optimize the spatial position of the viewpoint: Use the descending simplex method as the optimization algorithm to optimize and search the spatial position of the viewpoint, iteratively optimize the position of the viewpoint until the preset information domain score threshold is reached, and the optimized spatial position of the viewpoint is obtained;

[0014] Path planning: Apply the optimized viewpoint spatial position to the three-dimensional traveling salesman problem, and use the marine predator algorithm for path planning; wherein, applying the optimized viewpoint spatial position to the three-dimensional traveling salesman problem is the shortest path planning starting from an initial position, passing through all optimized viewpoints once, and finally returning to the initial position.

[0015] Optionally, in constructing a joint constraint function for three-dimensional reconstruction: the three-dimensional reconstruction restores the three-dimensional space through the collected two-dimensional images, and the collected images corresponding to every two viewpoints are a pair, and the reconstruction is performed using the binocular stereo vision principle, and then all viewpoints are traversed to perform overall three-dimensional reconstruction based on the multi-view motion recovery structure principle.

[0016] Further optionally, the factors considered during the three-dimensional reconstruction include at least the angle of the viewpoints, the distance of the viewpoints, and the normal angle.

[0017] Optionally, the visibility constraint function is:

[0018]

[0019] Among them, cosθ is the orthographic constraint, R1 is the radius of the sampling point hemisphere, and R2i is the radius of the visibility sphere Ri of the i-th viewpoint for the current sampling point hemisphere.

[0020] Optionally, the reconfigurability constraint function is:

[0021] c(s, V1, V2)=w1(α)w2(d)w3(α)cosθ;

[0022] Among them, cosθ is the positive constraint;

[0023] w1(α)=(1+exp(-k1·(α-α1))) -1 ;

[0024] w1(α) is the triangulation logistic function, which simulates the parallax dependence of the triangulation error;

[0025] w2(d)=1-min(d / d max , 1);

[0026] w2(d) is the depth constraint function, which simulates the effect of distance on reconstructability;

[0027] w3(α)=1-(1+exp(-k3·(α-α3))) -1 ;

[0028] w3 is the parallax matching logistic function, w3(α) measures the dependence of the matching degree on the parallax;

[0029] θ=max(θ1,θ2);

[0030] s is the sampling point, V1 and V2 are the two visible perspectives corresponding to the sampling point, α is the angle between the two perspectives, and d max is the maximum viewing distance, is a constant, d is the maximum value of the distances from the two viewpoints to the sampling point, θ1 is the angle between the normal of the sampling point and the direction of the viewpoint V1, θ2 is the angle between the normal of the sampling point and the direction of the viewpoint V2, k1, α1, k3, α3 are adjustable parameters.

[0031] Further optionally, w1(α) and w3(α) are a pair of mutually exclusive constraint relationships, and in the reconstructible constraint function, w1(α)×w3(α) is a parallax joint constraint function, and is a function relationship that first increases and then decreases.

[0032] Optionally, in calculating the information domain score of the sampling points, the sampling points are discrete sampling point clouds of an area requiring three-dimensional reconstruction.

[0033] Optionally, optimizing the spatial positions of the viewpoints includes: randomly selecting a set of viewpoints and calculating their corresponding information domain scores;

[0034] Iteratively update the positions of vertices, edges, and faces to reduce the information domain score;

[0035] During the iteration process, the appropriate viewpoint space position is searched by continuously adjusting the position of the vertices until the preset information domain score threshold is reached to obtain the optimized viewpoint space position.

[0036] Optionally, optimize the viewpoint's spatial position, including:

[0037] Determine whether the calculated information domain score of the sampling point meets a preset information domain score threshold;

[0038] If so, the optimized viewpoint space position is obtained;

[0039] If not, the descending simplex method is used as the optimization algorithm to optimize and search the spatial position of the viewpoint, and the position of the viewpoint is iteratively optimized until the preset information domain score threshold is reached to obtain the optimized viewpoint spatial position.

[0040] Optionally, the marine predator algorithm performs path planning through the steps of individual position update, prey perception and tracking, and group collaboration.

[0041] Compared with the prior art, the path planning method for global accuracy of three-dimensional reconstruction provided by the present invention achieves at least the following beneficial effects:

[0042] The path planning method for global accuracy of three-dimensional reconstruction provided by the present invention, through multi-view motion recovery structure and binocular stereo vision principle, combined with depth of field constraint, reconfigurability constraint and simplified solid angle visibility constraint function, constructs a joint constraint function to calculate the full-field information domain of the sampling point, the information domain can characterize the accuracy of three-dimensional reconstruction, and can realize efficient global-oriented three-dimensional reconstruction. The path planning method provided by the present invention can improve the accuracy in the area where the accuracy of the ordinary path planning method is insufficient, and reduce the redundancy in the area where the point cloud is redundant, so as to realize three-dimensional reconstruction that takes more global accuracy into consideration. At the same time, the present invention introduces the three-dimensional descending simplex method and the marine predator algorithm to realize the optimization of the viewpoint space position and the path planning for all viewpoints, solve the search optimization problem in the three-dimensional space, and finally realize the fast path planning to solve the three-dimensional traveling salesman problem. The three-dimensional reconstruction accuracy is characterized by the information domain to achieve the effect of improving accuracy and reducing redundancy; the viewpoint network is determined by spatial search through the three-dimensional descending simplex method with the information domain as the objective function, and then the three-dimensional traveling salesman problem is solved by the marine predator algorithm, so as to quickly and efficiently solve the path planning problem of the existing viewpoint. The path planning method of the present invention does not need to adopt multi-UAV modeling, such as being applicable to the three-dimensional reconstruction of small and medium-scale scenes using UAVs, or being applicable to the three-dimensional reconstruction of irregular surfaces constructed using a mechanical arm fixed camera. It is not only relatively universal and does not require a lot of time and energy consumption, but also can ensure good global search capabilities, ensuring the global accuracy of reconstruction while efficiently and quickly planning the global optimal path. The path planning method provided by the present invention, aimed at the specific needs of global three-dimensional reconstruction, achieves significant improvement in the accuracy of three-dimensional reconstruction while greatly reducing the cost of computing time; through the carefully designed three-dimensional reconstruction joint constraint function, the two major factors of reconfigurability and visibility are fully considered, ensuring that the images collected in three-dimensional space can obtain the best quality three-dimensional reconstruction results under the premise of satisfying the principles of binocular stereo vision and multi-view motion recovery structure.

[0043] Of course, any product implementing the present invention does not necessarily need to achieve all of the technical effects described above at the same time.

[0044] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.

[0046] Figure 1 It is a flowchart of a path planning method for global accuracy of three-dimensional reconstruction provided by an embodiment of the present invention;

[0047] Figure 2 It is another flowchart of a path planning method for global accuracy of three-dimensional reconstruction provided by an embodiment of the present invention;

[0048] Figure 3 yes Figure 2 Schematic diagram of the sampling point hemisphere, viewpoint and visibility sphere space when constructing the visibility constraint function;

[0049] Figure 4 yes Figure 2 Schematic diagram of the intersection of the sampling point hemisphere and the visibility sphere when constructing the visibility constraint function;

[0050] Figure 5 yes Figure 4 Schematic diagram of the structure of a cone constructed after the hemisphere of the sampling point in the middle intersects the visibility sphere, with the intersection circle as the base and the sampling point as the vertex;

[0051] Figure 6 yes Figure 2 Schematic diagram of the spatial position relationship between viewpoints and sampling points when constructing the reconfigurability constraint function;

[0052] Figure 7 It is a visualization diagram of the parallax joint constraint function;

[0053] Figure 8 is a schematic diagram of modeling a curved plate component of a reconstruction example in an embodiment of the present invention;

[0054] Fig. 9 Is adopted Figure 2 Schematic diagram of the sampling point set obtained by uniform discrete sampling of the path planning method;

[0055] Fig.10 Is adopted Figure 2 The viewpoint network and the spatial position diagram of the sampling point set obtained by the path planning method;

[0056] Fig.11 Is adopted Figure 2 Schematic diagram of the viewpoint network and the spatial position of the sampling point set after the path planning method is optimized;

[0057] Fig.12 Is adopted Figure 2 Schematic diagram of the viewpoint network space position after the path planning method is optimized;

[0058] Fig.13 It is a schematic diagram comparing the viewpoint network positions in the same coordinate system before and after optimization;

[0059] Fig.14 Is adopted Figure 2 Schematic diagram of the path obtained by the path planning method. DETAILED DESCRIPTION

[0060] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.

[0061] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

[0062] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0063] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0064] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0065] Embodiment 1

[0066] Please refer to Figure 1 , Figure 1 : is a flowchart of a path planning method for global accuracy of three-dimensional reconstruction provided by an embodiment of the present invention. This embodiment provides a path planning method for global accuracy of three-dimensional reconstruction, including:

[0067] S11: Constructing a joint constraint function for 3D reconstruction: Based on the principle of multi-view motion restoration structure and binocular stereo vision, a reconstructability constraint function and a visibility constraint function are constructed as a joint constraint function;

[0068] S12: Calculate the information domain score of the sampling point: use the joint constraint function to calculate the information domain score of the sampling point, and use the calculated information domain score of the sampling point as the objective function of subsequent viewpoint optimization;

[0069] S13: Optimizing the spatial position of the viewpoint: using the descending simplex method as an optimization algorithm, optimizing and searching the spatial position of the viewpoint, iteratively optimizing the position of the viewpoint until a preset information domain score threshold is reached, and obtaining the optimized spatial position of the viewpoint;

[0070] S14: Path Planning: Apply the optimized viewpoint spatial position to the 3D traveling salesman problem and use the marine predator algorithm for path planning.

[0071] Specifically, the path planning method for global accuracy of three-dimensional reconstruction provided by this embodiment is a relatively universal three-dimensional reconstruction path planning method for irregular surfaces, and has a wide range of applications. Before performing path planning, a reconstructible constraint function and a visibility constraint function are first constructed as joint constraint functions for three-dimensional reconstruction based on the principles of multi-view motion recovery structure and binocular stereo vision. Among them, the reconstructible constraint function considers the structure and camera parameters of objects in the scene to evaluate the contribution of a sampling point in three-dimensional reconstruction; the visibility constraint function considers the quality of image acquisition of the sampling point by the viewpoint at the current position to ensure that the selected viewpoint position can maximize the image acquisition quality.

[0072] In order to achieve the highest possible accuracy of three-dimensional reconstruction, it is necessary to perform the reconstruction based on certain constraints. Therefore, the path planning method of this embodiment adopts the reconstructability constraint function and the visibility constraint function as the joint constraint function of three-dimensional reconstruction. The reconstructability constraint function is used to evaluate the contribution of a sampling point in three-dimensional reconstruction. It combines the structure of the object in the scene and the camera parameters. The constraint function is mainly based on the structure-from-motion (SFM, which is a technology that can automatically recover the camera parameters and the three-dimensional structure of the scene from multiple images or video sequences). By estimating the camera's motion and the depth information of the object in the scene, the three-dimensional structure of the object is inferred. When calculating the reconstructability constraint, the mapping relationship from pixels to spatial coordinates can be considered, and the geometric relationship between adjacent views can be used to estimate the depth of the object, so that the contribution of the sampling point can be evaluated according to the reconstruction error of the sampling point in three-dimensional space. The visibility constraint function is used to ensure that the selected viewpoint position can improve the image acquisition quality of the sampling point as much as possible. In binocular stereo vision (Binocular Stereo Vision is an important form of machine vision. It is based on the principle of parallax and uses imaging equipment to obtain two images of the object to be measured from different positions. The three-dimensional geometric information of the object is obtained by calculating the position deviation between corresponding points of the images). The visibility constraint function is constructed by calculating the visibility of the sampling point in all viewpoints. For each sampling point, the visibility in the binocular camera is estimated by triangulation method according to the position and posture of the viewpoint. Therefore, in the path planning process, the viewpoint with the highest visibility can be selected to ensure that as much scene information as possible is obtained.

[0073] The path planning method for the global accuracy of three-dimensional reconstruction provided in this embodiment adopts a reconstructible constraint function and a visibility constraint function to construct a joint constraint function. Not only does it consider the reconstruction capability of the binocular stereoscopic vision system composed of each pair of viewpoints for the sampling points by adopting the reconstructible function, but it also considers the influence of the image acquisition quality of each viewpoint position on the three-dimensional reconstruction accuracy by adopting the visibility constraint function in a more comprehensive way. Since the quality of image acquisition greatly affects the accuracy of three-dimensional reconstruction. Therefore, the visibility constraint function proposed in this embodiment is used to evaluate the quality of image acquisition at each viewpoint position. The higher the value of the visibility function, the higher the image acquisition quality, that is, the higher the three-dimensional reconstruction accuracy. The specific visibility function evaluates the image acquisition quality based on two criteria: camera imaging is distorted, and the distortion is usually distributed at the edge of the image. Therefore, when taking an orthographic image (that is, the angle constraint), the main object can be placed in the middle of the image, so the distortion is small and the reconstruction accuracy is high; within the depth of field range (the depth of field range is a distance range that the camera can image), the closer the distance is, the higher the image acquisition quality and the finer the features are at the same image resolution, so the reconstruction accuracy is also higher. Therefore, the method of this embodiment constructs a joint constraint function through the reconfigurability constraint function and the visibility constraint function to evaluate the three-dimensional reconstruction accuracy instead, which is more scientific and comprehensive in principle.

[0074] Then, the information domain score of the sampling point is calculated using the joint constraint function. The information domain score represents the contribution of the sampling point to the three-dimensional reconstruction. The information domain score of the sampling point calculated is used as the objective function of the subsequent viewpoint optimization. The information domain score of the sampling point is a direct reflection of the accuracy of the three-dimensional reconstruction. For each sampling point, its reconstructability constraint score and visibility constraint score are calculated according to the previously constructed joint constraint function. The reconstructability constraint score represents the reconstruction contribution of the sampling point in the three-dimensional reconstruction, while the visibility constraint score represents the contribution of the sampling point to the image acquisition quality at the selected viewpoint position. The information domain score of each sampling point is calculated by using weighted summation or other appropriate methods based on the reconstructability constraint score and the visibility constraint score. It can be understood that the weight of the weighted summation in this embodiment can be adjusted according to the specific application and requirements. Then the information domain score is used as the objective function of the subsequent viewpoint optimization. In the viewpoint optimization process, by selecting a viewpoint with a higher information domain score, more important sampling points can be covered, which is conducive to improving the quality of the three-dimensional reconstruction.

[0075] Then, the descending simplex method is used as the optimization algorithm to optimize the spatial position of the viewpoint. The spatial position of the viewpoint is optimized and searched, and the position of the viewpoint is iteratively optimized until the preset information domain score threshold is reached to obtain the optimized viewpoint spatial position.

[0076] This embodiment uses the descending simplex method as an optimization algorithm, and by continuously adjusting the positions of vertices, it is possible to search for a relatively optimal viewpoint spatial position, so that the selected viewpoint can meet the requirements of the 3D reconstruction task to the greatest extent. Through the process of optimizing the viewpoint spatial position, the optimized viewpoint spatial position can be obtained for subsequent path planning and 3D reconstruction processes.

[0077] Finally, the optimized viewpoint spatial position is applied to the three-dimensional traveling salesman problem (3DTSP), and the marine predator algorithm is used for path planning. The three-dimensional traveling salesman problem can start from an initial position, pass through all viewpoints once, and finally return to the initial position. The shortest path planning is performed using the marine predator algorithm, in which an individual represents a path, and the predator individual continuously iterates and optimizes the path to obtain the global optimal path. The marine predator algorithm performs path planning, which can make the method provided in this embodiment have excellent global search capabilities and have strong adaptability to complex search spaces.

[0078] It should be noted that the marine predator algorithm used in this embodiment is a heuristic optimization algorithm based on the interaction between predators and prey in the marine ecosystem. The algorithm simulates the behavior of predators in searching for prey, and solves the optimization problem through steps such as position update of individual predators, prey perception and tracking, and group collaboration. The algorithm has the ability to find the optimal solution in the search space, and strikes a balance between global search and local search, with good search efficiency and convergence speed. The application process of the marine predator algorithm in path planning is to construct an initial population based on the optimized viewpoints. Each individual represents a path, which contains the order of passing through all viewpoints once and returning to the initial position. Each individual path is evaluated, and the total length of its corresponding path is calculated as the individual fitness value. The fitness value measures the quality of the path, and the goal is to find the path with the shortest total length. In each iteration, the individual path is updated and optimized according to the behavioral rules of the marine predator algorithm. The predator individual searches for adjacent paths and selects a better path for replacement according to the fitness value. The process is an iterative optimization process that simulates the predation and escape behaviors of marine predators until a preset termination condition is reached, such as reaching the maximum number of iterations or meeting a certain fitness threshold. At the end of the iteration, the individual path with the best fitness value (shortest path length) is selected as the optimal solution, which is the shortest path planning result that passes through all viewpoints once and returns to the initial position.

[0079] The path planning method for global accuracy of three-dimensional reconstruction provided in this embodiment, through multi-view motion recovery structure and binocular stereo vision principle, combined with depth of field constraint, reconfigurability constraint and simplified solid angle visibility constraint function, constructs a joint constraint function to calculate the full-field information domain of the sampling point, the information domain can characterize the accuracy of three-dimensional reconstruction, and can achieve efficient global-oriented three-dimensional reconstruction. That is, the path planning method provided in this embodiment can improve the accuracy in areas where the accuracy of ordinary path planning methods is insufficient, and reduce the redundancy in areas where point clouds are redundant, thereby achieving three-dimensional reconstruction that takes global accuracy into consideration. At the same time, the path planning method of this embodiment introduces the three-dimensional descending simplex method and the marine predator algorithm to optimize the spatial position of the viewpoint and plan the path for all viewpoints, solve the search optimization problem in the three-dimensional space, and finally achieve fast path planning to solve the three-dimensional traveling salesman problem. The three-dimensional reconstruction accuracy is characterized by the information domain to achieve the effect of improving accuracy and reducing redundancy; the viewpoint network is determined by spatial search through the three-dimensional descending simplex method with the information domain as the objective function, and then the three-dimensional traveling salesman problem is solved by the marine predator algorithm, thereby quickly and efficiently solving the path planning problem of existing viewpoints.

[0080] The path planning method of this embodiment does not require the use of multi-UAV modeling. For example, it can be applied to the three-dimensional reconstruction of small and medium-scale scenes using UAVs, or it can also be applied to scenarios such as the three-dimensional reconstruction of irregular surfaces constructed using a robotic arm fixed with a camera. It is not only relatively universal and does not require a lot of time and energy consumption, but also can ensure good global search capabilities. While ensuring the global accuracy of the reconstruction, it can also efficiently and quickly plan the globally optimal path.

[0081] It can be understood that in the planning method of this embodiment, the joint constraint function is constructed based on the multi-view motion recovery structure and binocular stereo vision principles. The joint constraint function is used to estimate the reconstruction accuracy, which is equivalent to making an equivalent substitute for the three-dimensional reconstruction accuracy according to the principle of three-dimensional reconstruction, without the need for actual reconstruction. Since the joint constraint function is constructed based on the multi-view motion recovery structure and binocular stereo vision principles, the information domain score of the sampling point calculated using the joint constraint function can be used as an equivalent substitute for the three-dimensional reconstruction accuracy. Finally, after all planning and optimization are completed, a three-dimensional reconstruction is performed according to the optimized planning path.

[0082] Optionally, in this embodiment, when constructing a joint constraint function for three-dimensional reconstruction, a reconstructability constraint function and a visibility constraint function are constructed as a joint constraint function according to the multi-view motion recovery structure and binocular stereo vision principles; wherein, three-dimensional reconstruction is a method of restoring three-dimensional space through a series of collected two-dimensional images, and the collected images corresponding to each two viewpoints are a pair, and the binocular stereo vision principle is applied to reconstruct, and then all viewpoints are traversed according to the multi-view motion recovery structure principle to perform overall three-dimensional reconstruction. Factors considered in three-dimensional reconstruction include at least the angle of viewpoints, the distance of viewpoints, and the normal angle.

[0083] Optionally, in the information domain score of the sampling points calculated in this embodiment, the sampling points are discrete sampling point clouds of the area that needs to be reconstructed in three dimensions. Specifically, the information domain score of the sampling points is calculated, and the sampling points refer to the discrete sampling point clouds of the area that needs to be reconstructed in three dimensions, wherein the evaluation index of the point cloud generally includes two, the first is the reprojection error, which is a commonly used index in three-dimensional reconstruction, used to measure the error between the estimated three-dimensional model and the corresponding two-dimensional point projected onto the image plane. This error represents the difference between the predicted position and the actual observed position when the three-dimensional point is reprojected back to the image plane, and is usually used to evaluate the accuracy of the model and the effect of the optimization algorithm. The lower the better. The first is the noise point cloud, which refers to the undesirable or irrelevant data points in the three-dimensional point cloud data, which may be introduced by interference and other factors. The noise point cloud contains inaccurate points, outliers or other interference points, so the lower the proportion of the noise point cloud, the better.

[0084] In the example experiment, the applicant reconstructed a curved surface with a height of 3 meters and a length of 3.5 meters. The traditional viewpoint planning method obtained a zigzag viewpoint path evenly distributed on a plane. Compared with the traditional viewpoint planning method, under the condition of the same number of 146 viewpoints, the reprojection error of this method after three-dimensional reconstruction was reduced from 0.713781 to 0.627062, a reduction of 12.14%, and the proportion of noise point clouds was also reduced from 17.3% to 11.6%, a decrease of 5.7%. This result fully demonstrates the remarkable effect of the present invention in improving the accuracy of three-dimensional reconstruction.

[0085] The path planning method provided in this embodiment, aimed at the specific needs of global 3D reconstruction, achieves a significant improvement in the 3D reconstruction accuracy while greatly reducing the computing time cost; through a carefully designed 3D reconstruction joint constraint function, the two major factors of reconstructability and visibility are fully considered, ensuring that the images collected in the three-dimensional space can obtain the best quality 3D reconstruction results under the premise of satisfying the principles of binocular stereo vision and multi-view motion recovery structure.

[0086] Embodiment 2

[0087] Please refer to Figure 2 , Figure 2 : is another flowchart of a path planning method for global accuracy of three-dimensional reconstruction provided by an embodiment of the present invention. This embodiment provides a path planning method for global accuracy of three-dimensional reconstruction, including:

[0088] S20: Initialize the viewpoint network of conventional planning;

[0089] S21: Constructing a joint constraint function for 3D reconstruction: Based on the principle of multi-view motion restoration structure and binocular stereo vision, a reconstructability constraint function and a visibility constraint function are constructed as a joint constraint function;

[0090] S22: Calculate the information domain score of the sampling point: use the joint constraint function to calculate the information domain score of the sampling point, and use the calculated information domain score of the sampling point as the objective function of subsequent viewpoint optimization;

[0091] S23: Optimizing the spatial position of the viewpoint: determining whether the information domain score of the calculated sampling point meets a preset information domain score threshold, and if so, obtaining the optimized spatial position of the viewpoint; if not, using the descending simplex method as an optimization algorithm to optimize and search the spatial position of the viewpoint, iteratively optimizing the position of the viewpoint until the preset information domain score threshold is reached, and obtaining the optimized spatial position of the viewpoint;

[0092] S24: Path Planning: Apply the optimized viewpoint spatial position to the 3D traveling salesman problem and use the marine predator algorithm for path planning.

[0093] S25: Output the final path.

[0094] In the path planning method provided in this embodiment, the spatial position of the viewpoint is optimized. Initially, a group of viewpoints are randomly selected and their corresponding information domain scores are calculated; then, the positions of vertices, edges and faces are iteratively updated to reduce the objective function (information domain score); during the iteration process, the position of the vertex is continuously adjusted to search for a suitable viewpoint spatial position until a preset information domain score threshold is reached, thereby obtaining the optimized viewpoint spatial position.

[0095] The optimization process of the descending simplex method used in this embodiment is that at the beginning, a group of viewpoints are randomly selected as the initial solution, and the information domain score corresponding to each viewpoint is calculated. The initial viewpoint position can be set according to the specific problem, for example, some positions are randomly selected in the scene or the previous viewpoint selection results are used. Then, the viewpoint position is iteratively updated. In each iteration, a better viewpoint spatial position is searched by adjusting the positions of vertices, edges and faces. The goal of the optimization is to reduce the objective function (information domain score) so that the selected viewpoint can better meet the requirements of three-dimensional reconstruction. In each iteration, by calculating the information domain scores of different vertices, the vertex with a better score among the adjacent vertices is determined, and the current vertex position is updated. The process will gradually approach the optimal solution and stop the iteration when the stopping criterion (such as reaching a preset information domain score threshold) is reached. This embodiment uses the descending simplex method as the optimization algorithm. By continuously adjusting the position of the vertex, a relatively better viewpoint spatial position can be searched, so that the selected viewpoint can meet the requirements of the three-dimensional reconstruction task to the greatest extent. Through the process of optimizing the spatial position of the viewpoint, the optimized viewpoint spatial position can be obtained for subsequent path planning and three-dimensional reconstruction processes.

[0096] Embodiment 3

[0097] This embodiment provides a path planning method for global accuracy of three-dimensional reconstruction, including:

[0098] Initialize the viewpoint network for regular planning;

[0099] Constructing a joint constraint function for 3D reconstruction: Based on the principle of multi-view motion restoration structure and binocular stereo vision, constructing a reconstructability constraint function and a visibility constraint function as a joint constraint function;

[0100] Calculate the information domain score of the sampling point: use the joint constraint function to calculate the information domain score of the sampling point, and use the calculated information domain score of the sampling point as the objective function of the subsequent viewpoint optimization;

[0101] Optimize the spatial position of the viewpoint: determine whether the information domain score of the calculated sampling point meets the preset information domain score threshold. If so, the optimized viewpoint spatial position is obtained; if not, the descending simplex method is used as the optimization algorithm to optimize and search the spatial position of the viewpoint, and the position of the viewpoint is iteratively optimized until the preset information domain score threshold is reached to obtain the optimized viewpoint spatial position;

[0102] Path Planning: Apply the optimized viewpoint spatial position to the 3D traveling salesman problem and use the marine predator algorithm for path planning.

[0103] Output the final path.

[0104] Among them, according to the principle of multi-view motion restoration structure and binocular stereo vision, the reconstructability constraint function and the visibility constraint function are constructed as a joint constraint function, and the constructed visibility constraint function is:

[0105]

[0106] Among them, cosθ is the orthographic constraint, R1 is the radius of the sampling point hemisphere, and R2i is the radius of the visibility sphere Ri of the i-th viewpoint for the current sampling point hemisphere.

[0107] Specifically, Figure 3 As shown, Figure 3 yes Figure 2 When constructing the visibility constraint function, the hemisphere of the sampling point, the viewpoint, and the visibility sphere space diagram are shown in Figure 1. With each sampling point P as the center of the sphere, a hemisphere H is defined along the normal direction of the sampling point. For each viewpoint V and the line connecting the sampling point P intersects the hemisphere at h. A visibility sphere R is established with h as the center of the sphere, and the radius ri is constructed by the spatial distance between the viewpoint V and the sampling point P to construct an attenuation formula. At this time, the sampling point hemisphere H and the visibility sphere R double sphere generate an intersection surface D, as shown in Figure 4 As shown, Figure 4 yes Figure 2 The schematic diagram of the intersection of the sampling point hemisphere and the visibility sphere when constructing the visibility constraint function in . According to the double-sphere intersection theory, when two spheres intersect in space to produce an intersection, the intersection is a circle, and the radius of the intersection is determined only by the radii of the two spheres. Then, after obtaining the intersection circle with a known radius, a cone with the intersection circle as the base and the sampling point P as the vertex can be constructed, as shown in Figure 5 As shown, Figure 5 yes Figure 4 Schematic diagram of the structure of a cone with the intersection circle as the base and the sampling point as the vertex constructed after the intersection of the sampling point hemisphere and the visibility sphere. In the cone with the intersection circle as the base and the sampling point P as the vertex, R1 is the radius of the sampling point hemisphere H, h is the center of the intersection circle, P is the sampling point, ρ is the radius of the intersection circle, and γ is the plane angle of the cone. The vertex angle of the cone is the solid angle Ω corresponding to the intersection circle, so the relationship between the sampling point hemisphere H, the visibility sphere R, the intersection D and the solid angle Ω can be established. In the incremental multi-view motion recovery structure 3D reconstruction, each sampling point may be collected by multiple viewpoints, so the visibility spheres of multiple viewpoints are distributed on the sampling point hemisphere, and each viewpoint corresponds to its solid angle to the visibility sphere of the current sampling point. Therefore, the total contribution weight of multiple viewpoints to the visibility of a certain sampling point is the ratio of the sum of the solid angles of all viewpoints to the total solid angle of the sampling point hemisphere.

[0108] The visibility constraint function provided in this embodiment is used to ensure that the selected viewpoint position can improve the image acquisition quality of the sampling point as much as possible. In binocular stereo vision, the visibility constraint function is constructed by calculating the visibility of the sampling point in all viewpoints. For each sampling point, the visibility in the binocular camera is estimated by using a triangulation method based on the position and posture of the viewpoint. Therefore, in the path planning process, a viewpoint with the highest visibility can be selected to ensure that as much scene information as possible is obtained, and then considering the impact of the image acquisition quality of each viewpoint position on the accuracy of three-dimensional reconstruction, it is beneficial to improve the accuracy of three-dimensional reconstruction.

[0109] Optionally, according to the multi-view motion restoration structure and binocular stereo vision principle, a reconfigurability constraint function and a visibility constraint function are constructed as a joint constraint function, and the constructed reconfigurability constraint function is:

[0110] c(s, V1, V2)=w1(α)w2(d)w3(α)cosθ;

[0111] Among them, cosθ is the positive constraint;

[0112] w1(α)=(1+exp(-k1·(α-α1))) -1 ;

[0113] w1(α) is the triangulation logistic function, which simulates the parallax dependence of the triangulation error;

[0114] w2(d)=1-min(d / d max , 1);

[0115] w2(d) is the depth constraint function, which simulates the effect of distance on reconstructability;

[0116] w3(α)=1-(1+exp(-k3·(α-α3))) -1 ;

[0117] w3 is the parallax matching logistic function, w3(α) measures the dependence of the matching degree on the parallax;

[0118] θ=max(θ1,θ2);

[0119] s is the sampling point, V1 and V2 are the two visible perspectives corresponding to the sampling point, α is the angle between the two perspectives, and d max is the maximum viewing distance, is a constant, d is the maximum value of the distances from the two viewpoints to the sampling point, θ1 is the angle between the normal of the sampling point and the direction of the viewpoint V1, θ2 is the angle between the normal of the sampling point and the direction of the viewpoint V2, k1, α1, k3, α3 are adjustable parameters.

[0120] The reconstructability constraint function of this embodiment is used to evaluate the contribution of a sampling point in three-dimensional reconstruction. It combines the structure of the object in the scene and the camera parameters. The constraint function is mainly based on motion recovery structure. By estimating the motion of the camera and the depth information of the object in the scene, the three-dimensional structure of the object is inferred. When calculating the reconstructability constraint, the mapping relationship from pixels to spatial coordinates can be considered, and the depth of the object can be estimated by using the geometric relationship between adjacent views. In this way, the contribution of the sampling point can be evaluated based on the reconstruction error of the sampling point in the three-dimensional space, that is, the reconstructability constraint function can take into account the reconstruction capability of each pair of viewpoints from the binocular stereo vision system to the sampling point.

[0121] like Figure 6 As shown, Figure 6 yes Figure 2 Schematic diagram of the spatial position relationship between the viewpoint and the sampling point when constructing the reconfigurability constraint function. Figure 6 Where V1 and V2 are two viewpoints, p is the sampling point, t is the tangent direction of the sampling point, n is the normal direction of the sampling point, θ is the larger of the two observation angles, and α is the included angle. w1(α) and w3(α) are mutually exclusive constraint functions, corresponding to the triangulation logic function and the disparity matching logic function respectively, and w1(α)×w3(α) is the disparity joint constraint function, which is used to express the joint effect of this pair of mutually exclusive constraint functions.

[0122] like Figure 7 As shown, Figure 7 It is a visualization diagram of the parallax joint constraint function. In recent years, through a large number of practical experiments and heuristic search algorithms, it can be obtained Figure 7 The parallax joint constraint function shown in the figure, w1(α) and w3(α) are a pair of mutually exclusive constraint relationships, and the w1(α)×w3(α) part of the reconstructability constraint function is a function relationship that first increases and then decreases. The relatively optimal angle α may be 20 to 30 degrees, that is, when the angle α is around 20-30, the parallax joint constraint function w1(α)×w3(α) reaches the optimal value, which corresponds to the highest accuracy of 3D reconstruction, and also proves that this pair of mutually exclusive constraints is in line with the principle of 3D reconstruction.

[0123] Embodiment 4

[0124] Please refer to Figure 2 , Figure 8-Figure 14 , Figure 8 is a schematic diagram of modeling a curved plate component of a reconstruction example in an embodiment of the present invention, Fig. 9 Is adopted Figure 2 Schematic diagram of the sampling point set obtained by uniform discrete sampling of the path planning method, Fig.10 Is adopted Figure 2 The viewpoint network and the spatial location diagram of the sampling point set obtained by the path planning method. Fig.11 Is adopted Figure 2 Schematic diagram of the viewpoint network and the spatial position of the sampling point set after the path planning method is optimized. Fig.12 Is adopted Figure 2 Schematic diagram of the viewpoint network space position after the path planning method is optimized. Fig.13 This is a schematic diagram comparing the viewpoint network positions in the same coordinate system before and after optimization. Fig.14 Is adopted Figure 2 Schematic diagram of the path obtained by the path planning method.

[0125] The application scenario of this embodiment is to plan the path of a reconstructed curved plate component with a height of 4 meters, a length of 4 meters, and a thickness of 0.05 meters, so as to be used for the processing design of large and complex curved surface components in actual engineering. The robot arm is connected to a camera to collect data, and the path planning method provided in this embodiment is performed using these data.

[0126] An irregular curved plate sample was established using NX12.0 modeling software. The length and height are both 4.0 meters and the thickness is 0.05 meters. The sample modeling is as follows Figure 8 shown.

[0127] In order to achieve better global 3D reconstruction, this embodiment separates the surface defined by length and width as the sample to be reconstructed. Since the separated irregular surface sample is the STL mesh file obtained by modeling, in order to obtain the sampling point set of the computable information domain, it is necessary to perform uniform discrete point cloud sampling on the mesh. Therefore, the uniform discrete sampling point set is as follows: Fig. 9 shown.

[0128] The relatively universal path planning method for three-dimensional reconstruction of irregular surfaces provided in this embodiment can get rid of the dependence on large-scene drone reconstruction. Therefore, in order to more convincingly test the fast path planning algorithm proposed in this embodiment, the established sample does not use the viewpoint network of conventional plane planning, but uses the line cutting method scanning viewpoint network used in more outstanding actual engineering (that is, in order to illustrate that the method of this embodiment is more universal, a very good planning method is used for comparison, which is more convincing). The line cutting method scanning viewpoint network is more in line with the curvature of the component itself, and can effectively alleviate the occlusion problem that is easy to exist in large curvature areas, thereby providing better reconstruction results in actual engineering. Specifically, first establish a reference plane Z parallel to the longest side of the curved plate; the reference plane Z is evenly moved downward at the same distance along the high line direction of the curved plate, and multiple intersection lines of the reference plane and the curved plate are obtained as line tangent lines L i ; Multiple row tangent lines L i Discretize the arc lengths row by row to obtain a series of uniform discrete points C i ; Finally, all uniform discrete points S iThe position V of each viewpoint is obtained by translating the middle distance of the depth of field range point by point along the normal vector direction i , thus obtaining the line-cut scanning viewpoint network C. The schematic diagram of the relative spatial position relationship between the line-cut scanning viewpoint network and the uniform discrete sampling point set is shown in Fig.10 As shown by Fig.10 As can be seen from the figure, the distribution of the viewpoint network scanned by the line cutting method is consistent with the curvature change of the sample, which can better deal with the possible line of sight occlusion problem in the large curvature area; it is understandable that Fig.10 The green points in the middle are the distribution of the viewpoint network scanned by the row-cut method, and the white points are the uniform discrete sampling point sets.

[0129] Then, a joint constraint function for 3D reconstruction is constructed, and the reconstructability constraint function and visibility constraint function are constructed based on the principle of multi-view motion restoration structure and binocular stereo vision. The reconstructability constraint function is used to evaluate the reconstructability contribution of each pair of viewpoints to the uniform discrete sampling point set of the component, while the visibility constraint function is used to evaluate the contribution of each viewpoint position to the image acquisition quality.

[0130] Next, the information domain score of the sampling point is calculated, and the information domain score of all sampling points is calculated using the joint constraint function. The information domain score of each sampling point is weighted according to its importance to the reconstruction quality and visibility.

[0131] Then, the descending simplex method is used as the optimization algorithm to optimize and search the spatial position of the viewpoints. The descending simplex algorithm is used to continuously iterate and optimize the position of the viewpoints according to the objective function of the information domain score until the preset information domain score threshold is reached. The optimized viewpoint network and the spatial position of the sampling point set are shown in Figure 1. Fig.11 As shown, it can be understood that Fig.11 The green dots in the middle are the optimized viewpoint network, and the white dots are uniform discrete sampling point sets. The spatial position of the optimized viewpoint network is shown in Fig.12 As shown in the figure, the comparison of the viewpoint network position in the same coordinate system before and after optimization is as follows: Fig.13 As shown, it can be understood that Fig.13 The green dots in the middle are the line-cut scanning viewpoint network before optimization, and the blue dots are the viewpoint network after optimization.

[0132] Then the ocean predator algorithm is used for path planning. Once the optimized viewpoint spatial positions are obtained, these optimized viewpoint spatial positions are applied to the three-dimensional traveling salesman problem to determine the path planning of the best observation point sequence. Using the ocean predator algorithm, the viewpoint network is arranged into a path, and the shortest path that traverses all viewpoints without duplication is constructed, thereby minimizing the total length of the path. The optimized viewpoint network spatial positions are as follows Fig.14 As shown, Fig.14It is the path obtained by solving 3DTSP using the ocean predator algorithm for the optimized viewpoint network.

[0133] It can be understood that the three-dimensional traveling salesman problem (3DTSP problem) is defined as: given a set of points P = {p1, p2, ..., pn}, where pi = (xi, yi, zi) represents a point in three-dimensional space, find a path C = {c1, c2, ..., cn}, so that the path starts from the starting point c1, passes through all points pi once and ends, and the path length is the smallest. Therefore, this embodiment uses the marine predator algorithm to solve the 3DTSP, and the solution itself is to find the shortest path. Therefore, the solution (that is, the path) obtained after using the marine predator algorithm to solve the 3DTSP problem is itself the result that the total path in the current viewpoint network combination is as short as possible, so the total length of the path can be minimized.

[0134] It can be seen from the above embodiments that the path planning method for global accuracy of three-dimensional reconstruction provided by the present invention achieves at least the following beneficial effects:

[0135] The path planning method for global accuracy of three-dimensional reconstruction provided by the present invention, through multi-view motion recovery structure and binocular stereo vision principle, combined with depth of field constraint, reconfigurability constraint and simplified solid angle visibility constraint function, constructs a joint constraint function to calculate the full-field information domain of the sampling point, the information domain can characterize the accuracy of three-dimensional reconstruction, and can realize efficient global-oriented three-dimensional reconstruction. The path planning method provided by the present invention can improve the accuracy in the area where the accuracy of the ordinary path planning method is insufficient, and reduce the redundancy in the area where the point cloud is redundant, so as to realize three-dimensional reconstruction that takes more global accuracy into consideration. At the same time, the present invention introduces the three-dimensional descending simplex method and the marine predator algorithm to realize the optimization of the viewpoint space position and the path planning for all viewpoints, solve the search optimization problem in the three-dimensional space, and finally realize the fast path planning to solve the three-dimensional traveling salesman problem. The three-dimensional reconstruction accuracy is characterized by the information domain to achieve the effect of improving accuracy and reducing redundancy; the viewpoint network is determined by spatial search through the three-dimensional descending simplex method with the information domain as the objective function, and then the three-dimensional traveling salesman problem is solved by the marine predator algorithm, so as to quickly and efficiently solve the path planning problem of the existing viewpoint. The path planning method of the present invention does not need to adopt multi-UAV modeling, such as being applicable to the three-dimensional reconstruction of small and medium-scale scenes using UAVs, or being applicable to the three-dimensional reconstruction of irregular surfaces constructed using a mechanical arm fixed camera. It is not only relatively universal and does not require a lot of time and energy consumption, but also can ensure good global search capabilities, ensuring the global accuracy of reconstruction while efficiently and quickly planning the global optimal path. The path planning method provided by the present invention, aimed at the specific needs of global three-dimensional reconstruction, achieves significant improvement in the accuracy of three-dimensional reconstruction while greatly reducing the cost of computing time; through the carefully designed three-dimensional reconstruction joint constraint function, the two major factors of reconfigurability and visibility are fully considered, ensuring that the images collected in three-dimensional space can obtain the best quality three-dimensional reconstruction results under the premise of satisfying the principles of binocular stereo vision and multi-view motion recovery structure.

[0136] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will be appreciated by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.

Claims

1. A path planning method for global accuracy of three-dimensional reconstruction, characterized in that: include: Constructing a joint constraint function for three-dimensional reconstruction: constructing a reconstructability constraint function and a visibility constraint function as the joint constraint function according to the principle of multi-view motion restoration structure and binocular stereo vision; The principle of the multi-view motion recovery structure is to automatically recover the parameters of the imaging device and the three-dimensional structure of the scene from multiple images or video sequences, and to infer the three-dimensional structure of the object by estimating the motion of the imaging device and the depth information of the object in the scene; The principle of binocular stereo vision is based on the parallax principle, and uses an imaging device to obtain two images of the object to be measured from different positions, and obtains the three-dimensional geometric information of the object by calculating the position deviation between corresponding points of the images; The reconstructability constraint function is used to evaluate the contribution of a sampling point in three-dimensional reconstruction; The visibility constraint function is used to evaluate the quality of image acquisition at each viewpoint position; Calculating the information domain score of the sampling point: using the joint constraint function to calculate the information domain score of the sampling point, and using the calculated information domain score of the sampling point as the objective function of subsequent viewpoint optimization; The information domain score is used to represent the contribution of the sampling point to the three-dimensional reconstruction; Optimize the spatial position of the viewpoint: Use the descending simplex method as the optimization algorithm to optimize and search the spatial position of the viewpoint, iteratively optimize the position of the viewpoint until the preset information domain score threshold is reached, and the optimized spatial position of the viewpoint is obtained; Path planning: applying the optimized viewpoint spatial position to the three-dimensional traveling salesman problem and using the marine predator algorithm for path planning; The optimized viewpoint spatial position is applied to the three-dimensional traveling salesman problem, which is the shortest path planning starting from an initial position, passing through all optimized viewpoints once, and finally returning to the initial position.

2. The path planning method for global accuracy of three-dimensional reconstruction according to claim 1, characterized in that: In the joint constraint function for constructing three-dimensional reconstruction: Three-dimensional reconstruction restores the three-dimensional space through the collected two-dimensional images. The collected images corresponding to every two viewpoints are a pair, and reconstructed using the binocular stereo vision principle. Then all viewpoints are traversed and the overall three-dimensional reconstruction is performed based on the multi-view motion recovery structure principle.

3. The path planning method for global accuracy of three-dimensional reconstruction according to claim 2, characterized in that: The factors considered in the three-dimensional reconstruction include at least the angle of viewpoints, the distance between viewpoints and the normal angle.

4. The path planning method for global accuracy of three-dimensional reconstruction according to claim 1, characterized in that: The visibility constraint function is: Among them, cosθ is the orthographic constraint, R1 is the radius of the sampling point hemisphere, and R2i is the radius of the visibility sphere Ri of the i-th viewpoint for the current sampling point hemisphere.

5. The path planning method for global accuracy of three-dimensional reconstruction according to claim 1, characterized in that: The reconfigurability constraint function is: c(s, V1, V2)=w1(α)w2(d)w3(α)cosθ; Among them, cosθ is the positive constraint; w1(α)=(1+exp(-k1·(α-α1))) -1 ; w1(α) is the triangulation logistic function, which simulates the parallax dependence of the triangulation error; w2(d)=1-min(d / d max ,1); w2(d) is the depth constraint function, which simulates the effect of distance on reconstructability; w3(α)=1-(1+exp(-k3·(α-α3))) -1 ; w3 is the parallax matching logistic function, w3(α) measures the dependence of the matching degree on the parallax; θ=max(θ1,θ2); s is the sampling point, V1 and V2 are the two visible perspectives corresponding to the sampling point, α is the angle between the two perspectives, and d max is the maximum viewing distance, is a constant, d is the maximum value of the distances from the two viewpoints to the sampling point, θ1 is the angle between the normal of the sampling point and the direction of the viewpoint V1, θ2 is the angle between the normal of the sampling point and the direction of the viewpoint V2, k1, α1, k3, α3 are adjustable parameters.

6. The path planning method for global accuracy of three-dimensional reconstruction according to claim 5, characterized in that: w1(α) and w3(α) are a pair of mutually exclusive constraint relationships. In the reconstructability constraint function, w1(α)×w3(α) is a parallax joint constraint function, and is a function relationship that increases first and then decreases.

7. The path planning method for global accuracy of three-dimensional reconstruction according to claim 1, characterized in that: In the calculation of the information domain score of the sampling points, the sampling points are discrete sampling point clouds of the area requiring three-dimensional reconstruction.

8. The path planning method for global accuracy of three-dimensional reconstruction according to claim 1, characterized in that: The optimizing the spatial position of the viewpoint includes: Randomly select a set of viewpoints and calculate their corresponding information domain scores; Iteratively update the positions of vertices, edges, and faces to reduce the information domain score; During the iteration process, the appropriate viewpoint space position is searched by continuously adjusting the position of the vertices until the preset information domain score threshold is reached to obtain the optimized viewpoint space position.

9. The path planning method for global accuracy of three-dimensional reconstruction according to claim 1, characterized in that: The optimizing the spatial position of the viewpoint includes: Determine whether the calculated information domain score of the sampling point meets a preset information domain score threshold; If so, the optimized viewpoint space position is obtained; If not, the descending simplex method is used as the optimization algorithm to optimize and search the spatial position of the viewpoint, and the position of the viewpoint is iteratively optimized until the preset information domain score threshold is reached to obtain the optimized viewpoint spatial position.

10. The path planning method for global accuracy of three-dimensional reconstruction according to claim 1, characterized in that: The marine predator algorithm performs path planning through the steps of individual position update, prey perception and tracking, and group collaboration.

Citation Information

Patent Citations

  • Multi-unmanned aerial vehicle path planning method and system for three-dimensional reconstruction

    CN117193364A

Cited By

  • Steel structure roof climbing robot path planning method, system, medium and equipment

    CN119374603A

  • Urban scene visual three-dimensional reconstruction-oriented unmanned aerial vehicle route planning method

    CN119540453A